diff --git a/spinifex/daemon/daemon.go b/spinifex/daemon/daemon.go index 4c6e3cac8..fa8081b1a 100644 --- a/spinifex/daemon/daemon.go +++ b/spinifex/daemon/daemon.go @@ -919,6 +919,7 @@ func (d *Daemon) subscribeAll() error { natsSub{"elbv2.DescribeLoadBalancerAttributes", d.handleELBv2DescribeLoadBalancerAttributes, "spinifex-workers"}, natsSub{"elbv2.SetSecurityGroups", d.handleELBv2SetSecurityGroups, "spinifex-workers"}, natsSub{"elbv2.SetIpAddressType", d.handleELBv2SetIpAddressType, "spinifex-workers"}, + natsSub{"elbv2.SetSubnets", d.handleELBv2SetSubnets, "spinifex-workers"}, natsSub{"elbv2.AddListenerCertificates", d.handleELBv2AddListenerCertificates, "spinifex-workers"}, natsSub{"elbv2.RemoveListenerCertificates", d.handleELBv2RemoveListenerCertificates, "spinifex-workers"}, natsSub{"elbv2.DescribeListenerCertificates", d.handleELBv2DescribeListenerCertificates, "spinifex-workers"}, diff --git a/spinifex/daemon/daemon_handlers_elbv2.go b/spinifex/daemon/daemon_handlers_elbv2.go index dabb4a9a5..7614d559b 100644 --- a/spinifex/daemon/daemon_handlers_elbv2.go +++ b/spinifex/daemon/daemon_handlers_elbv2.go @@ -122,6 +122,10 @@ func (d *Daemon) handleELBv2SetIpAddressType(msg *nats.Msg) { handleNATSRequest(msg, d.elbv2Service.SetIpAddressType) } +func (d *Daemon) handleELBv2SetSubnets(msg *nats.Msg) { + handleNATSRequest(msg, d.elbv2Service.SetSubnets) +} + func (d *Daemon) handleELBv2AddListenerCertificates(msg *nats.Msg) { handleNATSRequest(msg, d.elbv2Service.AddListenerCertificates) } diff --git a/spinifex/daemon/daemon_system_dispatch.go b/spinifex/daemon/daemon_system_dispatch.go index 7b77dc9a8..2208fcdc6 100644 --- a/spinifex/daemon/daemon_system_dispatch.go +++ b/spinifex/daemon/daemon_system_dispatch.go @@ -67,6 +67,15 @@ func (d *Daemon) subscribeSystemTerminate(instanceID string) error { } d.mu.Lock() defer d.mu.Unlock() + return d.subscribeSystemTerminateLocked(instanceID) +} + +// subscribeSystemTerminateLocked is the body of subscribeSystemTerminate for +// callers that already hold d.mu (e.g. onInstanceUpHook). Idempotent. +func (d *Daemon) subscribeSystemTerminateLocked(instanceID string) error { + if d.natsConn == nil { + return nil + } subject := fmt.Sprintf("system.TerminateInstance.%s", instanceID) if _, exists := d.natsSubscriptions[subject]; exists { return nil diff --git a/spinifex/daemon/vm_adapters.go b/spinifex/daemon/vm_adapters.go index 0210a88dd..fb4e6f9f1 100644 --- a/spinifex/daemon/vm_adapters.go +++ b/spinifex/daemon/vm_adapters.go @@ -11,6 +11,7 @@ import ( "github.com/mulgadc/spinifex/spinifex/awserrors" handlers_ec2_placementgroup "github.com/mulgadc/spinifex/spinifex/handlers/ec2/placementgroup" "github.com/mulgadc/spinifex/spinifex/network/topology" + "github.com/mulgadc/spinifex/spinifex/tags" "github.com/mulgadc/spinifex/spinifex/types" "github.com/mulgadc/spinifex/spinifex/utils" "github.com/mulgadc/spinifex/spinifex/vm" @@ -398,6 +399,19 @@ func (d *Daemon) onInstanceUpHook() func(*vm.VM) error { } d.natsSubscriptions[consoleSubKey] = consoleSub + // Re-arm the per-instance terminate subscription for system-managed VMs + // (ELBv2 load balancers). The launch handler binds it at first launch, + // but it is lost across a daemon restart; OnInstanceUp fires on both the + // relaunch and the reconnect-to-surviving-QEMU recovery paths, so without + // this system.TerminateInstance.{id} has no responder and the VM can + // never be torn down (SetSubnets relaunch, DeleteLoadBalancer). + if instance.ManagedBy == tags.ManagedByELBv2 { + if subErr := d.subscribeSystemTerminateLocked(instance.ID); subErr != nil { + slog.Error("OnInstanceUp: failed to re-arm system terminate subscription", + "instanceId", instance.ID, "err", subErr) + } + } + // Re-claim GPU(s) after a daemon restart with a still-running QEMU // process: the manager's reconnect path fires OnInstanceUp without // going through the handler-side Claim, so the GPU pool would @@ -469,6 +483,16 @@ func (d *Daemon) onInstanceDownHook() func(string) { } delete(d.natsSubscriptions, consoleSubKey) } + // Drop the system terminate subscription (system VMs only; a no-op for + // regular instances that never registered one). + terminateSubKey := fmt.Sprintf("system.TerminateInstance.%s", instanceID) + if sub, ok := d.natsSubscriptions[terminateSubKey]; ok { + if err := sub.Unsubscribe(); err != nil { + slog.Error("OnInstanceDown: failed to unsubscribe system terminate topic", + "instanceId", instanceID, "err", err) + } + delete(d.natsSubscriptions, terminateSubKey) + } } } diff --git a/spinifex/daemon/vm_adapters_test.go b/spinifex/daemon/vm_adapters_test.go index 602a0325a..413a0f826 100644 --- a/spinifex/daemon/vm_adapters_test.go +++ b/spinifex/daemon/vm_adapters_test.go @@ -46,6 +46,45 @@ func TestOnInstanceUpHook_RegistersBothPerInstanceTopics(t *testing.T) { assert.Equal(t, "ec2.i-up-basic.GetConsoleOutput", consoleSub.Subject) } +func TestOnInstanceUpHook_ReArmsSystemTerminateForELBv2(t *testing.T) { + d, _ := newHookTestDaemon(t) + instance := &vm.VM{ID: "i-up-sys", ManagedBy: tags.ManagedByELBv2} + + require.NoError(t, d.onInstanceUpHook()(instance)) + + // OnInstanceUp fires on both the relaunch and reconnect recovery paths, so + // the terminate subject must be re-bound or the recovered LB VM can never + // be torn down (SetSubnets relaunch, DeleteLoadBalancer). + sub, ok := d.natsSubscriptions["system.TerminateInstance.i-up-sys"] + require.True(t, ok, "system terminate subscription must be re-armed for ELBv2 VMs") + assert.Equal(t, "system.TerminateInstance.i-up-sys", sub.Subject) +} + +func TestOnInstanceUpHook_NoSystemTerminateForRegularInstance(t *testing.T) { + d, _ := newHookTestDaemon(t) + instance := &vm.VM{ID: "i-up-regular"} + + require.NoError(t, d.onInstanceUpHook()(instance)) + + _, ok := d.natsSubscriptions["system.TerminateInstance.i-up-regular"] + assert.False(t, ok, "regular instances must not register a system terminate subscription") +} + +func TestOnInstanceDownHook_DropsSystemTerminateSubscription(t *testing.T) { + d, _ := newHookTestDaemon(t) + instance := &vm.VM{ID: "i-down-sys", ManagedBy: tags.ManagedByELBv2} + + require.NoError(t, d.onInstanceUpHook()(instance)) + termSub := d.natsSubscriptions["system.TerminateInstance.i-down-sys"] + require.NotNil(t, termSub) + + d.onInstanceDownHook()(instance.ID) + + _, present := d.natsSubscriptions["system.TerminateInstance.i-down-sys"] + assert.False(t, present, "system terminate sub must be deleted from map") + assert.False(t, termSub.IsValid(), "system terminate sub must be unsubscribed") +} + func TestOnInstanceUpHook_ReplacesExistingSubsOnDoubleUp(t *testing.T) { d, _ := newHookTestDaemon(t) instance := &vm.VM{ID: "i-up-twice"} diff --git a/spinifex/gateway/eks/handler.go b/spinifex/gateway/eks/handler.go index 837cc6825..9558ec3b7 100644 --- a/spinifex/gateway/eks/handler.go +++ b/spinifex/gateway/eks/handler.go @@ -11,6 +11,7 @@ import ( "io" "log/slog" "net/http" + "strings" "github.com/aws/aws-sdk-go/private/protocol/json/jsonutil" "github.com/mulgadc/spinifex/spinifex/awserrors" @@ -28,11 +29,18 @@ type EKSJSONError struct { } // GenerateEKSErrorResponse marshals the AWS REST-JSON error envelope. -// The trailing "Exception" suffix matches the convention AWS uses -// (e.g. ResourceNotFoundException, InvalidParameterException). +// The wire __type carries the trailing "Exception" suffix AWS uses +// (e.g. ResourceNotFoundException, InvalidParameterException). The suffix is +// appended idempotently: many awserrors codes already end in "Exception" +// (e.g. ErrorEKSResourceNotFound = "ResourceNotFoundException"), and adding a +// second would emit ResourceNotFoundExceptionException, which SDK clients +// reject when matching eks.ErrCodeResourceNotFoundException. func GenerateEKSErrorResponse(code, message string) []byte { + if !strings.HasSuffix(code, "Exception") { + code += "Exception" + } body, err := json.Marshal(EKSJSONError{ - Type: code + "Exception", + Type: code, Message: message, }) if err != nil { diff --git a/spinifex/gateway/eks/handler_test.go b/spinifex/gateway/eks/handler_test.go index 68b9e2e2d..61eb300b8 100644 --- a/spinifex/gateway/eks/handler_test.go +++ b/spinifex/gateway/eks/handler_test.go @@ -21,6 +21,16 @@ func TestGenerateEKSErrorResponse_ShapesExceptionSuffix(t *testing.T) { assert.Equal(t, "Cluster does not exist", env.Message) } +// Codes that already carry the "Exception" suffix (e.g. +// awserrors.ErrorEKSResourceNotFound = "ResourceNotFoundException") must not be +// doubled into ResourceNotFoundExceptionException, which SDK clients reject. +func TestGenerateEKSErrorResponse_DoesNotDoubleExceptionSuffix(t *testing.T) { + body := GenerateEKSErrorResponse("ResourceNotFoundException", "Cluster does not exist") + var env EKSJSONError + require.NoError(t, json.Unmarshal(body, &env)) + assert.Equal(t, eks.ErrCodeResourceNotFoundException, env.Type) +} + func TestWriteJSONError_SetsContentTypeAndStatus(t *testing.T) { w := httptest.NewRecorder() WriteJSONError(w, "NotImplemented", "Operation not implemented", http.StatusNotImplemented) diff --git a/spinifex/gateway/elbv2.go b/spinifex/gateway/elbv2.go index bae968d6b..e54e31604 100644 --- a/spinifex/gateway/elbv2.go +++ b/spinifex/gateway/elbv2.go @@ -132,6 +132,9 @@ var elbv2Actions = map[string]ELBv2Handler{ "SetIpAddressType": elbv2Handler(func(input *elbv2.SetIpAddressTypeInput, gw *GatewayConfig, accountID string) (any, error) { return gateway_elbv2.SetIpAddressType(input, gw.NATSConn, accountID) }), + "SetSubnets": elbv2Handler(func(input *elbv2.SetSubnetsInput, gw *GatewayConfig, accountID string) (any, error) { + return gateway_elbv2.SetSubnets(input, gw.NATSConn, accountID) + }), "AddListenerCertificates": elbv2Handler(func(input *elbv2.AddListenerCertificatesInput, gw *GatewayConfig, accountID string) (any, error) { return gateway_elbv2.AddListenerCertificates(input, gw.NATSConn, accountID) }), diff --git a/spinifex/gateway/elbv2/SetSubnets.go b/spinifex/gateway/elbv2/SetSubnets.go new file mode 100644 index 000000000..039e2b146 --- /dev/null +++ b/spinifex/gateway/elbv2/SetSubnets.go @@ -0,0 +1,32 @@ +package gateway_elbv2 + +import ( + "errors" + + "github.com/aws/aws-sdk-go/service/elbv2" + "github.com/mulgadc/spinifex/spinifex/awserrors" + handlers_elbv2 "github.com/mulgadc/spinifex/spinifex/handlers/elbv2" + "github.com/nats-io/nats.go" +) + +// SetSubnets handles the ELBv2 SetSubnets API call. It enables the subnets (and +// their backing ENIs) for the load balancer, adding and removing them to match +// the request. +func SetSubnets(input *elbv2.SetSubnetsInput, natsConn *nats.Conn, accountID string) (elbv2.SetSubnetsOutput, error) { + var output elbv2.SetSubnetsOutput + + if input == nil || input.LoadBalancerArn == nil || *input.LoadBalancerArn == "" { + return output, errors.New(awserrors.ErrorMissingParameter) + } + if len(input.Subnets) == 0 && len(input.SubnetMappings) == 0 { + return output, errors.New(awserrors.ErrorMissingParameter) + } + + svc := handlers_elbv2.NewNATSELBv2Service(natsConn) + result, err := svc.SetSubnets(input, accountID) + if err != nil { + return output, err + } + + return *result, nil +} diff --git a/spinifex/gateway/elbv2_test.go b/spinifex/gateway/elbv2_test.go index 001a6763e..6af333fda 100644 --- a/spinifex/gateway/elbv2_test.go +++ b/spinifex/gateway/elbv2_test.go @@ -56,6 +56,7 @@ func TestELBv2ActionsMap_AllActionsRegistered(t *testing.T) { "RemoveTags", "SetSecurityGroups", "SetIpAddressType", + "SetSubnets", "LBAgentHeartbeat", "GetLBConfig", "ModifyTargetGroupAttributes", diff --git a/spinifex/gateway/gateway.go b/spinifex/gateway/gateway.go index 4423f9e80..689acc8ad 100644 --- a/spinifex/gateway/gateway.go +++ b/spinifex/gateway/gateway.go @@ -76,6 +76,7 @@ var supportedServices = map[string]bool{ "elasticloadbalancing": true, "eks": true, "acm": true, + "tagging": true, "spinifex": true, } @@ -326,6 +327,8 @@ func (gw *GatewayConfig) Request(w http.ResponseWriter, r *http.Request) { err = gw.EKS_Request(w, r) case "acm": err = gw.ACM_Request(w, r) + case "tagging": + err = gw.Tagging_Request(w, r) case "spinifex": err = gw.Spinifex_Request(w, r) default: @@ -478,10 +481,10 @@ func (gw *GatewayConfig) ErrorHandler(w http.ResponseWriter, r *http.Request, er errorMsg.HTTPCode = 500 } - // EKS and ACM both use the AWS JSON 1.1 error envelope - // ({"__type":"Exception","message":...}, Content-Type + // EKS, ACM, and the Resource Groups Tagging API all use the AWS JSON 1.1 + // error envelope ({"__type":"Exception","message":...}, Content-Type // application/x-amz-json-1.1). Query/XML services fall through below. - if svc == "eks" || svc == "acm" { + if svc == "eks" || svc == "acm" || svc == "tagging" { body := GenerateEKSErrorResponse(err.Error(), errorMsg.Message, requestId) slog.Debug("Generated JSON error response", "service", svc, "error", err.Error(), "json", string(body), "requestId", requestId) w.Header().Set("Content-Type", eksJSONContentType) diff --git a/spinifex/gateway/gateway_test.go b/spinifex/gateway/gateway_test.go index 2bb22bc78..445e7979e 100644 --- a/spinifex/gateway/gateway_test.go +++ b/spinifex/gateway/gateway_test.go @@ -508,6 +508,11 @@ func TestGetService(t *testing.T) { ctxVal: "account", wantSvc: "account", }, + { + name: "tagging service", + ctxVal: "tagging", + wantSvc: "tagging", + }, } for _, tc := range tests { diff --git a/spinifex/gateway/tagging.go b/spinifex/gateway/tagging.go new file mode 100644 index 000000000..f5a558585 --- /dev/null +++ b/spinifex/gateway/tagging.go @@ -0,0 +1,82 @@ +package gateway + +import ( + "errors" + "io" + "log/slog" + "net/http" + "strings" + + "github.com/mulgadc/spinifex/spinifex/awserrors" + gateway_tagging "github.com/mulgadc/spinifex/spinifex/gateway/tagging" +) + +// taggingHandler invokes a per-action Resource Groups Tagging API function: it +// receives the parent gateway config, the caller's accountID, and the raw JSON +// request body, and returns a typed *resourcegroupstaggingapi.Output (as +// any) or an error whose Error() is an awserrors code. +type taggingHandler func(gw *GatewayConfig, accountID string, body []byte) (any, error) + +// taggingActions maps a tagging action (the suffix of the X-Amz-Target header) +// to its handler. The Resource Groups Tagging API speaks AWS JSON 1.1: the +// action is carried in "X-Amz-Target: ResourceGroupsTaggingAPI_20170126.". +var taggingActions = map[string]taggingHandler{ + "GetResources": func(gw *GatewayConfig, acct string, b []byte) (any, error) { + return gateway_tagging.GetResources(gw.NATSConn, gw.Region, acct, b) + }, +} + +// taggingActionFromTarget extracts the bare action name from an X-Amz-Target +// header value of the form "ResourceGroupsTaggingAPI_20170126.". +func taggingActionFromTarget(target string) string { + if i := strings.LastIndex(target, "."); i >= 0 { + return target[i+1:] + } + return target +} + +// Tagging_Request dispatches AWS JSON 1.1 Resource Groups Tagging API requests. +// The action is read from the X-Amz-Target header; the body is the JSON-encoded +// operation input. Errors are returned as plain awserrors codes; the caller +// (gateway.Request) routes them through ErrorHandler, which emits the JSON +// error envelope. +func (gw *GatewayConfig) Tagging_Request(w http.ResponseWriter, r *http.Request) error { + action := taggingActionFromTarget(r.Header.Get("X-Amz-Target")) + if action == "" { + return errors.New(awserrors.ErrorMissingAction) + } + + handler, ok := taggingActions[action] + if !ok { + slog.Debug("tagging: unknown action", "action", action) + return errors.New(awserrors.ErrorInvalidAction) + } + + if err := gw.checkPolicy(r, "tagging", action); err != nil { + return err + } + + if gw.NATSConn == nil { + return errors.New(awserrors.ErrorServerInternal) + } + + accountID, _ := r.Context().Value(ctxAccountID).(string) + if accountID == "" { + slog.Error("Tagging_Request: no account ID in auth context") + return errors.New(awserrors.ErrorServerInternal) + } + + body, err := io.ReadAll(r.Body) + if err != nil { + slog.Error("Tagging_Request: failed to read body", "err", err) + return errors.New(awserrors.ErrorInvalidParameterValue) + } + + output, err := handler(gw, accountID, body) + if err != nil { + return err + } + + gateway_tagging.WriteJSONResponse(w, output) + return nil +} diff --git a/spinifex/gateway/tagging/GetResources.go b/spinifex/gateway/tagging/GetResources.go new file mode 100644 index 000000000..0f7196f85 --- /dev/null +++ b/spinifex/gateway/tagging/GetResources.go @@ -0,0 +1,334 @@ +package gateway_tagging + +import ( + "errors" + "fmt" + "sort" + "strconv" + "strings" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/ec2" + "github.com/aws/aws-sdk-go/service/elbv2" + rgt "github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi" + "github.com/mulgadc/spinifex/spinifex/awserrors" + handlers_ec2_tags "github.com/mulgadc/spinifex/spinifex/handlers/ec2/tags" + handlers_elbv2 "github.com/mulgadc/spinifex/spinifex/handlers/elbv2" + "github.com/nats-io/nats.go" +) + +// describeTagsBatchSize is the AWS ceiling on ARNs per ELBv2 DescribeTags call. +const describeTagsBatchSize = 20 + +// defaultResourcesPerPage caps a page when the caller omits ResourcesPerPage. +// AWS allows up to 100; matching that keeps the controller's reconcile fast. +const defaultResourcesPerPage = 100 + +// resourceLister fetches an account's tagged resources by family, already +// shaped as RGT mappings. Splitting the fetch out of getResources keeps the +// filter/sort/paginate orchestration testable without a live NATS backend. +type resourceLister interface { + listELBv2(typeFilters map[string]bool) ([]*rgt.ResourceTagMapping, error) + listEC2(typeFilters map[string]bool) ([]*rgt.ResourceTagMapping, error) +} + +// GetResources implements the Resource Groups Tagging API GetResources call by +// aggregating tagged ELBv2 (load balancers + target groups) and EC2 resources +// for the account, applying the request's resource-type and tag filters. The +// aws-load-balancer-controller uses this to discover and adopt the resources it +// manages (filtering on its cluster/stack tags). Pagination is an opaque +// integer offset into a deterministically ARN-sorted result set. +func GetResources(natsConn *nats.Conn, region, accountID string, body []byte) (any, error) { + return getResources(&natsLister{natsConn: natsConn, region: region, accountID: accountID}, body) +} + +// getResources is the protocol-independent core: it parses the request, asks +// the lister for the in-scope resource families, then applies tag filters, +// stable ordering, and pagination. +func getResources(lister resourceLister, body []byte) (any, error) { + var input rgt.GetResourcesInput + if err := unmarshalIfBody(body, &input); err != nil { + return nil, errors.New(awserrors.ErrorInvalidParameterValue) + } + + typeFilters := lowerStringSlice(input.ResourceTypeFilters) + + var mappings []*rgt.ResourceTagMapping + + elbMappings, err := lister.listELBv2(typeFilters) + if err != nil { + return nil, err + } + mappings = append(mappings, elbMappings...) + + ec2Mappings, err := lister.listEC2(typeFilters) + if err != nil { + return nil, err + } + mappings = append(mappings, ec2Mappings...) + + mappings = filterByTags(mappings, input.TagFilters) + + // Deterministic order so pagination tokens are stable across pages. + sort.Slice(mappings, func(i, j int) bool { + return aws.StringValue(mappings[i].ResourceARN) < aws.StringValue(mappings[j].ResourceARN) + }) + + page, next, err := paginate(mappings, input.PaginationToken, input.ResourcesPerPage) + if err != nil { + return nil, err + } + + out := &rgt.GetResourcesOutput{ResourceTagMappingList: page} + // AWS returns an empty (not absent) token on the last page. + out.PaginationToken = aws.String(next) + return out, nil +} + +// natsLister fetches tagged resources from the elbv2 and ec2 tag stores over +// NATS. +type natsLister struct { + natsConn *nats.Conn + region string + accountID string +} + +func (l *natsLister) listELBv2(typeFilters map[string]bool) ([]*rgt.ResourceTagMapping, error) { + return elbv2Resources(l.natsConn, l.accountID, typeFilters) +} + +func (l *natsLister) listEC2(typeFilters map[string]bool) ([]*rgt.ResourceTagMapping, error) { + svc := handlers_ec2_tags.NewNATSTagsService(l.natsConn) + tagsOut, err := svc.DescribeTags(&ec2.DescribeTagsInput{}, l.accountID) + if err != nil { + return nil, err + } + return buildEC2Mappings(tagsOut.Tags, l.region, l.accountID, typeFilters), nil +} + +// elbv2Resources lists the account's load balancers and target groups (when the +// type filters admit them) and attaches their tags via batched DescribeTags. +func elbv2Resources(natsConn *nats.Conn, accountID string, typeFilters map[string]bool) ([]*rgt.ResourceTagMapping, error) { + wantLB := matchesType(typeFilters, "elasticloadbalancing:loadbalancer") + wantTG := matchesType(typeFilters, "elasticloadbalancing:targetgroup") + if !wantLB && !wantTG { + return nil, nil + } + + svc := handlers_elbv2.NewNATSELBv2Service(natsConn) + var arns []string + + if wantLB { + lbs, err := svc.DescribeLoadBalancers(&elbv2.DescribeLoadBalancersInput{}, accountID) + if err != nil { + return nil, err + } + for _, lb := range lbs.LoadBalancers { + if lb.LoadBalancerArn != nil { + arns = append(arns, *lb.LoadBalancerArn) + } + } + } + if wantTG { + tgs, err := svc.DescribeTargetGroups(&elbv2.DescribeTargetGroupsInput{}, accountID) + if err != nil { + return nil, err + } + for _, tg := range tgs.TargetGroups { + if tg.TargetGroupArn != nil { + arns = append(arns, *tg.TargetGroupArn) + } + } + } + if len(arns) == 0 { + return nil, nil + } + + mappings := make([]*rgt.ResourceTagMapping, 0, len(arns)) + for start := 0; start < len(arns); start += describeTagsBatchSize { + end := min(start+describeTagsBatchSize, len(arns)) + tagsOut, err := svc.DescribeTags(&elbv2.DescribeTagsInput{ + ResourceArns: aws.StringSlice(arns[start:end]), + }, accountID) + if err != nil { + return nil, err + } + for _, td := range tagsOut.TagDescriptions { + mappings = append(mappings, &rgt.ResourceTagMapping{ + ResourceARN: td.ResourceArn, + Tags: elbv2TagsToRGT(td.Tags), + }) + } + } + return mappings, nil +} + +// buildEC2Mappings groups EC2 tag descriptions by resource, synthesises an ARN +// per resource, and keeps those that pass the type filters. EC2 tags carry a +// bare resource ID and a type word (e.g. "subnet"); the RGT type string is +// "ec2:". Pure (no NATS) so the grouping/ARN logic is unit-tested. +func buildEC2Mappings(tagDescriptions []*ec2.TagDescription, region, accountID string, typeFilters map[string]bool) []*rgt.ResourceTagMapping { + type resourceTags struct { + fullType string + tags map[string]string + } + byResource := make(map[string]*resourceTags) + for _, td := range tagDescriptions { + id := aws.StringValue(td.ResourceId) + if id == "" { + continue + } + fullType := "ec2:" + aws.StringValue(td.ResourceType) + rt := byResource[id] + if rt == nil { + rt = &resourceTags{fullType: fullType, tags: map[string]string{}} + byResource[id] = rt + } + rt.tags[aws.StringValue(td.Key)] = aws.StringValue(td.Value) + } + + var mappings []*rgt.ResourceTagMapping + for id, rt := range byResource { + if !matchesType(typeFilters, rt.fullType) { + continue + } + mappings = append(mappings, &rgt.ResourceTagMapping{ + ResourceARN: aws.String(ec2ARN(region, accountID, rt.fullType, id)), + Tags: tagMapToRGT(rt.tags), + }) + } + return mappings +} + +// ec2ARN builds an arn:aws:ec2 ARN for a resource. fullType is "ec2:". +func ec2ARN(region, accountID, fullType, id string) string { + resourceType := strings.TrimPrefix(fullType, "ec2:") + return fmt.Sprintf("arn:aws:ec2:%s:%s:%s/%s", region, accountID, resourceType, id) +} + +// matchesType reports whether a resource of fullType (e.g. +// "elasticloadbalancing:loadbalancer") passes the request's type filters. An +// empty filter set admits everything. A service-only filter ("ec2") admits all +// of that service's types; a fully-qualified filter must match exactly. +func matchesType(typeFilters map[string]bool, fullType string) bool { + if len(typeFilters) == 0 { + return true + } + if typeFilters[fullType] { + return true + } + if svc, _, ok := strings.Cut(fullType, ":"); ok { + if typeFilters[svc] { + return true + } + } + return false +} + +// filterByTags keeps only resources matching every TagFilter (AND across +// filters). Within a filter, a non-empty Values list is an OR over values; an +// empty Values list matches any value for that key. +func filterByTags(mappings []*rgt.ResourceTagMapping, filters []*rgt.TagFilter) []*rgt.ResourceTagMapping { + if len(filters) == 0 { + return mappings + } + out := mappings[:0] + for _, m := range mappings { + if matchesAllTagFilters(m.Tags, filters) { + out = append(out, m) + } + } + return out +} + +func matchesAllTagFilters(tags []*rgt.Tag, filters []*rgt.TagFilter) bool { + tagMap := make(map[string]string, len(tags)) + for _, t := range tags { + tagMap[aws.StringValue(t.Key)] = aws.StringValue(t.Value) + } + for _, f := range filters { + key := aws.StringValue(f.Key) + if key == "" { + continue + } + val, ok := tagMap[key] + if !ok { + return false + } + if len(f.Values) == 0 { + continue + } + matched := false + for _, v := range f.Values { + if aws.StringValue(v) == val { + matched = true + break + } + } + if !matched { + return false + } + } + return true +} + +// paginate slices an offset-token page out of the sorted mappings and returns +// the page plus the next token ("" when exhausted). +func paginate(mappings []*rgt.ResourceTagMapping, token *string, perPage *int64) ([]*rgt.ResourceTagMapping, string, error) { + start := 0 + if token != nil && *token != "" { + n, err := strconv.Atoi(*token) + if err != nil || n < 0 { + return nil, "", errors.New(awserrors.ErrorInvalidParameterValue) + } + start = n + } + if start > len(mappings) { + start = len(mappings) + } + + size := defaultResourcesPerPage + if perPage != nil && *perPage > 0 { + size = int(*perPage) + } + + end := start + size + if end >= len(mappings) { + return mappings[start:], "", nil + } + return mappings[start:end], strconv.Itoa(end), nil +} + +func elbv2TagsToRGT(tags []*elbv2.Tag) []*rgt.Tag { + out := make([]*rgt.Tag, 0, len(tags)) + for _, t := range tags { + out = append(out, &rgt.Tag{Key: t.Key, Value: t.Value}) + } + return out +} + +func tagMapToRGT(tags map[string]string) []*rgt.Tag { + keys := make([]string, 0, len(tags)) + for k := range tags { + keys = append(keys, k) + } + sort.Strings(keys) + out := make([]*rgt.Tag, 0, len(keys)) + for _, k := range keys { + out = append(out, &rgt.Tag{Key: aws.String(k), Value: aws.String(tags[k])}) + } + return out +} + +func lowerStringSlice(in []*string) map[string]bool { + if len(in) == 0 { + return nil + } + out := make(map[string]bool, len(in)) + for _, s := range in { + if s != nil { + out[strings.ToLower(*s)] = true + } + } + return out +} diff --git a/spinifex/gateway/tagging/GetResources_test.go b/spinifex/gateway/tagging/GetResources_test.go new file mode 100644 index 000000000..fd7b445ac --- /dev/null +++ b/spinifex/gateway/tagging/GetResources_test.go @@ -0,0 +1,231 @@ +package gateway_tagging + +import ( + "encoding/json" + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/ec2" + rgt "github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +// fakeLister returns canned mappings so getResources can be exercised without a +// NATS backend. +type fakeLister struct { + elbv2 []*rgt.ResourceTagMapping + ec2 []*rgt.ResourceTagMapping + elbv2Err error + ec2Err error + gotFilter map[string]bool +} + +func (f *fakeLister) listELBv2(typeFilters map[string]bool) ([]*rgt.ResourceTagMapping, error) { + f.gotFilter = typeFilters + return f.elbv2, f.elbv2Err +} + +func (f *fakeLister) listEC2(typeFilters map[string]bool) ([]*rgt.ResourceTagMapping, error) { + return f.ec2, f.ec2Err +} + +func mustJSON(t *testing.T, v any) []byte { + t.Helper() + b, err := json.Marshal(v) + require.NoError(t, err) + return b +} + +func TestMatchesType(t *testing.T) { + // Empty filter set admits everything. + assert.True(t, matchesType(nil, "elasticloadbalancing:loadbalancer")) + + exact := map[string]bool{"elasticloadbalancing:loadbalancer": true} + assert.True(t, matchesType(exact, "elasticloadbalancing:loadbalancer")) + assert.False(t, matchesType(exact, "elasticloadbalancing:targetgroup")) + assert.False(t, matchesType(exact, "ec2:subnet")) + + // Service-only filter admits all of that service's types. + svcOnly := map[string]bool{"ec2": true} + assert.True(t, matchesType(svcOnly, "ec2:subnet")) + assert.True(t, matchesType(svcOnly, "ec2:security-group")) + assert.False(t, matchesType(svcOnly, "elasticloadbalancing:loadbalancer")) +} + +func TestEC2ARN(t *testing.T) { + assert.Equal(t, + "arn:aws:ec2:us-east-1:123456789012:subnet/subnet-abc", + ec2ARN("us-east-1", "123456789012", "ec2:subnet", "subnet-abc")) +} + +func mapping(arn string, kv ...string) *rgt.ResourceTagMapping { + var tags []*rgt.Tag + for i := 0; i+1 < len(kv); i += 2 { + tags = append(tags, &rgt.Tag{Key: aws.String(kv[i]), Value: aws.String(kv[i+1])}) + } + return &rgt.ResourceTagMapping{ResourceARN: aws.String(arn), Tags: tags} +} + +func tagFilter(key string, values ...string) *rgt.TagFilter { + return &rgt.TagFilter{Key: aws.String(key), Values: aws.StringSlice(values)} +} + +func TestFilterByTags(t *testing.T) { + in := []*rgt.ResourceTagMapping{ + mapping("arn:a", "elbv2.k8s.aws/cluster", "prod", "env", "live"), + mapping("arn:b", "elbv2.k8s.aws/cluster", "dev"), + mapping("arn:c", "env", "live"), + } + + // No filters: passthrough. + assert.Len(t, filterByTags(in, nil), 3) + + // Key-only filter: any value for the key. + got := filterByTags(in, []*rgt.TagFilter{tagFilter("elbv2.k8s.aws/cluster")}) + require.Len(t, got, 2) + + // Key+value filter: exact value match (OR over values). + got = filterByTags(in, []*rgt.TagFilter{tagFilter("elbv2.k8s.aws/cluster", "prod", "staging")}) + require.Len(t, got, 1) + assert.Equal(t, "arn:a", aws.StringValue(got[0].ResourceARN)) + + // AND across filters. + got = filterByTags(in, []*rgt.TagFilter{ + tagFilter("elbv2.k8s.aws/cluster", "prod"), + tagFilter("env", "live"), + }) + require.Len(t, got, 1) + assert.Equal(t, "arn:a", aws.StringValue(got[0].ResourceARN)) + + // Filter on a key no resource has: empty result. + assert.Empty(t, filterByTags(in, []*rgt.TagFilter{tagFilter("missing")})) +} + +func TestPaginate(t *testing.T) { + all := []*rgt.ResourceTagMapping{ + mapping("arn:0"), mapping("arn:1"), mapping("arn:2"), mapping("arn:3"), mapping("arn:4"), + } + + // First page of 2, expect a next token. + page, next, err := paginate(all, nil, aws.Int64(2)) + require.NoError(t, err) + assert.Len(t, page, 2) + assert.Equal(t, "2", next) + + // Follow the token to the middle page. + page, next, err = paginate(all, aws.String("2"), aws.Int64(2)) + require.NoError(t, err) + assert.Len(t, page, 2) + assert.Equal(t, "4", next) + + // Last partial page: no next token. + page, next, err = paginate(all, aws.String("4"), aws.Int64(2)) + require.NoError(t, err) + assert.Len(t, page, 1) + assert.Equal(t, "", next) + + // Default page size returns everything in one page. + page, next, err = paginate(all, nil, nil) + require.NoError(t, err) + assert.Len(t, page, 5) + assert.Equal(t, "", next) + + // Bad token is rejected. + _, _, err = paginate(all, aws.String("not-a-number"), nil) + require.Error(t, err) +} + +func TestGetResources_MergesFiltersSortsPaginates(t *testing.T) { + lister := &fakeLister{ + elbv2: []*rgt.ResourceTagMapping{ + mapping("arn:elb:c", "elbv2.k8s.aws/cluster", "prod"), + mapping("arn:elb:a", "elbv2.k8s.aws/cluster", "dev"), + }, + ec2: []*rgt.ResourceTagMapping{ + mapping("arn:ec2:b", "elbv2.k8s.aws/cluster", "prod"), + }, + } + + // Tag-filter to prod + page size 1: two matches (arn:ec2:b, arn:elb:c), + // ARN-sorted, first page returns arn:ec2:b with a next token. + body := mustJSON(t, rgt.GetResourcesInput{ + TagFilters: []*rgt.TagFilter{tagFilter("elbv2.k8s.aws/cluster", "prod")}, + ResourcesPerPage: aws.Int64(1), + }) + out, err := getResources(lister, body) + require.NoError(t, err) + res, ok := out.(*rgt.GetResourcesOutput) + require.True(t, ok) + require.Len(t, res.ResourceTagMappingList, 1) + assert.Equal(t, "arn:ec2:b", aws.StringValue(res.ResourceTagMappingList[0].ResourceARN)) + assert.Equal(t, "1", aws.StringValue(res.PaginationToken)) + + // Follow the token: last page, arn:elb:c, empty token. + body = mustJSON(t, rgt.GetResourcesInput{ + TagFilters: []*rgt.TagFilter{tagFilter("elbv2.k8s.aws/cluster", "prod")}, + ResourcesPerPage: aws.Int64(1), + PaginationToken: aws.String("1"), + }) + out, err = getResources(lister, body) + require.NoError(t, err) + res, ok = out.(*rgt.GetResourcesOutput) + require.True(t, ok) + require.Len(t, res.ResourceTagMappingList, 1) + assert.Equal(t, "arn:elb:c", aws.StringValue(res.ResourceTagMappingList[0].ResourceARN)) + assert.Equal(t, "", aws.StringValue(res.PaginationToken)) +} + +func TestGetResources_ResourceTypeFiltersLowercasedAndPassed(t *testing.T) { + lister := &fakeLister{} + body := mustJSON(t, rgt.GetResourcesInput{ + ResourceTypeFilters: aws.StringSlice([]string{"ElasticLoadBalancing:LoadBalancer"}), + }) + _, err := getResources(lister, body) + require.NoError(t, err) + assert.True(t, lister.gotFilter["elasticloadbalancing:loadbalancer"]) +} + +func TestGetResources_ListerErrorPropagates(t *testing.T) { + lister := &fakeLister{elbv2Err: assert.AnError} + _, err := getResources(lister, []byte("{}")) + require.ErrorIs(t, err, assert.AnError) +} + +func TestGetResources_InvalidBody(t *testing.T) { + _, err := getResources(&fakeLister{}, []byte("not-json")) + require.Error(t, err) +} + +func TestBuildEC2Mappings(t *testing.T) { + tags := []*ec2.TagDescription{ + {ResourceId: aws.String("subnet-1"), ResourceType: aws.String("subnet"), Key: aws.String("Name"), Value: aws.String("a")}, + {ResourceId: aws.String("subnet-1"), ResourceType: aws.String("subnet"), Key: aws.String("env"), Value: aws.String("prod")}, + {ResourceId: aws.String("sg-1"), ResourceType: aws.String("security-group"), Key: aws.String("Name"), Value: aws.String("b")}, + {ResourceId: aws.String(""), ResourceType: aws.String("subnet"), Key: aws.String("skip"), Value: aws.String("me")}, + } + + // No type filter: both resources, tags merged per resource. + all := buildEC2Mappings(tags, "us-east-1", "123456789012", nil) + require.Len(t, all, 2) + bySubnet := map[string]*rgt.ResourceTagMapping{} + for _, m := range all { + bySubnet[aws.StringValue(m.ResourceARN)] = m + } + subnet := bySubnet["arn:aws:ec2:us-east-1:123456789012:subnet/subnet-1"] + require.NotNil(t, subnet) + assert.Len(t, subnet.Tags, 2) + + // Type filter narrows to subnets only. + onlySubnets := buildEC2Mappings(tags, "us-east-1", "123456789012", map[string]bool{"ec2:subnet": true}) + require.Len(t, onlySubnets, 1) + assert.Equal(t, "arn:aws:ec2:us-east-1:123456789012:subnet/subnet-1", aws.StringValue(onlySubnets[0].ResourceARN)) +} + +func TestTagMapToRGT_SortedDeterministic(t *testing.T) { + out := tagMapToRGT(map[string]string{"b": "2", "a": "1", "c": "3"}) + require.Len(t, out, 3) + assert.Equal(t, "a", aws.StringValue(out[0].Key)) + assert.Equal(t, "b", aws.StringValue(out[1].Key)) + assert.Equal(t, "c", aws.StringValue(out[2].Key)) +} diff --git a/spinifex/gateway/tagging/handler.go b/spinifex/gateway/tagging/handler.go new file mode 100644 index 000000000..0616318b5 --- /dev/null +++ b/spinifex/gateway/tagging/handler.go @@ -0,0 +1,43 @@ +// Package gateway_tagging is the HTTP-side glue between awsgw and the Resource +// Groups Tagging API. Like ACM it speaks AWS JSON 1.1 (X-Amz-Target dispatch, +// Content-Type application/x-amz-json-1.1). GetResources is answered by +// aggregating the elbv2 and ec2 tag stores over NATS — there is no dedicated +// tagging store. Error envelopes are emitted centrally by the shared gateway +// ErrorHandler. +package gateway_tagging + +import ( + "encoding/json" + "log/slog" + "net/http" + + "github.com/aws/aws-sdk-go/private/protocol/json/jsonutil" + "github.com/mulgadc/spinifex/spinifex/awserrors" +) + +// JSONContentType is the AWS JSON 1.1 content type tagging clients expect. +const JSONContentType = "application/x-amz-json-1.1" + +// WriteJSONResponse serialises obj as a 200 AWS JSON 1.1 response using the +// SDK's own marshaler (epoch-seconds timestamps), the same path ACM uses. +func WriteJSONResponse(w http.ResponseWriter, obj any) { + body, err := jsonutil.BuildJSON(obj) + if err != nil { + slog.Error("tagging: failed to marshal response JSON", "err", err) + http.Error(w, awserrors.ErrorInternalError, http.StatusInternalServerError) + return + } + w.Header().Set("Content-Type", JSONContentType) + w.WriteHeader(http.StatusOK) + if _, err := w.Write(body); err != nil { + slog.Error("tagging: failed to write response", "err", err) + } +} + +// unmarshalIfBody decodes body into out only when body is non-empty. +func unmarshalIfBody(body []byte, out any) error { + if len(body) == 0 { + return nil + } + return json.Unmarshal(body, out) +} diff --git a/spinifex/gateway/tagging_test.go b/spinifex/gateway/tagging_test.go new file mode 100644 index 000000000..76425cb7f --- /dev/null +++ b/spinifex/gateway/tagging_test.go @@ -0,0 +1,66 @@ +package gateway + +import ( + "context" + "net/http" + "net/http/httptest" + "strings" + "testing" + + "github.com/mulgadc/spinifex/spinifex/awserrors" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func setupTaggingRequest(target, body string) *http.Request { + req := httptest.NewRequest(http.MethodPost, "/", strings.NewReader(body)) + if target != "" { + req.Header.Set("X-Amz-Target", target) + } + ctx := context.WithValue(req.Context(), ctxService, "tagging") + ctx = context.WithValue(ctx, ctxAccountID, "123456789012") + return req.WithContext(ctx) +} + +func TestTaggingActionFromTarget(t *testing.T) { + assert.Equal(t, "GetResources", taggingActionFromTarget("ResourceGroupsTaggingAPI_20170126.GetResources")) + assert.Equal(t, "GetResources", taggingActionFromTarget("GetResources")) + assert.Equal(t, "", taggingActionFromTarget("")) +} + +func TestTaggingActionsMap_AllActionsRegistered(t *testing.T) { + expected := []string{ + "GetResources", + } + for _, action := range expected { + _, ok := taggingActions[action] + assert.True(t, ok, "action %q should be registered in taggingActions", action) + } + assert.Len(t, taggingActions, len(expected)) +} + +func TestTaggingRequest_MissingTarget(t *testing.T) { + gw := &GatewayConfig{DisableLogging: true} + w := httptest.NewRecorder() + err := gw.Tagging_Request(w, setupTaggingRequest("", "")) + require.Error(t, err) + assert.Equal(t, awserrors.ErrorMissingAction, err.Error()) +} + +func TestTaggingRequest_UnknownAction(t *testing.T) { + gw := &GatewayConfig{DisableLogging: true} + w := httptest.NewRecorder() + err := gw.Tagging_Request(w, setupTaggingRequest("ResourceGroupsTaggingAPI_20170126.TagResources", "{}")) + require.Error(t, err) + assert.Equal(t, awserrors.ErrorInvalidAction, err.Error()) +} + +// A known action with no NATS connection passes routing + policy and fails at +// the NATS-availability guard. +func TestTaggingRequest_KnownActionNoNATS(t *testing.T) { + gw := &GatewayConfig{DisableLogging: true} + w := httptest.NewRecorder() + err := gw.Tagging_Request(w, setupTaggingRequest("ResourceGroupsTaggingAPI_20170126.GetResources", "{}")) + require.Error(t, err) + assert.Equal(t, awserrors.ErrorServerInternal, err.Error()) +} diff --git a/spinifex/handlers/eks/cluster_state.go b/spinifex/handlers/eks/cluster_state.go index 89740a6a8..c406757b3 100644 --- a/spinifex/handlers/eks/cluster_state.go +++ b/spinifex/handlers/eks/cluster_state.go @@ -73,6 +73,11 @@ type ClusterMeta struct { // report (server + joined agents). Surfaces nodegroup join/scale progress // without the host needing apiserver reachability. NodeCount int `json:"nodeCount,omitempty"` + // BuiltinIngress records whether the cluster opted into K3s' bundled + // traefik + servicelb (dev / interim in-VPC app exposure), derived from the + // managed-ingress tag at CreateCluster. Default false = AWS parity (built-ins + // disabled; ingress via the AWS Load Balancer Controller). + BuiltinIngress bool `json:"builtinIngress,omitempty"` } // ErrClusterNotFound is returned by GetClusterMeta / SetClusterStatus / diff --git a/spinifex/handlers/eks/create_cluster_test.go b/spinifex/handlers/eks/create_cluster_test.go index f283bb465..6745d3f70 100644 --- a/spinifex/handlers/eks/create_cluster_test.go +++ b/spinifex/handlers/eks/create_cluster_test.go @@ -24,6 +24,30 @@ func createInput(name string) *eks.CreateClusterInput { } } +func TestCreateCluster_BuiltinIngressDefaultsOff(t *testing.T) { + f := newEKSServiceFixture(t) + + _, err := f.svc.CreateCluster(createInput("alpha"), testAccountID, "") + require.NoError(t, err) + + meta, err := GetClusterMeta(f.kv, "alpha") + require.NoError(t, err) + assert.False(t, meta.BuiltinIngress, "parity default: built-in ingress off") +} + +func TestCreateCluster_BuiltinIngressFromTag(t *testing.T) { + f := newEKSServiceFixture(t) + + in := createInput("alpha") + in.Tags = map[string]*string{managedIngressTagKey: aws.String("true")} + _, err := f.svc.CreateCluster(in, testAccountID, "") + require.NoError(t, err) + + meta, err := GetClusterMeta(f.kv, "alpha") + require.NoError(t, err) + assert.True(t, meta.BuiltinIngress, "managed-ingress tag opts into built-in ingress") +} + // A create that fails after the NLB is provisioned must leave the NLB ARNs // persisted on the (now FAILED) meta, otherwise the resources leak with no // owning record and DeleteCluster cannot reclaim them (bead 165.3). diff --git a/spinifex/handlers/eks/k3s_server_vm.go b/spinifex/handlers/eks/k3s_server_vm.go index f366ac850..37bae5555 100644 --- a/spinifex/handlers/eks/k3s_server_vm.go +++ b/spinifex/handlers/eks/k3s_server_vm.go @@ -132,6 +132,11 @@ type K3sServerInput struct { SecretKey string GatewayCACert string InstanceType string + // BuiltinIngress keeps K3s' bundled traefik + servicelb enabled (dev / + // interim in-VPC app exposure). Default false disables them for AWS parity, + // where Service type=LoadBalancer / Ingress are satisfied by the AWS Load + // Balancer Controller instead. + BuiltinIngress bool } // K3sServerOutput carries the identifiers the caller needs to persist into @@ -405,23 +410,34 @@ func buildK3sUserData(in K3sServerInput) string { // probes https:///healthz anonymously to gate ACTIVE, so it must be // reachable; the default RBAC binds only the health/version non-resource // paths to system:unauthenticated, so this exposes nothing else. - k3sConfig := strings.Join([]string{ + // In real EKS neither traefik nor servicelb exists; Service type=LoadBalancer + // and Ingress are reconciled by the AWS Load Balancer Controller. Disable the + // K3s built-ins by default for parity. A cluster opted into built-in ingress + // (dev / interim) keeps them so apps are reachable in-VPC before the + // controller add-on lands. + configLines := []string{ "cluster-init: true", "etcd-expose-metrics: true", + } + if !in.BuiltinIngress { + configLines = append(configLines, "disable:", " - traefik", " - servicelb") + } + configLines = append(configLines, "tls-san:", - " - " + in.NLBDNS, + " - "+in.NLBDNS, "kube-apiserver-arg:", - " - service-account-key-file=" + k3sOIDCPublicKeyPath, - " - service-account-signing-key-file=" + k3sOIDCSigningKeyPath, - " - service-account-issuer=" + in.OIDCIssuer, + " - service-account-key-file="+k3sOIDCPublicKeyPath, + " - service-account-signing-key-file="+k3sOIDCSigningKeyPath, + " - service-account-issuer="+in.OIDCIssuer, " - api-audiences=sts.amazonaws.com", " - anonymous-auth=true", - " - authentication-token-webhook-config-file=" + k3sTokenWebhookKubeconfigPath, + " - authentication-token-webhook-config-file="+k3sTokenWebhookKubeconfigPath, " - authentication-token-webhook-cache-ttl=5m", // Pin v1 so the apiserver decodes the webhook's authentication.k8s.io/v1 // TokenReview response; the default v1beta1 rejects the GVK mismatch (401). " - authentication-token-webhook-version=v1", - }, "\n") + ) + k3sConfig := strings.Join(configLines, "\n") files := []userDataFile{ // first-boot.env carries the system SigV4 secret key, so keep it diff --git a/spinifex/handlers/eks/k3s_server_vm_test.go b/spinifex/handlers/eks/k3s_server_vm_test.go index 851831763..dd0524c74 100644 --- a/spinifex/handlers/eks/k3s_server_vm_test.go +++ b/spinifex/handlers/eks/k3s_server_vm_test.go @@ -291,6 +291,11 @@ func TestLaunchK3sServerVM_UserDataContainsAllArtifacts(t *testing.T) { assert.Contains(t, udata, "FAKEPUB") assert.Contains(t, udata, "path: "+k3sConfigPath) + // Parity default (BuiltinIngress=false): K3s' bundled traefik + servicelb are + // disabled; Service type=LoadBalancer / Ingress are the AWS LB Controller's job. + assert.Contains(t, udata, "disable:") + assert.Contains(t, udata, " - traefik") + assert.Contains(t, udata, " - servicelb") assert.Contains(t, udata, "tls-san:") assert.Contains(t, udata, " - eks-alpha-lb-001.us-east-1.elb.spinifex.local") // service-account-key-file must point at the PUBLIC key; the signing key @@ -325,6 +330,22 @@ func TestLaunchK3sServerVM_UserDataContainsAllArtifacts(t *testing.T) { assert.Equal(t, 1, strings.Count(udata, "\nruncmd:")) } +func TestLaunchK3sServerVM_BuiltinIngressOptInKeepsK3sDefaults(t *testing.T) { + vpc, inst, ami := &fakeK3sVPC{}, &fakeK3sInst{}, &fakeK3sAMI{} + + in := validK3sInput() + in.BuiltinIngress = true + _, err := LaunchK3sServerVM(vpc, inst, ami, in) + require.NoError(t, err) + require.Len(t, inst.launchCalls, 1) + + udata := inst.launchCalls[0].UserData + // Opted in: leave K3s' traefik + servicelb running, so no disable block. + assert.NotContains(t, udata, "disable:") + assert.NotContains(t, udata, "- traefik") + assert.NotContains(t, udata, "- servicelb") +} + func TestLaunchK3sServerVM_UsesEmbeddedEtcd(t *testing.T) { vpc, inst, ami := &fakeK3sVPC{}, &fakeK3sInst{}, &fakeK3sAMI{} diff --git a/spinifex/handlers/eks/service_impl.go b/spinifex/handlers/eks/service_impl.go index f891dce2a..44f90f86f 100644 --- a/spinifex/handlers/eks/service_impl.go +++ b/spinifex/handlers/eks/service_impl.go @@ -274,6 +274,18 @@ func logCreateErr(name, accountID, stage string, err error) error { return fmt.Errorf("%s: %w", stage, err) } +// managedIngressTagKey is the CreateCluster tag that opts a cluster into K3s' +// bundled traefik + servicelb (dev / interim in-VPC app exposure). Value "true" +// (case-insensitive) enables it; absent or any other value keeps AWS parity +// (built-ins disabled, ingress via the AWS Load Balancer Controller). +const managedIngressTagKey = "spinifex.io/managed-ingress" + +// builtinIngressEnabled reports whether the CreateCluster tags opt into the K3s +// built-in ingress stack. +func builtinIngressEnabled(tags map[string]*string) bool { + return strings.EqualFold(aws.StringValue(tags[managedIngressTagKey]), "true") +} + func (s *EKSServiceImpl) CreateCluster(input *eks.CreateClusterInput, accountID, callerPrincipalARN string) (*eks.CreateClusterOutput, error) { if err := s.requireOrchestrationDeps("CreateCluster"); err != nil { return nil, err @@ -337,7 +349,8 @@ func (s *EKSServiceImpl) CreateCluster(input *eks.CreateClusterInput, accountID, SubnetIds: subnetIDs, VpcId: vpcID, }, - CreatedAt: time.Now().UTC(), + BuiltinIngress: builtinIngressEnabled(input.Tags), + CreatedAt: time.Now().UTC(), } if err := PutClusterMeta(acctKV, meta); err != nil { return nil, logCreateErr(name, accountID, "persist initial meta", err) @@ -401,6 +414,7 @@ func (s *EKSServiceImpl) CreateCluster(input *eks.CreateClusterInput, accountID, AccessKey: s.deps.SystemAccessKey, SecretKey: s.deps.SystemSecretKey, GatewayCACert: s.deps.GatewayCACert, + BuiltinIngress: meta.BuiltinIngress, }) if err != nil { s.markFailed(acctKV, name) diff --git a/spinifex/handlers/elbv2/service.go b/spinifex/handlers/elbv2/service.go index 6a94aaa60..9492e1eab 100644 --- a/spinifex/handlers/elbv2/service.go +++ b/spinifex/handlers/elbv2/service.go @@ -11,6 +11,7 @@ type ELBv2Service interface { DescribeLoadBalancerAttributes(input *elbv2.DescribeLoadBalancerAttributesInput, accountID string) (*elbv2.DescribeLoadBalancerAttributesOutput, error) SetSecurityGroups(input *elbv2.SetSecurityGroupsInput, accountID string) (*elbv2.SetSecurityGroupsOutput, error) SetIpAddressType(input *elbv2.SetIpAddressTypeInput, accountID string) (*elbv2.SetIpAddressTypeOutput, error) + SetSubnets(input *elbv2.SetSubnetsInput, accountID string) (*elbv2.SetSubnetsOutput, error) CreateTargetGroup(input *elbv2.CreateTargetGroupInput, accountID string) (*elbv2.CreateTargetGroupOutput, error) ModifyTargetGroup(input *elbv2.ModifyTargetGroupInput, accountID string) (*elbv2.ModifyTargetGroupOutput, error) diff --git a/spinifex/handlers/elbv2/service_impl.go b/spinifex/handlers/elbv2/service_impl.go index f4842f4be..65dcb20c9 100644 --- a/spinifex/handlers/elbv2/service_impl.go +++ b/spinifex/handlers/elbv2/service_impl.go @@ -436,6 +436,81 @@ func buildExtraENIInputs(eniIDs []string, eniDetails map[string]*ec2.NetworkInte return extras } +// lbVMLaunch is the outcome of booting the system VM that backs a load +// balancer. failed is true when the VM could not be launched (missing system +// credentials or a launcher error) so the caller can mark the LB failed. +type lbVMLaunch struct { + instanceID string + vpcIP string + publicIP string + hostPorts map[int]int + failed bool +} + +// launchLBVM boots the system VM backing a load balancer with the given ENI +// set. The first ENI is the primary NIC; any additional ENIs are passed as +// ExtraENIs so the daemon sets up a tap + QEMU NIC per subnet, giving the LB VM +// data-plane presence in every subnet it spans. When no launcher is configured +// the call is a no-op (zero value, failed=false) so launcher-less deployments +// keep the LB Active. Shared by CreateLoadBalancer and the SetSubnets relaunch. +func (s *ELBv2ServiceImpl) launchLBVM(lbID, scheme string, eniIDs, subnets []string, accountID string) lbVMLaunch { + var res lbVMLaunch + if s.InstanceLauncher == nil || len(eniIDs) == 0 || len(subnets) == 0 { + return res + } + + eniDetails := s.describeENIs(eniIDs, accountID) + primary := eniDetails[eniIDs[0]] + primaryIP := "" + primaryMAC := "" + if primary != nil { + primaryIP = aws.StringValue(primary.PrivateIpAddress) + primaryMAC = aws.StringValue(primary.MacAddress) + } + + extraENIInputs := buildExtraENIInputs(eniIDs, eniDetails) + + if s.GatewayURL == "" || s.SystemAccessKey == "" || s.SystemSecretKey == "" { + slog.Error("launchLBVM: system credentials not configured — cannot launch LB VM", "lbId", lbID) + res.failed = true + return res + } + + nics := s.buildMicrovmNICs(primaryIP, primaryMAC, subnets[0], eniIDs[0], scheme, extraENIInputs, accountID) + launchInput := &SystemInstanceInput{ + InstanceType: s.getSystemInstanceType(), + SubnetID: subnets[0], + ENIID: eniIDs[0], + ENIMac: primaryMAC, + ENIIP: primaryIP, + ExtraENIs: extraENIInputs, + Scheme: scheme, + AccountID: accountID, + NICs: nics, + LBAgentEnv: s.buildLBAgentEnv(lbID), + CACert: s.CACert, + } + // Dev-mode only: forward HTTP/HTTPS ports from host for local testing. + // In production (VPC networking), traffic reaches the LB VM's VPC IP directly. + if s.config != nil && s.config.Daemon.DevNetworking { + launchInput.HostfwdPorts = []int{80, 443} + } + + out, launchErr := s.InstanceLauncher.LaunchSystemInstance(launchInput) + if launchErr != nil { + slog.Error("launchLBVM: failed to launch LB VM", "lbId", lbID, "err", launchErr) + res.failed = true + return res + } + + res.instanceID = out.InstanceID + res.vpcIP = out.PrivateIP + res.publicIP = out.PublicIP + res.hostPorts = out.HostfwdMap + slog.Info("launchLBVM: LB VM launched", "lbId", lbID, "instanceId", out.InstanceID, "ip", out.PrivateIP, "publicIp", out.PublicIP, "hostfwd", out.HostfwdMap) + return res +} + // loadRecoveryLBIndex returns the instanceID->LB map, populated lazily on // first successful call. Errors are not cached: a transient JetStream // failure at startup must not condemn every subsequent recovery candidate @@ -1143,64 +1218,14 @@ func (s *ELBv2ServiceImpl) CreateLoadBalancer(input *elbv2.CreateLoadBalancerInp // The first ENI is the primary NIC; any additional ENIs are passed as // ExtraENIs so the daemon sets up a tap + QEMU NIC for each, giving the // ALB VM data-plane presence in every subnet the LB spans. - var albInstanceID string - var albVPCIP string - var hostPorts map[int]int - var launchFailed bool - if s.InstanceLauncher != nil && len(eniIDs) > 0 && len(subnets) > 0 { - eniDetails := s.describeENIs(eniIDs, accountID) - - primary := eniDetails[eniIDs[0]] - primaryIP := "" - primaryMAC := "" - if primary != nil { - primaryIP = aws.StringValue(primary.PrivateIpAddress) - primaryMAC = aws.StringValue(primary.MacAddress) - } - - extraENIInputs := buildExtraENIInputs(eniIDs, eniDetails) - - var launchInput *SystemInstanceInput - if s.GatewayURL == "" || s.SystemAccessKey == "" || s.SystemSecretKey == "" { - slog.Error("CreateLoadBalancer: system credentials not configured — cannot launch ALB VM", "lbId", lbID) - launchFailed = true - } else { - nics := s.buildMicrovmNICs(primaryIP, primaryMAC, subnets[0], eniIDs[0], scheme, extraENIInputs, accountID) - launchInput = &SystemInstanceInput{ - InstanceType: s.getSystemInstanceType(), - SubnetID: subnets[0], - ENIID: eniIDs[0], - ENIMac: primaryMAC, - ENIIP: primaryIP, - ExtraENIs: extraENIInputs, - Scheme: scheme, - AccountID: accountID, - NICs: nics, - LBAgentEnv: s.buildLBAgentEnv(lbID), - CACert: s.CACert, - } - } - if !launchFailed && launchInput != nil { - // Dev-mode only: forward HTTP/HTTPS ports from host for local testing. - // In production (VPC networking), traffic reaches the ALB VM's VPC IP directly. - if s.config != nil && s.config.Daemon.DevNetworking { - launchInput.HostfwdPorts = []int{80, 443} - } - out, launchErr := s.InstanceLauncher.LaunchSystemInstance(launchInput) - if launchErr != nil { - slog.Error("CreateLoadBalancer: failed to launch ALB VM", "lbId", lbID, "err", launchErr) - launchFailed = true - } else { - albInstanceID = out.InstanceID - albVPCIP = out.PrivateIP - hostPorts = out.HostfwdMap - // Record public IP on the first AZ entry for internet-facing ALBs. - if out.PublicIP != "" && len(availZones) > 0 { - availZones[0].PublicIP = out.PublicIP - } - slog.Info("CreateLoadBalancer: ALB VM launched", "lbId", lbID, "instanceId", albInstanceID, "ip", out.PrivateIP, "publicIp", out.PublicIP, "hostfwd", hostPorts) - } - } + launch := s.launchLBVM(lbID, scheme, eniIDs, subnets, accountID) + albInstanceID := launch.instanceID + albVPCIP := launch.vpcIP + hostPorts := launch.hostPorts + launchFailed := launch.failed + // Record public IP on the first AZ entry for internet-facing LBs. + if launch.publicIP != "" && len(availZones) > 0 { + availZones[0].PublicIP = launch.publicIP } // ALB starts in provisioning until the agent inside the VM connects and diff --git a/spinifex/handlers/elbv2/service_impl_lb_network.go b/spinifex/handlers/elbv2/service_impl_lb_network.go index 85d648fe4..9194249a1 100644 --- a/spinifex/handlers/elbv2/service_impl_lb_network.go +++ b/spinifex/handlers/elbv2/service_impl_lb_network.go @@ -2,6 +2,7 @@ package handlers_elbv2 import ( "errors" + "fmt" "log/slog" "github.com/aws/aws-sdk-go/aws" @@ -107,3 +108,266 @@ func (s *ELBv2ServiceImpl) SetSecurityGroups(input *elbv2.SetSecurityGroupsInput SecurityGroupIds: aws.StringSlice(sgs), }, nil } + +// SetSubnets enables the subnets (and their backing ENIs) for a load balancer. +// It is a full add+remove: a subnet in the request but not on the LB gets a new +// managed ENI; a subnet on the LB but absent from the request has its ENI +// removed. The system VM binds its data-plane taps at boot and the launcher +// exposes no live ENI hotplug, so the new ENI set is applied by relaunching the +// LB VM — a brief data-plane interruption. The record is mutated only after the +// new ENIs exist and the VM has been relaunched. +func (s *ELBv2ServiceImpl) SetSubnets(input *elbv2.SetSubnetsInput, accountID string) (*elbv2.SetSubnetsOutput, error) { + if input == nil || input.LoadBalancerArn == nil || *input.LoadBalancerArn == "" { + return nil, errors.New(awserrors.ErrorMissingParameter) + } + + desired := desiredSubnetSet(input) + if len(desired) == 0 { + return nil, errors.New(awserrors.ErrorMissingParameter) + } + + lb, err := s.store.GetLoadBalancerByArn(*input.LoadBalancerArn) + if err != nil { + slog.Error("SetSubnets: failed to get LB", "arn", *input.LoadBalancerArn, "err", err) + return nil, errors.New(awserrors.ErrorServerInternal) + } + if lb == nil || lb.AccountID != accountID { + return nil, errors.New(awserrors.ErrorELBv2LoadBalancerNotFound) + } + + current := subnetENIMap(lb) + desiredSet := make(map[string]bool, len(desired)) + for _, sn := range desired { + desiredSet[sn] = true + } + + var toAdd, toRemove []string + for _, sn := range desired { + if _, ok := current[sn]; !ok { + toAdd = append(toAdd, sn) + } + } + for sn := range current { + if !desiredSet[sn] { + toRemove = append(toRemove, sn) + } + } + + if len(toAdd) == 0 && len(toRemove) == 0 { + return s.setSubnetsOutput(lb), nil // idempotent — no change + } + + // Without a VPC service we cannot manage ENIs; record the requested subnet + // set so the API stays consistent for launcher-less / test deployments. + if s.VPCService == nil { + lb.Subnets = desired + lb.AvailZones = rebuildAvailZones(desired, lb.AvailZones, nil) + if err := s.store.PutLoadBalancer(lb); err != nil { + slog.Error("SetSubnets: failed to persist LB", "arn", *input.LoadBalancerArn, "err", err) + return nil, errors.New(awserrors.ErrorServerInternal) + } + return s.setSubnetsOutput(lb), nil + } + + // Create ENIs for the added subnets first; roll them back on any failure so + // a partial apply never leaks ENIs or mutates the live LB. + newENIBySubnet := make(map[string]string, len(toAdd)) + newAZBySubnet := make(map[string]string, len(toAdd)) + rollbackNewENIs := func() { + for _, created := range newENIBySubnet { + if _, delErr := s.VPCService.DeleteNetworkInterface(&ec2.DeleteNetworkInterfaceInput{ + NetworkInterfaceId: aws.String(created), + }, accountID); delErr != nil { + slog.Error("SetSubnets: rollback failed to delete ENI", "eni", created, "err", delErr) + } + } + } + for _, subnetID := range toAdd { + eniID, az, eniErr := s.createLBENI(subnetID, lb, accountID) + if eniErr != nil { + rollbackNewENIs() + slog.Error("SetSubnets: failed to create ENI", "subnet", subnetID, "err", eniErr) + return nil, errors.New(awserrors.ErrorELBv2SubnetNotFound) + } + newENIBySubnet[subnetID] = eniID + newAZBySubnet[subnetID] = az + } + + // Assemble the new ENI set in desired-subnet order (primary = first subnet). + newENIs := make([]string, 0, len(desired)) + for _, sn := range desired { + if eniID, ok := current[sn]; ok { + newENIs = append(newENIs, eniID) + } else { + newENIs = append(newENIs, newENIBySubnet[sn]) + } + } + + // Terminate the LB VM before reshaping its ENI set, then relaunch it on the + // new set. + if lb.InstanceID != "" && s.InstanceLauncher != nil { + if err := s.InstanceLauncher.TerminateSystemInstance(lb.InstanceID); err != nil { + rollbackNewENIs() + slog.Error("SetSubnets: failed to terminate LB VM for relaunch", "arn", *input.LoadBalancerArn, "instanceId", lb.InstanceID, "err", err) + return nil, errors.New(awserrors.ErrorServerInternal) + } + } + + // TerminateSystemInstance tears down the VM but leaves its ENIs marked + // in-use, so detach the existing ENIs explicitly: retained ones must be free + // to re-attach to the relaunched VM, and removed ones must be detached before + // they can be deleted. + for _, eniID := range current { + if detachErr := s.VPCService.DetachENI(accountID, eniID); detachErr != nil { + slog.Warn("SetSubnets: failed to detach ENI before relaunch", "eni", eniID, "err", detachErr) + } + } + + // Delete ENIs for removed subnets now that they are detached. + for _, sn := range toRemove { + eniID := current[sn] + if _, delErr := s.VPCService.DeleteNetworkInterface(&ec2.DeleteNetworkInterfaceInput{ + NetworkInterfaceId: aws.String(eniID), + }, accountID); delErr != nil { + slog.Error("SetSubnets: failed to delete removed ENI", "subnet", sn, "eni", eniID, "err", delErr) + } + } + + launch := s.launchLBVM(lb.LoadBalancerID, lb.Scheme, newENIs, desired, accountID) + availZones := rebuildAvailZones(desired, lb.AvailZones, newAZBySubnet) + if launch.publicIP != "" && len(availZones) > 0 { + availZones[0].PublicIP = launch.publicIP + } + + lb.Subnets = desired + lb.ENIs = newENIs + lb.AvailZones = availZones + lb.InstanceID = launch.instanceID + lb.VPCIP = launch.vpcIP + lb.HostPorts = launch.hostPorts + lb.State = s.lbStateAfterLaunch(launch, lb.Scheme) + + if err := s.store.PutLoadBalancer(lb); err != nil { + slog.Error("SetSubnets: failed to persist LB", "arn", *input.LoadBalancerArn, "err", err) + return nil, errors.New(awserrors.ErrorServerInternal) + } + + slog.Info("SetSubnets completed", "arn", *input.LoadBalancerArn, "subnets", len(desired), "added", len(toAdd), "removed", len(toRemove), "state", lb.State) + return s.setSubnetsOutput(lb), nil +} + +// desiredSubnetSet flattens the request's Subnets and SubnetMappings into a +// de-duplicated, order-preserving subnet-ID list. +func desiredSubnetSet(input *elbv2.SetSubnetsInput) []string { + seen := make(map[string]bool) + var out []string + add := func(sn string) { + if sn != "" && !seen[sn] { + seen[sn] = true + out = append(out, sn) + } + } + for _, sn := range input.Subnets { + if sn != nil { + add(*sn) + } + } + for _, m := range input.SubnetMappings { + if m != nil && m.SubnetId != nil { + add(*m.SubnetId) + } + } + return out +} + +// subnetENIMap pairs each of the LB's current subnets with its backing ENI. +// CreateLoadBalancer and SetSubnets write Subnets and ENIs in lockstep, so the +// parallel arrays are authoritative for which ENI lives in which subnet. +func subnetENIMap(lb *LoadBalancerRecord) map[string]string { + m := make(map[string]string, len(lb.Subnets)) + for i, sn := range lb.Subnets { + if i < len(lb.ENIs) { + m[sn] = lb.ENIs[i] + } + } + return m +} + +// createLBENI creates a single managed ENI for the LB in the given subnet, +// tagged and security-grouped like the create-time ENIs. Returns the ENI ID and +// its availability zone. +func (s *ELBv2ServiceImpl) createLBENI(subnetID string, lb *LoadBalancerRecord, accountID string) (eniID, az string, err error) { + eniIn := &ec2.CreateNetworkInterfaceInput{ + SubnetId: aws.String(subnetID), + Description: aws.String(fmt.Sprintf("ELB %s/%s", lb.Name, lb.LoadBalancerID)), + TagSpecifications: []*ec2.TagSpecification{ + { + ResourceType: aws.String("network-interface"), + Tags: []*ec2.Tag{ + {Key: aws.String(elbv2ManagedByTag), Value: aws.String(elbv2ManagedByValue)}, + {Key: aws.String(elbv2LBTag), Value: aws.String(lb.LoadBalancerArn)}, + }, + }, + }, + } + if len(lb.SecurityGroups) > 0 { + eniIn.Groups = aws.StringSlice(lb.SecurityGroups) + } + out, err := s.VPCService.CreateNetworkInterface(eniIn, accountID) + if err != nil { + return "", "", err + } + eni := out.NetworkInterface + return aws.StringValue(eni.NetworkInterfaceId), aws.StringValue(eni.AvailabilityZone), nil +} + +// rebuildAvailZones produces the AvailZoneInfo list for the new subnet set in +// order, preserving the existing zone name for retained subnets and using +// newAZBySubnet for added ones. PublicIP is cleared — it is re-derived from the +// relaunched VM by the caller. +func rebuildAvailZones(subnets []string, existing []AvailZoneInfo, newAZBySubnet map[string]string) []AvailZoneInfo { + bySubnet := make(map[string]AvailZoneInfo, len(existing)) + for _, az := range existing { + bySubnet[az.SubnetId] = az + } + out := make([]AvailZoneInfo, 0, len(subnets)) + for _, sn := range subnets { + if az, ok := bySubnet[sn]; ok { + out = append(out, AvailZoneInfo{ZoneName: az.ZoneName, SubnetId: sn}) + continue + } + out = append(out, AvailZoneInfo{ZoneName: newAZBySubnet[sn], SubnetId: sn}) + } + return out +} + +// lbStateAfterLaunch mirrors CreateLoadBalancer's post-launch state gate: a VM +// that came up enters provisioning until the lb-agent heartbeats; an internal +// LB with no mgmt return route is failed loud; a failed launch is failed. +func (s *ELBv2ServiceImpl) lbStateAfterLaunch(launch lbVMLaunch, scheme string) string { + if launch.instanceID == "" { + if launch.failed { + return StateFailed + } + return StateActive + } + if scheme == SchemeInternal { + if gw, tgt := s.resolveMgmtRoute(scheme); gw == "" || tgt == "" { + slog.Error("SetSubnets: internal LB has no mgmt return route; marking failed (lb-agent cannot heartbeat AWSGW)", + "mgmtBridgeIP", s.MgmtBridgeIP, "advertiseIP", s.AdvertiseIP) + return StateFailed + } + } + return StateProvisioning +} + +// setSubnetsOutput builds the SetSubnets response from the persisted record, +// reusing the SDK availability-zone projection (which surfaces per-AZ private +// IPs) so the response matches DescribeLoadBalancers. +func (s *ELBv2ServiceImpl) setSubnetsOutput(lb *LoadBalancerRecord) *elbv2.SetSubnetsOutput { + sdk := s.lbRecordToSDK(lb) + return &elbv2.SetSubnetsOutput{ + AvailabilityZones: sdk.AvailabilityZones, + IpAddressType: aws.String(lb.IPAddressType), + } +} diff --git a/spinifex/handlers/elbv2/service_impl_lb_network_test.go b/spinifex/handlers/elbv2/service_impl_lb_network_test.go index ad6906a5a..578374b5f 100644 --- a/spinifex/handlers/elbv2/service_impl_lb_network_test.go +++ b/spinifex/handlers/elbv2/service_impl_lb_network_test.go @@ -1,11 +1,14 @@ package handlers_elbv2 import ( + "errors" "testing" "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/ec2" "github.com/aws/aws-sdk-go/service/elbv2" "github.com/mulgadc/spinifex/spinifex/awserrors" + handlers_ec2_vpc "github.com/mulgadc/spinifex/spinifex/handlers/ec2/vpc" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -134,3 +137,263 @@ func TestSetSecurityGroups_CrossAccount(t *testing.T) { require.Error(t, err) assert.Contains(t, err.Error(), awserrors.ErrorELBv2LoadBalancerNotFound) } + +// setupSubnetTestService wires a VPC-backed ELBv2 service with a launcher mock +// so SetSubnets can exercise ENI create/delete plus the LB-VM relaunch. +func setupSubnetTestService(t *testing.T) (*ELBv2ServiceImpl, *handlers_ec2_vpc.VPCServiceImpl, *mockSystemInstanceLauncher) { + t.Helper() + svc, vpcSvc := setupTestServiceWithVPC(t) + mock := &mockSystemInstanceLauncher{ + launchResult: &SystemInstanceOutput{InstanceID: "i-lb", PrivateIP: "10.0.1.5"}, + } + svc.InstanceLauncher = mock + svc.GatewayURL = "https://10.0.0.1:9999" + svc.SystemAccessKey = "AKID" + svc.SystemSecretKey = "SECRET" + return svc, vpcSvc, mock +} + +func countManagedENIs(t *testing.T, vpcSvc *handlers_ec2_vpc.VPCServiceImpl) int { + t.Helper() + out, err := vpcSvc.DescribeNetworkInterfaces(&ec2.DescribeNetworkInterfacesInput{}, testAccountID) + require.NoError(t, err) + n := 0 + for _, eni := range out.NetworkInterfaces { + if eni.RequesterManaged != nil && *eni.RequesterManaged { + n++ + } + } + return n +} + +func vpcID(t *testing.T, vpcSvc *handlers_ec2_vpc.VPCServiceImpl) string { + t.Helper() + vpcs, err := vpcSvc.DescribeVpcs(&ec2.DescribeVpcsInput{}, testAccountID) + require.NoError(t, err) + require.NotEmpty(t, vpcs.Vpcs) + return *vpcs.Vpcs[0].VpcId +} + +func TestSetSubnets_AddSubnet(t *testing.T) { + svc, vpcSvc, mock := setupSubnetTestService(t) + vid := vpcID(t, vpcSvc) + sub1 := getTestSubnetID(t, vpcSvc, vid, "10.0.20.0/24", "us-east-1a") + sub2 := getTestSubnetID(t, vpcSvc, vid, "10.0.21.0/24", "us-east-1b") + + out, err := svc.CreateLoadBalancer(&elbv2.CreateLoadBalancerInput{ + Name: aws.String("add-lb"), + Subnets: []*string{aws.String(sub1)}, + }, testAccountID) + require.NoError(t, err) + arn := *out.LoadBalancers[0].LoadBalancerArn + require.Equal(t, 1, countManagedENIs(t, vpcSvc)) + require.Len(t, mock.launchCalls, 1) + + res, err := svc.SetSubnets(&elbv2.SetSubnetsInput{ + LoadBalancerArn: aws.String(arn), + Subnets: []*string{aws.String(sub1), aws.String(sub2)}, + }, testAccountID) + require.NoError(t, err) + assert.Len(t, res.AvailabilityZones, 2) + + // New ENI created in sub2; LB VM relaunched on the new set. + assert.Equal(t, 2, countManagedENIs(t, vpcSvc)) + assert.Len(t, mock.terminateCalls, 1) + require.Len(t, mock.launchCalls, 2) + assert.Len(t, mock.launchCalls[1].ExtraENIs, 1, "relaunch must carry the added subnet as an ExtraENI") + + lb := describeLB(t, svc, arn) + assert.ElementsMatch(t, []string{sub1, sub2}, subnetIDsOfLB(lb)) +} + +func TestSetSubnets_RemoveSubnet(t *testing.T) { + svc, vpcSvc, mock := setupSubnetTestService(t) + vid := vpcID(t, vpcSvc) + sub1 := getTestSubnetID(t, vpcSvc, vid, "10.0.22.0/24", "us-east-1a") + sub2 := getTestSubnetID(t, vpcSvc, vid, "10.0.23.0/24", "us-east-1b") + + out, err := svc.CreateLoadBalancer(&elbv2.CreateLoadBalancerInput{ + Name: aws.String("rm-lb"), + Subnets: []*string{aws.String(sub1), aws.String(sub2)}, + }, testAccountID) + require.NoError(t, err) + arn := *out.LoadBalancers[0].LoadBalancerArn + require.Equal(t, 2, countManagedENIs(t, vpcSvc)) + + res, err := svc.SetSubnets(&elbv2.SetSubnetsInput{ + LoadBalancerArn: aws.String(arn), + Subnets: []*string{aws.String(sub1)}, + }, testAccountID) + require.NoError(t, err) + assert.Len(t, res.AvailabilityZones, 1) + + // sub2's ENI is deleted; only sub1's remains. + assert.Equal(t, 1, countManagedENIs(t, vpcSvc)) + assert.Len(t, mock.terminateCalls, 1) + lb := describeLB(t, svc, arn) + assert.Equal(t, []string{sub1}, subnetIDsOfLB(lb)) +} + +func TestSetSubnets_Replace(t *testing.T) { + svc, vpcSvc, _ := setupSubnetTestService(t) + vid := vpcID(t, vpcSvc) + sub1 := getTestSubnetID(t, vpcSvc, vid, "10.0.24.0/24", "us-east-1a") + sub2 := getTestSubnetID(t, vpcSvc, vid, "10.0.25.0/24", "us-east-1b") + + out, err := svc.CreateLoadBalancer(&elbv2.CreateLoadBalancerInput{ + Name: aws.String("swap-lb"), + Subnets: []*string{aws.String(sub1)}, + }, testAccountID) + require.NoError(t, err) + arn := *out.LoadBalancers[0].LoadBalancerArn + + _, err = svc.SetSubnets(&elbv2.SetSubnetsInput{ + LoadBalancerArn: aws.String(arn), + Subnets: []*string{aws.String(sub2)}, + }, testAccountID) + require.NoError(t, err) + + // One ENI swapped for another — still a single managed ENI, now in sub2. + assert.Equal(t, 1, countManagedENIs(t, vpcSvc)) + lb := describeLB(t, svc, arn) + assert.Equal(t, []string{sub2}, subnetIDsOfLB(lb)) +} + +func TestSetSubnets_TerminateFailureRollsBackNewENIs(t *testing.T) { + svc, vpcSvc, mock := setupSubnetTestService(t) + vid := vpcID(t, vpcSvc) + sub1 := getTestSubnetID(t, vpcSvc, vid, "10.0.26.0/24", "us-east-1a") + sub2 := getTestSubnetID(t, vpcSvc, vid, "10.0.27.0/24", "us-east-1b") + + out, err := svc.CreateLoadBalancer(&elbv2.CreateLoadBalancerInput{ + Name: aws.String("rollback-lb"), + Subnets: []*string{aws.String(sub1)}, + }, testAccountID) + require.NoError(t, err) + arn := *out.LoadBalancers[0].LoadBalancerArn + require.Equal(t, 1, countManagedENIs(t, vpcSvc)) + + // Terminate fails mid-relaunch (e.g. owning daemon unreachable). The ENI + // created for the added subnet must be rolled back, not leaked. + mock.terminateErr = errors.New("no responders available") + + _, err = svc.SetSubnets(&elbv2.SetSubnetsInput{ + LoadBalancerArn: aws.String(arn), + Subnets: []*string{aws.String(sub1), aws.String(sub2)}, + }, testAccountID) + require.Error(t, err) + + // No leak: still the single original ENI; LB record unchanged; no relaunch. + assert.Equal(t, 1, countManagedENIs(t, vpcSvc)) + assert.Len(t, mock.launchCalls, 1) + lb := describeLB(t, svc, arn) + assert.Equal(t, []string{sub1}, subnetIDsOfLB(lb)) +} + +func TestSetSubnets_Idempotent(t *testing.T) { + svc, vpcSvc, mock := setupSubnetTestService(t) + vid := vpcID(t, vpcSvc) + sub1 := getTestSubnetID(t, vpcSvc, vid, "10.0.26.0/24", "us-east-1a") + + out, err := svc.CreateLoadBalancer(&elbv2.CreateLoadBalancerInput{ + Name: aws.String("idem-lb"), + Subnets: []*string{aws.String(sub1)}, + }, testAccountID) + require.NoError(t, err) + arn := *out.LoadBalancers[0].LoadBalancerArn + + _, err = svc.SetSubnets(&elbv2.SetSubnetsInput{ + LoadBalancerArn: aws.String(arn), + Subnets: []*string{aws.String(sub1)}, + }, testAccountID) + require.NoError(t, err) + + // No change: no relaunch, no terminate, ENI count unchanged. + assert.Equal(t, 1, countManagedENIs(t, vpcSvc)) + assert.Empty(t, mock.terminateCalls) + assert.Len(t, mock.launchCalls, 1) +} + +func TestSetSubnets_SubnetMappings(t *testing.T) { + svc, vpcSvc, _ := setupSubnetTestService(t) + vid := vpcID(t, vpcSvc) + sub1 := getTestSubnetID(t, vpcSvc, vid, "10.0.27.0/24", "us-east-1a") + sub2 := getTestSubnetID(t, vpcSvc, vid, "10.0.28.0/24", "us-east-1b") + + out, err := svc.CreateLoadBalancer(&elbv2.CreateLoadBalancerInput{ + Name: aws.String("mapping-lb"), + Subnets: []*string{aws.String(sub1)}, + }, testAccountID) + require.NoError(t, err) + arn := *out.LoadBalancers[0].LoadBalancerArn + + _, err = svc.SetSubnets(&elbv2.SetSubnetsInput{ + LoadBalancerArn: aws.String(arn), + SubnetMappings: []*elbv2.SubnetMapping{ + {SubnetId: aws.String(sub1)}, + {SubnetId: aws.String(sub2)}, + }, + }, testAccountID) + require.NoError(t, err) + assert.Equal(t, 2, countManagedENIs(t, vpcSvc)) +} + +func TestSetSubnets_WithoutVPCService(t *testing.T) { + svc := setupTestService(t) + arn := createLBArn(t, svc, "novpc-subnets") + + res, err := svc.SetSubnets(&elbv2.SetSubnetsInput{ + LoadBalancerArn: aws.String(arn), + Subnets: []*string{aws.String("subnet-aaa"), aws.String("subnet-bbb")}, + }, testAccountID) + require.NoError(t, err) + assert.Len(t, res.AvailabilityZones, 2) + assert.ElementsMatch(t, []string{"subnet-aaa", "subnet-bbb"}, subnetIDsOfLB(describeLB(t, svc, arn))) +} + +func TestSetSubnets_MissingParams(t *testing.T) { + svc := setupTestService(t) + arn := createLBArn(t, svc, "subnets-mp") + + _, err := svc.SetSubnets(&elbv2.SetSubnetsInput{ + LoadBalancerArn: aws.String(arn), + }, testAccountID) + require.Error(t, err) + assert.Contains(t, err.Error(), awserrors.ErrorMissingParameter) + + _, err = svc.SetSubnets(&elbv2.SetSubnetsInput{ + Subnets: []*string{aws.String("subnet-aaa")}, + }, testAccountID) + require.Error(t, err) + assert.Contains(t, err.Error(), awserrors.ErrorMissingParameter) +} + +func TestSetSubnets_NotFound(t *testing.T) { + svc := setupTestService(t) + _, err := svc.SetSubnets(&elbv2.SetSubnetsInput{ + LoadBalancerArn: aws.String("arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/app/missing/lb-deadbeef"), + Subnets: []*string{aws.String("subnet-aaa")}, + }, testAccountID) + require.Error(t, err) + assert.Contains(t, err.Error(), awserrors.ErrorELBv2LoadBalancerNotFound) +} + +func TestSetSubnets_CrossAccount(t *testing.T) { + svc := setupTestService(t) + arn := createLBArn(t, svc, "subnets-xacct") + + _, err := svc.SetSubnets(&elbv2.SetSubnetsInput{ + LoadBalancerArn: aws.String(arn), + Subnets: []*string{aws.String("subnet-aaa")}, + }, "999999999999") + require.Error(t, err) + assert.Contains(t, err.Error(), awserrors.ErrorELBv2LoadBalancerNotFound) +} + +func subnetIDsOfLB(lb *elbv2.LoadBalancer) []string { + out := make([]string, 0, len(lb.AvailabilityZones)) + for _, az := range lb.AvailabilityZones { + out = append(out, aws.StringValue(az.SubnetId)) + } + return out +} diff --git a/spinifex/handlers/elbv2/service_nats.go b/spinifex/handlers/elbv2/service_nats.go index 8fde7f0db..903cfdf30 100644 --- a/spinifex/handlers/elbv2/service_nats.go +++ b/spinifex/handlers/elbv2/service_nats.go @@ -143,6 +143,10 @@ func (s *NATSELBv2Service) SetIpAddressType(input *elbv2.SetIpAddressTypeInput, return utils.NATSRequest[elbv2.SetIpAddressTypeOutput](s.natsConn, "elbv2.SetIpAddressType", input, defaultTimeout, accountID) } +func (s *NATSELBv2Service) SetSubnets(input *elbv2.SetSubnetsInput, accountID string) (*elbv2.SetSubnetsOutput, error) { + return utils.NATSRequest[elbv2.SetSubnetsOutput](s.natsConn, "elbv2.SetSubnets", input, defaultTimeout, accountID) +} + func (s *NATSELBv2Service) AddListenerCertificates(input *elbv2.AddListenerCertificatesInput, accountID string) (*elbv2.AddListenerCertificatesOutput, error) { return utils.NATSRequest[elbv2.AddListenerCertificatesOutput](s.natsConn, "elbv2.AddListenerCertificates", input, defaultTimeout, accountID) } diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_.js b/spinifex/services/spinifexui/frontend/dist/assets/_.js index 5c904611d..b6fc8d2ba 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{n as r,r as i,t as a}from"./upload-button.js";import{r as o}from"./s3.js";import{Lo as s,Mo as c,Y as l,fs as u,jo as d,ko as f,ms as p,x as m,ys as h}from"./index.js";var g=u(),_=h();function v(){let u=(0,g.c)(24),{bucket:h,_splat:v}=m.useParams(),y=d(v??``),{data:b}=t(l(h,y)),x=o(),S;u[0]===b.Contents?S=u[1]:(S=b.Contents??[],u[0]=b.Contents,u[1]=S);let C=S,w;u[2]===b.CommonPrefixes?w=u[3]:(w=b.CommonPrefixes??[],u[2]=b.CommonPrefixes,u[3]=w);let T=w,E=y.split(`/`).filter(Boolean),D=[{name:h,path:`/s3/ls/${h}`},...E.map((e,t)=>({name:e,path:`/s3/ls/${h}/${`${E.slice(0,t+1).join(`/`)}/`}`}))],O=E.length>1?`/s3/ls/${h}/${E.slice(0,-1).join(`/`)}/`:`/s3/ls/${h}`,k;u[4]===O?k=u[5]:(k=(0,_.jsx)(n,{to:O,children:`Back`}),u[4]=O,u[5]=k);let A;u[6]!==h||u[7]!==y||u[8]!==x.isPending||u[9]!==x.mutateAsync?(A=(0,_.jsx)(a,{bucket:h,isPending:x.isPending,onUpload:x.mutateAsync,prefix:y}),u[6]=h,u[7]=y,u[8]=x.isPending,u[9]=x.mutateAsync,u[10]=A):A=u[10];let j;u[11]===x.error?j=u[12]:(j=x.error&&(0,_.jsx)(e,{error:x.error,msg:`Failed to upload object`}),u[11]=x.error,u[12]=j);let M;u[13]!==h||u[14]!==T||u[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)(i,{bucketName:h,folderName:s(c(e.Prefix,y)),fullPrefix:f(e.Prefix,y)},e.Prefix):null)})]}),u[13]=h,u[14]=T,u[15]=y,u[16]=M):M=u[16];let N;u[17]!==h||u[18]!==C||u[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)(r,{bucketName:h,displayName:c(e.Key,y),fullKey:f(e.Key,y),object:e},e.Key):null)]}),u[17]=h,u[18]=C,u[19]=y,u[20]=N):N=u[20];let P;return u[21]!==T.length||u[22]!==C.length?(P=C.length===0&&T.length===0&&(0,_.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this folder.`}),u[21]=T.length,u[22]=C.length,u[23]=P):P=u[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)(p,{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{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{n as r,r as i,t as a}from"./upload-button.js";import{r as o}from"./s3.js";import{Ao as s,Mo as c,No as l,Ro as u,Y as d,bs as f,hs as p,ps as m,x as h}from"./index.js";var g=m(),_=f();function v(){let f=(0,g.c)(24),{bucket:m,_splat:v}=h.useParams(),y=c(v??``),{data:b}=t(d(m,y)),x=o(),S;f[0]===b.Contents?S=f[1]:(S=b.Contents??[],f[0]=b.Contents,f[1]=S);let C=S,w;f[2]===b.CommonPrefixes?w=f[3]:(w=b.CommonPrefixes??[],f[2]=b.CommonPrefixes,f[3]=w);let T=w,E=y.split(`/`).filter(Boolean),D=[{name:m,path:`/s3/ls/${m}`},...E.map((e,t)=>({name:e,path:`/s3/ls/${m}/${`${E.slice(0,t+1).join(`/`)}/`}`}))],O=E.length>1?`/s3/ls/${m}/${E.slice(0,-1).join(`/`)}/`:`/s3/ls/${m}`,k;f[4]===O?k=f[5]:(k=(0,_.jsx)(n,{to:O,children:`Back`}),f[4]=O,f[5]=k);let A;f[6]!==m||f[7]!==y||f[8]!==x.isPending||f[9]!==x.mutateAsync?(A=(0,_.jsx)(a,{bucket:m,isPending:x.isPending,onUpload:x.mutateAsync,prefix:y}),f[6]=m,f[7]=y,f[8]=x.isPending,f[9]=x.mutateAsync,f[10]=A):A=f[10];let j;f[11]===x.error?j=f[12]:(j=x.error&&(0,_.jsx)(e,{error:x.error,msg:`Failed to upload object`}),f[11]=x.error,f[12]=j);let M;f[13]!==m||f[14]!==T||f[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)(i,{bucketName:m,folderName:u(l(e.Prefix,y)),fullPrefix:s(e.Prefix,y)},e.Prefix):null)})]}),f[13]=m,f[14]=T,f[15]=y,f[16]=M):M=f[16];let N;f[17]!==m||f[18]!==C||f[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)(r,{bucketName:m,displayName:l(e.Key,y),fullKey:s(e.Key,y),object:e},e.Key):null)]}),f[17]=m,f[18]=C,f[19]=y,f[20]=N):N=f[20];let P;return f[21]!==T.length||f[22]!==C.length?(P=C.length===0&&T.length===0&&(0,_.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this folder.`}),f[21]=T.length,f[22]=C.length,f[23]=P):P=f[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)(p,{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 559050b3f..8e67abff9 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_auth.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_auth.js @@ -1 +1 @@ -import{t as e}from"./useQuery.js";import{t}from"./chevron-down.js";import{t as n}from"./chevron-right.js";import{$o as r,Et as i,Io as a,Jo as o,Ko as s,Q as c,Qo as l,X as u,Xo as d,Yo as f,Zo as p,at as m,bs as h,dt as g,fs as _,lt as v,ms as y,qo as b,qr as x,st as S,ts as C,vt as w,wt as T,ys as E,zs as D}from"./index.js";import{t as O}from"./page-heading.js";import{t as k}from"./state-badge.js";import{r as ee,t as te}from"./admin.js";import{t as ne}from"./badge.js";import{a as A,i as j,n as M,o as N,r as P,t as F}from"./card.js";var I=C(`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=C(`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=C(`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=C(`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=_(),B=D(h(),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 r=(0,z.c)(110),{isAdmin:i,version:a,license:s}=x(),[c,l]=(0,B.useState)(!1),u;r[0]===i?u=r[1]:(u={...te,enabled:i},r[0]=i,r[1]=u);let{data:d}=e(u),f;r[2]===i?f=r[3]:(f={...ee,enabled:i},r[2]=i,r[3]=f);let{data:p}=e(f);if(!i||!a)return null;let m,h,g,_,v,y,b,S,C,w,T,E,D,O,k,j,M,I,L;if(r[4]!==s||r[5]!==d?.cluster_mode||r[6]!==d?.nodes||r[7]!==a.arch||r[8]!==a.commit||r[9]!==a.os||r[10]!==a.version||r[11]!==p?.vms){_=d?.nodes??[];let e;r[31]===p?.vms?e=r[32]:(e=p?.vms??[],r[31]=p?.vms,r[32]=e);let t=e,n=d?.cluster_mode??`single-node`;g=s===`open-source`;let i=_[0]?.region??null,c=_.reduce(se,0),l=_.reduce(oe,0),u=_.reduce(ae,0),f=_.reduce(ie,0);T=`mb-6 space-y-4`,S=`grid grid-cols-1 gap-4 md:grid-cols-3`;let x;r[33]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,V.jsx)(A,{className:`pb-2`,children:(0,V.jsxs)(N,{className:`flex items-center gap-2 text-sm`,children:[(0,V.jsx)(re,{className:`size-3.5`}),`Spinifex Info`]})}),r[33]=x):x=r[33];let ee;r[34]===Symbol.for(`react.memo_cache_sentinel`)?(ee=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Version`}),r[34]=ee):ee=r[34];let te;r[35]===a.version?te=r[36]:(te=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[ee,(0,V.jsx)(`span`,{className:`font-mono`,children:a.version})]}),r[35]=a.version,r[36]=te);let R;r[37]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Commit`}),r[37]=R):R=r[37];let z;r[38]===a.commit?z=r[39]:(z=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[R,(0,V.jsx)(`span`,{className:`font-mono`,children:a.commit})]}),r[38]=a.commit,r[39]=z);let B;r[40]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Platform`}),r[40]=B):B=r[40];let H;r[41]!==a.arch||r[42]!==a.os?(H=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[B,(0,V.jsxs)(`span`,{children:[a.os,`/`,a.arch]})]}),r[41]=a.arch,r[42]=a.os,r[43]=H):H=r[43],C=(0,V.jsxs)(F,{children:[x,(0,V.jsxs)(P,{className:`space-y-1 text-xs`,children:[te,z,H,i&&(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Region`}),(0,V.jsx)(`span`,{children:i})]})]})]});let U;r[44]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,V.jsx)(A,{className:`pb-2`,children:(0,V.jsx)(N,{className:`text-sm`,children:`License & Support`})}),r[44]=U):U=r[44];let W;r[45]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`License`}),r[45]=W):W=r[45];let ce=g?`secondary`:`default`,G=g?`Open Source (AGPLv3)`:`Commercial`,K;r[46]!==ce||r[47]!==G?(K=(0,V.jsxs)(`div`,{className:`flex items-center justify-between`,children:[W,(0,V.jsx)(ne,{variant:ce,children:G})]}),r[46]=ce,r[47]=G,r[48]=K):K=r[48];let q;r[49]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Support`}),r[49]=q):q=r[49];let J=g?`Community`:`Standard`,Y;r[50]===J?Y=r[51]:(Y=(0,V.jsxs)(`div`,{className:`flex items-center justify-between`,children:[q,(0,V.jsx)(`span`,{children:J})]}),r[50]=J,r[51]=Y);let X;r[52]===g?X=r[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 →`}),r[52]=g,r[53]=X),r[54]!==K||r[55]!==Y||r[56]!==X?(w=(0,V.jsxs)(F,{children:[U,(0,V.jsxs)(P,{className:`space-y-2 text-xs`,children:[K,Y,X]})]}),r[54]=K,r[55]=Y,r[56]=X,r[57]=w):w=r[57],h=F,r[58]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,V.jsx)(A,{className:`pb-2`,children:(0,V.jsxs)(N,{className:`flex items-center gap-2 text-sm`,children:[(0,V.jsx)(o,{className:`size-3.5`}),`Cluster Status`]})}),r[58]=b):b=r[58],m=P,M=`space-y-2 text-xs`,r[59]===n?I=r[60]:(I=(0,V.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,V.jsx)(ne,{variant:`outline`,children:n})}),r[59]=n,r[60]=I);let Z;r[61]===Symbol.for(`react.memo_cache_sentinel`)?(Z=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Nodes`}),r[61]=Z):Z=r[61],L=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[Z,(0,V.jsx)(`span`,{children:_.length})]});let Q;r[62]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Instances`}),r[62]=Q):Q=r[62],r[63]===t.length?v=r[64]:(v=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[Q,(0,V.jsx)(`span`,{children:t.length})]}),r[63]=t.length,r[64]=v);let $;r[65]===Symbol.for(`react.memo_cache_sentinel`)?($=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`vCPU`}),r[65]=$):$=r[65],y=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[$,(0,V.jsxs)(`span`,{children:[l,` / `,c]})]}),k=`flex justify-between`,r[66]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Memory`}),r[66]=j):j=r[66],E=f.toFixed(1),D=` / `,O=u.toFixed(1),r[4]=s,r[5]=d?.cluster_mode,r[6]=d?.nodes,r[7]=a.arch,r[8]=a.commit,r[9]=a.os,r[10]=a.version,r[11]=p?.vms,r[12]=m,r[13]=h,r[14]=g,r[15]=_,r[16]=v,r[17]=y,r[18]=b,r[19]=S,r[20]=C,r[21]=w,r[22]=T,r[23]=E,r[24]=D,r[25]=O,r[26]=k,r[27]=j,r[28]=M,r[29]=I,r[30]=L}else m=r[12],h=r[13],g=r[14],_=r[15],v=r[16],y=r[17],b=r[18],S=r[19],C=r[20],w=r[21],T=r[22],E=r[23],D=r[24],O=r[25],k=r[26],j=r[27],M=r[28],I=r[29],L=r[30];let U;r[67]!==E||r[68]!==D||r[69]!==O?(U=(0,V.jsxs)(`span`,{children:[E,D,O,` GB`]}),r[67]=E,r[68]=D,r[69]=O,r[70]=U):U=r[70];let W;r[71]!==U||r[72]!==k||r[73]!==j?(W=(0,V.jsxs)(`div`,{className:k,children:[j,U]}),r[71]=U,r[72]=k,r[73]=j,r[74]=W):W=r[74];let G;r[75]!==m||r[76]!==v||r[77]!==y||r[78]!==W||r[79]!==M||r[80]!==I||r[81]!==L?(G=(0,V.jsxs)(m,{className:M,children:[I,L,v,y,W]}),r[75]=m,r[76]=v,r[77]=y,r[78]=W,r[79]=M,r[80]=I,r[81]=L,r[82]=G):G=r[82];let K;r[83]!==h||r[84]!==b||r[85]!==G?(K=(0,V.jsxs)(h,{children:[b,G]}),r[83]=h,r[84]=b,r[85]=G,r[86]=K):K=r[86];let q;r[87]!==S||r[88]!==C||r[89]!==w||r[90]!==K?(q=(0,V.jsxs)(`div`,{className:S,children:[C,w,K]}),r[87]=S,r[88]=C,r[89]=w,r[90]=K,r[91]=q):q=r[91];let J;r[92]!==_||r[93]!==c?(J=_.length>0&&(0,V.jsxs)(F,{children:[(0,V.jsx)(A,{className:`pb-0`,children:(0,V.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-sm font-medium`,onClick:()=>l(!c),children:[c?(0,V.jsx)(t,{className:`size-3.5`}):(0,V.jsx)(n,{className:`size-3.5`}),`Nodes (`,_.length,`)`]})}),c&&(0,V.jsx)(P,{className:`pt-2`,children:(0,V.jsx)(ce,{nodes:_})})]}),r[92]=_,r[93]=c,r[94]=J):J=r[94];let Y;r[95]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,V.jsx)(A,{className:`pb-2`,children:(0,V.jsx)(N,{className:`text-sm`,children:`Commercial Add-ons`})}),r[95]=Y):Y=r[95];let X;r[96]===g?X=r[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)(ne,{variant:`outline`,className:`text-[0.625rem]`,children:`Active`})]},e.key)),r[96]=g,r[97]=X);let Z;r[98]===X?Z=r[99]:(Z=(0,V.jsx)(`div`,{className:`space-y-2`,children:X}),r[98]=X,r[99]=Z);let Q;r[100]===g?Q=r[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 →`}),r[100]=g,r[101]=Q);let $;r[102]!==Z||r[103]!==Q?($=(0,V.jsxs)(F,{children:[Y,(0,V.jsxs)(P,{children:[Z,Q]})]}),r[102]=Z,r[103]=Q,r[104]=$):$=r[104];let le;return r[105]!==T||r[106]!==q||r[107]!==J||r[108]!==$?(le=(0,V.jsxs)(`div`,{className:T,children:[q,J,$]}),r[105]=T,r[106]=q,r[107]=J,r[108]=$,r[109]=le):le=r[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)(ne,{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)(O,{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)(A,{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:a,children:o}=e,s;t[0]!==r||t[1]!==n?(s=(0,V.jsxs)(N,{className:`flex items-center gap-2`,children:[r,n]}),t[0]=r,t[1]=n,t[2]=s):s=t[2];let c;t[3]===i?c=t[4]:(c=(0,V.jsx)(M,{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]=c);let l;t[5]!==s||t[6]!==c?(l=(0,V.jsxs)(A,{children:[s,c]}),t[5]=s,t[6]=c,t[7]=l):l=t[7];let u;t[8]===o?u=t[9]:(u=(0,V.jsx)(P,{children:o}),t[8]=o,t[9]=u);let d;t[10]===a?d=t[11]:(d=(0,V.jsx)(j,{children:(0,V.jsx)(y,{to:a,className:`text-xs font-medium text-primary hover:underline`,children:`View all →`})}),t[10]=a,t[11]=d);let f;return t[12]!==l||t[13]!==u||t[14]!==d?(f=(0,V.jsxs)(F,{children:[l,u,d]}),t[12]=l,t[13]=u,t[14]=d,t[15]=f):f=t[15],f}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 t=(0,z.c)(16),{data:n}=e(m),r,i,a,o,s;if(t[0]!==n?.Reservations){let e=n?.Reservations?.flatMap(pe)??[];r=e.filter(fe),a=e.filter(de),o=e.filter(ue),i=e.filter(le),s=[...a,...i].slice(0,K),t[0]=n?.Reservations,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s}else r=t[1],i=t[2],a=t[3],o=t[4],s=t[5];let c=s,u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,V.jsx)(l,{className:`size-3.5`}),t[6]=u):u=t[6];let d;t[7]!==r.length||t[8]!==c||t[9]!==i||t[10]!==a||t[11]!==o?(d=r.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+i.length})]}),t[7]=r.length,t[8]=c,t[9]=i,t[10]=a,t[11]=o,t[12]=d):d=t[12];let f;return t[13]!==r.length||t[14]!==d?(f=(0,V.jsx)(Y,{title:`Instances`,icon:u,count:r.length,to:`/ec2/describe-instances`,children:d}),t[13]=r.length,t[14]=d,t[15]=f):f=t[15],f}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 t=(0,z.c)(3),{data:n}=e(T),r;if(t[0]!==n?.Volumes){let e=n?.Volumes??[],i=e.reduce(ve,0),a=e.filter(_e),o=e.filter(ge),s=e.slice(0,K),c;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(I,{className:`size-3.5`}),t[2]=c):c=t[2],r=(0,V.jsx)(Y,{title:`Volumes`,icon:c,count:e.length,to:`/ec2/describe-volumes`,children:e.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:e.length})]})}),t[0]=n?.Volumes,t[1]=r}else r=t[1];return r}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)(k,{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 t=(0,z.c)(3),{data:n}=e(i),r;if(t[0]!==n?.Vpcs){let e=n?.Vpcs??[],i=e.slice(0,K),a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(d,{className:`size-3.5`}),t[2]=a):a=t[2],r=(0,V.jsx)(Y,{title:`VPCs`,icon:a,count:e.length,to:`/ec2/describe-vpcs`,children:e.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:e.length})]})}),t[0]=n?.Vpcs,t[1]=r}else r=t[1];return r}function be(e){let t=a(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 t=(0,z.c)(3),{data:n}=e(v),r;if(t[0]!==n?.KeyPairs){let e=n?.KeyPairs??[],i=e.slice(0,K),a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(p,{className:`size-3.5`}),t[2]=a):a=t[2],r=(0,V.jsx)(Y,{title:`Key Pairs`,icon:a,count:e.length,to:`/ec2/describe-key-pairs`,children:e.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:e.length})]})}),t[0]=n?.KeyPairs,t[1]=r}else r=t[1];return r}function Se(e){return(0,V.jsx)(Z,{children:(0,V.jsx)(`span`,{className:`font-mono`,children:e.KeyName})},e.KeyPairId)}function Ce(){let t=(0,z.c)(3),{data:n}=e(u),r;if(t[0]!==n?.Buckets){let e=n?.Buckets??[],i=e.slice(0,K),a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(L,{className:`size-3.5`}),t[2]=a):a=t[2],r=(0,V.jsx)(Y,{title:`S3 Buckets`,icon:a,count:e.length,to:`/s3/ls`,children:e.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:e.length})]})}),t[0]=n?.Buckets,t[1]=r}else r=t[1];return r}function we(e){return(0,V.jsx)(Z,{children:(0,V.jsx)(`span`,{className:`font-mono`,children:e.Name})},e.Name)}function Te(){let t=(0,z.c)(3),{data:n}=e(w),r;if(t[0]!==n?.SecurityGroups){let e=n?.SecurityGroups??[],i=e.slice(0,K),a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(b,{className:`size-3.5`}),t[2]=a):a=t[2],r=(0,V.jsx)(Y,{title:`Security Groups`,icon:a,count:e.length,to:`/ec2/describe-security-groups`,children:e.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:e.length})]})}),t[0]=n?.SecurityGroups,t[1]=r}else r=t[1];return r}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 t=(0,z.c)(3),{data:n}=e(g),r;if(t[0]!==n?.NatGateways){let e=n?.NatGateways??[],i=e.slice(0,K),a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(s,{className:`size-3.5`}),t[2]=a):a=t[2],r=(0,V.jsx)(Y,{title:`NAT Gateways`,icon:a,count:e.length,to:`/ec2/describe-nat-gateways`,children:e.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:e.length})]})}),t[0]=n?.NatGateways,t[1]=r}else r=t[1];return r}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 t=(0,z.c)(3),{data:n}=e(S),r;if(t[0]!==n?.InternetGateways){let e=n?.InternetGateways??[],i=e.slice(0,K),a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(f,{className:`size-3.5`}),t[2]=a):a=t[2],r=(0,V.jsx)(Y,{title:`Internet Gateways`,icon:a,count:e.length,to:`/ec2/describe-internet-gateways`,children:e.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:e.length})]})}),t[0]=n?.InternetGateways,t[1]=r}else r=t[1];return r}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 t=(0,z.c)(3),{data:n}=e(c),i;if(t[0]!==n?.Addresses){let e=n?.Addresses??[],a=e.slice(0,K),o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,V.jsx)(r,{className:`size-3.5`}),t[2]=o):o=t[2],i=(0,V.jsx)(Y,{title:`Elastic IPs`,icon:o,count:e.length,to:`/ec2/describe-addresses`,children:e.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:[a.map(Me),(0,V.jsx)(X,{total:e.length})]})}),t[0]=n?.Addresses,t[1]=i}else i=t[1];return i}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{t as e}from"./useQuery.js";import{t}from"./chevron-down.js";import{t as n}from"./chevron-right.js";import{$o as r,Bs as i,Et as a,Jo as o,Jr as s,Lo as c,Q as l,Qo as u,X as d,Xo as f,Yo as ee,Zo as p,at as m,bs as h,dt as g,es as _,hs as v,lt as y,ns as b,ps as x,qo as S,st as C,vt as w,wt as T,xs 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 P,r as F,t as I}from"./card.js";var L=b(`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`}]]),R=b(`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`}]]),z=b(`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`}]]),ne=b(`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`}]]),B=x(),V=i(E(),1),H=h(),re=[{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 r=(0,B.c)(110),{isAdmin:i,version:a,license:o}=s(),[c,l]=(0,V.useState)(!1),u;r[0]===i?u=r[1]:(u={...A,enabled:i},r[0]=i,r[1]=u);let{data:d}=e(u),f;r[2]===i?f=r[3]:(f={...k,enabled:i},r[2]=i,r[3]=f);let{data:p}=e(f);if(!i||!a)return null;let m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,M,N,L,R;if(r[4]!==o||r[5]!==d?.cluster_mode||r[6]!==d?.nodes||r[7]!==a.arch||r[8]!==a.commit||r[9]!==a.os||r[10]!==a.version||r[11]!==p?.vms){_=d?.nodes??[];let e;r[31]===p?.vms?e=r[32]:(e=p?.vms??[],r[31]=p?.vms,r[32]=e);let t=e,n=d?.cluster_mode??`single-node`;g=o===`open-source`;let i=_[0]?.region??null,s=_.reduce(se,0),c=_.reduce(oe,0),l=_.reduce(ae,0),u=_.reduce(ie,0);w=`mb-6 space-y-4`,x=`grid grid-cols-1 gap-4 md:grid-cols-3`;let f;r[33]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,H.jsx)(j,{className:`pb-2`,children:(0,H.jsxs)(P,{className:`flex items-center gap-2 text-sm`,children:[(0,H.jsx)(ne,{className:`size-3.5`}),`Spinifex Info`]})}),r[33]=f):f=r[33];let k;r[34]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Version`}),r[34]=k):k=r[34];let A;r[35]===a.version?A=r[36]:(A=(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[k,(0,H.jsx)(`span`,{className:`font-mono`,children:a.version})]}),r[35]=a.version,r[36]=A);let z;r[37]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Commit`}),r[37]=z):z=r[37];let B;r[38]===a.commit?B=r[39]:(B=(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[z,(0,H.jsx)(`span`,{className:`font-mono`,children:a.commit})]}),r[38]=a.commit,r[39]=B);let V;r[40]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Platform`}),r[40]=V):V=r[40];let re;r[41]!==a.arch||r[42]!==a.os?(re=(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[V,(0,H.jsxs)(`span`,{children:[a.os,`/`,a.arch]})]}),r[41]=a.arch,r[42]=a.os,r[43]=re):re=r[43],S=(0,H.jsxs)(I,{children:[f,(0,H.jsxs)(F,{className:`space-y-1 text-xs`,children:[A,B,re,i&&(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Region`}),(0,H.jsx)(`span`,{children:i})]})]})]});let U;r[44]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,H.jsx)(j,{className:`pb-2`,children:(0,H.jsx)(P,{className:`text-sm`,children:`License & Support`})}),r[44]=U):U=r[44];let W;r[45]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`License`}),r[45]=W):W=r[45];let ce=g?`secondary`:`default`,G=g?`Open Source (AGPLv3)`:`Commercial`,K;r[46]!==ce||r[47]!==G?(K=(0,H.jsxs)(`div`,{className:`flex items-center justify-between`,children:[W,(0,H.jsx)(te,{variant:ce,children:G})]}),r[46]=ce,r[47]=G,r[48]=K):K=r[48];let q;r[49]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Support`}),r[49]=q):q=r[49];let J=g?`Community`:`Standard`,Y;r[50]===J?Y=r[51]:(Y=(0,H.jsxs)(`div`,{className:`flex items-center justify-between`,children:[q,(0,H.jsx)(`span`,{children:J})]}),r[50]=J,r[51]=Y);let X;r[52]===g?X=r[53]:(X=g&&(0,H.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 →`}),r[52]=g,r[53]=X),r[54]!==K||r[55]!==Y||r[56]!==X?(C=(0,H.jsxs)(I,{children:[U,(0,H.jsxs)(F,{className:`space-y-2 text-xs`,children:[K,Y,X]})]}),r[54]=K,r[55]=Y,r[56]=X,r[57]=C):C=r[57],h=I,r[58]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,H.jsx)(j,{className:`pb-2`,children:(0,H.jsxs)(P,{className:`flex items-center gap-2 text-sm`,children:[(0,H.jsx)(ee,{className:`size-3.5`}),`Cluster Status`]})}),r[58]=b):b=r[58],m=F,N=`space-y-2 text-xs`,r[59]===n?L=r[60]:(L=(0,H.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,H.jsx)(te,{variant:`outline`,children:n})}),r[59]=n,r[60]=L);let Z;r[61]===Symbol.for(`react.memo_cache_sentinel`)?(Z=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Nodes`}),r[61]=Z):Z=r[61],R=(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[Z,(0,H.jsx)(`span`,{children:_.length})]});let Q;r[62]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Instances`}),r[62]=Q):Q=r[62],r[63]===t.length?v=r[64]:(v=(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[Q,(0,H.jsx)(`span`,{children:t.length})]}),r[63]=t.length,r[64]=v);let $;r[65]===Symbol.for(`react.memo_cache_sentinel`)?($=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`vCPU`}),r[65]=$):$=r[65],y=(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[$,(0,H.jsxs)(`span`,{children:[c,` / `,s]})]}),O=`flex justify-between`,r[66]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Memory`}),r[66]=M):M=r[66],T=u.toFixed(1),E=` / `,D=l.toFixed(1),r[4]=o,r[5]=d?.cluster_mode,r[6]=d?.nodes,r[7]=a.arch,r[8]=a.commit,r[9]=a.os,r[10]=a.version,r[11]=p?.vms,r[12]=m,r[13]=h,r[14]=g,r[15]=_,r[16]=v,r[17]=y,r[18]=b,r[19]=x,r[20]=S,r[21]=C,r[22]=w,r[23]=T,r[24]=E,r[25]=D,r[26]=O,r[27]=M,r[28]=N,r[29]=L,r[30]=R}else m=r[12],h=r[13],g=r[14],_=r[15],v=r[16],y=r[17],b=r[18],x=r[19],S=r[20],C=r[21],w=r[22],T=r[23],E=r[24],D=r[25],O=r[26],M=r[27],N=r[28],L=r[29],R=r[30];let U;r[67]!==T||r[68]!==E||r[69]!==D?(U=(0,H.jsxs)(`span`,{children:[T,E,D,` GB`]}),r[67]=T,r[68]=E,r[69]=D,r[70]=U):U=r[70];let W;r[71]!==U||r[72]!==O||r[73]!==M?(W=(0,H.jsxs)(`div`,{className:O,children:[M,U]}),r[71]=U,r[72]=O,r[73]=M,r[74]=W):W=r[74];let G;r[75]!==m||r[76]!==v||r[77]!==y||r[78]!==W||r[79]!==N||r[80]!==L||r[81]!==R?(G=(0,H.jsxs)(m,{className:N,children:[L,R,v,y,W]}),r[75]=m,r[76]=v,r[77]=y,r[78]=W,r[79]=N,r[80]=L,r[81]=R,r[82]=G):G=r[82];let K;r[83]!==h||r[84]!==b||r[85]!==G?(K=(0,H.jsxs)(h,{children:[b,G]}),r[83]=h,r[84]=b,r[85]=G,r[86]=K):K=r[86];let q;r[87]!==x||r[88]!==S||r[89]!==C||r[90]!==K?(q=(0,H.jsxs)(`div`,{className:x,children:[S,C,K]}),r[87]=x,r[88]=S,r[89]=C,r[90]=K,r[91]=q):q=r[91];let J;r[92]!==_||r[93]!==c?(J=_.length>0&&(0,H.jsxs)(I,{children:[(0,H.jsx)(j,{className:`pb-0`,children:(0,H.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-sm font-medium`,onClick:()=>l(!c),children:[c?(0,H.jsx)(t,{className:`size-3.5`}):(0,H.jsx)(n,{className:`size-3.5`}),`Nodes (`,_.length,`)`]})}),c&&(0,H.jsx)(F,{className:`pt-2`,children:(0,H.jsx)(ce,{nodes:_})})]}),r[92]=_,r[93]=c,r[94]=J):J=r[94];let Y;r[95]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,H.jsx)(j,{className:`pb-2`,children:(0,H.jsx)(P,{className:`text-sm`,children:`Commercial Add-ons`})}),r[95]=Y):Y=r[95];let X;r[96]===g?X=r[97]:(X=re.map(e=>(0,H.jsxs)(`div`,{className:`flex items-center justify-between text-xs`,children:[(0,H.jsx)(`span`,{className:g?`text-muted-foreground`:void 0,children:e.name}),g?(0,H.jsx)(z,{className:`size-3 text-muted-foreground`}):(0,H.jsx)(te,{variant:`outline`,className:`text-[0.625rem]`,children:`Active`})]},e.key)),r[96]=g,r[97]=X);let Z;r[98]===X?Z=r[99]:(Z=(0,H.jsx)(`div`,{className:`space-y-2`,children:X}),r[98]=X,r[99]=Z);let Q;r[100]===g?Q=r[101]:(Q=g&&(0,H.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 →`}),r[100]=g,r[101]=Q);let $;r[102]!==Z||r[103]!==Q?($=(0,H.jsxs)(I,{children:[Y,(0,H.jsxs)(F,{children:[Z,Q]})]}),r[102]=Z,r[103]=Q,r[104]=$):$=r[104];let le;return r[105]!==w||r[106]!==q||r[107]!==J||r[108]!==$?(le=(0,H.jsxs)(`div`,{className:w,children:[q,J,$]}),r[105]=w,r[106]=q,r[107]=J,r[108]=$,r[109]=le):le=r[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,B.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,H.jsx)(`thead`,{children:(0,H.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,H.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,H.jsx)(`div`,{className:`overflow-x-auto`,children:(0,H.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,H.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function G(e){return(0,H.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,H.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,H.jsx)(te,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,H.jsxs)(`div`,{className:`flex gap-1`,children:[e.nats_role&&(0,H.jsxs)(`span`,{className:`text-muted-foreground`,children:[`nats:`,e.nats_role]}),e.predastore_role&&(0,H.jsxs)(`span`,{className:`text-muted-foreground`,children:[`ps:`,e.predastore_role]})]})}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4`,children:U(e.uptime)}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,H.jsx)(`td`,{className:`py-1.5`,children:(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.services.length})})]},e.node)}var K=5;function q(){let e=(0,B.c)(11),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,H.jsx)(D,{title:`Dashboard`}),n=(0,H.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,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(Q,{})}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(me,{})}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(ye,{})}),e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(xe,{})}),e[5]=o):o=e[5];let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(Ce,{})}),e[6]=s):s=e[6];let c;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(Te,{})}),e[7]=c):c=e[7];let l;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(De,{})}),e[8]=l):l=e[8];let u;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(je,{})}),e[9]=u):u=e[9];let d;return e[10]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,H.jsxs)(H.Fragment,{children:[t,n,(0,H.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,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(ke,{})})]})]}),e[10]=d):d=e[10],d}function J(){let e=(0,B.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,H.jsx)(j,{children:(0,H.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,H.jsxs)(I,{children:[t,(0,H.jsx)(F,{children:(0,H.jsxs)(`div`,{className:`space-y-2`,children:[(0,H.jsx)(`div`,{className:`h-3 w-48 animate-pulse rounded bg-muted`}),(0,H.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,B.c)(16),{title:n,icon:r,count:i,to:a,children:o}=e,s;t[0]!==r||t[1]!==n?(s=(0,H.jsxs)(P,{className:`flex items-center gap-2`,children:[r,n]}),t[0]=r,t[1]=n,t[2]=s):s=t[2];let c;t[3]===i?c=t[4]:(c=(0,H.jsx)(N,{children:(0,H.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]=c);let l;t[5]!==s||t[6]!==c?(l=(0,H.jsxs)(j,{children:[s,c]}),t[5]=s,t[6]=c,t[7]=l):l=t[7];let u;t[8]===o?u=t[9]:(u=(0,H.jsx)(F,{children:o}),t[8]=o,t[9]=u);let d;t[10]===a?d=t[11]:(d=(0,H.jsx)(M,{children:(0,H.jsx)(v,{to:a,className:`text-xs font-medium text-primary hover:underline`,children:`View all →`})}),t[10]=a,t[11]=d);let f;return t[12]!==l||t[13]!==u||t[14]!==d?(f=(0,H.jsxs)(I,{children:[l,u,d]}),t[12]=l,t[13]=u,t[14]=d,t[15]=f):f=t[15],f}function X(e){let t=(0,B.c)(2),{total:n}=e;if(n<=K)return null;let r=n-K,i;return t[0]===r?i=t[1]:(i=(0,H.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,B.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,H.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 t=(0,B.c)(16),{data:n}=e(m),i,a,o,s,c;if(t[0]!==n?.Reservations){let e=n?.Reservations?.flatMap(pe)??[];i=e.filter(fe),o=e.filter(de),s=e.filter(ue),a=e.filter(le),c=[...o,...a].slice(0,K),t[0]=n?.Reservations,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=c}else i=t[1],a=t[2],o=t[3],s=t[4],c=t[5];let l=c,u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,H.jsx)(r,{className:`size-3.5`}),t[6]=u):u=t[6];let d;t[7]!==i.length||t[8]!==l||t[9]!==a||t[10]!==o||t[11]!==s?(d=i.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances`}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,H.jsxs)(`span`,{children:[o.length,` running`]}),(0,H.jsxs)(`span`,{children:[s.length,` stopped`]})]}),(0,H.jsx)(`div`,{className:`space-y-0.5`,children:l.map($)}),(0,H.jsx)(X,{total:o.length+a.length})]}),t[7]=i.length,t[8]=l,t[9]=a,t[10]=o,t[11]=s,t[12]=d):d=t[12];let f;return t[13]!==i.length||t[14]!==d?(f=(0,H.jsx)(Y,{title:`Instances`,icon:u,count:i.length,to:`/ec2/describe-instances`,children:d}),t[13]=i.length,t[14]=d,t[15]=f):f=t[15],f}function $(e){return(0,H.jsxs)(Z,{children:[(0,H.jsx)(`span`,{className:`font-mono`,children:e.InstanceId}),(0,H.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 t=(0,B.c)(3),{data:n}=e(T),r;if(t[0]!==n?.Volumes){let e=n?.Volumes??[],i=e.reduce(ve,0),a=e.filter(_e),o=e.filter(ge),s=e.slice(0,K),c;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,H.jsx)(L,{className:`size-3.5`}),t[2]=c):c=t[2],r=(0,H.jsx)(Y,{title:`Volumes`,icon:c,count:e.length,to:`/ec2/describe-volumes`,children:e.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No volumes`}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,H.jsxs)(`span`,{children:[i,` GiB total`]}),(0,H.jsxs)(`span`,{children:[a.length,` in-use`]}),(0,H.jsxs)(`span`,{children:[o.length,` available`]})]}),(0,H.jsx)(`div`,{className:`space-y-0.5`,children:s.map(he)}),(0,H.jsx)(X,{total:e.length})]})}),t[0]=n?.Volumes,t[1]=r}else r=t[1];return r}function he(e){return(0,H.jsxs)(Z,{children:[(0,H.jsx)(`span`,{className:`font-mono`,children:e.VolumeId}),(0,H.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,H.jsxs)(`span`,{className:`text-muted-foreground`,children:[e.Size,` GiB`]}),(0,H.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 t=(0,B.c)(3),{data:n}=e(a),r;if(t[0]!==n?.Vpcs){let e=n?.Vpcs??[],i=e.slice(0,K),a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(p,{className:`size-3.5`}),t[2]=a):a=t[2],r=(0,H.jsx)(Y,{title:`VPCs`,icon:a,count:e.length,to:`/ec2/describe-vpcs`,children:e.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No VPCs`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(be),(0,H.jsx)(X,{total:e.length})]})}),t[0]=n?.Vpcs,t[1]=r}else r=t[1];return r}function be(e){let t=c(e.Tags);return(0,H.jsxs)(Z,{children:[(0,H.jsxs)(`span`,{className:`font-mono`,children:[e.VpcId,t&&(0,H.jsxs)(`span`,{className:`ml-1 font-sans text-muted-foreground`,children:[`(`,t,`)`]})]}),(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.CidrBlock})]},e.VpcId)}function xe(){let t=(0,B.c)(3),{data:n}=e(y),r;if(t[0]!==n?.KeyPairs){let e=n?.KeyPairs??[],i=e.slice(0,K),a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(u,{className:`size-3.5`}),t[2]=a):a=t[2],r=(0,H.jsx)(Y,{title:`Key Pairs`,icon:a,count:e.length,to:`/ec2/describe-key-pairs`,children:e.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No key pairs`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Se),(0,H.jsx)(X,{total:e.length})]})}),t[0]=n?.KeyPairs,t[1]=r}else r=t[1];return r}function Se(e){return(0,H.jsx)(Z,{children:(0,H.jsx)(`span`,{className:`font-mono`,children:e.KeyName})},e.KeyPairId)}function Ce(){let t=(0,B.c)(3),{data:n}=e(d),r;if(t[0]!==n?.Buckets){let e=n?.Buckets??[],i=e.slice(0,K),a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(R,{className:`size-3.5`}),t[2]=a):a=t[2],r=(0,H.jsx)(Y,{title:`S3 Buckets`,icon:a,count:e.length,to:`/s3/ls`,children:e.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No buckets`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(we),(0,H.jsx)(X,{total:e.length})]})}),t[0]=n?.Buckets,t[1]=r}else r=t[1];return r}function we(e){return(0,H.jsx)(Z,{children:(0,H.jsx)(`span`,{className:`font-mono`,children:e.Name})},e.Name)}function Te(){let t=(0,B.c)(3),{data:n}=e(w),r;if(t[0]!==n?.SecurityGroups){let e=n?.SecurityGroups??[],i=e.slice(0,K),a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(o,{className:`size-3.5`}),t[2]=a):a=t[2],r=(0,H.jsx)(Y,{title:`Security Groups`,icon:a,count:e.length,to:`/ec2/describe-security-groups`,children:e.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Ee),(0,H.jsx)(X,{total:e.length})]})}),t[0]=n?.SecurityGroups,t[1]=r}else r=t[1];return r}function Ee(e){return(0,H.jsxs)(Z,{children:[(0,H.jsx)(`span`,{className:`font-mono`,children:e.GroupName}),(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.VpcId})]},e.GroupId)}function De(){let t=(0,B.c)(3),{data:n}=e(g),r;if(t[0]!==n?.NatGateways){let e=n?.NatGateways??[],i=e.slice(0,K),a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(S,{className:`size-3.5`}),t[2]=a):a=t[2],r=(0,H.jsx)(Y,{title:`NAT Gateways`,icon:a,count:e.length,to:`/ec2/describe-nat-gateways`,children:e.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No NAT gateways`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Oe),(0,H.jsx)(X,{total:e.length})]})}),t[0]=n?.NatGateways,t[1]=r}else r=t[1];return r}function Oe(e){return(0,H.jsxs)(Z,{children:[(0,H.jsx)(`span`,{className:`font-mono`,children:e.NatGatewayId}),(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.State})]},e.NatGatewayId)}function ke(){let t=(0,B.c)(3),{data:n}=e(C),r;if(t[0]!==n?.InternetGateways){let e=n?.InternetGateways??[],i=e.slice(0,K),a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(f,{className:`size-3.5`}),t[2]=a):a=t[2],r=(0,H.jsx)(Y,{title:`Internet Gateways`,icon:a,count:e.length,to:`/ec2/describe-internet-gateways`,children:e.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No internet gateways`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Ae),(0,H.jsx)(X,{total:e.length})]})}),t[0]=n?.InternetGateways,t[1]=r}else r=t[1];return r}function Ae(e){return(0,H.jsxs)(Z,{children:[(0,H.jsx)(`span`,{className:`font-mono`,children:e.InternetGatewayId}),(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.Attachments?.[0]?.VpcId?`attached`:`detached`})]},e.InternetGatewayId)}function je(){let t=(0,B.c)(3),{data:n}=e(l),r;if(t[0]!==n?.Addresses){let e=n?.Addresses??[],i=e.slice(0,K),a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(_,{className:`size-3.5`}),t[2]=a):a=t[2],r=(0,H.jsx)(Y,{title:`Elastic IPs`,icon:a,count:e.length,to:`/ec2/describe-addresses`,children:e.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No Elastic IPs`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Me),(0,H.jsx)(X,{total:e.length})]})}),t[0]=n?.Addresses,t[1]=r}else r=t[1];return r}function Me(e){return(0,H.jsxs)(Z,{children:[(0,H.jsx)(`span`,{className:`font-mono`,children:e.PublicIp}),(0,H.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/_bucket.js b/spinifex/services/spinifexui/frontend/dist/assets/_bucket.js index 13a76e041..fd2378082 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_bucket.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_bucket.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{n as r,r as i,t as a}from"./upload-button.js";import{r as o}from"./s3.js";import{F as s,Lo as c,Y as l,fs as u,ys as d}from"./index.js";import{t as f}from"./page-heading.js";var p=u(),m=d();function h(){let u=(0,p.c)(31),{bucket:d}=s.useParams(),h;u[0]===d?h=u[1]:(h=l(d),u[0]=d,u[1]=h);let{data:g}=t(h),_=o(),v;u[2]===g.Contents?v=u[3]:(v=g.Contents??[],u[2]=g.Contents,u[3]=v);let y=v,b;u[4]===g.CommonPrefixes?b=u[5]:(b=g.CommonPrefixes??[],u[4]=g.CommonPrefixes,u[5]=b);let x=b,S;u[6]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,m.jsx)(n,{to:`/s3/ls`,children:`Back to buckets`}),u[6]=S):S=u[6];let C;u[7]!==d||u[8]!==_.isPending||u[9]!==_.mutateAsync?(C=(0,m.jsx)(a,{bucket:d,isPending:_.isPending,onUpload:_.mutateAsync}),u[7]=d,u[8]=_.isPending,u[9]=_.mutateAsync,u[10]=C):C=u[10];let w;u[11]!==d||u[12]!==C?(w=(0,m.jsx)(f,{actions:C,title:d}),u[11]=d,u[12]=C,u[13]=w):w=u[13];let T;u[14]===_.error?T=u[15]:(T=_.error&&(0,m.jsx)(e,{error:_.error,msg:`Failed to upload object`}),u[14]=_.error,u[15]=T);let E;u[16]!==d||u[17]!==x?(E=x.length>0&&(0,m.jsxs)(`div`,{className:`mb-6`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Folders`}),(0,m.jsx)(`div`,{className:`space-y-2`,children:x.map(e=>e.Prefix?(0,m.jsx)(i,{bucketName:d,folderName:c(e.Prefix),fullPrefix:e.Prefix},e.Prefix):null)})]}),u[16]=d,u[17]=x,u[18]=E):E=u[18];let D;u[19]!==d||u[20]!==y?(D=y.length>0&&(0,m.jsxs)(`div`,{className:`space-y-2`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Objects`}),y.map(e=>e.Key?(0,m.jsx)(r,{bucketName:d,displayName:e.Key,fullKey:e.Key,object:e},e.Key):null)]}),u[19]=d,u[20]=y,u[21]=D):D=u[21];let O;u[22]!==x.length||u[23]!==y.length?(O=y.length===0&&x.length===0&&(0,m.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this bucket.`}),u[22]=x.length,u[23]=y.length,u[24]=O):O=u[24];let k;return u[25]!==w||u[26]!==T||u[27]!==E||u[28]!==D||u[29]!==O?(k=(0,m.jsxs)(m.Fragment,{children:[S,w,T,E,D,O]}),u[25]=w,u[26]=T,u[27]=E,u[28]=D,u[29]=O,u[30]=k):k=u[30],k}export{h as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{n as r,r as i,t as a}from"./upload-button.js";import{r as o}from"./s3.js";import{F as s,Ro as c,Y as l,bs as u,ps as d}from"./index.js";import{t as f}from"./page-heading.js";var p=d(),m=u();function h(){let u=(0,p.c)(31),{bucket:d}=s.useParams(),h;u[0]===d?h=u[1]:(h=l(d),u[0]=d,u[1]=h);let{data:g}=t(h),_=o(),v;u[2]===g.Contents?v=u[3]:(v=g.Contents??[],u[2]=g.Contents,u[3]=v);let y=v,b;u[4]===g.CommonPrefixes?b=u[5]:(b=g.CommonPrefixes??[],u[4]=g.CommonPrefixes,u[5]=b);let x=b,S;u[6]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,m.jsx)(n,{to:`/s3/ls`,children:`Back to buckets`}),u[6]=S):S=u[6];let C;u[7]!==d||u[8]!==_.isPending||u[9]!==_.mutateAsync?(C=(0,m.jsx)(a,{bucket:d,isPending:_.isPending,onUpload:_.mutateAsync}),u[7]=d,u[8]=_.isPending,u[9]=_.mutateAsync,u[10]=C):C=u[10];let w;u[11]!==d||u[12]!==C?(w=(0,m.jsx)(f,{actions:C,title:d}),u[11]=d,u[12]=C,u[13]=w):w=u[13];let T;u[14]===_.error?T=u[15]:(T=_.error&&(0,m.jsx)(e,{error:_.error,msg:`Failed to upload object`}),u[14]=_.error,u[15]=T);let E;u[16]!==d||u[17]!==x?(E=x.length>0&&(0,m.jsxs)(`div`,{className:`mb-6`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Folders`}),(0,m.jsx)(`div`,{className:`space-y-2`,children:x.map(e=>e.Prefix?(0,m.jsx)(i,{bucketName:d,folderName:c(e.Prefix),fullPrefix:e.Prefix},e.Prefix):null)})]}),u[16]=d,u[17]=x,u[18]=E):E=u[18];let D;u[19]!==d||u[20]!==y?(D=y.length>0&&(0,m.jsxs)(`div`,{className:`space-y-2`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Objects`}),y.map(e=>e.Key?(0,m.jsx)(r,{bucketName:d,displayName:e.Key,fullKey:e.Key,object:e},e.Key):null)]}),u[19]=d,u[20]=y,u[21]=D):D=u[21];let O;u[22]!==x.length||u[23]!==y.length?(O=y.length===0&&x.length===0&&(0,m.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this bucket.`}),u[22]=x.length,u[23]=y.length,u[24]=O):O=u[24];let k;return u[25]!==w||u[26]!==T||u[27]!==E||u[28]!==D||u[29]!==O?(k=(0,m.jsxs)(m.Fragment,{children:[S,w,T,E,D,O]}),u[25]=w,u[26]=T,u[27]=E,u[28]=D,u[29]=O,u[30]=k):k=u[30],k}export{h as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id.js b/spinifex/services/spinifexui/frontend/dist/assets/_id.js index 73fadafa0..2163d9a4f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as o,t as s}from"./select.js";import{t as c}from"./trash-2.js";import{G as l,L as u,n as d}from"./ec2.js";import{Do as f,Io as p,Z as m,at as h,bs as g,hs as _,t as v,ys as y,zs as b}from"./index.js";import{t as x}from"./page-heading.js";import{t as S}from"./delete-confirmation-dialog.js";import{n as C,t as w}from"./detail-row.js";var T=b(g()),E=y();function D(){let{id:g}=v.useParams(),y=_(),{data:b}=t(m(g)),{data:D}=t(h),O=d(),k=u(),A=l(),[j,M]=(0,T.useState)(!1),[N,P]=(0,T.useState)(``),F=b.Addresses?.[0],I=D.Reservations?.flatMap(e=>e.Instances??[]).filter(e=>e.State?.Name===`running`||e.State?.Name===`stopped`)??[],L=async()=>{try{await A.mutateAsync(g),y({to:`/ec2/describe-addresses`})}finally{M(!1)}},R=async()=>{N&&await O.mutateAsync({allocationId:g,instanceId:N})},z=async()=>{F?.AssociationId&&await k.mutateAsync(F.AssociationId)};if(!F?.AllocationId)return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(n,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),(0,E.jsx)(`p`,{className:`text-muted-foreground`,children:`Elastic IP not found.`})]});let B=!!F.AssociationId,V=p(F.Tags);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(n,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),(A.error??O.error??k.error)&&(0,E.jsx)(e,{error:A.error??O.error??k.error??void 0,msg:`Elastic IP action failed`}),(0,E.jsxs)(`div`,{className:`space-y-6`,children:[(0,E.jsx)(x,{actions:(0,E.jsxs)(f,{disabled:B||A.isPending,onClick:()=>M(!0),size:`sm`,variant:`destructive`,children:[(0,E.jsx)(c,{className:`size-4`}),`Release`]}),subtitle:`Elastic IP Details`,title:V?`${F.AllocationId} (${V})`:F.AllocationId}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:`Elastic IP Information`}),(0,E.jsxs)(C.Content,{children:[(0,E.jsx)(w,{label:`Allocation ID`,value:F.AllocationId}),(0,E.jsx)(w,{label:`Public IP`,value:F.PublicIp}),(0,E.jsx)(w,{label:`Domain`,value:F.Domain}),(0,E.jsx)(w,{label:`Association ID`,value:F.AssociationId??`—`}),(0,E.jsx)(w,{label:`Instance ID`,value:F.InstanceId??`—`}),(0,E.jsx)(w,{label:`Private IP`,value:F.PrivateIpAddress??`—`})]})]}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:`Association`}),(0,E.jsx)(C.Content,{children:B?(0,E.jsx)(f,{disabled:k.isPending,onClick:z,size:`sm`,variant:`outline`,children:`Disassociate`}):(0,E.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,E.jsx)(`div`,{className:`flex-1`,children:(0,E.jsxs)(s,{onValueChange:e=>P(e??``),value:N,children:[(0,E.jsx)(o,{className:`w-full`,children:(0,E.jsx)(r,{placeholder:`Select an instance`})}),(0,E.jsx)(a,{children:I.map(e=>{let t=p(e.Tags);return(0,E.jsx)(i,{value:e.InstanceId??``,children:t?`${e.InstanceId} (${t})`:e.InstanceId},e.InstanceId)})})]})}),(0,E.jsx)(f,{disabled:!N||O.isPending,onClick:R,size:`sm`,children:`Associate`})]})})]})]}),(0,E.jsx)(S,{description:`Are you sure you want to release the Elastic IP "${F.AllocationId}" (${F.PublicIp})? This action cannot be undone.`,isPending:A.isPending,onConfirm:L,onOpenChange:M,open:j,title:`Release Elastic IP`})]})}export{D as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as o,t as s}from"./select.js";import{t as c}from"./trash-2.js";import{G as l,L as u,n as d}from"./ec2.js";import{Bs as f,Lo as p,Oo as m,Z as h,at as g,bs as _,gs as v,t as y,xs as b}from"./index.js";import{t as x}from"./page-heading.js";import{t as S}from"./delete-confirmation-dialog.js";import{n as C,t as w}from"./detail-row.js";var T=f(b()),E=_();function D(){let{id:f}=y.useParams(),_=v(),{data:b}=t(h(f)),{data:D}=t(g),O=d(),k=u(),A=l(),[j,M]=(0,T.useState)(!1),[N,P]=(0,T.useState)(``),F=b.Addresses?.[0],I=D.Reservations?.flatMap(e=>e.Instances??[]).filter(e=>e.State?.Name===`running`||e.State?.Name===`stopped`)??[],L=async()=>{try{await A.mutateAsync(f),_({to:`/ec2/describe-addresses`})}finally{M(!1)}},R=async()=>{N&&await O.mutateAsync({allocationId:f,instanceId:N})},z=async()=>{F?.AssociationId&&await k.mutateAsync(F.AssociationId)};if(!F?.AllocationId)return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(n,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),(0,E.jsx)(`p`,{className:`text-muted-foreground`,children:`Elastic IP not found.`})]});let B=!!F.AssociationId,V=p(F.Tags);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(n,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),(A.error??O.error??k.error)&&(0,E.jsx)(e,{error:A.error??O.error??k.error??void 0,msg:`Elastic IP action failed`}),(0,E.jsxs)(`div`,{className:`space-y-6`,children:[(0,E.jsx)(x,{actions:(0,E.jsxs)(m,{disabled:B||A.isPending,onClick:()=>M(!0),size:`sm`,variant:`destructive`,children:[(0,E.jsx)(c,{className:`size-4`}),`Release`]}),subtitle:`Elastic IP Details`,title:V?`${F.AllocationId} (${V})`:F.AllocationId}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:`Elastic IP Information`}),(0,E.jsxs)(C.Content,{children:[(0,E.jsx)(w,{label:`Allocation ID`,value:F.AllocationId}),(0,E.jsx)(w,{label:`Public IP`,value:F.PublicIp}),(0,E.jsx)(w,{label:`Domain`,value:F.Domain}),(0,E.jsx)(w,{label:`Association ID`,value:F.AssociationId??`—`}),(0,E.jsx)(w,{label:`Instance ID`,value:F.InstanceId??`—`}),(0,E.jsx)(w,{label:`Private IP`,value:F.PrivateIpAddress??`—`})]})]}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:`Association`}),(0,E.jsx)(C.Content,{children:B?(0,E.jsx)(m,{disabled:k.isPending,onClick:z,size:`sm`,variant:`outline`,children:`Disassociate`}):(0,E.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,E.jsx)(`div`,{className:`flex-1`,children:(0,E.jsxs)(s,{onValueChange:e=>P(e??``),value:N,children:[(0,E.jsx)(o,{className:`w-full`,children:(0,E.jsx)(r,{placeholder:`Select an instance`})}),(0,E.jsx)(a,{children:I.map(e=>{let t=p(e.Tags);return(0,E.jsx)(i,{value:e.InstanceId??``,children:t?`${e.InstanceId} (${t})`:e.InstanceId},e.InstanceId)})})]})}),(0,E.jsx)(m,{disabled:!N||O.isPending,onClick:R,size:`sm`,children:`Associate`})]})})]})]}),(0,E.jsx)(S,{description:`Are you sure you want to release the Elastic IP "${F.AllocationId}" (${F.PublicIp})? This action cannot be undone.`,isPending:A.isPending,onConfirm:L,onOpenChange:M,open:j,title:`Release Elastic IP`})]})}export{D 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 7573c1cec..75b79af76 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id10.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id10.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as o,t as s}from"./select.js";import{t as c}from"./plus.js";import{t as l}from"./trash-2.js";import{A as u,K as d,c as f,q as p,s as m}from"./ec2.js";import{Da as h,Do as g,Go as _,_t as v,bs as y,hs as b,ms as x,u as S,ys as C,zs as w}from"./index.js";import{i as T,n as E,t as D}from"./zod.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=w(y()),W=C();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:t,onOpenChange:n,direction:c,groupId:l}){let u=f(),d=m(),p=c===`ingress`?u:d,{control:g,handleSubmit:_,register:v,reset:y,watch:b,formState:{errors:x}}=T({resolver:D(M),defaultValues:{ipProtocol:`tcp`,fromPort:0,toPort:0,cidrIp:`0.0.0.0/0`}}),S=b(`ipProtocol`),C=S===`-1`||S===`icmp`;return(0,W.jsx)(z,{onOpenChange:n,open:t,children:(0,W.jsxs)(N,{children:[(0,W.jsx)(R,{children:(0,W.jsxs)(P,{children:[`Add `,c===`ingress`?`Inbound`:`Outbound`,` Rule`]})}),p.error&&(0,W.jsx)(e,{error:p.error,msg:`Failed to add rule`}),(0,W.jsxs)(`form`,{className:`space-y-4`,id:`add-rule-form`,onSubmit:_(async e=>{let t={groupId:l,ipProtocol:e.ipProtocol,fromPort:C?-1:e.fromPort,toPort:C?-1:e.toPort,cidrIp:e.cidrIp};await p.mutateAsync(t),y(),n(!1)}),children:[(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`ipProtocol`,children:`Protocol`})}),(0,W.jsx)(E,{control:g,name:`ipProtocol`,render:({field:e})=>(0,W.jsxs)(s,{onValueChange:t=>e.onChange(t),value:e.value,children:[(0,W.jsx)(o,{className:`w-full`,id:`ipProtocol`,children:(0,W.jsx)(r,{})}),(0,W.jsxs)(a,{children:[(0,W.jsx)(i,{value:`tcp`,children:`TCP`}),(0,W.jsx)(i,{value:`udp`,children:`UDP`}),(0,W.jsx)(i,{value:`icmp`,children:`ICMP`}),(0,W.jsx)(i,{value:`-1`,children:`All traffic (-1)`})]})]})}),(0,W.jsx)(A,{errors:[x.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)(h,{"aria-invalid":!!x.fromPort,disabled:C,id:`fromPort`,type:`number`,...v(`fromPort`,{valueAsNumber:!0})}),(0,W.jsx)(A,{errors:[x.fromPort]})]}),(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`toPort`,children:`To Port`})}),(0,W.jsx)(h,{"aria-invalid":!!x.toPort,disabled:C,id:`toPort`,type:`number`,...v(`toPort`,{valueAsNumber:!0})}),(0,W.jsx)(A,{errors:[x.toPort]})]})]}),(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsxs)(`label`,{htmlFor:`cidrIp`,children:[c===`ingress`?`Source`:`Destination`,` CIDR`]})}),(0,W.jsx)(h,{"aria-invalid":!!x.cidrIp,id:`cidrIp`,placeholder:`0.0.0.0/0`,...v(`cidrIp`)}),(0,W.jsx)(A,{errors:[x.cidrIp]})]})]}),(0,W.jsxs)(I,{children:[(0,W.jsx)(L,{onClick:()=>{y(),p.reset()},children:`Cancel`}),(0,W.jsx)(F,{disabled:p.isPending,form:`add-rule-form`,type:`submit`,children:p.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:t,source:n,groupId:r,direction:i}){let a=p(),o=d(),s=i===`ingress`?a:o,c=async()=>{try{await s.mutateAsync({groupId:r,ipProtocol:t.IpProtocol??`-1`,fromPort:t.FromPort??-1,toPort:t.ToPort??-1,...n.kind===`group`?{sourceGroupId:n.value}:{cidrIp:n.value}})}catch{}},l=n.kind===`group`&&n.value===r?`${n.value} (this security group)`:n.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(t.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Port Range: `}),K(t.FromPort,t.ToPort,t.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsxs)(`span`,{className:`text-muted-foreground`,children:[i===`ingress`?`Source`:`Destination`,`:`,` `]}),l]})]}),(0,W.jsx)(g,{disabled:s.isPending,onClick:c,size:`icon-xs`,variant:`ghost`,children:(0,W.jsx)(_,{className:`size-3`})})]}),s.error&&(0,W.jsx)(`div`,{className:`px-4 pb-2`,children:(0,W.jsx)(e,{error:s.error,msg:`Failed to remove rule`})})]})}function X(){let{id:r}=S.useParams(),i=b(),{data:a}=t(v(r)),o=a.SecurityGroups?.[0],s=u(),[d,f]=(0,U.useState)(!1),[p,m]=(0,U.useState)(!1),[h,_]=(0,U.useState)(!1),y=async()=>{try{await s.mutateAsync(r),i({to:`/ec2/describe-security-groups`})}finally{f(!1)}};if(!o?.GroupId)return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(n,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`Security group not found.`})]});let C=o.IpPermissions??[],w=o.IpPermissionsEgress??[];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(n,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),s.error&&(0,W.jsx)(e,{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)(g,{onClick:()=>f(!0),size:`sm`,variant:`destructive`,children:[(0,W.jsx)(l,{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)(x,{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 (`,C.length,`)`]}),(0,W.jsxs)(g,{onClick:()=>m(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(c,{className:`size-4`}),`Add Rule`]})]}),C.length>0?(0,W.jsx)(`div`,{children:C.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 (`,w.length,`)`]}),(0,W.jsxs)(g,{onClick:()=>_(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(c,{className:`size-4`}),`Add Rule`]})]}),w.length>0?(0,W.jsx)(`div`,{children:w.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:y,onOpenChange:f,open:d,title:`Delete Security Group`}),(0,W.jsx)(q,{direction:`ingress`,groupId:o.GroupId,onOpenChange:m,open:p}),(0,W.jsx)(q,{direction:`egress`,groupId:o.GroupId,onOpenChange:_,open:h})]})}export{X as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as o,t as s}from"./select.js";import{t as c}from"./plus.js";import{t as l}from"./trash-2.js";import{A as u,K as d,c as f,q as p,s as m}from"./ec2.js";import{Bs as h,Ko as g,Oa as _,Oo as v,_t as y,bs as b,gs as x,hs as S,u as C,xs as w}from"./index.js";import{i as T,n as E,t as D}from"./zod.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=h(w()),W=b();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:t,onOpenChange:n,direction:c,groupId:l}){let u=f(),d=m(),p=c===`ingress`?u:d,{control:h,handleSubmit:g,register:v,reset:y,watch:b,formState:{errors:x}}=T({resolver:D(M),defaultValues:{ipProtocol:`tcp`,fromPort:0,toPort:0,cidrIp:`0.0.0.0/0`}}),S=b(`ipProtocol`),C=S===`-1`||S===`icmp`;return(0,W.jsx)(z,{onOpenChange:n,open:t,children:(0,W.jsxs)(N,{children:[(0,W.jsx)(R,{children:(0,W.jsxs)(P,{children:[`Add `,c===`ingress`?`Inbound`:`Outbound`,` Rule`]})}),p.error&&(0,W.jsx)(e,{error:p.error,msg:`Failed to add rule`}),(0,W.jsxs)(`form`,{className:`space-y-4`,id:`add-rule-form`,onSubmit:g(async e=>{let t={groupId:l,ipProtocol:e.ipProtocol,fromPort:C?-1:e.fromPort,toPort:C?-1:e.toPort,cidrIp:e.cidrIp};await p.mutateAsync(t),y(),n(!1)}),children:[(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`ipProtocol`,children:`Protocol`})}),(0,W.jsx)(E,{control:h,name:`ipProtocol`,render:({field:e})=>(0,W.jsxs)(s,{onValueChange:t=>e.onChange(t),value:e.value,children:[(0,W.jsx)(o,{className:`w-full`,id:`ipProtocol`,children:(0,W.jsx)(r,{})}),(0,W.jsxs)(a,{children:[(0,W.jsx)(i,{value:`tcp`,children:`TCP`}),(0,W.jsx)(i,{value:`udp`,children:`UDP`}),(0,W.jsx)(i,{value:`icmp`,children:`ICMP`}),(0,W.jsx)(i,{value:`-1`,children:`All traffic (-1)`})]})]})}),(0,W.jsx)(A,{errors:[x.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)(_,{"aria-invalid":!!x.fromPort,disabled:C,id:`fromPort`,type:`number`,...v(`fromPort`,{valueAsNumber:!0})}),(0,W.jsx)(A,{errors:[x.fromPort]})]}),(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`toPort`,children:`To Port`})}),(0,W.jsx)(_,{"aria-invalid":!!x.toPort,disabled:C,id:`toPort`,type:`number`,...v(`toPort`,{valueAsNumber:!0})}),(0,W.jsx)(A,{errors:[x.toPort]})]})]}),(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsxs)(`label`,{htmlFor:`cidrIp`,children:[c===`ingress`?`Source`:`Destination`,` CIDR`]})}),(0,W.jsx)(_,{"aria-invalid":!!x.cidrIp,id:`cidrIp`,placeholder:`0.0.0.0/0`,...v(`cidrIp`)}),(0,W.jsx)(A,{errors:[x.cidrIp]})]})]}),(0,W.jsxs)(I,{children:[(0,W.jsx)(L,{onClick:()=>{y(),p.reset()},children:`Cancel`}),(0,W.jsx)(F,{disabled:p.isPending,form:`add-rule-form`,type:`submit`,children:p.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:t,source:n,groupId:r,direction:i}){let a=p(),o=d(),s=i===`ingress`?a:o,c=async()=>{try{await s.mutateAsync({groupId:r,ipProtocol:t.IpProtocol??`-1`,fromPort:t.FromPort??-1,toPort:t.ToPort??-1,...n.kind===`group`?{sourceGroupId:n.value}:{cidrIp:n.value}})}catch{}},l=n.kind===`group`&&n.value===r?`${n.value} (this security group)`:n.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(t.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Port Range: `}),K(t.FromPort,t.ToPort,t.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsxs)(`span`,{className:`text-muted-foreground`,children:[i===`ingress`?`Source`:`Destination`,`:`,` `]}),l]})]}),(0,W.jsx)(v,{disabled:s.isPending,onClick:c,size:`icon-xs`,variant:`ghost`,children:(0,W.jsx)(g,{className:`size-3`})})]}),s.error&&(0,W.jsx)(`div`,{className:`px-4 pb-2`,children:(0,W.jsx)(e,{error:s.error,msg:`Failed to remove rule`})})]})}function X(){let{id:r}=C.useParams(),i=x(),{data:a}=t(y(r)),o=a.SecurityGroups?.[0],s=u(),[d,f]=(0,U.useState)(!1),[p,m]=(0,U.useState)(!1),[h,g]=(0,U.useState)(!1),_=async()=>{try{await s.mutateAsync(r),i({to:`/ec2/describe-security-groups`})}finally{f(!1)}};if(!o?.GroupId)return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(n,{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??[],w=o.IpPermissionsEgress??[];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(n,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),s.error&&(0,W.jsx)(e,{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)(v,{onClick:()=>f(!0),size:`sm`,variant:`destructive`,children:[(0,W.jsx)(l,{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)(S,{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)(v,{onClick:()=>m(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(c,{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 (`,w.length,`)`]}),(0,W.jsxs)(v,{onClick:()=>g(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(c,{className:`size-4`}),`Add Rule`]})]}),w.length>0?(0,W.jsx)(`div`,{children:w.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:_,onOpenChange:f,open:d,title:`Delete Security Group`}),(0,W.jsx)(q,{direction:`ingress`,groupId:o.GroupId,onOpenChange:m,open:p}),(0,W.jsx)(q,{direction:`egress`,groupId:o.GroupId,onOpenChange:g,open:h})]})}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 1b1f377fd..da1423298 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id11.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id11.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./copy.js";import{t as i}from"./trash-2.js";import{j as a,l as o}from"./ec2.js";import{Da as s,Do as c,No as l,bs as u,d,hs as f,ms as p,mt as m,ys as h,yt as g,zs as _}from"./index.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=_(u()),P=h();function F(){let{id:u}=d.useParams(),h=f(),{data:_}=t(g(u)),{data:F}=t(m),I=_.Snapshots?.[0],L=a(),R=o(),[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(u),h({to:`/ec2/describe-snapshots`})}finally{B(!1)}},J=async()=>{try{await R.mutateAsync({sourceSnapshotId:u,sourceRegion:G,description:U||void 0}),H(!1),W(``)}catch{}};if(!I?.SnapshotId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(n,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Snapshot not found.`})]});let Y=l(I.StartTime);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(n,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L.error&&(0,P.jsx)(e,{error:L.error,msg:`Failed to delete snapshot`}),R.error&&(0,P.jsx)(e,{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)(c,{disabled:!K,onClick:()=>B(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(i,{className:`size-4`}),`Delete`]}),(0,P.jsxs)(c,{disabled:!K,onClick:()=>H(!0),size:`sm`,variant:`outline`,children:[(0,P.jsx)(r,{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)(p,{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)(s,{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{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./copy.js";import{t as i}from"./trash-2.js";import{j as a,l as o}from"./ec2.js";import{Bs as s,Oa as c,Oo as l,Po as u,bs as d,d as f,gs as p,hs as m,mt as h,xs as g,yt as _}from"./index.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=s(g()),P=d();function F(){let{id:s}=f.useParams(),d=p(),{data:g}=t(_(s)),{data:F}=t(h),I=g.Snapshots?.[0],L=a(),R=o(),[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(s),d({to:`/ec2/describe-snapshots`})}finally{B(!1)}},J=async()=>{try{await R.mutateAsync({sourceSnapshotId:s,sourceRegion:G,description:U||void 0}),H(!1),W(``)}catch{}};if(!I?.SnapshotId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(n,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Snapshot not found.`})]});let Y=u(I.StartTime);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(n,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L.error&&(0,P.jsx)(e,{error:L.error,msg:`Failed to delete snapshot`}),R.error&&(0,P.jsx)(e,{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)(i,{className:`size-4`}),`Delete`]}),(0,P.jsxs)(l,{disabled:!K,onClick:()=>H(!0),size:`sm`,variant:`outline`,children:[(0,P.jsx)(r,{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)(m,{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)(c,{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 7a61513a5..051c5341e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id12.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id12.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{M as i}from"./ec2.js";import{Do as a,Io as o,bs as s,f as c,hs as l,ms as u,xt as d,ys as f,zs as p}from"./index.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=p(s()),b=f();function x(){let{id:s}=c.useParams(),f=l(),{data:p}=t(d(s)),x=p.Subnets?.[0],S=i(),[C,w]=(0,y.useState)(!1),T=async()=>{try{await S.mutateAsync(s),f({to:`/ec2/describe-subnets`})}finally{w(!1)}};if(!x?.SubnetId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(n,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Subnet not found.`})]});let E=o(x.Tags);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(n,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),S.error&&(0,b.jsx)(e,{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)(a,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(r,{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)(u,{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{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{M as i}from"./ec2.js";import{Bs as a,Lo as o,Oo as s,bs as c,f as l,gs as u,hs as d,xs as f,xt as p}from"./index.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=a(f()),b=c();function x(){let{id:a}=l.useParams(),c=u(),{data:f}=t(p(a)),x=f.Subnets?.[0],S=i(),[C,w]=(0,y.useState)(!1),T=async()=>{try{await S.mutateAsync(a),c({to:`/ec2/describe-subnets`})}finally{w(!1)}};if(!x?.SubnetId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(n,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Subnet not found.`})]});let E=o(x.Tags);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(n,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),S.error&&(0,b.jsx)(e,{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)(s,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(r,{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)(d,{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/_id13.js b/spinifex/services/spinifexui/frontend/dist/assets/_id13.js index 4a9ea8984..8c26b0d61 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id13.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id13.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useQuery.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./back-link.js";import{t as i}from"./trash-2.js";import{c as a,g as o,l as s,m as c,p as l}from"./elbv2.js";import{Ao as u,Da as d,Do as f,H as p,Io as m,K as h,U as g,W as _,at as v,bs as y,fs as b,hs as x,p as S,ys as C,zs as w}from"./index.js";import{t as T}from"./page-heading.js";import{a as E,i as D,l as O,n as k,o as A,r as j,s as M,t as N}from"./alert-dialog.js";import{t as P}from"./delete-confirmation-dialog.js";import{n as F,t as I}from"./detail-row.js";import{a as L,c as R,i as z,n as B,o as V,r as H,t as U}from"./tabs.js";var W=b(),G=w(y(),1),K=C();function q(e){let t=e.trim();if(t===``)return;let n=Number(t);if(!(!Number.isInteger(n)||n<1||n>65535))return n}function J(e){let t=(0,W.c)(36),{open:n,onOpenChange:r,instances:i,defaultPort:a,isPending:o,onConfirm:s}=e,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={},t[0]=c):c=t[0];let[l,u]=(0,G.useState)(c),[f,p]=(0,G.useState)(),h,g;t[1]===n?(h=t[2],g=t[3]):(h=()=>{n||(u({}),p(void 0))},g=[n],t[1]=n,t[2]=h,t[3]=g),(0,G.useEffect)(h,g);let _;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>{u(t=>{let n=t[e];return n?.checked?{...t,[e]:{...n,checked:!1}}:{...t,[e]:{checked:!0,port:n?.port??``}}})},t[4]=_):_=t[4];let v=_,y;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(y=(e,t)=>{u(n=>({...n,[e]:{checked:n[e]?.checked??!0,port:t}}))},t[5]=y):y=t[5];let b=y,x;t[6]!==s||t[7]!==l?(x=()=>{let e=Object.entries(l).filter(Y);if(e.length===0){p(`Select at least one instance.`);return}let t=[];for(let[n,r]of e){if(r.port.trim()===``){t.push({id:n});continue}let e=q(r.port);if(e===void 0){p(`Port for ${n} must be an integer between 1 and 65535.`);return}t.push({id:n,port:e})}p(void 0),s(t)},t[6]=s,t[7]=l,t[8]=x):x=t[8];let S=x,C;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,K.jsx)(O,{children:`Register targets`}),t[9]=C):C=t[9];let w;t[10]===a?w=t[11]:(w=(0,K.jsxs)(M,{children:[C,(0,K.jsxs)(E,{children:[`Select instances to register. Leave port blank to use the target group port (`,a,`).`]})]}),t[10]=a,t[11]=w);let T;t[12]!==a||t[13]!==i||t[14]!==l?(T=i.length===0?(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances available in this VPC.`}):(0,K.jsx)(`div`,{className:`max-h-72 space-y-1 overflow-y-auto`,children:i.map(e=>{let t=e.InstanceId??``,n=l[t],r=n?.checked??!1,i=m(e.Tags);return(0,K.jsxs)(`div`,{className:`flex items-center gap-2 rounded px-1 py-1 text-xs hover:bg-accent`,children:[(0,K.jsx)(`input`,{"aria-label":`Register target ${t}`,checked:r,id:`register-target-${t}`,onChange:()=>v(t),type:`checkbox`}),(0,K.jsxs)(`label`,{className:`flex flex-1 items-center gap-2`,htmlFor:`register-target-${t}`,children:[(0,K.jsx)(`span`,{className:`font-mono`,children:t}),i&&(0,K.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,i,`)`]}),(0,K.jsx)(`span`,{className:`text-muted-foreground`,children:e.State?.Name??``})]}),r&&(0,K.jsx)(d,{"aria-label":`Port override for ${t}`,className:`w-24`,onChange:e=>b(t,e.target.value),placeholder:String(a),value:n?.port??``})]},t)})}),t[12]=a,t[13]=i,t[14]=l,t[15]=T):T=t[15];let P;t[16]===f?P=t[17]:(P=f&&(0,K.jsx)(`p`,{className:`text-xs text-destructive`,role:`alert`,children:f}),t[16]=f,t[17]=P);let F;t[18]===o?F=t[19]:(F=(0,K.jsx)(j,{disabled:o,children:`Cancel`}),t[18]=o,t[19]=F);let I=o?`Registering…`:`Register`,L;t[20]!==S||t[21]!==o||t[22]!==I?(L=(0,K.jsx)(k,{disabled:o,onClick:S,children:I}),t[20]=S,t[21]=o,t[22]=I,t[23]=L):L=t[23];let R;t[24]!==F||t[25]!==L?(R=(0,K.jsxs)(A,{children:[F,L]}),t[24]=F,t[25]=L,t[26]=R):R=t[26];let z;t[27]!==P||t[28]!==R||t[29]!==w||t[30]!==T?(z=(0,K.jsxs)(D,{className:`sm:max-w-lg`,children:[w,T,P,R]}),t[27]=P,t[28]=R,t[29]=w,t[30]=T,t[31]=z):z=t[31];let B;return t[32]!==r||t[33]!==n||t[34]!==z?(B=(0,K.jsx)(N,{onOpenChange:r,open:n,children:z}),t[32]=r,t[33]=n,t[34]=z,t[35]=B):B=t[35],B}function Y(e){let[,t]=e;return t.checked&&t!==void 0}var X=5e3,Z=new Set([`healthy`]),Q=new Set([`unhealthy`,`unavailable`]),$=new Set([`initial`,`draining`]);function ee(e){return e&&Z.has(e)?`bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100`:e&&Q.has(e)?`bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100`:e&&$.has(e)?`bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100`:`bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100`}function te(e){return`${e.Id??``}:${e.Port??``}`}function ne({targetGroupArn:r,vpcId:a,defaultPort:o,isActive:l}){let{data:d}=n(v),{data:p,isLoading:m,error:g}=t({...h(r),refetchInterval:l?X:!1,refetchIntervalInBackground:!1}),_=c(),y=s(),[b,x]=(0,G.useState)(!1),[S,C]=(0,G.useState)(),w=(d.Reservations?.flatMap(e=>e.Instances??[])??[]).filter(e=>e.VpcId===a&&e.State?.Name!==`terminated`),T=p?.TargetHealthDescriptions??[];return(0,K.jsxs)(`div`,{className:`space-y-3`,children:[_.error&&(0,K.jsx)(e,{error:_.error,msg:`Failed to register targets`}),y.error&&(0,K.jsx)(e,{error:y.error,msg:`Failed to deregister target`}),g&&(0,K.jsx)(e,{error:g,msg:`Failed to load target health`}),(0,K.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:m?`Loading target health…`:`${T.length} target${T.length===1?``:`s`}`}),(0,K.jsx)(f,{onClick:()=>x(!0),size:`sm`,children:`Register targets`})]}),T.length===0?(0,K.jsx)(`p`,{className:`text-muted-foreground`,children:`No targets registered.`}):(0,K.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,K.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,K.jsx)(`thead`,{children:(0,K.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`AZ`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Health`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Reason`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Description`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,K.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,K.jsx)(`tbody`,{children:T.map(e=>{let t=e.Target??{Id:``},n=e.TargetHealth?.State;return(0,K.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,K.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t.Id??``}),(0,K.jsx)(`td`,{className:`px-4 py-2`,children:t.Port??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:t.AvailabilityZone??``}),(0,K.jsx)(`td`,{className:`px-4 py-2`,children:(0,K.jsx)(`span`,{className:u(`rounded-full px-2 py-0.5 text-xs`,ee(n)),children:n??`unknown`})}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Reason??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Description??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,K.jsx)(f,{"aria-label":`Deregister ${t.Id}`,onClick:()=>C(t),size:`sm`,variant:`ghost`,children:(0,K.jsx)(i,{className:`size-4`})})})]},te(t))})})]})}),(0,K.jsx)(J,{defaultPort:o,instances:w,isPending:_.isPending,onConfirm:async e=>{try{await _.mutateAsync({targetGroupArn:r,targets:e}),x(!1)}catch{}},onOpenChange:x,open:b}),(0,K.jsx)(P,{description:S?`Deregister ${S.Id}${S.Port?`:${S.Port}`:``} from this target group?`:``,isPending:y.isPending,onConfirm:async()=>{if(S?.Id)try{await y.mutateAsync({targetGroupArn:r,targets:[{id:S.Id,port:S.Port}]})}finally{C(void 0)}},onOpenChange:e=>!e&&C(void 0),open:S!==void 0,title:`Deregister target`})]})}function re({arn:t}){let s=x(),{data:c}=n(_(t)),{data:u}=n(g(t)),{data:d}=n(p([t])),m=a(),h=l(),v=o(),[y,b]=(0,G.useState)(!1),[S,C]=(0,G.useState)(`overview`),w=c.TargetGroups?.[0];if(!w?.TargetGroupArn)return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(r,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),(0,K.jsx)(`p`,{className:`text-muted-foreground`,children:`Target group not found.`})]});let E=async()=>{try{await m.mutateAsync(t),s({to:`/ec2/describe-target-groups`})}finally{b(!1)}},D=u.Attributes??[],O=d?.TagDescriptions?.find(e=>e.ResourceArn===t)?.Tags??[];return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(r,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),m.error&&(0,K.jsx)(e,{error:m.error,msg:`Failed to delete target group`}),(0,K.jsxs)(`div`,{className:`space-y-6`,children:[(0,K.jsx)(T,{actions:(0,K.jsxs)(f,{onClick:()=>b(!0),size:`sm`,variant:`destructive`,children:[(0,K.jsx)(i,{className:`size-4`}),`Delete`]}),subtitle:`Target Group Details`,title:w.TargetGroupName??w.TargetGroupArn}),(0,K.jsxs)(U,{onValueChange:C,value:S,children:[(0,K.jsxs)(B,{children:[(0,K.jsx)(z,{value:`overview`,children:`Overview`}),(0,K.jsx)(z,{value:`targets`,children:`Targets`}),(0,K.jsx)(z,{value:`health-checks`,children:`Health checks`}),(0,K.jsx)(z,{value:`attributes`,children:`Attributes`}),(0,K.jsx)(z,{value:`tags`,children:`Tags`})]}),(0,K.jsx)(H,{value:`overview`,children:(0,K.jsxs)(F,{children:[(0,K.jsx)(F.Header,{children:`Target group`}),(0,K.jsxs)(F.Content,{children:[(0,K.jsx)(I,{label:`ARN`,value:w.TargetGroupArn}),(0,K.jsx)(I,{label:`Protocol`,value:w.Protocol}),(0,K.jsx)(I,{label:`Port`,value:w.Port?.toString()}),(0,K.jsx)(I,{label:`VPC`,value:w.VpcId}),(0,K.jsx)(I,{label:`Target type`,value:w.TargetType}),(0,K.jsx)(I,{label:`Protocol version`,value:w.ProtocolVersion}),(0,K.jsx)(I,{label:`IP address type`,value:w.IpAddressType})]})]})}),(0,K.jsx)(H,{value:`targets`,children:(0,K.jsx)(ne,{defaultPort:w.Port??80,isActive:S===`targets`,targetGroupArn:w.TargetGroupArn,vpcId:w.VpcId})}),(0,K.jsxs)(H,{value:`health-checks`,children:[(0,K.jsx)(`p`,{className:`mb-3 text-sm text-muted-foreground`,children:`Health-check settings are set at creation time. Editing lands in a future slice (mulga-948).`}),(0,K.jsxs)(F,{children:[(0,K.jsx)(F.Header,{children:`Health check`}),(0,K.jsxs)(F.Content,{children:[(0,K.jsx)(I,{label:`Enabled`,value:w.HealthCheckEnabled===void 0?void 0:String(w.HealthCheckEnabled)}),(0,K.jsx)(I,{label:`Protocol`,value:w.HealthCheckProtocol}),(0,K.jsx)(I,{label:`Path`,value:w.HealthCheckPath}),(0,K.jsx)(I,{label:`Port`,value:w.HealthCheckPort}),(0,K.jsx)(I,{label:`Interval (s)`,value:w.HealthCheckIntervalSeconds?.toString()}),(0,K.jsx)(I,{label:`Timeout (s)`,value:w.HealthCheckTimeoutSeconds?.toString()}),(0,K.jsx)(I,{label:`Healthy threshold`,value:w.HealthyThresholdCount?.toString()}),(0,K.jsx)(I,{label:`Unhealthy threshold`,value:w.UnhealthyThresholdCount?.toString()}),(0,K.jsx)(I,{label:`Matcher (HTTP codes)`,value:w.Matcher?.HttpCode??w.Matcher?.GrpcCode})]})]})]}),(0,K.jsx)(H,{value:`attributes`,children:(0,K.jsx)(V,{attributes:D,error:h.error,isPending:h.isPending,isSuccess:h.isSuccess,onSubmit:e=>{h.mutate({targetGroupArn:t,attributes:e})},specs:R})}),(0,K.jsx)(H,{value:`tags`,children:(0,K.jsx)(L,{error:v.error,isPending:v.isPending,isSuccess:v.isSuccess,onSubmit:e=>v.mutate({resourceArn:t,tags:e,initialKeys:O.map(e=>e.Key??``).filter(e=>e.length>0)}),tags:O})})]})]}),(0,K.jsx)(P,{description:`Are you sure you want to delete target group "${w.TargetGroupName??w.TargetGroupArn}"? This action cannot be undone.`,isPending:m.isPending,onConfirm:E,onOpenChange:b,open:y,title:`Delete Target Group`})]})}function ie(){let e=(0,W.c)(2),{id:t}=S.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,K.jsx)(re,{arn:n}),e[0]=n,e[1]=r),r}export{ie as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useQuery.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./back-link.js";import{t as i}from"./trash-2.js";import{_ as a,c as o,l as s,m as c,p as l}from"./elbv2.js";import{Bs as u,H as d,K as f,Lo as p,Oa as m,Oo as h,U as g,W as _,at as v,bs as y,gs as b,jo as x,p as S,ps as C,xs as w}from"./index.js";import{t as T}from"./page-heading.js";import{a as E,i as D,l as O,n as k,o as A,r as j,s as M,t as N}from"./alert-dialog.js";import{t as P}from"./delete-confirmation-dialog.js";import{n as F,t as I}from"./detail-row.js";import{a as L,c as R,i as z,n as B,o as V,r as H,t as U}from"./tabs.js";var W=C(),G=u(w(),1),K=y();function q(e){let t=e.trim();if(t===``)return;let n=Number(t);if(!(!Number.isInteger(n)||n<1||n>65535))return n}function J(e){let t=(0,W.c)(36),{open:n,onOpenChange:r,instances:i,defaultPort:a,isPending:o,onConfirm:s}=e,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={},t[0]=c):c=t[0];let[l,u]=(0,G.useState)(c),[d,f]=(0,G.useState)(),h,g;t[1]===n?(h=t[2],g=t[3]):(h=()=>{n||(u({}),f(void 0))},g=[n],t[1]=n,t[2]=h,t[3]=g),(0,G.useEffect)(h,g);let _;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>{u(t=>{let n=t[e];return n?.checked?{...t,[e]:{...n,checked:!1}}:{...t,[e]:{checked:!0,port:n?.port??``}}})},t[4]=_):_=t[4];let v=_,y;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(y=(e,t)=>{u(n=>({...n,[e]:{checked:n[e]?.checked??!0,port:t}}))},t[5]=y):y=t[5];let b=y,x;t[6]!==s||t[7]!==l?(x=()=>{let e=Object.entries(l).filter(Y);if(e.length===0){f(`Select at least one instance.`);return}let t=[];for(let[n,r]of e){if(r.port.trim()===``){t.push({id:n});continue}let e=q(r.port);if(e===void 0){f(`Port for ${n} must be an integer between 1 and 65535.`);return}t.push({id:n,port:e})}f(void 0),s(t)},t[6]=s,t[7]=l,t[8]=x):x=t[8];let S=x,C;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,K.jsx)(O,{children:`Register targets`}),t[9]=C):C=t[9];let w;t[10]===a?w=t[11]:(w=(0,K.jsxs)(M,{children:[C,(0,K.jsxs)(E,{children:[`Select instances to register. Leave port blank to use the target group port (`,a,`).`]})]}),t[10]=a,t[11]=w);let T;t[12]!==a||t[13]!==i||t[14]!==l?(T=i.length===0?(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances available in this VPC.`}):(0,K.jsx)(`div`,{className:`max-h-72 space-y-1 overflow-y-auto`,children:i.map(e=>{let t=e.InstanceId??``,n=l[t],r=n?.checked??!1,i=p(e.Tags);return(0,K.jsxs)(`div`,{className:`flex items-center gap-2 rounded px-1 py-1 text-xs hover:bg-accent`,children:[(0,K.jsx)(`input`,{"aria-label":`Register target ${t}`,checked:r,id:`register-target-${t}`,onChange:()=>v(t),type:`checkbox`}),(0,K.jsxs)(`label`,{className:`flex flex-1 items-center gap-2`,htmlFor:`register-target-${t}`,children:[(0,K.jsx)(`span`,{className:`font-mono`,children:t}),i&&(0,K.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,i,`)`]}),(0,K.jsx)(`span`,{className:`text-muted-foreground`,children:e.State?.Name??``})]}),r&&(0,K.jsx)(m,{"aria-label":`Port override for ${t}`,className:`w-24`,onChange:e=>b(t,e.target.value),placeholder:String(a),value:n?.port??``})]},t)})}),t[12]=a,t[13]=i,t[14]=l,t[15]=T):T=t[15];let P;t[16]===d?P=t[17]:(P=d&&(0,K.jsx)(`p`,{className:`text-xs text-destructive`,role:`alert`,children:d}),t[16]=d,t[17]=P);let F;t[18]===o?F=t[19]:(F=(0,K.jsx)(j,{disabled:o,children:`Cancel`}),t[18]=o,t[19]=F);let I=o?`Registering…`:`Register`,L;t[20]!==S||t[21]!==o||t[22]!==I?(L=(0,K.jsx)(k,{disabled:o,onClick:S,children:I}),t[20]=S,t[21]=o,t[22]=I,t[23]=L):L=t[23];let R;t[24]!==F||t[25]!==L?(R=(0,K.jsxs)(A,{children:[F,L]}),t[24]=F,t[25]=L,t[26]=R):R=t[26];let z;t[27]!==P||t[28]!==R||t[29]!==w||t[30]!==T?(z=(0,K.jsxs)(D,{className:`sm:max-w-lg`,children:[w,T,P,R]}),t[27]=P,t[28]=R,t[29]=w,t[30]=T,t[31]=z):z=t[31];let B;return t[32]!==r||t[33]!==n||t[34]!==z?(B=(0,K.jsx)(N,{onOpenChange:r,open:n,children:z}),t[32]=r,t[33]=n,t[34]=z,t[35]=B):B=t[35],B}function Y(e){let[,t]=e;return t.checked&&t!==void 0}var X=5e3,Z=new Set([`healthy`]),Q=new Set([`unhealthy`,`unavailable`]),$=new Set([`initial`,`draining`]);function ee(e){return e&&Z.has(e)?`bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100`:e&&Q.has(e)?`bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100`:e&&$.has(e)?`bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100`:`bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100`}function te(e){return`${e.Id??``}:${e.Port??``}`}function ne({targetGroupArn:r,vpcId:a,defaultPort:o,isActive:l}){let{data:u}=n(v),{data:d,isLoading:p,error:m}=t({...f(r),refetchInterval:l?X:!1,refetchIntervalInBackground:!1}),g=c(),_=s(),[y,b]=(0,G.useState)(!1),[S,C]=(0,G.useState)(),w=(u.Reservations?.flatMap(e=>e.Instances??[])??[]).filter(e=>e.VpcId===a&&e.State?.Name!==`terminated`),T=d?.TargetHealthDescriptions??[];return(0,K.jsxs)(`div`,{className:`space-y-3`,children:[g.error&&(0,K.jsx)(e,{error:g.error,msg:`Failed to register targets`}),_.error&&(0,K.jsx)(e,{error:_.error,msg:`Failed to deregister target`}),m&&(0,K.jsx)(e,{error:m,msg:`Failed to load target health`}),(0,K.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:p?`Loading target health…`:`${T.length} target${T.length===1?``:`s`}`}),(0,K.jsx)(h,{onClick:()=>b(!0),size:`sm`,children:`Register targets`})]}),T.length===0?(0,K.jsx)(`p`,{className:`text-muted-foreground`,children:`No targets registered.`}):(0,K.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,K.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,K.jsx)(`thead`,{children:(0,K.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`AZ`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Health`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Reason`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Description`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,K.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,K.jsx)(`tbody`,{children:T.map(e=>{let t=e.Target??{Id:``},n=e.TargetHealth?.State;return(0,K.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,K.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t.Id??``}),(0,K.jsx)(`td`,{className:`px-4 py-2`,children:t.Port??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:t.AvailabilityZone??``}),(0,K.jsx)(`td`,{className:`px-4 py-2`,children:(0,K.jsx)(`span`,{className:x(`rounded-full px-2 py-0.5 text-xs`,ee(n)),children:n??`unknown`})}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Reason??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Description??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,K.jsx)(h,{"aria-label":`Deregister ${t.Id}`,onClick:()=>C(t),size:`sm`,variant:`ghost`,children:(0,K.jsx)(i,{className:`size-4`})})})]},te(t))})})]})}),(0,K.jsx)(J,{defaultPort:o,instances:w,isPending:g.isPending,onConfirm:async e=>{try{await g.mutateAsync({targetGroupArn:r,targets:e}),b(!1)}catch{}},onOpenChange:b,open:y}),(0,K.jsx)(P,{description:S?`Deregister ${S.Id}${S.Port?`:${S.Port}`:``} from this target group?`:``,isPending:_.isPending,onConfirm:async()=>{if(S?.Id)try{await _.mutateAsync({targetGroupArn:r,targets:[{id:S.Id,port:S.Port}]})}finally{C(void 0)}},onOpenChange:e=>!e&&C(void 0),open:S!==void 0,title:`Deregister target`})]})}function re({arn:t}){let s=b(),{data:c}=n(_(t)),{data:u}=n(g(t)),{data:f}=n(d([t])),p=o(),m=l(),v=a(),[y,x]=(0,G.useState)(!1),[S,C]=(0,G.useState)(`overview`),w=c.TargetGroups?.[0];if(!w?.TargetGroupArn)return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(r,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),(0,K.jsx)(`p`,{className:`text-muted-foreground`,children:`Target group not found.`})]});let E=async()=>{try{await p.mutateAsync(t),s({to:`/ec2/describe-target-groups`})}finally{x(!1)}},D=u.Attributes??[],O=f?.TagDescriptions?.find(e=>e.ResourceArn===t)?.Tags??[];return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(r,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),p.error&&(0,K.jsx)(e,{error:p.error,msg:`Failed to delete target group`}),(0,K.jsxs)(`div`,{className:`space-y-6`,children:[(0,K.jsx)(T,{actions:(0,K.jsxs)(h,{onClick:()=>x(!0),size:`sm`,variant:`destructive`,children:[(0,K.jsx)(i,{className:`size-4`}),`Delete`]}),subtitle:`Target Group Details`,title:w.TargetGroupName??w.TargetGroupArn}),(0,K.jsxs)(U,{onValueChange:C,value:S,children:[(0,K.jsxs)(B,{children:[(0,K.jsx)(z,{value:`overview`,children:`Overview`}),(0,K.jsx)(z,{value:`targets`,children:`Targets`}),(0,K.jsx)(z,{value:`health-checks`,children:`Health checks`}),(0,K.jsx)(z,{value:`attributes`,children:`Attributes`}),(0,K.jsx)(z,{value:`tags`,children:`Tags`})]}),(0,K.jsx)(H,{value:`overview`,children:(0,K.jsxs)(F,{children:[(0,K.jsx)(F.Header,{children:`Target group`}),(0,K.jsxs)(F.Content,{children:[(0,K.jsx)(I,{label:`ARN`,value:w.TargetGroupArn}),(0,K.jsx)(I,{label:`Protocol`,value:w.Protocol}),(0,K.jsx)(I,{label:`Port`,value:w.Port?.toString()}),(0,K.jsx)(I,{label:`VPC`,value:w.VpcId}),(0,K.jsx)(I,{label:`Target type`,value:w.TargetType}),(0,K.jsx)(I,{label:`Protocol version`,value:w.ProtocolVersion}),(0,K.jsx)(I,{label:`IP address type`,value:w.IpAddressType})]})]})}),(0,K.jsx)(H,{value:`targets`,children:(0,K.jsx)(ne,{defaultPort:w.Port??80,isActive:S===`targets`,targetGroupArn:w.TargetGroupArn,vpcId:w.VpcId})}),(0,K.jsxs)(H,{value:`health-checks`,children:[(0,K.jsx)(`p`,{className:`mb-3 text-sm text-muted-foreground`,children:`Health-check settings are set at creation time. Editing lands in a future slice (mulga-948).`}),(0,K.jsxs)(F,{children:[(0,K.jsx)(F.Header,{children:`Health check`}),(0,K.jsxs)(F.Content,{children:[(0,K.jsx)(I,{label:`Enabled`,value:w.HealthCheckEnabled===void 0?void 0:String(w.HealthCheckEnabled)}),(0,K.jsx)(I,{label:`Protocol`,value:w.HealthCheckProtocol}),(0,K.jsx)(I,{label:`Path`,value:w.HealthCheckPath}),(0,K.jsx)(I,{label:`Port`,value:w.HealthCheckPort}),(0,K.jsx)(I,{label:`Interval (s)`,value:w.HealthCheckIntervalSeconds?.toString()}),(0,K.jsx)(I,{label:`Timeout (s)`,value:w.HealthCheckTimeoutSeconds?.toString()}),(0,K.jsx)(I,{label:`Healthy threshold`,value:w.HealthyThresholdCount?.toString()}),(0,K.jsx)(I,{label:`Unhealthy threshold`,value:w.UnhealthyThresholdCount?.toString()}),(0,K.jsx)(I,{label:`Matcher (HTTP codes)`,value:w.Matcher?.HttpCode??w.Matcher?.GrpcCode})]})]})]}),(0,K.jsx)(H,{value:`attributes`,children:(0,K.jsx)(V,{attributes:D,error:m.error,isPending:m.isPending,isSuccess:m.isSuccess,onSubmit:e=>{m.mutate({targetGroupArn:t,attributes:e})},specs:R})}),(0,K.jsx)(H,{value:`tags`,children:(0,K.jsx)(L,{error:v.error,isPending:v.isPending,isSuccess:v.isSuccess,onSubmit:e=>v.mutate({resourceArn:t,tags:e,initialKeys:O.map(e=>e.Key??``).filter(e=>e.length>0)}),tags:O})})]})]}),(0,K.jsx)(P,{description:`Are you sure you want to delete target group "${w.TargetGroupName??w.TargetGroupArn}"? This action cannot be undone.`,isPending:p.isPending,onConfirm:E,onOpenChange:x,open:y,title:`Delete Target Group`})]})}function ie(){let e=(0,W.c)(2),{id:t}=S.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,K.jsx)(re,{arn:n}),e[0]=n,e[1]=r),r}export{ie 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 8801e9cfc..ecfc91aa6 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id14.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id14.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as ee,i as r,n as i,s as a,t as te}from"./select.js";import{t as o}from"./trash-2.js";import{I as s,N as c,o as ne}from"./ec2.js";import{Ct as l,Da as u,Do as d,Io as f,No as p,Oo as m,at as h,bs as g,es as _,hs as re,m as ie,ms as v,ts as y,ys as b,zs as x}from"./index.js";import{t as ae}from"./page-heading.js";import{a as S,t as C}from"./field.js";import{a as w,i as T,l as E,n as D,o as O,r as k,s as A,t as j}from"./alert-dialog.js";import{t as M}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=x(g()),z=b();function B(){let{id:g}=ie.useParams(),y=re(),{data:b}=t(l(g)),{data:x}=t(h),B=b.Volumes?.[0],V=c(),H=ne(),U=s(),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(``),[J,Y]=(0,R.useState)(``),[X,Z]=(0,R.useState)(!1),oe=x.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)(n,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),V.error&&(0,z.jsx)(e,{error:V.error,msg:`Failed to delete volume`}),H.error&&(0,z.jsx)(e,{error:H.error,msg:`Failed to attach volume`}),U.error&&(0,z.jsx)(e,{error:U.error,msg:`Failed to detach volume`}),(0,z.jsxs)(`div`,{className:`space-y-6`,children:[(0,z.jsx)(ae,{actions:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsxs)(d,{disabled:!Q,onClick:()=>G(`delete`),size:`sm`,variant:`destructive`,children:[(0,z.jsx)(o,{className:`size-4`}),`Delete`]}),Q?(0,z.jsx)(v,{className:m({variant:`outline`}),params:{id:B.VolumeId},to:`/ec2/modify-volume/$id`,children:`Resize Volume`}):(0,z.jsx)(d,{disabled:!0,variant:`outline`,children:`Resize Volume`}),Q?(0,z.jsxs)(d,{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)(d,{onClick:()=>G(`detach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(I,{className:`size-4`}),`Detach`]}):null,(0,z.jsxs)(v,{className:m({variant:`outline`,size:`sm`}),search:{volumeId:B.VolumeId},to:`/ec2/create-snapshot`,children:[(0,z.jsx)(_,{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:p(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)(v,{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:p(e.AttachTime)}),(0,z.jsx)(P,{label:`Delete on Termination`,value:e.DeleteOnTermination?`Yes`:`No`})]},e.InstanceId))]})]}),(0,z.jsx)(M,{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(g),y({to:`/ec2/describe-volumes`})}finally{$()}},onOpenChange:e=>{e||$()},open:W===`delete`,title:`Delete Volume`}),(0,z.jsx)(j,{onOpenChange:e=>{e||($(),q(``),Y(``))},open:W===`attach`,children:(0,z.jsxs)(T,{children:[(0,z.jsxs)(A,{children:[(0,z.jsx)(E,{children:`Attach Volume`}),(0,z.jsx)(w,{children:`Attach this volume to a running instance.`})]}),(0,z.jsxs)(C,{children:[(0,z.jsx)(S,{children:(0,z.jsx)(`label`,{htmlFor:`attachInstance`,children:`Instance`})}),(0,z.jsxs)(te,{onValueChange:e=>q(e??``),value:K,children:[(0,z.jsx)(a,{className:`w-full`,id:`attachInstance`,children:(0,z.jsx)(ee,{placeholder:`Select an instance`})}),(0,z.jsx)(i,{children:oe.map(e=>{let t=f(e.Tags);return(0,z.jsxs)(r,{value:e.InstanceId??``,children:[e.InstanceId,t?` (${t})`:``]},e.InstanceId)})})]})]}),(0,z.jsxs)(C,{children:[(0,z.jsx)(S,{children:(0,z.jsx)(`label`,{htmlFor:`attachDevice`,children:`Device (optional)`})}),(0,z.jsx)(u,{id:`attachDevice`,onChange:e=>Y(e.target.value),placeholder:`/dev/sdf`,value:J})]}),(0,z.jsxs)(O,{children:[(0,z.jsx)(k,{children:`Cancel`}),(0,z.jsx)(D,{disabled:H.isPending||!K,onClick:async()=>{try{await H.mutateAsync({volumeId:g,instanceId:K,device:J||void 0}),$(),q(``),Y(``)}catch{}},children:H.isPending?`Attaching…`:`Attach`})]})]})}),(0,z.jsx)(j,{onOpenChange:e=>{e||($(),Z(!1))},open:W===`detach`,children:(0,z.jsxs)(T,{children:[(0,z.jsxs)(A,{children:[(0,z.jsx)(E,{children:`Detach Volume`}),(0,z.jsxs)(w,{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)(O,{children:[(0,z.jsx)(k,{children:`Cancel`}),(0,z.jsx)(D,{disabled:U.isPending,onClick:async()=>{let e=B?.Attachments?.[0]?.InstanceId;try{await U.mutateAsync({volumeId:g,instanceId:e??void 0,force:X||void 0}),$(),Z(!1)}catch{}},children:U.isPending?`Detaching…`:`Detach`})]})]})})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(n,{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{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as ee,i as r,n as i,s as a,t as te}from"./select.js";import{t as o}from"./trash-2.js";import{I as s,N as c,o as ne}from"./ec2.js";import{Bs as l,Ct as u,Lo as d,Oa as f,Oo as p,Po as m,at as h,bs as g,gs as _,hs as v,ko as y,m as re,ns as b,ts as x,xs as S}from"./index.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=b(`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=b(`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=l(S()),z=g();function B(){let{id:l}=re.useParams(),g=_(),{data:b}=t(u(l)),{data:S}=t(h),B=b.Volumes?.[0],V=c(),H=ne(),U=s(),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(``),[J,Y]=(0,R.useState)(``),[X,Z]=(0,R.useState)(!1),oe=S.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)(n,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),V.error&&(0,z.jsx)(e,{error:V.error,msg:`Failed to delete volume`}),H.error&&(0,z.jsx)(e,{error:H.error,msg:`Failed to attach volume`}),U.error&&(0,z.jsx)(e,{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)(o,{className:`size-4`}),`Delete`]}),Q?(0,z.jsx)(v,{className:y({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)(v,{className:y({variant:`outline`,size:`sm`}),search:{volumeId:B.VolumeId},to:`/ec2/create-snapshot`,children:[(0,z.jsx)(x,{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:m(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)(v,{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:m(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(l),g({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)(a,{className:`w-full`,id:`attachInstance`,children:(0,z.jsx)(ee,{placeholder:`Select an instance`})}),(0,z.jsx)(i,{children:oe.map(e=>{let t=d(e.Tags);return(0,z.jsxs)(r,{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)(f,{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:l,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 e=B?.Attachments?.[0]?.InstanceId;try{await U.mutateAsync({volumeId:l,instanceId:e??void 0,force:X||void 0}),$(),Z(!1)}catch{}},children:U.isPending?`Detaching…`:`Detach`})]})]})})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(n,{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/_id15.js b/spinifex/services/spinifexui/frontend/dist/assets/_id15.js index 9fc0e1928..cdd749520 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id15.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id15.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{U as r}from"./ec2.js";import{Ct as i,Da as a,fs as o,h as s,hs as c,ys as l}from"./index.js";import{i as u,t as d}from"./zod.js";import{t as f}from"./form-actions.js";import{t as p}from"./page-heading.js";import{a as m,r as h,t as g}from"./field.js";import{_}from"./ec22.js";var v=o(),y=l();function b(){let o=(0,v.c)(53),{id:l}=s.useParams(),b=c(),x;o[0]===l?x=o[1]:(x=i(l),o[0]=l,o[1]=x);let{data:S}=t(x),C=S.Volumes?.[0],w=C?.VolumeId,T=r(),E=C?.Size??1,D;o[2]===E?D=o[3]:(D=d(_.refine(e=>e.size>E,{message:`New size must be greater than current size (${E} GiB)`,path:[`size`]})),o[2]=E,o[3]=D);let O;o[4]===E?O=o[5]:(O={size:E},o[4]=E,o[5]=O);let k;o[6]!==D||o[7]!==O?(k={resolver:D,defaultValues:O},o[6]=D,o[7]=O,o[8]=k):k=o[8];let{handleSubmit:A,register:j,formState:M}=u(k),{errors:N,isSubmitting:P}=M;if(!w){let e;return o[9]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(n,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,y.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]}),o[9]=e):e=o[9],e}let F;o[10]!==T||o[11]!==b||o[12]!==w?(F=async e=>{await T.mutateAsync({...e,volumeId:w}),b({to:`/ec2/describe-volumes/$id`,params:{id:w}})},o[10]=T,o[11]=b,o[12]=w,o[13]=F):F=o[13];let I=F,L,R;o[14]===w?(L=o[15],R=o[16]):(L=(0,y.jsx)(n,{params:{id:w},to:`/ec2/describe-volumes/$id`,children:`Back to volume`}),R=(0,y.jsx)(p,{subtitle:w,title:`Resize Volume`}),o[14]=w,o[15]=L,o[16]=R);let z;o[17]===T.error?z=o[18]:(z=T.error&&(0,y.jsx)(e,{error:T.error,msg:`Failed to resize volume`}),o[17]=T.error,o[18]=z);let B;o[19]!==A||o[20]!==I?(B=A(I),o[19]=A,o[20]=I,o[21]=B):B=o[21];let V;o[22]===E?V=o[23]:(V=(0,y.jsx)(`div`,{className:`space-y-2`,children:(0,y.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Current size: `,E,` GiB`]})}),o[22]=E,o[23]=V);let H;o[24]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,y.jsx)(m,{children:(0,y.jsx)(`label`,{htmlFor:`size`,children:`New size (GiB)`})}),o[24]=H):H=o[24];let U=!!N.size,W=E+1,G;o[25]===j?G=o[26]:(G=j(`size`,{valueAsNumber:!0}),o[25]=j,o[26]=G);let K;o[27]!==U||o[28]!==W||o[29]!==G?(K=(0,y.jsx)(a,{"aria-invalid":U,id:`size`,min:W,type:`number`,...G}),o[27]=U,o[28]=W,o[29]=G,o[30]=K):K=o[30];let q;o[31]===N.size?q=o[32]:(q=(0,y.jsx)(h,{errors:[N.size]}),o[31]=N.size,o[32]=q);let J;o[33]!==K||o[34]!==q?(J=(0,y.jsxs)(g,{children:[H,K,q]}),o[33]=K,o[34]=q,o[35]=J):J=o[35];let Y;o[36]!==b||o[37]!==w?(Y=async()=>await b({to:`/ec2/describe-volumes/$id`,params:{id:w}}),o[36]=b,o[37]=w,o[38]=Y):Y=o[38];let X;o[39]!==P||o[40]!==T.isPending||o[41]!==Y?(X=(0,y.jsx)(f,{isPending:T.isPending,isSubmitting:P,onCancel:Y,pendingLabel:`Resizing\\u2026`,submitLabel:`Resize Volume`}),o[39]=P,o[40]=T.isPending,o[41]=Y,o[42]=X):X=o[42];let Z;o[43]!==V||o[44]!==J||o[45]!==X||o[46]!==B?(Z=(0,y.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:B,children:[V,J,X]}),o[43]=V,o[44]=J,o[45]=X,o[46]=B,o[47]=Z):Z=o[47];let Q;return o[48]!==Z||o[49]!==L||o[50]!==R||o[51]!==z?(Q=(0,y.jsxs)(y.Fragment,{children:[L,R,z,Z]}),o[48]=Z,o[49]=L,o[50]=R,o[51]=z,o[52]=Q):Q=o[52],Q}export{b as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{U as r}from"./ec2.js";import{Ct as i,Oa as a,bs as o,gs as s,h as c,ps as l}from"./index.js";import{i as u,t as d}from"./zod.js";import{t as f}from"./form-actions.js";import{t as p}from"./page-heading.js";import{a as m,r as h,t as g}from"./field.js";import{_}from"./ec22.js";var v=l(),y=o();function b(){let o=(0,v.c)(53),{id:l}=c.useParams(),b=s(),x;o[0]===l?x=o[1]:(x=i(l),o[0]=l,o[1]=x);let{data:S}=t(x),C=S.Volumes?.[0],w=C?.VolumeId,T=r(),E=C?.Size??1,D;o[2]===E?D=o[3]:(D=d(_.refine(e=>e.size>E,{message:`New size must be greater than current size (${E} GiB)`,path:[`size`]})),o[2]=E,o[3]=D);let O;o[4]===E?O=o[5]:(O={size:E},o[4]=E,o[5]=O);let k;o[6]!==D||o[7]!==O?(k={resolver:D,defaultValues:O},o[6]=D,o[7]=O,o[8]=k):k=o[8];let{handleSubmit:A,register:j,formState:M}=u(k),{errors:N,isSubmitting:P}=M;if(!w){let e;return o[9]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(n,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,y.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]}),o[9]=e):e=o[9],e}let F;o[10]!==T||o[11]!==b||o[12]!==w?(F=async e=>{await T.mutateAsync({...e,volumeId:w}),b({to:`/ec2/describe-volumes/$id`,params:{id:w}})},o[10]=T,o[11]=b,o[12]=w,o[13]=F):F=o[13];let I=F,L,R;o[14]===w?(L=o[15],R=o[16]):(L=(0,y.jsx)(n,{params:{id:w},to:`/ec2/describe-volumes/$id`,children:`Back to volume`}),R=(0,y.jsx)(p,{subtitle:w,title:`Resize Volume`}),o[14]=w,o[15]=L,o[16]=R);let z;o[17]===T.error?z=o[18]:(z=T.error&&(0,y.jsx)(e,{error:T.error,msg:`Failed to resize volume`}),o[17]=T.error,o[18]=z);let B;o[19]!==A||o[20]!==I?(B=A(I),o[19]=A,o[20]=I,o[21]=B):B=o[21];let V;o[22]===E?V=o[23]:(V=(0,y.jsx)(`div`,{className:`space-y-2`,children:(0,y.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Current size: `,E,` GiB`]})}),o[22]=E,o[23]=V);let H;o[24]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,y.jsx)(m,{children:(0,y.jsx)(`label`,{htmlFor:`size`,children:`New size (GiB)`})}),o[24]=H):H=o[24];let U=!!N.size,W=E+1,G;o[25]===j?G=o[26]:(G=j(`size`,{valueAsNumber:!0}),o[25]=j,o[26]=G);let K;o[27]!==U||o[28]!==W||o[29]!==G?(K=(0,y.jsx)(a,{"aria-invalid":U,id:`size`,min:W,type:`number`,...G}),o[27]=U,o[28]=W,o[29]=G,o[30]=K):K=o[30];let q;o[31]===N.size?q=o[32]:(q=(0,y.jsx)(h,{errors:[N.size]}),o[31]=N.size,o[32]=q);let J;o[33]!==K||o[34]!==q?(J=(0,y.jsxs)(g,{children:[H,K,q]}),o[33]=K,o[34]=q,o[35]=J):J=o[35];let Y;o[36]!==b||o[37]!==w?(Y=async()=>await b({to:`/ec2/describe-volumes/$id`,params:{id:w}}),o[36]=b,o[37]=w,o[38]=Y):Y=o[38];let X;o[39]!==P||o[40]!==T.isPending||o[41]!==Y?(X=(0,y.jsx)(f,{isPending:T.isPending,isSubmitting:P,onCancel:Y,pendingLabel:`Resizing\\u2026`,submitLabel:`Resize Volume`}),o[39]=P,o[40]=T.isPending,o[41]=Y,o[42]=X):X=o[42];let Z;o[43]!==V||o[44]!==J||o[45]!==X||o[46]!==B?(Z=(0,y.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:B,children:[V,J,X]}),o[43]=V,o[44]=J,o[45]=X,o[46]=B,o[47]=Z):Z=o[47];let Q;return o[48]!==Z||o[49]!==L||o[50]!==R||o[51]!==z?(Q=(0,y.jsxs)(y.Fragment,{children:[L,R,z,Z]}),o[48]=Z,o[49]=L,o[50]=R,o[51]=z,o[52]=Q):Q=o[52],Q}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 fe2131631..3fa37159e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id16.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id16.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{P as i}from"./ec2.js";import{Do as a,Io as o,St as s,Tt as c,bs as l,g as u,hs as d,ms as f,ys as p,zs as m}from"./index.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=m(l()),x=p();function S(){let{id:l}=u.useParams(),p=d(),{data:m}=t(c(l)),{data:S}=t(s),C=m.Vpcs?.[0],w=i(),[T,E]=(0,b.useState)(!1),D=S.Subnets?.filter(e=>e.VpcId===l)??[],O=async()=>{try{await w.mutateAsync(l),p({to:`/ec2/describe-vpcs`})}finally{E(!1)}};if(!C?.VpcId)return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(n,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,x.jsx)(`p`,{className:`text-muted-foreground`,children:`VPC not found.`})]});let k=o(C.Tags);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(n,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),w.error&&(0,x.jsx)(e,{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)(a,{onClick:()=>E(!0),size:`sm`,variant:`destructive`,children:[(0,x.jsx)(r,{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)(f,{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{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{P as i}from"./ec2.js";import{Bs as a,Lo as o,Oo as s,St as c,Tt as l,bs as u,g as d,gs as f,hs as p,xs as m}from"./index.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=a(m()),x=u();function S(){let{id:a}=d.useParams(),u=f(),{data:m}=t(l(a)),{data:S}=t(c),C=m.Vpcs?.[0],w=i(),[T,E]=(0,b.useState)(!1),D=S.Subnets?.filter(e=>e.VpcId===a)??[],O=async()=>{try{await w.mutateAsync(a),u({to:`/ec2/describe-vpcs`})}finally{E(!1)}};if(!C?.VpcId)return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(n,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,x.jsx)(`p`,{className:`text-muted-foreground`,children:`VPC not found.`})]});let k=o(C.Tags);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(n,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),w.error&&(0,x.jsx)(e,{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)(s,{onClick:()=>E(!0),size:`sm`,variant:`destructive`,children:[(0,x.jsx)(r,{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)(p,{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/_id2.js b/spinifex/services/spinifexui/frontend/dist/assets/_id2.js index 7f4de1134..236541673 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id2.js @@ -1 +1 @@ -import{t as e}from"./useSuspenseQuery.js";import{t}from"./back-link.js";import{fs as n,n as r,tt as i,ys as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./state-badge.js";import{t as c}from"./system-managed.js";import{t as l}from"./ami-details.js";var u=n(),d=a();function f(){let n=(0,u.c)(14),{id:a}=r.useParams(),f;n[0]===a?f=n[1]:(f=i(a),n[0]=a,n[1]=f);let{data:p}=e(f),m=p?.Images?.[0];if(!m?.ImageId||c(m)){let e;return n[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(t,{to:`/ec2/describe-images`,children:`Back to images`}),(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`Image not found.`})]}),n[2]=e):e=n[2],e}let h;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,d.jsx)(t,{to:`/ec2/describe-images`,children:`Back to images`}),n[3]=h):h=n[3];let g;n[4]===m.State?g=n[5]:(g=(0,d.jsx)(s,{state:m.State}),n[4]=m.State,n[5]=g);let _;n[6]!==m.ImageId||n[7]!==g?(_=(0,d.jsx)(o,{actions:g,subtitle:`Image Details`,title:m.ImageId}),n[6]=m.ImageId,n[7]=g,n[8]=_):_=n[8];let v;n[9]===m?v=n[10]:(v=(0,d.jsx)(l,{image:m,showExtendedDetails:!0}),n[9]=m,n[10]=v);let y;return n[11]!==_||n[12]!==v?(y=(0,d.jsxs)(d.Fragment,{children:[h,(0,d.jsxs)(`div`,{className:`space-y-6`,children:[_,v]})]}),n[11]=_,n[12]=v,n[13]=y):y=n[13],y}export{f as component}; \ No newline at end of file +import{t as e}from"./useSuspenseQuery.js";import{t}from"./back-link.js";import{bs as n,n as r,ps as i,tt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./state-badge.js";import{t as c}from"./system-managed.js";import{t as l}from"./ami-details.js";var u=i(),d=n();function f(){let n=(0,u.c)(14),{id:i}=r.useParams(),f;n[0]===i?f=n[1]:(f=a(i),n[0]=i,n[1]=f);let{data:p}=e(f),m=p?.Images?.[0];if(!m?.ImageId||c(m)){let e;return n[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(t,{to:`/ec2/describe-images`,children:`Back to images`}),(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`Image not found.`})]}),n[2]=e):e=n[2],e}let h;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,d.jsx)(t,{to:`/ec2/describe-images`,children:`Back to images`}),n[3]=h):h=n[3];let g;n[4]===m.State?g=n[5]:(g=(0,d.jsx)(s,{state:m.State}),n[4]=m.State,n[5]=g);let _;n[6]!==m.ImageId||n[7]!==g?(_=(0,d.jsx)(o,{actions:g,subtitle:`Image Details`,title:m.ImageId}),n[6]=m.ImageId,n[7]=g,n[8]=_):_=n[8];let v;n[9]===m?v=n[10]:(v=(0,d.jsx)(l,{image:m,showExtendedDetails:!0}),n[9]=m,n[10]=v);let y;return n[11]!==_||n[12]!==v?(y=(0,d.jsxs)(d.Fragment,{children:[h,(0,d.jsxs)(`div`,{className:`space-y-6`,children:[_,v]})]}),n[11]=_,n[12]=v,n[13]=y):y=n[13],y}export{f 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 07e2cee95..5b84da4c3 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id3.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id3.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useQuery.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./back-link.js";import{c as i,i as a,n as o,s,t as c}from"./select.js";import{t as l}from"./trash-2.js";import{B as u,H as d,J as f,R as p,W as m,X as h,Y as g,r as _,u as v}from"./ec2.js";import{D as y,Da as b,Do as x,Fo as S,No as C,bs as w,et as T,fs as E,it as D,ms as O,qr as k,r as A,rt as j,ts as M,tt as N,ys as P,zs as ee}from"./index.js";import{t as te}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 ne,t as re}from"./alert-dialog.js";import{t as U}from"./delete-confirmation-dialog.js";import{n as W,t as G}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 K}from"./textarea.js";var se=M(`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`}]]),q=M(`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`}]]),ce=M(`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`}]]),J=M(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]),le=M(`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=M(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Y=ee(w(),1),X=P();function de({instanceId:e,open:t,onOpenChange:n}){let r=v(),[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)(ne,{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)(b,{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)(K,{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=E();function fe(n){let r=(0,Z.c)(31),{instanceId:a}=n,l;r[0]===a?l=r[1]:(l=T(a),r[0]=a,r[1]=l);let{data:u}=t(l),{data:d}=t(y),f=_(),m=p(),[h,g]=(0,Y.useState)(``),v;r[2]===u?.IamInstanceProfileAssociations?v=r[3]:(v=u?.IamInstanceProfileAssociations?.find(Q),r[2]=u?.IamInstanceProfileAssociations,r[3]=v);let b=v,S;r[4]===d?.InstanceProfiles?S=r[5]:(S=d?.InstanceProfiles??[],r[4]=d?.InstanceProfiles,r[5]=S);let C=S,w;r[6]!==f||r[7]!==a||r[8]!==h?(w=async()=>{h&&(await f.mutateAsync({instanceId:a,instanceProfileName:h}),g(``))},r[6]=f,r[7]=a,r[8]=h,r[9]=w):w=r[9];let E=w,D;r[10]!==b||r[11]!==m||r[12]!==a?(D=async()=>{b?.AssociationId&&await m.mutateAsync({associationId:b.AssociationId,instanceId:a})},r[10]=b,r[11]=m,r[12]=a,r[13]=D):D=r[13];let k=D,A;r[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,X.jsx)(W.Header,{children:`IAM Role`}),r[14]=A):A=r[14];let j;r[15]===f.error?j=r[16]:(j=f.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(e,{error:f.error,msg:`Failed to associate instance profile`})}),r[15]=f.error,r[16]=j);let M;r[17]===m.error?M=r[18]:(M=m.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(e,{error:m.error,msg:`Failed to disassociate instance profile`})}),r[17]=m.error,r[18]=M);let N;r[19]!==f.isPending||r[20]!==b||r[21]!==m.isPending||r[22]!==E||r[23]!==k||r[24]!==C||r[25]!==h?(N=b?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(G,{label:`Instance Profile ARN`,value:b.IamInstanceProfile?.Arn}),(0,X.jsx)(G,{label:`State`,value:(0,X.jsx)(ie,{state:b.State})}),(0,X.jsx)(`div`,{className:`col-span-2 flex justify-end`,children:(0,X.jsx)(x,{disabled:m.isPending,onClick:k,size:`sm`,variant:`destructive`,children:m.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.`}),C.length>0?(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,X.jsxs)(c,{onValueChange:e=>g(e??``),value:h,children:[(0,X.jsx)(s,{className:`w-full`,children:(0,X.jsx)(i,{placeholder:`Select an instance profile`})}),(0,X.jsx)(o,{children:C.map(pe)})]}),(0,X.jsx)(x,{disabled:!h||f.isPending,onClick:E,size:`sm`,children:f.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.`]})]}),r[19]=f.isPending,r[20]=b,r[21]=m.isPending,r[22]=E,r[23]=k,r[24]=C,r[25]=h,r[26]=N):N=r[26];let P;return r[27]!==j||r[28]!==M||r[29]!==N?(P=(0,X.jsxs)(W,{children:[A,(0,X.jsxs)(W.Content,{children:[j,M,N]})]}),r[27]=j,r[28]=M,r[29]=N,r[30]=P):P=r[30],P}function pe(e){return(0,X.jsx)(a,{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(t){let n=(0,Z.c)(43),{instanceId:r,state:i}=t,a=f(),o=g(),s=m(),c=h(),[u,d]=(0,Y.useState)(!1),p=$.has(i??``),_;n[0]!==r||n[1]!==c?(_=()=>{c.mutate(r,{onSettled:()=>d(!1)})},n[0]=r,n[1]=c,n[2]=_):_=n[2];let v=_;if(p&&i!==`terminated`){let e;return n[3]===i?e=n[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 `,i,`. Actions will be available once the operation completes.`]})}),n[3]=i,n[4]=e),e}if(i===`terminated`){let e;return n[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.`})}),n[5]=e):e=n[5],e}let y;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,X.jsx)(`h2`,{className:`mb-4 font-semibold`,children:`Instance Actions`}),n[6]=y):y=n[6];let b;n[7]===a.error?b=n[8]:(b=a.error&&(0,X.jsx)(e,{error:a.error,msg:`Failed to start instance`}),n[7]=a.error,n[8]=b);let S;n[9]===o.error?S=n[10]:(S=o.error&&(0,X.jsx)(e,{error:o.error,msg:`Failed to stop instance`}),n[9]=o.error,n[10]=S);let C;n[11]===s.error?C=n[12]:(C=s.error&&(0,X.jsx)(e,{error:s.error,msg:`Failed to reboot instance`}),n[11]=s.error,n[12]=C);let w;n[13]===c.error?w=n[14]:(w=c.error&&(0,X.jsx)(e,{error:c.error,msg:`Failed to terminate instance`}),n[13]=c.error,n[14]=w);let T;n[15]!==r||n[16]!==a||n[17]!==i?(T=i===`stopped`&&(0,X.jsxs)(x,{disabled:a.isPending,onClick:()=>a.mutate(r),size:`sm`,variant:`default`,children:[(0,X.jsx)(ce,{className:`size-4`}),a.isPending?`Starting`:`Start`]}),n[15]=r,n[16]=a,n[17]=i,n[18]=T):T=n[18];let E;n[19]!==r||n[20]!==s||n[21]!==i||n[22]!==o?(E=i===`running`&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(x,{disabled:o.isPending,onClick:()=>o.mutate(r),size:`sm`,variant:`outline`,children:[(0,X.jsx)(q,{className:`size-4`}),o.isPending?`Stopping`:`Stop`]}),(0,X.jsxs)(x,{disabled:s.isPending,onClick:()=>s.mutate(r),size:`sm`,variant:`outline`,children:[(0,X.jsx)(J,{className:`size-4`}),s.isPending?`Rebooting`:`Reboot`]})]}),n[19]=r,n[20]=s,n[21]=i,n[22]=o,n[23]=E):E=n[23];let D;n[24]!==i||n[25]!==c.isPending?(D=(i===`stopped`||i===`running`)&&(0,X.jsxs)(x,{disabled:c.isPending,onClick:()=>d(!0),size:`sm`,variant:`destructive`,children:[(0,X.jsx)(l,{className:`size-4`}),c.isPending?`Terminating`:`Terminate`]}),n[24]=i,n[25]=c.isPending,n[26]=D):D=n[26];let O;n[27]!==T||n[28]!==E||n[29]!==D?(O=(0,X.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[T,E,D]}),n[27]=T,n[28]=E,n[29]=D,n[30]=O):O=n[30];let k=`Are you sure you want to terminate the instance "${r}"? This action cannot be undone.`,A;n[31]!==v||n[32]!==u||n[33]!==k||n[34]!==c.isPending?(A=(0,X.jsx)(U,{confirmLabel:`Terminate`,description:k,isPending:c.isPending,onConfirm:v,onOpenChange:d,open:u,pendingLabel:`Terminating…`,title:`Terminate Instance`}),n[31]=v,n[32]=u,n[33]=k,n[34]=c.isPending,n[35]=A):A=n[35];let j;return n[36]!==O||n[37]!==A||n[38]!==b||n[39]!==S||n[40]!==C||n[41]!==w?(j=(0,X.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[y,b,S,C,w,O,A]}),n[36]=O,n[37]=A,n[38]=b,n[39]=S,n[40]=C,n[41]=w,n[42]=j):j=n[42],j}function he(){let{id:l}=A.useParams(),{isAdmin:f}=k(),{data:p}=n(j(l)),m=p.Reservations?.[0]?.Instances?.[0],{data:h}=n(N(m?.ImageId)),g=h?.Images?.[0],{data:_}=n(D),{data:v}=t({...oe,enabled:f,refetchInterval:5e3}),y=v?.vms?.find(e=>e.instance_id===l),b=d(),w=u(),[T,E]=(0,Y.useState)(!1),[M,P]=(0,Y.useState)(``),[ee,U]=(0,Y.useState)(!1),[K,q]=(0,Y.useState)(null),[ce,J]=(0,Y.useState)(!1),Z=[...new Set(_.InstanceTypes?.flatMap(e=>e.InstanceType?[e.InstanceType]:[]))].toSorted();if(!m?.InstanceId)return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(r,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,X.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance not found.`})]});let pe=C(m.LaunchTime),Q=m.State?.Name===`running`,$=m.State?.Name===`stopped`;async function he(){try{await b.mutateAsync({instanceId:l,instanceType:M}),E(!1),P(``)}catch{}}async function ge(){try{let e=await w.mutateAsync(l);q(e.Output?atob(e.Output):`(no output)`),U(!0)}catch{}}return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(r,{to:`/ec2/describe-instances`,children:`Back to instances`}),b.error&&(0,X.jsx)(e,{error:b.error,msg:`Failed to modify instance`}),w.error&&(0,X.jsx)(e,{error:w.error,msg:`Failed to get console output`}),(0,X.jsxs)(`div`,{className:`space-y-6`,children:[(0,X.jsx)(te,{actions:(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[Q&&(0,X.jsxs)(x,{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)(x,{onClick:()=>J(!0),size:`sm`,variant:`outline`,children:[(0,X.jsx)(se,{className:`size-4`}),`Create Image`]}),$&&(0,X.jsxs)(x,{onClick:()=>{P(m.InstanceType??``),E(!0)},size:`sm`,variant:`outline`,children:[(0,X.jsx)(le,{className:`size-4`}),`Modify Instance`]}),(0,X.jsx)(ie,{state:m.State?.Name})]}),subtitle:`Instance Details`,title:m.InstanceId}),(0,X.jsx)(me,{instanceId:m.InstanceId,state:m.State?.Name}),ee&&K!==null&&(0,X.jsxs)(W,{children:[(0,X.jsx)(W.Header,{children:(0,X.jsxs)(`div`,{className:`flex items-center justify-between`,children:[`Console Output`,(0,X.jsx)(x,{onClick:()=>{U(!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:K})})]}),(0,X.jsxs)(W,{children:[(0,X.jsx)(W.Header,{children:`Instance Information`}),(0,X.jsxs)(W.Content,{children:[(0,X.jsx)(G,{label:`Instance ID`,value:m.InstanceId}),(0,X.jsx)(G,{label:`Instance Type`,value:m.InstanceType}),(0,X.jsx)(G,{label:`Instance State`,value:m.State?.Name}),(0,X.jsx)(G,{label:`State Code`,value:m.State?.Code?.toString()}),(0,X.jsx)(G,{label:`Launch Time`,value:pe}),(0,X.jsx)(G,{label:`Availability Zone`,value:m.Placement?.AvailabilityZone}),(0,X.jsx)(G,{label:`Placement Group`,value:m.Placement?.GroupName?(0,X.jsx)(O,{className:`text-primary hover:underline`,to:`/ec2/describe-placement-groups`,children:m.Placement.GroupName}):void 0})]})]}),(m.PrivateIpAddress||m.PublicIpAddress||m.VpcId||m.SubnetId||m.SecurityGroups&&m.SecurityGroups.length>0)&&(0,X.jsxs)(W,{children:[(0,X.jsx)(W.Header,{children:`Network & Security`}),(0,X.jsxs)(W.Content,{children:[(0,X.jsx)(G,{label:`Private IP Address`,value:m.PrivateIpAddress}),(0,X.jsx)(G,{label:`Public IP Address`,value:m.PublicIpAddress}),(0,X.jsx)(G,{label:`Private DNS`,value:m.PrivateDnsName}),(0,X.jsx)(G,{label:`Public DNS`,value:m.PublicDnsName}),(0,X.jsx)(G,{label:`VPC ID`,value:m.VpcId?(0,X.jsx)(O,{className:`text-primary hover:underline`,params:{id:m.VpcId},to:`/ec2/describe-vpcs/$id`,children:m.VpcId}):void 0}),(0,X.jsx)(G,{label:`Subnet ID`,value:m.SubnetId?(0,X.jsx)(O,{className:`text-primary hover:underline`,params:{id:m.SubnetId},to:`/ec2/describe-subnets/$id`,children:m.SubnetId}):void 0}),(0,X.jsx)(G,{label:`Key Name`,value:m.KeyName}),(0,X.jsx)(G,{label:`Security Groups`,value:m.SecurityGroups?.map(e=>e.GroupName).join(`, `)})]})]}),(0,X.jsx)(fe,{instanceId:m.InstanceId}),f&&y?.gpu&&(0,X.jsxs)(W,{children:[(0,X.jsx)(W.Header,{children:`GPU`}),(0,X.jsxs)(W.Content,{children:[(0,X.jsx)(G,{label:`Model`,value:y.gpu.model}),(0,X.jsx)(G,{label:`VRAM`,value:S(y.gpu.vram_mib)}),(0,X.jsx)(G,{label:`Attachment`,value:y.gpu.profile?`MIG slice`:`PCIe passthrough`}),y.gpu.profile&&(0,X.jsx)(G,{label:`Profile`,value:y.gpu.profile}),y.gpu.mdev_path&&(0,X.jsx)(G,{label:`Mdev path`,value:y.gpu.mdev_path}),y.gpu.pci_address&&(0,X.jsx)(G,{label:`PCI address`,value:y.gpu.pci_address})]})]}),m.BlockDeviceMappings&&m.BlockDeviceMappings.length>0&&(0,X.jsxs)(W,{children:[(0,X.jsx)(W.Header,{children:`Block Device Mappings`}),m.BlockDeviceMappings.map(e=>(0,X.jsxs)(W.Content,{children:[(0,X.jsx)(G,{label:`Device Name`,value:e.DeviceName}),(0,X.jsx)(G,{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)(G,{label:`Status`,value:e.Ebs?.Status}),(0,X.jsx)(G,{label:`Attach Time`,value:C(e.Ebs?.AttachTime)}),(0,X.jsx)(G,{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),P(``))},open:T,children:(0,X.jsxs)(R,{children:[(0,X.jsxs)(ne,{children:[(0,X.jsx)(z,{children:`Modify Instance`}),(0,X.jsxs)(L,{children:[`Select a new instance type for "`,m.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)(c,{onValueChange:e=>P(e??``),value:M,children:[(0,X.jsx)(s,{className:`w-full`,id:`instanceType`,children:(0,X.jsx)(i,{})}),(0,X.jsx)(o,{children:Z.map(e=>(0,X.jsx)(a,{value:e,children:e},e))})]})]}),(0,X.jsxs)(V,{children:[(0,X.jsx)(H,{children:`Cancel`}),(0,X.jsx)(B,{disabled:b.isPending||!M||M===m.InstanceType,onClick:he,children:b.isPending?`Saving…`:`Save Changes`})]})]})}),(0,X.jsx)(de,{instanceId:m.InstanceId,onOpenChange:J,open:ce})]})}export{he as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useQuery.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./back-link.js";import{c as i,i as a,n as o,s,t as c}from"./select.js";import{t as l}from"./trash-2.js";import{B as u,H as d,J as f,R as p,W as m,X as h,Y as g,r as _,u as v}from"./ec2.js";import{Bs as y,D as b,Io as x,Jr as S,Oa as C,Oo as w,Po as T,bs as E,et as D,hs as O,it as k,ns as A,ps as j,r as M,rt as N,tt as P,xs as ee}from"./index.js";import{t as te}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 ne,t as re}from"./alert-dialog.js";import{t as U}from"./delete-confirmation-dialog.js";import{n as W,t as G}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 K}from"./textarea.js";var se=A(`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`}]]),q=A(`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`}]]),ce=A(`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`}]]),J=A(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]),le=A(`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=A(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Y=y(ee(),1),X=E();function de({instanceId:e,open:t,onOpenChange:n}){let r=v(),[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)(ne,{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)(C,{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)(K,{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=j();function fe(n){let r=(0,Z.c)(31),{instanceId:a}=n,l;r[0]===a?l=r[1]:(l=D(a),r[0]=a,r[1]=l);let{data:u}=t(l),{data:d}=t(b),f=_(),m=p(),[h,g]=(0,Y.useState)(``),v;r[2]===u?.IamInstanceProfileAssociations?v=r[3]:(v=u?.IamInstanceProfileAssociations?.find(Q),r[2]=u?.IamInstanceProfileAssociations,r[3]=v);let y=v,x;r[4]===d?.InstanceProfiles?x=r[5]:(x=d?.InstanceProfiles??[],r[4]=d?.InstanceProfiles,r[5]=x);let S=x,C;r[6]!==f||r[7]!==a||r[8]!==h?(C=async()=>{h&&(await f.mutateAsync({instanceId:a,instanceProfileName:h}),g(``))},r[6]=f,r[7]=a,r[8]=h,r[9]=C):C=r[9];let T=C,E;r[10]!==y||r[11]!==m||r[12]!==a?(E=async()=>{y?.AssociationId&&await m.mutateAsync({associationId:y.AssociationId,instanceId:a})},r[10]=y,r[11]=m,r[12]=a,r[13]=E):E=r[13];let k=E,A;r[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,X.jsx)(W.Header,{children:`IAM Role`}),r[14]=A):A=r[14];let j;r[15]===f.error?j=r[16]:(j=f.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(e,{error:f.error,msg:`Failed to associate instance profile`})}),r[15]=f.error,r[16]=j);let M;r[17]===m.error?M=r[18]:(M=m.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(e,{error:m.error,msg:`Failed to disassociate instance profile`})}),r[17]=m.error,r[18]=M);let N;r[19]!==f.isPending||r[20]!==y||r[21]!==m.isPending||r[22]!==T||r[23]!==k||r[24]!==S||r[25]!==h?(N=y?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(G,{label:`Instance Profile ARN`,value:y.IamInstanceProfile?.Arn}),(0,X.jsx)(G,{label:`State`,value:(0,X.jsx)(ie,{state:y.State})}),(0,X.jsx)(`div`,{className:`col-span-2 flex justify-end`,children:(0,X.jsx)(w,{disabled:m.isPending,onClick:k,size:`sm`,variant:`destructive`,children:m.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.`}),S.length>0?(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,X.jsxs)(c,{onValueChange:e=>g(e??``),value:h,children:[(0,X.jsx)(s,{className:`w-full`,children:(0,X.jsx)(i,{placeholder:`Select an instance profile`})}),(0,X.jsx)(o,{children:S.map(pe)})]}),(0,X.jsx)(w,{disabled:!h||f.isPending,onClick:T,size:`sm`,children:f.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.`]})]}),r[19]=f.isPending,r[20]=y,r[21]=m.isPending,r[22]=T,r[23]=k,r[24]=S,r[25]=h,r[26]=N):N=r[26];let P;return r[27]!==j||r[28]!==M||r[29]!==N?(P=(0,X.jsxs)(W,{children:[A,(0,X.jsxs)(W.Content,{children:[j,M,N]})]}),r[27]=j,r[28]=M,r[29]=N,r[30]=P):P=r[30],P}function pe(e){return(0,X.jsx)(a,{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(t){let n=(0,Z.c)(43),{instanceId:r,state:i}=t,a=f(),o=g(),s=m(),c=h(),[u,d]=(0,Y.useState)(!1),p=$.has(i??``),_;n[0]!==r||n[1]!==c?(_=()=>{c.mutate(r,{onSettled:()=>d(!1)})},n[0]=r,n[1]=c,n[2]=_):_=n[2];let v=_;if(p&&i!==`terminated`){let e;return n[3]===i?e=n[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 `,i,`. Actions will be available once the operation completes.`]})}),n[3]=i,n[4]=e),e}if(i===`terminated`){let e;return n[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.`})}),n[5]=e):e=n[5],e}let y;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,X.jsx)(`h2`,{className:`mb-4 font-semibold`,children:`Instance Actions`}),n[6]=y):y=n[6];let b;n[7]===a.error?b=n[8]:(b=a.error&&(0,X.jsx)(e,{error:a.error,msg:`Failed to start instance`}),n[7]=a.error,n[8]=b);let x;n[9]===o.error?x=n[10]:(x=o.error&&(0,X.jsx)(e,{error:o.error,msg:`Failed to stop instance`}),n[9]=o.error,n[10]=x);let S;n[11]===s.error?S=n[12]:(S=s.error&&(0,X.jsx)(e,{error:s.error,msg:`Failed to reboot instance`}),n[11]=s.error,n[12]=S);let C;n[13]===c.error?C=n[14]:(C=c.error&&(0,X.jsx)(e,{error:c.error,msg:`Failed to terminate instance`}),n[13]=c.error,n[14]=C);let T;n[15]!==r||n[16]!==a||n[17]!==i?(T=i===`stopped`&&(0,X.jsxs)(w,{disabled:a.isPending,onClick:()=>a.mutate(r),size:`sm`,variant:`default`,children:[(0,X.jsx)(ce,{className:`size-4`}),a.isPending?`Starting`:`Start`]}),n[15]=r,n[16]=a,n[17]=i,n[18]=T):T=n[18];let E;n[19]!==r||n[20]!==s||n[21]!==i||n[22]!==o?(E=i===`running`&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(w,{disabled:o.isPending,onClick:()=>o.mutate(r),size:`sm`,variant:`outline`,children:[(0,X.jsx)(q,{className:`size-4`}),o.isPending?`Stopping`:`Stop`]}),(0,X.jsxs)(w,{disabled:s.isPending,onClick:()=>s.mutate(r),size:`sm`,variant:`outline`,children:[(0,X.jsx)(J,{className:`size-4`}),s.isPending?`Rebooting`:`Reboot`]})]}),n[19]=r,n[20]=s,n[21]=i,n[22]=o,n[23]=E):E=n[23];let D;n[24]!==i||n[25]!==c.isPending?(D=(i===`stopped`||i===`running`)&&(0,X.jsxs)(w,{disabled:c.isPending,onClick:()=>d(!0),size:`sm`,variant:`destructive`,children:[(0,X.jsx)(l,{className:`size-4`}),c.isPending?`Terminating`:`Terminate`]}),n[24]=i,n[25]=c.isPending,n[26]=D):D=n[26];let O;n[27]!==T||n[28]!==E||n[29]!==D?(O=(0,X.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[T,E,D]}),n[27]=T,n[28]=E,n[29]=D,n[30]=O):O=n[30];let k=`Are you sure you want to terminate the instance "${r}"? This action cannot be undone.`,A;n[31]!==v||n[32]!==u||n[33]!==k||n[34]!==c.isPending?(A=(0,X.jsx)(U,{confirmLabel:`Terminate`,description:k,isPending:c.isPending,onConfirm:v,onOpenChange:d,open:u,pendingLabel:`Terminating…`,title:`Terminate Instance`}),n[31]=v,n[32]=u,n[33]=k,n[34]=c.isPending,n[35]=A):A=n[35];let j;return n[36]!==O||n[37]!==A||n[38]!==b||n[39]!==x||n[40]!==S||n[41]!==C?(j=(0,X.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[y,b,x,S,C,O,A]}),n[36]=O,n[37]=A,n[38]=b,n[39]=x,n[40]=S,n[41]=C,n[42]=j):j=n[42],j}function he(){let{id:l}=M.useParams(),{isAdmin:f}=S(),{data:p}=n(N(l)),m=p.Reservations?.[0]?.Instances?.[0],{data:h}=n(P(m?.ImageId)),g=h?.Images?.[0],{data:_}=n(k),{data:v}=t({...oe,enabled:f,refetchInterval:5e3}),y=v?.vms?.find(e=>e.instance_id===l),b=d(),C=u(),[E,D]=(0,Y.useState)(!1),[A,j]=(0,Y.useState)(``),[ee,U]=(0,Y.useState)(!1),[K,q]=(0,Y.useState)(null),[ce,J]=(0,Y.useState)(!1),Z=[...new Set(_.InstanceTypes?.flatMap(e=>e.InstanceType?[e.InstanceType]:[]))].toSorted();if(!m?.InstanceId)return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(r,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,X.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance not found.`})]});let pe=T(m.LaunchTime),Q=m.State?.Name===`running`,$=m.State?.Name===`stopped`;async function he(){try{await b.mutateAsync({instanceId:l,instanceType:A}),D(!1),j(``)}catch{}}async function ge(){try{let e=await C.mutateAsync(l);q(e.Output?atob(e.Output):`(no output)`),U(!0)}catch{}}return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(r,{to:`/ec2/describe-instances`,children:`Back to instances`}),b.error&&(0,X.jsx)(e,{error:b.error,msg:`Failed to modify instance`}),C.error&&(0,X.jsx)(e,{error:C.error,msg:`Failed to get console output`}),(0,X.jsxs)(`div`,{className:`space-y-6`,children:[(0,X.jsx)(te,{actions:(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[Q&&(0,X.jsxs)(w,{disabled:C.isPending,onClick:ge,size:`sm`,variant:`outline`,children:[(0,X.jsx)(ue,{className:`size-4`}),C.isPending?`Fetching…`:`View Console`]}),(Q||$)&&(0,X.jsxs)(w,{onClick:()=>J(!0),size:`sm`,variant:`outline`,children:[(0,X.jsx)(se,{className:`size-4`}),`Create Image`]}),$&&(0,X.jsxs)(w,{onClick:()=>{j(m.InstanceType??``),D(!0)},size:`sm`,variant:`outline`,children:[(0,X.jsx)(le,{className:`size-4`}),`Modify Instance`]}),(0,X.jsx)(ie,{state:m.State?.Name})]}),subtitle:`Instance Details`,title:m.InstanceId}),(0,X.jsx)(me,{instanceId:m.InstanceId,state:m.State?.Name}),ee&&K!==null&&(0,X.jsxs)(W,{children:[(0,X.jsx)(W.Header,{children:(0,X.jsxs)(`div`,{className:`flex items-center justify-between`,children:[`Console Output`,(0,X.jsx)(w,{onClick:()=>{U(!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:K})})]}),(0,X.jsxs)(W,{children:[(0,X.jsx)(W.Header,{children:`Instance Information`}),(0,X.jsxs)(W.Content,{children:[(0,X.jsx)(G,{label:`Instance ID`,value:m.InstanceId}),(0,X.jsx)(G,{label:`Instance Type`,value:m.InstanceType}),(0,X.jsx)(G,{label:`Instance State`,value:m.State?.Name}),(0,X.jsx)(G,{label:`State Code`,value:m.State?.Code?.toString()}),(0,X.jsx)(G,{label:`Launch Time`,value:pe}),(0,X.jsx)(G,{label:`Availability Zone`,value:m.Placement?.AvailabilityZone}),(0,X.jsx)(G,{label:`Placement Group`,value:m.Placement?.GroupName?(0,X.jsx)(O,{className:`text-primary hover:underline`,to:`/ec2/describe-placement-groups`,children:m.Placement.GroupName}):void 0})]})]}),(m.PrivateIpAddress||m.PublicIpAddress||m.VpcId||m.SubnetId||m.SecurityGroups&&m.SecurityGroups.length>0)&&(0,X.jsxs)(W,{children:[(0,X.jsx)(W.Header,{children:`Network & Security`}),(0,X.jsxs)(W.Content,{children:[(0,X.jsx)(G,{label:`Private IP Address`,value:m.PrivateIpAddress}),(0,X.jsx)(G,{label:`Public IP Address`,value:m.PublicIpAddress}),(0,X.jsx)(G,{label:`Private DNS`,value:m.PrivateDnsName}),(0,X.jsx)(G,{label:`Public DNS`,value:m.PublicDnsName}),(0,X.jsx)(G,{label:`VPC ID`,value:m.VpcId?(0,X.jsx)(O,{className:`text-primary hover:underline`,params:{id:m.VpcId},to:`/ec2/describe-vpcs/$id`,children:m.VpcId}):void 0}),(0,X.jsx)(G,{label:`Subnet ID`,value:m.SubnetId?(0,X.jsx)(O,{className:`text-primary hover:underline`,params:{id:m.SubnetId},to:`/ec2/describe-subnets/$id`,children:m.SubnetId}):void 0}),(0,X.jsx)(G,{label:`Key Name`,value:m.KeyName}),(0,X.jsx)(G,{label:`Security Groups`,value:m.SecurityGroups?.map(e=>e.GroupName).join(`, `)})]})]}),(0,X.jsx)(fe,{instanceId:m.InstanceId}),f&&y?.gpu&&(0,X.jsxs)(W,{children:[(0,X.jsx)(W.Header,{children:`GPU`}),(0,X.jsxs)(W.Content,{children:[(0,X.jsx)(G,{label:`Model`,value:y.gpu.model}),(0,X.jsx)(G,{label:`VRAM`,value:x(y.gpu.vram_mib)}),(0,X.jsx)(G,{label:`Attachment`,value:y.gpu.profile?`MIG slice`:`PCIe passthrough`}),y.gpu.profile&&(0,X.jsx)(G,{label:`Profile`,value:y.gpu.profile}),y.gpu.mdev_path&&(0,X.jsx)(G,{label:`Mdev path`,value:y.gpu.mdev_path}),y.gpu.pci_address&&(0,X.jsx)(G,{label:`PCI address`,value:y.gpu.pci_address})]})]}),m.BlockDeviceMappings&&m.BlockDeviceMappings.length>0&&(0,X.jsxs)(W,{children:[(0,X.jsx)(W.Header,{children:`Block Device Mappings`}),m.BlockDeviceMappings.map(e=>(0,X.jsxs)(W.Content,{children:[(0,X.jsx)(G,{label:`Device Name`,value:e.DeviceName}),(0,X.jsx)(G,{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)(G,{label:`Status`,value:e.Ebs?.Status}),(0,X.jsx)(G,{label:`Attach Time`,value:T(e.Ebs?.AttachTime)}),(0,X.jsx)(G,{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||(D(!1),j(``))},open:E,children:(0,X.jsxs)(R,{children:[(0,X.jsxs)(ne,{children:[(0,X.jsx)(z,{children:`Modify Instance`}),(0,X.jsxs)(L,{children:[`Select a new instance type for "`,m.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)(c,{onValueChange:e=>j(e??``),value:A,children:[(0,X.jsx)(s,{className:`w-full`,id:`instanceType`,children:(0,X.jsx)(i,{})}),(0,X.jsx)(o,{children:Z.map(e=>(0,X.jsx)(a,{value:e,children:e},e))})]})]}),(0,X.jsxs)(V,{children:[(0,X.jsx)(H,{children:`Cancel`}),(0,X.jsx)(B,{disabled:b.isPending||!A||A===m.InstanceType,onClick:he,children:b.isPending?`Saving…`:`Save Changes`})]})]})}),(0,X.jsx)(de,{instanceId:m.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 c48331ccd..12ffe6f25 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id4.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id4.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as o,t as s}from"./select.js";import{t as c}from"./trash-2.js";import{F as l,a as u,w as d}from"./ec2.js";import{Do as f,Et as p,Io as m,bs as h,hs as g,i as _,ms as v,ot as y,ys as b,zs as x}from"./index.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=x(h()),D=b();function O(){let{id:h}=_.useParams(),b=g(),{data:x}=t(y(h)),{data:O}=t(p),k=u(),A=l(),j=d(),[M,N]=(0,E.useState)(!1),[P,F]=(0,E.useState)(``),I=x.InternetGateways?.[0],L=O.Vpcs??[],R=async()=>{try{await j.mutateAsync(h),b({to:`/ec2/describe-internet-gateways`})}finally{N(!1)}},z=async()=>{P&&await k.mutateAsync({internetGatewayId:h,vpcId:P})},B=async e=>{await A.mutateAsync({internetGatewayId:h,vpcId:e})};if(!I?.InternetGatewayId)return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(n,{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=m(I.Tags);return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(n,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(j.error??k.error??A.error)&&(0,D.jsx)(e,{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)(f,{disabled:H||j.isPending,onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,D.jsx)(c,{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)(v,{className:`text-primary hover:underline`,params:{id:V.VpcId??``},to:`/ec2/describe-vpcs/$id`,children:V.VpcId}),(0,D.jsx)(f,{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)(s,{onValueChange:e=>F(e??``),value:P,children:[(0,D.jsx)(o,{className:`w-full`,children:(0,D.jsx)(r,{placeholder:`Select a VPC`})}),(0,D.jsx)(a,{children:L.map(e=>{let t=m(e.Tags);return(0,D.jsx)(i,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)})})]})}),(0,D.jsx)(f,{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{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as o,t as s}from"./select.js";import{t as c}from"./trash-2.js";import{F as l,a as u,w as d}from"./ec2.js";import{Bs as f,Et as p,Lo as m,Oo as h,bs as g,gs as _,hs as v,i as y,ot as b,xs as x}from"./index.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=f(x()),D=g();function O(){let{id:f}=y.useParams(),g=_(),{data:x}=t(b(f)),{data:O}=t(p),k=u(),A=l(),j=d(),[M,N]=(0,E.useState)(!1),[P,F]=(0,E.useState)(``),I=x.InternetGateways?.[0],L=O.Vpcs??[],R=async()=>{try{await j.mutateAsync(f),g({to:`/ec2/describe-internet-gateways`})}finally{N(!1)}},z=async()=>{P&&await k.mutateAsync({internetGatewayId:f,vpcId:P})},B=async e=>{await A.mutateAsync({internetGatewayId:f,vpcId:e})};if(!I?.InternetGatewayId)return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(n,{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=m(I.Tags);return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(n,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(j.error??k.error??A.error)&&(0,D.jsx)(e,{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)(h,{disabled:H||j.isPending,onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,D.jsx)(c,{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)(v,{className:`text-primary hover:underline`,params:{id:V.VpcId??``},to:`/ec2/describe-vpcs/$id`,children:V.VpcId}),(0,D.jsx)(h,{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)(s,{onValueChange:e=>F(e??``),value:P,children:[(0,D.jsx)(o,{className:`w-full`,children:(0,D.jsx)(r,{placeholder:`Select a VPC`})}),(0,D.jsx)(a,{children:L.map(e=>{let t=m(e.Tags);return(0,D.jsx)(i,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)})})]})}),(0,D.jsx)(h,{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/_id5.js b/spinifex/services/spinifexui/frontend/dist/assets/_id5.js index 9f9b94e31..1e8c16d8d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id5.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id5.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{T as i}from"./ec2.js";import{Do as a,No as o,a as s,bs as c,ct as l,hs as u,ys as d,zs as f}from"./index.js";import{t as p}from"./page-heading.js";import{t as m}from"./delete-confirmation-dialog.js";import{n as h,t as g}from"./detail-row.js";var _=f(c()),v=d();function y(){let{id:c}=s.useParams(),d=u(),{data:f}=t(l(c)),y=f.KeyPairs?.[0],b=i(),[x,S]=(0,_.useState)(!1),C=async()=>{try{await b.mutateAsync(c),d({to:`/ec2/describe-key-pairs`})}finally{S(!1)}};if(!y?.KeyPairId)return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(n,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),(0,v.jsx)(`p`,{className:`text-muted-foreground`,children:`Key pair not found.`})]});let w=o(y.CreateTime);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(n,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),b.error&&(0,v.jsx)(e,{error:b.error,msg:`Failed to delete key pair`}),(0,v.jsxs)(`div`,{className:`space-y-6`,children:[(0,v.jsx)(p,{actions:(0,v.jsxs)(a,{onClick:()=>S(!0),size:`sm`,variant:`destructive`,children:[(0,v.jsx)(r,{className:`size-4`}),`Delete`]}),subtitle:`Key Pair Details`,title:y.KeyName??``}),(0,v.jsxs)(h,{children:[(0,v.jsx)(h.Header,{children:`Key Pair Information`}),(0,v.jsxs)(h.Content,{children:[(0,v.jsx)(g,{label:`Key Pair ID`,value:y.KeyPairId}),(0,v.jsx)(g,{label:`Key Name`,value:y.KeyName}),(0,v.jsx)(g,{label:`Key Type`,value:y.KeyType}),(0,v.jsx)(g,{label:`Key Fingerprint`,value:y.KeyFingerprint}),(0,v.jsx)(g,{label:`Creation Date`,value:w})]})]}),y.Tags&&y.Tags.length>0&&(0,v.jsxs)(h,{children:[(0,v.jsx)(h.Header,{children:`Tags`}),(0,v.jsx)(h.Content,{children:y.Tags.map(e=>(0,v.jsx)(g,{label:e.Key??``,value:e.Value},e.Key))})]})]}),(0,v.jsx)(m,{description:`Are you sure you want to delete the key pair "${y.KeyName}"? This action cannot be undone. Any instances using this key pair will no longer be able to be accessed with it.`,isPending:b.isPending,onConfirm:C,onOpenChange:S,open:x,title:`Delete Key Pair`})]})}export{y as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{T as i}from"./ec2.js";import{Bs as a,Oo as o,Po as s,a as c,bs as l,ct as u,gs as d,xs as f}from"./index.js";import{t as p}from"./page-heading.js";import{t as m}from"./delete-confirmation-dialog.js";import{n as h,t as g}from"./detail-row.js";var _=a(f()),v=l();function y(){let{id:a}=c.useParams(),l=d(),{data:f}=t(u(a)),y=f.KeyPairs?.[0],b=i(),[x,S]=(0,_.useState)(!1),C=async()=>{try{await b.mutateAsync(a),l({to:`/ec2/describe-key-pairs`})}finally{S(!1)}};if(!y?.KeyPairId)return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(n,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),(0,v.jsx)(`p`,{className:`text-muted-foreground`,children:`Key pair not found.`})]});let w=s(y.CreateTime);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(n,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),b.error&&(0,v.jsx)(e,{error:b.error,msg:`Failed to delete key pair`}),(0,v.jsxs)(`div`,{className:`space-y-6`,children:[(0,v.jsx)(p,{actions:(0,v.jsxs)(o,{onClick:()=>S(!0),size:`sm`,variant:`destructive`,children:[(0,v.jsx)(r,{className:`size-4`}),`Delete`]}),subtitle:`Key Pair Details`,title:y.KeyName??``}),(0,v.jsxs)(h,{children:[(0,v.jsx)(h.Header,{children:`Key Pair Information`}),(0,v.jsxs)(h.Content,{children:[(0,v.jsx)(g,{label:`Key Pair ID`,value:y.KeyPairId}),(0,v.jsx)(g,{label:`Key Name`,value:y.KeyName}),(0,v.jsx)(g,{label:`Key Type`,value:y.KeyType}),(0,v.jsx)(g,{label:`Key Fingerprint`,value:y.KeyFingerprint}),(0,v.jsx)(g,{label:`Creation Date`,value:w})]})]}),y.Tags&&y.Tags.length>0&&(0,v.jsxs)(h,{children:[(0,v.jsx)(h.Header,{children:`Tags`}),(0,v.jsx)(h.Content,{children:y.Tags.map(e=>(0,v.jsx)(g,{label:e.Key??``,value:e.Value},e.Key))})]})]}),(0,v.jsx)(m,{description:`Are you sure you want to delete the key pair "${y.KeyName}"? This action cannot be undone. Any instances using this key pair will no longer be able to be accessed with it.`,isPending:b.isPending,onConfirm:C,onOpenChange:S,open:x,title:`Delete Key Pair`})]})}export{y as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id6.js b/spinifex/services/spinifexui/frontend/dist/assets/_id6.js index d3cca83b4..74b5ff15e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id6.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id6.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as o,t as s}from"./select.js";import{t as c}from"./trash-2.js";import{t as l}from"./certificate-import-dialog.js";import{a as u,d,f,g as p,h as m,o as h,r as g,s as _,t as v,u as y}from"./elbv2.js";import{Da as b,Do as x,G as S,H as C,I as w,Io as T,L as E,No as D,R as O,St as k,V as A,bs as j,fs as M,hs as N,o as P,q as F,ts as I,vt as ee,ys as te,z as L,zs as ne}from"./index.js";import{a as re,i as R,n as ie,r as z,t as B}from"./zod.js";import{t as ae}from"./page-heading.js";import{a as V,r as H,t as U}from"./field.js";import{a as W,i as G,l as K,n as q,o as J,r as Y,s as oe,t as se}from"./alert-dialog.js";import{t as ce}from"./delete-confirmation-dialog.js";import{n as X,t as Z}from"./detail-row.js";import{t as le}from"./state-badge.js";import{c as ue,i as de,n as fe,o as pe,s as me,t as he}from"./elbv22.js";import{a as ge,i as _e,n as ve,o as ye,r as be,s as xe,t as Se}from"./tabs.js";var Ce=I(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),we=M(),Q=ne(j(),1),$=te(),Te=80,Ee=443;function De(e){let t=e.CertificateArn?.split(`/`).pop()??e.CertificateArn??``;return e.DomainName?`${e.DomainName} · ${t}`:t}function Oe(e){let t=(0,we.c)(59),{form:n,protocols:i,targetGroups:c,certificates:u,sslPolicies:d}=e,f;t[0]===u?f=t[1]:(f=u===void 0?[]:u,t[0]=u,t[1]=f);let p=f,m;t[2]===d?m=t[3]:(m=d===void 0?[]:d,t[2]=d,t[3]=m);let h=m,{control:g,register:_,getValues:v,setValue:y,formState:S}=n,{errors:C}=S,[w,T]=(0,Q.useState)(!1),E;t[4]===g?E=t[5]:(E={control:g,name:`protocol`},t[4]=g,t[5]=E);let D=re(E),O=D===`HTTPS`,k;t[6]===D?k=t[7]:(k=me(D),t[6]=D,t[7]=k);let A=k,j;t[8]!==v||t[9]!==y?(j=e=>{if(!e)return;let t=v(`port`);me(e)?(t===Te&&y(`port`,Ee),e===`HTTPS`?v(`sslPolicy`)||y(`sslPolicy`,he):y(`sslPolicy`,void 0)):(t===Ee&&y(`port`,Te),y(`certificateArn`,void 0),y(`sslPolicy`,void 0))},t[8]=v,t[9]=y,t[10]=j):j=t[10];let M=j,N;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,$.jsx)(V,{children:(0,$.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),t[11]=N):N=t[11];let P;t[12]!==M||t[13]!==i?(P=e=>{let{field:t}=e;return(0,$.jsxs)(s,{onValueChange:e=>{t.onChange(e),M(e)},value:t.value,children:[(0,$.jsx)(o,{className:`w-full`,id:`listener-protocol`,children:(0,$.jsx)(r,{})}),(0,$.jsx)(a,{children:i.map(Me)})]})},t[12]=M,t[13]=i,t[14]=P):P=t[14];let F;t[15]!==g||t[16]!==P?(F=(0,$.jsxs)(U,{children:[N,(0,$.jsx)(ie,{control:g,name:`protocol`,render:P})]}),t[15]=g,t[16]=P,t[17]=F):F=t[17];let I;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,$.jsx)(V,{children:(0,$.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),t[18]=I):I=t[18];let ee=!!C.port,te=A?`443`:`80`,L;t[19]===_?L=t[20]:(L=_(`port`,{valueAsNumber:!0}),t[19]=_,t[20]=L);let ne;t[21]!==ee||t[22]!==te||t[23]!==L?(ne=(0,$.jsx)(b,{"aria-invalid":ee,id:`listener-port`,inputMode:`numeric`,placeholder:te,type:`number`,...L}),t[21]=ee,t[22]=te,t[23]=L,t[24]=ne):ne=t[24];let R;t[25]===C.port?R=t[26]:(R=(0,$.jsx)(H,{errors:[C.port]}),t[25]=C.port,t[26]=R);let z;t[27]!==ne||t[28]!==R?(z=(0,$.jsxs)(U,{children:[I,ne,R]}),t[27]=ne,t[28]=R,t[29]=z):z=t[29];let B;t[30]!==p||t[31]!==g||t[32]!==C.certificateArn||t[33]!==w||t[34]!==O||t[35]!==A||t[36]!==y||t[37]!==h?(B=A&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(U,{children:[(0,$.jsx)(V,{children:(0,$.jsx)(`label`,{htmlFor:`listener-certificate`,children:`Certificate`})}),(0,$.jsx)(ie,{control:g,name:`certificateArn`,render:e=>{let{field:t}=e;return(0,$.jsxs)(s,{onValueChange:t.onChange,value:t.value??``,children:[(0,$.jsx)(o,{"aria-invalid":!!C.certificateArn,className:`w-full`,id:`listener-certificate`,children:(0,$.jsx)(r,{placeholder:`Select certificate`})}),(0,$.jsx)(a,{children:p.map(je)})]})}}),(0,$.jsx)(H,{errors:[C.certificateArn]}),(0,$.jsxs)(`div`,{className:`mt-1 flex items-center justify-between`,children:[p.length===0&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No certificates imported yet.`}),(0,$.jsx)(x,{className:`ml-auto`,onClick:()=>T(!0),size:`sm`,type:`button`,variant:`ghost`,children:`Import certificate…`})]})]}),O&&(0,$.jsxs)(U,{children:[(0,$.jsx)(V,{children:(0,$.jsx)(`label`,{htmlFor:`listener-ssl-policy`,children:`Security policy`})}),(0,$.jsx)(ie,{control:g,name:`sslPolicy`,render:e=>{let{field:t}=e;return(0,$.jsxs)(s,{onValueChange:t.onChange,value:t.value??`ELBSecurityPolicy-2016-08`,children:[(0,$.jsx)(o,{className:`w-full`,id:`listener-ssl-policy`,children:(0,$.jsx)(r,{})}),(0,$.jsx)(a,{children:h.map(Ae)})]})}})]}),(0,$.jsx)(l,{onImported:e=>y(`certificateArn`,e,{shouldValidate:!0}),onOpenChange:T,open:w})]}),t[30]=p,t[31]=g,t[32]=C.certificateArn,t[33]=w,t[34]=O,t[35]=A,t[36]=y,t[37]=h,t[38]=B):B=t[38];let ae;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(ae=(0,$.jsx)(V,{children:(0,$.jsx)(`label`,{htmlFor:`listener-default-tg`,children:`Default target group`})}),t[39]=ae):ae=t[39];let W;t[40]!==C.defaultTargetGroupArn||t[41]!==c?(W=e=>{let{field:t}=e;return(0,$.jsxs)(s,{onValueChange:t.onChange,value:t.value??``,children:[(0,$.jsx)(o,{"aria-invalid":!!C.defaultTargetGroupArn,className:`w-full`,id:`listener-default-tg`,children:(0,$.jsx)(r,{placeholder:`Select target group`})}),(0,$.jsx)(a,{children:c.map(ke)})]})},t[40]=C.defaultTargetGroupArn,t[41]=c,t[42]=W):W=t[42];let G;t[43]!==g||t[44]!==W?(G=(0,$.jsx)(ie,{control:g,name:`defaultTargetGroupArn`,render:W}),t[43]=g,t[44]=W,t[45]=G):G=t[45];let K;t[46]===C.defaultTargetGroupArn?K=t[47]:(K=(0,$.jsx)(H,{errors:[C.defaultTargetGroupArn]}),t[46]=C.defaultTargetGroupArn,t[47]=K);let q;t[48]===c.length?q=t[49]:(q=c.length===0&&(0,$.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups available in this VPC. Create one first.`}),t[48]=c.length,t[49]=q);let J;t[50]!==G||t[51]!==K||t[52]!==q?(J=(0,$.jsxs)(U,{children:[ae,G,K,q]}),t[50]=G,t[51]=K,t[52]=q,t[53]=J):J=t[53];let Y;return t[54]!==F||t[55]!==z||t[56]!==B||t[57]!==J?(Y=(0,$.jsxs)($.Fragment,{children:[F,z,B,J]}),t[54]=F,t[55]=z,t[56]=B,t[57]=J,t[58]=Y):Y=t[58],Y}function ke(e){return(0,$.jsxs)(i,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn)}function Ae(e){return(0,$.jsx)(i,{value:e.Name??``,children:e.Name},e.Name)}function je(e){return(0,$.jsx)(i,{value:e.CertificateArn??``,children:De(e)},e.CertificateArn)}function Me(e){return(0,$.jsx)(i,{value:e,children:e},e)}function Ne({listenerArn:n,targetGroups:r}){let{data:i}=t(w(n)),a=g(),o=f(),s=_(),[l,u]=(0,Q.useState)(!1),[d,p]=(0,Q.useState)(),[m,h]=(0,Q.useState)(),v=i.Rules??[],y=new Map;for(let e of r)e.TargetGroupArn&&e.TargetGroupName&&y.set(e.TargetGroupArn,e.TargetGroupName);return(0,$.jsxs)(`div`,{className:`space-y-3`,children:[a.error&&(0,$.jsx)(e,{error:a.error,msg:`Failed to create rule`}),o.error&&(0,$.jsx)(e,{error:o.error,msg:`Failed to modify rule`}),s.error&&(0,$.jsx)(e,{error:s.error,msg:`Failed to delete rule`}),(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[v.length,` rule`,v.length===1?``:`s`,` (including default)`]}),(0,$.jsx)(x,{onClick:()=>u(!0),size:`sm`,children:`Add rule`})]}),(0,$.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,$.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,$.jsx)(`thead`,{children:(0,$.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Priority`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Conditions`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Forward to`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(`tbody`,{children:v.map(e=>(0,$.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Priority}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:Pe(e.Conditions,e.IsDefault===!0)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:Ie(e,y)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-right`,children:e.IsDefault===!0?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Edit via listener`}):(0,$.jsxs)(`div`,{className:`flex justify-end gap-1`,children:[(0,$.jsx)(x,{"aria-label":`Edit rule ${e.Priority}`,onClick:()=>p(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(Ce,{className:`size-4`})}),(0,$.jsx)(x,{"aria-label":`Delete rule ${e.Priority}`,onClick:()=>h(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(c,{className:`size-4`})})]})})]},e.RuleArn??e.Priority??`default`))})]})}),(0,$.jsx)(Re,{isPending:a.isPending,mode:`add`,onOpenChange:u,onSubmit:async e=>{try{await a.mutateAsync({listenerArn:n,priority:e.priority,conditions:e.conditions.map(Le),forwardTargetGroupArn:e.forwardTargetGroupArn}),u(!1)}catch{}},open:l,targetGroups:r}),(0,$.jsx)(Re,{initialRule:d,isPending:o.isPending,mode:`edit`,onOpenChange:e=>!e&&p(void 0),onSubmit:async e=>{if(d?.RuleArn)try{await o.mutateAsync({ruleArn:d.RuleArn,listenerArn:n,conditions:e.conditions.map(Le),forwardTargetGroupArn:e.forwardTargetGroupArn}),p(void 0)}catch{}},open:d!==void 0,targetGroups:r}),(0,$.jsx)(ce,{description:m?`Delete rule with priority ${m.Priority}? This cannot be undone.`:``,isPending:s.isPending,onConfirm:async()=>{if(m?.RuleArn)try{await s.mutateAsync({ruleArn:m.RuleArn,listenerArn:n})}finally{h(void 0)}},onOpenChange:e=>!e&&h(void 0),open:m!==void 0,title:`Delete rule`})]})}function Pe(e,t){return t?`default`:!e||e.length===0?`—`:e.map(e=>{let t=Fe(e);return`${e.Field}: ${t.join(`, `)}`}).join(` AND `)}function Fe(e){if(e.Field===void 0)return e.Values??[];switch(e.Field){case`host-header`:return e.HostHeaderConfig?.Values??e.Values??[];case`path-pattern`:return e.PathPatternConfig?.Values??e.Values??[];case`http-header`:{let t=e.HttpHeaderConfig?.HttpHeaderName??`?`;return(e.HttpHeaderConfig?.Values??[]).map(e=>`${t}=${e}`)}case`http-request-method`:return e.HttpRequestMethodConfig?.Values??[];case`source-ip`:return e.SourceIpConfig?.Values??[];case`query-string`:return(e.QueryStringConfig?.Values??[]).map(e=>e.Key?`${e.Key}=${e.Value??``}`:e.Value??``);default:return e.Values??[]}}function Ie(e,t){let n=e.Actions?.[0];return n?n.Type===`forward`&&n.TargetGroupArn?t.get(n.TargetGroupArn)??n.TargetGroupArn:n.Type??`—`:`—`}function Le(e){let t=e.rawValues.split(/[\n,]/).map(e=>e.trim()).filter(e=>e.length>0);return e.field===`query-string`?{field:e.field,values:[],queryStringPairs:t.map(e=>{let t=e.indexOf(`=`);return t===-1?{value:e}:{key:e.slice(0,t),value:e.slice(t+1)}})}:{field:e.field,values:t,httpHeaderName:e.httpHeaderName}}function Re({open:e,onOpenChange:t,onSubmit:n,isPending:c,targetGroups:l,mode:u,initialRule:d}){let f=[{field:`path-pattern`,rawValues:``}],p=R({resolver:B(de),defaultValues:{priority:1,conditions:f,forwardTargetGroupArn:``}}),{fields:m,append:h,remove:g}=z({control:p.control,name:`conditions`});(0,Q.useEffect)(()=>{if(u===`add`){e||p.reset({priority:1,conditions:f,forwardTargetGroupArn:``});return}if(!d)return;let t=Number(d.Priority??1),n=d.Conditions?.map(e=>Ue(e))??f;p.reset({priority:Number.isFinite(t)?t:1,conditions:n.length>0?n:f,forwardTargetGroupArn:d.Actions?.[0]?.TargetGroupArn??``})},[d,e,u]);let _=p.handleSubmit(n);return(0,$.jsx)(se,{onOpenChange:t,open:e,children:(0,$.jsxs)(G,{className:`grid-cols-[minmax(0,1fr)]`,style:{maxWidth:`40rem`,width:`calc(100vw - 2rem)`},children:[(0,$.jsxs)(oe,{children:[(0,$.jsx)(K,{children:u===`add`?`Add rule`:`Edit rule`}),(0,$.jsx)(W,{children:`Routing rules match incoming requests and forward them to a target group. Rules evaluate in priority order; the listener default applies when no rule matches.`})]}),(0,$.jsxs)(`form`,{className:`min-w-0 space-y-4`,onSubmit:e=>{e.preventDefault(),_()},children:[(0,$.jsxs)(U,{children:[(0,$.jsx)(V,{children:(0,$.jsx)(`label`,{htmlFor:`rule-priority`,children:`Priority`})}),(0,$.jsx)(b,{"aria-invalid":!!p.formState.errors.priority,id:`rule-priority`,inputMode:`numeric`,type:`number`,...p.register(`priority`,{valueAsNumber:!0})}),(0,$.jsx)(H,{errors:[p.formState.errors.priority]})]}),(0,$.jsxs)(`div`,{className:`space-y-3`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsx)(V,{children:`Conditions`}),(0,$.jsx)(x,{disabled:m.length>=5,onClick:()=>h({field:`path-pattern`,rawValues:``}),size:`sm`,type:`button`,variant:`outline`,children:`Add condition`})]}),m.map((e,t)=>(0,$.jsx)(ze,{form:p,index:t,onRemove:m.length>1?()=>g(t):void 0},e.id))]}),(0,$.jsxs)(U,{children:[(0,$.jsx)(V,{children:(0,$.jsx)(`label`,{htmlFor:`rule-forward-tg`,children:`Forward to target group`})}),(0,$.jsx)(ie,{control:p.control,name:`forwardTargetGroupArn`,render:({field:e})=>(0,$.jsxs)(s,{onValueChange:e.onChange,value:e.value??``,children:[(0,$.jsx)(o,{"aria-invalid":!!p.formState.errors.forwardTargetGroupArn,className:`w-full`,id:`rule-forward-tg`,children:(0,$.jsx)(r,{placeholder:`Select target group`})}),(0,$.jsx)(a,{children:l.map(e=>(0,$.jsxs)(i,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,$.jsx)(H,{errors:[p.formState.errors.forwardTargetGroupArn]})]})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(Y,{disabled:c,children:`Cancel`}),(0,$.jsx)(q,{disabled:c,onClick:_,children:We(u,c)})]})]})})}function ze(e){let t=(0,we.c)(54),{form:n,index:l,onRemove:u}=e,d,f,p,m,h,g,_,v,y,S;if(t[0]!==n||t[1]!==l||t[2]!==u){let e=n.watch(`conditions.${l}.field`);p=n.formState.errors.conditions?.[l],v=`space-y-2 rounded-md border p-3`;let C=`rule-cond-${l}-field`,w;t[13]===C?w=t[14]:(w=(0,$.jsx)(V,{children:(0,$.jsx)(`label`,{htmlFor:C,children:`Type`})}),t[13]=C,t[14]=w);let T=`conditions.${l}.field`,E;t[15]===l?E=t[16]:(E=e=>{let{field:t}=e;return(0,$.jsxs)(s,{onValueChange:t.onChange,value:t.value,children:[(0,$.jsx)(o,{className:`w-full`,id:`rule-cond-${l}-field`,children:(0,$.jsx)(r,{})}),(0,$.jsxs)(a,{children:[(0,$.jsx)(i,{value:`path-pattern`,children:`Path pattern`}),(0,$.jsx)(i,{value:`host-header`,children:`Host header`}),(0,$.jsx)(i,{value:`http-header`,children:`HTTP header`}),(0,$.jsx)(i,{value:`http-request-method`,children:`HTTP method`}),(0,$.jsx)(i,{value:`source-ip`,children:`Source IP CIDR`}),(0,$.jsx)(i,{value:`query-string`,children:`Query string`})]})]})},t[15]=l,t[16]=E);let D;t[17]!==n.control||t[18]!==T||t[19]!==E?(D=(0,$.jsx)(ie,{control:n.control,name:T,render:E}),t[17]=n.control,t[18]=T,t[19]=E,t[20]=D):D=t[20];let O;t[21]!==D||t[22]!==w?(O=(0,$.jsxs)(`div`,{className:`flex-1`,children:[w,D]}),t[21]=D,t[22]=w,t[23]=O):O=t[23];let k;t[24]!==l||t[25]!==u?(k=u&&(0,$.jsx)(x,{"aria-label":`Remove condition ${l+1}`,className:`self-end`,onClick:u,size:`sm`,type:`button`,variant:`ghost`,children:(0,$.jsx)(c,{className:`size-4`})}),t[24]=l,t[25]=u,t[26]=k):k=t[26],t[27]!==O||t[28]!==k?(y=(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[O,k]}),t[27]=O,t[28]=k,t[29]=y):y=t[29],S=e===`http-header`&&(0,$.jsxs)(U,{children:[(0,$.jsx)(V,{children:(0,$.jsx)(`label`,{htmlFor:`rule-cond-${l}-hdr-name`,children:`Header name`})}),(0,$.jsx)(b,{"aria-invalid":!!p?.httpHeaderName,id:`rule-cond-${l}-hdr-name`,placeholder:`X-Tenant`,...n.register(`conditions.${l}.httpHeaderName`)}),(0,$.jsx)(H,{errors:[p?.httpHeaderName]})]}),f=U;let A=`rule-cond-${l}-values`,j;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`(comma or newline separated, max 5)`}),t[30]=j):j=t[30],t[31]===A?_=t[32]:(_=(0,$.jsx)(V,{children:(0,$.jsxs)(`label`,{htmlFor:A,children:[`Values`,` `,j]})}),t[31]=A,t[32]=_),d=b,m=!!p?.rawValues,h=`rule-cond-${l}-values`,g=Be(e),t[0]=n,t[1]=l,t[2]=u,t[3]=d,t[4]=f,t[5]=p,t[6]=m,t[7]=h,t[8]=g,t[9]=_,t[10]=v,t[11]=y,t[12]=S}else d=t[3],f=t[4],p=t[5],m=t[6],h=t[7],g=t[8],_=t[9],v=t[10],y=t[11],S=t[12];let C;t[33]!==n||t[34]!==l?(C=n.register(`conditions.${l}.rawValues`),t[33]=n,t[34]=l,t[35]=C):C=t[35];let w;t[36]!==d||t[37]!==m||t[38]!==h||t[39]!==g||t[40]!==C?(w=(0,$.jsx)(d,{"aria-invalid":m,id:h,placeholder:g,...C}),t[36]=d,t[37]=m,t[38]=h,t[39]=g,t[40]=C,t[41]=w):w=t[41];let T=p?.rawValues,E;t[42]===T?E=t[43]:(E=(0,$.jsx)(H,{errors:[T]}),t[42]=T,t[43]=E);let D;t[44]!==f||t[45]!==E||t[46]!==_||t[47]!==w?(D=(0,$.jsxs)(f,{children:[_,w,E]}),t[44]=f,t[45]=E,t[46]=_,t[47]=w,t[48]=D):D=t[48];let O;return t[49]!==D||t[50]!==v||t[51]!==y||t[52]!==S?(O=(0,$.jsxs)(`div`,{className:v,children:[y,S,D]}),t[49]=D,t[50]=v,t[51]=y,t[52]=S,t[53]=O):O=t[53],O}function Be(e){switch(e){case`path-pattern`:return`/api/*`;case`host-header`:return`*.example.com`;case`http-header`:return`acme`;case`http-request-method`:return`GET, POST`;case`source-ip`:return`10.0.0.0/8`;case`query-string`:return`key=value`;default:return``}}var Ve=new Set([`host-header`,`path-pattern`,`http-header`,`http-request-method`,`source-ip`,`query-string`]);function He(e){return e!==void 0&&Ve.has(e)}function Ue(e){let t=Fe(e);return{field:He(e.Field)?e.Field:`path-pattern`,httpHeaderName:e.HttpHeaderConfig?.HttpHeaderName,rawValues:t.join(`, `)}}function We(e,t){return t?e===`add`?`Adding…`:`Saving…`:e===`add`?`Add rule`:`Save changes`}function Ge(e){return{protocol:pe(e),port:80,defaultTargetGroupArn:``}}function Ke(e){if(e.Protocol!==`HTTPS`)return`—`;let t=e.Certificates?.[0]?.CertificateArn?.split(`/`).pop(),n=e.SslPolicy;return t&&n?`${n} · ${t}`:n??t??`—`}function qe({loadBalancerArn:n,vpcId:r,lbType:i}){let a=ue(i),{data:o}=t(E(n)),{data:s}=t(S),{data:l}=t(F),{data:d}=t(A),f=v(),p=u(),m=y(),[h,g]=(0,Q.useState)(!1),[_,b]=(0,Q.useState)(),[C,w]=(0,Q.useState)(),[T,D]=(0,Q.useState)(),O=o.Listeners??[],k=s.TargetGroups??[],j=k.filter(e=>e.VpcId===r),M=l.CertificateSummaryList??[],N=d.SslPolicies??[],P=new Map;for(let e of k)e.TargetGroupArn&&e.TargetGroupName&&P.set(e.TargetGroupArn,e.TargetGroupName);let I=e=>{let t=e.DefaultActions?.[0];if(!t)return`—`;if(t.Type===`forward`&&t.TargetGroupArn){let e=P.get(t.TargetGroupArn);return e?`forward → ${e}`:`forward → ${t.TargetGroupArn}`}return t.Type??`—`};return(0,$.jsxs)(`div`,{className:`space-y-3`,children:[f.error&&(0,$.jsx)(e,{error:f.error,msg:`Failed to create listener`}),m.error&&(0,$.jsx)(e,{error:m.error,msg:`Failed to modify listener`}),p.error&&(0,$.jsx)(e,{error:p.error,msg:`Failed to delete listener`}),(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[O.length,` listener`,O.length===1?``:`s`]}),(0,$.jsx)(x,{onClick:()=>g(!0),size:`sm`,children:`Add listener`})]}),O.length===0?(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No listeners configured.`}):(0,$.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,$.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,$.jsx)(`thead`,{children:(0,$.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Protocol`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`TLS`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Default action`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Listener ARN`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(`tbody`,{children:O.map(e=>{let t=e.ListenerArn??``,n=T===t;return(0,$.jsxs)(Q.Fragment,{children:[(0,$.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Protocol}),(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Port}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:Ke(e)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:I(e)}),(0,$.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,$.jsxs)(`div`,{className:`flex justify-end gap-1`,children:[(0,$.jsx)(x,{"aria-label":`${n?`Hide`:`Show`} rules for listener ${e.Protocol}:${e.Port}`,onClick:()=>D(n?void 0:t),size:`sm`,variant:`ghost`,children:n?`Hide rules`:`Rules`}),(0,$.jsx)(x,{"aria-label":`Edit listener ${e.Protocol}:${e.Port}`,onClick:()=>b(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(Ce,{className:`size-4`})}),(0,$.jsx)(x,{"aria-label":`Delete listener ${e.Protocol}:${e.Port}`,onClick:()=>w(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(c,{className:`size-4`})})]})})]}),n&&t&&(0,$.jsx)(`tr`,{className:`border-b bg-muted/30 last:border-0`,children:(0,$.jsx)(`td`,{className:`px-4 py-3`,colSpan:6,children:(0,$.jsx)(Ne,{listenerArn:t,targetGroups:j})})})]},t)})})]})}),(0,$.jsx)(Je,{certificates:M,isPending:f.isPending,lbType:i,onOpenChange:g,onSubmit:async e=>{try{await f.mutateAsync({loadBalancerArn:n,protocol:e.protocol,port:e.port,defaultTargetGroupArn:e.defaultTargetGroupArn,certificateArn:e.certificateArn,sslPolicy:e.sslPolicy}),g(!1)}catch{}},open:h,protocols:a,sslPolicies:N,targetGroups:j}),(0,$.jsx)(Ye,{certificates:M,isPending:m.isPending,listener:_,onOpenChange:e=>!e&&b(void 0),onSubmit:async e=>{if(_?.ListenerArn)try{await m.mutateAsync({listenerArn:_.ListenerArn,loadBalancerArn:n,protocol:e.protocol,port:e.port,defaultTargetGroupArn:e.defaultTargetGroupArn,certificateArn:e.certificateArn,sslPolicy:e.sslPolicy}),b(void 0)}catch{}},protocols:a,sslPolicies:N,targetGroups:j}),(0,$.jsx)(ce,{description:C?`Delete listener ${C.Protocol}:${C.Port}? This cannot be undone.`:``,isPending:p.isPending,onConfirm:async()=>{if(C?.ListenerArn)try{await p.mutateAsync(C.ListenerArn)}finally{w(void 0)}},onOpenChange:e=>!e&&w(void 0),open:C!==void 0,title:`Delete listener`})]})}function Je(e){let t=(0,we.c)(42),{open:n,onOpenChange:r,lbType:i,protocols:a,targetGroups:o,certificates:s,sslPolicies:c,isPending:l,onSubmit:u}=e,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=B(fe),t[0]=d):d=t[0];let f;t[1]===i?f=t[2]:(f=Ge(i),t[1]=i,t[2]=f);let p;t[3]===f?p=t[4]:(p={resolver:d,defaultValues:f},t[3]=f,t[4]=p);let m=R(p),h,g;t[5]!==m||t[6]!==i||t[7]!==n?(h=()=>{n||m.reset(Ge(i))},g=[n,m,i],t[5]=m,t[6]=i,t[7]=n,t[8]=h,t[9]=g):(h=t[8],g=t[9]),(0,Q.useEffect)(h,g);let _;t[10]!==m||t[11]!==u?(_=m.handleSubmit(u),t[10]=m,t[11]=u,t[12]=_):_=t[12];let v=_,y;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(y={maxWidth:`32rem`,width:`calc(100vw - 2rem)`},t[13]=y):y=t[13];let b;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsxs)(oe,{children:[(0,$.jsx)(K,{children:`Add listener`}),(0,$.jsx)(W,{children:`Listeners forward incoming traffic to a default target group.`})]}),t[14]=b):b=t[14];let x;t[15]===v?x=t[16]:(x=e=>{e.preventDefault(),v()},t[15]=v,t[16]=x);let S;t[17]!==s||t[18]!==m||t[19]!==a||t[20]!==c||t[21]!==o?(S=(0,$.jsx)(Oe,{certificates:s,form:m,protocols:a,sslPolicies:c,targetGroups:o}),t[17]=s,t[18]=m,t[19]=a,t[20]=c,t[21]=o,t[22]=S):S=t[22];let C;t[23]!==S||t[24]!==x?(C=(0,$.jsx)(`form`,{className:`min-w-0 space-y-4`,onSubmit:x,children:S}),t[23]=S,t[24]=x,t[25]=C):C=t[25];let w;t[26]===l?w=t[27]:(w=(0,$.jsx)(Y,{disabled:l,children:`Cancel`}),t[26]=l,t[27]=w);let T=l?`Adding…`:`Add listener`,E;t[28]!==v||t[29]!==l||t[30]!==T?(E=(0,$.jsx)(q,{disabled:l,onClick:v,children:T}),t[28]=v,t[29]=l,t[30]=T,t[31]=E):E=t[31];let D;t[32]!==w||t[33]!==E?(D=(0,$.jsxs)(J,{children:[w,E]}),t[32]=w,t[33]=E,t[34]=D):D=t[34];let O;t[35]!==C||t[36]!==D?(O=(0,$.jsxs)(G,{className:`grid-cols-[minmax(0,1fr)]`,style:y,children:[b,C,D]}),t[35]=C,t[36]=D,t[37]=O):O=t[37];let k;return t[38]!==r||t[39]!==n||t[40]!==O?(k=(0,$.jsx)(se,{onOpenChange:r,open:n,children:O}),t[38]=r,t[39]=n,t[40]=O,t[41]=k):k=t[41],k}function Ye(e){let t=(0,we.c)(38),{listener:n,onOpenChange:r,protocols:i,targetGroups:a,certificates:o,sslPolicies:s,isPending:c,onSubmit:l}=e,u=n!==void 0,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d={resolver:B(fe),defaultValues:{protocol:`HTTP`,port:80,defaultTargetGroupArn:``}},t[0]=d):d=t[0];let f=R(d),p,m;t[1]!==f||t[2]!==n||t[3]!==i?(p=()=>{if(!n)return;let e=i.find(e=>e===n.Protocol)??i[0]??`HTTP`,t=me(e);f.reset({protocol:e,port:n.Port??80,defaultTargetGroupArn:n.DefaultActions?.[0]?.TargetGroupArn??``,certificateArn:t?n.Certificates?.[0]?.CertificateArn:void 0,sslPolicy:e===`HTTPS`?n.SslPolicy:void 0})},m=[n,f,i],t[1]=f,t[2]=n,t[3]=i,t[4]=p,t[5]=m):(p=t[4],m=t[5]),(0,Q.useEffect)(p,m);let h;t[6]!==f||t[7]!==l?(h=f.handleSubmit(l),t[6]=f,t[7]=l,t[8]=h):h=t[8];let g=h,_;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(_={maxWidth:`32rem`,width:`calc(100vw - 2rem)`},t[9]=_):_=t[9];let v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsxs)(oe,{children:[(0,$.jsx)(K,{children:`Edit listener`}),(0,$.jsx)(W,{children:`Update port, protocol, or default target group. Changes apply without dropping the listener.`})]}),t[10]=v):v=t[10];let y;t[11]===g?y=t[12]:(y=e=>{e.preventDefault(),g()},t[11]=g,t[12]=y);let b;t[13]!==o||t[14]!==f||t[15]!==i||t[16]!==s||t[17]!==a?(b=(0,$.jsx)(Oe,{certificates:o,form:f,protocols:i,sslPolicies:s,targetGroups:a}),t[13]=o,t[14]=f,t[15]=i,t[16]=s,t[17]=a,t[18]=b):b=t[18];let x;t[19]!==y||t[20]!==b?(x=(0,$.jsx)(`form`,{className:`min-w-0 space-y-4`,onSubmit:y,children:b}),t[19]=y,t[20]=b,t[21]=x):x=t[21];let S;t[22]===c?S=t[23]:(S=(0,$.jsx)(Y,{disabled:c,children:`Cancel`}),t[22]=c,t[23]=S);let C=c?`Saving…`:`Save changes`,w;t[24]!==g||t[25]!==c||t[26]!==C?(w=(0,$.jsx)(q,{disabled:c,onClick:g,children:C}),t[24]=g,t[25]=c,t[26]=C,t[27]=w):w=t[27];let T;t[28]!==S||t[29]!==w?(T=(0,$.jsxs)(J,{children:[S,w]}),t[28]=S,t[29]=w,t[30]=T):T=t[30];let E;t[31]!==T||t[32]!==x?(E=(0,$.jsxs)(G,{className:`grid-cols-[minmax(0,1fr)]`,style:_,children:[v,x,T]}),t[31]=T,t[32]=x,t[33]=E):E=t[33];let D;return t[34]!==r||t[35]!==u||t[36]!==E?(D=(0,$.jsx)(se,{onOpenChange:r,open:u,children:E}),t[34]=r,t[35]=u,t[36]=E,t[37]=D):D=t[37],D}function Xe(e,t){if(e.length!==t.length)return!1;let n=new Set(t);return e.every(e=>n.has(e))}function Ze(e){let t=(0,we.c)(46),{available:n,current:r,onSubmit:i,isPending:a,error:o,isSuccess:s}=e,c;t[0]===r?c=t[1]:(c=[...r],t[0]=r,t[1]=c);let l=c,[u,d]=(0,Q.useState)(l),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},t[2]=f):f=t[2];let p=f,m;t[3]===l?m=t[4]:(m=()=>d(l),t[3]=l,t[4]=m);let h=m,g;t[5]!==l||t[6]!==u?(g=Xe(u,l),t[5]=l,t[6]=u,t[7]=g):g=t[7];let _=!g,v=u.length===0,y;t[8]!==_||t[9]!==v||t[10]!==i||t[11]!==u?(y=e=>{e.preventDefault(),!(!_||v)&&i(u)},t[8]=_,t[9]=v,t[10]=i,t[11]=u,t[12]=y):y=t[12];let b;t[13]===o?b=t[14]:(b=o&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:o.message||`Failed to update security groups`}),t[13]=o,t[14]=b);let S;t[15]!==_||t[16]!==s?(S=s&&!_&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Security groups updated.`}),t[15]=_,t[16]=s,t[17]=S):S=t[17];let C;t[18]!==n||t[19]!==u?(C=n.length===0?(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No security groups in this VPC.`}):n.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,$.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:u.includes(e.GroupId??``),onChange:()=>p(e.GroupId??``),type:`checkbox`}),(0,$.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId)),t[18]=n,t[19]=u,t[20]=C):C=t[20];let w;t[21]===v?w=t[22]:(w=v&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`At least one security group is required.`}),t[21]=v,t[22]=w);let T;t[23]!==C||t[24]!==w?(T=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1 p-4`,children:[C,w]}),t[23]=C,t[24]=w,t[25]=T):T=t[25];let E=_?`Unsaved changes`:`No changes`,D;t[26]===E?D=t[27]:(D=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:E}),t[26]=E,t[27]=D);let O=a||!_,k;t[28]!==h||t[29]!==O?(k=(0,$.jsx)(x,{disabled:O,onClick:h,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[28]=h,t[29]=O,t[30]=k):k=t[30];let A=a||!_||v,j=a?`Saving…`:`Save changes`,M;t[31]!==A||t[32]!==j?(M=(0,$.jsx)(x,{disabled:A,size:`sm`,type:`submit`,children:j}),t[31]=A,t[32]=j,t[33]=M):M=t[33];let N;t[34]!==D||t[35]!==k||t[36]!==M?(N=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[D,k,M]}),t[34]=D,t[35]=k,t[36]=M,t[37]=N):N=t[37];let P;t[38]!==T||t[39]!==N?(P=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[T,N]}),t[38]=T,t[39]=N,t[40]=P):P=t[40];let F;return t[41]!==P||t[42]!==y||t[43]!==b||t[44]!==S?(F=(0,$.jsxs)(`form`,{onSubmit:y,children:[b,S,P]}),t[41]=P,t[42]=y,t[43]=b,t[44]=S,t[45]=F):F=t[45],F}function Qe({arn:r}){let i=N(),{data:a}=t(L(r)),{data:o}=t(O(r)),{data:s}=t(C([r])),{data:l}=t(k),{data:u}=t(ee),f=h(),g=d(),_=p(),v=m(),[y,b]=(0,Q.useState)(!1),S=a.LoadBalancers?.[0];if(!S?.LoadBalancerArn)return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(n,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`Load balancer not found.`})]});let w=async()=>{try{await f.mutateAsync(r),i({to:`/ec2/describe-load-balancers`})}finally{b(!1)}},E=l.Subnets??[],A=e=>{let t=E.find(t=>t.SubnetId===e);if(!t)return e;let n=T(t.Tags),r=t.CidrBlock?` (${t.CidrBlock})`:``;return n?`${e} — ${n}${r}`:`${e}${r}`},j=o.Attributes??[],M=s?.TagDescriptions?.find(e=>e.ResourceArn===r)?.Tags??[],P=(S.SecurityGroups??[]).filter(e=>e!==void 0),F=(u.SecurityGroups??[]).filter(e=>e.VpcId===S.VpcId),I=S.Type===`network`;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(n,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),f.error&&(0,$.jsx)(e,{error:f.error,msg:`Failed to delete load balancer`}),(0,$.jsxs)(`div`,{className:`space-y-6`,children:[(0,$.jsx)(ae,{actions:(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsxs)(x,{onClick:()=>b(!0),size:`sm`,variant:`destructive`,children:[(0,$.jsx)(c,{className:`size-4`}),`Delete`]}),(0,$.jsx)(le,{state:S.State?.Code})]}),subtitle:`Load Balancer Details`,title:S.LoadBalancerName??S.LoadBalancerArn}),(0,$.jsxs)(Se,{defaultValue:`overview`,children:[(0,$.jsxs)(ve,{children:[(0,$.jsx)(_e,{value:`overview`,children:`Overview`}),(0,$.jsx)(_e,{value:`listeners`,children:`Listeners`}),!I&&(0,$.jsx)(_e,{value:`security-groups`,children:`Security groups`}),(0,$.jsx)(_e,{value:`attributes`,children:`Attributes`}),(0,$.jsx)(_e,{value:`tags`,children:`Tags`})]}),(0,$.jsxs)(be,{value:`overview`,children:[(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Load balancer`}),(0,$.jsxs)(X.Content,{children:[(0,$.jsx)(Z,{label:`ARN`,value:S.LoadBalancerArn}),(0,$.jsx)(Z,{label:`DNS name`,value:S.DNSName}),(0,$.jsx)(Z,{label:`State`,value:S.State?.Reason?`${S.State.Code} — ${S.State.Reason}`:S.State?.Code}),(0,$.jsx)(Z,{label:`Type`,value:S.Type}),(0,$.jsx)(Z,{label:`Scheme`,value:S.Scheme}),(0,$.jsx)(Z,{label:`IP address type`,value:S.IpAddressType}),(0,$.jsx)(Z,{label:`VPC`,value:S.VpcId}),(0,$.jsx)(Z,{label:`Created at`,value:D(S.CreatedTime)})]})]}),(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Availability zones`}),(0,$.jsx)(X.Content,{children:(S.AvailabilityZones??[]).map(e=>(0,$.jsx)(Z,{label:e.ZoneName??`—`,value:e.SubnetId?A(e.SubnetId):void 0},`${e.ZoneName}-${e.SubnetId}`))})]}),(S.SecurityGroups??[]).length>0&&(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Security groups`}),(0,$.jsx)(X.Content,{children:(S.SecurityGroups??[]).map(e=>(0,$.jsx)(Z,{label:`Security group`,value:e},e))})]})]}),(0,$.jsx)(be,{value:`listeners`,children:(0,$.jsx)(qe,{lbType:I?`network`:`application`,loadBalancerArn:r,vpcId:S.VpcId})}),!I&&(0,$.jsx)(be,{value:`security-groups`,children:(0,$.jsx)(Ze,{available:F,current:P,error:v.error,isPending:v.isPending,isSuccess:v.isSuccess,onSubmit:e=>v.mutate({loadBalancerArn:r,securityGroupIds:e})})}),(0,$.jsx)(be,{value:`attributes`,children:(0,$.jsx)(ye,{attributes:j,error:g.error,isPending:g.isPending,isSuccess:g.isSuccess,onSubmit:e=>{g.mutate({loadBalancerArn:r,attributes:e})},specs:xe})}),(0,$.jsx)(be,{value:`tags`,children:(0,$.jsx)(ge,{error:_.error,isPending:_.isPending,isSuccess:_.isSuccess,onSubmit:e=>_.mutate({resourceArn:r,tags:e,initialKeys:M.map(e=>e.Key??``).filter(e=>e.length>0)}),tags:M})})]})]}),(0,$.jsx)(ce,{description:`Are you sure you want to delete load balancer "${S.LoadBalancerName??S.LoadBalancerArn}"? This action cannot be undone.`,isPending:f.isPending,onConfirm:w,onOpenChange:b,open:y,title:`Delete load balancer`})]})}function $e(){let e=(0,we.c)(2),{id:t}=P.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,$.jsx)(Qe,{arn:n}),e[0]=n,e[1]=r),r}export{$e as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as o,t as s}from"./select.js";import{t as c}from"./trash-2.js";import{t as l}from"./certificate-import-dialog.js";import{_ as u,a as d,d as f,f as p,g as m,h,o as g,r as _,s as v,t as y,u as b}from"./elbv2.js";import{Bs as x,G as S,H as C,I as w,L as T,Lo as E,Oa as D,Oo as O,Po as k,R as A,St as j,V as M,bs as N,gs as P,ns as F,o as I,ps as ee,q as te,vt as L,xs as R,z}from"./index.js";import{a as ne,i as B,n as re,r as V,t as H}from"./zod.js";import{t as U}from"./page-heading.js";import{a as W,r as ie,t as G}from"./field.js";import{a as K,i as q,l as J,n as Y,o as ae,r as oe,s as se,t as ce}from"./alert-dialog.js";import{t as le}from"./delete-confirmation-dialog.js";import{n as X,t as Z}from"./detail-row.js";import{t as ue}from"./state-badge.js";import{c as de,i as fe,n as pe,o as me,s as he,t as ge}from"./elbv22.js";import{a as _e,i as ve,n as ye,o as be,r as xe,s as Se,t as Ce}from"./tabs.js";var we=F(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),Te=ee(),Q=x(R(),1),$=N(),Ee=80,De=443;function Oe(e){let t=e.CertificateArn?.split(`/`).pop()??e.CertificateArn??``;return e.DomainName?`${e.DomainName} · ${t}`:t}function ke(e){let t=(0,Te.c)(59),{form:n,protocols:i,targetGroups:c,certificates:u,sslPolicies:d}=e,f;t[0]===u?f=t[1]:(f=u===void 0?[]:u,t[0]=u,t[1]=f);let p=f,m;t[2]===d?m=t[3]:(m=d===void 0?[]:d,t[2]=d,t[3]=m);let h=m,{control:g,register:_,getValues:v,setValue:y,formState:b}=n,{errors:x}=b,[S,C]=(0,Q.useState)(!1),w;t[4]===g?w=t[5]:(w={control:g,name:`protocol`},t[4]=g,t[5]=w);let T=ne(w),E=T===`HTTPS`,k;t[6]===T?k=t[7]:(k=he(T),t[6]=T,t[7]=k);let A=k,j;t[8]!==v||t[9]!==y?(j=e=>{if(!e)return;let t=v(`port`);he(e)?(t===Ee&&y(`port`,De),e===`HTTPS`?v(`sslPolicy`)||y(`sslPolicy`,ge):y(`sslPolicy`,void 0)):(t===De&&y(`port`,Ee),y(`certificateArn`,void 0),y(`sslPolicy`,void 0))},t[8]=v,t[9]=y,t[10]=j):j=t[10];let M=j,N;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),t[11]=N):N=t[11];let P;t[12]!==M||t[13]!==i?(P=e=>{let{field:t}=e;return(0,$.jsxs)(s,{onValueChange:e=>{t.onChange(e),M(e)},value:t.value,children:[(0,$.jsx)(o,{className:`w-full`,id:`listener-protocol`,children:(0,$.jsx)(r,{})}),(0,$.jsx)(a,{children:i.map(Ne)})]})},t[12]=M,t[13]=i,t[14]=P):P=t[14];let F;t[15]!==g||t[16]!==P?(F=(0,$.jsxs)(G,{children:[N,(0,$.jsx)(re,{control:g,name:`protocol`,render:P})]}),t[15]=g,t[16]=P,t[17]=F):F=t[17];let I;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),t[18]=I):I=t[18];let ee=!!x.port,te=A?`443`:`80`,L;t[19]===_?L=t[20]:(L=_(`port`,{valueAsNumber:!0}),t[19]=_,t[20]=L);let R;t[21]!==ee||t[22]!==te||t[23]!==L?(R=(0,$.jsx)(D,{"aria-invalid":ee,id:`listener-port`,inputMode:`numeric`,placeholder:te,type:`number`,...L}),t[21]=ee,t[22]=te,t[23]=L,t[24]=R):R=t[24];let z;t[25]===x.port?z=t[26]:(z=(0,$.jsx)(ie,{errors:[x.port]}),t[25]=x.port,t[26]=z);let B;t[27]!==R||t[28]!==z?(B=(0,$.jsxs)(G,{children:[I,R,z]}),t[27]=R,t[28]=z,t[29]=B):B=t[29];let V;t[30]!==p||t[31]!==g||t[32]!==x.certificateArn||t[33]!==S||t[34]!==E||t[35]!==A||t[36]!==y||t[37]!==h?(V=A&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-certificate`,children:`Certificate`})}),(0,$.jsx)(re,{control:g,name:`certificateArn`,render:e=>{let{field:t}=e;return(0,$.jsxs)(s,{onValueChange:t.onChange,value:t.value??``,children:[(0,$.jsx)(o,{"aria-invalid":!!x.certificateArn,className:`w-full`,id:`listener-certificate`,children:(0,$.jsx)(r,{placeholder:`Select certificate`})}),(0,$.jsx)(a,{children:p.map(Me)})]})}}),(0,$.jsx)(ie,{errors:[x.certificateArn]}),(0,$.jsxs)(`div`,{className:`mt-1 flex items-center justify-between`,children:[p.length===0&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No certificates imported yet.`}),(0,$.jsx)(O,{className:`ml-auto`,onClick:()=>C(!0),size:`sm`,type:`button`,variant:`ghost`,children:`Import certificate…`})]})]}),E&&(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-ssl-policy`,children:`Security policy`})}),(0,$.jsx)(re,{control:g,name:`sslPolicy`,render:e=>{let{field:t}=e;return(0,$.jsxs)(s,{onValueChange:t.onChange,value:t.value??`ELBSecurityPolicy-2016-08`,children:[(0,$.jsx)(o,{className:`w-full`,id:`listener-ssl-policy`,children:(0,$.jsx)(r,{})}),(0,$.jsx)(a,{children:h.map(je)})]})}})]}),(0,$.jsx)(l,{onImported:e=>y(`certificateArn`,e,{shouldValidate:!0}),onOpenChange:C,open:S})]}),t[30]=p,t[31]=g,t[32]=x.certificateArn,t[33]=S,t[34]=E,t[35]=A,t[36]=y,t[37]=h,t[38]=V):V=t[38];let H;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-default-tg`,children:`Default target group`})}),t[39]=H):H=t[39];let U;t[40]!==x.defaultTargetGroupArn||t[41]!==c?(U=e=>{let{field:t}=e;return(0,$.jsxs)(s,{onValueChange:t.onChange,value:t.value??``,children:[(0,$.jsx)(o,{"aria-invalid":!!x.defaultTargetGroupArn,className:`w-full`,id:`listener-default-tg`,children:(0,$.jsx)(r,{placeholder:`Select target group`})}),(0,$.jsx)(a,{children:c.map(Ae)})]})},t[40]=x.defaultTargetGroupArn,t[41]=c,t[42]=U):U=t[42];let K;t[43]!==g||t[44]!==U?(K=(0,$.jsx)(re,{control:g,name:`defaultTargetGroupArn`,render:U}),t[43]=g,t[44]=U,t[45]=K):K=t[45];let q;t[46]===x.defaultTargetGroupArn?q=t[47]:(q=(0,$.jsx)(ie,{errors:[x.defaultTargetGroupArn]}),t[46]=x.defaultTargetGroupArn,t[47]=q);let J;t[48]===c.length?J=t[49]:(J=c.length===0&&(0,$.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups available in this VPC. Create one first.`}),t[48]=c.length,t[49]=J);let Y;t[50]!==K||t[51]!==q||t[52]!==J?(Y=(0,$.jsxs)(G,{children:[H,K,q,J]}),t[50]=K,t[51]=q,t[52]=J,t[53]=Y):Y=t[53];let ae;return t[54]!==F||t[55]!==B||t[56]!==V||t[57]!==Y?(ae=(0,$.jsxs)($.Fragment,{children:[F,B,V,Y]}),t[54]=F,t[55]=B,t[56]=V,t[57]=Y,t[58]=ae):ae=t[58],ae}function Ae(e){return(0,$.jsxs)(i,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn)}function je(e){return(0,$.jsx)(i,{value:e.Name??``,children:e.Name},e.Name)}function Me(e){return(0,$.jsx)(i,{value:e.CertificateArn??``,children:Oe(e)},e.CertificateArn)}function Ne(e){return(0,$.jsx)(i,{value:e,children:e},e)}function Pe({listenerArn:n,targetGroups:r}){let{data:i}=t(w(n)),a=_(),o=p(),s=v(),[l,u]=(0,Q.useState)(!1),[d,f]=(0,Q.useState)(),[m,h]=(0,Q.useState)(),g=i.Rules??[],y=new Map;for(let e of r)e.TargetGroupArn&&e.TargetGroupName&&y.set(e.TargetGroupArn,e.TargetGroupName);return(0,$.jsxs)(`div`,{className:`space-y-3`,children:[a.error&&(0,$.jsx)(e,{error:a.error,msg:`Failed to create rule`}),o.error&&(0,$.jsx)(e,{error:o.error,msg:`Failed to modify rule`}),s.error&&(0,$.jsx)(e,{error:s.error,msg:`Failed to delete rule`}),(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[g.length,` rule`,g.length===1?``:`s`,` (including default)`]}),(0,$.jsx)(O,{onClick:()=>u(!0),size:`sm`,children:`Add rule`})]}),(0,$.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,$.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,$.jsx)(`thead`,{children:(0,$.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Priority`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Conditions`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Forward to`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(`tbody`,{children:g.map(e=>(0,$.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Priority}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:Fe(e.Conditions,e.IsDefault===!0)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:Le(e,y)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-right`,children:e.IsDefault===!0?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Edit via listener`}):(0,$.jsxs)(`div`,{className:`flex justify-end gap-1`,children:[(0,$.jsx)(O,{"aria-label":`Edit rule ${e.Priority}`,onClick:()=>f(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(we,{className:`size-4`})}),(0,$.jsx)(O,{"aria-label":`Delete rule ${e.Priority}`,onClick:()=>h(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(c,{className:`size-4`})})]})})]},e.RuleArn??e.Priority??`default`))})]})}),(0,$.jsx)(ze,{isPending:a.isPending,mode:`add`,onOpenChange:u,onSubmit:async e=>{try{await a.mutateAsync({listenerArn:n,priority:e.priority,conditions:e.conditions.map(Re),forwardTargetGroupArn:e.forwardTargetGroupArn}),u(!1)}catch{}},open:l,targetGroups:r}),(0,$.jsx)(ze,{initialRule:d,isPending:o.isPending,mode:`edit`,onOpenChange:e=>!e&&f(void 0),onSubmit:async e=>{if(d?.RuleArn)try{await o.mutateAsync({ruleArn:d.RuleArn,listenerArn:n,conditions:e.conditions.map(Re),forwardTargetGroupArn:e.forwardTargetGroupArn}),f(void 0)}catch{}},open:d!==void 0,targetGroups:r}),(0,$.jsx)(le,{description:m?`Delete rule with priority ${m.Priority}? This cannot be undone.`:``,isPending:s.isPending,onConfirm:async()=>{if(m?.RuleArn)try{await s.mutateAsync({ruleArn:m.RuleArn,listenerArn:n})}finally{h(void 0)}},onOpenChange:e=>!e&&h(void 0),open:m!==void 0,title:`Delete rule`})]})}function Fe(e,t){return t?`default`:!e||e.length===0?`—`:e.map(e=>{let t=Ie(e);return`${e.Field}: ${t.join(`, `)}`}).join(` AND `)}function Ie(e){if(e.Field===void 0)return e.Values??[];switch(e.Field){case`host-header`:return e.HostHeaderConfig?.Values??e.Values??[];case`path-pattern`:return e.PathPatternConfig?.Values??e.Values??[];case`http-header`:{let t=e.HttpHeaderConfig?.HttpHeaderName??`?`;return(e.HttpHeaderConfig?.Values??[]).map(e=>`${t}=${e}`)}case`http-request-method`:return e.HttpRequestMethodConfig?.Values??[];case`source-ip`:return e.SourceIpConfig?.Values??[];case`query-string`:return(e.QueryStringConfig?.Values??[]).map(e=>e.Key?`${e.Key}=${e.Value??``}`:e.Value??``);default:return e.Values??[]}}function Le(e,t){let n=e.Actions?.[0];return n?n.Type===`forward`&&n.TargetGroupArn?t.get(n.TargetGroupArn)??n.TargetGroupArn:n.Type??`—`:`—`}function Re(e){let t=e.rawValues.split(/[\n,]/).map(e=>e.trim()).filter(e=>e.length>0);return e.field===`query-string`?{field:e.field,values:[],queryStringPairs:t.map(e=>{let t=e.indexOf(`=`);return t===-1?{value:e}:{key:e.slice(0,t),value:e.slice(t+1)}})}:{field:e.field,values:t,httpHeaderName:e.httpHeaderName}}function ze({open:e,onOpenChange:t,onSubmit:n,isPending:c,targetGroups:l,mode:u,initialRule:d}){let f=[{field:`path-pattern`,rawValues:``}],p=B({resolver:H(fe),defaultValues:{priority:1,conditions:f,forwardTargetGroupArn:``}}),{fields:m,append:h,remove:g}=V({control:p.control,name:`conditions`});(0,Q.useEffect)(()=>{if(u===`add`){e||p.reset({priority:1,conditions:f,forwardTargetGroupArn:``});return}if(!d)return;let t=Number(d.Priority??1),n=d.Conditions?.map(e=>We(e))??f;p.reset({priority:Number.isFinite(t)?t:1,conditions:n.length>0?n:f,forwardTargetGroupArn:d.Actions?.[0]?.TargetGroupArn??``})},[d,e,u]);let _=p.handleSubmit(n);return(0,$.jsx)(ce,{onOpenChange:t,open:e,children:(0,$.jsxs)(q,{className:`grid-cols-[minmax(0,1fr)]`,style:{maxWidth:`40rem`,width:`calc(100vw - 2rem)`},children:[(0,$.jsxs)(se,{children:[(0,$.jsx)(J,{children:u===`add`?`Add rule`:`Edit rule`}),(0,$.jsx)(K,{children:`Routing rules match incoming requests and forward them to a target group. Rules evaluate in priority order; the listener default applies when no rule matches.`})]}),(0,$.jsxs)(`form`,{className:`min-w-0 space-y-4`,onSubmit:e=>{e.preventDefault(),_()},children:[(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`rule-priority`,children:`Priority`})}),(0,$.jsx)(D,{"aria-invalid":!!p.formState.errors.priority,id:`rule-priority`,inputMode:`numeric`,type:`number`,...p.register(`priority`,{valueAsNumber:!0})}),(0,$.jsx)(ie,{errors:[p.formState.errors.priority]})]}),(0,$.jsxs)(`div`,{className:`space-y-3`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsx)(W,{children:`Conditions`}),(0,$.jsx)(O,{disabled:m.length>=5,onClick:()=>h({field:`path-pattern`,rawValues:``}),size:`sm`,type:`button`,variant:`outline`,children:`Add condition`})]}),m.map((e,t)=>(0,$.jsx)(Be,{form:p,index:t,onRemove:m.length>1?()=>g(t):void 0},e.id))]}),(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`rule-forward-tg`,children:`Forward to target group`})}),(0,$.jsx)(re,{control:p.control,name:`forwardTargetGroupArn`,render:({field:e})=>(0,$.jsxs)(s,{onValueChange:e.onChange,value:e.value??``,children:[(0,$.jsx)(o,{"aria-invalid":!!p.formState.errors.forwardTargetGroupArn,className:`w-full`,id:`rule-forward-tg`,children:(0,$.jsx)(r,{placeholder:`Select target group`})}),(0,$.jsx)(a,{children:l.map(e=>(0,$.jsxs)(i,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,$.jsx)(ie,{errors:[p.formState.errors.forwardTargetGroupArn]})]})]}),(0,$.jsxs)(ae,{children:[(0,$.jsx)(oe,{disabled:c,children:`Cancel`}),(0,$.jsx)(Y,{disabled:c,onClick:_,children:Ge(u,c)})]})]})})}function Be(e){let t=(0,Te.c)(54),{form:n,index:l,onRemove:u}=e,d,f,p,m,h,g,_,v,y,b;if(t[0]!==n||t[1]!==l||t[2]!==u){let e=n.watch(`conditions.${l}.field`);p=n.formState.errors.conditions?.[l],v=`space-y-2 rounded-md border p-3`;let x=`rule-cond-${l}-field`,S;t[13]===x?S=t[14]:(S=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:x,children:`Type`})}),t[13]=x,t[14]=S);let C=`conditions.${l}.field`,w;t[15]===l?w=t[16]:(w=e=>{let{field:t}=e;return(0,$.jsxs)(s,{onValueChange:t.onChange,value:t.value,children:[(0,$.jsx)(o,{className:`w-full`,id:`rule-cond-${l}-field`,children:(0,$.jsx)(r,{})}),(0,$.jsxs)(a,{children:[(0,$.jsx)(i,{value:`path-pattern`,children:`Path pattern`}),(0,$.jsx)(i,{value:`host-header`,children:`Host header`}),(0,$.jsx)(i,{value:`http-header`,children:`HTTP header`}),(0,$.jsx)(i,{value:`http-request-method`,children:`HTTP method`}),(0,$.jsx)(i,{value:`source-ip`,children:`Source IP CIDR`}),(0,$.jsx)(i,{value:`query-string`,children:`Query string`})]})]})},t[15]=l,t[16]=w);let T;t[17]!==n.control||t[18]!==C||t[19]!==w?(T=(0,$.jsx)(re,{control:n.control,name:C,render:w}),t[17]=n.control,t[18]=C,t[19]=w,t[20]=T):T=t[20];let E;t[21]!==T||t[22]!==S?(E=(0,$.jsxs)(`div`,{className:`flex-1`,children:[S,T]}),t[21]=T,t[22]=S,t[23]=E):E=t[23];let k;t[24]!==l||t[25]!==u?(k=u&&(0,$.jsx)(O,{"aria-label":`Remove condition ${l+1}`,className:`self-end`,onClick:u,size:`sm`,type:`button`,variant:`ghost`,children:(0,$.jsx)(c,{className:`size-4`})}),t[24]=l,t[25]=u,t[26]=k):k=t[26],t[27]!==E||t[28]!==k?(y=(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[E,k]}),t[27]=E,t[28]=k,t[29]=y):y=t[29],b=e===`http-header`&&(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`rule-cond-${l}-hdr-name`,children:`Header name`})}),(0,$.jsx)(D,{"aria-invalid":!!p?.httpHeaderName,id:`rule-cond-${l}-hdr-name`,placeholder:`X-Tenant`,...n.register(`conditions.${l}.httpHeaderName`)}),(0,$.jsx)(ie,{errors:[p?.httpHeaderName]})]}),f=G;let A=`rule-cond-${l}-values`,j;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`(comma or newline separated, max 5)`}),t[30]=j):j=t[30],t[31]===A?_=t[32]:(_=(0,$.jsx)(W,{children:(0,$.jsxs)(`label`,{htmlFor:A,children:[`Values`,` `,j]})}),t[31]=A,t[32]=_),d=D,m=!!p?.rawValues,h=`rule-cond-${l}-values`,g=Ve(e),t[0]=n,t[1]=l,t[2]=u,t[3]=d,t[4]=f,t[5]=p,t[6]=m,t[7]=h,t[8]=g,t[9]=_,t[10]=v,t[11]=y,t[12]=b}else d=t[3],f=t[4],p=t[5],m=t[6],h=t[7],g=t[8],_=t[9],v=t[10],y=t[11],b=t[12];let x;t[33]!==n||t[34]!==l?(x=n.register(`conditions.${l}.rawValues`),t[33]=n,t[34]=l,t[35]=x):x=t[35];let S;t[36]!==d||t[37]!==m||t[38]!==h||t[39]!==g||t[40]!==x?(S=(0,$.jsx)(d,{"aria-invalid":m,id:h,placeholder:g,...x}),t[36]=d,t[37]=m,t[38]=h,t[39]=g,t[40]=x,t[41]=S):S=t[41];let C=p?.rawValues,w;t[42]===C?w=t[43]:(w=(0,$.jsx)(ie,{errors:[C]}),t[42]=C,t[43]=w);let T;t[44]!==f||t[45]!==w||t[46]!==_||t[47]!==S?(T=(0,$.jsxs)(f,{children:[_,S,w]}),t[44]=f,t[45]=w,t[46]=_,t[47]=S,t[48]=T):T=t[48];let E;return t[49]!==T||t[50]!==v||t[51]!==y||t[52]!==b?(E=(0,$.jsxs)(`div`,{className:v,children:[y,b,T]}),t[49]=T,t[50]=v,t[51]=y,t[52]=b,t[53]=E):E=t[53],E}function Ve(e){switch(e){case`path-pattern`:return`/api/*`;case`host-header`:return`*.example.com`;case`http-header`:return`acme`;case`http-request-method`:return`GET, POST`;case`source-ip`:return`10.0.0.0/8`;case`query-string`:return`key=value`;default:return``}}var He=new Set([`host-header`,`path-pattern`,`http-header`,`http-request-method`,`source-ip`,`query-string`]);function Ue(e){return e!==void 0&&He.has(e)}function We(e){let t=Ie(e);return{field:Ue(e.Field)?e.Field:`path-pattern`,httpHeaderName:e.HttpHeaderConfig?.HttpHeaderName,rawValues:t.join(`, `)}}function Ge(e,t){return t?e===`add`?`Adding…`:`Saving…`:e===`add`?`Add rule`:`Save changes`}function Ke(e){return{protocol:me(e),port:80,defaultTargetGroupArn:``}}function qe(e){if(e.Protocol!==`HTTPS`)return`—`;let t=e.Certificates?.[0]?.CertificateArn?.split(`/`).pop(),n=e.SslPolicy;return t&&n?`${n} · ${t}`:n??t??`—`}function Je({loadBalancerArn:n,vpcId:r,lbType:i}){let a=de(i),{data:o}=t(T(n)),{data:s}=t(S),{data:l}=t(te),{data:u}=t(M),f=y(),p=d(),m=b(),[h,g]=(0,Q.useState)(!1),[_,v]=(0,Q.useState)(),[x,C]=(0,Q.useState)(),[w,E]=(0,Q.useState)(),D=o.Listeners??[],k=s.TargetGroups??[],A=k.filter(e=>e.VpcId===r),j=l.CertificateSummaryList??[],N=u.SslPolicies??[],P=new Map;for(let e of k)e.TargetGroupArn&&e.TargetGroupName&&P.set(e.TargetGroupArn,e.TargetGroupName);let F=e=>{let t=e.DefaultActions?.[0];if(!t)return`—`;if(t.Type===`forward`&&t.TargetGroupArn){let e=P.get(t.TargetGroupArn);return e?`forward → ${e}`:`forward → ${t.TargetGroupArn}`}return t.Type??`—`};return(0,$.jsxs)(`div`,{className:`space-y-3`,children:[f.error&&(0,$.jsx)(e,{error:f.error,msg:`Failed to create listener`}),m.error&&(0,$.jsx)(e,{error:m.error,msg:`Failed to modify listener`}),p.error&&(0,$.jsx)(e,{error:p.error,msg:`Failed to delete listener`}),(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[D.length,` listener`,D.length===1?``:`s`]}),(0,$.jsx)(O,{onClick:()=>g(!0),size:`sm`,children:`Add listener`})]}),D.length===0?(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No listeners configured.`}):(0,$.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,$.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,$.jsx)(`thead`,{children:(0,$.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Protocol`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`TLS`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Default action`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Listener ARN`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(`tbody`,{children:D.map(e=>{let t=e.ListenerArn??``,n=w===t;return(0,$.jsxs)(Q.Fragment,{children:[(0,$.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Protocol}),(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Port}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:qe(e)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:F(e)}),(0,$.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,$.jsxs)(`div`,{className:`flex justify-end gap-1`,children:[(0,$.jsx)(O,{"aria-label":`${n?`Hide`:`Show`} rules for listener ${e.Protocol}:${e.Port}`,onClick:()=>E(n?void 0:t),size:`sm`,variant:`ghost`,children:n?`Hide rules`:`Rules`}),(0,$.jsx)(O,{"aria-label":`Edit listener ${e.Protocol}:${e.Port}`,onClick:()=>v(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(we,{className:`size-4`})}),(0,$.jsx)(O,{"aria-label":`Delete listener ${e.Protocol}:${e.Port}`,onClick:()=>C(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(c,{className:`size-4`})})]})})]}),n&&t&&(0,$.jsx)(`tr`,{className:`border-b bg-muted/30 last:border-0`,children:(0,$.jsx)(`td`,{className:`px-4 py-3`,colSpan:6,children:(0,$.jsx)(Pe,{listenerArn:t,targetGroups:A})})})]},t)})})]})}),(0,$.jsx)(Ye,{certificates:j,isPending:f.isPending,lbType:i,onOpenChange:g,onSubmit:async e=>{try{await f.mutateAsync({loadBalancerArn:n,protocol:e.protocol,port:e.port,defaultTargetGroupArn:e.defaultTargetGroupArn,certificateArn:e.certificateArn,sslPolicy:e.sslPolicy}),g(!1)}catch{}},open:h,protocols:a,sslPolicies:N,targetGroups:A}),(0,$.jsx)(Xe,{certificates:j,isPending:m.isPending,listener:_,onOpenChange:e=>!e&&v(void 0),onSubmit:async e=>{if(_?.ListenerArn)try{await m.mutateAsync({listenerArn:_.ListenerArn,loadBalancerArn:n,protocol:e.protocol,port:e.port,defaultTargetGroupArn:e.defaultTargetGroupArn,certificateArn:e.certificateArn,sslPolicy:e.sslPolicy}),v(void 0)}catch{}},protocols:a,sslPolicies:N,targetGroups:A}),(0,$.jsx)(le,{description:x?`Delete listener ${x.Protocol}:${x.Port}? This cannot be undone.`:``,isPending:p.isPending,onConfirm:async()=>{if(x?.ListenerArn)try{await p.mutateAsync(x.ListenerArn)}finally{C(void 0)}},onOpenChange:e=>!e&&C(void 0),open:x!==void 0,title:`Delete listener`})]})}function Ye(e){let t=(0,Te.c)(42),{open:n,onOpenChange:r,lbType:i,protocols:a,targetGroups:o,certificates:s,sslPolicies:c,isPending:l,onSubmit:u}=e,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=H(pe),t[0]=d):d=t[0];let f;t[1]===i?f=t[2]:(f=Ke(i),t[1]=i,t[2]=f);let p;t[3]===f?p=t[4]:(p={resolver:d,defaultValues:f},t[3]=f,t[4]=p);let m=B(p),h,g;t[5]!==m||t[6]!==i||t[7]!==n?(h=()=>{n||m.reset(Ke(i))},g=[n,m,i],t[5]=m,t[6]=i,t[7]=n,t[8]=h,t[9]=g):(h=t[8],g=t[9]),(0,Q.useEffect)(h,g);let _;t[10]!==m||t[11]!==u?(_=m.handleSubmit(u),t[10]=m,t[11]=u,t[12]=_):_=t[12];let v=_,y;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(y={maxWidth:`32rem`,width:`calc(100vw - 2rem)`},t[13]=y):y=t[13];let b;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsxs)(se,{children:[(0,$.jsx)(J,{children:`Add listener`}),(0,$.jsx)(K,{children:`Listeners forward incoming traffic to a default target group.`})]}),t[14]=b):b=t[14];let x;t[15]===v?x=t[16]:(x=e=>{e.preventDefault(),v()},t[15]=v,t[16]=x);let S;t[17]!==s||t[18]!==m||t[19]!==a||t[20]!==c||t[21]!==o?(S=(0,$.jsx)(ke,{certificates:s,form:m,protocols:a,sslPolicies:c,targetGroups:o}),t[17]=s,t[18]=m,t[19]=a,t[20]=c,t[21]=o,t[22]=S):S=t[22];let C;t[23]!==S||t[24]!==x?(C=(0,$.jsx)(`form`,{className:`min-w-0 space-y-4`,onSubmit:x,children:S}),t[23]=S,t[24]=x,t[25]=C):C=t[25];let w;t[26]===l?w=t[27]:(w=(0,$.jsx)(oe,{disabled:l,children:`Cancel`}),t[26]=l,t[27]=w);let T=l?`Adding…`:`Add listener`,E;t[28]!==v||t[29]!==l||t[30]!==T?(E=(0,$.jsx)(Y,{disabled:l,onClick:v,children:T}),t[28]=v,t[29]=l,t[30]=T,t[31]=E):E=t[31];let D;t[32]!==w||t[33]!==E?(D=(0,$.jsxs)(ae,{children:[w,E]}),t[32]=w,t[33]=E,t[34]=D):D=t[34];let O;t[35]!==C||t[36]!==D?(O=(0,$.jsxs)(q,{className:`grid-cols-[minmax(0,1fr)]`,style:y,children:[b,C,D]}),t[35]=C,t[36]=D,t[37]=O):O=t[37];let k;return t[38]!==r||t[39]!==n||t[40]!==O?(k=(0,$.jsx)(ce,{onOpenChange:r,open:n,children:O}),t[38]=r,t[39]=n,t[40]=O,t[41]=k):k=t[41],k}function Xe(e){let t=(0,Te.c)(38),{listener:n,onOpenChange:r,protocols:i,targetGroups:a,certificates:o,sslPolicies:s,isPending:c,onSubmit:l}=e,u=n!==void 0,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d={resolver:H(pe),defaultValues:{protocol:`HTTP`,port:80,defaultTargetGroupArn:``}},t[0]=d):d=t[0];let f=B(d),p,m;t[1]!==f||t[2]!==n||t[3]!==i?(p=()=>{if(!n)return;let e=i.find(e=>e===n.Protocol)??i[0]??`HTTP`,t=he(e);f.reset({protocol:e,port:n.Port??80,defaultTargetGroupArn:n.DefaultActions?.[0]?.TargetGroupArn??``,certificateArn:t?n.Certificates?.[0]?.CertificateArn:void 0,sslPolicy:e===`HTTPS`?n.SslPolicy:void 0})},m=[n,f,i],t[1]=f,t[2]=n,t[3]=i,t[4]=p,t[5]=m):(p=t[4],m=t[5]),(0,Q.useEffect)(p,m);let h;t[6]!==f||t[7]!==l?(h=f.handleSubmit(l),t[6]=f,t[7]=l,t[8]=h):h=t[8];let g=h,_;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(_={maxWidth:`32rem`,width:`calc(100vw - 2rem)`},t[9]=_):_=t[9];let v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsxs)(se,{children:[(0,$.jsx)(J,{children:`Edit listener`}),(0,$.jsx)(K,{children:`Update port, protocol, or default target group. Changes apply without dropping the listener.`})]}),t[10]=v):v=t[10];let y;t[11]===g?y=t[12]:(y=e=>{e.preventDefault(),g()},t[11]=g,t[12]=y);let b;t[13]!==o||t[14]!==f||t[15]!==i||t[16]!==s||t[17]!==a?(b=(0,$.jsx)(ke,{certificates:o,form:f,protocols:i,sslPolicies:s,targetGroups:a}),t[13]=o,t[14]=f,t[15]=i,t[16]=s,t[17]=a,t[18]=b):b=t[18];let x;t[19]!==y||t[20]!==b?(x=(0,$.jsx)(`form`,{className:`min-w-0 space-y-4`,onSubmit:y,children:b}),t[19]=y,t[20]=b,t[21]=x):x=t[21];let S;t[22]===c?S=t[23]:(S=(0,$.jsx)(oe,{disabled:c,children:`Cancel`}),t[22]=c,t[23]=S);let C=c?`Saving…`:`Save changes`,w;t[24]!==g||t[25]!==c||t[26]!==C?(w=(0,$.jsx)(Y,{disabled:c,onClick:g,children:C}),t[24]=g,t[25]=c,t[26]=C,t[27]=w):w=t[27];let T;t[28]!==S||t[29]!==w?(T=(0,$.jsxs)(ae,{children:[S,w]}),t[28]=S,t[29]=w,t[30]=T):T=t[30];let E;t[31]!==T||t[32]!==x?(E=(0,$.jsxs)(q,{className:`grid-cols-[minmax(0,1fr)]`,style:_,children:[v,x,T]}),t[31]=T,t[32]=x,t[33]=E):E=t[33];let D;return t[34]!==r||t[35]!==u||t[36]!==E?(D=(0,$.jsx)(ce,{onOpenChange:r,open:u,children:E}),t[34]=r,t[35]=u,t[36]=E,t[37]=D):D=t[37],D}function Ze(e,t){if(e.length!==t.length)return!1;let n=new Set(t);return e.every(e=>n.has(e))}function Qe(e){let t=(0,Te.c)(46),{available:n,current:r,onSubmit:i,isPending:a,error:o,isSuccess:s}=e,c;t[0]===r?c=t[1]:(c=[...r],t[0]=r,t[1]=c);let l=c,[u,d]=(0,Q.useState)(l),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},t[2]=f):f=t[2];let p=f,m;t[3]===l?m=t[4]:(m=()=>d(l),t[3]=l,t[4]=m);let h=m,g;t[5]!==l||t[6]!==u?(g=Ze(u,l),t[5]=l,t[6]=u,t[7]=g):g=t[7];let _=!g,v=u.length===0,y;t[8]!==_||t[9]!==v||t[10]!==i||t[11]!==u?(y=e=>{e.preventDefault(),!(!_||v)&&i(u)},t[8]=_,t[9]=v,t[10]=i,t[11]=u,t[12]=y):y=t[12];let b;t[13]===o?b=t[14]:(b=o&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:o.message||`Failed to update security groups`}),t[13]=o,t[14]=b);let x;t[15]!==_||t[16]!==s?(x=s&&!_&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Security groups updated.`}),t[15]=_,t[16]=s,t[17]=x):x=t[17];let S;t[18]!==n||t[19]!==u?(S=n.length===0?(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No security groups in this VPC.`}):n.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,$.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:u.includes(e.GroupId??``),onChange:()=>p(e.GroupId??``),type:`checkbox`}),(0,$.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId)),t[18]=n,t[19]=u,t[20]=S):S=t[20];let C;t[21]===v?C=t[22]:(C=v&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`At least one security group is required.`}),t[21]=v,t[22]=C);let w;t[23]!==S||t[24]!==C?(w=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1 p-4`,children:[S,C]}),t[23]=S,t[24]=C,t[25]=w):w=t[25];let T=_?`Unsaved changes`:`No changes`,E;t[26]===T?E=t[27]:(E=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:T}),t[26]=T,t[27]=E);let D=a||!_,k;t[28]!==h||t[29]!==D?(k=(0,$.jsx)(O,{disabled:D,onClick:h,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[28]=h,t[29]=D,t[30]=k):k=t[30];let A=a||!_||v,j=a?`Saving…`:`Save changes`,M;t[31]!==A||t[32]!==j?(M=(0,$.jsx)(O,{disabled:A,size:`sm`,type:`submit`,children:j}),t[31]=A,t[32]=j,t[33]=M):M=t[33];let N;t[34]!==E||t[35]!==k||t[36]!==M?(N=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[E,k,M]}),t[34]=E,t[35]=k,t[36]=M,t[37]=N):N=t[37];let P;t[38]!==w||t[39]!==N?(P=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[w,N]}),t[38]=w,t[39]=N,t[40]=P):P=t[40];let F;return t[41]!==P||t[42]!==y||t[43]!==b||t[44]!==x?(F=(0,$.jsxs)(`form`,{onSubmit:y,children:[b,x,P]}),t[41]=P,t[42]=y,t[43]=b,t[44]=x,t[45]=F):F=t[45],F}function $e(e,t){if(e.length!==t.length)return!1;let n=new Set(t);return e.every(e=>n.has(e))}function et(e){let t=E(e.Tags),n=e.AvailabilityZone?` · ${e.AvailabilityZone}`:``,r=e.CidrBlock?` (${e.CidrBlock})`:``;return`${e.SubnetId}${t?` — ${t}`:``}${r}${n}`}function tt(e){let t=(0,Te.c)(47),{available:n,current:r,onSubmit:i,isPending:a,error:o,isSuccess:s}=e,c;t[0]===r?c=t[1]:(c=[...r],t[0]=r,t[1]=c);let l=c,[u,d]=(0,Q.useState)(l),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},t[2]=f):f=t[2];let p=f,m;t[3]===l?m=t[4]:(m=()=>d(l),t[3]=l,t[4]=m);let h=m,g;t[5]!==l||t[6]!==u?(g=$e(u,l),t[5]=l,t[6]=u,t[7]=g):g=t[7];let _=!g,v=u.length===0,y;t[8]!==_||t[9]!==v||t[10]!==i||t[11]!==u?(y=e=>{e.preventDefault(),!(!_||v)&&i(u)},t[8]=_,t[9]=v,t[10]=i,t[11]=u,t[12]=y):y=t[12];let b;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-amber-500 bg-amber-500/10 p-3 text-sm text-amber-700 dark:text-amber-400`,role:`note`,children:`Applying a subnet change re-homes the load balancer by relaunching its underlying system VM. Expect a brief data-plane interruption while it restarts.`}),t[13]=b):b=t[13];let x;t[14]===o?x=t[15]:(x=o&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:o.message||`Failed to update subnets`}),t[14]=o,t[15]=x);let S;t[16]!==_||t[17]!==s?(S=s&&!_&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Subnets updated.`}),t[16]=_,t[17]=s,t[18]=S):S=t[18];let C;t[19]!==n||t[20]!==u?(C=n.length===0?(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No subnets in this VPC.`}):n.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,$.jsx)(`input`,{"aria-label":`Subnet ${e.SubnetId}`,checked:u.includes(e.SubnetId??``),onChange:()=>p(e.SubnetId??``),type:`checkbox`}),(0,$.jsx)(`span`,{className:`font-mono`,children:et(e)})]},e.SubnetId)),t[19]=n,t[20]=u,t[21]=C):C=t[21];let w;t[22]===v?w=t[23]:(w=v&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`At least one subnet is required.`}),t[22]=v,t[23]=w);let T;t[24]!==w||t[25]!==C?(T=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1 p-4`,children:[C,w]}),t[24]=w,t[25]=C,t[26]=T):T=t[26];let E=_?`Unsaved changes`:`No changes`,D;t[27]===E?D=t[28]:(D=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:E}),t[27]=E,t[28]=D);let k=a||!_,A;t[29]!==h||t[30]!==k?(A=(0,$.jsx)(O,{disabled:k,onClick:h,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[29]=h,t[30]=k,t[31]=A):A=t[31];let j=a||!_||v,M=a?`Saving…`:`Save changes`,N;t[32]!==j||t[33]!==M?(N=(0,$.jsx)(O,{disabled:j,size:`sm`,type:`submit`,children:M}),t[32]=j,t[33]=M,t[34]=N):N=t[34];let P;t[35]!==D||t[36]!==A||t[37]!==N?(P=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[D,A,N]}),t[35]=D,t[36]=A,t[37]=N,t[38]=P):P=t[38];let F;t[39]!==T||t[40]!==P?(F=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[T,P]}),t[39]=T,t[40]=P,t[41]=F):F=t[41];let I;return t[42]!==F||t[43]!==y||t[44]!==x||t[45]!==S?(I=(0,$.jsxs)(`form`,{onSubmit:y,children:[b,x,S,F]}),t[42]=F,t[43]=y,t[44]=x,t[45]=S,t[46]=I):I=t[46],I}function nt({arn:r}){let i=P(),{data:a}=t(z(r)),{data:o}=t(A(r)),{data:s}=t(C([r])),{data:l}=t(j),{data:d}=t(L),p=g(),_=f(),v=u(),y=h(),b=m(),[x,S]=(0,Q.useState)(!1),w=a.LoadBalancers?.[0];if(!w?.LoadBalancerArn)return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(n,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`Load balancer not found.`})]});let T=async()=>{try{await p.mutateAsync(r),i({to:`/ec2/describe-load-balancers`})}finally{S(!1)}},D=l.Subnets??[],M=e=>{let t=D.find(t=>t.SubnetId===e);if(!t)return e;let n=E(t.Tags),r=t.CidrBlock?` (${t.CidrBlock})`:``;return n?`${e} — ${n}${r}`:`${e}${r}`},N=o.Attributes??[],F=s?.TagDescriptions?.find(e=>e.ResourceArn===r)?.Tags??[],I=(w.SecurityGroups??[]).filter(e=>e!==void 0),ee=(d.SecurityGroups??[]).filter(e=>e.VpcId===w.VpcId),te=D.filter(e=>e.VpcId===w.VpcId),R=(w.AvailabilityZones??[]).map(e=>e.SubnetId).filter(e=>e!==void 0),ne=w.Type===`network`;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(n,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),p.error&&(0,$.jsx)(e,{error:p.error,msg:`Failed to delete load balancer`}),(0,$.jsxs)(`div`,{className:`space-y-6`,children:[(0,$.jsx)(U,{actions:(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsxs)(O,{onClick:()=>S(!0),size:`sm`,variant:`destructive`,children:[(0,$.jsx)(c,{className:`size-4`}),`Delete`]}),(0,$.jsx)(ue,{state:w.State?.Code})]}),subtitle:`Load Balancer Details`,title:w.LoadBalancerName??w.LoadBalancerArn}),(0,$.jsxs)(Ce,{defaultValue:`overview`,children:[(0,$.jsxs)(ye,{children:[(0,$.jsx)(ve,{value:`overview`,children:`Overview`}),(0,$.jsx)(ve,{value:`listeners`,children:`Listeners`}),(0,$.jsx)(ve,{value:`subnets`,children:`Subnets`}),!ne&&(0,$.jsx)(ve,{value:`security-groups`,children:`Security groups`}),(0,$.jsx)(ve,{value:`attributes`,children:`Attributes`}),(0,$.jsx)(ve,{value:`tags`,children:`Tags`})]}),(0,$.jsxs)(xe,{value:`overview`,children:[(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Load balancer`}),(0,$.jsxs)(X.Content,{children:[(0,$.jsx)(Z,{label:`ARN`,value:w.LoadBalancerArn}),(0,$.jsx)(Z,{label:`DNS name`,value:w.DNSName}),(0,$.jsx)(Z,{label:`State`,value:w.State?.Reason?`${w.State.Code} — ${w.State.Reason}`:w.State?.Code}),(0,$.jsx)(Z,{label:`Type`,value:w.Type}),(0,$.jsx)(Z,{label:`Scheme`,value:w.Scheme}),(0,$.jsx)(Z,{label:`IP address type`,value:w.IpAddressType}),(0,$.jsx)(Z,{label:`VPC`,value:w.VpcId}),(0,$.jsx)(Z,{label:`Created at`,value:k(w.CreatedTime)})]})]}),(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Availability zones`}),(0,$.jsx)(X.Content,{children:(w.AvailabilityZones??[]).map(e=>(0,$.jsx)(Z,{label:e.ZoneName??`—`,value:e.SubnetId?M(e.SubnetId):void 0},`${e.ZoneName}-${e.SubnetId}`))})]}),(w.SecurityGroups??[]).length>0&&(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Security groups`}),(0,$.jsx)(X.Content,{children:(w.SecurityGroups??[]).map(e=>(0,$.jsx)(Z,{label:`Security group`,value:e},e))})]})]}),(0,$.jsx)(xe,{value:`listeners`,children:(0,$.jsx)(Je,{lbType:ne?`network`:`application`,loadBalancerArn:r,vpcId:w.VpcId})}),(0,$.jsx)(xe,{value:`subnets`,children:(0,$.jsx)(tt,{available:te,current:R,error:b.error,isPending:b.isPending,isSuccess:b.isSuccess,onSubmit:e=>b.mutate({loadBalancerArn:r,subnetIds:e})})}),!ne&&(0,$.jsx)(xe,{value:`security-groups`,children:(0,$.jsx)(Qe,{available:ee,current:I,error:y.error,isPending:y.isPending,isSuccess:y.isSuccess,onSubmit:e=>y.mutate({loadBalancerArn:r,securityGroupIds:e})})}),(0,$.jsx)(xe,{value:`attributes`,children:(0,$.jsx)(be,{attributes:N,error:_.error,isPending:_.isPending,isSuccess:_.isSuccess,onSubmit:e=>{_.mutate({loadBalancerArn:r,attributes:e})},specs:Se})}),(0,$.jsx)(xe,{value:`tags`,children:(0,$.jsx)(_e,{error:v.error,isPending:v.isPending,isSuccess:v.isSuccess,onSubmit:e=>v.mutate({resourceArn:r,tags:e,initialKeys:F.map(e=>e.Key??``).filter(e=>e.length>0)}),tags:F})})]})]}),(0,$.jsx)(le,{description:`Are you sure you want to delete load balancer "${w.LoadBalancerName??w.LoadBalancerArn}"? This action cannot be undone.`,isPending:p.isPending,onConfirm:T,onOpenChange:S,open:x,title:`Delete load balancer`})]})}function rt(){let e=(0,Te.c)(2),{id:t}=I.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,$.jsx)(nt,{arn:n}),e[0]=n,e[1]=r),r}export{rt 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 1826a11b0..7a17c8455 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id7.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id7.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{E as i}from"./ec2.js";import{Do as a,Io as o,bs as s,hs as c,ms as l,s as u,ut as d,ys as f,zs as p}from"./index.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=p(s()),b=f();function x(){let{id:s}=u.useParams(),f=c(),{data:p}=t(d(s)),x=i(),[S,C]=(0,y.useState)(!1),w=p.NatGateways?.[0],T=async()=>{try{await x.mutateAsync(s),f({to:`/ec2/describe-nat-gateways`})}finally{C(!1)}};if(!w?.NatGatewayId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(n,{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=o(w.Tags),D=w.NatGatewayAddresses?.[0];return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(n,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),x.error&&(0,b.jsx)(e,{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)(a,{disabled:x.isPending,onClick:()=>C(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(r,{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)(l,{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)(l,{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)(l,{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{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{E as i}from"./ec2.js";import{Bs as a,Lo as o,Oo as s,bs as c,gs as l,hs as u,s as d,ut as f,xs as p}from"./index.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=a(p()),b=c();function x(){let{id:a}=d.useParams(),c=l(),{data:p}=t(f(a)),x=i(),[S,C]=(0,y.useState)(!1),w=p.NatGateways?.[0],T=async()=>{try{await x.mutateAsync(a),c({to:`/ec2/describe-nat-gateways`})}finally{C(!1)}};if(!w?.NatGatewayId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(n,{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=o(w.Tags),D=w.NatGatewayAddresses?.[0];return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(n,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),x.error&&(0,b.jsx)(e,{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)(s,{disabled:x.isPending,onClick:()=>C(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(r,{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)(u,{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)(u,{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)(u,{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 edd399668..db804ffb4 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id8.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id8.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{D as i}from"./ec2.js";import{Do as a,at as o,bs as s,c,ft as l,hs as u,ms as d,ys as f,zs as p}from"./index.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=p(s()),b=f();function x(){let{id:s}=c.useParams(),f=u(),{data:p}=t(l(s)),{data:x}=t(o),S=i(),[C,w]=(0,y.useState)(!1),T=p.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)(n,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),S.error&&(0,b.jsx)(e,{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)(a,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(r,{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)(d,{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),f({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)(n,{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{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{D as i}from"./ec2.js";import{Bs as a,Oo as o,at as s,bs as c,c as l,ft as u,gs as d,hs as f,xs as p}from"./index.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=a(p()),b=c();function x(){let{id:a}=l.useParams(),c=d(),{data:p}=t(u(a)),{data:x}=t(s),S=i(),[C,w]=(0,y.useState)(!1),T=p.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)(n,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),S.error&&(0,b.jsx)(e,{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)(o,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(r,{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)(f,{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),c({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)(n,{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 893ee6665..f5e3f2292 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id9.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id9.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as o,t as s}from"./select.js";import{t as c}from"./trash-2.js";import{O as ee,g as te,i as ne,k as re,z as l}from"./ec2.js";import{Da as u,Do as d,Io as f,St as p,bs as m,dt as ie,hs as h,ht as g,l as _,ms as v,st as y,ys as b,zs as x}from"./index.js";import{a as ae,i as S,n as C,t as w}from"./zod.js";import{t as T}from"./page-heading.js";import{a as E,r as D,t as O}from"./field.js";import{l as k,r as oe}from"./ec22.js";import{t as se}from"./delete-confirmation-dialog.js";import{n as A,t as j}from"./detail-row.js";import{t as M}from"./badge.js";var N=x(m()),P=b();function F(e){return e.GatewayId??e.NatGatewayId??e.NetworkInterfaceId??e.InstanceId??e.VpcPeeringConnectionId??`—`}function I(){let{id:m}=_.useParams(),b=h(),{data:x}=t(g(m)),{data:I}=t(y),{data:L}=t(ie),{data:R}=t(p),z=re(),B=te(),V=ee(),H=ne(),U=l(),[W,G]=(0,N.useState)(!1),K=x.RouteTables?.[0],q=S({resolver:w(k),defaultValues:{destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``}}),ce=ae({control:q.control,name:`targetType`}),J=S({resolver:w(oe),defaultValues:{subnetId:``}});if(!K?.RouteTableId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(n,{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=f(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),b({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)(n,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z.error&&(0,P.jsx)(e,{error:z.error,msg:`Failed to delete Route Table`}),(0,P.jsxs)(`div`,{className:`space-y-6`,children:[(0,P.jsx)(T,{actions:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(d,{disabled:Z||z.isPending,onClick:()=>G(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(c,{className:`size-4`}),`Delete`]}),Z&&(0,P.jsx)(M,{variant:`secondary`,children:`Main`})]}),subtitle:`Route Table Details`,title:X?`${K.RouteTableId} (${X})`:K.RouteTableId}),(0,P.jsxs)(A,{children:[(0,P.jsx)(A.Header,{children:`Route Table Information`}),(0,P.jsxs)(A.Content,{children:[(0,P.jsx)(j,{label:`Route Table ID`,value:K.RouteTableId}),(0,P.jsx)(j,{label:`Main`,value:Z?`Yes`:`No`}),(0,P.jsx)(j,{label:`VPC ID`,value:K.VpcId?(0,P.jsx)(v,{className:`text-primary hover:underline`,params:{id:K.VpcId},to:`/ec2/describe-vpcs/$id`,children:K.VpcId}):`—`}),(0,P.jsx)(j,{label:`Owner ID`,value:K.OwnerId??`—`})]})]}),(0,P.jsxs)(A,{children:[(0,P.jsx)(A.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)(d,{disabled:V.isPending,onClick:async()=>await V.mutateAsync({routeTableId:Y,destinationCidrBlock:r}),size:`sm`,variant:`ghost`,children:(0,P.jsx)(c,{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)(e,{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)(O,{children:[(0,P.jsx)(E,{children:(0,P.jsx)(`label`,{htmlFor:`destinationCidrBlock`,children:`Destination`})}),(0,P.jsx)(u,{id:`destinationCidrBlock`,placeholder:`0.0.0.0/0`,...q.register(`destinationCidrBlock`)}),(0,P.jsx)(D,{errors:[q.formState.errors.destinationCidrBlock]})]}),(0,P.jsxs)(O,{children:[(0,P.jsx)(E,{children:(0,P.jsx)(`label`,{htmlFor:`targetType`,children:`Target type`})}),(0,P.jsx)(C,{control:q.control,name:`targetType`,render:({field:e})=>(0,P.jsxs)(s,{onValueChange:t=>{e.onChange(t),q.setValue(`targetId`,``)},value:e.value,children:[(0,P.jsx)(o,{className:`w-full`,id:`targetType`,children:(0,P.jsx)(r,{})}),(0,P.jsxs)(a,{children:[(0,P.jsx)(i,{value:`igw`,children:`Internet Gateway`}),(0,P.jsx)(i,{value:`nat`,children:`NAT Gateway`})]})]})})]}),(0,P.jsxs)(O,{children:[(0,P.jsx)(E,{children:(0,P.jsx)(`label`,{htmlFor:`targetId`,children:`Target`})}),(0,P.jsx)(C,{control:q.control,name:`targetId`,render:({field:e})=>(0,P.jsxs)(s,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(o,{"aria-invalid":!!q.formState.errors.targetId,className:`w-full`,id:`targetId`,children:(0,P.jsx)(r,{placeholder:`Select target`})}),(0,P.jsx)(a,{children:ce===`igw`?le.map(e=>(0,P.jsx)(i,{value:e.InternetGatewayId??``,children:e.InternetGatewayId},e.InternetGatewayId)):ue.map(e=>(0,P.jsx)(i,{value:e.NatGatewayId??``,children:e.NatGatewayId},e.NatGatewayId))})]})}),(0,P.jsx)(D,{errors:[q.formState.errors.targetId]})]}),(0,P.jsx)(d,{disabled:B.isPending,size:`sm`,type:`submit`,children:`Add route`})]})]})]}),(0,P.jsxs)(A,{children:[(0,P.jsx)(A.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)(v,{className:`font-mono text-primary hover:underline`,params:{id:e.SubnetId??``},to:`/ec2/describe-subnets/$id`,children:e.SubnetId}),(0,P.jsx)(d,{disabled:!t||U.isPending,onClick:async()=>{t&&await U.mutateAsync(t)},size:`sm`,variant:`ghost`,children:(0,P.jsx)(c,{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)(e,{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)(O,{children:[(0,P.jsx)(E,{children:(0,P.jsx)(`label`,{htmlFor:`subnetId`,children:`Associate subnet`})}),(0,P.jsx)(C,{control:J.control,name:`subnetId`,render:({field:e})=>(0,P.jsxs)(s,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(o,{"aria-invalid":!!J.formState.errors.subnetId,className:`w-full`,id:`subnetId`,children:(0,P.jsx)(r,{placeholder:`Select a subnet`})}),(0,P.jsx)(a,{children:fe.map(e=>{let t=f(e.Tags);return(0,P.jsx)(i,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)})})]})}),(0,P.jsx)(D,{errors:[J.formState.errors.subnetId]})]}),(0,P.jsx)(d,{disabled:H.isPending,size:`sm`,type:`submit`,children:`Associate`})]})]})]})]}),(0,P.jsx)(se,{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{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as o,t as s}from"./select.js";import{t as c}from"./trash-2.js";import{O as ee,g as te,i as ne,k as re,z as l}from"./ec2.js";import{Bs as u,Lo as d,Oa as ie,Oo as f,St as p,bs as m,dt as h,gs as g,hs as _,ht as v,l as y,st as b,xs as x}from"./index.js";import{a as ae,i as S,n as C,t as w}from"./zod.js";import{t as T}from"./page-heading.js";import{a as E,r as D,t as O}from"./field.js";import{l as k,r as oe}from"./ec22.js";import{t as se}from"./delete-confirmation-dialog.js";import{n as A,t as j}from"./detail-row.js";import{t as M}from"./badge.js";var N=u(x()),P=m();function F(e){return e.GatewayId??e.NatGatewayId??e.NetworkInterfaceId??e.InstanceId??e.VpcPeeringConnectionId??`—`}function I(){let{id:u}=y.useParams(),m=g(),{data:x}=t(v(u)),{data:I}=t(b),{data:L}=t(h),{data:R}=t(p),z=re(),B=te(),V=ee(),H=ne(),U=l(),[W,G]=(0,N.useState)(!1),K=x.RouteTables?.[0],q=S({resolver:w(k),defaultValues:{destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``}}),ce=ae({control:q.control,name:`targetType`}),J=S({resolver:w(oe),defaultValues:{subnetId:``}});if(!K?.RouteTableId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(n,{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=d(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),m({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)(n,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z.error&&(0,P.jsx)(e,{error:z.error,msg:`Failed to delete Route Table`}),(0,P.jsxs)(`div`,{className:`space-y-6`,children:[(0,P.jsx)(T,{actions:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(f,{disabled:Z||z.isPending,onClick:()=>G(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(c,{className:`size-4`}),`Delete`]}),Z&&(0,P.jsx)(M,{variant:`secondary`,children:`Main`})]}),subtitle:`Route Table Details`,title:X?`${K.RouteTableId} (${X})`:K.RouteTableId}),(0,P.jsxs)(A,{children:[(0,P.jsx)(A.Header,{children:`Route Table Information`}),(0,P.jsxs)(A.Content,{children:[(0,P.jsx)(j,{label:`Route Table ID`,value:K.RouteTableId}),(0,P.jsx)(j,{label:`Main`,value:Z?`Yes`:`No`}),(0,P.jsx)(j,{label:`VPC ID`,value:K.VpcId?(0,P.jsx)(_,{className:`text-primary hover:underline`,params:{id:K.VpcId},to:`/ec2/describe-vpcs/$id`,children:K.VpcId}):`—`}),(0,P.jsx)(j,{label:`Owner ID`,value:K.OwnerId??`—`})]})]}),(0,P.jsxs)(A,{children:[(0,P.jsx)(A.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)(f,{disabled:V.isPending,onClick:async()=>await V.mutateAsync({routeTableId:Y,destinationCidrBlock:r}),size:`sm`,variant:`ghost`,children:(0,P.jsx)(c,{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)(e,{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)(O,{children:[(0,P.jsx)(E,{children:(0,P.jsx)(`label`,{htmlFor:`destinationCidrBlock`,children:`Destination`})}),(0,P.jsx)(ie,{id:`destinationCidrBlock`,placeholder:`0.0.0.0/0`,...q.register(`destinationCidrBlock`)}),(0,P.jsx)(D,{errors:[q.formState.errors.destinationCidrBlock]})]}),(0,P.jsxs)(O,{children:[(0,P.jsx)(E,{children:(0,P.jsx)(`label`,{htmlFor:`targetType`,children:`Target type`})}),(0,P.jsx)(C,{control:q.control,name:`targetType`,render:({field:e})=>(0,P.jsxs)(s,{onValueChange:t=>{e.onChange(t),q.setValue(`targetId`,``)},value:e.value,children:[(0,P.jsx)(o,{className:`w-full`,id:`targetType`,children:(0,P.jsx)(r,{})}),(0,P.jsxs)(a,{children:[(0,P.jsx)(i,{value:`igw`,children:`Internet Gateway`}),(0,P.jsx)(i,{value:`nat`,children:`NAT Gateway`})]})]})})]}),(0,P.jsxs)(O,{children:[(0,P.jsx)(E,{children:(0,P.jsx)(`label`,{htmlFor:`targetId`,children:`Target`})}),(0,P.jsx)(C,{control:q.control,name:`targetId`,render:({field:e})=>(0,P.jsxs)(s,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(o,{"aria-invalid":!!q.formState.errors.targetId,className:`w-full`,id:`targetId`,children:(0,P.jsx)(r,{placeholder:`Select target`})}),(0,P.jsx)(a,{children:ce===`igw`?le.map(e=>(0,P.jsx)(i,{value:e.InternetGatewayId??``,children:e.InternetGatewayId},e.InternetGatewayId)):ue.map(e=>(0,P.jsx)(i,{value:e.NatGatewayId??``,children:e.NatGatewayId},e.NatGatewayId))})]})}),(0,P.jsx)(D,{errors:[q.formState.errors.targetId]})]}),(0,P.jsx)(f,{disabled:B.isPending,size:`sm`,type:`submit`,children:`Add route`})]})]})]}),(0,P.jsxs)(A,{children:[(0,P.jsx)(A.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)(_,{className:`font-mono text-primary hover:underline`,params:{id:e.SubnetId??``},to:`/ec2/describe-subnets/$id`,children:e.SubnetId}),(0,P.jsx)(f,{disabled:!t||U.isPending,onClick:async()=>{t&&await U.mutateAsync(t)},size:`sm`,variant:`ghost`,children:(0,P.jsx)(c,{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)(e,{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)(O,{children:[(0,P.jsx)(E,{children:(0,P.jsx)(`label`,{htmlFor:`subnetId`,children:`Associate subnet`})}),(0,P.jsx)(C,{control:J.control,name:`subnetId`,render:({field:e})=>(0,P.jsxs)(s,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(o,{"aria-invalid":!!J.formState.errors.subnetId,className:`w-full`,id:`subnetId`,children:(0,P.jsx)(r,{placeholder:`Select a subnet`})}),(0,P.jsx)(a,{children:fe.map(e=>{let t=d(e.Tags);return(0,P.jsx)(i,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)})})]})}),(0,P.jsx)(D,{errors:[J.formState.errors.subnetId]})]}),(0,P.jsx)(f,{disabled:H.isPending,size:`sm`,type:`submit`,children:`Associate`})]})]})]})]}),(0,P.jsx)(se,{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 3dacf6338..97746d0eb 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_instanceProfileName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_instanceProfileName.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{g as i,t as a,u as o}from"./iam.js";import{Do as s,M as c,No as l,T as u,_ as d,bs as f,hs as p,ms as m,ys as h,zs as g}from"./index.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=g(f()),S=h();function C(){let{instanceProfileName:f}=d.useParams(),h=p(),{data:g}=t(u(f)),{data:C}=t(c),w=o(),T=a(),E=i(),[D,O]=(0,x.useState)(!1),[k,A]=(0,x.useState)(!1),[j,M]=(0,x.useState)(null),N=g.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(f),h({to:`/iam/list-instance-profiles`})}finally{O(!1)}},z=async e=>{await T.mutateAsync({instanceProfileName:f,roleName:e}),A(!1)},B=async e=>{M(e);try{await E.mutateAsync({instanceProfileName:f,roleName:e})}finally{M(null)}};return N?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(n,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),w.error&&(0,S.jsx)(e,{error:w.error,msg:`Failed to delete instance profile`}),T.error&&(0,S.jsx)(e,{error:T.error,msg:`Failed to add role`}),E.error&&(0,S.jsx)(e,{error:E.error,msg:`Failed to remove role`}),(0,S.jsxs)(`div`,{className:`space-y-6`,children:[(0,S.jsx)(_,{actions:(0,S.jsxs)(s,{onClick:()=>O(!0),size:`sm`,variant:`destructive`,children:[(0,S.jsx)(r,{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:l(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)(s,{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)(m,{className:`text-sm font-medium text-primary hover:underline`,params:{roleName:e.RoleName??``},to:`/iam/list-roles/$roleName`,children:e.RoleName}),(0,S.jsx)(s,{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 "${f}"? 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)(n,{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{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{g as i,t as a,u as o}from"./iam.js";import{Bs as s,M as c,Oo as l,Po as u,T as d,_ as f,bs as p,gs as m,hs as h,xs as g}from"./index.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=s(g()),S=p();function C(){let{instanceProfileName:s}=f.useParams(),p=m(),{data:g}=t(d(s)),{data:C}=t(c),w=o(),T=a(),E=i(),[D,O]=(0,x.useState)(!1),[k,A]=(0,x.useState)(!1),[j,M]=(0,x.useState)(null),N=g.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(s),p({to:`/iam/list-instance-profiles`})}finally{O(!1)}},z=async e=>{await T.mutateAsync({instanceProfileName:s,roleName:e}),A(!1)},B=async e=>{M(e);try{await E.mutateAsync({instanceProfileName:s,roleName:e})}finally{M(null)}};return N?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(n,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),w.error&&(0,S.jsx)(e,{error:w.error,msg:`Failed to delete instance profile`}),T.error&&(0,S.jsx)(e,{error:T.error,msg:`Failed to add role`}),E.error&&(0,S.jsx)(e,{error:E.error,msg:`Failed to remove role`}),(0,S.jsxs)(`div`,{className:`space-y-6`,children:[(0,S.jsx)(_,{actions:(0,S.jsxs)(l,{onClick:()=>O(!0),size:`sm`,variant:`destructive`,children:[(0,S.jsx)(r,{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:u(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)(l,{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)(h,{className:`text-sm font-medium text-primary hover:underline`,params:{roleName:e.RoleName??``},to:`/iam/list-roles/$roleName`,children:e.RoleName}),(0,S.jsx)(l,{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 "${s}"? 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)(n,{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/_policyArn.js b/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js index a93854449..f21f69177 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{d as i}from"./iam.js";import{A as a,Do as o,No as s,bs as c,hs as l,k as u,v as d,ys as f,zs as p}from"./index.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"./policy-document-viewer.js";var y=p(c()),b=f();function x(){let{policyArn:c}=d.useParams(),f=decodeURIComponent(c),p=l(),{data:x}=t(u(f)),S=x.Policy,C=i(),[w,T]=(0,y.useState)(!1),{data:E}=t(a(f,S?.DefaultVersionId??`v1`)),D=E?.PolicyVersion?.Document?decodeURIComponent(E.PolicyVersion.Document):null;return S?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(n,{to:`/iam/list-policies`,children:`Back to policies`}),C.error&&(0,b.jsx)(e,{error:C.error,msg:`Failed to delete policy`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(o,{onClick:()=>T(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(r,{className:`size-4`}),`Delete`]}),subtitle:`Policy Details`,title:S.PolicyName??``}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Policy Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Policy Name`,value:S.PolicyName}),(0,b.jsx)(_,{label:`Policy ID`,value:S.PolicyId}),(0,b.jsx)(_,{label:`ARN`,value:S.Arn}),(0,b.jsx)(_,{label:`Path`,value:S.Path}),(0,b.jsx)(_,{label:`Description`,value:S.Description??`-`}),(0,b.jsx)(_,{label:`Created`,value:s(S.CreateDate)})]})]}),D&&(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Policy Document`}),(0,b.jsx)(`div`,{className:`p-4`,children:(0,b.jsx)(v,{document:D})})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the policy "${S.PolicyName}"? This action cannot be undone.`,isPending:C.isPending,onConfirm:async()=>{try{await C.mutateAsync(f),p({to:`/iam/list-policies`})}finally{T(!1)}},onOpenChange:T,open:w,title:`Delete Policy`})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(n,{to:`/iam/list-policies`,children:`Back to policies`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Policy not found.`})]})}export{x as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{d as i}from"./iam.js";import{A as a,Bs as o,Oo as s,Po as c,bs as l,gs as u,k as d,v as f,xs as p}from"./index.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"./policy-document-viewer.js";var y=o(p()),b=l();function x(){let{policyArn:o}=f.useParams(),l=decodeURIComponent(o),p=u(),{data:x}=t(d(l)),S=x.Policy,C=i(),[w,T]=(0,y.useState)(!1),{data:E}=t(a(l,S?.DefaultVersionId??`v1`)),D=E?.PolicyVersion?.Document?decodeURIComponent(E.PolicyVersion.Document):null;return S?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(n,{to:`/iam/list-policies`,children:`Back to policies`}),C.error&&(0,b.jsx)(e,{error:C.error,msg:`Failed to delete policy`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(s,{onClick:()=>T(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(r,{className:`size-4`}),`Delete`]}),subtitle:`Policy Details`,title:S.PolicyName??``}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Policy Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Policy Name`,value:S.PolicyName}),(0,b.jsx)(_,{label:`Policy ID`,value:S.PolicyId}),(0,b.jsx)(_,{label:`ARN`,value:S.Arn}),(0,b.jsx)(_,{label:`Path`,value:S.Path}),(0,b.jsx)(_,{label:`Description`,value:S.Description??`-`}),(0,b.jsx)(_,{label:`Created`,value:c(S.CreateDate)})]})]}),D&&(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Policy Document`}),(0,b.jsx)(`div`,{className:`p-4`,children:(0,b.jsx)(v,{document:D})})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the policy "${S.PolicyName}"? This action cannot be undone.`,isPending:C.isPending,onConfirm:async()=>{try{await C.mutateAsync(l),p({to:`/iam/list-policies`})}finally{T(!1)}},onOpenChange:T,open:w,title:`Delete Policy`})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(n,{to:`/iam/list-policies`,children:`Back to policies`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Policy not found.`})]})}export{x 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 2f0491c43..aa34e8d6b 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_roleName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_roleName.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{f as i,m as a,n as o}from"./iam.js";import{C as s,Do as c,E as l,No as u,O as d,bs as f,hs as p,j as m,ms as h,y as g,ys as _,zs as v}from"./index.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=v(f()),T=_();function E(){let{roleName:f}=g.useParams(),_=p(),{data:v}=t(m(f)),{data:E}=t(s(f)),{data:D}=t(l(f)),{data:O}=t(d),k=i(),A=o(),j=a(),[M,N]=(0,w.useState)(!1),[P,F]=(0,w.useState)(!1),[I,L]=(0,w.useState)(null),R=v.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(f),_({to:`/iam/list-roles`})}finally{N(!1)}},K=async e=>{await A.mutateAsync({roleName:f,policyArn:e}),F(!1)},q=async e=>{L(e);try{await j.mutateAsync({roleName:f,policyArn:e})}finally{L(null)}};return R?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(n,{to:`/iam/list-roles`,children:`Back to roles`}),k.error&&(0,T.jsx)(e,{error:k.error,msg:`Failed to delete role`}),A.error&&(0,T.jsx)(e,{error:A.error,msg:`Failed to attach policy`}),j.error&&(0,T.jsx)(e,{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)(r,{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:u(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)(h,{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 "${f}"? 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)(n,{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{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{f as i,m as a,n as o}from"./iam.js";import{Bs as s,C as c,E as l,O as u,Oo as d,Po as f,bs as p,gs as m,hs as h,j as g,xs as _,y as v}from"./index.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=s(_()),T=p();function E(){let{roleName:s}=v.useParams(),p=m(),{data:_}=t(g(s)),{data:E}=t(c(s)),{data:D}=t(l(s)),{data:O}=t(u),k=i(),A=o(),j=a(),[M,N]=(0,w.useState)(!1),[P,F]=(0,w.useState)(!1),[I,L]=(0,w.useState)(null),R=_.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(s),p({to:`/iam/list-roles`})}finally{N(!1)}},K=async e=>{await A.mutateAsync({roleName:s,policyArn:e}),F(!1)},q=async e=>{L(e);try{await j.mutateAsync({roleName:s,policyArn:e})}finally{L(null)}};return R?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(n,{to:`/iam/list-roles`,children:`Back to roles`}),k.error&&(0,T.jsx)(e,{error:k.error,msg:`Failed to delete role`}),A.error&&(0,T.jsx)(e,{error:A.error,msg:`Failed to attach policy`}),j.error&&(0,T.jsx)(e,{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)(d,{onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,T.jsx)(r,{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:f(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)(d,{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)(d,{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)(h,{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 "${s}"? 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)(n,{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/_userName.js b/spinifex/services/spinifexui/frontend/dist/assets/_userName.js index 02fb129e2..65acdfcd8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_userName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_userName.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./check.js";import{t as i}from"./trash-2.js";import{t as a}from"./triangle-alert.js";import{_ as o,h as s,i as c,l,p as u,r as d}from"./iam.js";import{Do as f,N as p,No as m,O as h,S as g,b as _,bs as v,fs as y,hs as b,w as x,ys as S,zs as C}from"./index.js";import{t as w}from"./use-copy-to-clipboard.js";import{t as T}from"./page-heading.js";import{a as E,c as D,i as O,l as k,o as A,r as j,s as M,t as N}from"./alert-dialog.js";import{t as P}from"./delete-confirmation-dialog.js";import{n as F,t as I}from"./detail-row.js";import{t as L}from"./state-badge.js";var R=C(v()),z=y(),B=S();function V(e){let t=(0,z.c)(27),{onClose:n,accessKeyId:i,secretAccessKey:o}=e,{copied:s,copy:c}=w(),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,B.jsxs)(M,{children:[(0,B.jsx)(D,{children:(0,B.jsx)(a,{className:`text-destructive`})}),(0,B.jsx)(k,{children:`Save Your Access Key`}),(0,B.jsx)(E,{children:`This is your only chance to view the secret access key. Please copy it now. You won't be able to retrieve it again.`})]}),t[0]=l):l=t[0];let u;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Access Key ID: `}),t[1]=u):u=t[1];let d;t[2]===i?d=t[3]:(d=(0,B.jsxs)(`div`,{children:[u,i]}),t[2]=i,t[3]=d);let p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Secret Access Key: `}),t[4]=p):p=t[4];let m;t[5]===o?m=t[6]:(m=(0,B.jsxs)(`div`,{children:[p,o]}),t[5]=o,t[6]=m);let h;t[7]!==d||t[8]!==m?(h=(0,B.jsxs)(`div`,{className:`space-y-2 rounded-md border p-4 font-mono text-sm`,children:[d,m]}),t[7]=d,t[8]=m,t[9]=h):h=t[9];let g;t[10]!==i||t[11]!==c||t[12]!==o?(g=async()=>await c(`Access Key ID: ${i}\nSecret Access Key: ${o}`),t[10]=i,t[11]=c,t[12]=o,t[13]=g):g=t[13];let _;t[14]===s?_=t[15]:(_=s?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(r,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[14]=s,t[15]=_);let v;t[16]!==g||t[17]!==_?(v=(0,B.jsx)(f,{className:`w-full`,onClick:g,type:`button`,variant:`outline`,children:_}),t[16]=g,t[17]=_,t[18]=v):v=t[18];let y;t[19]!==h||t[20]!==v?(y=(0,B.jsxs)(`div`,{className:`space-y-3`,children:[h,v]}),t[19]=h,t[20]=v,t[21]=y):y=t[21];let b;t[22]===n?b=t[23]:(b=(0,B.jsx)(A,{children:(0,B.jsx)(j,{onClick:n,children:`Close and Continue`})}),t[22]=n,t[23]=b);let x;return t[24]!==y||t[25]!==b?(x=(0,B.jsx)(N,{open:!0,children:(0,B.jsxs)(O,{className:`max-w-2xl`,children:[l,y,b]})}),t[24]=y,t[25]=b,t[26]=x):x=t[26],x}function H(){let{userName:r}=_.useParams(),a=b(),{data:v}=t(p(r)),{data:y}=t(g(r)),{data:S}=t(x(r)),{data:C}=t(h),w=u(),E=c(),D=l(),O=o(),k=d(),A=s(),[j,M]=(0,R.useState)(!1),[N,z]=(0,R.useState)(null),[H,U]=(0,R.useState)(!1),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(null),J=v.User,Y=y.AccessKeyMetadata??[],X=S.AttachedPolicies??[],Z=C.Policies??[],Q=new Set(X.map(e=>e.PolicyArn)),$=Z.filter(e=>e.Arn&&!Q.has(e.Arn)),ee=async()=>{try{await w.mutateAsync(r),a({to:`/iam/list-users`})}finally{M(!1)}},te=async()=>{let e=await E.mutateAsync(r);e.AccessKey&&z({accessKeyId:e.AccessKey.AccessKeyId??``,secretAccessKey:e.AccessKey.SecretAccessKey??``})},ne=async e=>{if(e.AccessKeyId){G(e.AccessKeyId);try{await O.mutateAsync({userName:r,accessKeyId:e.AccessKeyId,status:e.Status===`Active`?`Inactive`:`Active`})}finally{G(null)}}},re=async e=>{G(e);try{await D.mutateAsync({userName:r,accessKeyId:e})}finally{G(null)}},ie=async e=>{await k.mutateAsync({userName:r,policyArn:e}),U(!1)},ae=async e=>{q(e);try{await A.mutateAsync({userName:r,policyArn:e})}finally{q(null)}};return J?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(n,{to:`/iam/list-users`,children:`Back to users`}),w.error&&(0,B.jsx)(e,{error:w.error,msg:`Failed to delete user`}),E.error&&(0,B.jsx)(e,{error:E.error,msg:`Failed to create access key`}),D.error&&(0,B.jsx)(e,{error:D.error,msg:`Failed to delete access key`}),k.error&&(0,B.jsx)(e,{error:k.error,msg:`Failed to attach policy`}),A.error&&(0,B.jsx)(e,{error:A.error,msg:`Failed to detach policy`}),(0,B.jsxs)(`div`,{className:`space-y-6`,children:[(0,B.jsx)(T,{actions:(0,B.jsxs)(f,{onClick:()=>M(!0),size:`sm`,variant:`destructive`,children:[(0,B.jsx)(i,{className:`size-4`}),`Delete`]}),subtitle:`User Details`,title:J.UserName??``}),(0,B.jsxs)(F,{children:[(0,B.jsx)(F.Header,{children:`User Information`}),(0,B.jsxs)(F.Content,{children:[(0,B.jsx)(I,{label:`User Name`,value:J.UserName}),(0,B.jsx)(I,{label:`User ID`,value:J.UserId}),(0,B.jsx)(I,{label:`ARN`,value:J.Arn}),(0,B.jsx)(I,{label:`Path`,value:J.Path}),(0,B.jsx)(I,{label:`Created`,value:m(J.CreateDate)})]})]}),(0,B.jsxs)(F,{children:[(0,B.jsx)(F.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Access Keys`}),(0,B.jsx)(f,{disabled:E.isPending,onClick:te,size:`sm`,children:E.isPending?`Creating...`:`Create Access Key`})]})}),(0,B.jsx)(F.Content,{children:Y.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:Y.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`font-mono text-sm`,children:e.AccessKeyId}),(0,B.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Created `,m(e.CreateDate)]})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(L,{state:e.Status}),(0,B.jsx)(f,{disabled:W===e.AccessKeyId,onClick:async()=>await ne(e),size:`sm`,variant:`outline`,children:e.Status===`Active`?`Deactivate`:`Activate`}),(0,B.jsx)(f,{disabled:W===e.AccessKeyId,onClick:()=>{e.AccessKeyId&&re(e.AccessKeyId)},size:`sm`,variant:`destructive`,children:`Delete`})]})]},e.AccessKeyId))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No access keys.`})})]}),(0,B.jsxs)(F,{children:[(0,B.jsx)(F.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Attached Policies`}),(0,B.jsx)(f,{onClick:()=>U(!H),size:`sm`,children:`Attach Policy`})]})}),(0,B.jsxs)(F.Content,{children:[H&&$.length>0&&(0,B.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,B.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,B.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:k.isPending,onClick:()=>{e.Arn&&ie(e.Arn)},type:`button`,children:[(0,B.jsx)(`span`,{children:e.PolicyName}),(0,B.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),H&&$.length===0&&(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),X.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:X.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,B.jsx)(f,{disabled:K===e.PolicyArn,onClick:()=>{e.PolicyArn&&ae(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]})]}),(0,B.jsx)(P,{description:`Are you sure you want to delete the user "${r}"? This action cannot be undone. You must detach all policies and delete all access keys first.`,isPending:w.isPending,onConfirm:ee,onOpenChange:M,open:j,title:`Delete User`}),N&&(0,B.jsx)(V,{accessKeyId:N.accessKeyId,onClose:()=>z(null),secretAccessKey:N.secretAccessKey})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(n,{to:`/iam/list-users`,children:`Back to users`}),(0,B.jsx)(`p`,{className:`text-muted-foreground`,children:`User not found.`})]})}export{H as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./check.js";import{t as i}from"./trash-2.js";import{t as a}from"./triangle-alert.js";import{_ as o,h as s,i as c,l,p as u,r as d}from"./iam.js";import{Bs as f,N as p,O as m,Oo as h,Po as g,S as _,b as v,bs as y,gs as b,ps as x,w as S,xs as C}from"./index.js";import{t as w}from"./use-copy-to-clipboard.js";import{t as T}from"./page-heading.js";import{a as E,c as D,i as O,l as k,o as A,r as j,s as M,t as N}from"./alert-dialog.js";import{t as P}from"./delete-confirmation-dialog.js";import{n as F,t as I}from"./detail-row.js";import{t as L}from"./state-badge.js";var R=f(C()),z=x(),B=y();function V(e){let t=(0,z.c)(27),{onClose:n,accessKeyId:i,secretAccessKey:o}=e,{copied:s,copy:c}=w(),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,B.jsxs)(M,{children:[(0,B.jsx)(D,{children:(0,B.jsx)(a,{className:`text-destructive`})}),(0,B.jsx)(k,{children:`Save Your Access Key`}),(0,B.jsx)(E,{children:`This is your only chance to view the secret access key. Please copy it now. You won't be able to retrieve it again.`})]}),t[0]=l):l=t[0];let u;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Access Key ID: `}),t[1]=u):u=t[1];let d;t[2]===i?d=t[3]:(d=(0,B.jsxs)(`div`,{children:[u,i]}),t[2]=i,t[3]=d);let f;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Secret Access Key: `}),t[4]=f):f=t[4];let p;t[5]===o?p=t[6]:(p=(0,B.jsxs)(`div`,{children:[f,o]}),t[5]=o,t[6]=p);let m;t[7]!==d||t[8]!==p?(m=(0,B.jsxs)(`div`,{className:`space-y-2 rounded-md border p-4 font-mono text-sm`,children:[d,p]}),t[7]=d,t[8]=p,t[9]=m):m=t[9];let g;t[10]!==i||t[11]!==c||t[12]!==o?(g=async()=>await c(`Access Key ID: ${i}\nSecret Access Key: ${o}`),t[10]=i,t[11]=c,t[12]=o,t[13]=g):g=t[13];let _;t[14]===s?_=t[15]:(_=s?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(r,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[14]=s,t[15]=_);let v;t[16]!==g||t[17]!==_?(v=(0,B.jsx)(h,{className:`w-full`,onClick:g,type:`button`,variant:`outline`,children:_}),t[16]=g,t[17]=_,t[18]=v):v=t[18];let y;t[19]!==m||t[20]!==v?(y=(0,B.jsxs)(`div`,{className:`space-y-3`,children:[m,v]}),t[19]=m,t[20]=v,t[21]=y):y=t[21];let b;t[22]===n?b=t[23]:(b=(0,B.jsx)(A,{children:(0,B.jsx)(j,{onClick:n,children:`Close and Continue`})}),t[22]=n,t[23]=b);let x;return t[24]!==y||t[25]!==b?(x=(0,B.jsx)(N,{open:!0,children:(0,B.jsxs)(O,{className:`max-w-2xl`,children:[l,y,b]})}),t[24]=y,t[25]=b,t[26]=x):x=t[26],x}function H(){let{userName:r}=v.useParams(),a=b(),{data:f}=t(p(r)),{data:y}=t(_(r)),{data:x}=t(S(r)),{data:C}=t(m),w=u(),E=c(),D=l(),O=o(),k=d(),A=s(),[j,M]=(0,R.useState)(!1),[N,z]=(0,R.useState)(null),[H,U]=(0,R.useState)(!1),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(null),J=f.User,Y=y.AccessKeyMetadata??[],X=x.AttachedPolicies??[],Z=C.Policies??[],Q=new Set(X.map(e=>e.PolicyArn)),$=Z.filter(e=>e.Arn&&!Q.has(e.Arn)),ee=async()=>{try{await w.mutateAsync(r),a({to:`/iam/list-users`})}finally{M(!1)}},te=async()=>{let e=await E.mutateAsync(r);e.AccessKey&&z({accessKeyId:e.AccessKey.AccessKeyId??``,secretAccessKey:e.AccessKey.SecretAccessKey??``})},ne=async e=>{if(e.AccessKeyId){G(e.AccessKeyId);try{await O.mutateAsync({userName:r,accessKeyId:e.AccessKeyId,status:e.Status===`Active`?`Inactive`:`Active`})}finally{G(null)}}},re=async e=>{G(e);try{await D.mutateAsync({userName:r,accessKeyId:e})}finally{G(null)}},ie=async e=>{await k.mutateAsync({userName:r,policyArn:e}),U(!1)},ae=async e=>{q(e);try{await A.mutateAsync({userName:r,policyArn:e})}finally{q(null)}};return J?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(n,{to:`/iam/list-users`,children:`Back to users`}),w.error&&(0,B.jsx)(e,{error:w.error,msg:`Failed to delete user`}),E.error&&(0,B.jsx)(e,{error:E.error,msg:`Failed to create access key`}),D.error&&(0,B.jsx)(e,{error:D.error,msg:`Failed to delete access key`}),k.error&&(0,B.jsx)(e,{error:k.error,msg:`Failed to attach policy`}),A.error&&(0,B.jsx)(e,{error:A.error,msg:`Failed to detach policy`}),(0,B.jsxs)(`div`,{className:`space-y-6`,children:[(0,B.jsx)(T,{actions:(0,B.jsxs)(h,{onClick:()=>M(!0),size:`sm`,variant:`destructive`,children:[(0,B.jsx)(i,{className:`size-4`}),`Delete`]}),subtitle:`User Details`,title:J.UserName??``}),(0,B.jsxs)(F,{children:[(0,B.jsx)(F.Header,{children:`User Information`}),(0,B.jsxs)(F.Content,{children:[(0,B.jsx)(I,{label:`User Name`,value:J.UserName}),(0,B.jsx)(I,{label:`User ID`,value:J.UserId}),(0,B.jsx)(I,{label:`ARN`,value:J.Arn}),(0,B.jsx)(I,{label:`Path`,value:J.Path}),(0,B.jsx)(I,{label:`Created`,value:g(J.CreateDate)})]})]}),(0,B.jsxs)(F,{children:[(0,B.jsx)(F.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Access Keys`}),(0,B.jsx)(h,{disabled:E.isPending,onClick:te,size:`sm`,children:E.isPending?`Creating...`:`Create Access Key`})]})}),(0,B.jsx)(F.Content,{children:Y.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:Y.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`font-mono text-sm`,children:e.AccessKeyId}),(0,B.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Created `,g(e.CreateDate)]})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(L,{state:e.Status}),(0,B.jsx)(h,{disabled:W===e.AccessKeyId,onClick:async()=>await ne(e),size:`sm`,variant:`outline`,children:e.Status===`Active`?`Deactivate`:`Activate`}),(0,B.jsx)(h,{disabled:W===e.AccessKeyId,onClick:()=>{e.AccessKeyId&&re(e.AccessKeyId)},size:`sm`,variant:`destructive`,children:`Delete`})]})]},e.AccessKeyId))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No access keys.`})})]}),(0,B.jsxs)(F,{children:[(0,B.jsx)(F.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Attached Policies`}),(0,B.jsx)(h,{onClick:()=>U(!H),size:`sm`,children:`Attach Policy`})]})}),(0,B.jsxs)(F.Content,{children:[H&&$.length>0&&(0,B.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,B.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,B.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:k.isPending,onClick:()=>{e.Arn&&ie(e.Arn)},type:`button`,children:[(0,B.jsx)(`span`,{children:e.PolicyName}),(0,B.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),H&&$.length===0&&(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),X.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:X.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,B.jsx)(h,{disabled:K===e.PolicyArn,onClick:()=>{e.PolicyArn&&ae(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]})]}),(0,B.jsx)(P,{description:`Are you sure you want to delete the user "${r}"? This action cannot be undone. You must detach all policies and delete all access keys first.`,isPending:w.isPending,onConfirm:ee,onOpenChange:M,open:j,title:`Delete User`}),N&&(0,B.jsx)(V,{accessKeyId:N.accessKeyId,onClose:()=>z(null),secretAccessKey:N.secretAccessKey})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(n,{to:`/iam/list-users`,children:`Back to users`}),(0,B.jsx)(`p`,{className:`text-muted-foreground`,children:`User not found.`})]})}export{H as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/admin.js b/spinifex/services/spinifexui/frontend/dist/assets/admin.js index 4c7af141c..5fa303641 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/admin.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/admin.js @@ -1 +1 @@ -import{Jr as e,_s as t,di as n}from"./index.js";var r=t({queryKey:[`admin`,`nodes`],queryFn:async()=>{let t=n();if(!t)throw Error(`Not authenticated`);return await e({action:`GetNodes`,credentials:t})},staleTime:1e4}),i=t({queryKey:[`admin`,`vms`],queryFn:async()=>{let t=n();if(!t)throw Error(`Not authenticated`);return await e({action:`GetVMs`,credentials:t})},staleTime:1e4}),a=t({queryKey:[`admin`,`storageStatus`],queryFn:async()=>{let t=n();if(!t)throw Error(`Not authenticated`);return await e({action:`GetStorageStatus`,credentials:t})},staleTime:1e4});export{a as n,i as r,r as t}; \ No newline at end of file +import{Yr as e,fi as t,vs as n}from"./index.js";var r=n({queryKey:[`admin`,`nodes`],queryFn:async()=>{let n=t();if(!n)throw Error(`Not authenticated`);return await e({action:`GetNodes`,credentials:n})},staleTime:1e4}),i=n({queryKey:[`admin`,`vms`],queryFn:async()=>{let n=t();if(!n)throw Error(`Not authenticated`);return await e({action:`GetVMs`,credentials:n})},staleTime:1e4}),a=n({queryKey:[`admin`,`storageStatus`],queryFn:async()=>{let n=t();if(!n)throw Error(`Not authenticated`);return await e({action:`GetStorageStatus`,credentials:n})},staleTime:1e4});export{a as n,i as r,r as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js b/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js index 9339724dc..3f0206c0a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js @@ -1 +1 @@ -import{Ai as e,Ao as t,Do as n,Ii as r,Oi as i,Ta as a,ba as o,bs as s,fs as c,ji as l,ki as u,va as d,wa as f,ya as p,ys as m,zi as h,zs as g}from"./index.js";var _=g(s()),v=m();function y(t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:o,onOpenChangeComplete:s,actionsRef:c,handle:d,triggerId:p,defaultTriggerId:m=null}=t,h=a(!0),g=!!h,y=e.useStore(d?.store,{open:i,openProp:r,activeTriggerId:m,triggerIdProp:p,modal:!0,disablePointerDismissal:!0,nested:g,role:`alertdialog`});y.useControlledProp(`openProp`,r),y.useControlledProp(`triggerIdProp`,p),y.useSyncedValue(`nested`,g),y.useContextCallback(`onOpenChange`,o),y.useContextCallback(`onOpenChangeComplete`,s);let b=y.useState(`payload`);l({store:y,actionsRef:c,parentContext:h?.store.context,isDrawer:!1,onOpenChange:o,triggerIdProp:p});let x=_.useMemo(()=>({store:y}),[y]);return(0,v.jsx)(u.Provider,{value:!1,children:(0,v.jsx)(f.Provider,{value:x,children:typeof n==`function`?n({payload:b}):n})})}var b=c();function x(e){let t=(0,b.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,v.jsx)(y,{"data-slot":`alert-dialog`,...n}),t[2]=n,t[3]=r),r}function S(e){let t=(0,b.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let i;return t[2]===n?i=t[3]:(i=(0,v.jsx)(r,{"data-slot":`alert-dialog-portal`,...n}),t[2]=n,t[3]=i),i}function C(e){let n=(0,b.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=t(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs`,r),n[3]=r,n[4]=a);let s;return n[5]!==i||n[6]!==a?(s=(0,v.jsx)(o,{className:a,"data-slot":`alert-dialog-overlay`,...i}),n[5]=i,n[6]=a,n[7]=s):s=n[7],s}function w(e){let n=(0,b.c)(11),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({className:r,size:a,...i}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let o=a===void 0?`default`:a,s;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,v.jsx)(C,{}),n[4]=s):s=n[4];let c;n[5]===r?c=n[6]:(c=t(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 group/alert-dialog-content data-closed:animate-out data-open:animate-in fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-background p-4 ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm`,r),n[5]=r,n[6]=c);let l;return n[7]!==i||n[8]!==o||n[9]!==c?(l=(0,v.jsxs)(S,{children:[s,(0,v.jsx)(h,{className:c,"data-size":o,"data-slot":`alert-dialog-content`,...i})]}),n[7]=i,n[8]=o,n[9]=c,n[10]=l):l=n[10],l}function T(e){let n=(0,b.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=t(`grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,r),n[3]=r,n[4]=a);let o;return n[5]!==i||n[6]!==a?(o=(0,v.jsx)(`div`,{className:a,"data-slot":`alert-dialog-header`,...i}),n[5]=i,n[6]=a,n[7]=o):o=n[7],o}function E(e){let n=(0,b.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=t(`flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,r),n[3]=r,n[4]=a);let o;return n[5]!==i||n[6]!==a?(o=(0,v.jsx)(`div`,{className:a,"data-slot":`alert-dialog-footer`,...i}),n[5]=i,n[6]=a,n[7]=o):o=n[7],o}function D(e){let n=(0,b.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=t(`mb-2 inline-flex size-8 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4`,r),n[3]=r,n[4]=a);let o;return n[5]!==i||n[6]!==a?(o=(0,v.jsx)(`div`,{className:a,"data-slot":`alert-dialog-media`,...i}),n[5]=i,n[6]=a,n[7]=o):o=n[7],o}function O(e){let n=(0,b.c)(8),r,a;n[0]===e?(r=n[1],a=n[2]):({className:r,...a}=e,n[0]=e,n[1]=r,n[2]=a);let o;n[3]===r?o=n[4]:(o=t(`text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,r),n[3]=r,n[4]=o);let s;return n[5]!==a||n[6]!==o?(s=(0,v.jsx)(i,{className:o,"data-slot":`alert-dialog-title`,...a}),n[5]=a,n[6]=o,n[7]=s):s=n[7],s}function k(e){let n=(0,b.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=t(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,r),n[3]=r,n[4]=a);let o;return n[5]!==i||n[6]!==a?(o=(0,v.jsx)(d,{className:a,"data-slot":`alert-dialog-description`,...i}),n[5]=i,n[6]=a,n[7]=o):o=n[7],o}function A(e){let r=(0,b.c)(8),i,a;r[0]===e?(i=r[1],a=r[2]):({className:i,...a}=e,r[0]=e,r[1]=i,r[2]=a);let o;r[3]===i?o=r[4]:(o=t(i),r[3]=i,r[4]=o);let s;return r[5]!==a||r[6]!==o?(s=(0,v.jsx)(n,{className:o,"data-slot":`alert-dialog-action`,...a}),r[5]=a,r[6]=o,r[7]=s):s=r[7],s}function j(e){let r=(0,b.c)(14),i,a,o,s;r[0]===e?(i=r[1],a=r[2],o=r[3],s=r[4]):({className:i,variant:o,size:s,...a}=e,r[0]=e,r[1]=i,r[2]=a,r[3]=o,r[4]=s);let c=o===void 0?`outline`:o,l=s===void 0?`default`:s,u;r[5]===i?u=r[6]:(u=t(i),r[5]=i,r[6]=u);let d;r[7]!==l||r[8]!==c?(d=(0,v.jsx)(n,{size:l,variant:c}),r[7]=l,r[8]=c,r[9]=d):d=r[9];let f;return r[10]!==a||r[11]!==u||r[12]!==d?(f=(0,v.jsx)(p,{className:u,"data-slot":`alert-dialog-cancel`,render:d,...a}),r[10]=a,r[11]=u,r[12]=d,r[13]=f):f=r[13],f}export{k as a,D as c,w as i,O as l,A as n,E as o,j as r,T as s,x as t}; \ No newline at end of file +import{Ai as e,Bi as t,Bs as n,Ea as r,Li as i,Mi as a,Oo as o,Ta as s,ba as c,bs as l,ji as u,jo as d,ki as f,ps as p,xa as m,xs as h,ya as g}from"./index.js";var _=n(h()),v=l();function y(t){let{children:n,open:i,defaultOpen:o=!1,onOpenChange:c,onOpenChangeComplete:l,actionsRef:d,handle:f,triggerId:p,defaultTriggerId:m=null}=t,h=r(!0),g=!!h,y=u.useStore(f?.store,{open:o,openProp:i,activeTriggerId:m,triggerIdProp:p,modal:!0,disablePointerDismissal:!0,nested:g,role:`alertdialog`});y.useControlledProp(`openProp`,i),y.useControlledProp(`triggerIdProp`,p),y.useSyncedValue(`nested`,g),y.useContextCallback(`onOpenChange`,c),y.useContextCallback(`onOpenChangeComplete`,l);let b=y.useState(`payload`);a({store:y,actionsRef:d,parentContext:h?.store.context,isDrawer:!1,onOpenChange:c,triggerIdProp:p});let x=_.useMemo(()=>({store:y}),[y]);return(0,v.jsx)(e.Provider,{value:!1,children:(0,v.jsx)(s.Provider,{value:x,children:typeof n==`function`?n({payload:b}):n})})}var b=p();function x(e){let t=(0,b.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,v.jsx)(y,{"data-slot":`alert-dialog`,...n}),t[2]=n,t[3]=r),r}function S(e){let t=(0,b.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,v.jsx)(i,{"data-slot":`alert-dialog-portal`,...n}),t[2]=n,t[3]=r),r}function C(e){let t=(0,b.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=d(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,v.jsx)(m,{className:i,"data-slot":`alert-dialog-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function w(e){let n=(0,b.c)(11),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({className:r,size:a,...i}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let o=a===void 0?`default`:a,s;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,v.jsx)(C,{}),n[4]=s):s=n[4];let c;n[5]===r?c=n[6]:(c=d(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 group/alert-dialog-content data-closed:animate-out data-open:animate-in fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-background p-4 ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm`,r),n[5]=r,n[6]=c);let l;return n[7]!==i||n[8]!==o||n[9]!==c?(l=(0,v.jsxs)(S,{children:[s,(0,v.jsx)(t,{className:c,"data-size":o,"data-slot":`alert-dialog-content`,...i})]}),n[7]=i,n[8]=o,n[9]=c,n[10]=l):l=n[10],l}function T(e){let t=(0,b.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=d(`grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,v.jsx)(`div`,{className:i,"data-slot":`alert-dialog-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function E(e){let t=(0,b.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=d(`flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,v.jsx)(`div`,{className:i,"data-slot":`alert-dialog-footer`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function D(e){let t=(0,b.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=d(`mb-2 inline-flex size-8 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,v.jsx)(`div`,{className:i,"data-slot":`alert-dialog-media`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function O(e){let t=(0,b.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=d(`text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,v.jsx)(f,{className:i,"data-slot":`alert-dialog-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function k(e){let t=(0,b.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=d(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,v.jsx)(g,{className:i,"data-slot":`alert-dialog-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function A(e){let t=(0,b.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=d(n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,v.jsx)(o,{className:i,"data-slot":`alert-dialog-action`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function j(e){let t=(0,b.c)(14),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,variant:i,size:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let s=i===void 0?`outline`:i,l=a===void 0?`default`:a,u;t[5]===n?u=t[6]:(u=d(n),t[5]=n,t[6]=u);let f;t[7]!==l||t[8]!==s?(f=(0,v.jsx)(o,{size:l,variant:s}),t[7]=l,t[8]=s,t[9]=f):f=t[9];let p;return t[10]!==r||t[11]!==u||t[12]!==f?(p=(0,v.jsx)(c,{className:u,"data-slot":`alert-dialog-cancel`,render:f,...r}),t[10]=r,t[11]=u,t[12]=f,t[13]=p):p=t[13],p}export{k as a,D as c,w as i,O as l,A as n,E as o,j as r,T as s,x as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/allocate-address.js b/spinifex/services/spinifexui/frontend/dist/assets/allocate-address.js index 9d5618f6e..7149cc944 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/allocate-address.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/allocate-address.js @@ -1,3 +1,3 @@ -import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./cli-command-panel.js";import{t as r}from"./ec2.js";import{Da as i,fs as a,hs as o,ys as s}from"./index.js";import{a as c,i as l,t as u}from"./zod.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,t as m}from"./field.js";import{n as h}from"./ec22.js";var g=a(),_=s();function v(){let a=(0,g.c)(36),s=o(),v=r(),b;a[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:u(h),defaultValues:{name:``}},a[0]=b):b=a[0];let{control:x,handleSubmit:S,register:C,formState:w}=l(b),{isSubmitting:T}=w,E;a[1]===x?E=a[2]:(E={control:x},a[1]=x,a[2]=E);let D=c(E),O;a[3]!==v||a[4]!==s?(O=async e=>{let t=(await v.mutateAsync({name:e.name?.trim()??void 0})).AllocationId;s(t?{to:`/ec2/describe-addresses/$id`,params:{id:t}}:{to:`/ec2/describe-addresses`})},a[3]=v,a[4]=s,a[5]=O):O=a[5];let k=O,A,j;a[6]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,_.jsx)(t,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),j=(0,_.jsx)(f,{title:`Allocate Elastic IP`}),a[6]=A,a[7]=j):(A=a[6],j=a[7]);let M;a[8]===v.error?M=a[9]:(M=v.error&&(0,_.jsx)(e,{error:v.error,msg:`Failed to allocate Elastic IP`}),a[8]=v.error,a[9]=M);let N;a[10]!==S||a[11]!==k?(N=S(k),a[10]=S,a[11]=k,a[12]=N):N=a[12];let P;a[13]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,_.jsx)(p,{children:(0,_.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),a[13]=P):P=a[13];let F;a[14]===C?F=a[15]:(F=C(`name`),a[14]=C,a[15]=F);let I;a[16]===F?I=a[17]:(I=(0,_.jsxs)(m,{children:[P,(0,_.jsx)(i,{id:`name`,placeholder:`my-elastic-ip`,...F})]}),a[16]=F,a[17]=I);let L=D.name??``,R;a[18]===L?R=a[19]:(R=y(L),a[18]=L,a[19]=R);let z;a[20]===R?z=a[21]:(z=(0,_.jsx)(n,{commands:R}),a[20]=R,a[21]=z);let B;a[22]===s?B=a[23]:(B=async()=>await s({to:`/ec2/describe-addresses`}),a[22]=s,a[23]=B);let V;a[24]!==v.isPending||a[25]!==T||a[26]!==B?(V=(0,_.jsx)(d,{isPending:v.isPending,isSubmitting:T,onCancel:B,pendingLabel:`Allocating…`,submitLabel:`Allocate`}),a[24]=v.isPending,a[25]=T,a[26]=B,a[27]=V):V=a[27];let H;a[28]!==I||a[29]!==z||a[30]!==V||a[31]!==N?(H=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:N,children:[I,z,V]}),a[28]=I,a[29]=z,a[30]=V,a[31]=N,a[32]=H):H=a[32];let U;return a[33]!==H||a[34]!==M?(U=(0,_.jsxs)(_.Fragment,{children:[A,j,M,H]}),a[33]=H,a[34]=M,a[35]=U):U=a[35],U}function y(e){let t=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 allocate-address`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./cli-command-panel.js";import{t as r}from"./ec2.js";import{Oa as i,bs as a,gs as o,ps as s}from"./index.js";import{a as c,i as l,t as u}from"./zod.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,t as m}from"./field.js";import{n as h}from"./ec22.js";var g=s(),_=a();function v(){let a=(0,g.c)(36),s=o(),v=r(),b;a[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:u(h),defaultValues:{name:``}},a[0]=b):b=a[0];let{control:x,handleSubmit:S,register:C,formState:w}=l(b),{isSubmitting:T}=w,E;a[1]===x?E=a[2]:(E={control:x},a[1]=x,a[2]=E);let D=c(E),O;a[3]!==v||a[4]!==s?(O=async e=>{let t=(await v.mutateAsync({name:e.name?.trim()??void 0})).AllocationId;s(t?{to:`/ec2/describe-addresses/$id`,params:{id:t}}:{to:`/ec2/describe-addresses`})},a[3]=v,a[4]=s,a[5]=O):O=a[5];let k=O,A,j;a[6]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,_.jsx)(t,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),j=(0,_.jsx)(f,{title:`Allocate Elastic IP`}),a[6]=A,a[7]=j):(A=a[6],j=a[7]);let M;a[8]===v.error?M=a[9]:(M=v.error&&(0,_.jsx)(e,{error:v.error,msg:`Failed to allocate Elastic IP`}),a[8]=v.error,a[9]=M);let N;a[10]!==S||a[11]!==k?(N=S(k),a[10]=S,a[11]=k,a[12]=N):N=a[12];let P;a[13]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,_.jsx)(p,{children:(0,_.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),a[13]=P):P=a[13];let F;a[14]===C?F=a[15]:(F=C(`name`),a[14]=C,a[15]=F);let I;a[16]===F?I=a[17]:(I=(0,_.jsxs)(m,{children:[P,(0,_.jsx)(i,{id:`name`,placeholder:`my-elastic-ip`,...F})]}),a[16]=F,a[17]=I);let L=D.name??``,R;a[18]===L?R=a[19]:(R=y(L),a[18]=L,a[19]=R);let z;a[20]===R?z=a[21]:(z=(0,_.jsx)(n,{commands:R}),a[20]=R,a[21]=z);let B;a[22]===s?B=a[23]:(B=async()=>await s({to:`/ec2/describe-addresses`}),a[22]=s,a[23]=B);let V;a[24]!==v.isPending||a[25]!==T||a[26]!==B?(V=(0,_.jsx)(d,{isPending:v.isPending,isSubmitting:T,onCancel:B,pendingLabel:`Allocating…`,submitLabel:`Allocate`}),a[24]=v.isPending,a[25]=T,a[26]=B,a[27]=V):V=a[27];let H;a[28]!==I||a[29]!==z||a[30]!==V||a[31]!==N?(H=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:N,children:[I,z,V]}),a[28]=I,a[29]=z,a[30]=V,a[31]=N,a[32]=H):H=a[32];let U;return a[33]!==H||a[34]!==M?(U=(0,_.jsxs)(_.Fragment,{children:[A,j,M,H]}),a[33]=H,a[34]=M,a[35]=U):U=a[35],U}function y(e){let t=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 allocate-address`},{type:`flag`,value:` \\ --domain`},{type:`value`,value:` vpc`}];return e.trim()&&t.push({type:`flag`,value:` \\ --tag-specifications`},{type:`value`,value:` 'ResourceType=elastic-ip,Tags=[{Key=Name,Value=${e.trim()}}]'`}),[{label:`Allocate Elastic IP`,parts:t}]}export{v 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 17134c614..43f469710 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js @@ -1 +1 @@ -import{No as e,fs as t,ms as n,ys as r}from"./index.js";import{n as i,t as a}from"./detail-row.js";var o=t(),s=r();function c(t){let r=(0,o.c)(58),{image:c,showExtendedDetails:u}=t,d=u===void 0?!1:u,f;r[0]===c.CreationDate?f=r[1]:(f=e(c.CreationDate),r[0]=c.CreationDate,r[1]=f);let p=f,m=d?`AMI Information`:`AMI Details`,h;r[2]===m?h=r[3]:(h=(0,s.jsx)(i.Header,{children:m}),r[2]=m,r[3]=h);let g;r[4]!==c.ImageId||r[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,r[4]=c.ImageId,r[5]=d,r[6]=g):g=r[6];let _;r[7]===g?_=r[8]:(_=(0,s.jsx)(a,{label:`AMI ID`,value:g}),r[7]=g,r[8]=_);let v;r[9]===c.Name?v=r[10]:(v=(0,s.jsx)(a,{label:`AMI Name`,value:c.Name}),r[9]=c.Name,r[10]=v);let y;r[11]===c.Description?y=r[12]:(y=(0,s.jsx)(a,{label:`Description`,value:c.Description}),r[11]=c.Description,r[12]=y);let b;r[13]===c.Architecture?b=r[14]:(b=(0,s.jsx)(a,{label:`Architecture`,value:c.Architecture}),r[13]=c.Architecture,r[14]=b);let x;r[15]===c.VirtualizationType?x=r[16]:(x=(0,s.jsx)(a,{label:`Virtualization Type`,value:c.VirtualizationType}),r[15]=c.VirtualizationType,r[16]=x);let S=c.Platform??`Linux`,C;r[17]===S?C=r[18]:(C=(0,s.jsx)(a,{label:`Platform`,value:S}),r[17]=S,r[18]=C);let w;r[19]===c.PlatformDetails?w=r[20]:(w=(0,s.jsx)(a,{label:`Platform Details`,value:c.PlatformDetails}),r[19]=c.PlatformDetails,r[20]=w);let T;r[21]===c.ImageType?T=r[22]:(T=(0,s.jsx)(a,{label:`Image Type`,value:c.ImageType}),r[21]=c.ImageType,r[22]=T);let E;r[23]===c.RootDeviceType?E=r[24]:(E=(0,s.jsx)(a,{label:`Root Device Type`,value:c.RootDeviceType}),r[23]=c.RootDeviceType,r[24]=E);let D;r[25]===c.RootDeviceName?D=r[26]:(D=(0,s.jsx)(a,{label:`Root Device Name`,value:c.RootDeviceName}),r[25]=c.RootDeviceName,r[26]=D);let O;r[27]===c.OwnerId?O=r[28]:(O=(0,s.jsx)(a,{label:`Owner`,value:c.OwnerId}),r[27]=c.OwnerId,r[28]=O);let k;r[29]===c.State?k=r[30]:(k=(0,s.jsx)(a,{label:`State`,value:c.State}),r[29]=c.State,r[30]=k);let A;r[31]!==p||r[32]!==c.Public||r[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`})]}),r[31]=p,r[32]=c.Public,r[33]=d,r[34]=A):A=r[34];let j;r[35]!==x||r[36]!==C||r[37]!==w||r[38]!==T||r[39]!==E||r[40]!==D||r[41]!==O||r[42]!==k||r[43]!==A||r[44]!==_||r[45]!==v||r[46]!==y||r[47]!==b?(j=(0,s.jsxs)(i.Content,{children:[_,v,y,b,x,C,w,T,E,D,O,k,A]}),r[35]=x,r[36]=C,r[37]=w,r[38]=T,r[39]=E,r[40]=D,r[41]=O,r[42]=k,r[43]=A,r[44]=_,r[45]=v,r[46]=y,r[47]=b,r[48]=j):j=r[48];let M;r[49]!==j||r[50]!==h?(M=(0,s.jsxs)(i,{children:[h,j]}),r[49]=j,r[50]=h,r[51]=M):M=r[51];let N;r[52]!==c.BlockDeviceMappings||r[53]!==d?(N=d&&c.BlockDeviceMappings&&c.BlockDeviceMappings.length>0&&c.BlockDeviceMappings.map(l),r[52]=c.BlockDeviceMappings,r[53]=d,r[54]=N):N=r[54];let P;return r[55]!==M||r[56]!==N?(P=(0,s.jsxs)(s.Fragment,{children:[M,N]}),r[55]=M,r[56]=N,r[57]=P):P=r[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{Po as e,bs as t,hs as n,ps as r}from"./index.js";import{n as i,t as a}from"./detail-row.js";var o=r(),s=t();function c(t){let r=(0,o.c)(58),{image:c,showExtendedDetails:u}=t,d=u===void 0?!1:u,f;r[0]===c.CreationDate?f=r[1]:(f=e(c.CreationDate),r[0]=c.CreationDate,r[1]=f);let p=f,m=d?`AMI Information`:`AMI Details`,h;r[2]===m?h=r[3]:(h=(0,s.jsx)(i.Header,{children:m}),r[2]=m,r[3]=h);let g;r[4]!==c.ImageId||r[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,r[4]=c.ImageId,r[5]=d,r[6]=g):g=r[6];let _;r[7]===g?_=r[8]:(_=(0,s.jsx)(a,{label:`AMI ID`,value:g}),r[7]=g,r[8]=_);let v;r[9]===c.Name?v=r[10]:(v=(0,s.jsx)(a,{label:`AMI Name`,value:c.Name}),r[9]=c.Name,r[10]=v);let y;r[11]===c.Description?y=r[12]:(y=(0,s.jsx)(a,{label:`Description`,value:c.Description}),r[11]=c.Description,r[12]=y);let b;r[13]===c.Architecture?b=r[14]:(b=(0,s.jsx)(a,{label:`Architecture`,value:c.Architecture}),r[13]=c.Architecture,r[14]=b);let x;r[15]===c.VirtualizationType?x=r[16]:(x=(0,s.jsx)(a,{label:`Virtualization Type`,value:c.VirtualizationType}),r[15]=c.VirtualizationType,r[16]=x);let S=c.Platform??`Linux`,C;r[17]===S?C=r[18]:(C=(0,s.jsx)(a,{label:`Platform`,value:S}),r[17]=S,r[18]=C);let w;r[19]===c.PlatformDetails?w=r[20]:(w=(0,s.jsx)(a,{label:`Platform Details`,value:c.PlatformDetails}),r[19]=c.PlatformDetails,r[20]=w);let T;r[21]===c.ImageType?T=r[22]:(T=(0,s.jsx)(a,{label:`Image Type`,value:c.ImageType}),r[21]=c.ImageType,r[22]=T);let E;r[23]===c.RootDeviceType?E=r[24]:(E=(0,s.jsx)(a,{label:`Root Device Type`,value:c.RootDeviceType}),r[23]=c.RootDeviceType,r[24]=E);let D;r[25]===c.RootDeviceName?D=r[26]:(D=(0,s.jsx)(a,{label:`Root Device Name`,value:c.RootDeviceName}),r[25]=c.RootDeviceName,r[26]=D);let O;r[27]===c.OwnerId?O=r[28]:(O=(0,s.jsx)(a,{label:`Owner`,value:c.OwnerId}),r[27]=c.OwnerId,r[28]=O);let k;r[29]===c.State?k=r[30]:(k=(0,s.jsx)(a,{label:`State`,value:c.State}),r[29]=c.State,r[30]=k);let A;r[31]!==p||r[32]!==c.Public||r[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`})]}),r[31]=p,r[32]=c.Public,r[33]=d,r[34]=A):A=r[34];let j;r[35]!==x||r[36]!==C||r[37]!==w||r[38]!==T||r[39]!==E||r[40]!==D||r[41]!==O||r[42]!==k||r[43]!==A||r[44]!==_||r[45]!==v||r[46]!==y||r[47]!==b?(j=(0,s.jsxs)(i.Content,{children:[_,v,y,b,x,C,w,T,E,D,O,k,A]}),r[35]=x,r[36]=C,r[37]=w,r[38]=T,r[39]=E,r[40]=D,r[41]=O,r[42]=k,r[43]=A,r[44]=_,r[45]=v,r[46]=y,r[47]=b,r[48]=j):j=r[48];let M;r[49]!==j||r[50]!==h?(M=(0,s.jsxs)(i,{children:[h,j]}),r[49]=j,r[50]=h,r[51]=M):M=r[51];let N;r[52]!==c.BlockDeviceMappings||r[53]!==d?(N=d&&c.BlockDeviceMappings&&c.BlockDeviceMappings.length>0&&c.BlockDeviceMappings.map(l),r[52]=c.BlockDeviceMappings,r[53]=d,r[54]=N):N=r[54];let P;return r[55]!==M||r[56]!==N?(P=(0,s.jsxs)(s.Fragment,{children:[M,N]}),r[55]=M,r[56]=N,r[57]=P):P=r[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/back-link.js b/spinifex/services/spinifexui/frontend/dist/assets/back-link.js index 0bb87632a..d7a600203 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/back-link.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/back-link.js @@ -1 +1 @@ -import{fs as e,ms as t,ts as n,ys as r}from"./index.js";var i=n(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),a=e(),o=r();function s(e){let n=(0,a.c)(7),r,s;n[0]===e?(r=n[1],s=n[2]):({children:r,...s}=e,n[0]=e,n[1]=r,n[2]=s);let c;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,o.jsx)(i,{className:`size-4`}),n[3]=c):c=n[3];let l;return n[4]!==r||n[5]!==s?(l=(0,o.jsxs)(t,{className:`mb-6 inline-flex items-center gap-2 text-sm`,...s,children:[c,r]}),n[4]=r,n[5]=s,n[6]=l):l=n[6],l}export{s as t}; \ No newline at end of file +import{bs as e,hs as t,ns as n,ps as r}from"./index.js";var i=n(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),a=r(),o=e();function s(e){let n=(0,a.c)(7),r,s;n[0]===e?(r=n[1],s=n[2]):({children:r,...s}=e,n[0]=e,n[1]=r,n[2]=s);let c;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,o.jsx)(i,{className:`size-4`}),n[3]=c):c=n[3];let l;return n[4]!==r||n[5]!==s?(l=(0,o.jsxs)(t,{className:`mb-6 inline-flex items-center gap-2 text-sm`,...s,children:[c,r]}),n[4]=r,n[5]=s,n[6]=l):l=n[6],l}export{s as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/badge.js b/spinifex/services/spinifexui/frontend/dist/assets/badge.js index 4689e830e..f1286172f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/badge.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/badge.js @@ -1 +1 @@ -import{Ao as e,ds as t,fs as n,ns as r,rs as i}from"./index.js";var a=n(),o=r(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-[0.625rem] font-medium whitespace-nowrap transition-all transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-2.5!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border bg-input/20 text-foreground dark:bg-input/30 [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function s(n){let r=(0,a.c)(13),s,c,l,u,d;if(r[0]!==n){let{className:a,variant:f,render:p,...m}=n;s=p,d=f===void 0?`default`:f,u=i,c=`span`,l=t({className:e(o({className:a,variant:d}))},m),r[0]=n,r[1]=s,r[2]=c,r[3]=l,r[4]=u,r[5]=d}else s=r[1],c=r[2],l=r[3],u=r[4],d=r[5];let f;r[6]===d?f=r[7]:(f={slot:`badge`,variant:d},r[6]=d,r[7]=f);let p;return r[8]!==s||r[9]!==c||r[10]!==l||r[11]!==f?(p={defaultTagName:c,props:l,render:s,state:f},r[8]=s,r[9]=c,r[10]=l,r[11]=f,r[12]=p):p=r[12],u(p)}export{s as t}; \ No newline at end of file +import{fs as e,is as t,jo as n,ps as r,rs as i}from"./index.js";var a=r(),o=i(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-[0.625rem] font-medium whitespace-nowrap transition-all transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-2.5!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border bg-input/20 text-foreground dark:bg-input/30 [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function s(r){let i=(0,a.c)(13),s,c,l,u,d;if(i[0]!==r){let{className:a,variant:f,render:p,...m}=r;s=p,d=f===void 0?`default`:f,u=t,c=`span`,l=e({className:n(o({className:a,variant:d}))},m),i[0]=r,i[1]=s,i[2]=c,i[3]=l,i[4]=u,i[5]=d}else s=i[1],c=i[2],l=i[3],u=i[4],d=i[5];let f;i[6]===d?f=i[7]:(f={slot:`badge`,variant:d},i[6]=d,i[7]=f);let p;return i[8]!==s||i[9]!==c||i[10]!==l||i[11]!==f?(p={defaultTagName:c,props:l,render:s,state:f},i[8]=s,i[9]=c,i[10]=l,i[11]=f,i[12]=p):p=i[12],u(p)}export{s as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/card.js b/spinifex/services/spinifexui/frontend/dist/assets/card.js index 74bcb9b62..baa56fd49 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/card.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/card.js @@ -1 +1 @@ -import{Ao as e,fs as t,ys as n}from"./index.js";var r=t(),i=n();function a(t){let n=(0,r.c)(10),a,o,s;n[0]===t?(a=n[1],o=n[2],s=n[3]):({className:a,size:s,...o}=t,n[0]=t,n[1]=a,n[2]=o,n[3]=s);let c=s===void 0?`default`:s,l;n[4]===a?l=n[5]:(l=e(`group/card flex flex-col gap-4 overflow-hidden rounded-lg bg-card py-4 text-xs/relaxed text-card-foreground ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg`,a),n[4]=a,n[5]=l);let u;return n[6]!==o||n[7]!==c||n[8]!==l?(u=(0,i.jsx)(`div`,{className:l,"data-size":c,"data-slot":`card`,...o}),n[6]=o,n[7]=c,n[8]=l,n[9]=u):u=n[9],u}function o(t){let n=(0,r.c)(8),a,o;n[0]===t?(a=n[1],o=n[2]):({className:a,...o}=t,n[0]=t,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=e(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-lg px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-header`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function s(t){let n=(0,r.c)(8),a,o;n[0]===t?(a=n[1],o=n[2]):({className:a,...o}=t,n[0]=t,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=e(`text-sm font-medium`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-title`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function c(t){let n=(0,r.c)(8),a,o;n[0]===t?(a=n[1],o=n[2]):({className:a,...o}=t,n[0]=t,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=e(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-action`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function l(t){let n=(0,r.c)(8),a,o;n[0]===t?(a=n[1],o=n[2]):({className:a,...o}=t,n[0]=t,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=e(`px-4 group-data-[size=sm]/card:px-3`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-content`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function u(t){let n=(0,r.c)(8),a,o;n[0]===t?(a=n[1],o=n[2]):({className:a,...o}=t,n[0]=t,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=e(`flex items-center rounded-b-lg px-4 group-data-[size=sm]/card:px-3 [.border-t]:pt-4 group-data-[size=sm]/card:[.border-t]:pt-3`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-footer`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}export{o as a,u as i,c as n,s as o,l as r,a as t}; \ No newline at end of file +import{bs as e,jo as t,ps as n}from"./index.js";var r=n(),i=e();function a(e){let n=(0,r.c)(10),a,o,s;n[0]===e?(a=n[1],o=n[2],s=n[3]):({className:a,size:s,...o}=e,n[0]=e,n[1]=a,n[2]=o,n[3]=s);let c=s===void 0?`default`:s,l;n[4]===a?l=n[5]:(l=t(`group/card flex flex-col gap-4 overflow-hidden rounded-lg bg-card py-4 text-xs/relaxed text-card-foreground ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg`,a),n[4]=a,n[5]=l);let u;return n[6]!==o||n[7]!==c||n[8]!==l?(u=(0,i.jsx)(`div`,{className:l,"data-size":c,"data-slot":`card`,...o}),n[6]=o,n[7]=c,n[8]=l,n[9]=u):u=n[9],u}function o(e){let n=(0,r.c)(8),a,o;n[0]===e?(a=n[1],o=n[2]):({className:a,...o}=e,n[0]=e,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=t(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-lg px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-header`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function s(e){let n=(0,r.c)(8),a,o;n[0]===e?(a=n[1],o=n[2]):({className:a,...o}=e,n[0]=e,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=t(`text-sm font-medium`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-title`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function c(e){let n=(0,r.c)(8),a,o;n[0]===e?(a=n[1],o=n[2]):({className:a,...o}=e,n[0]=e,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=t(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-action`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function l(e){let n=(0,r.c)(8),a,o;n[0]===e?(a=n[1],o=n[2]):({className:a,...o}=e,n[0]=e,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=t(`px-4 group-data-[size=sm]/card:px-3`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-content`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function u(e){let n=(0,r.c)(8),a,o;n[0]===e?(a=n[1],o=n[2]):({className:a,...o}=e,n[0]=e,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=t(`flex items-center rounded-b-lg px-4 group-data-[size=sm]/card:px-3 [.border-t]:pt-4 group-data-[size=sm]/card:[.border-t]:pt-3`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-footer`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}export{o as a,u as i,c as n,s as o,l as r,a 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 38e5294ca..a3f55d11c 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,t}from"./error-banner.js";import{Hr as n,Kr as r,Ur as i,Vr as a,bs as o,fs as s,kt as c,vs as l,ys as u,zs as d}from"./index.js";import{a as f,t as p}from"./field.js";import{a as m,i as h,l as g,n as _,o as v,r as y,s as ee,t as te}from"./alert-dialog.js";import{t as b}from"./textarea.js";var x=class extends r.classBuilder().ep(n).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`CertificateManager`,`ImportCertificate`,{}).n(`ACMClient`,`ImportCertificateCommand`).sc(a).build(){},S=d(o(),1),C=s(),w=new TextEncoder;function T(){let t=(0,C.c)(2),n=l(),r;return t[0]===n?r=t[1]:(r={mutationFn:E,onSuccess:()=>{n.invalidateQueries({queryKey:[`acm`,`certificates`]})}},t[0]=n,t[1]=r),e(r)}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 c().send(t)}var D=u();function O(e){let n=(0,C.c)(54),{open:r,onOpenChange:i,onImported:a}=e,[o,s]=(0,S.useState)(``),[c,l]=(0,S.useState)(``),[u,d]=(0,S.useState)(``),x=T(),w;n[0]===x?w=n[1]:(w=()=>{s(``),l(``),d(``),x.reset()},n[0]=x,n[1]=w);let E=w,O;n[2]!==i||n[3]!==E?(O=e=>{e||E(),i(e)},n[2]=i,n[3]=E,n[4]=O):O=n[4];let k=O,A;n[5]!==o||n[6]!==c?(A=o.trim().length>0&&c.trim().length>0,n[5]=o,n[6]=c,n[7]=A):A=n[7];let j=A,M;n[8]!==j||n[9]!==o||n[10]!==u||n[11]!==x||n[12]!==a||n[13]!==i||n[14]!==c||n[15]!==E?(M=async()=>{if(j)try{let e=await x.mutateAsync({certificate:o,privateKey:c,certificateChain:u});e.CertificateArn&&a(e.CertificateArn),E(),i(!1)}catch{}},n[8]=j,n[9]=o,n[10]=u,n[11]=x,n[12]=a,n[13]=i,n[14]=c,n[15]=E,n[16]=M):M=n[16];let N=M,P;n[17]===Symbol.for(`react.memo_cache_sentinel`)?(P={maxWidth:`36rem`,width:`calc(100vw - 2rem)`},n[17]=P):P=n[17];let F;n[18]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,D.jsxs)(ee,{children:[(0,D.jsx)(g,{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.`})]}),n[18]=F):F=n[18];let I;n[19]===x.error?I=n[20]:(I=x.error&&(0,D.jsx)(t,{error:x.error,msg:`Failed to import certificate`}),n[19]=x.error,n[20]=I);let L;n[21]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-body`,children:`Certificate body`})}),n[21]=L):L=n[21];let R;n[22]===Symbol.for(`react.memo_cache_sentinel`)?(R=e=>s(e.target.value),n[22]=R):R=n[22];let z;n[23]===o?z=n[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:o})]}),n[23]=o,n[24]=z);let B;n[25]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-key`,children:`Private key`})}),n[25]=B):B=n[25];let V;n[26]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>l(e.target.value),n[26]=V):V=n[26];let H;n[27]===c?H=n[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:c})]}),n[27]=c,n[28]=H);let U;n[29]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-chain`,children:`Certificate chain (optional)`})}),n[29]=U):U=n[29];let W;n[30]===Symbol.for(`react.memo_cache_sentinel`)?(W=e=>d(e.target.value),n[30]=W):W=n[30];let G;n[31]===u?G=n[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:u})]}),n[31]=u,n[32]=G);let K;n[33]!==z||n[34]!==H||n[35]!==G?(K=(0,D.jsxs)(`div`,{className:`min-w-0 space-y-4`,children:[z,H,G]}),n[33]=z,n[34]=H,n[35]=G,n[36]=K):K=n[36];let q;n[37]===x.isPending?q=n[38]:(q=(0,D.jsx)(y,{disabled:x.isPending,children:`Cancel`}),n[37]=x.isPending,n[38]=q);let J=!j||x.isPending,Y=x.isPending?`Importing…`:`Import`,X;n[39]!==N||n[40]!==J||n[41]!==Y?(X=(0,D.jsx)(_,{disabled:J,onClick:N,children:Y}),n[39]=N,n[40]=J,n[41]=Y,n[42]=X):X=n[42];let Z;n[43]!==q||n[44]!==X?(Z=(0,D.jsxs)(v,{children:[q,X]}),n[43]=q,n[44]=X,n[45]=Z):Z=n[45];let Q;n[46]!==K||n[47]!==Z||n[48]!==I?(Q=(0,D.jsxs)(h,{className:`grid-cols-[minmax(0,1fr)]`,style:P,children:[F,I,K,Z]}),n[46]=K,n[47]=Z,n[48]=I,n[49]=Q):Q=n[49];let $;return n[50]!==k||n[51]!==r||n[52]!==Q?($=(0,D.jsx)(te,{onOpenChange:k,open:r,children:Q}),n[50]=k,n[51]=r,n[52]=Q,n[53]=$):$=n[53],$}export{O as t}; \ No newline at end of file +import{n as e,t}from"./error-banner.js";import{Bs as n,Hr as r,Ur as i,Wr as a,bs as o,kt as s,ps as c,qr as l,xs as u,ys as d}from"./index.js";import{a as f,t as p}from"./field.js";import{a as m,i as h,l as g,n as _,o as v,r as y,s as ee,t as te}from"./alert-dialog.js";import{t as b}from"./textarea.js";var x=class extends l.classBuilder().ep(i).m(function(e,t,n,r){return[a(n,e.getEndpointParameterInstructions())]}).s(`CertificateManager`,`ImportCertificate`,{}).n(`ACMClient`,`ImportCertificateCommand`).sc(r).build(){},S=n(u(),1),C=c(),w=new TextEncoder;function T(){let t=(0,C.c)(2),n=d(),r;return t[0]===n?r=t[1]:(r={mutationFn:E,onSuccess:()=>{n.invalidateQueries({queryKey:[`acm`,`certificates`]})}},t[0]=n,t[1]=r),e(r)}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=o();function O(e){let n=(0,C.c)(54),{open:r,onOpenChange:i,onImported:a}=e,[o,s]=(0,S.useState)(``),[c,l]=(0,S.useState)(``),[u,d]=(0,S.useState)(``),x=T(),w;n[0]===x?w=n[1]:(w=()=>{s(``),l(``),d(``),x.reset()},n[0]=x,n[1]=w);let E=w,O;n[2]!==i||n[3]!==E?(O=e=>{e||E(),i(e)},n[2]=i,n[3]=E,n[4]=O):O=n[4];let k=O,A;n[5]!==o||n[6]!==c?(A=o.trim().length>0&&c.trim().length>0,n[5]=o,n[6]=c,n[7]=A):A=n[7];let j=A,M;n[8]!==j||n[9]!==o||n[10]!==u||n[11]!==x||n[12]!==a||n[13]!==i||n[14]!==c||n[15]!==E?(M=async()=>{if(j)try{let e=await x.mutateAsync({certificate:o,privateKey:c,certificateChain:u});e.CertificateArn&&a(e.CertificateArn),E(),i(!1)}catch{}},n[8]=j,n[9]=o,n[10]=u,n[11]=x,n[12]=a,n[13]=i,n[14]=c,n[15]=E,n[16]=M):M=n[16];let N=M,P;n[17]===Symbol.for(`react.memo_cache_sentinel`)?(P={maxWidth:`36rem`,width:`calc(100vw - 2rem)`},n[17]=P):P=n[17];let F;n[18]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,D.jsxs)(ee,{children:[(0,D.jsx)(g,{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.`})]}),n[18]=F):F=n[18];let I;n[19]===x.error?I=n[20]:(I=x.error&&(0,D.jsx)(t,{error:x.error,msg:`Failed to import certificate`}),n[19]=x.error,n[20]=I);let L;n[21]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-body`,children:`Certificate body`})}),n[21]=L):L=n[21];let R;n[22]===Symbol.for(`react.memo_cache_sentinel`)?(R=e=>s(e.target.value),n[22]=R):R=n[22];let z;n[23]===o?z=n[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:o})]}),n[23]=o,n[24]=z);let B;n[25]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-key`,children:`Private key`})}),n[25]=B):B=n[25];let V;n[26]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>l(e.target.value),n[26]=V):V=n[26];let H;n[27]===c?H=n[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:c})]}),n[27]=c,n[28]=H);let U;n[29]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-chain`,children:`Certificate chain (optional)`})}),n[29]=U):U=n[29];let W;n[30]===Symbol.for(`react.memo_cache_sentinel`)?(W=e=>d(e.target.value),n[30]=W):W=n[30];let G;n[31]===u?G=n[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:u})]}),n[31]=u,n[32]=G);let K;n[33]!==z||n[34]!==H||n[35]!==G?(K=(0,D.jsxs)(`div`,{className:`min-w-0 space-y-4`,children:[z,H,G]}),n[33]=z,n[34]=H,n[35]=G,n[36]=K):K=n[36];let q;n[37]===x.isPending?q=n[38]:(q=(0,D.jsx)(y,{disabled:x.isPending,children:`Cancel`}),n[37]=x.isPending,n[38]=q);let J=!j||x.isPending,Y=x.isPending?`Importing…`:`Import`,X;n[39]!==N||n[40]!==J||n[41]!==Y?(X=(0,D.jsx)(_,{disabled:J,onClick:N,children:Y}),n[39]=N,n[40]=J,n[41]=Y,n[42]=X):X=n[42];let Z;n[43]!==q||n[44]!==X?(Z=(0,D.jsxs)(v,{children:[q,X]}),n[43]=q,n[44]=X,n[45]=Z):Z=n[45];let Q;n[46]!==K||n[47]!==Z||n[48]!==I?(Q=(0,D.jsxs)(h,{className:`grid-cols-[minmax(0,1fr)]`,style:P,children:[F,I,K,Z]}),n[46]=K,n[47]=Z,n[48]=I,n[49]=Q):Q=n[49];let $;return n[50]!==k||n[51]!==r||n[52]!==Q?($=(0,D.jsx)(te,{onOpenChange:k,open:r,children:Q}),n[50]=k,n[51]=r,n[52]=Q,n[53]=$):$=n[53],$}export{O as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/check.js b/spinifex/services/spinifexui/frontend/dist/assets/check.js index 35208be17..4c2c90e47 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/check.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/check.js @@ -1 +1 @@ -import{ts as e}from"./index.js";var t=e(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t}; \ No newline at end of file +import{ns as e}from"./index.js";var t=e(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js b/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js index 518ed4dc0..d0e970a28 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js @@ -1 +1 @@ -import{ts as e}from"./index.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t}; \ No newline at end of file +import{ns as e}from"./index.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js b/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js index 17f7a8ad7..334e559e0 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js @@ -1 +1 @@ -import{ts as e}from"./index.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{t}; \ No newline at end of file +import{ns as e}from"./index.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js b/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js index eb96624f1..2b9ada438 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js @@ -1,3 +1,3 @@ -import{t as e}from"./check.js";import{t}from"./chevron-down.js";import{t as n}from"./copy.js";import{Ao as r,Do as i,bs as a,fs as o,ts as s,ys as c,zs as l}from"./index.js";import{t as u}from"./use-copy-to-clipboard.js";var d=s(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),f=o(),p=l(a(),1),m=c(),h={bin:`text-tactical-cyan font-semibold`,flag:`text-tactical-amber`,value:`text-foreground`,comment:`text-muted-foreground italic`,variable:`text-tactical-green font-semibold`};function g(e){return e.map(e=>e.parts.map(e=>e.value).join(``)).join(` +import{t as e}from"./check.js";import{t}from"./chevron-down.js";import{t as n}from"./copy.js";import{Bs as r,Oo as i,bs as a,jo as o,ns as s,ps as c,xs as l}from"./index.js";import{t as u}from"./use-copy-to-clipboard.js";var d=s(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),f=c(),p=r(l(),1),m=a(),h={bin:`text-tactical-cyan font-semibold`,flag:`text-tactical-amber`,value:`text-foreground`,comment:`text-muted-foreground italic`,variable:`text-tactical-green font-semibold`};function g(e){return e.map(e=>e.parts.map(e=>e.value).join(``)).join(` -`)}function _(a){let o=(0,f.c)(18),{commands:s}=a,[c,l]=(0,p.useState)(!1),{copied:h,copy:_}=u();if(s.length===0)return null;let b;o[0]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>l(y),o[0]=b):b=o[0];let x,S;o[1]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,m.jsx)(d,{className:`size-3.5`}),S=(0,m.jsx)(`span`,{children:`AWS CLI`}),o[1]=x,o[2]=S):(x=o[1],S=o[2]);let C=c&&`rotate-180`,w;o[3]===C?w=o[4]:(w=r(`ml-auto size-3.5 transition-transform`,C),o[3]=C,o[4]=w);let T;o[5]===w?T=o[6]:(T=(0,m.jsx)(t,{className:w}),o[5]=w,o[6]=T);let E;o[7]!==c||o[8]!==T?(E=(0,m.jsxs)(`button`,{type:`button`,onClick:b,className:`flex w-full items-center gap-2 px-3 py-2 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground`,"aria-expanded":c,children:[x,S,T]}),o[7]=c,o[8]=T,o[9]=E):E=o[9];let D;o[10]!==s||o[11]!==h||o[12]!==_||o[13]!==c?(D=c&&(0,m.jsxs)(`div`,{className:`border-t border-border`,children:[(0,m.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border px-3 py-1.5`,children:[(0,m.jsx)(`span`,{className:`text-[0.625rem] text-muted-foreground`,children:s.length>1?`${s.length} commands`:`command`}),(0,m.jsxs)(i,{type:`button`,variant:`ghost`,size:`xs`,onClick:async()=>await _(g(s)),children:[h?(0,m.jsx)(e,{className:`size-2.5`}):(0,m.jsx)(n,{className:`size-2.5`}),h?`Copied`:`Copy`]})]}),(0,m.jsx)(`div`,{className:`overflow-x-auto p-3`,children:s.map((e,t)=>(0,m.jsxs)(`div`,{children:[s.length>1&&(0,m.jsx)(`div`,{className:`mb-1 text-[0.625rem] font-medium text-muted-foreground`,children:e.label}),(0,m.jsx)(`pre`,{className:`font-mono text-xs/relaxed`,children:(0,m.jsx)(`code`,{children:e.parts.map(v)})}),tl(y),a[0]=b):b=a[0];let x,S;a[1]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,m.jsx)(d,{className:`size-3.5`}),S=(0,m.jsx)(`span`,{children:`AWS CLI`}),a[1]=x,a[2]=S):(x=a[1],S=a[2]);let C=c&&`rotate-180`,w;a[3]===C?w=a[4]:(w=o(`ml-auto size-3.5 transition-transform`,C),a[3]=C,a[4]=w);let T;a[5]===w?T=a[6]:(T=(0,m.jsx)(t,{className:w}),a[5]=w,a[6]=T);let E;a[7]!==c||a[8]!==T?(E=(0,m.jsxs)(`button`,{type:`button`,onClick:b,className:`flex w-full items-center gap-2 px-3 py-2 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground`,"aria-expanded":c,children:[x,S,T]}),a[7]=c,a[8]=T,a[9]=E):E=a[9];let D;a[10]!==s||a[11]!==h||a[12]!==_||a[13]!==c?(D=c&&(0,m.jsxs)(`div`,{className:`border-t border-border`,children:[(0,m.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border px-3 py-1.5`,children:[(0,m.jsx)(`span`,{className:`text-[0.625rem] text-muted-foreground`,children:s.length>1?`${s.length} commands`:`command`}),(0,m.jsxs)(i,{type:`button`,variant:`ghost`,size:`xs`,onClick:async()=>await _(g(s)),children:[h?(0,m.jsx)(e,{className:`size-2.5`}):(0,m.jsx)(n,{className:`size-2.5`}),h?`Copied`:`Copy`]})]}),(0,m.jsx)(`div`,{className:`overflow-x-auto p-3`,children:s.map((e,t)=>(0,m.jsxs)(`div`,{children:[s.length>1&&(0,m.jsx)(`div`,{className:`mb-1 text-[0.625rem] font-medium text-muted-foreground`,children:e.label}),(0,m.jsx)(`pre`,{className:`font-mono text-xs/relaxed`,children:(0,m.jsx)(`code`,{children:e.parts.map(v)})}),t{let n=!f,r=o(t,e.nativeEvent);if(a(n,r),r.isCanceled)return;let i=I.current;P.current===`css-animation`&&i!=null&&i.style.removeProperty(`animation-name`),!k&&!j&&(P.current!=null&&P.current!==`css-animation`&&!m&&n&&h(!0),P.current===`css-animation`&&(!_&&n&&v(!0),!m&&n&&h(!0))),p(n),P.current===`none`&&m&&!n&&h(!1)});return d(()=>{l&&P.current===`none`&&!f&&h(!1)},[l,f,n,h]),w.useMemo(()=>({abortControllerRef:N,animationTypeRef:P,disabled:c,handleTrigger:R,height:y,mounted:m,open:f,panelId:O,panelRef:I,runOnceAnimationsFinish:L,setDimensions:C,setHiddenUntilFound:A,setKeepMounted:M,setMounted:h,setOpen:p,setPanelIdState:D,setVisible:v,transitionDimensionRef:F,transitionStatus:g,visible:_,width:x}),[N,P,c,R,y,m,f,O,I,L,C,A,M,h,p,v,F,g,_,x])}var E=w.createContext(void 0);function D(){let e=w.useContext(E);if(e===void 0)throw Error(y(15));return e}var O=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=r.startingStyle]=`startingStyle`,e[e.endingStyle=r.endingStyle]=`endingStyle`,e}({}),k=function(e){return e.panelOpen=`data-panel-open`,e}({}),A={[O.open]:``},j={[O.closed]:``},M={open(e){return e?{[k.panelOpen]:``}:null}},N={open(e){return e?A:j},...l},P=x(),F=w.forwardRef(function(e,t){let{render:n,className:r,defaultOpen:a=!1,disabled:o=!1,onOpenChange:s,open:c,style:l,...u}=e,d=i(s),f=T({open:c,defaultOpen:a,onOpenChange:d,disabled:o}),p=w.useMemo(()=>({open:f.open,disabled:f.disabled,transitionStatus:f.transitionStatus}),[f.open,f.disabled,f.transitionStatus]),m=w.useMemo(()=>({...f,onOpenChange:d,state:p}),[f,d,p]),h=_(`div`,e,{state:p,ref:t,props:u,stateAttributesMapping:N});return(0,P.jsx)(E.Provider,{value:m,children:h})}),I={...M,...l},L=w.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:a,disabled:o}=D(),{className:s,disabled:l=o,id:u,render:d,nativeButton:f=!0,style:p,...m}=e,{getButtonProps:h,buttonRef:g}=c({disabled:l,focusableWhenDisabled:!0,native:f}),v=w.useMemo(()=>({"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i}),[n,r,i]);return _(`button`,e,{state:a,ref:[t,g],props:[v,m,h],stateAttributesMapping:I})}),R=function(e){return e.disabled=`data-disabled`,e.orientation=`data-orientation`,e}({});function z(e){let{abortControllerRef:t,animationTypeRef:r,externalRef:s,height:c,hiddenUntilFound:l,keepMounted:u,id:m,mounted:g,onOpenChange:_,open:y,panelRef:b,runOnceAnimationsFinish:x,setDimensions:S,setMounted:C,setOpen:T,setVisible:E,transitionDimensionRef:D,visible:k,width:A}=e,j=w.useRef(!1),M=w.useRef(null),N=w.useRef(y),P=w.useRef(y),F=n(),I=w.useMemo(()=>r.current===`css-animation`?!k:!y&&!g,[y,g,k,r]),L=h(s,b,i(e=>{if(!e)return;if(r.current==null||D.current==null){let t=getComputedStyle(e),n=t.animationName!==`none`&&t.animationName!==``,i=t.transitionDuration!==`0s`&&t.transitionDuration!==``;n&&i||(t.animationName===`none`&&t.transitionDuration!==`0s`?r.current=`css-transition`:t.animationName!==`none`&&t.transitionDuration===`0s`?r.current=`css-animation`:r.current=`none`),e.getAttribute(R.orientation)===`horizontal`||t.transitionProperty.indexOf(`width`)>-1?D.current=`width`:D.current=`height`}if(r.current!==`css-transition`)return;(c===void 0||A===void 0)&&(S({height:e.scrollHeight,width:e.scrollWidth}),P.current&&e.style.setProperty(`transition-duration`,`0s`));let t=-1,n=-1;return t=f.request(()=>{P.current=!1,n=f.request(()=>{setTimeout(()=>{e.style.removeProperty(`transition-duration`)})})}),()=>{f.cancel(t),f.cancel(n)}}));return d(()=>{if(r.current!==`css-transition`)return;let e=b.current;if(!e)return;let n=-1;if(t.current!=null&&(t.current.abort(),t.current=null),y){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,`initial`,`important`)}),!P.current&&!u&&e.setAttribute(O.startingStyle,``),S({height:e.scrollHeight,width:e.scrollWidth}),n=f.request(()=>{Object.entries(t).forEach(([t,n])=>{n===``?e.style.removeProperty(t):e.style.setProperty(t,n)})})}else{if(e.scrollHeight===0&&e.scrollWidth===0)return;S({height:e.scrollHeight,width:e.scrollWidth});let n=new AbortController;t.current=n;let r=n.signal,i=null,a=O.endingStyle;return i=new MutationObserver(o=>{o.some(e=>e.type===`attributes`&&e.attributeName===a)&&(i?.disconnect(),i=null,x(()=>{S({height:0,width:0}),e.style.removeProperty(`content-visibility`),C(!1),t.current===n&&(t.current=null)},r))}),i.observe(e,{attributes:!0,attributeFilter:[a]}),()=>{i?.disconnect(),F.cancel(),t.current===n&&(n.abort(),t.current=null)}}return()=>{f.cancel(n)}},[t,r,F,l,u,g,y,b,x,S,C]),d(()=>{if(r.current!==`css-animation`)return;let e=b.current;e&&(M.current=e.style.animationName||M.current,e.style.setProperty(`animation-name`,`none`),S({height:e.scrollHeight,width:e.scrollWidth}),!N.current&&!j.current&&e.style.removeProperty(`animation-name`),y?(t.current!=null&&(t.current.abort(),t.current=null),C(!0),E(!0)):(t.current=new AbortController,x(()=>{C(!1),E(!1),t.current=null},t.current.signal)))},[t,r,y,b,x,S,C,E,k]),v(()=>{let e=f.request(()=>{N.current=!1});return()=>f.cancel(e)}),d(()=>{if(!l)return;let e=b.current;if(!e)return;let t=-1,n=-1;return y&&j.current&&(e.style.transitionDuration=`0s`,S({height:e.scrollHeight,width:e.scrollWidth}),t=f.request(()=>{j.current=!1,n=f.request(()=>{setTimeout(()=>{e.style.removeProperty(`transition-duration`)})})})),()=>{f.cancel(t),f.cancel(n)}},[l,y,b,S]),d(()=>{let e=b.current;e&&l&&I&&(e.setAttribute(`hidden`,`until-found`),r.current===`css-transition`&&e.setAttribute(O.startingStyle,``))},[l,I,r,b]),w.useEffect(function(){let e=b.current;if(!e)return;function t(e){j.current=!0,T(!0),_(!0,o(a,e))}return p(e,`beforematch`,t)},[_,b,T]),w.useMemo(()=>({props:{hidden:I,id:m,ref:L}}),[I,m,L])}var B=function(e){return e.collapsiblePanelHeight=`--collapsible-panel-height`,e.collapsiblePanelWidth=`--collapsible-panel-width`,e}({}),V=w.forwardRef(function(t,n){let{className:r,hiddenUntilFound:i,keepMounted:a,render:o,id:s,style:c,...l}=t,{abortControllerRef:u,animationTypeRef:f,height:p,mounted:m,onOpenChange:h,open:g,panelId:v,panelRef:y,runOnceAnimationsFinish:b,setDimensions:x,setHiddenUntilFound:S,setKeepMounted:C,setMounted:T,setPanelIdState:E,setOpen:O,setVisible:k,state:A,transitionDimensionRef:j,visible:M,width:P,transitionStatus:F}=D(),I=i??!1,L=a??!1;d(()=>{if(s)return E(s),()=>{E(void 0)}},[s,E]),d(()=>{S(I)},[S,I]),d(()=>{C(L)},[C,L]);let{props:R}=z({abortControllerRef:u,animationTypeRef:f,externalRef:n,height:p,hiddenUntilFound:I,id:v,keepMounted:L,mounted:m,onOpenChange:h,open:g,panelRef:y,runOnceAnimationsFinish:b,setDimensions:x,setMounted:T,setOpen:O,setVisible:k,transitionDimensionRef:j,visible:M,width:P});e({open:g&&F===`idle`,ref:y,onComplete(){g&&x({height:void 0,width:void 0})}});let V=_(`div`,t,{state:w.useMemo(()=>({...A,transitionStatus:F}),[A,F]),ref:[n,y],props:[R,{style:{[B.collapsiblePanelHeight]:p===void 0?`auto`:`${p}px`,[B.collapsiblePanelWidth]:P===void 0?`auto`:`${P}px`}},l],stateAttributesMapping:N});return L||I||m?V:null}),H=g();function U(e){let t=(0,H.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,P.jsx)(F,{"data-slot":`collapsible`,...n}),t[2]=n,t[3]=r),r}function W(e){let t=(0,H.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,P.jsx)(L,{"data-slot":`collapsible-trigger`,...n}),t[2]=n,t[3]=r),r}function G(e){let t=(0,H.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,P.jsx)(V,{"data-slot":`collapsible-content`,...n}),t[2]=n,t[3]=r),r}export{G as n,W as r,U as t}; \ No newline at end of file +import{Ba as e,Bs as t,Ga as n,Ha as r,Ho as i,Ia as a,Ja as o,Ka as s,Pa as c,To as l,Ua as u,Uo as d,Va as f,Wa as p,as as m,bs as h,ds as g,ka as _,ls as v,ps as y,va as b,xs as x,za as S,zo as C}from"./index.js";var w=t(x());function T(t){let{open:n,defaultOpen:o,onOpenChange:s,disabled:c}=t,u=n!==void 0,[f,p]=S({controlled:n,default:o,name:`Collapsible`,state:`open`}),{mounted:m,setMounted:h,transitionStatus:g}=e(f,!0,!0),[v,y]=w.useState(f),[{height:b,width:x},C]=w.useState({height:void 0,width:void 0}),T=l(),[E,D]=w.useState(),O=E??T,[k,A]=w.useState(!1),[j,M]=w.useState(!1),N=w.useRef(null),P=w.useRef(null),F=w.useRef(null),I=w.useRef(null),L=r(I,!1),R=d(e=>{let t=!f,n=_(a,e.nativeEvent);if(s(t,n),n.isCanceled)return;let r=I.current;P.current===`css-animation`&&r!=null&&r.style.removeProperty(`animation-name`),!k&&!j&&(P.current!=null&&P.current!==`css-animation`&&!m&&t&&h(!0),P.current===`css-animation`&&(!v&&t&&y(!0),!m&&t&&h(!0))),p(t),P.current===`none`&&m&&!t&&h(!1)});return i(()=>{u&&P.current===`none`&&!f&&h(!1)},[u,f,n,h]),w.useMemo(()=>({abortControllerRef:N,animationTypeRef:P,disabled:c,handleTrigger:R,height:b,mounted:m,open:f,panelId:O,panelRef:I,runOnceAnimationsFinish:L,setDimensions:C,setHiddenUntilFound:A,setKeepMounted:M,setMounted:h,setOpen:p,setPanelIdState:D,setVisible:y,transitionDimensionRef:F,transitionStatus:g,visible:v,width:x}),[N,P,c,R,b,m,f,O,I,L,C,A,M,h,p,y,F,g,v,x])}var E=w.createContext(void 0);function D(){let e=w.useContext(E);if(e===void 0)throw Error(g(15));return e}var O=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=u.startingStyle]=`startingStyle`,e[e.endingStyle=u.endingStyle]=`endingStyle`,e}({}),k=function(e){return e.panelOpen=`data-panel-open`,e}({}),A={[O.open]:``},j={[O.closed]:``},M={open(e){return e?{[k.panelOpen]:``}:null}},N={open(e){return e?A:j},...p},P=h(),F=w.forwardRef(function(e,t){let{render:n,className:r,defaultOpen:i=!1,disabled:a=!1,onOpenChange:o,open:s,style:c,...l}=e,u=d(o),f=T({open:s,defaultOpen:i,onOpenChange:u,disabled:a}),p=w.useMemo(()=>({open:f.open,disabled:f.disabled,transitionStatus:f.transitionStatus}),[f.open,f.disabled,f.transitionStatus]),h=w.useMemo(()=>({...f,onOpenChange:u,state:p}),[f,u,p]),g=m(`div`,e,{state:p,ref:t,props:l,stateAttributesMapping:N});return(0,P.jsx)(E.Provider,{value:h,children:g})}),I={...M,...p},L=w.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:a,disabled:o}=D(),{className:s,disabled:c=o,id:l,render:u,nativeButton:d=!0,style:f,...p}=e,{getButtonProps:h,buttonRef:g}=C({disabled:c,focusableWhenDisabled:!0,native:d}),_=w.useMemo(()=>({"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i}),[n,r,i]);return m(`button`,e,{state:a,ref:[t,g],props:[_,p,h],stateAttributesMapping:I})}),R=function(e){return e.disabled=`data-disabled`,e.orientation=`data-orientation`,e}({});function z(e){let{abortControllerRef:t,animationTypeRef:r,externalRef:a,height:l,hiddenUntilFound:u,keepMounted:f,id:p,mounted:m,onOpenChange:h,open:g,panelRef:y,runOnceAnimationsFinish:x,setDimensions:S,setMounted:C,setOpen:T,setVisible:E,transitionDimensionRef:D,visible:k,width:A}=e,j=w.useRef(!1),M=w.useRef(null),N=w.useRef(g),P=w.useRef(g),F=s(),I=w.useMemo(()=>r.current===`css-animation`?!k:!g&&!m,[g,m,k,r]),L=v(a,y,d(e=>{if(!e)return;if(r.current==null||D.current==null){let t=getComputedStyle(e),n=t.animationName!==`none`&&t.animationName!==``,i=t.transitionDuration!==`0s`&&t.transitionDuration!==``;n&&i||(t.animationName===`none`&&t.transitionDuration!==`0s`?r.current=`css-transition`:t.animationName!==`none`&&t.transitionDuration===`0s`?r.current=`css-animation`:r.current=`none`),e.getAttribute(R.orientation)===`horizontal`||t.transitionProperty.indexOf(`width`)>-1?D.current=`width`:D.current=`height`}if(r.current!==`css-transition`)return;(l===void 0||A===void 0)&&(S({height:e.scrollHeight,width:e.scrollWidth}),P.current&&e.style.setProperty(`transition-duration`,`0s`));let t=-1,i=-1;return t=n.request(()=>{P.current=!1,i=n.request(()=>{setTimeout(()=>{e.style.removeProperty(`transition-duration`)})})}),()=>{n.cancel(t),n.cancel(i)}}));return i(()=>{if(r.current!==`css-transition`)return;let e=y.current;if(!e)return;let i=-1;if(t.current!=null&&(t.current.abort(),t.current=null),g){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,`initial`,`important`)}),!P.current&&!f&&e.setAttribute(O.startingStyle,``),S({height:e.scrollHeight,width:e.scrollWidth}),i=n.request(()=>{Object.entries(t).forEach(([t,n])=>{n===``?e.style.removeProperty(t):e.style.setProperty(t,n)})})}else{if(e.scrollHeight===0&&e.scrollWidth===0)return;S({height:e.scrollHeight,width:e.scrollWidth});let n=new AbortController;t.current=n;let r=n.signal,i=null,a=O.endingStyle;return i=new MutationObserver(o=>{o.some(e=>e.type===`attributes`&&e.attributeName===a)&&(i?.disconnect(),i=null,x(()=>{S({height:0,width:0}),e.style.removeProperty(`content-visibility`),C(!1),t.current===n&&(t.current=null)},r))}),i.observe(e,{attributes:!0,attributeFilter:[a]}),()=>{i?.disconnect(),F.cancel(),t.current===n&&(n.abort(),t.current=null)}}return()=>{n.cancel(i)}},[t,r,F,u,f,m,g,y,x,S,C]),i(()=>{if(r.current!==`css-animation`)return;let e=y.current;e&&(M.current=e.style.animationName||M.current,e.style.setProperty(`animation-name`,`none`),S({height:e.scrollHeight,width:e.scrollWidth}),!N.current&&!j.current&&e.style.removeProperty(`animation-name`),g?(t.current!=null&&(t.current.abort(),t.current=null),C(!0),E(!0)):(t.current=new AbortController,x(()=>{C(!1),E(!1),t.current=null},t.current.signal)))},[t,r,g,y,x,S,C,E,k]),o(()=>{let e=n.request(()=>{N.current=!1});return()=>n.cancel(e)}),i(()=>{if(!u)return;let e=y.current;if(!e)return;let t=-1,r=-1;return g&&j.current&&(e.style.transitionDuration=`0s`,S({height:e.scrollHeight,width:e.scrollWidth}),t=n.request(()=>{j.current=!1,r=n.request(()=>{setTimeout(()=>{e.style.removeProperty(`transition-duration`)})})})),()=>{n.cancel(t),n.cancel(r)}},[u,g,y,S]),i(()=>{let e=y.current;e&&u&&I&&(e.setAttribute(`hidden`,`until-found`),r.current===`css-transition`&&e.setAttribute(O.startingStyle,``))},[u,I,r,y]),w.useEffect(function(){let e=y.current;if(!e)return;function t(e){j.current=!0,T(!0),h(!0,_(c,e))}return b(e,`beforematch`,t)},[h,y,T]),w.useMemo(()=>({props:{hidden:I,id:p,ref:L}}),[I,p,L])}var B=function(e){return e.collapsiblePanelHeight=`--collapsible-panel-height`,e.collapsiblePanelWidth=`--collapsible-panel-width`,e}({}),V=w.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:a,render:o,id:s,style:c,...l}=e,{abortControllerRef:u,animationTypeRef:d,height:p,mounted:h,onOpenChange:g,open:_,panelId:v,panelRef:y,runOnceAnimationsFinish:b,setDimensions:x,setHiddenUntilFound:S,setKeepMounted:C,setMounted:T,setPanelIdState:E,setOpen:O,setVisible:k,state:A,transitionDimensionRef:j,visible:M,width:P,transitionStatus:F}=D(),I=r??!1,L=a??!1;i(()=>{if(s)return E(s),()=>{E(void 0)}},[s,E]),i(()=>{S(I)},[S,I]),i(()=>{C(L)},[C,L]);let{props:R}=z({abortControllerRef:u,animationTypeRef:d,externalRef:t,height:p,hiddenUntilFound:I,id:v,keepMounted:L,mounted:h,onOpenChange:g,open:_,panelRef:y,runOnceAnimationsFinish:b,setDimensions:x,setMounted:T,setOpen:O,setVisible:k,transitionDimensionRef:j,visible:M,width:P});f({open:_&&F===`idle`,ref:y,onComplete(){_&&x({height:void 0,width:void 0})}});let V=m(`div`,e,{state:w.useMemo(()=>({...A,transitionStatus:F}),[A,F]),ref:[t,y],props:[R,{style:{[B.collapsiblePanelHeight]:p===void 0?`auto`:`${p}px`,[B.collapsiblePanelWidth]:P===void 0?`auto`:`${P}px`}},l],stateAttributesMapping:N});return L||I||h?V:null}),H=y();function U(e){let t=(0,H.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,P.jsx)(F,{"data-slot":`collapsible`,...n}),t[2]=n,t[3]=r),r}function W(e){let t=(0,H.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,P.jsx)(L,{"data-slot":`collapsible-trigger`,...n}),t[2]=n,t[3]=r),r}function G(e){let t=(0,H.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,P.jsx)(V,{"data-slot":`collapsible-content`,...n}),t[2]=n,t[3]=r),r}export{G as n,W as r,U as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/copy.js b/spinifex/services/spinifexui/frontend/dist/assets/copy.js index bc4ee6d6a..ff6441285 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/copy.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/copy.js @@ -1 +1 @@ -import{ts as e}from"./index.js";var t=e(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t}; \ No newline at end of file +import{ns as e}from"./index.js";var t=e(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-bucket.js b/spinifex/services/spinifexui/frontend/dist/assets/create-bucket.js index 8474d03ad..fba313e8f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-bucket.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-bucket.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./cli-command-panel.js";import{t as r}from"./s3.js";import{Da as i,bi as a,fs as o,hs as s,vi as c,ys as l}from"./index.js";import{a as u,i as d,t as f}from"./zod.js";import{t as p}from"./form-actions.js";import{t as m}from"./page-heading.js";import{a as h,r as g,t as _}from"./field.js";var v=o(),y=c({bucketName:a().min(3,`Bucket name must be at least 3 characters`).max(63,`Bucket name must be at most 63 characters`).regex(/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/,`Must start and end with a lowercase letter or number`).regex(/^[a-z0-9.-]+$/,`Only lowercase letters, numbers, hyphens, and periods allowed`).refine(e=>!e.includes(`..`),`Must not contain consecutive periods`).refine(e=>!(e.includes(`.-`)||e.includes(`-.`)),`Must not contain adjacent period and hyphen`)}),b=l();function x(){let a=(0,v.c)(44),o=s(),c=r(),l;a[0]===Symbol.for(`react.memo_cache_sentinel`)?(l={resolver:f(y)},a[0]=l):l=a[0];let{handleSubmit:x,register:C,control:w,formState:T}=d(l),{errors:E,isSubmitting:D}=T,O;a[1]===w?O=a[2]:(O={control:w},a[1]=w,a[2]=O);let k=u(O),A;a[3]===k?A=a[4]:(A=e=>e?k[e]:void 0,a[3]=k,a[4]=A);let j=A,M;a[5]!==c||a[6]!==o?(M=async e=>{await c.mutateAsync(e),o({to:`/s3/ls`})},a[5]=c,a[6]=o,a[7]=M):M=a[7];let N=M,P,F;a[8]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,b.jsx)(t,{to:`/s3/ls`,children:`Back to buckets`}),F=(0,b.jsx)(m,{title:`Create Bucket`}),a[8]=P,a[9]=F):(P=a[8],F=a[9]);let I;a[10]===c.error?I=a[11]:(I=c.error&&(0,b.jsx)(e,{error:c.error,msg:`Failed to create bucket`}),a[10]=c.error,a[11]=I);let L;a[12]!==x||a[13]!==N?(L=x(N),a[12]=x,a[13]=N,a[14]=L):L=a[14];let R;a[15]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,b.jsx)(h,{children:(0,b.jsx)(`label`,{htmlFor:`bucketName`,children:`Bucket Name`})}),a[15]=R):R=a[15];let z=!!E.bucketName,B;a[16]===C?B=a[17]:(B=C(`bucketName`),a[16]=C,a[17]=B);let V;a[18]!==z||a[19]!==B?(V=(0,b.jsx)(i,{"aria-invalid":z,id:`bucketName`,placeholder:`my-bucket`,type:`text`,...B}),a[18]=z,a[19]=B,a[20]=V):V=a[20];let H;a[21]===E.bucketName?H=a[22]:(H=(0,b.jsx)(g,{errors:[E.bucketName]}),a[21]=E.bucketName,a[22]=H);let U;a[23]!==V||a[24]!==H?(U=(0,b.jsxs)(_,{children:[R,V,H]}),a[23]=V,a[24]=H,a[25]=U):U=a[25];let W;a[26]===j?W=a[27]:(W=S(j),a[26]=j,a[27]=W);let G;a[28]===W?G=a[29]:(G=(0,b.jsx)(n,{commands:W}),a[28]=W,a[29]=G);let K;a[30]===o?K=a[31]:(K=async()=>await o({to:`/s3/ls`}),a[30]=o,a[31]=K);let q;a[32]!==c.isPending||a[33]!==D||a[34]!==K?(q=(0,b.jsx)(p,{isPending:c.isPending,isSubmitting:D,onCancel:K,pendingLabel:`Creating…`,submitLabel:`Create Bucket`}),a[32]=c.isPending,a[33]=D,a[34]=K,a[35]=q):q=a[35];let J;a[36]!==U||a[37]!==G||a[38]!==q||a[39]!==L?(J=(0,b.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:L,children:[U,G,q]}),a[36]=U,a[37]=G,a[38]=q,a[39]=L,a[40]=J):J=a[40];let Y;return a[41]!==J||a[42]!==I?(Y=(0,b.jsxs)(b.Fragment,{children:[P,F,I,J]}),a[41]=J,a[42]=I,a[43]=Y):Y=a[43],Y}function S(e){let t=e(`bucketName`);return[{label:`Create Bucket`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws s3api create-bucket`},{type:`flag`,value:` --bucket`},{type:`value`,value:` ${(typeof t==`string`?t:``)||``}`}]}]}export{x as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./cli-command-panel.js";import{t as r}from"./s3.js";import{Oa as i,bs as a,gs as o,ps as s,xi as c,yi as l}from"./index.js";import{a as u,i as d,t as f}from"./zod.js";import{t as p}from"./form-actions.js";import{t as m}from"./page-heading.js";import{a as h,r as g,t as _}from"./field.js";var v=s(),y=l({bucketName:c().min(3,`Bucket name must be at least 3 characters`).max(63,`Bucket name must be at most 63 characters`).regex(/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/,`Must start and end with a lowercase letter or number`).regex(/^[a-z0-9.-]+$/,`Only lowercase letters, numbers, hyphens, and periods allowed`).refine(e=>!e.includes(`..`),`Must not contain consecutive periods`).refine(e=>!(e.includes(`.-`)||e.includes(`-.`)),`Must not contain adjacent period and hyphen`)}),b=a();function x(){let a=(0,v.c)(44),s=o(),c=r(),l;a[0]===Symbol.for(`react.memo_cache_sentinel`)?(l={resolver:f(y)},a[0]=l):l=a[0];let{handleSubmit:x,register:C,control:w,formState:T}=d(l),{errors:E,isSubmitting:D}=T,O;a[1]===w?O=a[2]:(O={control:w},a[1]=w,a[2]=O);let k=u(O),A;a[3]===k?A=a[4]:(A=e=>e?k[e]:void 0,a[3]=k,a[4]=A);let j=A,M;a[5]!==c||a[6]!==s?(M=async e=>{await c.mutateAsync(e),s({to:`/s3/ls`})},a[5]=c,a[6]=s,a[7]=M):M=a[7];let N=M,P,F;a[8]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,b.jsx)(t,{to:`/s3/ls`,children:`Back to buckets`}),F=(0,b.jsx)(m,{title:`Create Bucket`}),a[8]=P,a[9]=F):(P=a[8],F=a[9]);let I;a[10]===c.error?I=a[11]:(I=c.error&&(0,b.jsx)(e,{error:c.error,msg:`Failed to create bucket`}),a[10]=c.error,a[11]=I);let L;a[12]!==x||a[13]!==N?(L=x(N),a[12]=x,a[13]=N,a[14]=L):L=a[14];let R;a[15]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,b.jsx)(h,{children:(0,b.jsx)(`label`,{htmlFor:`bucketName`,children:`Bucket Name`})}),a[15]=R):R=a[15];let z=!!E.bucketName,B;a[16]===C?B=a[17]:(B=C(`bucketName`),a[16]=C,a[17]=B);let V;a[18]!==z||a[19]!==B?(V=(0,b.jsx)(i,{"aria-invalid":z,id:`bucketName`,placeholder:`my-bucket`,type:`text`,...B}),a[18]=z,a[19]=B,a[20]=V):V=a[20];let H;a[21]===E.bucketName?H=a[22]:(H=(0,b.jsx)(g,{errors:[E.bucketName]}),a[21]=E.bucketName,a[22]=H);let U;a[23]!==V||a[24]!==H?(U=(0,b.jsxs)(_,{children:[R,V,H]}),a[23]=V,a[24]=H,a[25]=U):U=a[25];let W;a[26]===j?W=a[27]:(W=S(j),a[26]=j,a[27]=W);let G;a[28]===W?G=a[29]:(G=(0,b.jsx)(n,{commands:W}),a[28]=W,a[29]=G);let K;a[30]===s?K=a[31]:(K=async()=>await s({to:`/s3/ls`}),a[30]=s,a[31]=K);let q;a[32]!==c.isPending||a[33]!==D||a[34]!==K?(q=(0,b.jsx)(p,{isPending:c.isPending,isSubmitting:D,onCancel:K,pendingLabel:`Creating…`,submitLabel:`Create Bucket`}),a[32]=c.isPending,a[33]=D,a[34]=K,a[35]=q):q=a[35];let J;a[36]!==U||a[37]!==G||a[38]!==q||a[39]!==L?(J=(0,b.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:L,children:[U,G,q]}),a[36]=U,a[37]=G,a[38]=q,a[39]=L,a[40]=J):J=a[40];let Y;return a[41]!==J||a[42]!==I?(Y=(0,b.jsxs)(b.Fragment,{children:[P,F,I,J]}),a[41]=J,a[42]=I,a[43]=Y):Y=a[43],Y}function S(e){let t=e(`bucketName`);return[{label:`Create Bucket`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws s3api create-bucket`},{type:`flag`,value:` --bucket`},{type:`value`,value:` ${(typeof t==`string`?t:``)||``}`}]}]}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-instance-profile.js b/spinifex/services/spinifexui/frontend/dist/assets/create-instance-profile.js index 1cea4676f..3051e04d0 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-instance-profile.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-instance-profile.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./cli-command-panel.js";import{a as r}from"./iam.js";import{Da as i,fs as a,hs as o,ys as s}from"./index.js";import{a as c,i as ee,t as l}from"./zod.js";import{t as u}from"./form-actions.js";import{t as d}from"./page-heading.js";import{a as f,r as p,t as m}from"./field.js";import{n as h}from"./iam2.js";var g=a(),_=s();function v(){let a=(0,g.c)(55),s=o(),v=r(),b;a[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(h)},a[0]=b):b=a[0];let{handleSubmit:x,register:S,control:C,formState:w}=ee(b),{errors:T,isSubmitting:E}=w,D;a[1]===C?D=a[2]:(D={control:C},a[1]=C,a[2]=D);let O=c(D),k;a[3]===O?k=a[4]:(k=e=>e?O[e]:void 0,a[3]=O,a[4]=k);let A=k,j;a[5]!==v||a[6]!==s?(j=async e=>{await v.mutateAsync(e),s({to:`/iam/list-instance-profiles`})},a[5]=v,a[6]=s,a[7]=j):j=a[7];let M=j,N,P;a[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,_.jsx)(t,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),P=(0,_.jsx)(d,{title:`Create Instance Profile`}),a[8]=N,a[9]=P):(N=a[8],P=a[9]);let F;a[10]===v.error?F=a[11]:(F=v.error&&(0,_.jsx)(e,{error:v.error,msg:`Failed to create instance profile`}),a[10]=v.error,a[11]=F);let I;a[12]!==x||a[13]!==M?(I=x(M),a[12]=x,a[13]=M,a[14]=I):I=a[14];let L;a[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`instanceProfileName`,children:`Instance Profile Name`})}),a[15]=L):L=a[15];let R=!!T.instanceProfileName,z;a[16]===S?z=a[17]:(z=S(`instanceProfileName`),a[16]=S,a[17]=z);let B;a[18]!==R||a[19]!==z?(B=(0,_.jsx)(i,{"aria-invalid":R,id:`instanceProfileName`,placeholder:`my-instance-profile...`,...z}),a[18]=R,a[19]=z,a[20]=B):B=a[20];let V;a[21]===T.instanceProfileName?V=a[22]:(V=(0,_.jsx)(p,{errors:[T.instanceProfileName]}),a[21]=T.instanceProfileName,a[22]=V);let H;a[23]!==B||a[24]!==V?(H=(0,_.jsxs)(m,{children:[L,B,V]}),a[23]=B,a[24]=V,a[25]=H):H=a[25];let U;a[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`path`,children:`Path (optional)`})}),a[26]=U):U=a[26];let W;a[27]===S?W=a[28]:(W=S(`path`),a[27]=S,a[28]=W);let G;a[29]===W?G=a[30]:(G=(0,_.jsx)(i,{id:`path`,placeholder:`/`,...W}),a[29]=W,a[30]=G);let K;a[31]===T.path?K=a[32]:(K=(0,_.jsx)(p,{errors:[T.path]}),a[31]=T.path,a[32]=K);let q;a[33]!==G||a[34]!==K?(q=(0,_.jsxs)(m,{children:[U,G,K]}),a[33]=G,a[34]=K,a[35]=q):q=a[35];let J;a[36]===A?J=a[37]:(J=y(A),a[36]=A,a[37]=J);let Y;a[38]===J?Y=a[39]:(Y=(0,_.jsx)(n,{commands:J}),a[38]=J,a[39]=Y);let X;a[40]===s?X=a[41]:(X=async()=>await s({to:`/iam/list-instance-profiles`}),a[40]=s,a[41]=X);let Z;a[42]!==v.isPending||a[43]!==E||a[44]!==X?(Z=(0,_.jsx)(u,{isPending:v.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Instance Profile`}),a[42]=v.isPending,a[43]=E,a[44]=X,a[45]=Z):Z=a[45];let Q;a[46]!==H||a[47]!==q||a[48]!==Y||a[49]!==Z||a[50]!==I?(Q=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),a[46]=H,a[47]=q,a[48]=Y,a[49]=Z,a[50]=I,a[51]=Q):Q=a[51];let $;return a[52]!==Q||a[53]!==F?($=(0,_.jsxs)(_.Fragment,{children:[N,P,F,Q]}),a[52]=Q,a[53]=F,a[54]=$):$=a[54],$}function y(e){let t=e(`instanceProfileName`),n=typeof t==`string`?t:``,r=e(`path`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-instance-profile`},{type:`flag`,value:` --instance-profile-name`},{type:`value`,value:` ${n||``}`}];return i&&i!==`/`&&a.push({type:`flag`,value:` --path`},{type:`value`,value:` ${i}`}),[{label:`Create Instance Profile`,parts:a}]}export{v as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./cli-command-panel.js";import{a as r}from"./iam.js";import{Oa as i,bs as a,gs as o,ps as s}from"./index.js";import{a as c,i as ee,t as l}from"./zod.js";import{t as u}from"./form-actions.js";import{t as d}from"./page-heading.js";import{a as f,r as p,t as m}from"./field.js";import{n as h}from"./iam2.js";var g=s(),_=a();function v(){let a=(0,g.c)(55),s=o(),v=r(),b;a[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(h)},a[0]=b):b=a[0];let{handleSubmit:x,register:S,control:C,formState:w}=ee(b),{errors:T,isSubmitting:E}=w,D;a[1]===C?D=a[2]:(D={control:C},a[1]=C,a[2]=D);let O=c(D),k;a[3]===O?k=a[4]:(k=e=>e?O[e]:void 0,a[3]=O,a[4]=k);let A=k,j;a[5]!==v||a[6]!==s?(j=async e=>{await v.mutateAsync(e),s({to:`/iam/list-instance-profiles`})},a[5]=v,a[6]=s,a[7]=j):j=a[7];let M=j,N,P;a[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,_.jsx)(t,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),P=(0,_.jsx)(d,{title:`Create Instance Profile`}),a[8]=N,a[9]=P):(N=a[8],P=a[9]);let F;a[10]===v.error?F=a[11]:(F=v.error&&(0,_.jsx)(e,{error:v.error,msg:`Failed to create instance profile`}),a[10]=v.error,a[11]=F);let I;a[12]!==x||a[13]!==M?(I=x(M),a[12]=x,a[13]=M,a[14]=I):I=a[14];let L;a[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`instanceProfileName`,children:`Instance Profile Name`})}),a[15]=L):L=a[15];let R=!!T.instanceProfileName,z;a[16]===S?z=a[17]:(z=S(`instanceProfileName`),a[16]=S,a[17]=z);let B;a[18]!==R||a[19]!==z?(B=(0,_.jsx)(i,{"aria-invalid":R,id:`instanceProfileName`,placeholder:`my-instance-profile...`,...z}),a[18]=R,a[19]=z,a[20]=B):B=a[20];let V;a[21]===T.instanceProfileName?V=a[22]:(V=(0,_.jsx)(p,{errors:[T.instanceProfileName]}),a[21]=T.instanceProfileName,a[22]=V);let H;a[23]!==B||a[24]!==V?(H=(0,_.jsxs)(m,{children:[L,B,V]}),a[23]=B,a[24]=V,a[25]=H):H=a[25];let U;a[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`path`,children:`Path (optional)`})}),a[26]=U):U=a[26];let W;a[27]===S?W=a[28]:(W=S(`path`),a[27]=S,a[28]=W);let G;a[29]===W?G=a[30]:(G=(0,_.jsx)(i,{id:`path`,placeholder:`/`,...W}),a[29]=W,a[30]=G);let K;a[31]===T.path?K=a[32]:(K=(0,_.jsx)(p,{errors:[T.path]}),a[31]=T.path,a[32]=K);let q;a[33]!==G||a[34]!==K?(q=(0,_.jsxs)(m,{children:[U,G,K]}),a[33]=G,a[34]=K,a[35]=q):q=a[35];let J;a[36]===A?J=a[37]:(J=y(A),a[36]=A,a[37]=J);let Y;a[38]===J?Y=a[39]:(Y=(0,_.jsx)(n,{commands:J}),a[38]=J,a[39]=Y);let X;a[40]===s?X=a[41]:(X=async()=>await s({to:`/iam/list-instance-profiles`}),a[40]=s,a[41]=X);let Z;a[42]!==v.isPending||a[43]!==E||a[44]!==X?(Z=(0,_.jsx)(u,{isPending:v.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Instance Profile`}),a[42]=v.isPending,a[43]=E,a[44]=X,a[45]=Z):Z=a[45];let Q;a[46]!==H||a[47]!==q||a[48]!==Y||a[49]!==Z||a[50]!==I?(Q=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),a[46]=H,a[47]=q,a[48]=Y,a[49]=Z,a[50]=I,a[51]=Q):Q=a[51];let $;return a[52]!==Q||a[53]!==F?($=(0,_.jsxs)(_.Fragment,{children:[N,P,F,Q]}),a[52]=Q,a[53]=F,a[54]=$):$=a[54],$}function y(e){let t=e(`instanceProfileName`),n=typeof t==`string`?t:``,r=e(`path`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-instance-profile`},{type:`flag`,value:` --instance-profile-name`},{type:`value`,value:` ${n||``}`}];return i&&i!==`/`&&a.push({type:`flag`,value:` --path`},{type:`value`,value:` ${i}`}),[{label:`Create Instance Profile`,parts:a}]}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-internet-gateway.js b/spinifex/services/spinifexui/frontend/dist/assets/create-internet-gateway.js index 895f1bee3..9a02bc823 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-internet-gateway.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-internet-gateway.js @@ -1,2 +1,2 @@ -import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./cli-command-panel.js";import{f as r}from"./ec2.js";import{Da as i,fs as a,hs as o,ys as s}from"./index.js";import{a as c,i as l,t as u}from"./zod.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,t as m}from"./field.js";import{a as h}from"./ec22.js";var g=a(),_=s();function v(){let a=(0,g.c)(36),s=o(),v=r(),b;a[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:u(h),defaultValues:{name:``}},a[0]=b):b=a[0];let{control:x,handleSubmit:S,register:C,formState:w}=l(b),{isSubmitting:T}=w,E;a[1]===x?E=a[2]:(E={control:x},a[1]=x,a[2]=E);let D=c(E),O;a[3]!==v||a[4]!==s?(O=async e=>{let t=(await v.mutateAsync({name:e.name?.trim()??void 0})).InternetGateway?.InternetGatewayId;s(t?{to:`/ec2/describe-internet-gateways/$id`,params:{id:t}}:{to:`/ec2/describe-internet-gateways`})},a[3]=v,a[4]=s,a[5]=O):O=a[5];let k=O,A,j;a[6]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,_.jsx)(t,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),j=(0,_.jsx)(f,{title:`Create Internet Gateway`}),a[6]=A,a[7]=j):(A=a[6],j=a[7]);let M;a[8]===v.error?M=a[9]:(M=v.error&&(0,_.jsx)(e,{error:v.error,msg:`Failed to create Internet Gateway`}),a[8]=v.error,a[9]=M);let N;a[10]!==S||a[11]!==k?(N=S(k),a[10]=S,a[11]=k,a[12]=N):N=a[12];let P;a[13]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,_.jsx)(p,{children:(0,_.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),a[13]=P):P=a[13];let F;a[14]===C?F=a[15]:(F=C(`name`),a[14]=C,a[15]=F);let I;a[16]===F?I=a[17]:(I=(0,_.jsxs)(m,{children:[P,(0,_.jsx)(i,{id:`name`,placeholder:`my-internet-gateway`,...F})]}),a[16]=F,a[17]=I);let L=D.name??``,R;a[18]===L?R=a[19]:(R=y(L),a[18]=L,a[19]=R);let z;a[20]===R?z=a[21]:(z=(0,_.jsx)(n,{commands:R}),a[20]=R,a[21]=z);let B;a[22]===s?B=a[23]:(B=async()=>await s({to:`/ec2/describe-internet-gateways`}),a[22]=s,a[23]=B);let V;a[24]!==v.isPending||a[25]!==T||a[26]!==B?(V=(0,_.jsx)(d,{isPending:v.isPending,isSubmitting:T,onCancel:B,pendingLabel:`Creating…`,submitLabel:`Create`}),a[24]=v.isPending,a[25]=T,a[26]=B,a[27]=V):V=a[27];let H;a[28]!==I||a[29]!==z||a[30]!==V||a[31]!==N?(H=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:N,children:[I,z,V]}),a[28]=I,a[29]=z,a[30]=V,a[31]=N,a[32]=H):H=a[32];let U;return a[33]!==H||a[34]!==M?(U=(0,_.jsxs)(_.Fragment,{children:[A,j,M,H]}),a[33]=H,a[34]=M,a[35]=U):U=a[35],U}function y(e){let t=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-internet-gateway`}];return e.trim()&&t.push({type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./cli-command-panel.js";import{f as r}from"./ec2.js";import{Oa as i,bs as a,gs as o,ps as s}from"./index.js";import{a as c,i as l,t as u}from"./zod.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,t as m}from"./field.js";import{a as h}from"./ec22.js";var g=s(),_=a();function v(){let a=(0,g.c)(36),s=o(),v=r(),b;a[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:u(h),defaultValues:{name:``}},a[0]=b):b=a[0];let{control:x,handleSubmit:S,register:C,formState:w}=l(b),{isSubmitting:T}=w,E;a[1]===x?E=a[2]:(E={control:x},a[1]=x,a[2]=E);let D=c(E),O;a[3]!==v||a[4]!==s?(O=async e=>{let t=(await v.mutateAsync({name:e.name?.trim()??void 0})).InternetGateway?.InternetGatewayId;s(t?{to:`/ec2/describe-internet-gateways/$id`,params:{id:t}}:{to:`/ec2/describe-internet-gateways`})},a[3]=v,a[4]=s,a[5]=O):O=a[5];let k=O,A,j;a[6]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,_.jsx)(t,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),j=(0,_.jsx)(f,{title:`Create Internet Gateway`}),a[6]=A,a[7]=j):(A=a[6],j=a[7]);let M;a[8]===v.error?M=a[9]:(M=v.error&&(0,_.jsx)(e,{error:v.error,msg:`Failed to create Internet Gateway`}),a[8]=v.error,a[9]=M);let N;a[10]!==S||a[11]!==k?(N=S(k),a[10]=S,a[11]=k,a[12]=N):N=a[12];let P;a[13]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,_.jsx)(p,{children:(0,_.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),a[13]=P):P=a[13];let F;a[14]===C?F=a[15]:(F=C(`name`),a[14]=C,a[15]=F);let I;a[16]===F?I=a[17]:(I=(0,_.jsxs)(m,{children:[P,(0,_.jsx)(i,{id:`name`,placeholder:`my-internet-gateway`,...F})]}),a[16]=F,a[17]=I);let L=D.name??``,R;a[18]===L?R=a[19]:(R=y(L),a[18]=L,a[19]=R);let z;a[20]===R?z=a[21]:(z=(0,_.jsx)(n,{commands:R}),a[20]=R,a[21]=z);let B;a[22]===s?B=a[23]:(B=async()=>await s({to:`/ec2/describe-internet-gateways`}),a[22]=s,a[23]=B);let V;a[24]!==v.isPending||a[25]!==T||a[26]!==B?(V=(0,_.jsx)(d,{isPending:v.isPending,isSubmitting:T,onCancel:B,pendingLabel:`Creating…`,submitLabel:`Create`}),a[24]=v.isPending,a[25]=T,a[26]=B,a[27]=V):V=a[27];let H;a[28]!==I||a[29]!==z||a[30]!==V||a[31]!==N?(H=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:N,children:[I,z,V]}),a[28]=I,a[29]=z,a[30]=V,a[31]=N,a[32]=H):H=a[32];let U;return a[33]!==H||a[34]!==M?(U=(0,_.jsxs)(_.Fragment,{children:[A,j,M,H]}),a[33]=H,a[34]=M,a[35]=U):U=a[35],U}function y(e){let t=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-internet-gateway`}];return e.trim()&&t.push({type:`flag`,value:` \\ --tag-specifications`},{type:`value`,value:` 'ResourceType=internet-gateway,Tags=[{Key=Name,Value=${e.trim()}}]'`}),[{label:`Create Internet Gateway`,parts:t}]}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair.js b/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair.js index 907eae4c4..d505cd8b8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./check.js";import{t as r}from"./download.js";import{t as i}from"./cli-command-panel.js";import{t as a}from"./triangle-alert.js";import{p as o}from"./ec2.js";import{Da as s,Do as c,bs as l,fs as u,hs as d,ys as f,zs as p}from"./index.js";import{a as m,i as h,t as g}from"./zod.js";import{t as _}from"./use-copy-to-clipboard.js";import{t as v}from"./form-actions.js";import{t as y}from"./page-heading.js";import{a as b,r as x,t as S}from"./field.js";import{o as C}from"./ec22.js";import{a as ee,c as w,i as T,l as E,o as D,r as O,s as k,t as A}from"./alert-dialog.js";var j=p(l()),M=u(),N=f();function P(e){let t=(0,M.c)(38),{open:i,keyName:o,keyMaterial:s}=e,l=d(),{copied:u,copy:f}=_(),p;t[0]!==s||t[1]!==o?(p=()=>{let e=new Blob([s],{type:`text/plain`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`${o}.pem`,n.click(),URL.revokeObjectURL(t)},t[0]=s,t[1]=o,t[2]=p):p=t[2];let m=p,h;t[3]===l?h=t[4]:(h=()=>{l({to:`/ec2/describe-key-pairs`})},t[3]=l,t[4]=h);let g=h,v,y;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,N.jsx)(w,{children:(0,N.jsx)(a,{className:`text-destructive`})}),y=(0,N.jsx)(E,{children:`Save Your Private Key`}),t[5]=v,t[6]=y):(v=t[5],y=t[6]);let b;t[7]===o?b=t[8]:(b=(0,N.jsxs)(k,{children:[v,y,(0,N.jsxs)(ee,{children:[`This is your only chance to save the private key file for`,` `,(0,N.jsx)(`strong`,{children:o}),`. Please download or copy it now. You won't be able to retrieve it again.`]})]}),t[7]=o,t[8]=b);let x=`Private key material for ${o}`,S;t[9]!==s||t[10]!==x?(S=(0,N.jsx)(`textarea`,{"aria-label":x,className:`w-full resize-none overflow-y-auto rounded-md border border-input bg-input/20 px-2 py-2 font-mono text-xs`,readOnly:!0,rows:4,value:s}),t[9]=s,t[10]=x,t[11]=S):S=t[11];let C;t[12]!==f||t[13]!==s?(C=async()=>await f(s),t[12]=f,t[13]=s,t[14]=C):C=t[14];let j;t[15]===u?j=t[16]:(j=u?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(n,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[15]=u,t[16]=j);let P;t[17]!==C||t[18]!==j?(P=(0,N.jsx)(c,{className:`flex-1`,onClick:C,type:`button`,variant:`outline`,children:j}),t[17]=C,t[18]=j,t[19]=P):P=t[19];let F;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,N.jsx)(r,{className:`mr-2 size-4`}),t[20]=F):F=t[20];let I;t[21]===m?I=t[22]:(I=(0,N.jsxs)(c,{className:`flex-1`,onClick:m,type:`button`,variant:`outline`,children:[F,`Download .pem File`]}),t[21]=m,t[22]=I);let L;t[23]!==P||t[24]!==I?(L=(0,N.jsxs)(`div`,{className:`flex gap-2`,children:[P,I]}),t[23]=P,t[24]=I,t[25]=L):L=t[25];let R;t[26]!==L||t[27]!==S?(R=(0,N.jsxs)(`div`,{className:`space-y-3`,children:[S,L]}),t[26]=L,t[27]=S,t[28]=R):R=t[28];let z;t[29]===g?z=t[30]:(z=(0,N.jsx)(D,{children:(0,N.jsx)(O,{onClick:g,children:`Close and Continue`})}),t[29]=g,t[30]=z);let B;t[31]!==R||t[32]!==z||t[33]!==b?(B=(0,N.jsxs)(T,{className:`max-w-2xl`,children:[b,R,z]}),t[31]=R,t[32]=z,t[33]=b,t[34]=B):B=t[34];let V;return t[35]!==i||t[36]!==B?(V=(0,N.jsx)(A,{open:i,children:B}),t[35]=i,t[36]=B,t[37]=V):V=t[37],V}function F(){let n=(0,M.c)(46),r=d(),a=o(),[c,l]=(0,j.useState)(null),u;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(u={resolver:g(C)},n[0]=u):u=n[0];let{handleSubmit:f,register:p,control:_,formState:ee}=h(u),{errors:w,isSubmitting:T}=ee,E;n[1]===_?E=n[2]:(E={control:_},n[1]=_,n[2]=E);let D=m(E),O;n[3]===D?O=n[4]:(O=e=>e?D[e]:void 0,n[3]=D,n[4]=O);let k=O,A;n[5]===a?A=n[6]:(A=async e=>{let t=await a.mutateAsync(e);t.KeyMaterial&&l({keyName:e.keyName,material:t.KeyMaterial})},n[5]=a,n[6]=A);let F=A,L,R;n[7]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,N.jsx)(t,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),R=(0,N.jsx)(y,{title:`Create Key Pair`}),n[7]=L,n[8]=R):(L=n[7],R=n[8]);let z;n[9]===a.error?z=n[10]:(z=a.error&&(0,N.jsx)(e,{error:a.error,msg:`Failed to create key pair`}),n[9]=a.error,n[10]=z);let B;n[11]!==f||n[12]!==F?(B=f(F),n[11]=f,n[12]=F,n[13]=B):B=n[13];let V;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,N.jsx)(b,{children:(0,N.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),n[14]=V):V=n[14];let H=!!w.keyName,U;n[15]===p?U=n[16]:(U=p(`keyName`),n[15]=p,n[16]=U);let W;n[17]!==H||n[18]!==U?(W=(0,N.jsx)(s,{"aria-invalid":H,id:`keyName`,placeholder:`my-key-pair…`,...U}),n[17]=H,n[18]=U,n[19]=W):W=n[19];let G;n[20]===w.keyName?G=n[21]:(G=(0,N.jsx)(x,{errors:[w.keyName]}),n[20]=w.keyName,n[21]=G);let K;n[22]!==W||n[23]!==G?(K=(0,N.jsxs)(S,{children:[V,W,G]}),n[22]=W,n[23]=G,n[24]=K):K=n[24];let q;n[25]===k?q=n[26]:(q=I(k),n[25]=k,n[26]=q);let J;n[27]===q?J=n[28]:(J=(0,N.jsx)(i,{commands:q}),n[27]=q,n[28]=J);let Y;n[29]===r?Y=n[30]:(Y=async()=>await r({to:`/ec2/describe-key-pairs`}),n[29]=r,n[30]=Y);let X;n[31]!==a.isPending||n[32]!==T||n[33]!==Y?(X=(0,N.jsx)(v,{isPending:a.isPending,isSubmitting:T,onCancel:Y,pendingLabel:`Creating…`,submitLabel:`Create Key Pair`}),n[31]=a.isPending,n[32]=T,n[33]=Y,n[34]=X):X=n[34];let Z;n[35]!==K||n[36]!==J||n[37]!==X||n[38]!==B?(Z=(0,N.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:B,children:[K,J,X]}),n[35]=K,n[36]=J,n[37]=X,n[38]=B,n[39]=Z):Z=n[39];let Q;n[40]===c?Q=n[41]:(Q=c&&(0,N.jsx)(P,{keyMaterial:c.material,keyName:c.keyName,open:!!c}),n[40]=c,n[41]=Q);let $;return n[42]!==Z||n[43]!==Q||n[44]!==z?($=(0,N.jsxs)(N.Fragment,{children:[L,R,z,Z,Q]}),n[42]=Z,n[43]=Q,n[44]=z,n[45]=$):$=n[45],$}function I(e){let t=e(`keyName`);return[{label:`Create Key Pair`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-key-pair`},{type:`flag`,value:` --key-name`},{type:`value`,value:` ${(typeof t==`string`?t:``)||``}`}]}]}export{F as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./check.js";import{t as r}from"./download.js";import{t as i}from"./cli-command-panel.js";import{t as a}from"./triangle-alert.js";import{p as o}from"./ec2.js";import{Bs as s,Oa as c,Oo as l,bs as u,gs as d,ps as f,xs as p}from"./index.js";import{a as m,i as h,t as g}from"./zod.js";import{t as _}from"./use-copy-to-clipboard.js";import{t as v}from"./form-actions.js";import{t as y}from"./page-heading.js";import{a as b,r as x,t as S}from"./field.js";import{o as C}from"./ec22.js";import{a as w,c as T,i as E,l as D,o as O,r as k,s as A,t as j}from"./alert-dialog.js";var M=s(p()),ee=f(),N=u();function P(e){let t=(0,ee.c)(38),{open:i,keyName:o,keyMaterial:s}=e,c=d(),{copied:u,copy:f}=_(),p;t[0]!==s||t[1]!==o?(p=()=>{let e=new Blob([s],{type:`text/plain`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`${o}.pem`,n.click(),URL.revokeObjectURL(t)},t[0]=s,t[1]=o,t[2]=p):p=t[2];let m=p,h;t[3]===c?h=t[4]:(h=()=>{c({to:`/ec2/describe-key-pairs`})},t[3]=c,t[4]=h);let g=h,v,y;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,N.jsx)(T,{children:(0,N.jsx)(a,{className:`text-destructive`})}),y=(0,N.jsx)(D,{children:`Save Your Private Key`}),t[5]=v,t[6]=y):(v=t[5],y=t[6]);let b;t[7]===o?b=t[8]:(b=(0,N.jsxs)(A,{children:[v,y,(0,N.jsxs)(w,{children:[`This is your only chance to save the private key file for`,` `,(0,N.jsx)(`strong`,{children:o}),`. Please download or copy it now. You won't be able to retrieve it again.`]})]}),t[7]=o,t[8]=b);let x=`Private key material for ${o}`,S;t[9]!==s||t[10]!==x?(S=(0,N.jsx)(`textarea`,{"aria-label":x,className:`w-full resize-none overflow-y-auto rounded-md border border-input bg-input/20 px-2 py-2 font-mono text-xs`,readOnly:!0,rows:4,value:s}),t[9]=s,t[10]=x,t[11]=S):S=t[11];let C;t[12]!==f||t[13]!==s?(C=async()=>await f(s),t[12]=f,t[13]=s,t[14]=C):C=t[14];let M;t[15]===u?M=t[16]:(M=u?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(n,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[15]=u,t[16]=M);let P;t[17]!==C||t[18]!==M?(P=(0,N.jsx)(l,{className:`flex-1`,onClick:C,type:`button`,variant:`outline`,children:M}),t[17]=C,t[18]=M,t[19]=P):P=t[19];let F;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,N.jsx)(r,{className:`mr-2 size-4`}),t[20]=F):F=t[20];let I;t[21]===m?I=t[22]:(I=(0,N.jsxs)(l,{className:`flex-1`,onClick:m,type:`button`,variant:`outline`,children:[F,`Download .pem File`]}),t[21]=m,t[22]=I);let L;t[23]!==P||t[24]!==I?(L=(0,N.jsxs)(`div`,{className:`flex gap-2`,children:[P,I]}),t[23]=P,t[24]=I,t[25]=L):L=t[25];let R;t[26]!==L||t[27]!==S?(R=(0,N.jsxs)(`div`,{className:`space-y-3`,children:[S,L]}),t[26]=L,t[27]=S,t[28]=R):R=t[28];let z;t[29]===g?z=t[30]:(z=(0,N.jsx)(O,{children:(0,N.jsx)(k,{onClick:g,children:`Close and Continue`})}),t[29]=g,t[30]=z);let B;t[31]!==R||t[32]!==z||t[33]!==b?(B=(0,N.jsxs)(E,{className:`max-w-2xl`,children:[b,R,z]}),t[31]=R,t[32]=z,t[33]=b,t[34]=B):B=t[34];let V;return t[35]!==i||t[36]!==B?(V=(0,N.jsx)(j,{open:i,children:B}),t[35]=i,t[36]=B,t[37]=V):V=t[37],V}function F(){let n=(0,ee.c)(46),r=d(),a=o(),[s,l]=(0,M.useState)(null),u;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(u={resolver:g(C)},n[0]=u):u=n[0];let{handleSubmit:f,register:p,control:_,formState:w}=h(u),{errors:T,isSubmitting:E}=w,D;n[1]===_?D=n[2]:(D={control:_},n[1]=_,n[2]=D);let O=m(D),k;n[3]===O?k=n[4]:(k=e=>e?O[e]:void 0,n[3]=O,n[4]=k);let A=k,j;n[5]===a?j=n[6]:(j=async e=>{let t=await a.mutateAsync(e);t.KeyMaterial&&l({keyName:e.keyName,material:t.KeyMaterial})},n[5]=a,n[6]=j);let F=j,L,R;n[7]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,N.jsx)(t,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),R=(0,N.jsx)(y,{title:`Create Key Pair`}),n[7]=L,n[8]=R):(L=n[7],R=n[8]);let z;n[9]===a.error?z=n[10]:(z=a.error&&(0,N.jsx)(e,{error:a.error,msg:`Failed to create key pair`}),n[9]=a.error,n[10]=z);let B;n[11]!==f||n[12]!==F?(B=f(F),n[11]=f,n[12]=F,n[13]=B):B=n[13];let V;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,N.jsx)(b,{children:(0,N.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),n[14]=V):V=n[14];let H=!!T.keyName,U;n[15]===p?U=n[16]:(U=p(`keyName`),n[15]=p,n[16]=U);let W;n[17]!==H||n[18]!==U?(W=(0,N.jsx)(c,{"aria-invalid":H,id:`keyName`,placeholder:`my-key-pair…`,...U}),n[17]=H,n[18]=U,n[19]=W):W=n[19];let G;n[20]===T.keyName?G=n[21]:(G=(0,N.jsx)(x,{errors:[T.keyName]}),n[20]=T.keyName,n[21]=G);let K;n[22]!==W||n[23]!==G?(K=(0,N.jsxs)(S,{children:[V,W,G]}),n[22]=W,n[23]=G,n[24]=K):K=n[24];let q;n[25]===A?q=n[26]:(q=I(A),n[25]=A,n[26]=q);let J;n[27]===q?J=n[28]:(J=(0,N.jsx)(i,{commands:q}),n[27]=q,n[28]=J);let Y;n[29]===r?Y=n[30]:(Y=async()=>await r({to:`/ec2/describe-key-pairs`}),n[29]=r,n[30]=Y);let X;n[31]!==a.isPending||n[32]!==E||n[33]!==Y?(X=(0,N.jsx)(v,{isPending:a.isPending,isSubmitting:E,onCancel:Y,pendingLabel:`Creating…`,submitLabel:`Create Key Pair`}),n[31]=a.isPending,n[32]=E,n[33]=Y,n[34]=X):X=n[34];let Z;n[35]!==K||n[36]!==J||n[37]!==X||n[38]!==B?(Z=(0,N.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:B,children:[K,J,X]}),n[35]=K,n[36]=J,n[37]=X,n[38]=B,n[39]=Z):Z=n[39];let Q;n[40]===s?Q=n[41]:(Q=s&&(0,N.jsx)(P,{keyMaterial:s.material,keyName:s.keyName,open:!!s}),n[40]=s,n[41]=Q);let $;return n[42]!==Z||n[43]!==Q||n[44]!==z?($=(0,N.jsxs)(N.Fragment,{children:[L,R,z,Z,Q]}),n[42]=Z,n[43]=Q,n[44]=z,n[45]=$):$=n[45],$}function I(e){let t=e(`keyName`);return[{label:`Create Key Pair`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-key-pair`},{type:`flag`,value:` --key-name`},{type:`value`,value:` ${(typeof t==`string`?t:``)||``}`}]}]}export{F as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js b/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js index 646898522..d6015189e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js @@ -1,4 +1,4 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as o,t as s}from"./select.js";import{t as c}from"./plus.js";import{t as l}from"./cli-command-panel.js";import{t as u}from"./trash-2.js";import{t as d}from"./certificate-import-dialog.js";import{n as f}from"./elbv2.js";import{Da as p,Do as m,Et as h,G as g,Io as _,St as v,V as y,bs as b,hs as x,q as ee,vt as te,ys as S,zs as C}from"./index.js";import{i as w,n as T,t as E}from"./zod.js";import{t as ne}from"./form-actions.js";import{t as re}from"./page-heading.js";import{a as D,r as O,t as k}from"./field.js";import{t as ie}from"./target-group-form.js";import{a as ae,c as oe,o as se,r as ce,s as A,t as le}from"./elbv22.js";var j=C(b(),1),M=S();function ue(e){let t=_(e.Tags);return t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`}function N(e){let t=_(e.Tags);return`${t?`${e.SubnetId} (${t})`:e.SubnetId} · ${e.CidrBlock}`}function de(e){return e===`TLS`||e===`TCP`?`TCP`:e===`UDP`?`UDP`:e===`TCP_UDP`?`TCP_UDP`:`HTTP`}function fe(e){let t=new Map;for(let n of e){let e=n.AvailabilityZone??`unknown`,r=t.get(e)??[];r.push(n),t.set(e,r)}return[...t.entries()].toSorted((e,t)=>e[0].localeCompare(t[0])).map(([e,t])=>({az:e,subnets:t}))}function P(){let _=x(),{data:b}=t(h),{data:S}=t(v),{data:C}=t(te),{data:P}=t(g),{data:F}=t(ee),{data:me}=t(y),I=f(),[L,R]=(0,j.useState)(null),[he,z]=(0,j.useState)(!1),B=b.Vpcs??[],ge=S.Subnets??[],_e=C.SecurityGroups??[],ve=P.TargetGroups??[],V=F.CertificateSummaryList??[],ye=me.SslPolicies??[],be=w({resolver:E(ce),defaultValues:{name:``,type:`application`,scheme:`internet-facing`,vpcId:B[0]?.VpcId??``,subnetIds:[],securityGroupIds:[],tags:[],listener:{protocol:`HTTP`,port:80,targetGroupMode:`new`,existingTargetGroupArn:``,certificateArn:void 0,sslPolicy:void 0}}}),H=w({resolver:E(ae),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:B[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:xe,register:U,watch:W,control:G,setValue:K,getValues:q,formState:{errors:J,isSubmitting:Se}}=be,Y=W(`vpcId`),Ce=W(`subnetIds`),we=W(`securityGroupIds`),X=W(`type`),Z=W(`listener.protocol`),Q=W(`listener.targetGroupMode`),Te=W(`tags`),Ee=X===`network`,De=A(Z),Oe=oe(X),ke=Ee?[`TCP`,`UDP`,`TLS`,`TCP_UDP`]:[`HTTP`,`HTTPS`],Ae=ge.filter(e=>e.VpcId===Y),je=_e.filter(e=>e.VpcId===Y),Me=ve.filter(e=>e.VpcId===Y),Ne=e=>{let t=de(e);H.setValue(`protocol`,t),H.setValue(`healthCheck.protocol`,t===`HTTP`?`HTTP`:`TCP`)},Pe=e=>{K(`type`,e);let t=se(e);K(`listener.protocol`,t),K(`listener.port`,80),K(`listener.certificateArn`,void 0),K(`listener.sslPolicy`,void 0),e===`network`&&K(`securityGroupIds`,[]),Ne(t)},Fe=e=>{K(`listener.protocol`,e);let t=q(`listener.port`);A(e)?(t===80&&K(`listener.port`,443),e===`HTTPS`&&!q(`listener.sslPolicy`)&&K(`listener.sslPolicy`,le)):(t===443&&K(`listener.port`,80),K(`listener.certificateArn`,void 0),K(`listener.sslPolicy`,void 0)),Ne(e)},Ie=(e=``)=>{let t=e??``;K(`vpcId`,t,{shouldValidate:!0}),K(`subnetIds`,[],{shouldValidate:!0}),K(`securityGroupIds`,[]),K(`listener.existingTargetGroupArn`,``),H.setValue(`vpcId`,t)},Le=e=>{let t=q(`subnetIds`);K(`subnetIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e],{shouldValidate:!0})},Re=e=>{let t=q(`securityGroupIds`);K(`securityGroupIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e])},ze=async e=>{R(null);let t;if(e.listener.targetGroupMode===`new`){if(!await H.trigger())return;t=H.getValues()}let n=await I.mutateAsync({lb:{name:e.name,type:e.type,scheme:e.scheme,vpcId:e.vpcId,subnetIds:e.subnetIds,securityGroupIds:e.securityGroupIds,tags:e.tags},listener:{protocol:e.listener.protocol,port:e.listener.port,targetGroupMode:e.listener.targetGroupMode,existingTargetGroupArn:e.listener.existingTargetGroupArn,certificateArn:e.listener.certificateArn,sslPolicy:e.listener.sslPolicy,newTargetGroup:t}});R(n),!n.error&&n.loadBalancerArn&&_({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(n.loadBalancerArn)}})},$=fe(Ae);return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(n,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,M.jsx)(re,{title:`Create Load Balancer`}),I.error&&(0,M.jsx)(e,{error:I.error,msg:`Failed to create load balancer`}),L?.error&&(0,M.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,M.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,L.failedStep]}),(0,M.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:L.error.message}),L.created.length>0&&(0,M.jsxs)(`div`,{className:`mt-3`,children:[(0,M.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources (clean up manually if needed):`}),(0,M.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:L.created.map((e,t)=>(0,M.jsxs)(`li`,{children:[e.type,`: `,e.id??`(created)`]},t))})]})]}),(0,M.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:xe(ze),children:[(0,M.jsxs)(k,{children:[(0,M.jsx)(D,{children:(0,M.jsx)(`label`,{htmlFor:`lb-name`,children:`Name`})}),(0,M.jsx)(p,{"aria-invalid":!!J.name,id:`lb-name`,placeholder:`my-load-balancer`,...U(`name`)}),(0,M.jsx)(O,{errors:[J.name]})]}),(0,M.jsxs)(k,{children:[(0,M.jsx)(D,{children:`Type`}),(0,M.jsx)(T,{control:G,name:`type`,render:({field:e})=>(0,M.jsxs)(`div`,{className:`flex gap-4`,children:[(0,M.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,M.jsx)(`input`,{"aria-label":`Application Load Balancer`,checked:e.value===`application`,name:`lb-type`,onChange:()=>Pe(`application`),type:`radio`}),`Application (ALB)`]}),(0,M.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,M.jsx)(`input`,{"aria-label":`Network Load Balancer`,checked:e.value===`network`,name:`lb-type`,onChange:()=>Pe(`network`),type:`radio`}),`Network (NLB)`]})]})})]}),(0,M.jsxs)(k,{children:[(0,M.jsx)(D,{children:`Scheme`}),(0,M.jsx)(T,{control:G,name:`scheme`,render:({field:e})=>(0,M.jsxs)(`div`,{className:`flex gap-4`,children:[(0,M.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,M.jsx)(`input`,{"aria-label":`Internet-facing`,checked:e.value===`internet-facing`,name:`scheme`,onChange:()=>e.onChange(`internet-facing`),type:`radio`}),`Internet-facing`]}),(0,M.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,M.jsx)(`input`,{"aria-label":`Internal`,checked:e.value===`internal`,name:`scheme`,onChange:()=>e.onChange(`internal`),type:`radio`}),`Internal`]})]})})]}),(0,M.jsxs)(k,{children:[(0,M.jsx)(D,{children:(0,M.jsx)(`label`,{htmlFor:`lb-vpc`,children:`VPC`})}),(0,M.jsx)(T,{control:G,name:`vpcId`,render:({field:e})=>(0,M.jsxs)(s,{onValueChange:e=>Ie(e),value:e.value??``,children:[(0,M.jsx)(o,{"aria-invalid":!!J.vpcId,className:`w-full`,id:`lb-vpc`,children:(0,M.jsx)(r,{placeholder:`Select VPC`})}),(0,M.jsx)(a,{children:B.map(e=>(0,M.jsx)(i,{value:e.VpcId??``,children:ue(e)},e.VpcId))})]})}),(0,M.jsx)(O,{errors:[J.vpcId]})]}),(0,M.jsxs)(k,{children:[(0,M.jsx)(D,{children:`Subnets (select at least 1)`}),$.length===0?(0,M.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the selected VPC.`}):(0,M.jsx)(`div`,{className:`space-y-3`,children:$.map(e=>(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`p`,{className:`mb-1 text-xs font-medium text-muted-foreground`,children:e.az}),(0,M.jsx)(`div`,{className:`space-y-1`,children:e.subnets.map(e=>(0,M.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,M.jsx)(`input`,{"aria-label":`Subnet ${N(e)}`,checked:Ce.includes(e.SubnetId??``),onChange:()=>Le(e.SubnetId??``),type:`checkbox`}),(0,M.jsx)(`span`,{className:`font-mono`,children:N(e)})]},e.SubnetId))})]},e.az))}),(0,M.jsx)(O,{errors:[J.subnetIds]})]}),!Ee&&(0,M.jsxs)(k,{children:[(0,M.jsx)(D,{children:`Security groups`}),je.length===0?(0,M.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the selected VPC.`}):(0,M.jsx)(`div`,{className:`space-y-1`,children:je.map(e=>(0,M.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,M.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:we.includes(e.GroupId??``),onChange:()=>Re(e.GroupId??``),type:`checkbox`}),(0,M.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,M.jsxs)(k,{children:[(0,M.jsx)(D,{children:`Tags`}),(0,M.jsxs)(`div`,{className:`space-y-2`,children:[Te.map((e,t)=>(0,M.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,M.jsx)(p,{placeholder:`Key`,...U(`tags.${t}.key`)}),(0,M.jsx)(p,{placeholder:`Value`,...U(`tags.${t}.value`)}),(0,M.jsx)(m,{onClick:()=>K(`tags`,q(`tags`).filter((e,n)=>n!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,M.jsx)(u,{className:`size-3.5`})})]},t)),(0,M.jsxs)(m,{onClick:()=>K(`tags`,[...q(`tags`),{key:``,value:``}]),size:`sm`,type:`button`,variant:`outline`,children:[(0,M.jsx)(c,{className:`size-3.5`}),`Add tag`]})]})]}),(0,M.jsxs)(`div`,{className:`space-y-4 rounded-md border bg-card p-4`,children:[(0,M.jsx)(`h2`,{className:`text-sm font-semibold`,children:`First listener & default target group`}),(0,M.jsxs)(k,{children:[(0,M.jsx)(D,{children:(0,M.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),(0,M.jsx)(T,{control:G,name:`listener.protocol`,render:({field:e})=>(0,M.jsxs)(s,{onValueChange:e=>{e&&Fe(e)},value:e.value,children:[(0,M.jsx)(o,{className:`w-full`,id:`listener-protocol`,children:(0,M.jsx)(r,{})}),(0,M.jsx)(a,{children:Oe.map(e=>(0,M.jsx)(i,{value:e,children:e},e))})]})})]}),(0,M.jsxs)(k,{children:[(0,M.jsx)(D,{children:(0,M.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),(0,M.jsx)(p,{"aria-invalid":!!J.listener?.port,id:`listener-port`,inputMode:`numeric`,type:`number`,...U(`listener.port`,{valueAsNumber:!0})}),(0,M.jsx)(O,{errors:[J.listener?.port]})]}),De&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(k,{children:[(0,M.jsx)(D,{children:(0,M.jsx)(`label`,{htmlFor:`listener-certificate`,children:`Certificate`})}),(0,M.jsx)(T,{control:G,name:`listener.certificateArn`,render:({field:e})=>(0,M.jsxs)(s,{onValueChange:e.onChange,value:e.value??``,children:[(0,M.jsx)(o,{"aria-invalid":!!J.listener?.certificateArn,className:`w-full`,id:`listener-certificate`,children:(0,M.jsx)(r,{placeholder:`Select certificate`})}),(0,M.jsx)(a,{children:V.map(e=>(0,M.jsx)(i,{value:e.CertificateArn??``,children:e.DomainName??e.CertificateArn?.split(`/`).pop()},e.CertificateArn))})]})}),(0,M.jsx)(O,{errors:[J.listener?.certificateArn]}),(0,M.jsxs)(`div`,{className:`mt-1 flex items-center justify-between`,children:[V.length===0&&(0,M.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No certificates imported yet.`}),(0,M.jsx)(m,{className:`ml-auto`,onClick:()=>z(!0),size:`sm`,type:`button`,variant:`ghost`,children:`Import certificate…`})]})]}),Z===`HTTPS`&&(0,M.jsxs)(k,{children:[(0,M.jsx)(D,{children:(0,M.jsx)(`label`,{htmlFor:`listener-ssl-policy`,children:`Security policy`})}),(0,M.jsx)(T,{control:G,name:`listener.sslPolicy`,render:({field:e})=>(0,M.jsxs)(s,{onValueChange:e.onChange,value:e.value??`ELBSecurityPolicy-2016-08`,children:[(0,M.jsx)(o,{className:`w-full`,id:`listener-ssl-policy`,children:(0,M.jsx)(r,{})}),(0,M.jsx)(a,{children:ye.map(e=>(0,M.jsx)(i,{value:e.Name??``,children:e.Name},e.Name))})]})})]})]}),(0,M.jsxs)(k,{children:[(0,M.jsx)(D,{children:`Default target group`}),(0,M.jsx)(T,{control:G,name:`listener.targetGroupMode`,render:({field:e})=>(0,M.jsxs)(`div`,{className:`flex gap-4`,children:[(0,M.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,M.jsx)(`input`,{"aria-label":`Create new target group`,checked:e.value===`new`,name:`tg-mode`,onChange:()=>e.onChange(`new`),type:`radio`}),`Create new`]}),(0,M.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,M.jsx)(`input`,{"aria-label":`Use existing target group`,checked:e.value===`existing`,name:`tg-mode`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Use existing`]})]})})]}),Q===`existing`&&(0,M.jsxs)(k,{children:[(0,M.jsx)(D,{children:(0,M.jsx)(`label`,{htmlFor:`tg-existing`,children:`Target group`})}),(0,M.jsx)(T,{control:G,name:`listener.existingTargetGroupArn`,render:({field:e})=>(0,M.jsxs)(s,{onValueChange:e.onChange,value:e.value??``,children:[(0,M.jsx)(o,{"aria-invalid":!!J.listener?.existingTargetGroupArn,className:`w-full`,id:`tg-existing`,children:(0,M.jsx)(r,{placeholder:`Select target group`})}),(0,M.jsx)(a,{children:Me.map(e=>(0,M.jsxs)(i,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,M.jsx)(O,{errors:[J.listener?.existingTargetGroupArn]}),Me.length===0&&(0,M.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups in this VPC. Choose “Create new” instead.`})]}),Q===`new`&&(0,M.jsx)(`div`,{className:`space-y-4 border-l-2 border-muted pl-4`,children:(0,M.jsx)(ie,{allowedProtocols:ke,form:H,vpcs:B})})]}),(0,M.jsx)(d,{onImported:e=>K(`listener.certificateArn`,e,{shouldValidate:!0}),onOpenChange:z,open:he}),(0,M.jsx)(l,{commands:pe(W,H.watch)}),(0,M.jsx)(ne,{isPending:I.isPending,isSubmitting:Se,onCancel:async()=>await _({to:`/ec2/describe-load-balancers`}),pendingLabel:`Creating…`,submitLabel:`Create Load Balancer`})]})]})}function pe(e,t){let n=t=>{let n=e(t);return typeof n==`string`?n:``},r=t=>{let n=e(t);return Array.isArray(n)?n.filter(e=>typeof e==`string`):[]},i=t=>{let n=e(t);return typeof n==`number`&&Number.isFinite(n)?n:void 0},a=n(`name`)||``,o=n(`type`)||`application`,s=n(`scheme`)||`internet-facing`,c=r(`subnetIds`),l=r(`securityGroupIds`),u=n(`listener.protocol`)||`HTTP`,d=i(`listener.port`)??80,f=n(`listener.certificateArn`),p=n(`listener.sslPolicy`),m=n(`listener.targetGroupMode`),h=n(`listener.existingTargetGroupArn`),g=[],_={type:`comment`,value:o===`network`?`# Create NLB with listener and default target group +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as o,t as s}from"./select.js";import{t as c}from"./plus.js";import{t as l}from"./cli-command-panel.js";import{t as u}from"./trash-2.js";import{t as d}from"./certificate-import-dialog.js";import{n as f}from"./elbv2.js";import{Bs as p,Et as m,G as h,Lo as g,Oa as _,Oo as v,St as y,V as b,bs as x,gs as ee,q as te,vt as ne,xs as S}from"./index.js";import{i as re,n as C,t as w}from"./zod.js";import{t as ie}from"./form-actions.js";import{t as ae}from"./page-heading.js";import{a as T,r as E,t as D}from"./field.js";import{t as oe}from"./target-group-form.js";import{a as se,c as ce,o as le,r as ue,s as O,t as de}from"./elbv22.js";var k=p(S(),1),A=x();function fe(e){let t=g(e.Tags);return t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`}function j(e){let t=g(e.Tags);return`${t?`${e.SubnetId} (${t})`:e.SubnetId} · ${e.CidrBlock}`}function pe(e){return e===`TLS`||e===`TCP`?`TCP`:e===`UDP`?`UDP`:e===`TCP_UDP`?`TCP_UDP`:`HTTP`}function me(e){let t=new Map;for(let n of e){let e=n.AvailabilityZone??`unknown`,r=t.get(e)??[];r.push(n),t.set(e,r)}return[...t.entries()].toSorted((e,t)=>e[0].localeCompare(t[0])).map(([e,t])=>({az:e,subnets:t}))}function M(){let p=ee(),{data:g}=t(m),{data:x}=t(y),{data:S}=t(ne),{data:M}=t(h),{data:N}=t(te),{data:ge}=t(b),P=f(),[F,I]=(0,k.useState)(null),[_e,L]=(0,k.useState)(!1),R=g.Vpcs??[],ve=x.Subnets??[],ye=S.SecurityGroups??[],be=M.TargetGroups??[],z=N.CertificateSummaryList??[],xe=ge.SslPolicies??[],Se=re({resolver:w(ue),defaultValues:{name:``,type:`application`,scheme:`internet-facing`,vpcId:R[0]?.VpcId??``,subnetIds:[],securityGroupIds:[],tags:[],listener:{protocol:`HTTP`,port:80,targetGroupMode:`new`,existingTargetGroupArn:``,certificateArn:void 0,sslPolicy:void 0}}}),B=re({resolver:w(se),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:R[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:Ce,register:V,watch:H,control:U,setValue:W,getValues:G,formState:{errors:K,isSubmitting:we}}=Se,q=H(`vpcId`),Te=H(`subnetIds`),Ee=H(`securityGroupIds`),J=H(`type`),Y=H(`listener.protocol`),X=H(`listener.targetGroupMode`),De=H(`tags`),Z=J===`network`,Oe=O(Y),ke=ce(J),Ae=Z?[`TCP`,`UDP`,`TLS`,`TCP_UDP`]:[`HTTP`,`HTTPS`],je=ve.filter(e=>e.VpcId===q),Q=ye.filter(e=>e.VpcId===q),Me=be.filter(e=>e.VpcId===q),Ne=e=>{let t=pe(e);B.setValue(`protocol`,t),B.setValue(`healthCheck.protocol`,t===`HTTP`?`HTTP`:`TCP`)},Pe=e=>{W(`type`,e);let t=le(e);W(`listener.protocol`,t),W(`listener.port`,80),W(`listener.certificateArn`,void 0),W(`listener.sslPolicy`,void 0),e===`network`&&W(`securityGroupIds`,[]),Ne(t)},Fe=e=>{W(`listener.protocol`,e);let t=G(`listener.port`);O(e)?(t===80&&W(`listener.port`,443),e===`HTTPS`&&!G(`listener.sslPolicy`)&&W(`listener.sslPolicy`,de)):(t===443&&W(`listener.port`,80),W(`listener.certificateArn`,void 0),W(`listener.sslPolicy`,void 0)),Ne(e)},Ie=(e=``)=>{let t=e??``;W(`vpcId`,t,{shouldValidate:!0}),W(`subnetIds`,[],{shouldValidate:!0}),W(`securityGroupIds`,[]),W(`listener.existingTargetGroupArn`,``),B.setValue(`vpcId`,t)},Le=e=>{let t=G(`subnetIds`);W(`subnetIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e],{shouldValidate:!0})},Re=e=>{let t=G(`securityGroupIds`);W(`securityGroupIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e])},ze=async e=>{I(null);let t;if(e.listener.targetGroupMode===`new`){if(!await B.trigger())return;t=B.getValues()}let n=await P.mutateAsync({lb:{name:e.name,type:e.type,scheme:e.scheme,vpcId:e.vpcId,subnetIds:e.subnetIds,securityGroupIds:e.securityGroupIds,tags:e.tags},listener:{protocol:e.listener.protocol,port:e.listener.port,targetGroupMode:e.listener.targetGroupMode,existingTargetGroupArn:e.listener.existingTargetGroupArn,certificateArn:e.listener.certificateArn,sslPolicy:e.listener.sslPolicy,newTargetGroup:t}});I(n),!n.error&&n.loadBalancerArn&&p({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(n.loadBalancerArn)}})},$=me(je);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(n,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,A.jsx)(ae,{title:`Create Load Balancer`}),P.error&&(0,A.jsx)(e,{error:P.error,msg:`Failed to create load balancer`}),F?.error&&(0,A.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,A.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,F.failedStep]}),(0,A.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:F.error.message}),F.created.length>0&&(0,A.jsxs)(`div`,{className:`mt-3`,children:[(0,A.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources (clean up manually if needed):`}),(0,A.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:F.created.map((e,t)=>(0,A.jsxs)(`li`,{children:[e.type,`: `,e.id??`(created)`]},t))})]})]}),(0,A.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:Ce(ze),children:[(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`lb-name`,children:`Name`})}),(0,A.jsx)(_,{"aria-invalid":!!K.name,id:`lb-name`,placeholder:`my-load-balancer`,...V(`name`)}),(0,A.jsx)(E,{errors:[K.name]})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:`Type`}),(0,A.jsx)(C,{control:U,name:`type`,render:({field:e})=>(0,A.jsxs)(`div`,{className:`flex gap-4`,children:[(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Application Load Balancer`,checked:e.value===`application`,name:`lb-type`,onChange:()=>Pe(`application`),type:`radio`}),`Application (ALB)`]}),(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Network Load Balancer`,checked:e.value===`network`,name:`lb-type`,onChange:()=>Pe(`network`),type:`radio`}),`Network (NLB)`]})]})})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:`Scheme`}),(0,A.jsx)(C,{control:U,name:`scheme`,render:({field:e})=>(0,A.jsxs)(`div`,{className:`flex gap-4`,children:[(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Internet-facing`,checked:e.value===`internet-facing`,name:`scheme`,onChange:()=>e.onChange(`internet-facing`),type:`radio`}),`Internet-facing`]}),(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Internal`,checked:e.value===`internal`,name:`scheme`,onChange:()=>e.onChange(`internal`),type:`radio`}),`Internal`]})]})})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`lb-vpc`,children:`VPC`})}),(0,A.jsx)(C,{control:U,name:`vpcId`,render:({field:e})=>(0,A.jsxs)(s,{onValueChange:e=>Ie(e),value:e.value??``,children:[(0,A.jsx)(o,{"aria-invalid":!!K.vpcId,className:`w-full`,id:`lb-vpc`,children:(0,A.jsx)(r,{placeholder:`Select VPC`})}),(0,A.jsx)(a,{children:R.map(e=>(0,A.jsx)(i,{value:e.VpcId??``,children:fe(e)},e.VpcId))})]})}),(0,A.jsx)(E,{errors:[K.vpcId]})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:`Subnets (select at least 1)`}),$.length===0?(0,A.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the selected VPC.`}):(0,A.jsx)(`div`,{className:`space-y-3`,children:$.map(e=>(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`p`,{className:`mb-1 text-xs font-medium text-muted-foreground`,children:e.az}),(0,A.jsx)(`div`,{className:`space-y-1`,children:e.subnets.map(e=>(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Subnet ${j(e)}`,checked:Te.includes(e.SubnetId??``),onChange:()=>Le(e.SubnetId??``),type:`checkbox`}),(0,A.jsx)(`span`,{className:`font-mono`,children:j(e)})]},e.SubnetId))})]},e.az))}),(0,A.jsx)(E,{errors:[K.subnetIds]})]}),!Z&&(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:`Security groups`}),Q.length===0?(0,A.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the selected VPC.`}):(0,A.jsx)(`div`,{className:`space-y-1`,children:Q.map(e=>(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:Ee.includes(e.GroupId??``),onChange:()=>Re(e.GroupId??``),type:`checkbox`}),(0,A.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:`Tags`}),(0,A.jsxs)(`div`,{className:`space-y-2`,children:[De.map((e,t)=>(0,A.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,A.jsx)(_,{placeholder:`Key`,...V(`tags.${t}.key`)}),(0,A.jsx)(_,{placeholder:`Value`,...V(`tags.${t}.value`)}),(0,A.jsx)(v,{onClick:()=>W(`tags`,G(`tags`).filter((e,n)=>n!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,A.jsx)(u,{className:`size-3.5`})})]},t)),(0,A.jsxs)(v,{onClick:()=>W(`tags`,[...G(`tags`),{key:``,value:``}]),size:`sm`,type:`button`,variant:`outline`,children:[(0,A.jsx)(c,{className:`size-3.5`}),`Add tag`]})]})]}),(0,A.jsxs)(`div`,{className:`space-y-4 rounded-md border bg-card p-4`,children:[(0,A.jsx)(`h2`,{className:`text-sm font-semibold`,children:`First listener & default target group`}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),(0,A.jsx)(C,{control:U,name:`listener.protocol`,render:({field:e})=>(0,A.jsxs)(s,{onValueChange:e=>{e&&Fe(e)},value:e.value,children:[(0,A.jsx)(o,{className:`w-full`,id:`listener-protocol`,children:(0,A.jsx)(r,{})}),(0,A.jsx)(a,{children:ke.map(e=>(0,A.jsx)(i,{value:e,children:e},e))})]})})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),(0,A.jsx)(_,{"aria-invalid":!!K.listener?.port,id:`listener-port`,inputMode:`numeric`,type:`number`,...V(`listener.port`,{valueAsNumber:!0})}),(0,A.jsx)(E,{errors:[K.listener?.port]})]}),Oe&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`listener-certificate`,children:`Certificate`})}),(0,A.jsx)(C,{control:U,name:`listener.certificateArn`,render:({field:e})=>(0,A.jsxs)(s,{onValueChange:e.onChange,value:e.value??``,children:[(0,A.jsx)(o,{"aria-invalid":!!K.listener?.certificateArn,className:`w-full`,id:`listener-certificate`,children:(0,A.jsx)(r,{placeholder:`Select certificate`})}),(0,A.jsx)(a,{children:z.map(e=>(0,A.jsx)(i,{value:e.CertificateArn??``,children:e.DomainName??e.CertificateArn?.split(`/`).pop()},e.CertificateArn))})]})}),(0,A.jsx)(E,{errors:[K.listener?.certificateArn]}),(0,A.jsxs)(`div`,{className:`mt-1 flex items-center justify-between`,children:[z.length===0&&(0,A.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No certificates imported yet.`}),(0,A.jsx)(v,{className:`ml-auto`,onClick:()=>L(!0),size:`sm`,type:`button`,variant:`ghost`,children:`Import certificate…`})]})]}),Y===`HTTPS`&&(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`listener-ssl-policy`,children:`Security policy`})}),(0,A.jsx)(C,{control:U,name:`listener.sslPolicy`,render:({field:e})=>(0,A.jsxs)(s,{onValueChange:e.onChange,value:e.value??`ELBSecurityPolicy-2016-08`,children:[(0,A.jsx)(o,{className:`w-full`,id:`listener-ssl-policy`,children:(0,A.jsx)(r,{})}),(0,A.jsx)(a,{children:xe.map(e=>(0,A.jsx)(i,{value:e.Name??``,children:e.Name},e.Name))})]})})]})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:`Default target group`}),(0,A.jsx)(C,{control:U,name:`listener.targetGroupMode`,render:({field:e})=>(0,A.jsxs)(`div`,{className:`flex gap-4`,children:[(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Create new target group`,checked:e.value===`new`,name:`tg-mode`,onChange:()=>e.onChange(`new`),type:`radio`}),`Create new`]}),(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Use existing target group`,checked:e.value===`existing`,name:`tg-mode`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Use existing`]})]})})]}),X===`existing`&&(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`tg-existing`,children:`Target group`})}),(0,A.jsx)(C,{control:U,name:`listener.existingTargetGroupArn`,render:({field:e})=>(0,A.jsxs)(s,{onValueChange:e.onChange,value:e.value??``,children:[(0,A.jsx)(o,{"aria-invalid":!!K.listener?.existingTargetGroupArn,className:`w-full`,id:`tg-existing`,children:(0,A.jsx)(r,{placeholder:`Select target group`})}),(0,A.jsx)(a,{children:Me.map(e=>(0,A.jsxs)(i,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,A.jsx)(E,{errors:[K.listener?.existingTargetGroupArn]}),Me.length===0&&(0,A.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups in this VPC. Choose “Create new” instead.`})]}),X===`new`&&(0,A.jsx)(`div`,{className:`space-y-4 border-l-2 border-muted pl-4`,children:(0,A.jsx)(oe,{allowedProtocols:Ae,form:B,vpcs:R})})]}),(0,A.jsx)(d,{onImported:e=>W(`listener.certificateArn`,e,{shouldValidate:!0}),onOpenChange:L,open:_e}),(0,A.jsx)(l,{commands:he(H,B.watch)}),(0,A.jsx)(ie,{isPending:P.isPending,isSubmitting:we,onCancel:async()=>await p({to:`/ec2/describe-load-balancers`}),pendingLabel:`Creating…`,submitLabel:`Create Load Balancer`})]})]})}function he(e,t){let n=t=>{let n=e(t);return typeof n==`string`?n:``},r=t=>{let n=e(t);return Array.isArray(n)?n.filter(e=>typeof e==`string`):[]},i=t=>{let n=e(t);return typeof n==`number`&&Number.isFinite(n)?n:void 0},a=n(`name`)||``,o=n(`type`)||`application`,s=n(`scheme`)||`internet-facing`,c=r(`subnetIds`),l=r(`securityGroupIds`),u=n(`listener.protocol`)||`HTTP`,d=i(`listener.port`)??80,f=n(`listener.certificateArn`),p=n(`listener.sslPolicy`),m=n(`listener.targetGroupMode`),h=n(`listener.existingTargetGroupArn`),g=[],_={type:`comment`,value:o===`network`?`# Create NLB with listener and default target group `:`# Create ALB with listener and default target group @@ -18,4 +18,4 @@ import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";impor --port`},{type:`value`,value:` ${d}`}];return(u===`HTTPS`||u===`TLS`)&&f&&(x.push({type:`flag`,value:` \\ --certificates`},{type:`value`,value:` CertificateArn=${f}`}),u===`HTTPS`&&p&&x.push({type:`flag`,value:` \\ --ssl-policy`},{type:`value`,value:` ${p}`})),x.push({type:`flag`,value:` \\ - --default-actions`},{type:`value`,value:` Type=forward,TargetGroupArn="$TG_ARN"`}),g.push({label:`Create Listener`,parts:x}),g}var F=P;export{F as component}; \ No newline at end of file + --default-actions`},{type:`value`,value:` Type=forward,TargetGroupArn="$TG_ARN"`}),g.push({label:`Create Listener`,parts:x}),g}var N=M;export{N as component}; \ 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 29a4b8b44..28612bb43 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{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as ee}from"./back-link.js";import{c as n,i as r,n as i,s as a,t as o}from"./select.js";import{t as te}from"./cli-command-panel.js";import{m as ne}from"./ec2.js";import{Da as re,Io as s,Q as ie,St as ae,fs as c,hs as oe,ms as se,ys as l}from"./index.js";import{a as ce,i as le,n as ue,t as de}from"./zod.js";import{t as fe}from"./form-actions.js";import{t as pe}from"./page-heading.js";import{a as u,r as me,t as he}from"./field.js";import{s as ge}from"./ec22.js";var _e=c(),d=l();function f(){let r=(0,_e.c)(70),s=oe(),{data:c}=t(ae),{data:l}=t(ie),f=ne(),p;r[0]===c.Subnets?p=r[1]:(p=c.Subnets??[],r[0]=c.Subnets,r[1]=p);let m=p,h;r[2]===m?h=r[3]:(h=m.filter(xe),r[2]=m,r[3]=h);let Ce=h,g=Ce.length>0?Ce:m,_;r[4]===l.Addresses?_=r[5]:(_=l.Addresses??[],r[4]=l.Addresses,r[5]=_);let v;r[6]===_?v=r[7]:(v=_.filter(be),r[6]=_,r[7]=v);let y=v,b;r[8]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:de(ge),defaultValues:{subnetId:``,allocationId:``,name:``}},r[8]=b):b=r[8];let{control:x,handleSubmit:S,register:C,formState:we}=le(b),{errors:w,isSubmitting:T}=we,E;r[9]===x?E=r[10]:(E={control:x},r[9]=x,r[10]=E);let D=ce(E),O;r[11]===D?O=r[12]:(O=e=>e?D[e]:void 0,r[11]=D,r[12]=O);let k=O,A;r[13]!==f||r[14]!==s?(A=async e=>{let t=(await f.mutateAsync({subnetId:e.subnetId,allocationId:e.allocationId,name:e.name?.trim()??void 0})).NatGateway?.NatGatewayId;s(t?{to:`/ec2/describe-nat-gateways/$id`,params:{id:t}}:{to:`/ec2/describe-nat-gateways`})},r[13]=f,r[14]=s,r[15]=A):A=r[15];let j=A,M,N;r[16]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,d.jsx)(ee,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),M=(0,d.jsx)(pe,{title:`Create NAT Gateway`}),r[16]=M,r[17]=N):(M=r[16],N=r[17]);let P;r[18]===f.error?P=r[19]:(P=f.error&&(0,d.jsx)(e,{error:f.error,msg:`Failed to create NAT Gateway`}),r[18]=f.error,r[19]=P);let F;r[20]!==S||r[21]!==j?(F=S(j),r[20]=S,r[21]=j,r[22]=F):F=r[22];let I;r[23]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,d.jsx)(u,{children:(0,d.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),r[23]=I):I=r[23];let L;r[24]===C?L=r[25]:(L=C(`name`),r[24]=C,r[25]=L);let R;r[26]===L?R=r[27]:(R=(0,d.jsxs)(he,{children:[I,(0,d.jsx)(re,{id:`name`,placeholder:`my-nat-gateway`,...L})]}),r[26]=L,r[27]=R);let z;r[28]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,d.jsx)(u,{children:(0,d.jsx)(`label`,{htmlFor:`subnetId`,children:`Public subnet`})}),r[28]=z):z=r[28];let B;r[29]!==w.subnetId||r[30]!==g?(B=e=>{let{field:t}=e;return(0,d.jsxs)(o,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(a,{"aria-invalid":!!w.subnetId,className:`w-full`,id:`subnetId`,children:(0,d.jsx)(n,{placeholder:`Select a public subnet`})}),(0,d.jsx)(i,{children:g.map(ye)})]})},r[29]=w.subnetId,r[30]=g,r[31]=B):B=r[31];let V;r[32]!==x||r[33]!==B?(V=(0,d.jsx)(ue,{control:x,name:`subnetId`,render:B}),r[32]=x,r[33]=B,r[34]=V):V=r[34];let H;r[35]===w.subnetId?H=r[36]:(H=(0,d.jsx)(me,{errors:[w.subnetId]}),r[35]=w.subnetId,r[36]=H);let U;r[37]!==V||r[38]!==H?(U=(0,d.jsxs)(he,{children:[z,V,H]}),r[37]=V,r[38]=H,r[39]=U):U=r[39];let W;r[40]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,d.jsx)(u,{children:(0,d.jsx)(`label`,{htmlFor:`allocationId`,children:`Elastic IP`})}),r[40]=W):W=r[40];let G;r[41]!==y||r[42]!==x||r[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)(o,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(a,{"aria-invalid":!!w.allocationId,className:`w-full`,id:`allocationId`,children:(0,d.jsx)(n,{placeholder:`Select an Elastic IP`})}),(0,d.jsx)(i,{children:y.map(ve)})]})}}):(0,d.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No available Elastic IPs.`,` `,(0,d.jsx)(se,{className:`text-primary hover:underline`,to:`/ec2/allocate-address`,children:`Allocate one`}),` `,`first.`]}),r[41]=y,r[42]=x,r[43]=w.allocationId,r[44]=G):G=r[44];let K;r[45]===w.allocationId?K=r[46]:(K=(0,d.jsx)(me,{errors:[w.allocationId]}),r[45]=w.allocationId,r[46]=K);let q;r[47]!==G||r[48]!==K?(q=(0,d.jsxs)(he,{children:[W,G,K]}),r[47]=G,r[48]=K,r[49]=q):q=r[49];let J;r[50]===k?J=r[51]:(J=Se(k),r[50]=k,r[51]=J);let Y;r[52]===J?Y=r[53]:(Y=(0,d.jsx)(te,{commands:J}),r[52]=J,r[53]=Y);let X;r[54]===s?X=r[55]:(X=async()=>await s({to:`/ec2/describe-nat-gateways`}),r[54]=s,r[55]=X);let Z;r[56]!==f.isPending||r[57]!==T||r[58]!==X?(Z=(0,d.jsx)(fe,{isPending:f.isPending,isSubmitting:T,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create NAT Gateway`}),r[56]=f.isPending,r[57]=T,r[58]=X,r[59]=Z):Z=r[59];let Q;r[60]!==F||r[61]!==R||r[62]!==U||r[63]!==q||r[64]!==Y||r[65]!==Z?(Q=(0,d.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:F,children:[R,U,q,Y,Z]}),r[60]=F,r[61]=R,r[62]=U,r[63]=q,r[64]=Y,r[65]=Z,r[66]=Q):Q=r[66];let $;return r[67]!==P||r[68]!==Q?($=(0,d.jsxs)(d.Fragment,{children:[N,M,P,Q]}),r[67]=P,r[68]=Q,r[69]=$):$=r[69],$}function ve(e){return(0,d.jsx)(r,{value:e.AllocationId??``,children:`${e.AllocationId} (${e.PublicIp})`},e.AllocationId)}function ye(e){let t=s(e.Tags);return(0,d.jsx)(r,{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`),ee=typeof t==`string`?t:``,n=e(`allocationId`),r=typeof n==`string`?n:``,i=e(`name`),a=typeof i==`string`?i:``,o=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-nat-gateway`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as ee}from"./back-link.js";import{c as n,i as r,n as i,s as a,t as o}from"./select.js";import{t as te}from"./cli-command-panel.js";import{m as ne}from"./ec2.js";import{Lo as s,Oa as re,Q as ie,St as ae,bs as c,gs as oe,hs as se,ps as l}from"./index.js";import{a as ce,i as le,n as ue,t as de}from"./zod.js";import{t as fe}from"./form-actions.js";import{t as pe}from"./page-heading.js";import{a as u,r as me,t as d}from"./field.js";import{s as he}from"./ec22.js";var ge=l(),f=c();function p(){let r=(0,ge.c)(70),s=oe(),{data:c}=t(ae),{data:l}=t(ie),p=ne(),m;r[0]===c.Subnets?m=r[1]:(m=c.Subnets??[],r[0]=c.Subnets,r[1]=m);let h=m,g;r[2]===h?g=r[3]:(g=h.filter(be),r[2]=h,r[3]=g);let Se=g,_=Se.length>0?Se:h,v;r[4]===l.Addresses?v=r[5]:(v=l.Addresses??[],r[4]=l.Addresses,r[5]=v);let y;r[6]===v?y=r[7]:(y=v.filter(ye),r[6]=v,r[7]=y);let b=y,x;r[8]===Symbol.for(`react.memo_cache_sentinel`)?(x={resolver:de(he),defaultValues:{subnetId:``,allocationId:``,name:``}},r[8]=x):x=r[8];let{control:S,handleSubmit:C,register:Ce,formState:we}=le(x),{errors:w,isSubmitting:T}=we,E;r[9]===S?E=r[10]:(E={control:S},r[9]=S,r[10]=E);let D=ce(E),O;r[11]===D?O=r[12]:(O=e=>e?D[e]:void 0,r[11]=D,r[12]=O);let k=O,A;r[13]!==p||r[14]!==s?(A=async e=>{let t=(await p.mutateAsync({subnetId:e.subnetId,allocationId:e.allocationId,name:e.name?.trim()??void 0})).NatGateway?.NatGatewayId;s(t?{to:`/ec2/describe-nat-gateways/$id`,params:{id:t}}:{to:`/ec2/describe-nat-gateways`})},r[13]=p,r[14]=s,r[15]=A):A=r[15];let j=A,M,N;r[16]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,f.jsx)(ee,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),M=(0,f.jsx)(pe,{title:`Create NAT Gateway`}),r[16]=M,r[17]=N):(M=r[16],N=r[17]);let P;r[18]===p.error?P=r[19]:(P=p.error&&(0,f.jsx)(e,{error:p.error,msg:`Failed to create NAT Gateway`}),r[18]=p.error,r[19]=P);let F;r[20]!==C||r[21]!==j?(F=C(j),r[20]=C,r[21]=j,r[22]=F):F=r[22];let I;r[23]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),r[23]=I):I=r[23];let L;r[24]===Ce?L=r[25]:(L=Ce(`name`),r[24]=Ce,r[25]=L);let R;r[26]===L?R=r[27]:(R=(0,f.jsxs)(d,{children:[I,(0,f.jsx)(re,{id:`name`,placeholder:`my-nat-gateway`,...L})]}),r[26]=L,r[27]=R);let z;r[28]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`subnetId`,children:`Public subnet`})}),r[28]=z):z=r[28];let B;r[29]!==w.subnetId||r[30]!==_?(B=e=>{let{field:t}=e;return(0,f.jsxs)(o,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,f.jsx)(a,{"aria-invalid":!!w.subnetId,className:`w-full`,id:`subnetId`,children:(0,f.jsx)(n,{placeholder:`Select a public subnet`})}),(0,f.jsx)(i,{children:_.map(ve)})]})},r[29]=w.subnetId,r[30]=_,r[31]=B):B=r[31];let V;r[32]!==S||r[33]!==B?(V=(0,f.jsx)(ue,{control:S,name:`subnetId`,render:B}),r[32]=S,r[33]=B,r[34]=V):V=r[34];let H;r[35]===w.subnetId?H=r[36]:(H=(0,f.jsx)(me,{errors:[w.subnetId]}),r[35]=w.subnetId,r[36]=H);let U;r[37]!==V||r[38]!==H?(U=(0,f.jsxs)(d,{children:[z,V,H]}),r[37]=V,r[38]=H,r[39]=U):U=r[39];let W;r[40]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`allocationId`,children:`Elastic IP`})}),r[40]=W):W=r[40];let G;r[41]!==b||r[42]!==S||r[43]!==w.allocationId?(G=b.length>0?(0,f.jsx)(ue,{control:S,name:`allocationId`,render:e=>{let{field:t}=e;return(0,f.jsxs)(o,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,f.jsx)(a,{"aria-invalid":!!w.allocationId,className:`w-full`,id:`allocationId`,children:(0,f.jsx)(n,{placeholder:`Select an Elastic IP`})}),(0,f.jsx)(i,{children:b.map(_e)})]})}}):(0,f.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No available Elastic IPs.`,` `,(0,f.jsx)(se,{className:`text-primary hover:underline`,to:`/ec2/allocate-address`,children:`Allocate one`}),` `,`first.`]}),r[41]=b,r[42]=S,r[43]=w.allocationId,r[44]=G):G=r[44];let K;r[45]===w.allocationId?K=r[46]:(K=(0,f.jsx)(me,{errors:[w.allocationId]}),r[45]=w.allocationId,r[46]=K);let q;r[47]!==G||r[48]!==K?(q=(0,f.jsxs)(d,{children:[W,G,K]}),r[47]=G,r[48]=K,r[49]=q):q=r[49];let J;r[50]===k?J=r[51]:(J=xe(k),r[50]=k,r[51]=J);let Y;r[52]===J?Y=r[53]:(Y=(0,f.jsx)(te,{commands:J}),r[52]=J,r[53]=Y);let X;r[54]===s?X=r[55]:(X=async()=>await s({to:`/ec2/describe-nat-gateways`}),r[54]=s,r[55]=X);let Z;r[56]!==p.isPending||r[57]!==T||r[58]!==X?(Z=(0,f.jsx)(fe,{isPending:p.isPending,isSubmitting:T,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create NAT Gateway`}),r[56]=p.isPending,r[57]=T,r[58]=X,r[59]=Z):Z=r[59];let Q;r[60]!==F||r[61]!==R||r[62]!==U||r[63]!==q||r[64]!==Y||r[65]!==Z?(Q=(0,f.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:F,children:[R,U,q,Y,Z]}),r[60]=F,r[61]=R,r[62]=U,r[63]=q,r[64]=Y,r[65]=Z,r[66]=Q):Q=r[66];let $;return r[67]!==P||r[68]!==Q?($=(0,f.jsxs)(f.Fragment,{children:[N,M,P,Q]}),r[67]=P,r[68]=Q,r[69]=$):$=r[69],$}function _e(e){return(0,f.jsx)(r,{value:e.AllocationId??``,children:`${e.AllocationId} (${e.PublicIp})`},e.AllocationId)}function ve(e){let t=s(e.Tags);return(0,f.jsx)(r,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)}function ye(e){return!e.AssociationId}function be(e){return e.MapPublicIpOnLaunch}function xe(e){let t=e(`subnetId`),ee=typeof t==`string`?t:``,n=e(`allocationId`),r=typeof n==`string`?n:``,i=e(`name`),a=typeof i==`string`?i:``,o=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-nat-gateway`},{type:`flag`,value:` \\ --subnet-id`},{type:`value`,value:` ${ee||``}`},{type:`flag`,value:` \\ --allocation-id`},{type:`value`,value:` ${r||``}`}];return a.trim()&&o.push({type:`flag`,value:` \\ - --tag-specifications`},{type:`value`,value:` 'ResourceType=natgateway,Tags=[{Key=Name,Value=${a.trim()}}]'`}),[{label:`Create NAT Gateway`,parts:o}]}export{f as component}; \ No newline at end of file + --tag-specifications`},{type:`value`,value:` 'ResourceType=natgateway,Tags=[{Key=Name,Value=${a.trim()}}]'`}),[{label:`Create NAT Gateway`,parts:o}]}export{p as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group.js b/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group.js index 783331144..9a266aeb8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group.js @@ -1,3 +1,3 @@ -import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{c as n,i as r,n as i,s as a,t as ee}from"./select.js";import{t as o}from"./cli-command-panel.js";import{h as s}from"./ec2.js";import{Da as c,fs as l,hs as u,ys as d}from"./index.js";import{a as f,i as p,n as te,t as ne}from"./zod.js";import{t as re}from"./form-actions.js";import{t as ie}from"./page-heading.js";import{a as m,r as h,t as g}from"./field.js";import{c as _}from"./ec22.js";var v=l(),y=d();function b(){let l=(0,v.c)(56),d=u(),b=s(),x;l[0]===Symbol.for(`react.memo_cache_sentinel`)?(x={resolver:ne(_),defaultValues:{groupName:``,strategy:`spread`}},l[0]=x):x=l[0];let{control:S,handleSubmit:C,register:w,formState:oe}=p(x),{errors:T,isSubmitting:E}=oe,D;l[1]===S?D=l[2]:(D={control:S},l[1]=S,l[2]=D);let O=f(D),k;l[3]===O?k=l[4]:(k=e=>e?O[e]:void 0,l[3]=O,l[4]=k);let A=k,j;l[5]!==b||l[6]!==d?(j=async e=>{d({to:`/ec2/describe-placement-groups/$id`,params:{id:(await b.mutateAsync(e)).PlacementGroup?.GroupId??``}})},l[5]=b,l[6]=d,l[7]=j):j=l[7];let M=j,N,P;l[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,y.jsx)(t,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),P=(0,y.jsx)(ie,{title:`Create Placement Group`}),l[8]=N,l[9]=P):(N=l[8],P=l[9]);let F;l[10]===b.error?F=l[11]:(F=b.error&&(0,y.jsx)(e,{error:b.error,msg:`Failed to create placement group`}),l[10]=b.error,l[11]=F);let I;l[12]!==C||l[13]!==M?(I=C(M),l[12]=C,l[13]=M,l[14]=I):I=l[14];let L;l[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,y.jsx)(m,{children:(0,y.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),l[15]=L):L=l[15];let R=!!T.groupName,z;l[16]===w?z=l[17]:(z=w(`groupName`),l[16]=w,l[17]=z);let B;l[18]!==R||l[19]!==z?(B=(0,y.jsx)(c,{"aria-invalid":R,id:`groupName`,placeholder:`my-placement-group`,...z}),l[18]=R,l[19]=z,l[20]=B):B=l[20];let V;l[21]===T.groupName?V=l[22]:(V=(0,y.jsx)(h,{errors:[T.groupName]}),l[21]=T.groupName,l[22]=V);let H;l[23]!==B||l[24]!==V?(H=(0,y.jsxs)(g,{children:[L,B,V]}),l[23]=B,l[24]=V,l[25]=H):H=l[25];let U;l[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,y.jsx)(m,{children:(0,y.jsx)(`label`,{htmlFor:`strategy`,children:`Strategy`})}),l[26]=U):U=l[26];let W;l[27]===T.strategy?W=l[28]:(W=e=>{let{field:t}=e;return(0,y.jsxs)(ee,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,y.jsx)(a,{"aria-invalid":!!T.strategy,className:`w-full`,id:`strategy`,children:(0,y.jsx)(n,{})}),(0,y.jsxs)(i,{children:[(0,y.jsx)(r,{value:`spread`,children:`spread`}),(0,y.jsx)(r,{value:`cluster`,children:`cluster`})]})]})},l[27]=T.strategy,l[28]=W);let G;l[29]!==S||l[30]!==W?(G=(0,y.jsx)(te,{control:S,name:`strategy`,render:W}),l[29]=S,l[30]=W,l[31]=G):G=l[31];let K;l[32]===T.strategy?K=l[33]:(K=(0,y.jsx)(h,{errors:[T.strategy]}),l[32]=T.strategy,l[33]=K);let q;l[34]!==G||l[35]!==K?(q=(0,y.jsxs)(g,{children:[U,G,K]}),l[34]=G,l[35]=K,l[36]=q):q=l[36];let J;l[37]===A?J=l[38]:(J=ae(A),l[37]=A,l[38]=J);let Y;l[39]===J?Y=l[40]:(Y=(0,y.jsx)(o,{commands:J}),l[39]=J,l[40]=Y);let X;l[41]===d?X=l[42]:(X=async()=>await d({to:`/ec2/describe-placement-groups`}),l[41]=d,l[42]=X);let Z;l[43]!==b.isPending||l[44]!==E||l[45]!==X?(Z=(0,y.jsx)(re,{isPending:b.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Placement Group`}),l[43]=b.isPending,l[44]=E,l[45]=X,l[46]=Z):Z=l[46];let Q;l[47]!==H||l[48]!==q||l[49]!==Y||l[50]!==Z||l[51]!==I?(Q=(0,y.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),l[47]=H,l[48]=q,l[49]=Y,l[50]=Z,l[51]=I,l[52]=Q):Q=l[52];let $;return l[53]!==Q||l[54]!==F?($=(0,y.jsxs)(y.Fragment,{children:[N,P,F,Q]}),l[53]=Q,l[54]=F,l[55]=$):$=l[55],$}function x(e){return`'${e.replaceAll(`'`,`'"'"'`)}'`}function ae(e){let t=e(`groupName`),n=typeof t==`string`?t:``,r=e(`strategy`),i=typeof r==`string`?r:``;return[{label:`Create Placement Group`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-placement-group`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{c as n,i as r,n as i,s as a,t as ee}from"./select.js";import{t as o}from"./cli-command-panel.js";import{h as s}from"./ec2.js";import{Oa as c,bs as l,gs as u,ps as d}from"./index.js";import{a as f,i as p,n as te,t as ne}from"./zod.js";import{t as re}from"./form-actions.js";import{t as ie}from"./page-heading.js";import{a as m,r as h,t as g}from"./field.js";import{c as _}from"./ec22.js";var v=d(),y=l();function b(){let l=(0,v.c)(56),d=u(),b=s(),x;l[0]===Symbol.for(`react.memo_cache_sentinel`)?(x={resolver:ne(_),defaultValues:{groupName:``,strategy:`spread`}},l[0]=x):x=l[0];let{control:S,handleSubmit:C,register:w,formState:oe}=p(x),{errors:T,isSubmitting:E}=oe,D;l[1]===S?D=l[2]:(D={control:S},l[1]=S,l[2]=D);let O=f(D),k;l[3]===O?k=l[4]:(k=e=>e?O[e]:void 0,l[3]=O,l[4]=k);let A=k,j;l[5]!==b||l[6]!==d?(j=async e=>{d({to:`/ec2/describe-placement-groups/$id`,params:{id:(await b.mutateAsync(e)).PlacementGroup?.GroupId??``}})},l[5]=b,l[6]=d,l[7]=j):j=l[7];let M=j,N,P;l[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,y.jsx)(t,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),P=(0,y.jsx)(ie,{title:`Create Placement Group`}),l[8]=N,l[9]=P):(N=l[8],P=l[9]);let F;l[10]===b.error?F=l[11]:(F=b.error&&(0,y.jsx)(e,{error:b.error,msg:`Failed to create placement group`}),l[10]=b.error,l[11]=F);let I;l[12]!==C||l[13]!==M?(I=C(M),l[12]=C,l[13]=M,l[14]=I):I=l[14];let L;l[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,y.jsx)(m,{children:(0,y.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),l[15]=L):L=l[15];let R=!!T.groupName,z;l[16]===w?z=l[17]:(z=w(`groupName`),l[16]=w,l[17]=z);let B;l[18]!==R||l[19]!==z?(B=(0,y.jsx)(c,{"aria-invalid":R,id:`groupName`,placeholder:`my-placement-group`,...z}),l[18]=R,l[19]=z,l[20]=B):B=l[20];let V;l[21]===T.groupName?V=l[22]:(V=(0,y.jsx)(h,{errors:[T.groupName]}),l[21]=T.groupName,l[22]=V);let H;l[23]!==B||l[24]!==V?(H=(0,y.jsxs)(g,{children:[L,B,V]}),l[23]=B,l[24]=V,l[25]=H):H=l[25];let U;l[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,y.jsx)(m,{children:(0,y.jsx)(`label`,{htmlFor:`strategy`,children:`Strategy`})}),l[26]=U):U=l[26];let W;l[27]===T.strategy?W=l[28]:(W=e=>{let{field:t}=e;return(0,y.jsxs)(ee,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,y.jsx)(a,{"aria-invalid":!!T.strategy,className:`w-full`,id:`strategy`,children:(0,y.jsx)(n,{})}),(0,y.jsxs)(i,{children:[(0,y.jsx)(r,{value:`spread`,children:`spread`}),(0,y.jsx)(r,{value:`cluster`,children:`cluster`})]})]})},l[27]=T.strategy,l[28]=W);let G;l[29]!==S||l[30]!==W?(G=(0,y.jsx)(te,{control:S,name:`strategy`,render:W}),l[29]=S,l[30]=W,l[31]=G):G=l[31];let K;l[32]===T.strategy?K=l[33]:(K=(0,y.jsx)(h,{errors:[T.strategy]}),l[32]=T.strategy,l[33]=K);let q;l[34]!==G||l[35]!==K?(q=(0,y.jsxs)(g,{children:[U,G,K]}),l[34]=G,l[35]=K,l[36]=q):q=l[36];let J;l[37]===A?J=l[38]:(J=ae(A),l[37]=A,l[38]=J);let Y;l[39]===J?Y=l[40]:(Y=(0,y.jsx)(o,{commands:J}),l[39]=J,l[40]=Y);let X;l[41]===d?X=l[42]:(X=async()=>await d({to:`/ec2/describe-placement-groups`}),l[41]=d,l[42]=X);let Z;l[43]!==b.isPending||l[44]!==E||l[45]!==X?(Z=(0,y.jsx)(re,{isPending:b.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Placement Group`}),l[43]=b.isPending,l[44]=E,l[45]=X,l[46]=Z):Z=l[46];let Q;l[47]!==H||l[48]!==q||l[49]!==Y||l[50]!==Z||l[51]!==I?(Q=(0,y.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),l[47]=H,l[48]=q,l[49]=Y,l[50]=Z,l[51]=I,l[52]=Q):Q=l[52];let $;return l[53]!==Q||l[54]!==F?($=(0,y.jsxs)(y.Fragment,{children:[N,P,F,Q]}),l[53]=Q,l[54]=F,l[55]=$):$=l[55],$}function x(e){return`'${e.replaceAll(`'`,`'"'"'`)}'`}function ae(e){let t=e(`groupName`),n=typeof t==`string`?t:``,r=e(`strategy`),i=typeof r==`string`?r:``;return[{label:`Create Placement Group`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-placement-group`},{type:`flag`,value:` \\ --group-name`},{type:`value`,value:` ${n?x(n):``}`},{type:`flag`,value:` \\ --strategy`},{type:`value`,value:` ${i||`spread`}`}]}]}export{b as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-policy.js b/spinifex/services/spinifexui/frontend/dist/assets/create-policy.js index 82c5273fe..83a82703f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-policy.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-policy.js @@ -1,4 +1,4 @@ -import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./cli-command-panel.js";import{o as r}from"./iam.js";import{Da as i,fs as a,hs as o,ys as s}from"./index.js";import{a as c,i as ee,t as te}from"./zod.js";import{t as ne}from"./form-actions.js";import{t as re}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{t as ie}from"./textarea.js";import{r as f}from"./iam2.js";var ae=a(),p=s(),oe=JSON.stringify({Version:`2012-10-17`,Statement:[{Effect:`Allow`,Action:`*`,Resource:`*`}]},null,2);function m(){let a=(0,ae.c)(67),s=o(),m=r(),h;a[0]===Symbol.for(`react.memo_cache_sentinel`)?(h={resolver:te(f),defaultValues:{policyDocument:oe}},a[0]=h):h=a[0];let{handleSubmit:g,register:_,control:v,formState:ce}=ee(h),{errors:y,isSubmitting:b}=ce,x;a[1]===v?x=a[2]:(x={control:v},a[1]=v,a[2]=x);let S=c(x),C;a[3]===S?C=a[4]:(C=e=>e?S[e]:void 0,a[3]=S,a[4]=C);let w=C,T;a[5]!==m||a[6]!==s?(T=async e=>{await m.mutateAsync(e),s({to:`/iam/list-policies`})},a[5]=m,a[6]=s,a[7]=T):T=a[7];let E=T,D,O;a[8]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,p.jsx)(t,{to:`/iam/list-policies`,children:`Back to policies`}),O=(0,p.jsx)(re,{title:`Create Policy`}),a[8]=D,a[9]=O):(D=a[8],O=a[9]);let k;a[10]===m.error?k=a[11]:(k=m.error&&(0,p.jsx)(e,{error:m.error,msg:`Failed to create policy`}),a[10]=m.error,a[11]=k);let A;a[12]!==g||a[13]!==E?(A=g(E),a[12]=g,a[13]=E,a[14]=A):A=a[14];let j;a[15]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`policyName`,children:`Policy Name`})}),a[15]=j):j=a[15];let M=!!y.policyName,N;a[16]===_?N=a[17]:(N=_(`policyName`),a[16]=_,a[17]=N);let P;a[18]!==M||a[19]!==N?(P=(0,p.jsx)(i,{"aria-invalid":M,id:`policyName`,placeholder:`my-policy...`,...N}),a[18]=M,a[19]=N,a[20]=P):P=a[20];let F;a[21]===y.policyName?F=a[22]:(F=(0,p.jsx)(u,{errors:[y.policyName]}),a[21]=y.policyName,a[22]=F);let I;a[23]!==P||a[24]!==F?(I=(0,p.jsxs)(d,{children:[j,P,F]}),a[23]=P,a[24]=F,a[25]=I):I=a[25];let L;a[26]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),a[26]=L):L=a[26];let R;a[27]===_?R=a[28]:(R=_(`description`),a[27]=_,a[28]=R);let z;a[29]===R?z=a[30]:(z=(0,p.jsx)(i,{id:`description`,placeholder:`A brief description of this policy...`,...R}),a[29]=R,a[30]=z);let B;a[31]===y.description?B=a[32]:(B=(0,p.jsx)(u,{errors:[y.description]}),a[31]=y.description,a[32]=B);let V;a[33]!==z||a[34]!==B?(V=(0,p.jsxs)(d,{children:[L,z,B]}),a[33]=z,a[34]=B,a[35]=V):V=a[35];let H;a[36]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`policyDocument`,children:`Policy Document (JSON)`})}),a[36]=H):H=a[36];let U=!!y.policyDocument,W;a[37]===_?W=a[38]:(W=_(`policyDocument`),a[37]=_,a[38]=W);let G;a[39]!==U||a[40]!==W?(G=(0,p.jsx)(ie,{"aria-invalid":U,className:`font-mono text-sm`,id:`policyDocument`,rows:15,...W}),a[39]=U,a[40]=W,a[41]=G):G=a[41];let K;a[42]===y.policyDocument?K=a[43]:(K=(0,p.jsx)(u,{errors:[y.policyDocument]}),a[42]=y.policyDocument,a[43]=K);let q;a[44]!==G||a[45]!==K?(q=(0,p.jsxs)(d,{children:[H,G,K]}),a[44]=G,a[45]=K,a[46]=q):q=a[46];let J;a[47]===w?J=a[48]:(J=se(w),a[47]=w,a[48]=J);let Y;a[49]===J?Y=a[50]:(Y=(0,p.jsx)(n,{commands:J}),a[49]=J,a[50]=Y);let X;a[51]===s?X=a[52]:(X=async()=>await s({to:`/iam/list-policies`}),a[51]=s,a[52]=X);let Z;a[53]!==m.isPending||a[54]!==b||a[55]!==X?(Z=(0,p.jsx)(ne,{isPending:m.isPending,isSubmitting:b,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Policy`}),a[53]=m.isPending,a[54]=b,a[55]=X,a[56]=Z):Z=a[56];let Q;a[57]!==I||a[58]!==V||a[59]!==q||a[60]!==Y||a[61]!==Z||a[62]!==A?(Q=(0,p.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,V,q,Y,Z]}),a[57]=I,a[58]=V,a[59]=q,a[60]=Y,a[61]=Z,a[62]=A,a[63]=Q):Q=a[63];let $;return a[64]!==Q||a[65]!==k?($=(0,p.jsxs)(p.Fragment,{children:[D,O,k,Q]}),a[64]=Q,a[65]=k,a[66]=$):$=a[66],$}function se(e){let t=e(`policyName`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=e(`policyDocument`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-policy`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./cli-command-panel.js";import{o as r}from"./iam.js";import{Oa as i,bs as a,gs as o,ps as s}from"./index.js";import{a as c,i as ee,t as te}from"./zod.js";import{t as ne}from"./form-actions.js";import{t as re}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{t as ie}from"./textarea.js";import{r as f}from"./iam2.js";var ae=s(),p=a(),oe=JSON.stringify({Version:`2012-10-17`,Statement:[{Effect:`Allow`,Action:`*`,Resource:`*`}]},null,2);function m(){let a=(0,ae.c)(67),s=o(),m=r(),h;a[0]===Symbol.for(`react.memo_cache_sentinel`)?(h={resolver:te(f),defaultValues:{policyDocument:oe}},a[0]=h):h=a[0];let{handleSubmit:g,register:_,control:v,formState:ce}=ee(h),{errors:y,isSubmitting:b}=ce,x;a[1]===v?x=a[2]:(x={control:v},a[1]=v,a[2]=x);let S=c(x),C;a[3]===S?C=a[4]:(C=e=>e?S[e]:void 0,a[3]=S,a[4]=C);let w=C,T;a[5]!==m||a[6]!==s?(T=async e=>{await m.mutateAsync(e),s({to:`/iam/list-policies`})},a[5]=m,a[6]=s,a[7]=T):T=a[7];let E=T,D,O;a[8]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,p.jsx)(t,{to:`/iam/list-policies`,children:`Back to policies`}),O=(0,p.jsx)(re,{title:`Create Policy`}),a[8]=D,a[9]=O):(D=a[8],O=a[9]);let k;a[10]===m.error?k=a[11]:(k=m.error&&(0,p.jsx)(e,{error:m.error,msg:`Failed to create policy`}),a[10]=m.error,a[11]=k);let A;a[12]!==g||a[13]!==E?(A=g(E),a[12]=g,a[13]=E,a[14]=A):A=a[14];let j;a[15]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`policyName`,children:`Policy Name`})}),a[15]=j):j=a[15];let M=!!y.policyName,N;a[16]===_?N=a[17]:(N=_(`policyName`),a[16]=_,a[17]=N);let P;a[18]!==M||a[19]!==N?(P=(0,p.jsx)(i,{"aria-invalid":M,id:`policyName`,placeholder:`my-policy...`,...N}),a[18]=M,a[19]=N,a[20]=P):P=a[20];let F;a[21]===y.policyName?F=a[22]:(F=(0,p.jsx)(u,{errors:[y.policyName]}),a[21]=y.policyName,a[22]=F);let I;a[23]!==P||a[24]!==F?(I=(0,p.jsxs)(d,{children:[j,P,F]}),a[23]=P,a[24]=F,a[25]=I):I=a[25];let L;a[26]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),a[26]=L):L=a[26];let R;a[27]===_?R=a[28]:(R=_(`description`),a[27]=_,a[28]=R);let z;a[29]===R?z=a[30]:(z=(0,p.jsx)(i,{id:`description`,placeholder:`A brief description of this policy...`,...R}),a[29]=R,a[30]=z);let B;a[31]===y.description?B=a[32]:(B=(0,p.jsx)(u,{errors:[y.description]}),a[31]=y.description,a[32]=B);let V;a[33]!==z||a[34]!==B?(V=(0,p.jsxs)(d,{children:[L,z,B]}),a[33]=z,a[34]=B,a[35]=V):V=a[35];let H;a[36]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`policyDocument`,children:`Policy Document (JSON)`})}),a[36]=H):H=a[36];let U=!!y.policyDocument,W;a[37]===_?W=a[38]:(W=_(`policyDocument`),a[37]=_,a[38]=W);let G;a[39]!==U||a[40]!==W?(G=(0,p.jsx)(ie,{"aria-invalid":U,className:`font-mono text-sm`,id:`policyDocument`,rows:15,...W}),a[39]=U,a[40]=W,a[41]=G):G=a[41];let K;a[42]===y.policyDocument?K=a[43]:(K=(0,p.jsx)(u,{errors:[y.policyDocument]}),a[42]=y.policyDocument,a[43]=K);let q;a[44]!==G||a[45]!==K?(q=(0,p.jsxs)(d,{children:[H,G,K]}),a[44]=G,a[45]=K,a[46]=q):q=a[46];let J;a[47]===w?J=a[48]:(J=se(w),a[47]=w,a[48]=J);let Y;a[49]===J?Y=a[50]:(Y=(0,p.jsx)(n,{commands:J}),a[49]=J,a[50]=Y);let X;a[51]===s?X=a[52]:(X=async()=>await s({to:`/iam/list-policies`}),a[51]=s,a[52]=X);let Z;a[53]!==m.isPending||a[54]!==b||a[55]!==X?(Z=(0,p.jsx)(ne,{isPending:m.isPending,isSubmitting:b,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Policy`}),a[53]=m.isPending,a[54]=b,a[55]=X,a[56]=Z):Z=a[56];let Q;a[57]!==I||a[58]!==V||a[59]!==q||a[60]!==Y||a[61]!==Z||a[62]!==A?(Q=(0,p.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,V,q,Y,Z]}),a[57]=I,a[58]=V,a[59]=q,a[60]=Y,a[61]=Z,a[62]=A,a[63]=Q):Q=a[63];let $;return a[64]!==Q||a[65]!==k?($=(0,p.jsxs)(p.Fragment,{children:[D,O,k,Q]}),a[64]=Q,a[65]=k,a[66]=$):$=a[66],$}function se(e){let t=e(`policyName`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=e(`policyDocument`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-policy`},{type:`flag`,value:` \\ --policy-name`},{type:`value`,value:` ${n||``}`}];return i&&s.push({type:`flag`,value:` \\ --description`},{type:`value`,value:` "${i}"`}),s.push({type:`flag`,value:` \\ --policy-document`},{type:`value`,value:` '${o||``}'`}),[{label:`Create Policy`,parts:s}]}export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-role.js b/spinifex/services/spinifexui/frontend/dist/assets/create-role.js index 1f5bb79ae..9a71bf3b3 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-role.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-role.js @@ -1,4 +1,4 @@ -import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./cli-command-panel.js";import{s as r}from"./iam.js";import{Da as i,fs as a,hs as o,ys as s}from"./index.js";import{a as c,i as ee,t as te}from"./zod.js";import{t as ne}from"./form-actions.js";import{t as re}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{t as ie}from"./textarea.js";import{i as f,t as ae}from"./iam2.js";var oe=a(),p=s();function m(){let a=(0,oe.c)(67),s=o(),m=r(),h;a[0]===Symbol.for(`react.memo_cache_sentinel`)?(h={resolver:te(f),defaultValues:{assumeRolePolicyDocument:ae}},a[0]=h):h=a[0];let{handleSubmit:g,register:_,control:v,formState:ce}=ee(h),{errors:y,isSubmitting:b}=ce,x;a[1]===v?x=a[2]:(x={control:v},a[1]=v,a[2]=x);let S=c(x),C;a[3]===S?C=a[4]:(C=e=>e?S[e]:void 0,a[3]=S,a[4]=C);let w=C,T;a[5]!==m||a[6]!==s?(T=async e=>{await m.mutateAsync(e),s({to:`/iam/list-roles`})},a[5]=m,a[6]=s,a[7]=T):T=a[7];let E=T,D,O;a[8]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,p.jsx)(t,{to:`/iam/list-roles`,children:`Back to roles`}),O=(0,p.jsx)(re,{title:`Create Role`}),a[8]=D,a[9]=O):(D=a[8],O=a[9]);let k;a[10]===m.error?k=a[11]:(k=m.error&&(0,p.jsx)(e,{error:m.error,msg:`Failed to create role`}),a[10]=m.error,a[11]=k);let A;a[12]!==g||a[13]!==E?(A=g(E),a[12]=g,a[13]=E,a[14]=A):A=a[14];let j;a[15]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`roleName`,children:`Role Name`})}),a[15]=j):j=a[15];let M=!!y.roleName,N;a[16]===_?N=a[17]:(N=_(`roleName`),a[16]=_,a[17]=N);let P;a[18]!==M||a[19]!==N?(P=(0,p.jsx)(i,{"aria-invalid":M,id:`roleName`,placeholder:`my-role...`,...N}),a[18]=M,a[19]=N,a[20]=P):P=a[20];let F;a[21]===y.roleName?F=a[22]:(F=(0,p.jsx)(u,{errors:[y.roleName]}),a[21]=y.roleName,a[22]=F);let I;a[23]!==P||a[24]!==F?(I=(0,p.jsxs)(d,{children:[j,P,F]}),a[23]=P,a[24]=F,a[25]=I):I=a[25];let L;a[26]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),a[26]=L):L=a[26];let R;a[27]===_?R=a[28]:(R=_(`description`),a[27]=_,a[28]=R);let z;a[29]===R?z=a[30]:(z=(0,p.jsx)(i,{id:`description`,placeholder:`A brief description of this role...`,...R}),a[29]=R,a[30]=z);let B;a[31]===y.description?B=a[32]:(B=(0,p.jsx)(u,{errors:[y.description]}),a[31]=y.description,a[32]=B);let V;a[33]!==z||a[34]!==B?(V=(0,p.jsxs)(d,{children:[L,z,B]}),a[33]=z,a[34]=B,a[35]=V):V=a[35];let H;a[36]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`assumeRolePolicyDocument`,children:`Trust Policy (JSON)`})}),a[36]=H):H=a[36];let U=!!y.assumeRolePolicyDocument,W;a[37]===_?W=a[38]:(W=_(`assumeRolePolicyDocument`),a[37]=_,a[38]=W);let G;a[39]!==U||a[40]!==W?(G=(0,p.jsx)(ie,{"aria-invalid":U,className:`font-mono text-sm`,id:`assumeRolePolicyDocument`,rows:15,...W}),a[39]=U,a[40]=W,a[41]=G):G=a[41];let K;a[42]===y.assumeRolePolicyDocument?K=a[43]:(K=(0,p.jsx)(u,{errors:[y.assumeRolePolicyDocument]}),a[42]=y.assumeRolePolicyDocument,a[43]=K);let q;a[44]!==G||a[45]!==K?(q=(0,p.jsxs)(d,{children:[H,G,K]}),a[44]=G,a[45]=K,a[46]=q):q=a[46];let J;a[47]===w?J=a[48]:(J=se(w),a[47]=w,a[48]=J);let Y;a[49]===J?Y=a[50]:(Y=(0,p.jsx)(n,{commands:J}),a[49]=J,a[50]=Y);let X;a[51]===s?X=a[52]:(X=async()=>await s({to:`/iam/list-roles`}),a[51]=s,a[52]=X);let Z;a[53]!==m.isPending||a[54]!==b||a[55]!==X?(Z=(0,p.jsx)(ne,{isPending:m.isPending,isSubmitting:b,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Role`}),a[53]=m.isPending,a[54]=b,a[55]=X,a[56]=Z):Z=a[56];let Q;a[57]!==I||a[58]!==V||a[59]!==q||a[60]!==Y||a[61]!==Z||a[62]!==A?(Q=(0,p.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,V,q,Y,Z]}),a[57]=I,a[58]=V,a[59]=q,a[60]=Y,a[61]=Z,a[62]=A,a[63]=Q):Q=a[63];let $;return a[64]!==Q||a[65]!==k?($=(0,p.jsxs)(p.Fragment,{children:[D,O,k,Q]}),a[64]=Q,a[65]=k,a[66]=$):$=a[66],$}function se(e){let t=e(`roleName`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=e(`assumeRolePolicyDocument`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-role`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./cli-command-panel.js";import{s as r}from"./iam.js";import{Oa as i,bs as a,gs as o,ps as s}from"./index.js";import{a as c,i as ee,t as te}from"./zod.js";import{t as ne}from"./form-actions.js";import{t as re}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{t as ie}from"./textarea.js";import{i as f,t as ae}from"./iam2.js";var oe=s(),p=a();function m(){let a=(0,oe.c)(67),s=o(),m=r(),h;a[0]===Symbol.for(`react.memo_cache_sentinel`)?(h={resolver:te(f),defaultValues:{assumeRolePolicyDocument:ae}},a[0]=h):h=a[0];let{handleSubmit:g,register:_,control:v,formState:ce}=ee(h),{errors:y,isSubmitting:b}=ce,x;a[1]===v?x=a[2]:(x={control:v},a[1]=v,a[2]=x);let S=c(x),C;a[3]===S?C=a[4]:(C=e=>e?S[e]:void 0,a[3]=S,a[4]=C);let w=C,T;a[5]!==m||a[6]!==s?(T=async e=>{await m.mutateAsync(e),s({to:`/iam/list-roles`})},a[5]=m,a[6]=s,a[7]=T):T=a[7];let E=T,D,O;a[8]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,p.jsx)(t,{to:`/iam/list-roles`,children:`Back to roles`}),O=(0,p.jsx)(re,{title:`Create Role`}),a[8]=D,a[9]=O):(D=a[8],O=a[9]);let k;a[10]===m.error?k=a[11]:(k=m.error&&(0,p.jsx)(e,{error:m.error,msg:`Failed to create role`}),a[10]=m.error,a[11]=k);let A;a[12]!==g||a[13]!==E?(A=g(E),a[12]=g,a[13]=E,a[14]=A):A=a[14];let j;a[15]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`roleName`,children:`Role Name`})}),a[15]=j):j=a[15];let M=!!y.roleName,N;a[16]===_?N=a[17]:(N=_(`roleName`),a[16]=_,a[17]=N);let P;a[18]!==M||a[19]!==N?(P=(0,p.jsx)(i,{"aria-invalid":M,id:`roleName`,placeholder:`my-role...`,...N}),a[18]=M,a[19]=N,a[20]=P):P=a[20];let F;a[21]===y.roleName?F=a[22]:(F=(0,p.jsx)(u,{errors:[y.roleName]}),a[21]=y.roleName,a[22]=F);let I;a[23]!==P||a[24]!==F?(I=(0,p.jsxs)(d,{children:[j,P,F]}),a[23]=P,a[24]=F,a[25]=I):I=a[25];let L;a[26]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),a[26]=L):L=a[26];let R;a[27]===_?R=a[28]:(R=_(`description`),a[27]=_,a[28]=R);let z;a[29]===R?z=a[30]:(z=(0,p.jsx)(i,{id:`description`,placeholder:`A brief description of this role...`,...R}),a[29]=R,a[30]=z);let B;a[31]===y.description?B=a[32]:(B=(0,p.jsx)(u,{errors:[y.description]}),a[31]=y.description,a[32]=B);let V;a[33]!==z||a[34]!==B?(V=(0,p.jsxs)(d,{children:[L,z,B]}),a[33]=z,a[34]=B,a[35]=V):V=a[35];let H;a[36]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`assumeRolePolicyDocument`,children:`Trust Policy (JSON)`})}),a[36]=H):H=a[36];let U=!!y.assumeRolePolicyDocument,W;a[37]===_?W=a[38]:(W=_(`assumeRolePolicyDocument`),a[37]=_,a[38]=W);let G;a[39]!==U||a[40]!==W?(G=(0,p.jsx)(ie,{"aria-invalid":U,className:`font-mono text-sm`,id:`assumeRolePolicyDocument`,rows:15,...W}),a[39]=U,a[40]=W,a[41]=G):G=a[41];let K;a[42]===y.assumeRolePolicyDocument?K=a[43]:(K=(0,p.jsx)(u,{errors:[y.assumeRolePolicyDocument]}),a[42]=y.assumeRolePolicyDocument,a[43]=K);let q;a[44]!==G||a[45]!==K?(q=(0,p.jsxs)(d,{children:[H,G,K]}),a[44]=G,a[45]=K,a[46]=q):q=a[46];let J;a[47]===w?J=a[48]:(J=se(w),a[47]=w,a[48]=J);let Y;a[49]===J?Y=a[50]:(Y=(0,p.jsx)(n,{commands:J}),a[49]=J,a[50]=Y);let X;a[51]===s?X=a[52]:(X=async()=>await s({to:`/iam/list-roles`}),a[51]=s,a[52]=X);let Z;a[53]!==m.isPending||a[54]!==b||a[55]!==X?(Z=(0,p.jsx)(ne,{isPending:m.isPending,isSubmitting:b,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Role`}),a[53]=m.isPending,a[54]=b,a[55]=X,a[56]=Z):Z=a[56];let Q;a[57]!==I||a[58]!==V||a[59]!==q||a[60]!==Y||a[61]!==Z||a[62]!==A?(Q=(0,p.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,V,q,Y,Z]}),a[57]=I,a[58]=V,a[59]=q,a[60]=Y,a[61]=Z,a[62]=A,a[63]=Q):Q=a[63];let $;return a[64]!==Q||a[65]!==k?($=(0,p.jsxs)(p.Fragment,{children:[D,O,k,Q]}),a[64]=Q,a[65]=k,a[66]=$):$=a[66],$}function se(e){let t=e(`roleName`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=e(`assumeRolePolicyDocument`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-role`},{type:`flag`,value:` \\ --role-name`},{type:`value`,value:` ${n||``}`}];return i&&s.push({type:`flag`,value:` \\ --description`},{type:`value`,value:` "${i}"`}),s.push({type:`flag`,value:` \\ --assume-role-policy-document`},{type:`value`,value:` '${o||``}'`}),[{label:`Create Role`,parts:s}]}export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-route-table.js b/spinifex/services/spinifexui/frontend/dist/assets/create-route-table.js index 113af243f..06fe4b87e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-route-table.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-route-table.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as o,t as s}from"./select.js";import{_ as c}from"./ec2.js";import{Da as l,Et as u,Io as d,fs as f,hs as p,ys as m}from"./index.js";import{i as h,n as g,t as _}from"./zod.js";import{t as v}from"./form-actions.js";import{t as y}from"./page-heading.js";import{a as b,r as x,t as S}from"./field.js";import{u as C}from"./ec22.js";var w=f(),T=m();function E(){let i=(0,w.c)(44),d=p(),{data:f}=t(u),m=c(),E;i[0]===f.Vpcs?E=i[1]:(E=f.Vpcs??[],i[0]=f.Vpcs,i[1]=E);let O=E,k;i[2]===Symbol.for(`react.memo_cache_sentinel`)?(k={resolver:_(C),defaultValues:{vpcId:``,name:``}},i[2]=k):k=i[2];let{control:A,handleSubmit:j,register:M,formState:N}=h(k),{errors:P,isSubmitting:F}=N,I;i[3]!==m||i[4]!==d?(I=async e=>{let t=(await m.mutateAsync({vpcId:e.vpcId,name:e.name?.trim()?e.name.trim():void 0})).RouteTable?.RouteTableId;d(t?{to:`/ec2/describe-route-tables/$id`,params:{id:t}}:{to:`/ec2/describe-route-tables`})},i[3]=m,i[4]=d,i[5]=I):I=i[5];let L=I,R,z;i[6]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,T.jsx)(n,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z=(0,T.jsx)(y,{title:`Create Route Table`}),i[6]=R,i[7]=z):(R=i[6],z=i[7]);let B;i[8]===m.error?B=i[9]:(B=m.error&&(0,T.jsx)(e,{error:m.error,msg:`Failed to create Route Table`}),i[8]=m.error,i[9]=B);let V;i[10]!==j||i[11]!==L?(V=j(L),i[10]=j,i[11]=L,i[12]=V):V=i[12];let H;i[13]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,T.jsx)(b,{children:(0,T.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),i[13]=H):H=i[13];let U;i[14]===M?U=i[15]:(U=M(`name`),i[14]=M,i[15]=U);let W;i[16]===U?W=i[17]:(W=(0,T.jsxs)(S,{children:[H,(0,T.jsx)(l,{id:`name`,placeholder:`my-route-table`,...U})]}),i[16]=U,i[17]=W);let G;i[18]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,T.jsx)(b,{children:(0,T.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),i[18]=G):G=i[18];let K;i[19]!==P.vpcId||i[20]!==O?(K=e=>{let{field:t}=e;return(0,T.jsxs)(s,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,T.jsx)(o,{"aria-invalid":!!P.vpcId,className:`w-full`,id:`vpcId`,children:(0,T.jsx)(r,{placeholder:`Select a VPC`})}),(0,T.jsx)(a,{children:O.map(D)})]})},i[19]=P.vpcId,i[20]=O,i[21]=K):K=i[21];let q;i[22]!==A||i[23]!==K?(q=(0,T.jsx)(g,{control:A,name:`vpcId`,render:K}),i[22]=A,i[23]=K,i[24]=q):q=i[24];let J;i[25]===P.vpcId?J=i[26]:(J=(0,T.jsx)(x,{errors:[P.vpcId]}),i[25]=P.vpcId,i[26]=J);let Y;i[27]!==q||i[28]!==J?(Y=(0,T.jsxs)(S,{children:[G,q,J]}),i[27]=q,i[28]=J,i[29]=Y):Y=i[29];let X;i[30]===d?X=i[31]:(X=async()=>await d({to:`/ec2/describe-route-tables`}),i[30]=d,i[31]=X);let Z;i[32]!==m.isPending||i[33]!==F||i[34]!==X?(Z=(0,T.jsx)(v,{isPending:m.isPending,isSubmitting:F,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Route Table`}),i[32]=m.isPending,i[33]=F,i[34]=X,i[35]=Z):Z=i[35];let Q;i[36]!==W||i[37]!==Y||i[38]!==Z||i[39]!==V?(Q=(0,T.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:V,children:[W,Y,Z]}),i[36]=W,i[37]=Y,i[38]=Z,i[39]=V,i[40]=Q):Q=i[40];let $;return i[41]!==Q||i[42]!==B?($=(0,T.jsxs)(T.Fragment,{children:[R,z,B,Q]}),i[41]=Q,i[42]=B,i[43]=$):$=i[43],$}function D(e){let t=d(e.Tags);return(0,T.jsx)(i,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}export{E as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as o,t as s}from"./select.js";import{_ as c}from"./ec2.js";import{Et as l,Lo as u,Oa as d,bs as f,gs as p,ps as m}from"./index.js";import{i as h,n as g,t as _}from"./zod.js";import{t as v}from"./form-actions.js";import{t as y}from"./page-heading.js";import{a as b,r as x,t as S}from"./field.js";import{u as C}from"./ec22.js";var w=m(),T=f();function E(){let i=(0,w.c)(44),u=p(),{data:f}=t(l),m=c(),E;i[0]===f.Vpcs?E=i[1]:(E=f.Vpcs??[],i[0]=f.Vpcs,i[1]=E);let O=E,k;i[2]===Symbol.for(`react.memo_cache_sentinel`)?(k={resolver:_(C),defaultValues:{vpcId:``,name:``}},i[2]=k):k=i[2];let{control:A,handleSubmit:j,register:M,formState:N}=h(k),{errors:P,isSubmitting:F}=N,I;i[3]!==m||i[4]!==u?(I=async e=>{let t=(await m.mutateAsync({vpcId:e.vpcId,name:e.name?.trim()?e.name.trim():void 0})).RouteTable?.RouteTableId;u(t?{to:`/ec2/describe-route-tables/$id`,params:{id:t}}:{to:`/ec2/describe-route-tables`})},i[3]=m,i[4]=u,i[5]=I):I=i[5];let L=I,R,z;i[6]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,T.jsx)(n,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z=(0,T.jsx)(y,{title:`Create Route Table`}),i[6]=R,i[7]=z):(R=i[6],z=i[7]);let B;i[8]===m.error?B=i[9]:(B=m.error&&(0,T.jsx)(e,{error:m.error,msg:`Failed to create Route Table`}),i[8]=m.error,i[9]=B);let V;i[10]!==j||i[11]!==L?(V=j(L),i[10]=j,i[11]=L,i[12]=V):V=i[12];let H;i[13]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,T.jsx)(b,{children:(0,T.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),i[13]=H):H=i[13];let U;i[14]===M?U=i[15]:(U=M(`name`),i[14]=M,i[15]=U);let W;i[16]===U?W=i[17]:(W=(0,T.jsxs)(S,{children:[H,(0,T.jsx)(d,{id:`name`,placeholder:`my-route-table`,...U})]}),i[16]=U,i[17]=W);let G;i[18]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,T.jsx)(b,{children:(0,T.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),i[18]=G):G=i[18];let K;i[19]!==P.vpcId||i[20]!==O?(K=e=>{let{field:t}=e;return(0,T.jsxs)(s,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,T.jsx)(o,{"aria-invalid":!!P.vpcId,className:`w-full`,id:`vpcId`,children:(0,T.jsx)(r,{placeholder:`Select a VPC`})}),(0,T.jsx)(a,{children:O.map(D)})]})},i[19]=P.vpcId,i[20]=O,i[21]=K):K=i[21];let q;i[22]!==A||i[23]!==K?(q=(0,T.jsx)(g,{control:A,name:`vpcId`,render:K}),i[22]=A,i[23]=K,i[24]=q):q=i[24];let J;i[25]===P.vpcId?J=i[26]:(J=(0,T.jsx)(x,{errors:[P.vpcId]}),i[25]=P.vpcId,i[26]=J);let Y;i[27]!==q||i[28]!==J?(Y=(0,T.jsxs)(S,{children:[G,q,J]}),i[27]=q,i[28]=J,i[29]=Y):Y=i[29];let X;i[30]===u?X=i[31]:(X=async()=>await u({to:`/ec2/describe-route-tables`}),i[30]=u,i[31]=X);let Z;i[32]!==m.isPending||i[33]!==F||i[34]!==X?(Z=(0,T.jsx)(v,{isPending:m.isPending,isSubmitting:F,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Route Table`}),i[32]=m.isPending,i[33]=F,i[34]=X,i[35]=Z):Z=i[35];let Q;i[36]!==W||i[37]!==Y||i[38]!==Z||i[39]!==V?(Q=(0,T.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:V,children:[W,Y,Z]}),i[36]=W,i[37]=Y,i[38]=Z,i[39]=V,i[40]=Q):Q=i[40];let $;return i[41]!==Q||i[42]!==B?($=(0,T.jsxs)(T.Fragment,{children:[R,z,B,Q]}),i[41]=Q,i[42]=B,i[43]=$):$=i[43],$}function D(e){let t=u(e.Tags);return(0,T.jsx)(i,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}export{E as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js b/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js index 6402264dd..7b87dd468 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js @@ -1,4 +1,4 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as ee}from"./back-link.js";import{c as n,i as r,n as i,s as te,t as a}from"./select.js";import{t as ne}from"./cli-command-panel.js";import{v as re}from"./ec2.js";import{Da as ie,Et as ae,Io as o,fs as s,hs as oe,ys as c}from"./index.js";import{a as se,i as ce,n as le,t as ue}from"./zod.js";import{t as de}from"./form-actions.js";import{t as fe}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{d as pe}from"./ec22.js";var me=s(),f=c();function p(){let r=(0,me.c)(73),o=oe(),{data:s}=t(ae),c=re(),p;r[0]===s.Vpcs?p=r[1]:(p=s.Vpcs??[],r[0]=s.Vpcs,r[1]=p);let m=p,h;r[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=ue(pe),r[2]=h):h=r[2];let g=m[0]?.VpcId??``,_;r[3]===g?_=r[4]:(_={resolver:h,defaultValues:{groupName:``,description:``,vpcId:g}},r[3]=g,r[4]=_);let{control:v,handleSubmit:y,register:b,formState:_e}=ce(_),{errors:x,isSubmitting:ve}=_e,S;r[5]===v?S=r[6]:(S={control:v},r[5]=v,r[6]=S);let ye=se(S),C;r[7]===ye?C=r[8]:(C=e=>e?ye[e]:void 0,r[7]=ye,r[8]=C);let w=C,T;r[9]!==c||r[10]!==o?(T=async e=>{let t=(await c.mutateAsync(e)).GroupId;o(t?{to:`/ec2/describe-security-groups/$id`,params:{id:t}}:{to:`/ec2/describe-security-groups`})},r[9]=c,r[10]=o,r[11]=T):T=r[11];let E=T,D,O;r[12]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,f.jsx)(ee,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),O=(0,f.jsx)(fe,{title:`Create Security Group`}),r[12]=D,r[13]=O):(D=r[12],O=r[13]);let k;r[14]===c.error?k=r[15]:(k=c.error&&(0,f.jsx)(e,{error:c.error,msg:`Failed to create security group`}),r[14]=c.error,r[15]=k);let A;r[16]!==y||r[17]!==E?(A=y(E),r[16]=y,r[17]=E,r[18]=A):A=r[18];let j;r[19]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,f.jsx)(l,{children:(0,f.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),r[19]=j):j=r[19];let M=!!x.groupName,N;r[20]===b?N=r[21]:(N=b(`groupName`),r[20]=b,r[21]=N);let P;r[22]!==M||r[23]!==N?(P=(0,f.jsx)(ie,{"aria-invalid":M,id:`groupName`,placeholder:`my-security-group`,...N}),r[22]=M,r[23]=N,r[24]=P):P=r[24];let F;r[25]===x.groupName?F=r[26]:(F=(0,f.jsx)(u,{errors:[x.groupName]}),r[25]=x.groupName,r[26]=F);let I;r[27]!==P||r[28]!==F?(I=(0,f.jsxs)(d,{children:[j,P,F]}),r[27]=P,r[28]=F,r[29]=I):I=r[29];let L;r[30]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,f.jsx)(l,{children:(0,f.jsx)(`label`,{htmlFor:`description`,children:`Description`})}),r[30]=L):L=r[30];let R=!!x.description,z;r[31]===b?z=r[32]:(z=b(`description`),r[31]=b,r[32]=z);let B;r[33]!==R||r[34]!==z?(B=(0,f.jsx)(ie,{"aria-invalid":R,id:`description`,placeholder:`My security group description`,...z}),r[33]=R,r[34]=z,r[35]=B):B=r[35];let V;r[36]===x.description?V=r[37]:(V=(0,f.jsx)(u,{errors:[x.description]}),r[36]=x.description,r[37]=V);let H;r[38]!==B||r[39]!==V?(H=(0,f.jsxs)(d,{children:[L,B,V]}),r[38]=B,r[39]=V,r[40]=H):H=r[40];let U;r[41]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,f.jsx)(l,{children:(0,f.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),r[41]=U):U=r[41];let W;r[42]!==x.vpcId||r[43]!==m?(W=e=>{let{field:t}=e;return(0,f.jsxs)(a,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,f.jsx)(te,{"aria-invalid":!!x.vpcId,className:`w-full`,id:`vpcId`,children:(0,f.jsx)(n,{})}),(0,f.jsx)(i,{children:m.map(he)})]})},r[42]=x.vpcId,r[43]=m,r[44]=W):W=r[44];let G;r[45]!==v||r[46]!==W?(G=(0,f.jsx)(le,{control:v,name:`vpcId`,render:W}),r[45]=v,r[46]=W,r[47]=G):G=r[47];let K;r[48]===x.vpcId?K=r[49]:(K=(0,f.jsx)(u,{errors:[x.vpcId]}),r[48]=x.vpcId,r[49]=K);let q;r[50]!==G||r[51]!==K?(q=(0,f.jsxs)(d,{children:[U,G,K]}),r[50]=G,r[51]=K,r[52]=q):q=r[52];let J;r[53]===w?J=r[54]:(J=ge(w),r[53]=w,r[54]=J);let Y;r[55]===J?Y=r[56]:(Y=(0,f.jsx)(ne,{commands:J}),r[55]=J,r[56]=Y);let X;r[57]===o?X=r[58]:(X=async()=>await o({to:`/ec2/describe-security-groups`}),r[57]=o,r[58]=X);let Z;r[59]!==c.isPending||r[60]!==ve||r[61]!==X?(Z=(0,f.jsx)(de,{isPending:c.isPending,isSubmitting:ve,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Security Group`}),r[59]=c.isPending,r[60]=ve,r[61]=X,r[62]=Z):Z=r[62];let Q;r[63]!==A||r[64]!==I||r[65]!==H||r[66]!==q||r[67]!==Y||r[68]!==Z?(Q=(0,f.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,H,q,Y,Z]}),r[63]=A,r[64]=I,r[65]=H,r[66]=q,r[67]=Y,r[68]=Z,r[69]=Q):Q=r[69];let $;return r[70]!==k||r[71]!==Q?($=(0,f.jsxs)(f.Fragment,{children:[D,O,k,Q]}),r[70]=k,r[71]=Q,r[72]=$):$=r[72],$}function he(e){let t=o(e.Tags);return(0,f.jsx)(r,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function ge(e){let t=e(`groupName`),ee=typeof t==`string`?t:``,n=e(`description`),r=typeof n==`string`?n:``,i=e(`vpcId`),te=typeof i==`string`?i:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-security-group`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as ee}from"./back-link.js";import{c as n,i as r,n as i,s as te,t as a}from"./select.js";import{t as ne}from"./cli-command-panel.js";import{v as re}from"./ec2.js";import{Et as ie,Lo as o,Oa as ae,bs as s,gs as oe,ps as c}from"./index.js";import{a as se,i as ce,n as le,t as ue}from"./zod.js";import{t as de}from"./form-actions.js";import{t as fe}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{d as pe}from"./ec22.js";var me=c(),f=s();function p(){let r=(0,me.c)(73),o=oe(),{data:s}=t(ie),c=re(),p;r[0]===s.Vpcs?p=r[1]:(p=s.Vpcs??[],r[0]=s.Vpcs,r[1]=p);let m=p,h;r[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=ue(pe),r[2]=h):h=r[2];let g=m[0]?.VpcId??``,_;r[3]===g?_=r[4]:(_={resolver:h,defaultValues:{groupName:``,description:``,vpcId:g}},r[3]=g,r[4]=_);let{control:v,handleSubmit:y,register:b,formState:_e}=ce(_),{errors:x,isSubmitting:ve}=_e,S;r[5]===v?S=r[6]:(S={control:v},r[5]=v,r[6]=S);let ye=se(S),C;r[7]===ye?C=r[8]:(C=e=>e?ye[e]:void 0,r[7]=ye,r[8]=C);let w=C,T;r[9]!==c||r[10]!==o?(T=async e=>{let t=(await c.mutateAsync(e)).GroupId;o(t?{to:`/ec2/describe-security-groups/$id`,params:{id:t}}:{to:`/ec2/describe-security-groups`})},r[9]=c,r[10]=o,r[11]=T):T=r[11];let E=T,D,O;r[12]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,f.jsx)(ee,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),O=(0,f.jsx)(fe,{title:`Create Security Group`}),r[12]=D,r[13]=O):(D=r[12],O=r[13]);let k;r[14]===c.error?k=r[15]:(k=c.error&&(0,f.jsx)(e,{error:c.error,msg:`Failed to create security group`}),r[14]=c.error,r[15]=k);let A;r[16]!==y||r[17]!==E?(A=y(E),r[16]=y,r[17]=E,r[18]=A):A=r[18];let j;r[19]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,f.jsx)(l,{children:(0,f.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),r[19]=j):j=r[19];let M=!!x.groupName,N;r[20]===b?N=r[21]:(N=b(`groupName`),r[20]=b,r[21]=N);let P;r[22]!==M||r[23]!==N?(P=(0,f.jsx)(ae,{"aria-invalid":M,id:`groupName`,placeholder:`my-security-group`,...N}),r[22]=M,r[23]=N,r[24]=P):P=r[24];let F;r[25]===x.groupName?F=r[26]:(F=(0,f.jsx)(u,{errors:[x.groupName]}),r[25]=x.groupName,r[26]=F);let I;r[27]!==P||r[28]!==F?(I=(0,f.jsxs)(d,{children:[j,P,F]}),r[27]=P,r[28]=F,r[29]=I):I=r[29];let L;r[30]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,f.jsx)(l,{children:(0,f.jsx)(`label`,{htmlFor:`description`,children:`Description`})}),r[30]=L):L=r[30];let R=!!x.description,z;r[31]===b?z=r[32]:(z=b(`description`),r[31]=b,r[32]=z);let B;r[33]!==R||r[34]!==z?(B=(0,f.jsx)(ae,{"aria-invalid":R,id:`description`,placeholder:`My security group description`,...z}),r[33]=R,r[34]=z,r[35]=B):B=r[35];let V;r[36]===x.description?V=r[37]:(V=(0,f.jsx)(u,{errors:[x.description]}),r[36]=x.description,r[37]=V);let H;r[38]!==B||r[39]!==V?(H=(0,f.jsxs)(d,{children:[L,B,V]}),r[38]=B,r[39]=V,r[40]=H):H=r[40];let U;r[41]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,f.jsx)(l,{children:(0,f.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),r[41]=U):U=r[41];let W;r[42]!==x.vpcId||r[43]!==m?(W=e=>{let{field:t}=e;return(0,f.jsxs)(a,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,f.jsx)(te,{"aria-invalid":!!x.vpcId,className:`w-full`,id:`vpcId`,children:(0,f.jsx)(n,{})}),(0,f.jsx)(i,{children:m.map(he)})]})},r[42]=x.vpcId,r[43]=m,r[44]=W):W=r[44];let G;r[45]!==v||r[46]!==W?(G=(0,f.jsx)(le,{control:v,name:`vpcId`,render:W}),r[45]=v,r[46]=W,r[47]=G):G=r[47];let K;r[48]===x.vpcId?K=r[49]:(K=(0,f.jsx)(u,{errors:[x.vpcId]}),r[48]=x.vpcId,r[49]=K);let q;r[50]!==G||r[51]!==K?(q=(0,f.jsxs)(d,{children:[U,G,K]}),r[50]=G,r[51]=K,r[52]=q):q=r[52];let J;r[53]===w?J=r[54]:(J=ge(w),r[53]=w,r[54]=J);let Y;r[55]===J?Y=r[56]:(Y=(0,f.jsx)(ne,{commands:J}),r[55]=J,r[56]=Y);let X;r[57]===o?X=r[58]:(X=async()=>await o({to:`/ec2/describe-security-groups`}),r[57]=o,r[58]=X);let Z;r[59]!==c.isPending||r[60]!==ve||r[61]!==X?(Z=(0,f.jsx)(de,{isPending:c.isPending,isSubmitting:ve,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Security Group`}),r[59]=c.isPending,r[60]=ve,r[61]=X,r[62]=Z):Z=r[62];let Q;r[63]!==A||r[64]!==I||r[65]!==H||r[66]!==q||r[67]!==Y||r[68]!==Z?(Q=(0,f.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,H,q,Y,Z]}),r[63]=A,r[64]=I,r[65]=H,r[66]=q,r[67]=Y,r[68]=Z,r[69]=Q):Q=r[69];let $;return r[70]!==k||r[71]!==Q?($=(0,f.jsxs)(f.Fragment,{children:[D,O,k,Q]}),r[70]=k,r[71]=Q,r[72]=$):$=r[72],$}function he(e){let t=o(e.Tags);return(0,f.jsx)(r,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function ge(e){let t=e(`groupName`),ee=typeof t==`string`?t:``,n=e(`description`),r=typeof n==`string`?n:``,i=e(`vpcId`),te=typeof i==`string`?i:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-security-group`},{type:`flag`,value:` \\ --group-name`},{type:`value`,value:` ${ee||``}`},{type:`flag`,value:` \\ --description`},{type:`value`,value:` "${r||``}"`}];return te&&a.push({type:`flag`,value:` \\ --vpc-id`},{type:`value`,value:` ${te}`}),[{label:`Create Security Group`,parts:a}]}export{p as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot.js b/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot.js index 312a32a0d..caa1d4ea1 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot.js @@ -1,3 +1,3 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as ee,t as o}from"./select.js";import{t as te}from"./cli-command-panel.js";import{y as s}from"./ec2.js";import{J as c,fs as l,hs as ne,wt as re,ys as u}from"./index.js";import{a as ie,i as ae,n as oe,t as se}from"./zod.js";import{t as ce}from"./form-actions.js";import{t as le}from"./page-heading.js";import{a as d,r as f,t as p}from"./field.js";import{f as m}from"./ec22.js";import{t as h}from"./textarea.js";var ue=l(),g=u();function _(){let i=(0,ue.c)(55),l=ne(),{data:u}=t(re),_=s(),v;i[0]===u.Volumes?v=i[1]:(v=u.Volumes??[],i[0]=u.Volumes,i[1]=v);let y=v,{volumeId:b}=c.useSearch(),x=b??y[0]?.VolumeId??``,S;i[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=se(m),i[2]=S):S=i[2];let C;i[3]===x?C=i[4]:(C={resolver:S,defaultValues:{volumeId:x,description:``}},i[3]=x,i[4]=C);let{control:w,handleSubmit:T,register:E,formState:D}=ae(C),{errors:O,isSubmitting:k}=D,A;i[5]===w?A=i[6]:(A={control:w},i[5]=w,i[6]=A);let j=ie(A),M;i[7]===j?M=i[8]:(M=e=>e?j[e]:void 0,i[7]=j,i[8]=M);let N=M,P;i[9]!==_||i[10]!==l?(P=async e=>{await _.mutateAsync(e),l({to:`/ec2/describe-snapshots`})},i[9]=_,i[10]=l,i[11]=P):P=i[11];let F=P,I,L;i[12]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,g.jsx)(n,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L=(0,g.jsx)(le,{title:`Create Snapshot`}),i[12]=I,i[13]=L):(I=i[12],L=i[13]);let R;i[14]===_.error?R=i[15]:(R=_.error&&(0,g.jsx)(e,{error:_.error,msg:`Failed to create snapshot`}),i[14]=_.error,i[15]=R);let z;i[16]!==T||i[17]!==F?(z=T(F),i[16]=T,i[17]=F,i[18]=z):z=i[18];let B;i[19]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,g.jsx)(d,{children:(0,g.jsx)(`label`,{htmlFor:`volumeId`,children:`Volume`})}),i[19]=B):B=i[19];let V;i[20]!==O.volumeId||i[21]!==y?(V=e=>{let{field:t}=e;return(0,g.jsxs)(o,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,g.jsx)(ee,{"aria-invalid":!!O.volumeId,className:`w-full`,id:`volumeId`,children:(0,g.jsx)(r,{})}),(0,g.jsx)(a,{children:y.map(de)})]})},i[20]=O.volumeId,i[21]=y,i[22]=V):V=i[22];let H;i[23]!==w||i[24]!==V?(H=(0,g.jsx)(oe,{control:w,name:`volumeId`,render:V}),i[23]=w,i[24]=V,i[25]=H):H=i[25];let U;i[26]===O.volumeId?U=i[27]:(U=(0,g.jsx)(f,{errors:[O.volumeId]}),i[26]=O.volumeId,i[27]=U);let W;i[28]!==H||i[29]!==U?(W=(0,g.jsxs)(p,{children:[B,H,U]}),i[28]=H,i[29]=U,i[30]=W):W=i[30];let G;i[31]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,g.jsx)(d,{children:(0,g.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),i[31]=G):G=i[31];let K;i[32]===E?K=i[33]:(K=E(`description`),i[32]=E,i[33]=K);let q;i[34]===K?q=i[35]:(q=(0,g.jsxs)(p,{children:[G,(0,g.jsx)(h,{id:`description`,placeholder:`Snapshot description`,...K})]}),i[34]=K,i[35]=q);let J;i[36]===N?J=i[37]:(J=fe(N),i[36]=N,i[37]=J);let Y;i[38]===J?Y=i[39]:(Y=(0,g.jsx)(te,{commands:J}),i[38]=J,i[39]=Y);let X;i[40]===l?X=i[41]:(X=async()=>await l({to:`/ec2/describe-snapshots`}),i[40]=l,i[41]=X);let Z;i[42]!==_.isPending||i[43]!==k||i[44]!==X?(Z=(0,g.jsx)(ce,{isPending:_.isPending,isSubmitting:k,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Snapshot`}),i[42]=_.isPending,i[43]=k,i[44]=X,i[45]=Z):Z=i[45];let Q;i[46]!==z||i[47]!==W||i[48]!==q||i[49]!==Y||i[50]!==Z?(Q=(0,g.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:z,children:[W,q,Y,Z]}),i[46]=z,i[47]=W,i[48]=q,i[49]=Y,i[50]=Z,i[51]=Q):Q=i[51];let $;return i[52]!==Q||i[53]!==R?($=(0,g.jsxs)(g.Fragment,{children:[I,L,R,Q]}),i[52]=Q,i[53]=R,i[54]=$):$=i[54],$}function de(e){return(0,g.jsxs)(i,{value:e.VolumeId??``,children:[e.VolumeId,` (`,e.Size,` GiB)`]},e.VolumeId)}function fe(e){let t=e(`volumeId`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-snapshot`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as ee,t as o}from"./select.js";import{t as te}from"./cli-command-panel.js";import{y as s}from"./ec2.js";import{J as c,bs as l,gs as ne,ps as u,wt as re}from"./index.js";import{a as ie,i as ae,n as oe,t as se}from"./zod.js";import{t as ce}from"./form-actions.js";import{t as le}from"./page-heading.js";import{a as d,r as f,t as p}from"./field.js";import{f as m}from"./ec22.js";import{t as h}from"./textarea.js";var ue=u(),g=l();function _(){let i=(0,ue.c)(55),l=ne(),{data:u}=t(re),_=s(),v;i[0]===u.Volumes?v=i[1]:(v=u.Volumes??[],i[0]=u.Volumes,i[1]=v);let y=v,{volumeId:b}=c.useSearch(),x=b??y[0]?.VolumeId??``,S;i[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=se(m),i[2]=S):S=i[2];let C;i[3]===x?C=i[4]:(C={resolver:S,defaultValues:{volumeId:x,description:``}},i[3]=x,i[4]=C);let{control:w,handleSubmit:T,register:E,formState:D}=ae(C),{errors:O,isSubmitting:k}=D,A;i[5]===w?A=i[6]:(A={control:w},i[5]=w,i[6]=A);let j=ie(A),M;i[7]===j?M=i[8]:(M=e=>e?j[e]:void 0,i[7]=j,i[8]=M);let N=M,P;i[9]!==_||i[10]!==l?(P=async e=>{await _.mutateAsync(e),l({to:`/ec2/describe-snapshots`})},i[9]=_,i[10]=l,i[11]=P):P=i[11];let F=P,I,L;i[12]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,g.jsx)(n,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L=(0,g.jsx)(le,{title:`Create Snapshot`}),i[12]=I,i[13]=L):(I=i[12],L=i[13]);let R;i[14]===_.error?R=i[15]:(R=_.error&&(0,g.jsx)(e,{error:_.error,msg:`Failed to create snapshot`}),i[14]=_.error,i[15]=R);let z;i[16]!==T||i[17]!==F?(z=T(F),i[16]=T,i[17]=F,i[18]=z):z=i[18];let B;i[19]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,g.jsx)(d,{children:(0,g.jsx)(`label`,{htmlFor:`volumeId`,children:`Volume`})}),i[19]=B):B=i[19];let V;i[20]!==O.volumeId||i[21]!==y?(V=e=>{let{field:t}=e;return(0,g.jsxs)(o,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,g.jsx)(ee,{"aria-invalid":!!O.volumeId,className:`w-full`,id:`volumeId`,children:(0,g.jsx)(r,{})}),(0,g.jsx)(a,{children:y.map(de)})]})},i[20]=O.volumeId,i[21]=y,i[22]=V):V=i[22];let H;i[23]!==w||i[24]!==V?(H=(0,g.jsx)(oe,{control:w,name:`volumeId`,render:V}),i[23]=w,i[24]=V,i[25]=H):H=i[25];let U;i[26]===O.volumeId?U=i[27]:(U=(0,g.jsx)(f,{errors:[O.volumeId]}),i[26]=O.volumeId,i[27]=U);let W;i[28]!==H||i[29]!==U?(W=(0,g.jsxs)(p,{children:[B,H,U]}),i[28]=H,i[29]=U,i[30]=W):W=i[30];let G;i[31]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,g.jsx)(d,{children:(0,g.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),i[31]=G):G=i[31];let K;i[32]===E?K=i[33]:(K=E(`description`),i[32]=E,i[33]=K);let q;i[34]===K?q=i[35]:(q=(0,g.jsxs)(p,{children:[G,(0,g.jsx)(h,{id:`description`,placeholder:`Snapshot description`,...K})]}),i[34]=K,i[35]=q);let J;i[36]===N?J=i[37]:(J=fe(N),i[36]=N,i[37]=J);let Y;i[38]===J?Y=i[39]:(Y=(0,g.jsx)(te,{commands:J}),i[38]=J,i[39]=Y);let X;i[40]===l?X=i[41]:(X=async()=>await l({to:`/ec2/describe-snapshots`}),i[40]=l,i[41]=X);let Z;i[42]!==_.isPending||i[43]!==k||i[44]!==X?(Z=(0,g.jsx)(ce,{isPending:_.isPending,isSubmitting:k,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Snapshot`}),i[42]=_.isPending,i[43]=k,i[44]=X,i[45]=Z):Z=i[45];let Q;i[46]!==z||i[47]!==W||i[48]!==q||i[49]!==Y||i[50]!==Z?(Q=(0,g.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:z,children:[W,q,Y,Z]}),i[46]=z,i[47]=W,i[48]=q,i[49]=Y,i[50]=Z,i[51]=Q):Q=i[51];let $;return i[52]!==Q||i[53]!==R?($=(0,g.jsxs)(g.Fragment,{children:[I,L,R,Q]}),i[52]=Q,i[53]=R,i[54]=$):$=i[54],$}function de(e){return(0,g.jsxs)(i,{value:e.VolumeId??``,children:[e.VolumeId,` (`,e.Size,` GiB)`]},e.VolumeId)}function fe(e){let t=e(`volumeId`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-snapshot`},{type:`flag`,value:` \\ --volume-id`},{type:`value`,value:` ${n||``}`}];return i&&a.push({type:`flag`,value:` \\ --description`},{type:`value`,value:` "${i}"`}),[{label:`Create Snapshot`,parts:a}]}export{_ as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js b/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js index aaeafa4b2..e008d7077 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js @@ -1,4 +1,4 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as ee}from"./back-link.js";import{c as n,i as r,n as i,s as a,t as o}from"./select.js";import{t as te}from"./cli-command-panel.js";import{b as ne}from"./ec2.js";import{$ as re,Da as ie,Et as ae,Io as s,fs as c,hs as oe,ys as l}from"./index.js";import{a as se,i as ce,n as le,t as ue}from"./zod.js";import{t as de}from"./form-actions.js";import{t as fe}from"./page-heading.js";import{a as u,r as pe,t as d}from"./field.js";import{p as me}from"./ec22.js";var he=c(),f=l();function p(){let s=(0,he.c)(74),c=oe(),{data:l}=t(ae),{data:p}=t(re),m=ne(),h;s[0]===l.Vpcs?h=s[1]:(h=l.Vpcs??[],s[0]=l.Vpcs,s[1]=h);let g=h,_;s[2]===p.AvailabilityZones?_=s[3]:(_=p.AvailabilityZones??[],s[2]=p.AvailabilityZones,s[3]=_);let v=_,y;s[4]===Symbol.for(`react.memo_cache_sentinel`)?(y=ue(me),s[4]=y):y=s[4];let b=g[0]?.VpcId??``,x;s[5]===b?x=s[6]:(x={resolver:y,defaultValues:{vpcId:b,cidrBlock:`10.0.1.0/24`,availabilityZone:void 0,mapPublicIpOnLaunch:!1}},s[5]=b,s[6]=x);let{control:S,handleSubmit:be,register:xe,formState:Se}=ce(x),{errors:C,isSubmitting:Ce}=Se,w;s[7]===S?w=s[8]:(w={control:S},s[7]=S,s[8]=w);let we=se(w),T;s[9]===we?T=s[10]:(T=e=>e?we[e]:void 0,s[9]=we,s[10]=T);let E=T,D;s[11]!==m||s[12]!==c?(D=async e=>{let t=(await m.mutateAsync(e)).Subnet?.SubnetId;c(t?{to:`/ec2/describe-subnets/$id`,params:{id:t}}:{to:`/ec2/describe-subnets`})},s[11]=m,s[12]=c,s[13]=D):D=s[13];let O=D,k,A;s[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,f.jsx)(ee,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),k=(0,f.jsx)(fe,{title:`Create Subnet`}),s[14]=k,s[15]=A):(k=s[14],A=s[15]);let j;s[16]===m.error?j=s[17]:(j=m.error&&(0,f.jsx)(e,{error:m.error,msg:`Failed to create subnet`}),s[16]=m.error,s[17]=j);let M;s[18]!==be||s[19]!==O?(M=be(O),s[18]=be,s[19]=O,s[20]=M):M=s[20];let N;s[21]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),s[21]=N):N=s[21];let P;s[22]!==C.vpcId||s[23]!==g?(P=e=>{let{field:t}=e;return(0,f.jsxs)(o,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,f.jsx)(a,{"aria-invalid":!!C.vpcId,className:`w-full`,id:`vpcId`,children:(0,f.jsx)(n,{})}),(0,f.jsx)(i,{children:g.map(ve)})]})},s[22]=C.vpcId,s[23]=g,s[24]=P):P=s[24];let F;s[25]!==S||s[26]!==P?(F=(0,f.jsx)(le,{control:S,name:`vpcId`,render:P}),s[25]=S,s[26]=P,s[27]=F):F=s[27];let I;s[28]===C.vpcId?I=s[29]:(I=(0,f.jsx)(pe,{errors:[C.vpcId]}),s[28]=C.vpcId,s[29]=I);let L;s[30]!==F||s[31]!==I?(L=(0,f.jsxs)(d,{children:[N,F,I]}),s[30]=F,s[31]=I,s[32]=L):L=s[32];let R;s[33]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`cidrBlock`,children:`CIDR Block`})}),s[33]=R):R=s[33];let Te=!!C.cidrBlock,z;s[34]===xe?z=s[35]:(z=xe(`cidrBlock`),s[34]=xe,s[35]=z);let B;s[36]!==Te||s[37]!==z?(B=(0,f.jsx)(ie,{"aria-invalid":Te,id:`cidrBlock`,placeholder:`10.0.1.0/24`,...z}),s[36]=Te,s[37]=z,s[38]=B):B=s[38];let V;s[39]===C.cidrBlock?V=s[40]:(V=(0,f.jsx)(pe,{errors:[C.cidrBlock]}),s[39]=C.cidrBlock,s[40]=V);let H;s[41]!==B||s[42]!==V?(H=(0,f.jsxs)(d,{children:[R,B,V]}),s[41]=B,s[42]=V,s[43]=H):H=s[43];let U;s[44]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone (optional)`})}),s[44]=U):U=s[44];let W;s[45]===v?W=s[46]:(W=e=>{let{field:t}=e;return(0,f.jsxs)(o,{onValueChange:e=>t.onChange(e===`none`?void 0:e),value:t.value??`none`,children:[(0,f.jsx)(a,{className:`w-full`,id:`availabilityZone`,children:(0,f.jsx)(n,{})}),(0,f.jsxs)(i,{children:[(0,f.jsx)(r,{value:`none`,children:`none`}),v.map(_e)]})]})},s[45]=v,s[46]=W);let G;s[47]!==S||s[48]!==W?(G=(0,f.jsxs)(d,{children:[U,(0,f.jsx)(le,{control:S,name:`availabilityZone`,render:W})]}),s[47]=S,s[48]=W,s[49]=G):G=s[49];let K;s[50]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,f.jsx)(u,{children:`Auto-assign public IPv4`}),s[50]=K):K=s[50];let q;s[51]===S?q=s[52]:(q=(0,f.jsxs)(d,{children:[K,(0,f.jsx)(le,{control:S,name:`mapPublicIpOnLaunch`,render:ge})]}),s[51]=S,s[52]=q);let J;s[53]===E?J=s[54]:(J=ye(E),s[53]=E,s[54]=J);let Y;s[55]===J?Y=s[56]:(Y=(0,f.jsx)(te,{commands:J}),s[55]=J,s[56]=Y);let X;s[57]===c?X=s[58]:(X=async()=>await c({to:`/ec2/describe-subnets`}),s[57]=c,s[58]=X);let Z;s[59]!==m.isPending||s[60]!==Ce||s[61]!==X?(Z=(0,f.jsx)(de,{isPending:m.isPending,isSubmitting:Ce,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Subnet`}),s[59]=m.isPending,s[60]=Ce,s[61]=X,s[62]=Z):Z=s[62];let Q;s[63]!==M||s[64]!==L||s[65]!==H||s[66]!==G||s[67]!==q||s[68]!==Y||s[69]!==Z?(Q=(0,f.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:M,children:[L,H,G,q,Y,Z]}),s[63]=M,s[64]=L,s[65]=H,s[66]=G,s[67]=q,s[68]=Y,s[69]=Z,s[70]=Q):Q=s[70];let $;return s[71]!==j||s[72]!==Q?($=(0,f.jsxs)(f.Fragment,{children:[A,k,j,Q]}),s[71]=j,s[72]=Q,s[73]=$):$=s[73],$}function ge(e){let{field:t}=e;return(0,f.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,f.jsx)(`input`,{"aria-label":`Enable auto-assign public IPv4 address`,checked:t.value??!1,onChange:e=>t.onChange(e.target.checked),type:`checkbox`}),`Enable auto-assign public IPv4 address`]})}function _e(e){return(0,f.jsx)(r,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function ve(e){let t=s(e.Tags);return(0,f.jsx)(r,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function ye(e){let t=e(`vpcId`),ee=typeof t==`string`?t:``,n=e(`cidrBlock`),r=typeof n==`string`?n:``,i=e(`availabilityZone`),a=typeof i==`string`?i:``,o=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-subnet`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as ee}from"./back-link.js";import{c as n,i as r,n as i,s as a,t as o}from"./select.js";import{t as te}from"./cli-command-panel.js";import{b as ne}from"./ec2.js";import{$ as re,Et as ie,Lo as s,Oa as ae,bs as c,gs as oe,ps as l}from"./index.js";import{a as se,i as ce,n as le,t as ue}from"./zod.js";import{t as de}from"./form-actions.js";import{t as fe}from"./page-heading.js";import{a as u,r as pe,t as d}from"./field.js";import{p as me}from"./ec22.js";var he=l(),f=c();function p(){let s=(0,he.c)(74),c=oe(),{data:l}=t(ie),{data:p}=t(re),m=ne(),h;s[0]===l.Vpcs?h=s[1]:(h=l.Vpcs??[],s[0]=l.Vpcs,s[1]=h);let g=h,_;s[2]===p.AvailabilityZones?_=s[3]:(_=p.AvailabilityZones??[],s[2]=p.AvailabilityZones,s[3]=_);let v=_,y;s[4]===Symbol.for(`react.memo_cache_sentinel`)?(y=ue(me),s[4]=y):y=s[4];let b=g[0]?.VpcId??``,x;s[5]===b?x=s[6]:(x={resolver:y,defaultValues:{vpcId:b,cidrBlock:`10.0.1.0/24`,availabilityZone:void 0,mapPublicIpOnLaunch:!1}},s[5]=b,s[6]=x);let{control:S,handleSubmit:be,register:xe,formState:Se}=ce(x),{errors:C,isSubmitting:Ce}=Se,w;s[7]===S?w=s[8]:(w={control:S},s[7]=S,s[8]=w);let we=se(w),T;s[9]===we?T=s[10]:(T=e=>e?we[e]:void 0,s[9]=we,s[10]=T);let E=T,D;s[11]!==m||s[12]!==c?(D=async e=>{let t=(await m.mutateAsync(e)).Subnet?.SubnetId;c(t?{to:`/ec2/describe-subnets/$id`,params:{id:t}}:{to:`/ec2/describe-subnets`})},s[11]=m,s[12]=c,s[13]=D):D=s[13];let O=D,k,A;s[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,f.jsx)(ee,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),k=(0,f.jsx)(fe,{title:`Create Subnet`}),s[14]=k,s[15]=A):(k=s[14],A=s[15]);let j;s[16]===m.error?j=s[17]:(j=m.error&&(0,f.jsx)(e,{error:m.error,msg:`Failed to create subnet`}),s[16]=m.error,s[17]=j);let M;s[18]!==be||s[19]!==O?(M=be(O),s[18]=be,s[19]=O,s[20]=M):M=s[20];let N;s[21]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),s[21]=N):N=s[21];let P;s[22]!==C.vpcId||s[23]!==g?(P=e=>{let{field:t}=e;return(0,f.jsxs)(o,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,f.jsx)(a,{"aria-invalid":!!C.vpcId,className:`w-full`,id:`vpcId`,children:(0,f.jsx)(n,{})}),(0,f.jsx)(i,{children:g.map(ve)})]})},s[22]=C.vpcId,s[23]=g,s[24]=P):P=s[24];let F;s[25]!==S||s[26]!==P?(F=(0,f.jsx)(le,{control:S,name:`vpcId`,render:P}),s[25]=S,s[26]=P,s[27]=F):F=s[27];let I;s[28]===C.vpcId?I=s[29]:(I=(0,f.jsx)(pe,{errors:[C.vpcId]}),s[28]=C.vpcId,s[29]=I);let L;s[30]!==F||s[31]!==I?(L=(0,f.jsxs)(d,{children:[N,F,I]}),s[30]=F,s[31]=I,s[32]=L):L=s[32];let R;s[33]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`cidrBlock`,children:`CIDR Block`})}),s[33]=R):R=s[33];let Te=!!C.cidrBlock,z;s[34]===xe?z=s[35]:(z=xe(`cidrBlock`),s[34]=xe,s[35]=z);let B;s[36]!==Te||s[37]!==z?(B=(0,f.jsx)(ae,{"aria-invalid":Te,id:`cidrBlock`,placeholder:`10.0.1.0/24`,...z}),s[36]=Te,s[37]=z,s[38]=B):B=s[38];let V;s[39]===C.cidrBlock?V=s[40]:(V=(0,f.jsx)(pe,{errors:[C.cidrBlock]}),s[39]=C.cidrBlock,s[40]=V);let H;s[41]!==B||s[42]!==V?(H=(0,f.jsxs)(d,{children:[R,B,V]}),s[41]=B,s[42]=V,s[43]=H):H=s[43];let U;s[44]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone (optional)`})}),s[44]=U):U=s[44];let W;s[45]===v?W=s[46]:(W=e=>{let{field:t}=e;return(0,f.jsxs)(o,{onValueChange:e=>t.onChange(e===`none`?void 0:e),value:t.value??`none`,children:[(0,f.jsx)(a,{className:`w-full`,id:`availabilityZone`,children:(0,f.jsx)(n,{})}),(0,f.jsxs)(i,{children:[(0,f.jsx)(r,{value:`none`,children:`none`}),v.map(_e)]})]})},s[45]=v,s[46]=W);let G;s[47]!==S||s[48]!==W?(G=(0,f.jsxs)(d,{children:[U,(0,f.jsx)(le,{control:S,name:`availabilityZone`,render:W})]}),s[47]=S,s[48]=W,s[49]=G):G=s[49];let K;s[50]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,f.jsx)(u,{children:`Auto-assign public IPv4`}),s[50]=K):K=s[50];let q;s[51]===S?q=s[52]:(q=(0,f.jsxs)(d,{children:[K,(0,f.jsx)(le,{control:S,name:`mapPublicIpOnLaunch`,render:ge})]}),s[51]=S,s[52]=q);let J;s[53]===E?J=s[54]:(J=ye(E),s[53]=E,s[54]=J);let Y;s[55]===J?Y=s[56]:(Y=(0,f.jsx)(te,{commands:J}),s[55]=J,s[56]=Y);let X;s[57]===c?X=s[58]:(X=async()=>await c({to:`/ec2/describe-subnets`}),s[57]=c,s[58]=X);let Z;s[59]!==m.isPending||s[60]!==Ce||s[61]!==X?(Z=(0,f.jsx)(de,{isPending:m.isPending,isSubmitting:Ce,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Subnet`}),s[59]=m.isPending,s[60]=Ce,s[61]=X,s[62]=Z):Z=s[62];let Q;s[63]!==M||s[64]!==L||s[65]!==H||s[66]!==G||s[67]!==q||s[68]!==Y||s[69]!==Z?(Q=(0,f.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:M,children:[L,H,G,q,Y,Z]}),s[63]=M,s[64]=L,s[65]=H,s[66]=G,s[67]=q,s[68]=Y,s[69]=Z,s[70]=Q):Q=s[70];let $;return s[71]!==j||s[72]!==Q?($=(0,f.jsxs)(f.Fragment,{children:[A,k,j,Q]}),s[71]=j,s[72]=Q,s[73]=$):$=s[73],$}function ge(e){let{field:t}=e;return(0,f.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,f.jsx)(`input`,{"aria-label":`Enable auto-assign public IPv4 address`,checked:t.value??!1,onChange:e=>t.onChange(e.target.checked),type:`checkbox`}),`Enable auto-assign public IPv4 address`]})}function _e(e){return(0,f.jsx)(r,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function ve(e){let t=s(e.Tags);return(0,f.jsx)(r,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function ye(e){let t=e(`vpcId`),ee=typeof t==`string`?t:``,n=e(`cidrBlock`),r=typeof n==`string`?n:``,i=e(`availabilityZone`),a=typeof i==`string`?i:``,o=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-subnet`},{type:`flag`,value:` \\ --vpc-id`},{type:`value`,value:` ${ee||``}`},{type:`flag`,value:` \\ --cidr-block`},{type:`value`,value:` ${r||``}`}];a&&o.push({type:`flag`,value:` \\ --availability-zone`},{type:`value`,value:` ${a}`});let te=[{label:`Create Subnet`,parts:o}];return e(`mapPublicIpOnLaunch`)===!0&&te.push({label:`Enable auto-assign public IPv4`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 modify-subnet-attribute`},{type:`flag`,value:` \\ diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-target-group.js b/spinifex/services/spinifexui/frontend/dist/assets/create-target-group.js index d8b3f813d..d1872fb51 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-target-group.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-target-group.js @@ -1,4 +1,4 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{i}from"./elbv2.js";import{Et as a,hs as o,ys as s}from"./index.js";import{i as c,t as l}from"./zod.js";import{t as u}from"./form-actions.js";import{t as d}from"./page-heading.js";import{t as f}from"./target-group-form.js";import{a as p}from"./elbv22.js";var m=s();function h(){let s=o(),{data:h}=t(a),_=i(),v=h.Vpcs??[],y=c({resolver:l(p),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:v[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:b,watch:x,formState:{isSubmitting:S}}=y;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(n,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),(0,m.jsx)(d,{title:`Create Target Group`}),_.error&&(0,m.jsx)(e,{error:_.error,msg:`Failed to create target group`}),(0,m.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:b(async e=>{try{let t=(await _.mutateAsync(e)).TargetGroups?.[0]?.TargetGroupArn;s(t?{to:`/ec2/describe-target-groups/$id`,params:{id:encodeURIComponent(t)}}:{to:`/ec2/describe-target-groups`})}catch{}}),children:[(0,m.jsx)(f,{form:y,vpcs:v}),(0,m.jsx)(r,{commands:g(x)}),(0,m.jsx)(u,{isPending:_.isPending,isSubmitting:S,onCancel:async()=>await s({to:`/ec2/describe-target-groups`}),pendingLabel:`Creating…`,submitLabel:`Create Target Group`})]})]})}function g(e){let t=t=>{let n=e(t);return typeof n==`string`?n:``},n=t=>{let n=e(t);return typeof n==`number`&&Number.isFinite(n)?n:void 0},r=t(`name`),i=t(`protocol`)||`HTTP`,a=n(`port`),o=t(`vpcId`),s=t(`healthCheck.protocol`)||`HTTP`,c=t(`healthCheck.path`)||`/`,l=t(`healthCheck.port`)||`traffic-port`,u=n(`healthCheck.intervalSeconds`),d=n(`healthCheck.timeoutSeconds`),f=n(`healthCheck.healthyThresholdCount`),p=n(`healthCheck.unhealthyThresholdCount`),m=t(`healthCheck.matcher`)||`200`,h=[{type:`bin`,value:`AWS_PROFILE=spinifex aws elbv2 create-target-group`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{i}from"./elbv2.js";import{Et as a,bs as o,gs as s}from"./index.js";import{i as c,t as l}from"./zod.js";import{t as u}from"./form-actions.js";import{t as d}from"./page-heading.js";import{t as f}from"./target-group-form.js";import{a as p}from"./elbv22.js";var m=o();function h(){let o=s(),{data:h}=t(a),_=i(),v=h.Vpcs??[],y=c({resolver:l(p),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:v[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:b,watch:x,formState:{isSubmitting:S}}=y;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(n,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),(0,m.jsx)(d,{title:`Create Target Group`}),_.error&&(0,m.jsx)(e,{error:_.error,msg:`Failed to create target group`}),(0,m.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:b(async e=>{try{let t=(await _.mutateAsync(e)).TargetGroups?.[0]?.TargetGroupArn;o(t?{to:`/ec2/describe-target-groups/$id`,params:{id:encodeURIComponent(t)}}:{to:`/ec2/describe-target-groups`})}catch{}}),children:[(0,m.jsx)(f,{form:y,vpcs:v}),(0,m.jsx)(r,{commands:g(x)}),(0,m.jsx)(u,{isPending:_.isPending,isSubmitting:S,onCancel:async()=>await o({to:`/ec2/describe-target-groups`}),pendingLabel:`Creating…`,submitLabel:`Create Target Group`})]})]})}function g(e){let t=t=>{let n=e(t);return typeof n==`string`?n:``},n=t=>{let n=e(t);return typeof n==`number`&&Number.isFinite(n)?n:void 0},r=t(`name`),i=t(`protocol`)||`HTTP`,a=n(`port`),o=t(`vpcId`),s=t(`healthCheck.protocol`)||`HTTP`,c=t(`healthCheck.path`)||`/`,l=t(`healthCheck.port`)||`traffic-port`,u=n(`healthCheck.intervalSeconds`),d=n(`healthCheck.timeoutSeconds`),f=n(`healthCheck.healthyThresholdCount`),p=n(`healthCheck.unhealthyThresholdCount`),m=t(`healthCheck.matcher`)||`200`,h=[{type:`bin`,value:`AWS_PROFILE=spinifex aws elbv2 create-target-group`},{type:`flag`,value:` \\ --name`},{type:`value`,value:` ${r||``}`},{type:`flag`,value:` \\ --protocol`},{type:`value`,value:` ${i}`},{type:`flag`,value:` \\ --port`},{type:`value`,value:` ${a??80}`},{type:`flag`,value:` \\ diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-user.js b/spinifex/services/spinifexui/frontend/dist/assets/create-user.js index b7f54d264..7e43e8a51 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-user.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-user.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./cli-command-panel.js";import{c as r}from"./iam.js";import{Da as i,fs as a,hs as o,ys as s}from"./index.js";import{a as c,i as ee,t as l}from"./zod.js";import{t as u}from"./form-actions.js";import{t as d}from"./page-heading.js";import{a as f,r as p,t as m}from"./field.js";import{a as h}from"./iam2.js";var g=a(),_=s();function v(){let a=(0,g.c)(55),s=o(),v=r(),b;a[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(h)},a[0]=b):b=a[0];let{handleSubmit:x,register:S,control:C,formState:w}=ee(b),{errors:T,isSubmitting:E}=w,D;a[1]===C?D=a[2]:(D={control:C},a[1]=C,a[2]=D);let O=c(D),k;a[3]===O?k=a[4]:(k=e=>e?O[e]:void 0,a[3]=O,a[4]=k);let A=k,j;a[5]!==v||a[6]!==s?(j=async e=>{await v.mutateAsync(e),s({to:`/iam/list-users`})},a[5]=v,a[6]=s,a[7]=j):j=a[7];let M=j,N,P;a[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,_.jsx)(t,{to:`/iam/list-users`,children:`Back to users`}),P=(0,_.jsx)(d,{title:`Create User`}),a[8]=N,a[9]=P):(N=a[8],P=a[9]);let F;a[10]===v.error?F=a[11]:(F=v.error&&(0,_.jsx)(e,{error:v.error,msg:`Failed to create user`}),a[10]=v.error,a[11]=F);let I;a[12]!==x||a[13]!==M?(I=x(M),a[12]=x,a[13]=M,a[14]=I):I=a[14];let L;a[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`userName`,children:`User Name`})}),a[15]=L):L=a[15];let R=!!T.userName,z;a[16]===S?z=a[17]:(z=S(`userName`),a[16]=S,a[17]=z);let B;a[18]!==R||a[19]!==z?(B=(0,_.jsx)(i,{"aria-invalid":R,id:`userName`,placeholder:`my-user...`,...z}),a[18]=R,a[19]=z,a[20]=B):B=a[20];let V;a[21]===T.userName?V=a[22]:(V=(0,_.jsx)(p,{errors:[T.userName]}),a[21]=T.userName,a[22]=V);let H;a[23]!==B||a[24]!==V?(H=(0,_.jsxs)(m,{children:[L,B,V]}),a[23]=B,a[24]=V,a[25]=H):H=a[25];let U;a[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`path`,children:`Path (optional)`})}),a[26]=U):U=a[26];let W;a[27]===S?W=a[28]:(W=S(`path`),a[27]=S,a[28]=W);let G;a[29]===W?G=a[30]:(G=(0,_.jsx)(i,{id:`path`,placeholder:`/`,...W}),a[29]=W,a[30]=G);let K;a[31]===T.path?K=a[32]:(K=(0,_.jsx)(p,{errors:[T.path]}),a[31]=T.path,a[32]=K);let q;a[33]!==G||a[34]!==K?(q=(0,_.jsxs)(m,{children:[U,G,K]}),a[33]=G,a[34]=K,a[35]=q):q=a[35];let J;a[36]===A?J=a[37]:(J=y(A),a[36]=A,a[37]=J);let Y;a[38]===J?Y=a[39]:(Y=(0,_.jsx)(n,{commands:J}),a[38]=J,a[39]=Y);let X;a[40]===s?X=a[41]:(X=async()=>await s({to:`/iam/list-users`}),a[40]=s,a[41]=X);let Z;a[42]!==v.isPending||a[43]!==E||a[44]!==X?(Z=(0,_.jsx)(u,{isPending:v.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create User`}),a[42]=v.isPending,a[43]=E,a[44]=X,a[45]=Z):Z=a[45];let Q;a[46]!==H||a[47]!==q||a[48]!==Y||a[49]!==Z||a[50]!==I?(Q=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),a[46]=H,a[47]=q,a[48]=Y,a[49]=Z,a[50]=I,a[51]=Q):Q=a[51];let $;return a[52]!==Q||a[53]!==F?($=(0,_.jsxs)(_.Fragment,{children:[N,P,F,Q]}),a[52]=Q,a[53]=F,a[54]=$):$=a[54],$}function y(e){let t=e(`userName`),n=typeof t==`string`?t:``,r=e(`path`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-user`},{type:`flag`,value:` --user-name`},{type:`value`,value:` ${n||``}`}];return i&&i!==`/`&&a.push({type:`flag`,value:` --path`},{type:`value`,value:` ${i}`}),[{label:`Create User`,parts:a}]}export{v as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./cli-command-panel.js";import{c as r}from"./iam.js";import{Oa as i,bs as a,gs as o,ps as s}from"./index.js";import{a as c,i as ee,t as l}from"./zod.js";import{t as u}from"./form-actions.js";import{t as d}from"./page-heading.js";import{a as f,r as p,t as m}from"./field.js";import{a as h}from"./iam2.js";var g=s(),_=a();function v(){let a=(0,g.c)(55),s=o(),v=r(),b;a[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(h)},a[0]=b):b=a[0];let{handleSubmit:x,register:S,control:C,formState:w}=ee(b),{errors:T,isSubmitting:E}=w,D;a[1]===C?D=a[2]:(D={control:C},a[1]=C,a[2]=D);let O=c(D),k;a[3]===O?k=a[4]:(k=e=>e?O[e]:void 0,a[3]=O,a[4]=k);let A=k,j;a[5]!==v||a[6]!==s?(j=async e=>{await v.mutateAsync(e),s({to:`/iam/list-users`})},a[5]=v,a[6]=s,a[7]=j):j=a[7];let M=j,N,P;a[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,_.jsx)(t,{to:`/iam/list-users`,children:`Back to users`}),P=(0,_.jsx)(d,{title:`Create User`}),a[8]=N,a[9]=P):(N=a[8],P=a[9]);let F;a[10]===v.error?F=a[11]:(F=v.error&&(0,_.jsx)(e,{error:v.error,msg:`Failed to create user`}),a[10]=v.error,a[11]=F);let I;a[12]!==x||a[13]!==M?(I=x(M),a[12]=x,a[13]=M,a[14]=I):I=a[14];let L;a[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`userName`,children:`User Name`})}),a[15]=L):L=a[15];let R=!!T.userName,z;a[16]===S?z=a[17]:(z=S(`userName`),a[16]=S,a[17]=z);let B;a[18]!==R||a[19]!==z?(B=(0,_.jsx)(i,{"aria-invalid":R,id:`userName`,placeholder:`my-user...`,...z}),a[18]=R,a[19]=z,a[20]=B):B=a[20];let V;a[21]===T.userName?V=a[22]:(V=(0,_.jsx)(p,{errors:[T.userName]}),a[21]=T.userName,a[22]=V);let H;a[23]!==B||a[24]!==V?(H=(0,_.jsxs)(m,{children:[L,B,V]}),a[23]=B,a[24]=V,a[25]=H):H=a[25];let U;a[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`path`,children:`Path (optional)`})}),a[26]=U):U=a[26];let W;a[27]===S?W=a[28]:(W=S(`path`),a[27]=S,a[28]=W);let G;a[29]===W?G=a[30]:(G=(0,_.jsx)(i,{id:`path`,placeholder:`/`,...W}),a[29]=W,a[30]=G);let K;a[31]===T.path?K=a[32]:(K=(0,_.jsx)(p,{errors:[T.path]}),a[31]=T.path,a[32]=K);let q;a[33]!==G||a[34]!==K?(q=(0,_.jsxs)(m,{children:[U,G,K]}),a[33]=G,a[34]=K,a[35]=q):q=a[35];let J;a[36]===A?J=a[37]:(J=y(A),a[36]=A,a[37]=J);let Y;a[38]===J?Y=a[39]:(Y=(0,_.jsx)(n,{commands:J}),a[38]=J,a[39]=Y);let X;a[40]===s?X=a[41]:(X=async()=>await s({to:`/iam/list-users`}),a[40]=s,a[41]=X);let Z;a[42]!==v.isPending||a[43]!==E||a[44]!==X?(Z=(0,_.jsx)(u,{isPending:v.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create User`}),a[42]=v.isPending,a[43]=E,a[44]=X,a[45]=Z):Z=a[45];let Q;a[46]!==H||a[47]!==q||a[48]!==Y||a[49]!==Z||a[50]!==I?(Q=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),a[46]=H,a[47]=q,a[48]=Y,a[49]=Z,a[50]=I,a[51]=Q):Q=a[51];let $;return a[52]!==Q||a[53]!==F?($=(0,_.jsxs)(_.Fragment,{children:[N,P,F,Q]}),a[52]=Q,a[53]=F,a[54]=$):$=a[54],$}function y(e){let t=e(`userName`),n=typeof t==`string`?t:``,r=e(`path`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-user`},{type:`flag`,value:` --user-name`},{type:`value`,value:` ${n||``}`}];return i&&i!==`/`&&a.push({type:`flag`,value:` --path`},{type:`value`,value:` ${i}`}),[{label:`Create User`,parts:a}]}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-volume.js b/spinifex/services/spinifexui/frontend/dist/assets/create-volume.js index 456c1bfcb..59a4f41f5 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-volume.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-volume.js @@ -1,3 +1,3 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as r,i,n as ee,s as a,t as te}from"./select.js";import{t as o}from"./cli-command-panel.js";import{x as s}from"./ec2.js";import{$ as ne,Da as re,fs as c,hs as ie,ys as l}from"./index.js";import{i as u,n as d,t as f}from"./zod.js";import{t as p}from"./form-actions.js";import{t as ae}from"./page-heading.js";import{a as m,r as h,t as g}from"./field.js";import{m as oe}from"./ec22.js";var se=c(),_=l();function v(){let i=(0,se.c)(57),c=ie(),{data:l}=t(ne),v=s(),y;i[0]===l.AvailabilityZones?y=i[1]:(y=l.AvailabilityZones??[],i[0]=l.AvailabilityZones,i[1]=y);let b=y,x=b[0]?.ZoneName??``,S;i[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=f(oe),i[2]=S):S=i[2];let C;i[3]===x?C=i[4]:(C={resolver:S,defaultValues:{size:1,availabilityZone:x}},i[3]=x,i[4]=C);let{control:w,handleSubmit:T,register:E,watch:D,formState:O}=u(C),{errors:k,isSubmitting:A}=O,j;i[5]!==v||i[6]!==c?(j=async e=>{await v.mutateAsync(e),c({to:`/ec2/describe-volumes`})},i[5]=v,i[6]=c,i[7]=j):j=i[7];let M=j,N,P;i[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,_.jsx)(n,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),P=(0,_.jsx)(ae,{title:`Create Volume`}),i[8]=N,i[9]=P):(N=i[8],P=i[9]);let F;i[10]===v.error?F=i[11]:(F=v.error&&(0,_.jsx)(e,{error:v.error,msg:`Failed to create volume`}),i[10]=v.error,i[11]=F);let I;i[12]!==T||i[13]!==M?(I=T(M),i[12]=T,i[13]=M,i[14]=I):I=i[14];let L;i[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,_.jsx)(m,{children:(0,_.jsx)(`label`,{htmlFor:`size`,children:`Size (GiB)`})}),i[15]=L):L=i[15];let R=!!k.size,z;i[16]===E?z=i[17]:(z=E(`size`,{valueAsNumber:!0}),i[16]=E,i[17]=z);let B;i[18]!==R||i[19]!==z?(B=(0,_.jsx)(re,{"aria-invalid":R,id:`size`,max:16384,min:1,type:`number`,...z}),i[18]=R,i[19]=z,i[20]=B):B=i[20];let V;i[21]===k.size?V=i[22]:(V=(0,_.jsx)(h,{errors:[k.size]}),i[21]=k.size,i[22]=V);let H;i[23]!==B||i[24]!==V?(H=(0,_.jsxs)(g,{children:[L,B,V]}),i[23]=B,i[24]=V,i[25]=H):H=i[25];let U;i[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,_.jsx)(m,{children:(0,_.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone`})}),i[26]=U):U=i[26];let W;i[27]!==b||i[28]!==k.availabilityZone?(W=e=>{let{field:t}=e;return(0,_.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,_.jsx)(a,{"aria-invalid":!!k.availabilityZone,className:`w-full`,id:`availabilityZone`,children:(0,_.jsx)(r,{})}),(0,_.jsx)(ee,{children:b.map(ce)})]})},i[27]=b,i[28]=k.availabilityZone,i[29]=W):W=i[29];let G;i[30]!==w||i[31]!==W?(G=(0,_.jsx)(d,{control:w,name:`availabilityZone`,render:W}),i[30]=w,i[31]=W,i[32]=G):G=i[32];let K;i[33]===k.availabilityZone?K=i[34]:(K=(0,_.jsx)(h,{errors:[k.availabilityZone]}),i[33]=k.availabilityZone,i[34]=K);let q;i[35]!==G||i[36]!==K?(q=(0,_.jsxs)(g,{children:[U,G,K]}),i[35]=G,i[36]=K,i[37]=q):q=i[37];let J;i[38]===D?J=i[39]:(J=le(D),i[38]=D,i[39]=J);let Y;i[40]===J?Y=i[41]:(Y=(0,_.jsx)(o,{commands:J}),i[40]=J,i[41]=Y);let X;i[42]===c?X=i[43]:(X=async()=>await c({to:`/ec2/describe-volumes`}),i[42]=c,i[43]=X);let Z;i[44]!==v.isPending||i[45]!==A||i[46]!==X?(Z=(0,_.jsx)(p,{isPending:v.isPending,isSubmitting:A,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Volume`}),i[44]=v.isPending,i[45]=A,i[46]=X,i[47]=Z):Z=i[47];let Q;i[48]!==H||i[49]!==q||i[50]!==Y||i[51]!==Z||i[52]!==I?(Q=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),i[48]=H,i[49]=q,i[50]=Y,i[51]=Z,i[52]=I,i[53]=Q):Q=i[53];let $;return i[54]!==Q||i[55]!==F?($=(0,_.jsxs)(_.Fragment,{children:[N,P,F,Q]}),i[54]=Q,i[55]=F,i[56]=$):$=i[56],$}function ce(e){return(0,_.jsx)(i,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function le(e){let t=e(`size`),n=typeof t==`number`?t:0,r=e(`availabilityZone`),i=typeof r==`string`?r:``;return[{label:`Create Volume`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-volume`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{c as r,i,n as ee,s as a,t as te}from"./select.js";import{t as o}from"./cli-command-panel.js";import{x as s}from"./ec2.js";import{$ as ne,Oa as re,bs as c,gs as ie,ps as l}from"./index.js";import{i as u,n as d,t as f}from"./zod.js";import{t as p}from"./form-actions.js";import{t as ae}from"./page-heading.js";import{a as m,r as h,t as g}from"./field.js";import{m as oe}from"./ec22.js";var se=l(),_=c();function v(){let i=(0,se.c)(57),c=ie(),{data:l}=t(ne),v=s(),y;i[0]===l.AvailabilityZones?y=i[1]:(y=l.AvailabilityZones??[],i[0]=l.AvailabilityZones,i[1]=y);let b=y,x=b[0]?.ZoneName??``,S;i[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=f(oe),i[2]=S):S=i[2];let C;i[3]===x?C=i[4]:(C={resolver:S,defaultValues:{size:1,availabilityZone:x}},i[3]=x,i[4]=C);let{control:w,handleSubmit:T,register:E,watch:D,formState:O}=u(C),{errors:k,isSubmitting:A}=O,j;i[5]!==v||i[6]!==c?(j=async e=>{await v.mutateAsync(e),c({to:`/ec2/describe-volumes`})},i[5]=v,i[6]=c,i[7]=j):j=i[7];let M=j,N,P;i[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,_.jsx)(n,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),P=(0,_.jsx)(ae,{title:`Create Volume`}),i[8]=N,i[9]=P):(N=i[8],P=i[9]);let F;i[10]===v.error?F=i[11]:(F=v.error&&(0,_.jsx)(e,{error:v.error,msg:`Failed to create volume`}),i[10]=v.error,i[11]=F);let I;i[12]!==T||i[13]!==M?(I=T(M),i[12]=T,i[13]=M,i[14]=I):I=i[14];let L;i[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,_.jsx)(m,{children:(0,_.jsx)(`label`,{htmlFor:`size`,children:`Size (GiB)`})}),i[15]=L):L=i[15];let R=!!k.size,z;i[16]===E?z=i[17]:(z=E(`size`,{valueAsNumber:!0}),i[16]=E,i[17]=z);let B;i[18]!==R||i[19]!==z?(B=(0,_.jsx)(re,{"aria-invalid":R,id:`size`,max:16384,min:1,type:`number`,...z}),i[18]=R,i[19]=z,i[20]=B):B=i[20];let V;i[21]===k.size?V=i[22]:(V=(0,_.jsx)(h,{errors:[k.size]}),i[21]=k.size,i[22]=V);let H;i[23]!==B||i[24]!==V?(H=(0,_.jsxs)(g,{children:[L,B,V]}),i[23]=B,i[24]=V,i[25]=H):H=i[25];let U;i[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,_.jsx)(m,{children:(0,_.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone`})}),i[26]=U):U=i[26];let W;i[27]!==b||i[28]!==k.availabilityZone?(W=e=>{let{field:t}=e;return(0,_.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,_.jsx)(a,{"aria-invalid":!!k.availabilityZone,className:`w-full`,id:`availabilityZone`,children:(0,_.jsx)(r,{})}),(0,_.jsx)(ee,{children:b.map(ce)})]})},i[27]=b,i[28]=k.availabilityZone,i[29]=W):W=i[29];let G;i[30]!==w||i[31]!==W?(G=(0,_.jsx)(d,{control:w,name:`availabilityZone`,render:W}),i[30]=w,i[31]=W,i[32]=G):G=i[32];let K;i[33]===k.availabilityZone?K=i[34]:(K=(0,_.jsx)(h,{errors:[k.availabilityZone]}),i[33]=k.availabilityZone,i[34]=K);let q;i[35]!==G||i[36]!==K?(q=(0,_.jsxs)(g,{children:[U,G,K]}),i[35]=G,i[36]=K,i[37]=q):q=i[37];let J;i[38]===D?J=i[39]:(J=le(D),i[38]=D,i[39]=J);let Y;i[40]===J?Y=i[41]:(Y=(0,_.jsx)(o,{commands:J}),i[40]=J,i[41]=Y);let X;i[42]===c?X=i[43]:(X=async()=>await c({to:`/ec2/describe-volumes`}),i[42]=c,i[43]=X);let Z;i[44]!==v.isPending||i[45]!==A||i[46]!==X?(Z=(0,_.jsx)(p,{isPending:v.isPending,isSubmitting:A,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Volume`}),i[44]=v.isPending,i[45]=A,i[46]=X,i[47]=Z):Z=i[47];let Q;i[48]!==H||i[49]!==q||i[50]!==Y||i[51]!==Z||i[52]!==I?(Q=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),i[48]=H,i[49]=q,i[50]=Y,i[51]=Z,i[52]=I,i[53]=Q):Q=i[53];let $;return i[54]!==Q||i[55]!==F?($=(0,_.jsxs)(_.Fragment,{children:[N,P,F,Q]}),i[54]=Q,i[55]=F,i[56]=$):$=i[56],$}function ce(e){return(0,_.jsx)(i,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function le(e){let t=e(`size`),n=typeof t==`number`?t:0,r=e(`availabilityZone`),i=typeof r==`string`?r:``;return[{label:`Create Volume`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-volume`},{type:`flag`,value:` \\ --size`},{type:`value`,value:` ${n||1}`},{type:`flag`,value:` \\ --availability-zone`},{type:`value`,value:` ${i||``}`}]}]}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-vpc.js b/spinifex/services/spinifexui/frontend/dist/assets/create-vpc.js index f5f10a9f4..364df8c72 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-vpc.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-vpc.js @@ -1,4 +1,4 @@ -import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./chevron-down.js";import{t as r}from"./chevron-right.js";import{c as i,i as a,n as o,s,t as c}from"./select.js";import{t as l}from"./cli-command-panel.js";import{C as u,S as d,Z as f}from"./ec2.js";import{Da as p,Do as m,bs as h,fs as g,hs as _,ys as v,zs as y}from"./index.js";import{i as b,n as x,t as S}from"./zod.js";import{t as C}from"./form-actions.js";import{t as w}from"./page-heading.js";import{a as T,r as E,t as D}from"./field.js";import{h as O}from"./ec22.js";var k=g(),A=y(h(),1),j=v();function M(e){let t=(0,k.c)(18),{form:i,type:a,count:o,defaults:s}=e,[c,l]=(0,A.useState)(!1),u=a===`public`?`publicSubnetCidrs`:`privateSubnetCidrs`;if(o===0)return null;let d;t[0]===c?d=t[1]:(d=()=>l(!c),t[0]=c,t[1]=d);let f;t[2]===c?f=t[3]:(f=c?(0,j.jsx)(n,{className:`size-3`}):(0,j.jsx)(r,{className:`size-3`}),t[2]=c,t[3]=f);let h;t[4]!==d||t[5]!==f||t[6]!==a?(h=(0,j.jsxs)(m,{className:`gap-1 px-0 text-xs text-muted-foreground`,onClick:d,type:`button`,variant:`link`,children:[f,`Customize `,a,` subnet CIDR blocks`]}),t[4]=d,t[5]=f,t[6]=a,t[7]=h):h=t[7];let g;t[8]!==o||t[9]!==s||t[10]!==c||t[11]!==u||t[12]!==i||t[13]!==a?(g=c&&(0,j.jsx)(`div`,{className:`mt-2 space-y-2`,children:Array.from({length:o},(e,t)=>(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsxs)(`span`,{className:`w-32 text-xs text-muted-foreground`,children:[a===`public`?`Public`:`Private`,` subnet `,t+1]}),(0,j.jsx)(p,{defaultValue:s[t],placeholder:s[t],...i.register(`${u}.${t}`)})]},t))}),t[8]=o,t[9]=s,t[10]=c,t[11]=u,t[12]=i,t[13]=a,t[14]=g):g=t[14];let _;return t[15]!==h||t[16]!==g?(_=(0,j.jsxs)(`div`,{className:`mt-2`,children:[h,g]}),t[15]=h,t[16]=g,t[17]=_):_=t[17],_}function N(e){let t=(0,k.c)(8),{label:n,cidr:r,variant:i}=e,a=`rounded-md border px-3 py-2 text-xs ${i===`public`?`border-emerald-500/30 bg-emerald-500/10`:`border-blue-500/30 bg-blue-500/10`}`,o;t[0]===n?o=t[1]:(o=(0,j.jsx)(`div`,{className:`font-medium`,children:n}),t[0]=n,t[1]=o);let s;t[2]===r?s=t[3]:(s=(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:r}),t[2]=r,t[3]=s);let c;return t[4]!==a||t[5]!==o||t[6]!==s?(c=(0,j.jsxs)(`div`,{className:a,children:[o,s]}),t[4]=a,t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function P(e){let t=(0,k.c)(14),{mode:n,vpcCidr:r,publicSubnets:i,privateSubnets:a,hasIgw:o}=e,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,j.jsx)(`h3`,{className:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`,children:`Preview`}),t[0]=s):s=t[0];let c;t[1]===r?c=t[2]:(c=(0,j.jsxs)(`div`,{className:`mb-3 text-xs font-medium`,children:[`VPC `,(0,j.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,r,`)`]})]}),t[1]=r,t[2]=c);let l;t[3]!==o||t[4]!==n||t[5]!==a||t[6]!==i?(l=n===`vpc-and-more`&&(0,j.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-3`,children:[(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Subnets`}),i.map(I),a.map(F),i.length===0&&a.length===0&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`No subnets`})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Route Tables`}),i.length>0&&(0,j.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Public Route Table`}),(0,j.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`0.0.0.0/0 → IGW`}),(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:`local`})]}),a.length>0&&(0,j.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Private Route Table`}),(0,j.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`local`})]})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Network Connections`}),o&&(0,j.jsxs)(`div`,{className:`rounded-md border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Internet Gateway`}),(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:`Attached to VPC`})]}),!o&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`No internet gateway`})]})]}),t[3]=o,t[4]=n,t[5]=a,t[6]=i,t[7]=l):l=t[7];let u;t[8]===n?u=t[9]:(u=n===`vpc-only`&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`VPC only — no additional resources will be created.`}),t[8]=n,t[9]=u);let d;return t[10]!==c||t[11]!==l||t[12]!==u?(d=(0,j.jsxs)(`div`,{className:`rounded-lg border bg-muted/30 p-4`,children:[s,(0,j.jsxs)(`div`,{className:`rounded-lg border-2 border-dashed border-foreground/20 p-4`,children:[c,l,u]})]}),t[10]=c,t[11]=l,t[12]=u,t[13]=d):d=t[13],d}function F(e){return(0,j.jsx)(N,{cidr:e.cidr,label:e.label,variant:`private`},e.cidr)}function I(e){return(0,j.jsx)(N,{cidr:e.cidr,label:e.label,variant:`public`},e.cidr)}var L=[0,1],R=[0,1,2];function z(){let n=_(),r=d(),h=u(),[g,v]=(0,A.useState)(null),y=b({resolver:S(O),defaultValues:{mode:`vpc-only`,namePrefix:``,autoGenerateNames:!0,cidrBlock:`10.0.0.0/16`,tenancy:`default`,natGateway:`none`,publicSubnetCount:1,privateSubnetCount:1,publicSubnetCidrs:[],privateSubnetCidrs:[],tags:[]}}),{handleSubmit:k,register:N,watch:F,control:I,formState:{errors:z,isSubmitting:V}}=y,H=F(`mode`),U=F(`cidrBlock`),W=F(`publicSubnetCount`),G=F(`privateSubnetCount`),K=f(U||`10.0.0.0/16`,H===`vpc-and-more`?W:0,H===`vpc-and-more`?G:0),[q,J]=(0,A.useState)(``),Y=async e=>{if(v(null),e.mode===`vpc-only`){let t=e.autoGenerateNames&&e.namePrefix?`${e.namePrefix}-vpc`:e.namePrefix,i=(await r.mutateAsync({cidrBlock:e.cidrBlock,name:t||void 0})).Vpc?.VpcId;n(i?{to:`/ec2/describe-vpcs/$id`,params:{id:i}}:{to:`/ec2/describe-vpcs`});return}J(`Creating VPC and resources...`);let t=await h.mutateAsync(e);v(t),!t.error&&t.vpcId&&n({to:`/ec2/describe-vpcs/$id`,params:{id:t.vpcId}}),J(``)},X=r.error??h.error,Z=r.isPending||h.isPending;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(t,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,j.jsx)(w,{title:`Create VPC`}),X&&(0,j.jsx)(e,{error:X,msg:`Failed to create VPC`}),g?.error&&(0,j.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,j.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,g.failedStep]}),(0,j.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:g.error.message}),g.created.length>0&&(0,j.jsxs)(`div`,{className:`mt-3`,children:[(0,j.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources:`}),(0,j.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:g.created.map((e,t)=>(0,j.jsxs)(`li`,{children:[e.type,`: `,e.id]},t))})]})]}),q&&(0,j.jsx)(`div`,{className:`mb-4 max-w-4xl text-sm text-muted-foreground`,children:q}),(0,j.jsxs)(`div`,{className:`flex max-w-6xl gap-8`,children:[(0,j.jsxs)(`form`,{className:`min-w-0 flex-1 space-y-6`,onSubmit:k(Y),children:[(0,j.jsxs)(D,{children:[(0,j.jsx)(T,{children:`Resources to create`}),(0,j.jsx)(x,{control:I,name:`mode`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`VPC only`,checked:e.value===`vpc-only`,name:`mode`,onChange:()=>e.onChange(`vpc-only`),type:`radio`}),`VPC only`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`VPC and more`,checked:e.value===`vpc-and-more`,name:`mode`,onChange:()=>e.onChange(`vpc-and-more`),type:`radio`}),`VPC and more`]})]})})]}),(0,j.jsxs)(D,{children:[(0,j.jsx)(T,{children:(0,j.jsx)(`label`,{htmlFor:`namePrefix`,children:`Name tag auto-generation`})}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(p,{id:`namePrefix`,placeholder:`project`,...N(`namePrefix`)}),(0,j.jsx)(x,{control:I,name:`autoGenerateNames`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex shrink-0 items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Auto-generate name tags`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Auto-generate`]})})]})]}),(0,j.jsxs)(D,{children:[(0,j.jsx)(T,{children:(0,j.jsx)(`label`,{htmlFor:`cidrBlock`,children:`IPv4 CIDR block`})}),(0,j.jsx)(p,{"aria-invalid":!!z.cidrBlock,id:`cidrBlock`,placeholder:`10.0.0.0/16`,...N(`cidrBlock`)}),(0,j.jsx)(E,{errors:[z.cidrBlock]})]}),(0,j.jsxs)(D,{children:[(0,j.jsx)(T,{children:`Tenancy`}),(0,j.jsx)(x,{control:I,name:`tenancy`,render:({field:e})=>(0,j.jsxs)(c,{onValueChange:e.onChange,value:e.value,children:[(0,j.jsx)(s,{id:`tenancy`,children:(0,j.jsx)(i,{})}),(0,j.jsxs)(o,{children:[(0,j.jsx)(a,{value:`default`,children:`default`}),(0,j.jsx)(a,{value:`dedicated`,children:`dedicated`})]})]})})]}),H===`vpc-and-more`&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(D,{children:[(0,j.jsx)(T,{children:`Number of public subnets`}),(0,j.jsx)(x,{control:I,name:`publicSubnetCount`,render:({field:e})=>(0,j.jsx)(`div`,{className:`flex gap-1`,children:L.map(t=>(0,j.jsx)(m,{onClick:()=>e.onChange(t),size:`sm`,type:`button`,variant:e.value===t?`default`:`outline`,children:t},t))})}),(0,j.jsx)(M,{count:W,defaults:K.publicSubnets.map(e=>e.cidr),form:y,type:`public`})]}),(0,j.jsxs)(D,{children:[(0,j.jsx)(T,{children:`Number of private subnets`}),(0,j.jsx)(x,{control:I,name:`privateSubnetCount`,render:({field:e})=>(0,j.jsx)(`div`,{className:`flex gap-1`,children:R.map(t=>(0,j.jsx)(m,{onClick:()=>e.onChange(t),size:`sm`,type:`button`,variant:e.value===t?`default`:`outline`,children:t},t))})}),(0,j.jsx)(M,{count:G,defaults:K.privateSubnets.map(e=>e.cidr),form:y,type:`private`})]}),W>0&&G>0&&(0,j.jsxs)(D,{children:[(0,j.jsx)(T,{children:`NAT gateways`}),(0,j.jsx)(x,{control:I,name:`natGateway`,render:({field:e})=>(0,j.jsxs)(c,{onValueChange:e.onChange,value:e.value??`none`,children:[(0,j.jsx)(s,{id:`natGateway`,children:(0,j.jsx)(i,{})}),(0,j.jsxs)(o,{children:[(0,j.jsx)(a,{value:`none`,children:`None`}),(0,j.jsx)(a,{value:`single`,children:`In 1 AZ`})]})]})}),(0,j.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`Creates an Elastic IP + NAT gateway in the public subnet and routes private subnet egress (0.0.0.0/0) through it.`})]})]}),(0,j.jsx)(l,{commands:B(F,K)}),(0,j.jsx)(C,{isPending:Z,isSubmitting:V,onCancel:async()=>await n({to:`/ec2/describe-vpcs`}),pendingLabel:`Creating…`,submitLabel:`Create VPC`})]}),(0,j.jsx)(`div`,{className:`hidden min-w-0 flex-1 lg:block`,children:(0,j.jsx)(P,{hasIgw:H===`vpc-and-more`&&W>0,mode:H,privateSubnets:K.privateSubnets,publicSubnets:K.publicSubnets,vpcCidr:U||`10.0.0.0/16`})})]})]})}function B(e,t){let n=e(`mode`),r=typeof n==`string`?n:``,i=e(`cidrBlock`),a=typeof i==`string`?i:``,o=e(`tenancy`),s=typeof o==`string`?o:``,c=e(`natGateway`),l=typeof c==`string`?c:``;if(r===`vpc-only`){let e=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-vpc`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./chevron-down.js";import{t as r}from"./chevron-right.js";import{c as i,i as a,n as o,s,t as c}from"./select.js";import{t as l}from"./cli-command-panel.js";import{C as u,S as d,Z as f}from"./ec2.js";import{Bs as p,Oa as m,Oo as h,bs as g,gs as _,ps as v,xs as y}from"./index.js";import{i as b,n as x,t as S}from"./zod.js";import{t as C}from"./form-actions.js";import{t as w}from"./page-heading.js";import{a as T,r as E,t as D}from"./field.js";import{h as O}from"./ec22.js";var k=v(),A=p(y(),1),j=g();function M(e){let t=(0,k.c)(18),{form:i,type:a,count:o,defaults:s}=e,[c,l]=(0,A.useState)(!1),u=a===`public`?`publicSubnetCidrs`:`privateSubnetCidrs`;if(o===0)return null;let d;t[0]===c?d=t[1]:(d=()=>l(!c),t[0]=c,t[1]=d);let f;t[2]===c?f=t[3]:(f=c?(0,j.jsx)(n,{className:`size-3`}):(0,j.jsx)(r,{className:`size-3`}),t[2]=c,t[3]=f);let p;t[4]!==d||t[5]!==f||t[6]!==a?(p=(0,j.jsxs)(h,{className:`gap-1 px-0 text-xs text-muted-foreground`,onClick:d,type:`button`,variant:`link`,children:[f,`Customize `,a,` subnet CIDR blocks`]}),t[4]=d,t[5]=f,t[6]=a,t[7]=p):p=t[7];let g;t[8]!==o||t[9]!==s||t[10]!==c||t[11]!==u||t[12]!==i||t[13]!==a?(g=c&&(0,j.jsx)(`div`,{className:`mt-2 space-y-2`,children:Array.from({length:o},(e,t)=>(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsxs)(`span`,{className:`w-32 text-xs text-muted-foreground`,children:[a===`public`?`Public`:`Private`,` subnet `,t+1]}),(0,j.jsx)(m,{defaultValue:s[t],placeholder:s[t],...i.register(`${u}.${t}`)})]},t))}),t[8]=o,t[9]=s,t[10]=c,t[11]=u,t[12]=i,t[13]=a,t[14]=g):g=t[14];let _;return t[15]!==p||t[16]!==g?(_=(0,j.jsxs)(`div`,{className:`mt-2`,children:[p,g]}),t[15]=p,t[16]=g,t[17]=_):_=t[17],_}function N(e){let t=(0,k.c)(8),{label:n,cidr:r,variant:i}=e,a=`rounded-md border px-3 py-2 text-xs ${i===`public`?`border-emerald-500/30 bg-emerald-500/10`:`border-blue-500/30 bg-blue-500/10`}`,o;t[0]===n?o=t[1]:(o=(0,j.jsx)(`div`,{className:`font-medium`,children:n}),t[0]=n,t[1]=o);let s;t[2]===r?s=t[3]:(s=(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:r}),t[2]=r,t[3]=s);let c;return t[4]!==a||t[5]!==o||t[6]!==s?(c=(0,j.jsxs)(`div`,{className:a,children:[o,s]}),t[4]=a,t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function P(e){let t=(0,k.c)(14),{mode:n,vpcCidr:r,publicSubnets:i,privateSubnets:a,hasIgw:o}=e,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,j.jsx)(`h3`,{className:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`,children:`Preview`}),t[0]=s):s=t[0];let c;t[1]===r?c=t[2]:(c=(0,j.jsxs)(`div`,{className:`mb-3 text-xs font-medium`,children:[`VPC `,(0,j.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,r,`)`]})]}),t[1]=r,t[2]=c);let l;t[3]!==o||t[4]!==n||t[5]!==a||t[6]!==i?(l=n===`vpc-and-more`&&(0,j.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-3`,children:[(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Subnets`}),i.map(I),a.map(F),i.length===0&&a.length===0&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`No subnets`})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Route Tables`}),i.length>0&&(0,j.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Public Route Table`}),(0,j.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`0.0.0.0/0 → IGW`}),(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:`local`})]}),a.length>0&&(0,j.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Private Route Table`}),(0,j.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`local`})]})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Network Connections`}),o&&(0,j.jsxs)(`div`,{className:`rounded-md border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Internet Gateway`}),(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:`Attached to VPC`})]}),!o&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`No internet gateway`})]})]}),t[3]=o,t[4]=n,t[5]=a,t[6]=i,t[7]=l):l=t[7];let u;t[8]===n?u=t[9]:(u=n===`vpc-only`&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`VPC only — no additional resources will be created.`}),t[8]=n,t[9]=u);let d;return t[10]!==c||t[11]!==l||t[12]!==u?(d=(0,j.jsxs)(`div`,{className:`rounded-lg border bg-muted/30 p-4`,children:[s,(0,j.jsxs)(`div`,{className:`rounded-lg border-2 border-dashed border-foreground/20 p-4`,children:[c,l,u]})]}),t[10]=c,t[11]=l,t[12]=u,t[13]=d):d=t[13],d}function F(e){return(0,j.jsx)(N,{cidr:e.cidr,label:e.label,variant:`private`},e.cidr)}function I(e){return(0,j.jsx)(N,{cidr:e.cidr,label:e.label,variant:`public`},e.cidr)}var L=[0,1],R=[0,1,2];function z(){let n=_(),r=d(),p=u(),[g,v]=(0,A.useState)(null),y=b({resolver:S(O),defaultValues:{mode:`vpc-only`,namePrefix:``,autoGenerateNames:!0,cidrBlock:`10.0.0.0/16`,tenancy:`default`,natGateway:`none`,publicSubnetCount:1,privateSubnetCount:1,publicSubnetCidrs:[],privateSubnetCidrs:[],tags:[]}}),{handleSubmit:k,register:N,watch:F,control:I,formState:{errors:z,isSubmitting:V}}=y,H=F(`mode`),U=F(`cidrBlock`),W=F(`publicSubnetCount`),G=F(`privateSubnetCount`),K=f(U||`10.0.0.0/16`,H===`vpc-and-more`?W:0,H===`vpc-and-more`?G:0),[q,J]=(0,A.useState)(``),Y=async e=>{if(v(null),e.mode===`vpc-only`){let t=e.autoGenerateNames&&e.namePrefix?`${e.namePrefix}-vpc`:e.namePrefix,i=(await r.mutateAsync({cidrBlock:e.cidrBlock,name:t||void 0})).Vpc?.VpcId;n(i?{to:`/ec2/describe-vpcs/$id`,params:{id:i}}:{to:`/ec2/describe-vpcs`});return}J(`Creating VPC and resources...`);let t=await p.mutateAsync(e);v(t),!t.error&&t.vpcId&&n({to:`/ec2/describe-vpcs/$id`,params:{id:t.vpcId}}),J(``)},X=r.error??p.error,Z=r.isPending||p.isPending;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(t,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,j.jsx)(w,{title:`Create VPC`}),X&&(0,j.jsx)(e,{error:X,msg:`Failed to create VPC`}),g?.error&&(0,j.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,j.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,g.failedStep]}),(0,j.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:g.error.message}),g.created.length>0&&(0,j.jsxs)(`div`,{className:`mt-3`,children:[(0,j.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources:`}),(0,j.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:g.created.map((e,t)=>(0,j.jsxs)(`li`,{children:[e.type,`: `,e.id]},t))})]})]}),q&&(0,j.jsx)(`div`,{className:`mb-4 max-w-4xl text-sm text-muted-foreground`,children:q}),(0,j.jsxs)(`div`,{className:`flex max-w-6xl gap-8`,children:[(0,j.jsxs)(`form`,{className:`min-w-0 flex-1 space-y-6`,onSubmit:k(Y),children:[(0,j.jsxs)(D,{children:[(0,j.jsx)(T,{children:`Resources to create`}),(0,j.jsx)(x,{control:I,name:`mode`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`VPC only`,checked:e.value===`vpc-only`,name:`mode`,onChange:()=>e.onChange(`vpc-only`),type:`radio`}),`VPC only`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`VPC and more`,checked:e.value===`vpc-and-more`,name:`mode`,onChange:()=>e.onChange(`vpc-and-more`),type:`radio`}),`VPC and more`]})]})})]}),(0,j.jsxs)(D,{children:[(0,j.jsx)(T,{children:(0,j.jsx)(`label`,{htmlFor:`namePrefix`,children:`Name tag auto-generation`})}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(m,{id:`namePrefix`,placeholder:`project`,...N(`namePrefix`)}),(0,j.jsx)(x,{control:I,name:`autoGenerateNames`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex shrink-0 items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Auto-generate name tags`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Auto-generate`]})})]})]}),(0,j.jsxs)(D,{children:[(0,j.jsx)(T,{children:(0,j.jsx)(`label`,{htmlFor:`cidrBlock`,children:`IPv4 CIDR block`})}),(0,j.jsx)(m,{"aria-invalid":!!z.cidrBlock,id:`cidrBlock`,placeholder:`10.0.0.0/16`,...N(`cidrBlock`)}),(0,j.jsx)(E,{errors:[z.cidrBlock]})]}),(0,j.jsxs)(D,{children:[(0,j.jsx)(T,{children:`Tenancy`}),(0,j.jsx)(x,{control:I,name:`tenancy`,render:({field:e})=>(0,j.jsxs)(c,{onValueChange:e.onChange,value:e.value,children:[(0,j.jsx)(s,{id:`tenancy`,children:(0,j.jsx)(i,{})}),(0,j.jsxs)(o,{children:[(0,j.jsx)(a,{value:`default`,children:`default`}),(0,j.jsx)(a,{value:`dedicated`,children:`dedicated`})]})]})})]}),H===`vpc-and-more`&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(D,{children:[(0,j.jsx)(T,{children:`Number of public subnets`}),(0,j.jsx)(x,{control:I,name:`publicSubnetCount`,render:({field:e})=>(0,j.jsx)(`div`,{className:`flex gap-1`,children:L.map(t=>(0,j.jsx)(h,{onClick:()=>e.onChange(t),size:`sm`,type:`button`,variant:e.value===t?`default`:`outline`,children:t},t))})}),(0,j.jsx)(M,{count:W,defaults:K.publicSubnets.map(e=>e.cidr),form:y,type:`public`})]}),(0,j.jsxs)(D,{children:[(0,j.jsx)(T,{children:`Number of private subnets`}),(0,j.jsx)(x,{control:I,name:`privateSubnetCount`,render:({field:e})=>(0,j.jsx)(`div`,{className:`flex gap-1`,children:R.map(t=>(0,j.jsx)(h,{onClick:()=>e.onChange(t),size:`sm`,type:`button`,variant:e.value===t?`default`:`outline`,children:t},t))})}),(0,j.jsx)(M,{count:G,defaults:K.privateSubnets.map(e=>e.cidr),form:y,type:`private`})]}),W>0&&G>0&&(0,j.jsxs)(D,{children:[(0,j.jsx)(T,{children:`NAT gateways`}),(0,j.jsx)(x,{control:I,name:`natGateway`,render:({field:e})=>(0,j.jsxs)(c,{onValueChange:e.onChange,value:e.value??`none`,children:[(0,j.jsx)(s,{id:`natGateway`,children:(0,j.jsx)(i,{})}),(0,j.jsxs)(o,{children:[(0,j.jsx)(a,{value:`none`,children:`None`}),(0,j.jsx)(a,{value:`single`,children:`In 1 AZ`})]})]})}),(0,j.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`Creates an Elastic IP + NAT gateway in the public subnet and routes private subnet egress (0.0.0.0/0) through it.`})]})]}),(0,j.jsx)(l,{commands:B(F,K)}),(0,j.jsx)(C,{isPending:Z,isSubmitting:V,onCancel:async()=>await n({to:`/ec2/describe-vpcs`}),pendingLabel:`Creating…`,submitLabel:`Create VPC`})]}),(0,j.jsx)(`div`,{className:`hidden min-w-0 flex-1 lg:block`,children:(0,j.jsx)(P,{hasIgw:H===`vpc-and-more`&&W>0,mode:H,privateSubnets:K.privateSubnets,publicSubnets:K.publicSubnets,vpcCidr:U||`10.0.0.0/16`})})]})]})}function B(e,t){let n=e(`mode`),r=typeof n==`string`?n:``,i=e(`cidrBlock`),a=typeof i==`string`?i:``,o=e(`tenancy`),s=typeof o==`string`?o:``,c=e(`natGateway`),l=typeof c==`string`?c:``;if(r===`vpc-only`){let e=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-vpc`},{type:`flag`,value:` \\ --cidr-block`},{type:`value`,value:` ${a||`10.0.0.0/16`}`}];return s&&s!==`default`&&e.push({type:`flag`,value:` \\ --instance-tenancy`},{type:`value`,value:` ${s}`}),[{label:`Create VPC`,parts:e}]}let u=[],d=[...t.publicSubnets.map((e,t)=>({...e,name:`PUBLIC_SUBNET_${t+1}`})),...t.privateSubnets.map((e,t)=>({...e,name:`PRIVATE_SUBNET_${t+1}`}))];u.push({label:`Create VPC`,parts:[{type:`comment`,value:`# Create VPC with subnets, internet gateway, and routing diff --git a/spinifex/services/spinifexui/frontend/dist/assets/delete-confirmation-dialog.js b/spinifex/services/spinifexui/frontend/dist/assets/delete-confirmation-dialog.js index 2bc19e971..892d08e5f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/delete-confirmation-dialog.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/delete-confirmation-dialog.js @@ -1 +1 @@ -import{fs as e,ys as t}from"./index.js";import{a as n,i as r,l as i,n as a,o,r as s,s as c,t as l}from"./alert-dialog.js";var u=e(),d=t();function f(e){let t=(0,u.c)(19),{open:f,onOpenChange:p,title:m,description:h,isPending:g,onConfirm:_,confirmLabel:v,pendingLabel:y}=e,b=v===void 0?`Delete`:v,x=y===void 0?`Deleting…`:y,S;t[0]===m?S=t[1]:(S=(0,d.jsx)(i,{children:m}),t[0]=m,t[1]=S);let C;t[2]===h?C=t[3]:(C=(0,d.jsx)(n,{children:h}),t[2]=h,t[3]=C);let w;t[4]!==S||t[5]!==C?(w=(0,d.jsxs)(c,{children:[S,C]}),t[4]=S,t[5]=C,t[6]=w):w=t[6];let T;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,d.jsx)(s,{children:`Cancel`}),t[7]=T):T=t[7];let E=g?x:b,D;t[8]!==g||t[9]!==_||t[10]!==E?(D=(0,d.jsxs)(o,{children:[T,(0,d.jsx)(a,{disabled:g,onClick:_,children:E})]}),t[8]=g,t[9]=_,t[10]=E,t[11]=D):D=t[11];let O;t[12]!==w||t[13]!==D?(O=(0,d.jsxs)(r,{children:[w,D]}),t[12]=w,t[13]=D,t[14]=O):O=t[14];let k;return t[15]!==p||t[16]!==f||t[17]!==O?(k=(0,d.jsx)(l,{onOpenChange:p,open:f,children:O}),t[15]=p,t[16]=f,t[17]=O,t[18]=k):k=t[18],k}export{f as t}; \ No newline at end of file +import{bs as e,ps as t}from"./index.js";import{a as n,i as r,l as i,n as a,o,r as s,s as c,t as l}from"./alert-dialog.js";var u=t(),d=e();function f(e){let t=(0,u.c)(19),{open:f,onOpenChange:p,title:m,description:h,isPending:g,onConfirm:_,confirmLabel:v,pendingLabel:y}=e,b=v===void 0?`Delete`:v,x=y===void 0?`Deleting…`:y,S;t[0]===m?S=t[1]:(S=(0,d.jsx)(i,{children:m}),t[0]=m,t[1]=S);let C;t[2]===h?C=t[3]:(C=(0,d.jsx)(n,{children:h}),t[2]=h,t[3]=C);let w;t[4]!==S||t[5]!==C?(w=(0,d.jsxs)(c,{children:[S,C]}),t[4]=S,t[5]=C,t[6]=w):w=t[6];let T;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,d.jsx)(s,{children:`Cancel`}),t[7]=T):T=t[7];let E=g?x:b,D;t[8]!==g||t[9]!==_||t[10]!==E?(D=(0,d.jsxs)(o,{children:[T,(0,d.jsx)(a,{disabled:g,onClick:_,children:E})]}),t[8]=g,t[9]=_,t[10]=E,t[11]=D):D=t[11];let O;t[12]!==w||t[13]!==D?(O=(0,d.jsxs)(r,{children:[w,D]}),t[12]=w,t[13]=D,t[14]=O):O=t[14];let k;return t[15]!==p||t[16]!==f||t[17]!==O?(k=(0,d.jsx)(l,{onOpenChange:p,open:f,children:O}),t[15]=p,t[16]=f,t[17]=O,t[18]=k):k=t[18],k}export{f as t}; \ 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 150570645..081c45236 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-addresses.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-addresses.js @@ -1 +1 @@ -import{t as e}from"./useSuspenseQuery.js";import{Do as t,Io as n,Q as r,fs as i,ms as a,ys as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=i(),u=o();function d(){let n=(0,l.c)(5),{data:i}=e(r),o;n[0]===i.Addresses?o=n[1]:(o=i.Addresses??[],n[0]=i.Addresses,n[1]=o);let c=o,d;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(a,{to:`/ec2/allocate-address`,children:(0,u.jsx)(t,{children:`Allocate Elastic IP`})}),title:`Elastic IPs`}),n[2]=d):d=n[2];let p;return n[3]===c?p=n[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.`})]}),n[3]=c,n[4]=p),p}function f(e){if(!e.AllocationId)return null;let t=n(e.Tags),r=e.AssociationId?`${e.PublicIp} • associated`:`${e.PublicIp} • available`;return(0,u.jsx)(c,{params:{id:e.AllocationId},subtitle:r,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{t as e}from"./useSuspenseQuery.js";import{Lo as t,Oo as n,Q as r,bs as i,hs as a,ps as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=o(),u=i();function d(){let t=(0,l.c)(5),{data:i}=e(r),o;t[0]===i.Addresses?o=t[1]:(o=i.Addresses??[],t[0]=i.Addresses,t[1]=o);let c=o,d;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(a,{to:`/ec2/allocate-address`,children:(0,u.jsx)(n,{children:`Allocate Elastic IP`})}),title:`Elastic IPs`}),t[2]=d):d=t[2];let p;return t[3]===c?p=t[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.`})]}),t[3]=c,t[4]=p),p}function f(e){if(!e.AllocationId)return null;let n=t(e.Tags),r=e.AssociationId?`${e.PublicIp} • associated`:`${e.PublicIp} • available`;return(0,u.jsx)(c,{params:{id:e.AllocationId},subtitle:r,title:n?`${e.AllocationId} (${n})`: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-images.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-images.js index fa0e0fab0..5b57141ac 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-images.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-images.js @@ -1 +1 @@ -import{t as e}from"./useSuspenseQuery.js";import{fs as t,nt as n,ys as r}from"./index.js";import{t as i}from"./page-heading.js";import{t as a}from"./list-card.js";import{t as o}from"./state-badge.js";import{t as s}from"./system-managed.js";var c=t(),l=r();function u(){let t=(0,c.c)(3),{data:r}=e(n),a;if(t[0]!==r.Images){let e=(r.Images??[]).filter(f),n;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,l.jsx)(i,{title:`Images`}),t[2]=n):n=t[2],a=(0,l.jsxs)(l.Fragment,{children:[n,e.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:e.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No images found.`})]}),t[0]=r.Images,t[1]=a}else a=t[1];return a}function d(e){return e.ImageId?(0,l.jsx)(a,{badge:(0,l.jsx)(o,{state:e.State}),params:{id:e.ImageId},subtitle:e.ImageId??``,title:e.Name??e.ImageId??``,to:`/ec2/describe-images/$id`},e.ImageId):null}function f(e){return!s(e)}export{u as component}; \ No newline at end of file +import{t as e}from"./useSuspenseQuery.js";import{bs as t,nt as n,ps as r}from"./index.js";import{t as i}from"./page-heading.js";import{t as a}from"./list-card.js";import{t as o}from"./state-badge.js";import{t as s}from"./system-managed.js";var c=r(),l=t();function u(){let t=(0,c.c)(3),{data:r}=e(n),a;if(t[0]!==r.Images){let e=(r.Images??[]).filter(f),n;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,l.jsx)(i,{title:`Images`}),t[2]=n):n=t[2],a=(0,l.jsxs)(l.Fragment,{children:[n,e.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:e.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No images found.`})]}),t[0]=r.Images,t[1]=a}else a=t[1];return a}function d(e){return e.ImageId?(0,l.jsx)(a,{badge:(0,l.jsx)(o,{state:e.State}),params:{id:e.ImageId},subtitle:e.ImageId??``,title:e.Name??e.ImageId??``,to:`/ec2/describe-images/$id`},e.ImageId):null}function f(e){return!s(e)}export{u 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 3378573ea..99c6e4097 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-instances.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-instances.js @@ -1 +1 @@ -import{t as e}from"./useSuspenseQuery.js";import{Do as t,at as n,fs as r,ms as i,ys 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=r(),u=a(),d={running:0,pending:1,stopping:2,"shutting-down":3,stopped:4,terminated:5};function f(){let r=(0,l.c)(3),{data:a}=e(n),s;if(r[0]!==a.Reservations){let e=(a.Reservations?.flatMap(h)??[]).toSorted(m),n;r[2]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,u.jsx)(o,{actions:(0,u.jsx)(i,{to:`/ec2/run-instances`,children:(0,u.jsx)(t,{children:`Run Instances`})}),title:`Instances`}),r[2]=n):n=r[2],s=(0,u.jsxs)(u.Fragment,{children:[n,e.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:e.map(p)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No instances found.`})]}),r[0]=a.Reservations,r[1]=s}else s=r[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{t as e}from"./useSuspenseQuery.js";import{Oo as t,at as n,bs as r,hs as i,ps 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=a(),u=r(),d={running:0,pending:1,stopping:2,"shutting-down":3,stopped:4,terminated:5};function f(){let r=(0,l.c)(3),{data:a}=e(n),s;if(r[0]!==a.Reservations){let e=(a.Reservations?.flatMap(h)??[]).toSorted(m),n;r[2]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,u.jsx)(o,{actions:(0,u.jsx)(i,{to:`/ec2/run-instances`,children:(0,u.jsx)(t,{children:`Run Instances`})}),title:`Instances`}),r[2]=n):n=r[2],s=(0,u.jsxs)(u.Fragment,{children:[n,e.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:e.map(p)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No instances found.`})]}),r[0]=a.Reservations,r[1]=s}else s=r[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 1fb2a51f8..ece303f2a 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{t as e}from"./useSuspenseQuery.js";import{Do as t,Io as n,fs as r,ms as i,st as a,ys as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=r(),u=o();function d(){let n=(0,l.c)(5),{data:r}=e(a),o;n[0]===r.InternetGateways?o=n[1]:(o=r.InternetGateways??[],n[0]=r.InternetGateways,n[1]=o);let c=o,d;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(i,{to:`/ec2/create-internet-gateway`,children:(0,u.jsx)(t,{children:`Create Internet Gateway`})}),title:`Internet Gateways`}),n[2]=d):d=n[2];let p;return n[3]===c?p=n[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.`})]}),n[3]=c,n[4]=p),p}function f(e){if(!e.InternetGatewayId)return null;let t=n(e.Tags),r=e.Attachments?.[0]?.VpcId;return(0,u.jsx)(c,{params:{id:e.InternetGatewayId},subtitle:r?`attached to ${r}`:`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{t as e}from"./useSuspenseQuery.js";import{Lo as t,Oo as n,bs as r,hs as i,ps as a,st as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=a(),u=r();function d(){let t=(0,l.c)(5),{data:r}=e(o),a;t[0]===r.InternetGateways?a=t[1]:(a=r.InternetGateways??[],t[0]=r.InternetGateways,t[1]=a);let c=a,d;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(i,{to:`/ec2/create-internet-gateway`,children:(0,u.jsx)(n,{children:`Create Internet Gateway`})}),title:`Internet Gateways`}),t[2]=d):d=t[2];let p;return t[3]===c?p=t[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.`})]}),t[3]=c,t[4]=p),p}function f(e){if(!e.InternetGatewayId)return null;let n=t(e.Tags),r=e.Attachments?.[0]?.VpcId;return(0,u.jsx)(c,{params:{id:e.InternetGatewayId},subtitle:r?`attached to ${r}`:`detached`,title:n?`${e.InternetGatewayId} (${n})`: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 9f0855401..9bccdfa79 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{t as e}from"./useSuspenseQuery.js";import{Do as t,fs as n,lt as r,ms as i,ys as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=n(),l=a();function u(){let n=(0,c.c)(4),{data:a}=e(r),s;if(n[0]!==a.KeyPairs){let e=(a.KeyPairs??[]).toSorted(f),r;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,l.jsx)(i,{to:`/ec2/import-key-pair`,children:(0,l.jsx)(t,{variant:`outline`,children:`Import Key Pair`})}),n[2]=r):r=n[2];let c;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(o,{actions:(0,l.jsxs)(`div`,{className:`flex gap-2`,children:[r,(0,l.jsx)(i,{to:`/ec2/create-key-pair`,children:(0,l.jsx)(t,{children:`Create Key Pair`})})]}),title:`Key Pairs`}),n[3]=c):c=n[3],s=(0,l.jsxs)(l.Fragment,{children:[c,e.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:e.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No key pairs found.`})]}),n[0]=a.KeyPairs,n[1]=s}else s=n[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{t as e}from"./useSuspenseQuery.js";import{Oo as t,bs as n,hs as r,lt as i,ps as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=a(),l=n();function u(){let n=(0,c.c)(4),{data:a}=e(i),s;if(n[0]!==a.KeyPairs){let e=(a.KeyPairs??[]).toSorted(f),i;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,l.jsx)(r,{to:`/ec2/import-key-pair`,children:(0,l.jsx)(t,{variant:`outline`,children:`Import Key Pair`})}),n[2]=i):i=n[2];let c;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(o,{actions:(0,l.jsxs)(`div`,{className:`flex gap-2`,children:[i,(0,l.jsx)(r,{to:`/ec2/create-key-pair`,children:(0,l.jsx)(t,{children:`Create Key Pair`})})]}),title:`Key Pairs`}),n[3]=c):c=n[3],s=(0,l.jsxs)(l.Fragment,{children:[c,e.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:e.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No key pairs found.`})]}),n[0]=a.KeyPairs,n[1]=s}else s=n[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 e8efa7440..ba2d6d256 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{t as e}from"./useSuspenseQuery.js";import{B as t,Do as n,No as r,fs as i,hs as a,ms as o,ys as s}from"./index.js";import{t as c}from"./page-heading.js";import{t as l}from"./state-badge.js";var u=i(),d=s();function f(){let i=(0,u.c)(10),s=a(),{data:f}=e(t),m;i[0]===f.LoadBalancers?m=i[1]:(m=f.LoadBalancers??[],i[0]=f.LoadBalancers,i[1]=m);let h=m,g;i[2]===s?g=i[3]:(g=(0,d.jsx)(c,{actions:(0,d.jsx)(n,{onClick:async()=>await s({to:`/ec2/create-load-balancer`}),children:`Create Load Balancer`}),title:`Load Balancers`}),i[2]=s,i[3]=g);let _;i[4]!==h||i[5]!==s?(_=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 t=e.LoadBalancerArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await s({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(t)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(o,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(t)},to:`/ec2/describe-load-balancers/$id`,children:e.LoadBalancerName??t})}),(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:r(e.CreatedTime)})]},t)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No load balancers found.`}),i[4]=h,i[5]=s,i[6]=_):_=i[6];let v;return i[7]!==g||i[8]!==_?(v=(0,d.jsxs)(d.Fragment,{children:[g,_]}),i[7]=g,i[8]=_,i[9]=v):v=i[9],v}function p(e){return e.stopPropagation()}var m=f;export{m as component}; \ No newline at end of file +import{t as e}from"./useSuspenseQuery.js";import{B as t,Oo as n,Po as r,bs as i,gs as a,hs as o,ps as s}from"./index.js";import{t as c}from"./page-heading.js";import{t as l}from"./state-badge.js";var u=s(),d=i();function f(){let i=(0,u.c)(10),s=a(),{data:f}=e(t),m;i[0]===f.LoadBalancers?m=i[1]:(m=f.LoadBalancers??[],i[0]=f.LoadBalancers,i[1]=m);let h=m,g;i[2]===s?g=i[3]:(g=(0,d.jsx)(c,{actions:(0,d.jsx)(n,{onClick:async()=>await s({to:`/ec2/create-load-balancer`}),children:`Create Load Balancer`}),title:`Load Balancers`}),i[2]=s,i[3]=g);let _;i[4]!==h||i[5]!==s?(_=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 t=e.LoadBalancerArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await s({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(t)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(o,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(t)},to:`/ec2/describe-load-balancers/$id`,children:e.LoadBalancerName??t})}),(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:r(e.CreatedTime)})]},t)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No load balancers found.`}),i[4]=h,i[5]=s,i[6]=_):_=i[6];let v;return i[7]!==g||i[8]!==_?(v=(0,d.jsxs)(d.Fragment,{children:[g,_]}),i[7]=g,i[8]=_,i[9]=v):v=i[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 eb337c297..32d26d3c6 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{t as e}from"./useSuspenseQuery.js";import{Do as t,Io as n,dt as r,fs as i,ms as a,ys 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=i(),d=o();function f(){let n=(0,u.c)(5),{data:i}=e(r),o;n[0]===i.NatGateways?o=n[1]:(o=i.NatGateways??[],n[0]=i.NatGateways,n[1]=o);let c=o,l;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(a,{to:`/ec2/create-nat-gateway`,children:(0,d.jsx)(t,{children:`Create NAT Gateway`})}),title:`NAT Gateways`}),n[2]=l):l=n[2];let f;return n[3]===c?f=n[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.`})]}),n[3]=c,n[4]=f),f}function p(e){if(!e.NatGatewayId)return null;let t=n(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{t as e}from"./useSuspenseQuery.js";import{Lo as t,Oo as n,bs as r,dt as i,hs as a,ps 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=o(),d=r();function f(){let t=(0,u.c)(5),{data:r}=e(i),o;t[0]===r.NatGateways?o=t[1]:(o=r.NatGateways??[],t[0]=r.NatGateways,t[1]=o);let c=o,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(a,{to:`/ec2/create-nat-gateway`,children:(0,d.jsx)(n,{children:`Create NAT Gateway`})}),title:`NAT Gateways`}),t[2]=l):l=t[2];let f;return t[3]===c?f=t[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.`})]}),t[3]=c,t[4]=f),f}function p(e){if(!e.NatGatewayId)return null;let n=t(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.NatGatewayId},subtitle:e.SubnetId??``,title:n?`${e.NatGatewayId} (${n})`: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 138165263..6df057eba 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{t as e}from"./useSuspenseQuery.js";import{Do as t,fs as n,ms as r,pt as i,ys 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=n(),u=a();function d(){let n=(0,l.c)(5),{data:a}=e(i),s;n[0]===a.PlacementGroups?s=n[1]:(s=a.PlacementGroups??[],n[0]=a.PlacementGroups,n[1]=s);let c=s,d;n[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)(t,{children:`Create Placement Group`})}),title:`Placement Groups`}),n[2]=d):d=n[2];let p;return n[3]===c?p=n[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.`})]}),n[3]=c,n[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{t as e}from"./useSuspenseQuery.js";import{Oo as t,bs as n,hs as r,ps as i,pt 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=i(),u=n();function d(){let n=(0,l.c)(5),{data:i}=e(a),s;n[0]===i.PlacementGroups?s=n[1]:(s=i.PlacementGroups??[],n[0]=i.PlacementGroups,n[1]=s);let c=s,d;n[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)(t,{children:`Create Placement Group`})}),title:`Placement Groups`}),n[2]=d):d=n[2];let p;return n[3]===c?p=n[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.`})]}),n[3]=c,n[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 ebf2b7e24..3a27e4032 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{t as e}from"./useSuspenseQuery.js";import{Do as t,Io as n,fs as r,gt as i,ms as a,ys 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=r(),d=o();function f(){let n=(0,u.c)(5),{data:r}=e(i),o;n[0]===r.RouteTables?o=n[1]:(o=r.RouteTables??[],n[0]=r.RouteTables,n[1]=o);let c=o,l;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(a,{to:`/ec2/create-route-table`,children:(0,d.jsx)(t,{children:`Create Route Table`})}),title:`Route Tables`}),n[2]=l):l=n[2];let f;return n[3]===c?f=n[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.`})]}),n[3]=c,n[4]=f),f}function p(e){if(!e.RouteTableId)return null;let t=n(e.Tags),r=e.Associations?.some(h)??!1,i=e.Associations?.filter(m).length??0;return(0,d.jsx)(c,{badge:r?(0,d.jsx)(l,{variant:`secondary`,children:`Main`}):null,params:{id:e.RouteTableId},subtitle:`${e.VpcId??``} · ${i} subnet${i===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{t as e}from"./useSuspenseQuery.js";import{Lo as t,Oo as n,bs as r,gt as i,hs as a,ps 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=o(),d=r();function f(){let t=(0,u.c)(5),{data:r}=e(i),o;t[0]===r.RouteTables?o=t[1]:(o=r.RouteTables??[],t[0]=r.RouteTables,t[1]=o);let c=o,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(a,{to:`/ec2/create-route-table`,children:(0,d.jsx)(n,{children:`Create Route Table`})}),title:`Route Tables`}),t[2]=l):l=t[2];let f;return t[3]===c?f=t[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.`})]}),t[3]=c,t[4]=f),f}function p(e){if(!e.RouteTableId)return null;let n=t(e.Tags),r=e.Associations?.some(h)??!1,i=e.Associations?.filter(m).length??0;return(0,d.jsx)(c,{badge:r?(0,d.jsx)(l,{variant:`secondary`,children:`Main`}):null,params:{id:e.RouteTableId},subtitle:`${e.VpcId??``} · ${i} subnet${i===1?``:`s`}`,title:n?`${e.RouteTableId} (${n})`: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 03f0f4d05..786f1f633 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{t as e}from"./useSuspenseQuery.js";import{Do as t,fs as n,ms as r,vt as i,ys as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=n(),l=a();function u(){let n=(0,c.c)(5),{data:a}=e(i),s;n[0]===a.SecurityGroups?s=n[1]:(s=a.SecurityGroups??[],n[0]=a.SecurityGroups,n[1]=s);let u=s,f;n[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)(t,{children:`Create Security Group`})}),title:`Security Groups`}),n[2]=f):f=n[2];let p;return n[3]===u?p=n[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.`})]}),n[3]=u,n[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{t as e}from"./useSuspenseQuery.js";import{Oo as t,bs as n,hs as r,ps as i,vt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=i(),l=n();function u(){let n=(0,c.c)(5),{data:i}=e(a),s;n[0]===i.SecurityGroups?s=n[1]:(s=i.SecurityGroups??[],n[0]=i.SecurityGroups,n[1]=s);let u=s,f;n[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)(t,{children:`Create Security Group`})}),title:`Security Groups`}),n[2]=f):f=n[2];let p;return n[3]===u?p=n[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.`})]}),n[3]=u,n[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 1594da1f0..9d4645b9b 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-snapshots.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-snapshots.js @@ -1 +1 @@ -import{t as e}from"./useSuspenseQuery.js";import{Do as t,bt as n,fs as r,ms as i,ys 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=r(),u=a();function d(){let r=(0,l.c)(5),{data:a}=e(n),s;r[0]===a.Snapshots?s=r[1]:(s=a.Snapshots??[],r[0]=a.Snapshots,r[1]=s);let c=s,d;r[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(i,{to:`/ec2/create-snapshot`,children:(0,u.jsx)(t,{children:`Create Snapshot`})}),title:`Snapshots`}),r[2]=d):d=r[2];let p;return r[3]===c?p=r[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.`})]}),r[3]=c,r[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{t as e}from"./useSuspenseQuery.js";import{Oo as t,bs as n,bt as r,hs as i,ps 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=a(),u=n();function d(){let n=(0,l.c)(5),{data:a}=e(r),s;n[0]===a.Snapshots?s=n[1]:(s=a.Snapshots??[],n[0]=a.Snapshots,n[1]=s);let c=s,d;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(i,{to:`/ec2/create-snapshot`,children:(0,u.jsx)(t,{children:`Create Snapshot`})}),title:`Snapshots`}),n[2]=d):d=n[2];let p;return n[3]===c?p=n[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.`})]}),n[3]=c,n[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 fb06ae0b7..14d6e6a68 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js @@ -1 +1 @@ -import{t as e}from"./useSuspenseQuery.js";import{Do as t,Io as n,St as r,fs as i,ms as a,ys 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=i(),d=o();function f(){let n=(0,u.c)(5),{data:i}=e(r),o;n[0]===i.Subnets?o=n[1]:(o=i.Subnets??[],n[0]=i.Subnets,n[1]=o);let c=o,l;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(a,{to:`/ec2/create-subnet`,children:(0,d.jsx)(t,{children:`Create Subnet`})}),title:`Subnets`}),n[2]=l):l=n[2];let f;return n[3]===c?f=n[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.`})]}),n[3]=c,n[4]=f),f}function p(e){if(!e.SubnetId)return null;let t=n(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{t as e}from"./useSuspenseQuery.js";import{Lo as t,Oo as n,St as r,bs as i,hs as a,ps 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=o(),d=i();function f(){let t=(0,u.c)(5),{data:i}=e(r),o;t[0]===i.Subnets?o=t[1]:(o=i.Subnets??[],t[0]=i.Subnets,t[1]=o);let c=o,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(a,{to:`/ec2/create-subnet`,children:(0,d.jsx)(n,{children:`Create Subnet`})}),title:`Subnets`}),t[2]=l):l=t[2];let f;return t[3]===c?f=t[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.`})]}),t[3]=c,t[4]=f),f}function p(e){if(!e.SubnetId)return null;let n=t(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:n?`${e.SubnetId} (${n})`: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 a676caee7..3222e29b5 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{t as e}from"./useQuery.js";import{t}from"./useSuspenseQuery.js";import{Do as n,G as r,K as i,fs as a,hs as o,ms as s,ys as c}from"./index.js";import{t as l}from"./page-heading.js";var u=a(),d=c();function f(){let e=(0,u.c)(6),i=o(),{data:a}=t(r),c;e[0]===a.TargetGroups?c=e[1]:(c=a.TargetGroups??[],e[0]=a.TargetGroups,e[1]=c);let f=c,h;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,d.jsx)(l,{actions:(0,d.jsx)(s,{to:`/ec2/create-target-group`,children:(0,d.jsx)(n,{children:`Create Target Group`})}),title:`Target Groups`}),e[2]=h):h=e[2];let g;return e[3]!==i||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 t=e.TargetGroupArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await i({to:`/ec2/describe-target-groups/$id`,params:{id:encodeURIComponent(t)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(s,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(t)},to:`/ec2/describe-target-groups/$id`,children:e.TargetGroupName??t})}),(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:t})]},t)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No target groups found.`})]}),e[3]=i,e[4]=f,e[5]=g):g=e[5],g}function p(e){return e.stopPropagation()}function m(t){let n=(0,u.c)(13),{arn:r}=t,a;n[0]===r?a=n[1]:(a=i(r),n[0]=r,n[1]=a);let{data:o,isLoading:s}=e(a);if(s){let e;return n[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:`…`})]}),n[2]=e):e=n[2],e}let c,l;if(n[3]!==o?.TargetHealthDescriptions){c=o?.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(`, `)||`—`,n[3]=o?.TargetHealthDescriptions,n[4]=c,n[5]=l}else c=n[4],l=n[5];let f=l,p;n[6]===c.length?p=n[7]:(p=(0,d.jsx)(`td`,{className:`px-4 py-2`,children:c.length}),n[6]=c.length,n[7]=p);let m;n[8]===f?m=n[9]:(m=(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:f}),n[8]=f,n[9]=m);let g;return n[10]!==p||n[11]!==m?(g=(0,d.jsxs)(d.Fragment,{children:[p,m]}),n[10]=p,n[11]=m,n[12]=g):g=n[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{t as e}from"./useQuery.js";import{t}from"./useSuspenseQuery.js";import{G as n,K as r,Oo as i,bs as a,gs as o,hs as s,ps as c}from"./index.js";import{t as l}from"./page-heading.js";var u=c(),d=a();function f(){let e=(0,u.c)(6),r=o(),{data:a}=t(n),c;e[0]===a.TargetGroups?c=e[1]:(c=a.TargetGroups??[],e[0]=a.TargetGroups,e[1]=c);let f=c,h;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,d.jsx)(l,{actions:(0,d.jsx)(s,{to:`/ec2/create-target-group`,children:(0,d.jsx)(i,{children:`Create Target Group`})}),title:`Target Groups`}),e[2]=h):h=e[2];let g;return e[3]!==r||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 t=e.TargetGroupArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await r({to:`/ec2/describe-target-groups/$id`,params:{id:encodeURIComponent(t)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(s,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(t)},to:`/ec2/describe-target-groups/$id`,children:e.TargetGroupName??t})}),(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:t})]},t)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No target groups found.`})]}),e[3]=r,e[4]=f,e[5]=g):g=e[5],g}function p(e){return e.stopPropagation()}function m(t){let n=(0,u.c)(13),{arn:i}=t,a;n[0]===i?a=n[1]:(a=r(i),n[0]=i,n[1]=a);let{data:o,isLoading:s}=e(a);if(s){let e;return n[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:`…`})]}),n[2]=e):e=n[2],e}let c,l;if(n[3]!==o?.TargetHealthDescriptions){c=o?.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(`, `)||`—`,n[3]=o?.TargetHealthDescriptions,n[4]=c,n[5]=l}else c=n[4],l=n[5];let f=l,p;n[6]===c.length?p=n[7]:(p=(0,d.jsx)(`td`,{className:`px-4 py-2`,children:c.length}),n[6]=c.length,n[7]=p);let m;n[8]===f?m=n[9]:(m=(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:f}),n[8]=f,n[9]=m);let g;return n[10]!==p||n[11]!==m?(g=(0,d.jsxs)(d.Fragment,{children:[p,m]}),n[10]=p,n[11]=m,n[12]=g):g=n[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 dad3618e4..88e99aaac 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-volumes.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-volumes.js @@ -1 +1 @@ -import{t as e}from"./useSuspenseQuery.js";import{Do as t,fs as n,ms as r,wt as i,ys 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=n(),u=a();function d(){let n=(0,l.c)(5),{data:a}=e(i),s;n[0]===a.Volumes?s=n[1]:(s=a.Volumes??[],n[0]=a.Volumes,n[1]=s);let c=s,d;n[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)(t,{children:`Create Volume`})}),title:`Volumes`}),n[2]=d):d=n[2];let p;return n[3]===c?p=n[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.`})]}),n[3]=c,n[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{t as e}from"./useSuspenseQuery.js";import{Oo as t,bs as n,hs as r,ps as i,wt 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=i(),u=n();function d(){let n=(0,l.c)(5),{data:i}=e(a),s;n[0]===i.Volumes?s=n[1]:(s=i.Volumes??[],n[0]=i.Volumes,n[1]=s);let c=s,d;n[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)(t,{children:`Create Volume`})}),title:`Volumes`}),n[2]=d):d=n[2];let p;return n[3]===c?p=n[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.`})]}),n[3]=c,n[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 3bf3d6938..6b52b3bd0 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js @@ -1 +1 @@ -import{t as e}from"./useSuspenseQuery.js";import{Do as t,Et as n,Io as r,fs as i,ms as a,ys 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=i(),d=o();function f(){let r=(0,u.c)(5),{data:i}=e(n),o;r[0]===i.Vpcs?o=r[1]:(o=i.Vpcs??[],r[0]=i.Vpcs,r[1]=o);let c=o,l;r[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(a,{to:`/ec2/create-vpc`,children:(0,d.jsx)(t,{children:`Create VPC`})}),title:`VPCs`}),r[2]=l):l=r[2];let f;return r[3]===c?f=r[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.`})]}),r[3]=c,r[4]=f),f}function p(e){if(!e.VpcId)return null;let t=r(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{t as e}from"./useSuspenseQuery.js";import{Et as t,Lo as n,Oo as r,bs as i,hs as a,ps 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=o(),d=i();function f(){let n=(0,u.c)(5),{data:i}=e(t),o;n[0]===i.Vpcs?o=n[1]:(o=i.Vpcs??[],n[0]=i.Vpcs,n[1]=o);let c=o,l;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(a,{to:`/ec2/create-vpc`,children:(0,d.jsx)(r,{children:`Create VPC`})}),title:`VPCs`}),n[2]=l):l=n[2];let f;return n[3]===c?f=n[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.`})]}),n[3]=c,n[4]=f),f}function p(e){if(!e.VpcId)return null;let t=n(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/detail-row.js b/spinifex/services/spinifexui/frontend/dist/assets/detail-row.js index 9f8bbb7ad..91effa562 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/detail-row.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/detail-row.js @@ -1 +1 @@ -import{fs as e,ys as t}from"./index.js";var n=e(),r=t();function i(e){let t=(0,n.c)(2),{children:i}=e,a;return t[0]===i?a=t[1]:(a=(0,r.jsx)(`div`,{className:`rounded-lg border bg-card`,children:i}),t[0]=i,t[1]=a),a}function a(e){let t=(0,n.c)(2),{children:i}=e,a;return t[0]===i?a=t[1]:(a=(0,r.jsx)(`div`,{className:`border-b p-4`,children:(0,r.jsx)(`h2`,{className:`font-semibold`,children:i})}),t[0]=i,t[1]=a),a}function o(e){let t=(0,n.c)(2),{children:i}=e,a;return t[0]===i?a=t[1]:(a=(0,r.jsx)(`div`,{className:`grid gap-4 p-4 sm:grid-cols-2`,children:i}),t[0]=i,t[1]=a),a}var s=Object.assign(i,{Header:a,Content:o});function c(e){let t=(0,n.c)(9),{label:i,value:a}=e,o;t[0]===i?o=t[1]:(o=(0,r.jsx)(`dt`,{className:`text-sm text-muted-foreground`,children:i}),t[0]=i,t[1]=o);let s;t[2]===a?s=t[3]:(s=a||(0,r.jsx)(`span`,{className:`text-muted-foreground`,children:`—`}),t[2]=a,t[3]=s);let c;t[4]===s?c=t[5]:(c=(0,r.jsx)(`dd`,{className:`mt-1 font-mono text-sm`,children:s}),t[4]=s,t[5]=c);let l;return t[6]!==o||t[7]!==c?(l=(0,r.jsxs)(`div`,{children:[o,c]}),t[6]=o,t[7]=c,t[8]=l):l=t[8],l}export{s as n,c as t}; \ No newline at end of file +import{bs as e,ps as t}from"./index.js";var n=t(),r=e();function i(e){let t=(0,n.c)(2),{children:i}=e,a;return t[0]===i?a=t[1]:(a=(0,r.jsx)(`div`,{className:`rounded-lg border bg-card`,children:i}),t[0]=i,t[1]=a),a}function a(e){let t=(0,n.c)(2),{children:i}=e,a;return t[0]===i?a=t[1]:(a=(0,r.jsx)(`div`,{className:`border-b p-4`,children:(0,r.jsx)(`h2`,{className:`font-semibold`,children:i})}),t[0]=i,t[1]=a),a}function o(e){let t=(0,n.c)(2),{children:i}=e,a;return t[0]===i?a=t[1]:(a=(0,r.jsx)(`div`,{className:`grid gap-4 p-4 sm:grid-cols-2`,children:i}),t[0]=i,t[1]=a),a}var s=Object.assign(i,{Header:a,Content:o});function c(e){let t=(0,n.c)(9),{label:i,value:a}=e,o;t[0]===i?o=t[1]:(o=(0,r.jsx)(`dt`,{className:`text-sm text-muted-foreground`,children:i}),t[0]=i,t[1]=o);let s;t[2]===a?s=t[3]:(s=a||(0,r.jsx)(`span`,{className:`text-muted-foreground`,children:`—`}),t[2]=a,t[3]=s);let c;t[4]===s?c=t[5]:(c=(0,r.jsx)(`dd`,{className:`mt-1 font-mono text-sm`,children:s}),t[4]=s,t[5]=c);let l;return t[6]!==o||t[7]!==c?(l=(0,r.jsxs)(`div`,{children:[o,c]}),t[6]=o,t[7]=c,t[8]=l):l=t[8],l}export{s as n,c as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/download.js b/spinifex/services/spinifexui/frontend/dist/assets/download.js index 0f2c9b99c..7c0b6b80e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/download.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/download.js @@ -1 +1 @@ -import{ts as e}from"./index.js";var t=e(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]);export{t}; \ No newline at end of file +import{ns as e}from"./index.js";var t=e(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]);export{t}; \ 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 dfbf2415b..0d256505f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ec2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ec2.js @@ -1 +1 @@ -import{n as e}from"./error-banner.js";import{$n as t,At as n,Bn as r,Cr as i,Dr as a,Er as o,Fn as s,Gn as c,Hn as l,In as u,Jn as d,Kn as f,Ln as p,Lr as m,Mr as h,Nn as g,Nr as _,Or as ee,Pn as te,Pr as ne,Qn as re,Rn as ie,Rr as ae,Sr as oe,Tr as se,Un as ce,Vn as le,Wn as ue,Xn as de,Yn as fe,Yr as pe,Zn as me,_r as he,ar as ge,br as _e,cr as ve,dr as ye,er as be,fr as xe,fs as Se,gr as Ce,hr as v,ir as y,jr as b,kr as x,lr as S,lt as C,mr as w,nr as T,or as E,pr as D,qn as O,rr as k,sr as A,ti as j,tr as we,ur as Te,vr as Ee,vs as M,wr as De,xr as Oe,yr as ke,zn as Ae}from"./index.js";var N=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AllocateAddress`,{}).n(`EC2Client`,`AllocateAddressCommand`).sc(g).build(){},je=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateAddress`,{}).n(`EC2Client`,`AssociateAddressCommand`).sc(te).build(){},Me=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateIamInstanceProfile`,{}).n(`EC2Client`,`AssociateIamInstanceProfileCommand`).sc(s).build(){},P=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateRouteTable`,{}).n(`EC2Client`,`AssociateRouteTableCommand`).sc(u).build(){},F=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachInternetGateway`,{}).n(`EC2Client`,`AttachInternetGatewayCommand`).sc(p).build(){},Ne=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachVolume`,{}).n(`EC2Client`,`AttachVolumeCommand`).sc(ie).build(){},Pe=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupEgress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupEgressCommand`).sc(Ae).build(){},I=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupIngress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupIngressCommand`).sc(r).build(){};function Fe(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?ae(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 Ie=`2016-11-15`;function Le(e){return(t,n)=>async n=>{let{input:r}=n;if(!r.PresignedUrl){let t=await e.region(),i=await _(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():ne(i),o=new j({...a,protocol:`https`,headers:{host:a.hostname},query:{...Object.entries(r).reduce((e,[t,n])=>(e[t]=String(n??``),e),{}),Action:`CopySnapshot`,Version:Ie,DestinationRegion:t}}),s=await new pe({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:Fe(s)}},j.isInstance(n.request)){let{request:e}=n;(e.body??``).includes(`DestinationRegion=`)||(e.body+=`&DestinationRegion=${t}`),(e.body??``).includes(`PresignedUrl=`)||(e.body+=`&PresignedUrl=${m(n.input.PresignedUrl)}`)}}return t(n)}}var Re={step:`serialize`,tags:[`CROSS_REGION_PRESIGNED_URL`],name:`crossRegionPresignedUrlMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`},ze=e=>({applyToStack:t=>{t.add(Le(e),Re)}}),Be=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions()),ze(n)]}).s(`AmazonEC2`,`CopySnapshot`,{}).n(`EC2Client`,`CopySnapshotCommand`).sc(le).build(){},Ve=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateImage`,{}).n(`EC2Client`,`CreateImageCommand`).sc(l).build(){},L=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateInternetGateway`,{}).n(`EC2Client`,`CreateInternetGatewayCommand`).sc(ce).build(){},He=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateKeyPair`,{}).n(`EC2Client`,`CreateKeyPairCommand`).sc(ue).build(){},R=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateNatGateway`,{}).n(`EC2Client`,`CreateNatGatewayCommand`).sc(c).build(){},Ue=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreatePlacementGroup`,{}).n(`EC2Client`,`CreatePlacementGroupCommand`).sc(f).build(){},z=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRoute`,{}).n(`EC2Client`,`CreateRouteCommand`).sc(O).build(){},B=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRouteTable`,{}).n(`EC2Client`,`CreateRouteTableCommand`).sc(d).build(){},V=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSecurityGroup`,{}).n(`EC2Client`,`CreateSecurityGroupCommand`).sc(fe).build(){},We=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSnapshot`,{}).n(`EC2Client`,`CreateSnapshotCommand`).sc(de).build(){},H=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSubnet`,{}).n(`EC2Client`,`CreateSubnetCommand`).sc(me).build(){},Ge=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVolume`,{}).n(`EC2Client`,`CreateVolumeCommand`).sc(re).build(){},U=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVpc`,{}).n(`EC2Client`,`CreateVpcCommand`).sc(t).build(){},Ke=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteInternetGateway`,{}).n(`EC2Client`,`DeleteInternetGatewayCommand`).sc(be).build(){},qe=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteKeyPair`,{}).n(`EC2Client`,`DeleteKeyPairCommand`).sc(we).build(){},Je=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteNatGateway`,{}).n(`EC2Client`,`DeleteNatGatewayCommand`).sc(T).build(){},Ye=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeletePlacementGroup`,{}).n(`EC2Client`,`DeletePlacementGroupCommand`).sc(k).build(){},Xe=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteRoute`,{}).n(`EC2Client`,`DeleteRouteCommand`).sc(y).build(){},Ze=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteRouteTable`,{}).n(`EC2Client`,`DeleteRouteTableCommand`).sc(ge).build(){},Qe=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSecurityGroup`,{}).n(`EC2Client`,`DeleteSecurityGroupCommand`).sc(E).build(){},$e=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSnapshot`,{}).n(`EC2Client`,`DeleteSnapshotCommand`).sc(A).build(){},et=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSubnet`,{}).n(`EC2Client`,`DeleteSubnetCommand`).sc(ve).build(){},tt=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVolume`,{}).n(`EC2Client`,`DeleteVolumeCommand`).sc(S).build(){},nt=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVpc`,{}).n(`EC2Client`,`DeleteVpcCommand`).sc(Te).build(){},rt=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachInternetGateway`,{}).n(`EC2Client`,`DetachInternetGatewayCommand`).sc(ye).build(){},it=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachVolume`,{}).n(`EC2Client`,`DetachVolumeCommand`).sc(xe).build(){},at=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateAddress`,{}).n(`EC2Client`,`DisassociateAddressCommand`).sc(D).build(){},ot=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateIamInstanceProfile`,{}).n(`EC2Client`,`DisassociateIamInstanceProfileCommand`).sc(w).build(){},st=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateRouteTable`,{}).n(`EC2Client`,`DisassociateRouteTableCommand`).sc(v).build(){},ct=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`GetConsoleOutput`,{}).n(`EC2Client`,`GetConsoleOutputCommand`).sc(Ce).build(){},lt=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ImportKeyPair`,{}).n(`EC2Client`,`ImportKeyPairCommand`).sc(he).build(){},ut=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyInstanceAttribute`,{}).n(`EC2Client`,`ModifyInstanceAttributeCommand`).sc(Ee).build(){},W=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifySubnetAttribute`,{}).n(`EC2Client`,`ModifySubnetAttributeCommand`).sc(ke).build(){},dt=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyVolume`,{}).n(`EC2Client`,`ModifyVolumeCommand`).sc(_e).build(){},ft=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RebootInstances`,{}).n(`EC2Client`,`RebootInstancesCommand`).sc(Oe).build(){},pt=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ReleaseAddress`,{}).n(`EC2Client`,`ReleaseAddressCommand`).sc(oe).build(){},mt=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupEgress`,{}).n(`EC2Client`,`RevokeSecurityGroupEgressCommand`).sc(i).build(){},ht=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupIngress`,{}).n(`EC2Client`,`RevokeSecurityGroupIngressCommand`).sc(De).build(){},gt=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RunInstances`,{}).n(`EC2Client`,`RunInstancesCommand`).sc(se).build(){},_t=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StartInstances`,{}).n(`EC2Client`,`StartInstancesCommand`).sc(o).build(){},vt=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StopInstances`,{}).n(`EC2Client`,`StopInstancesCommand`).sc(a).build(){},yt=class extends b.classBuilder().ep(x).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`TerminateInstances`,{}).n(`EC2Client`,`TerminateInstancesCommand`).sc(ee).build(){},G={capacity_block:`capacity-block`,capacity_manager_data_export:`capacity-manager-data-export`,capacity_reservation:`capacity-reservation`,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_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`},K=Se();function q(e){let t=e.split(`/`),n=t[0]??``,r=t[1]??`0`,i=Number.parseInt(r,10),a=n.split(`.`).map(e=>Number.parseInt(e,10)),o=a[0]??0,s=a[1]??0,c=a[2]??0,l=a[3]??0;return{network:((o<<24|s<<16|c<<8|l)>>>0&(i===0?0:4294967295<<32-i>>>0))>>>0,prefix:i}}function J(e){return`${e>>>24&255}.${e>>>16&255}.${e>>>8&255}.${e&255}`}function Y(e){return 2**(32-e)}function bt(e){let t=e+4;return Math.min(t,28)}function X(e,t,n){let{network:r,prefix:i}=q(e),a=bt(i),o=Y(a),s=Y(i)/2,c=[];for(let e=0;e>>0;c.push({cidr:`${J(t)}/${a}`,label:`Public Subnet ${e+1}`})}let l=[];for(let e=0;e>>0;l.push({cidr:`${J(t)}/${a}`,label:`Private Subnet ${e+1}`})}return{publicSubnets:c,privateSubnets:l}}function xt(e,t){let n=q(e),r=q(t),i=n.network+Y(n.prefix)-1>>>0,a=r.network+Y(r.prefix)-1>>>0;return n.network<=a&&r.network<=i}function St(e,t){let n=q(e),r=q(t),i=n.network+Y(n.prefix)-1>>>0,a=r.network+Y(r.prefix)-1>>>0;return r.network>=n.network&&a<=i}function Ct(e,t=16,n=28){let r=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\/(\d{1,2})$/.exec(e);if(!r||[Number.parseInt(r[1]??`0`,10),Number.parseInt(r[2]??`0`,10),Number.parseInt(r[3]??`0`,10),Number.parseInt(r[4]??`0`,10)].some(e=>e>255))return!1;let i=Number.parseInt(r[5]??`0`,10);return i>=t&&i<=n}var wt=/\s+/;function Tt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Et,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function Et(e){let t=new _t({InstanceIds:[e]});return await n().send(t)}function Dt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Ot,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function Ot(e){let t=new vt({InstanceIds:[e]});return await n().send(t)}function kt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:At,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function At(e){let t=new yt({InstanceIds:[e]});return await n().send(t)}function jt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Mt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function Mt(e){let t=new ft({InstanceIds:[e]});return await n().send(t)}function Nt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Pt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},t[0]=n,t[1]=r),e(r)}async function Pt(e){let t=n(),r=await Ft(t,e),i=new gt({ImageId:e.imageId,InstanceType:e.instanceType,KeyName:e.keyName,MinCount:e.count,MaxCount:e.count,SubnetId:e.subnetId||void 0,SecurityGroupIds:r.length>0?r:void 0,Placement:e.placementGroupName?{GroupName:e.placementGroupName}:void 0,BlockDeviceMappings:It(e)});return await t.send(i)}async function Ft(e,t){if(t.securityGroupMode!==`create`)return t.securityGroupIds??[];let n=(await e.send(new V({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 I({GroupId:n,IpPermissions:r.map(e=>({IpProtocol:`tcp`,FromPort:e,ToPort:e,IpRanges:[{CidrIp:i}]}))}))}return[n]}function It(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 Lt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Rt,onSuccess:()=>{n.invalidateQueries(C)}},t[0]=n,t[1]=r),e(r)}async function Rt(e){let t=new He({KeyName:e.keyName,KeyType:`rsa`}),r=await n().send(t);if(!r.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 r}function zt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Bt,onSuccess:()=>{n.invalidateQueries(C)}},t[0]=n,t[1]=r),e(r)}async function Bt(e){let t=e.publicKeyMaterial.trim().split(wt).slice(0,2).join(` `),r=new lt({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return await n().send(r)}function Vt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Ht,onSuccess:()=>{n.invalidateQueries(C)}},t[0]=n,t[1]=r),e(r)}async function Ht(e){let t=new qe({KeyPairId:e});return await n().send(t)}function Ut(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Wt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},t[0]=n,t[1]=r),e(r)}async function Wt(e){let t=new Ge({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:`gp3`});return await n().send(t)}function Gt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Kt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},t[0]=n,t[1]=r),e(r)}async function Kt(e){let t=new dt({VolumeId:e.volumeId,Size:e.size});return await n().send(t)}function qt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Jt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},t[0]=n,t[1]=r),e(r)}async function Jt(e){let t=new tt({VolumeId:e});return await n().send(t)}function Yt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Xt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},t[0]=n,t[1]=r),e(r)}async function Xt(e){let t=new We({VolumeId:e.volumeId,Description:e.description||void 0});return await n().send(t)}function Zt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Qt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},t[0]=n,t[1]=r),e(r)}async function Qt(e){let t=new $e({SnapshotId:e});return await n().send(t)}function $t(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:en,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},t[0]=n,t[1]=r),e(r)}async function en(e){let t=new Be({SourceSnapshotId:e.sourceSnapshotId,SourceRegion:e.sourceRegion,Description:e.description||void 0});return await n().send(t)}function tn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:nn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function nn(e){let t=new Ne({VolumeId:e.volumeId,InstanceId:e.instanceId,Device:e.device||void 0});return await n().send(t)}function rn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:an,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function an(e){let t=new it({VolumeId:e.volumeId,InstanceId:e.instanceId||void 0,Force:e.force});return await n().send(t)}function on(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:sn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function sn(e){let{instanceId:t,...r}=e,i=new ut({InstanceId:t,InstanceType:{Value:r.instanceType}});return await n().send(i)}function cn(){let t=(0,K.c)(1),n;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={mutationFn:ln},t[0]=n):n=t[0],e(n)}async function ln(e){let t=new ct({InstanceId:e});return await n().send(t)}function un(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:dn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`images`]})}},t[0]=n,t[1]=r),e(r)}async function dn(e){let t=new Ve({InstanceId:e.instanceId,Name:e.name,Description:e.description||void 0});return await n().send(t)}function fn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:pn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},t[0]=n,t[1]=r),e(r)}async function pn(e){let t=new U({CidrBlock:e.cidrBlock,TagSpecifications:e.name?[{ResourceType:`vpc`,Tags:[{Key:`Name`,Value:e.name}]}]:void 0});return await n().send(t)}function mn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:hn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},t[0]=n,t[1]=r),e(r)}async function hn(e){let t=new nt({VpcId:e});return await n().send(t)}function gn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:_n,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},t[0]=n,t[1]=r),e(r)}async function _n(e){let t=n(),r=await t.send(new H({VpcId:e.vpcId,CidrBlock:e.cidrBlock,AvailabilityZone:e.availabilityZone||void 0})),i=r.Subnet?.SubnetId;return e.mapPublicIpOnLaunch&&i&&await t.send(new W({SubnetId:i,MapPublicIpOnLaunch:{Value:!0}})),r}function vn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:yn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},t[0]=n,t[1]=r),e(r)}async function yn(e){let t=new et({SubnetId:e});return await n().send(t)}function bn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:xn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},t[0]=n,t[1]=r),e(r)}async function xn(e){let t=new Ue({GroupName:e.groupName,Strategy:e.strategy});return await n().send(t)}function Sn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Cn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},t[0]=n,t[1]=r),e(r)}async function Cn(e){let t=new Ye({GroupName:e});return await n().send(t)}function wn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Tn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},t[0]=n,t[1]=r),e(r)}async function Tn(e){let t=new V({GroupName:e.groupName,Description:e.description,VpcId:e.vpcId});return await n().send(t)}function En(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Dn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},t[0]=n,t[1]=r),e(r)}async function Dn(e){let t=new Qe({GroupId:e});return await n().send(t)}function On(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:kn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},t[0]=n,t[1]=r),e(r)}async function kn(e){let t=new I({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await n().send(t)}function An(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:jn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},t[0]=n,t[1]=r),e(r)}async function jn(e){let t=new Pe({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await n().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 Mn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Nn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},t[0]=n,t[1]=r),e(r)}async function Nn(e){let t=new ht({GroupId:e.groupId,IpPermissions:[Z(e)]});return await n().send(t)}function Pn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Fn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},t[0]=n,t[1]=r),e(r)}async function Fn(e){let t=new mt({GroupId:e.groupId,IpPermissions:[Z(e)]});return await n().send(t)}function In(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Ln,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},t[0]=n,t[1]=r),e(r)}async function Ln(e){let t=new L({TagSpecifications:$(G.internet_gateway,e?.name,[])});return await n().send(t)}function Rn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:zn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},t[0]=n,t[1]=r),e(r)}async function zn(e){let t=new Ke({InternetGatewayId:e});return await n().send(t)}function Bn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Vn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},t[0]=n,t[1]=r),e(r)}async function Vn(e){let t=new F({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await n().send(t)}function Hn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Un,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},t[0]=n,t[1]=r),e(r)}async function Un(e){let t=new rt({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await n().send(t)}function Wn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Gn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},t[0]=n,t[1]=r),e(r)}async function Gn(e){let t=new N({Domain:`vpc`,TagSpecifications:$(G.elastic_ip,e?.name,[])});return await n().send(t)}function Kn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:qn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},t[0]=n,t[1]=r),e(r)}async function qn(e){let t=new pt({AllocationId:e});return await n().send(t)}function Jn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Yn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function Yn(e){let t=new je({AllocationId:e.allocationId,InstanceId:e.instanceId,NetworkInterfaceId:e.networkInterfaceId});return await n().send(t)}function Xn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Zn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function Zn(e){let t=new at({AssociationId:e});return await n().send(t)}function Qn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:$n,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function $n(e){let t=new Me({InstanceId:e.instanceId,IamInstanceProfile:{Name:e.instanceProfileName}});return await n().send(t)}function er(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:tr,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function tr(e){let t=new ot({AssociationId:e.associationId});return await n().send(t)}function Q(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:nr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},t[0]=n,t[1]=r),e(r)}async function nr(e){let t=new R({SubnetId:e.subnetId,AllocationId:e.allocationId,TagSpecifications:$(G.natgateway,e.name,[])});return await n().send(t)}function rr(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:ir,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]})}},t[0]=n,t[1]=r),e(r)}async function ir(e){let t=new Je({NatGatewayId:e});return await n().send(t)}function ar(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:or,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},t[0]=n,t[1]=r),e(r)}async function or(e){let t=new B({VpcId:e.vpcId,TagSpecifications:$(G.route_table,e.name,[])});return await n().send(t)}function sr(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:cr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},t[0]=n,t[1]=r),e(r)}async function cr(e){let t=new Ze({RouteTableId:e});return await n().send(t)}function lr(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:ur,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},t[0]=n,t[1]=r),e(r)}async function ur(e){let t=new z({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock,GatewayId:e.gatewayId,NatGatewayId:e.natGatewayId});return await n().send(t)}function dr(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:fr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},t[0]=n,t[1]=r),e(r)}async function fr(e){let t=new Xe({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock});return await n().send(t)}function pr(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:mr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},t[0]=n,t[1]=r),e(r)}async function mr(e){let t=new P({RouteTableId:e.routeTableId,SubnetId:e.subnetId});return await n().send(t)}function hr(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:gr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},t[0]=n,t[1]=r),e(r)}async function gr(e){let t=new st({AssociationId:e});return await n().send(t)}function _r(e,t){let n=[];return e&&n.push({Key:`Name`,Value:e}),n.push(...t),n}function $(e,t,n){let r=_r(t,n);if(r.length!==0)return[{ResourceType:e,Tags:r}]}function vr(){let t=M();return e({mutationFn:async e=>{let t=n(),r=[],i=e.autoGenerateNames?e.namePrefix:void 0,a=e.tags.map(e=>({Key:e.key,Value:e.value})),o=`creating VPC`;try{let n=i?`${i}-vpc`:e.namePrefix,s=e.tenancy,c=(await t.send(new U({CidrBlock:e.cidrBlock,InstanceTenancy:s,TagSpecifications:$(G.vpc,n,a)}))).Vpc?.VpcId;if(!c)throw Error(`VPC was created but no VPC ID was returned by the API`);if(r.push({type:`VPC`,id:c}),e.mode===`vpc-only`)return{vpcId:c,created:r};let l=X(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);o=`creating public subnets`;let f=[];for(let n=0;n0){o=`creating internet gateway`;let e=i?`${i}-igw`:void 0,n=(await t.send(new L({TagSpecifications:$(G.internet_gateway,e,a)}))).InternetGateway?.InternetGatewayId;if(!n)throw Error(`Internet gateway was created but no ID was returned`);r.push({type:`Internet Gateway`,id:n}),o=`attaching internet gateway to VPC`,await t.send(new F({InternetGatewayId:n,VpcId:c})),o=`creating public route table`;let s=i?`${i}-rtb-public`:void 0,l=(await t.send(new B({VpcId:c,TagSpecifications:$(G.route_table,s,a)}))).RouteTable?.RouteTableId;if(!l)throw Error(`Public route table was created but no ID was returned`);r.push({type:`Public Route Table`,id:l}),o=`creating default route to internet gateway`,await t.send(new z({RouteTableId:l,DestinationCidrBlock:`0.0.0.0/0`,GatewayId:n})),o=`associating public subnets with route table`;for(let e of f)await t.send(new P({RouteTableId:l,SubnetId:e}))}if(e.privateSubnetCount>0){o=`creating private route table`;let n=i?`${i}-rtb-private`:void 0,s=(await t.send(new B({VpcId:c,TagSpecifications:$(G.route_table,n,a)}))).RouteTable?.RouteTableId;if(!s)throw Error(`Private route table was created but no ID was returned`);r.push({type:`Private Route Table`,id:s}),o=`associating private subnets with route table`;for(let e of p)await t.send(new P({RouteTableId:s,SubnetId:e}));if(e.natGateway===`single`&&f[0]){o=`allocating Elastic IP for NAT gateway`;let e=(await t.send(new N({Domain:`vpc`,TagSpecifications:$(G.elastic_ip,i?`${i}-eip-nat`:void 0,a)}))).AllocationId;if(!e)throw Error(`Elastic IP was allocated but no allocation ID was returned`);r.push({type:`Elastic IP`,id:e}),o=`creating NAT gateway`;let n=(await t.send(new R({SubnetId:f[0],AllocationId:e,TagSpecifications:$(G.natgateway,i?`${i}-nat`:void 0,a)}))).NatGateway?.NatGatewayId;if(!n)throw Error(`NAT gateway was created but no ID was returned`);r.push({type:`NAT Gateway`,id:n}),o=`creating default route to NAT gateway`,await t.send(new z({RouteTableId:s,DestinationCidrBlock:`0.0.0.0/0`,NatGatewayId:n}))}}return{vpcId:c,created:r}}catch(e){return{vpcId:r.find(e=>e.type===`VPC`)?.id,created:r,error:e instanceof Error?e:Error(String(e)),failedStep:`Failed while ${o}`}}},onSuccess:()=>{t.invalidateQueries({queryKey:[`ec2`,`vpcs`]}),t.invalidateQueries({queryKey:[`ec2`,`subnets`]}),t.invalidateQueries({queryKey:[`ec2`,`internetGateways`]}),t.invalidateQueries({queryKey:[`ec2`,`routeTables`]}),t.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),t.invalidateQueries({queryKey:[`ec2`,`addresses`]})}})}export{xt as $,En as A,cn as B,vr as C,Sn as D,rr as E,Hn as F,Kn as G,on as H,rn as I,Tt as J,Pn as K,Xn as L,vn as M,qt as N,dr as O,mn as P,St as Q,er as R,fn as S,Vt as T,Gt as U,zt as V,jt as W,kt as X,Dt as Y,X as Z,ar as _,Bn as a,gn as b,On as c,Nt as d,Ct as et,In as f,lr as g,bn as h,pr as i,Zt as j,sr as k,$t as l,Q as m,Jn as n,tn as o,Lt as p,Mn as q,Qn as r,An as s,Wn as t,un as u,wn as v,Rn as w,Ut as x,Yt as y,hr as z}; \ No newline at end of file +import{n as e}from"./error-banner.js";import{$n as t,Ar as n,At as r,Bn as i,Cr as a,Dr as o,Er as s,Fn as c,Fr as l,Gn as u,Hn as d,In as f,Jn as p,Kn as m,Ln as h,Mr as g,Nr as _,Or as ee,Pn as te,Pr as ne,Qn as re,Rn as ie,Rr as ae,Sr as oe,Tr as se,Un as ce,Vn as le,Wn as ue,Xn as de,Xr as fe,Yn as pe,Zn as me,_r as he,ar as ge,br as _e,cr as ve,dr as ye,er as be,fr as xe,gr as Se,hr as v,ir as y,kr as b,lr as x,lt as S,mr as C,ni as w,nr as T,or as E,pr as D,ps as O,qn as k,rr as A,sr as j,tr as Ce,ur as we,vr as Te,wr as Ee,xr as De,yr as Oe,ys as M,zn as ke,zr as Ae}from"./index.js";var N=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AllocateAddress`,{}).n(`EC2Client`,`AllocateAddressCommand`).sc(te).build(){},je=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateAddress`,{}).n(`EC2Client`,`AssociateAddressCommand`).sc(c).build(){},Me=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateIamInstanceProfile`,{}).n(`EC2Client`,`AssociateIamInstanceProfileCommand`).sc(f).build(){},P=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateRouteTable`,{}).n(`EC2Client`,`AssociateRouteTableCommand`).sc(h).build(){},F=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachInternetGateway`,{}).n(`EC2Client`,`AttachInternetGatewayCommand`).sc(ie).build(){},Ne=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachVolume`,{}).n(`EC2Client`,`AttachVolumeCommand`).sc(ke).build(){},Pe=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupEgress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupEgressCommand`).sc(i).build(){},I=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupIngress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupIngressCommand`).sc(le).build(){};function Fe(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?Ae(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 Ie=`2016-11-15`;function Le(e){return(t,n)=>async n=>{let{input:r}=n;if(!r.PresignedUrl){let t=await e.region(),i=await ne(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():l(i),o=new w({...a,protocol:`https`,headers:{host:a.hostname},query:{...Object.entries(r).reduce((e,[t,n])=>(e[t]=String(n??``),e),{}),Action:`CopySnapshot`,Version:Ie,DestinationRegion:t}}),s=await new fe({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:Fe(s)}},w.isInstance(n.request)){let{request:e}=n;(e.body??``).includes(`DestinationRegion=`)||(e.body+=`&DestinationRegion=${t}`),(e.body??``).includes(`PresignedUrl=`)||(e.body+=`&PresignedUrl=${ae(n.input.PresignedUrl)}`)}}return t(n)}}var Re={step:`serialize`,tags:[`CROSS_REGION_PRESIGNED_URL`],name:`crossRegionPresignedUrlMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`},ze=e=>({applyToStack:t=>{t.add(Le(e),Re)}}),Be=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions()),ze(n)]}).s(`AmazonEC2`,`CopySnapshot`,{}).n(`EC2Client`,`CopySnapshotCommand`).sc(d).build(){},Ve=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateImage`,{}).n(`EC2Client`,`CreateImageCommand`).sc(ce).build(){},L=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateInternetGateway`,{}).n(`EC2Client`,`CreateInternetGatewayCommand`).sc(ue).build(){},He=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateKeyPair`,{}).n(`EC2Client`,`CreateKeyPairCommand`).sc(u).build(){},R=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateNatGateway`,{}).n(`EC2Client`,`CreateNatGatewayCommand`).sc(m).build(){},Ue=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreatePlacementGroup`,{}).n(`EC2Client`,`CreatePlacementGroupCommand`).sc(k).build(){},z=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRoute`,{}).n(`EC2Client`,`CreateRouteCommand`).sc(p).build(){},B=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRouteTable`,{}).n(`EC2Client`,`CreateRouteTableCommand`).sc(pe).build(){},V=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSecurityGroup`,{}).n(`EC2Client`,`CreateSecurityGroupCommand`).sc(de).build(){},We=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSnapshot`,{}).n(`EC2Client`,`CreateSnapshotCommand`).sc(me).build(){},H=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSubnet`,{}).n(`EC2Client`,`CreateSubnetCommand`).sc(re).build(){},Ge=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVolume`,{}).n(`EC2Client`,`CreateVolumeCommand`).sc(t).build(){},U=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVpc`,{}).n(`EC2Client`,`CreateVpcCommand`).sc(be).build(){},Ke=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteInternetGateway`,{}).n(`EC2Client`,`DeleteInternetGatewayCommand`).sc(Ce).build(){},qe=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteKeyPair`,{}).n(`EC2Client`,`DeleteKeyPairCommand`).sc(T).build(){},Je=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteNatGateway`,{}).n(`EC2Client`,`DeleteNatGatewayCommand`).sc(A).build(){},Ye=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeletePlacementGroup`,{}).n(`EC2Client`,`DeletePlacementGroupCommand`).sc(y).build(){},Xe=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteRoute`,{}).n(`EC2Client`,`DeleteRouteCommand`).sc(ge).build(){},Ze=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteRouteTable`,{}).n(`EC2Client`,`DeleteRouteTableCommand`).sc(E).build(){},Qe=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSecurityGroup`,{}).n(`EC2Client`,`DeleteSecurityGroupCommand`).sc(j).build(){},$e=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSnapshot`,{}).n(`EC2Client`,`DeleteSnapshotCommand`).sc(ve).build(){},et=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSubnet`,{}).n(`EC2Client`,`DeleteSubnetCommand`).sc(x).build(){},tt=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVolume`,{}).n(`EC2Client`,`DeleteVolumeCommand`).sc(we).build(){},nt=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVpc`,{}).n(`EC2Client`,`DeleteVpcCommand`).sc(ye).build(){},rt=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachInternetGateway`,{}).n(`EC2Client`,`DetachInternetGatewayCommand`).sc(xe).build(){},it=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachVolume`,{}).n(`EC2Client`,`DetachVolumeCommand`).sc(D).build(){},at=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateAddress`,{}).n(`EC2Client`,`DisassociateAddressCommand`).sc(C).build(){},ot=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateIamInstanceProfile`,{}).n(`EC2Client`,`DisassociateIamInstanceProfileCommand`).sc(v).build(){},st=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateRouteTable`,{}).n(`EC2Client`,`DisassociateRouteTableCommand`).sc(Se).build(){},ct=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`GetConsoleOutput`,{}).n(`EC2Client`,`GetConsoleOutputCommand`).sc(he).build(){},lt=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ImportKeyPair`,{}).n(`EC2Client`,`ImportKeyPairCommand`).sc(Te).build(){},ut=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyInstanceAttribute`,{}).n(`EC2Client`,`ModifyInstanceAttributeCommand`).sc(Oe).build(){},W=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifySubnetAttribute`,{}).n(`EC2Client`,`ModifySubnetAttributeCommand`).sc(_e).build(){},dt=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyVolume`,{}).n(`EC2Client`,`ModifyVolumeCommand`).sc(De).build(){},ft=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RebootInstances`,{}).n(`EC2Client`,`RebootInstancesCommand`).sc(oe).build(){},pt=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ReleaseAddress`,{}).n(`EC2Client`,`ReleaseAddressCommand`).sc(a).build(){},mt=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupEgress`,{}).n(`EC2Client`,`RevokeSecurityGroupEgressCommand`).sc(Ee).build(){},ht=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupIngress`,{}).n(`EC2Client`,`RevokeSecurityGroupIngressCommand`).sc(se).build(){},gt=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RunInstances`,{}).n(`EC2Client`,`RunInstancesCommand`).sc(s).build(){},_t=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StartInstances`,{}).n(`EC2Client`,`StartInstancesCommand`).sc(o).build(){},vt=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StopInstances`,{}).n(`EC2Client`,`StopInstancesCommand`).sc(ee).build(){},yt=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`TerminateInstances`,{}).n(`EC2Client`,`TerminateInstancesCommand`).sc(b).build(){},G={capacity_block:`capacity-block`,capacity_manager_data_export:`capacity-manager-data-export`,capacity_reservation:`capacity-reservation`,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_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`},K=O();function q(e){let t=e.split(`/`),n=t[0]??``,r=t[1]??`0`,i=Number.parseInt(r,10),a=n.split(`.`).map(e=>Number.parseInt(e,10)),o=a[0]??0,s=a[1]??0,c=a[2]??0,l=a[3]??0;return{network:((o<<24|s<<16|c<<8|l)>>>0&(i===0?0:4294967295<<32-i>>>0))>>>0,prefix:i}}function J(e){return`${e>>>24&255}.${e>>>16&255}.${e>>>8&255}.${e&255}`}function Y(e){return 2**(32-e)}function bt(e){let t=e+4;return Math.min(t,28)}function X(e,t,n){let{network:r,prefix:i}=q(e),a=bt(i),o=Y(a),s=Y(i)/2,c=[];for(let e=0;e>>0;c.push({cidr:`${J(t)}/${a}`,label:`Public Subnet ${e+1}`})}let l=[];for(let e=0;e>>0;l.push({cidr:`${J(t)}/${a}`,label:`Private Subnet ${e+1}`})}return{publicSubnets:c,privateSubnets:l}}function xt(e,t){let n=q(e),r=q(t),i=n.network+Y(n.prefix)-1>>>0,a=r.network+Y(r.prefix)-1>>>0;return n.network<=a&&r.network<=i}function St(e,t){let n=q(e),r=q(t),i=n.network+Y(n.prefix)-1>>>0,a=r.network+Y(r.prefix)-1>>>0;return r.network>=n.network&&a<=i}function Ct(e,t=16,n=28){let r=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\/(\d{1,2})$/.exec(e);if(!r||[Number.parseInt(r[1]??`0`,10),Number.parseInt(r[2]??`0`,10),Number.parseInt(r[3]??`0`,10),Number.parseInt(r[4]??`0`,10)].some(e=>e>255))return!1;let i=Number.parseInt(r[5]??`0`,10);return i>=t&&i<=n}var wt=/\s+/;function Tt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Et,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function Et(e){let t=new _t({InstanceIds:[e]});return await r().send(t)}function Dt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Ot,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function Ot(e){let t=new vt({InstanceIds:[e]});return await r().send(t)}function kt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:At,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function At(e){let t=new yt({InstanceIds:[e]});return await r().send(t)}function jt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Mt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function Mt(e){let t=new ft({InstanceIds:[e]});return await r().send(t)}function Nt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Pt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},t[0]=n,t[1]=r),e(r)}async function Pt(e){let t=r(),n=await Ft(t,e),i=new gt({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:It(e)});return await t.send(i)}async function Ft(e,t){if(t.securityGroupMode!==`create`)return t.securityGroupIds??[];let n=(await e.send(new V({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 I({GroupId:n,IpPermissions:r.map(e=>({IpProtocol:`tcp`,FromPort:e,ToPort:e,IpRanges:[{CidrIp:i}]}))}))}return[n]}function It(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 Lt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Rt,onSuccess:()=>{n.invalidateQueries(S)}},t[0]=n,t[1]=r),e(r)}async function Rt(e){let t=new He({KeyName:e.keyName,KeyType:`rsa`}),n=await r().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 zt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Bt,onSuccess:()=>{n.invalidateQueries(S)}},t[0]=n,t[1]=r),e(r)}async function Bt(e){let t=e.publicKeyMaterial.trim().split(wt).slice(0,2).join(` `),n=new lt({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return await r().send(n)}function Vt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Ht,onSuccess:()=>{n.invalidateQueries(S)}},t[0]=n,t[1]=r),e(r)}async function Ht(e){let t=new qe({KeyPairId:e});return await r().send(t)}function Ut(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Wt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},t[0]=n,t[1]=r),e(r)}async function Wt(e){let t=new Ge({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:`gp3`});return await r().send(t)}function Gt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Kt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},t[0]=n,t[1]=r),e(r)}async function Kt(e){let t=new dt({VolumeId:e.volumeId,Size:e.size});return await r().send(t)}function qt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Jt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},t[0]=n,t[1]=r),e(r)}async function Jt(e){let t=new tt({VolumeId:e});return await r().send(t)}function Yt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Xt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},t[0]=n,t[1]=r),e(r)}async function Xt(e){let t=new We({VolumeId:e.volumeId,Description:e.description||void 0});return await r().send(t)}function Zt(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Qt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},t[0]=n,t[1]=r),e(r)}async function Qt(e){let t=new $e({SnapshotId:e});return await r().send(t)}function $t(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:en,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},t[0]=n,t[1]=r),e(r)}async function en(e){let t=new Be({SourceSnapshotId:e.sourceSnapshotId,SourceRegion:e.sourceRegion,Description:e.description||void 0});return await r().send(t)}function tn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:nn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function nn(e){let t=new Ne({VolumeId:e.volumeId,InstanceId:e.instanceId,Device:e.device||void 0});return await r().send(t)}function rn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:an,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function an(e){let t=new it({VolumeId:e.volumeId,InstanceId:e.instanceId||void 0,Force:e.force});return await r().send(t)}function on(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:sn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function sn(e){let{instanceId:t,...n}=e,i=new ut({InstanceId:t,InstanceType:{Value:n.instanceType}});return await r().send(i)}function cn(){let t=(0,K.c)(1),n;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={mutationFn:ln},t[0]=n):n=t[0],e(n)}async function ln(e){let t=new ct({InstanceId:e});return await r().send(t)}function un(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:dn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`images`]})}},t[0]=n,t[1]=r),e(r)}async function dn(e){let t=new Ve({InstanceId:e.instanceId,Name:e.name,Description:e.description||void 0});return await r().send(t)}function fn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:pn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},t[0]=n,t[1]=r),e(r)}async function pn(e){let t=new U({CidrBlock:e.cidrBlock,TagSpecifications:e.name?[{ResourceType:`vpc`,Tags:[{Key:`Name`,Value:e.name}]}]:void 0});return await r().send(t)}function mn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:hn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},t[0]=n,t[1]=r),e(r)}async function hn(e){let t=new nt({VpcId:e});return await r().send(t)}function gn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:_n,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},t[0]=n,t[1]=r),e(r)}async function _n(e){let t=r(),n=await t.send(new H({VpcId:e.vpcId,CidrBlock:e.cidrBlock,AvailabilityZone:e.availabilityZone||void 0})),i=n.Subnet?.SubnetId;return e.mapPublicIpOnLaunch&&i&&await t.send(new W({SubnetId:i,MapPublicIpOnLaunch:{Value:!0}})),n}function vn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:yn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},t[0]=n,t[1]=r),e(r)}async function yn(e){let t=new et({SubnetId:e});return await r().send(t)}function bn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:xn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},t[0]=n,t[1]=r),e(r)}async function xn(e){let t=new Ue({GroupName:e.groupName,Strategy:e.strategy});return await r().send(t)}function Sn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Cn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},t[0]=n,t[1]=r),e(r)}async function Cn(e){let t=new Ye({GroupName:e});return await r().send(t)}function wn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Tn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},t[0]=n,t[1]=r),e(r)}async function Tn(e){let t=new V({GroupName:e.groupName,Description:e.description,VpcId:e.vpcId});return await r().send(t)}function En(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Dn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},t[0]=n,t[1]=r),e(r)}async function Dn(e){let t=new Qe({GroupId:e});return await r().send(t)}function On(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:kn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},t[0]=n,t[1]=r),e(r)}async function kn(e){let t=new I({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await r().send(t)}function An(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:jn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},t[0]=n,t[1]=r),e(r)}async function jn(e){let t=new Pe({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await r().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 Mn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Nn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},t[0]=n,t[1]=r),e(r)}async function Nn(e){let t=new ht({GroupId:e.groupId,IpPermissions:[Z(e)]});return await r().send(t)}function Pn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Fn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},t[0]=n,t[1]=r),e(r)}async function Fn(e){let t=new mt({GroupId:e.groupId,IpPermissions:[Z(e)]});return await r().send(t)}function In(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Ln,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},t[0]=n,t[1]=r),e(r)}async function Ln(e){let t=new L({TagSpecifications:$(G.internet_gateway,e?.name,[])});return await r().send(t)}function Rn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:zn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},t[0]=n,t[1]=r),e(r)}async function zn(e){let t=new Ke({InternetGatewayId:e});return await r().send(t)}function Bn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Vn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},t[0]=n,t[1]=r),e(r)}async function Vn(e){let t=new F({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await r().send(t)}function Hn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Un,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},t[0]=n,t[1]=r),e(r)}async function Un(e){let t=new rt({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await r().send(t)}function Wn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Gn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},t[0]=n,t[1]=r),e(r)}async function Gn(e){let t=new N({Domain:`vpc`,TagSpecifications:$(G.elastic_ip,e?.name,[])});return await r().send(t)}function Kn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:qn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},t[0]=n,t[1]=r),e(r)}async function qn(e){let t=new pt({AllocationId:e});return await r().send(t)}function Jn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Yn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function Yn(e){let t=new je({AllocationId:e.allocationId,InstanceId:e.instanceId,NetworkInterfaceId:e.networkInterfaceId});return await r().send(t)}function Xn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:Zn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function Zn(e){let t=new at({AssociationId:e});return await r().send(t)}function Qn(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:$n,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function $n(e){let t=new Me({InstanceId:e.instanceId,IamInstanceProfile:{Name:e.instanceProfileName}});return await r().send(t)}function er(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:tr,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function tr(e){let t=new ot({AssociationId:e.associationId});return await r().send(t)}function Q(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:nr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},t[0]=n,t[1]=r),e(r)}async function nr(e){let t=new R({SubnetId:e.subnetId,AllocationId:e.allocationId,TagSpecifications:$(G.natgateway,e.name,[])});return await r().send(t)}function rr(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:ir,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]})}},t[0]=n,t[1]=r),e(r)}async function ir(e){let t=new Je({NatGatewayId:e});return await r().send(t)}function ar(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:or,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},t[0]=n,t[1]=r),e(r)}async function or(e){let t=new B({VpcId:e.vpcId,TagSpecifications:$(G.route_table,e.name,[])});return await r().send(t)}function sr(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:cr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},t[0]=n,t[1]=r),e(r)}async function cr(e){let t=new Ze({RouteTableId:e});return await r().send(t)}function lr(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:ur,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},t[0]=n,t[1]=r),e(r)}async function ur(e){let t=new z({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock,GatewayId:e.gatewayId,NatGatewayId:e.natGatewayId});return await r().send(t)}function dr(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:fr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},t[0]=n,t[1]=r),e(r)}async function fr(e){let t=new Xe({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock});return await r().send(t)}function pr(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:mr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},t[0]=n,t[1]=r),e(r)}async function mr(e){let t=new P({RouteTableId:e.routeTableId,SubnetId:e.subnetId});return await r().send(t)}function hr(){let t=(0,K.c)(2),n=M(),r;return t[0]===n?r=t[1]:(r={mutationFn:gr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},t[0]=n,t[1]=r),e(r)}async function gr(e){let t=new st({AssociationId:e});return await r().send(t)}function _r(e,t){let n=[];return e&&n.push({Key:`Name`,Value:e}),n.push(...t),n}function $(e,t,n){let r=_r(t,n);if(r.length!==0)return[{ResourceType:e,Tags:r}]}function vr(){let t=M();return e({mutationFn:async e=>{let t=r(),n=[],i=e.autoGenerateNames?e.namePrefix:void 0,a=e.tags.map(e=>({Key:e.key,Value:e.value})),o=`creating VPC`;try{let r=i?`${i}-vpc`:e.namePrefix,s=e.tenancy,c=(await t.send(new U({CidrBlock:e.cidrBlock,InstanceTenancy:s,TagSpecifications:$(G.vpc,r,a)}))).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=X(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);o=`creating public subnets`;let f=[];for(let r=0;r0){o=`creating internet gateway`;let e=i?`${i}-igw`:void 0,r=(await t.send(new L({TagSpecifications:$(G.internet_gateway,e,a)}))).InternetGateway?.InternetGatewayId;if(!r)throw Error(`Internet gateway was created but no ID was returned`);n.push({type:`Internet Gateway`,id:r}),o=`attaching internet gateway to VPC`,await t.send(new F({InternetGatewayId:r,VpcId:c})),o=`creating public route table`;let s=i?`${i}-rtb-public`:void 0,l=(await t.send(new B({VpcId:c,TagSpecifications:$(G.route_table,s,a)}))).RouteTable?.RouteTableId;if(!l)throw Error(`Public route table was created but no ID was returned`);n.push({type:`Public Route Table`,id:l}),o=`creating default route to internet gateway`,await t.send(new z({RouteTableId:l,DestinationCidrBlock:`0.0.0.0/0`,GatewayId:r})),o=`associating public subnets with route table`;for(let e of f)await t.send(new P({RouteTableId:l,SubnetId:e}))}if(e.privateSubnetCount>0){o=`creating private route table`;let r=i?`${i}-rtb-private`:void 0,s=(await t.send(new B({VpcId:c,TagSpecifications:$(G.route_table,r,a)}))).RouteTable?.RouteTableId;if(!s)throw Error(`Private route table was created but no ID was returned`);n.push({type:`Private Route Table`,id:s}),o=`associating private subnets with route table`;for(let e of p)await t.send(new P({RouteTableId:s,SubnetId:e}));if(e.natGateway===`single`&&f[0]){o=`allocating Elastic IP for NAT gateway`;let e=(await t.send(new N({Domain:`vpc`,TagSpecifications:$(G.elastic_ip,i?`${i}-eip-nat`:void 0,a)}))).AllocationId;if(!e)throw Error(`Elastic IP was allocated but no allocation ID was returned`);n.push({type:`Elastic IP`,id:e}),o=`creating NAT gateway`;let r=(await t.send(new R({SubnetId:f[0],AllocationId:e,TagSpecifications:$(G.natgateway,i?`${i}-nat`:void 0,a)}))).NatGateway?.NatGatewayId;if(!r)throw Error(`NAT gateway was created but no ID was returned`);n.push({type:`NAT Gateway`,id:r}),o=`creating default route to NAT gateway`,await t.send(new z({RouteTableId:s,DestinationCidrBlock:`0.0.0.0/0`,NatGatewayId:r}))}}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 ${o}`}}},onSuccess:()=>{t.invalidateQueries({queryKey:[`ec2`,`vpcs`]}),t.invalidateQueries({queryKey:[`ec2`,`subnets`]}),t.invalidateQueries({queryKey:[`ec2`,`internetGateways`]}),t.invalidateQueries({queryKey:[`ec2`,`routeTables`]}),t.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),t.invalidateQueries({queryKey:[`ec2`,`addresses`]})}})}export{xt as $,En as A,cn as B,vr as C,Sn as D,rr as E,Hn as F,Kn as G,on as H,rn as I,Tt as J,Pn as K,Xn as L,vn as M,qt as N,dr as O,mn as P,St as Q,er as R,fn as S,Vt as T,Gt as U,zt as V,jt as W,kt as X,Dt as Y,X as Z,ar as _,Bn as a,gn as b,On as c,Nt as d,Ct as et,In as f,lr as g,bn as h,pr as i,Zt as j,sr as k,$t as l,Q as m,Jn as n,tn as o,Lt as p,Mn as q,Qn as r,An as s,Wn as t,un as u,wn as v,Rn as w,Ut as x,Yt as y,hr as z}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ec22.js b/spinifex/services/spinifexui/frontend/dist/assets/ec22.js index aca66610c..f70b08cd1 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ec22.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ec22.js @@ -1 +1 @@ -import{$ as e,Q as t,et as n}from"./ec2.js";import{_i as r,bi as i,gi as a,hi as o,mi as s,pi as c,vi as l}from"./index.js";var u=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2}$/,d=i().min(1,`Key name is required`).max(255,`Key name must be 255 characters or less`).regex(/^[\w\s._\-:/()#,@[\]+=&;{}!$*]+$/,`Key name contains invalid characters`),f=[`gp3`],p=`launch-wizard-`,m=l({imageId:i(`Please select an Image`),instanceType:i(`Please select an instance type`),keyName:i(`Please select a key pair`).min(1,`Key pair is required`),subnetId:i().optional(),placementGroupName:i().optional(),count:a(`Instance count must be a whole number`).min(1,`Instance count must be at least 1`),rootDeviceName:i().optional(),rootVolumeSize:r().int(`Volume size must be a whole number`).min(1,`Volume size must be at least 1 GiB`).max(16384,`Volume size must be at most 16384 GiB`).optional(),rootVolumeType:c(f).optional(),rootDeleteOnTermination:o().optional(),securityGroupMode:c([`create`,`existing`]).optional(),securityGroupIds:s(i()).optional(),newSgName:i().optional(),newSgDescription:i().optional(),allowSsh:o().optional(),allowHttp:o().optional(),allowHttps:o().optional(),ruleSource:c([`anywhere`,`custom`]).optional(),customCidr:i().optional()}).superRefine((e,t)=>{if(e.securityGroupMode){if(e.securityGroupMode===`existing`){(e.securityGroupIds??[]).length===0&&t.addIssue({code:`custom`,message:`Select at least one security group`,path:[`securityGroupIds`]});return}(!e.newSgName||e.newSgName.trim().length===0)&&t.addIssue({code:`custom`,message:`Security group name is required`,path:[`newSgName`]}),e.ruleSource===`custom`&&(!e.customCidr||!n(e.customCidr))&&t.addIssue({code:`custom`,message:`Enter a valid CIDR (e.g. 203.0.113.0/24)`,path:[`customCidr`]})}});function h(e){let t=0,n=RegExp(`^${p}(\\d+)$`);for(let r of e){let e=n.exec(r);if(e){let n=Number(e[1]);n>t&&(t=n)}}return`${p}${t+1}`}var g=l({keyName:d}),_=l({keyName:d,publicKeyMaterial:i().min(1,`Public key is required`).refine(e=>e.trim().length>0,`Public key cannot be empty`)}),v=l({size:r().int(`Size must be a whole number`).min(1,`Size must be at least 1 GiB`).max(16384,`Size must be at most 16384 GiB`),availabilityZone:i().min(1,`Availability zone is required`)}),y=l({size:r().int(`Size must be a whole number`).min(1,`Size must be at least 1 GiB`)}),b=l({volumeId:i().min(1,`Volume is required`),description:i().optional()});l({sourceSnapshotId:i().min(1,`Source snapshot is required`),sourceRegion:i().min(1,`Source region is required`),description:i().optional()}),l({volumeId:i().min(1,`Volume is required`),instanceId:i().min(1,`Instance is required`),device:i().optional()}),l({volumeId:i().min(1,`Volume is required`),instanceId:i().optional(),force:o().optional()}),l({instanceType:i().min(1,`Instance type is required`)}),l({name:i().min(1,`Name is required`),description:i().optional()});var x=l({vpcId:i().min(1,`VPC is required`),cidrBlock:i().min(1,`CIDR block is required`).regex(u,`Must be a valid CIDR block (e.g. 10.0.1.0/24)`),availabilityZone:i().optional(),mapPublicIpOnLaunch:o().optional()}),S=l({name:i().optional()}),C=l({subnetId:i().min(1,`Subnet is required`),allocationId:i().min(1,`Elastic IP is required`),name:i().optional()}),w=l({name:i().optional()}),T=l({vpcId:i().min(1,`VPC is required`),name:i().optional()}),E=l({destinationCidrBlock:i().min(1,`Destination is required`).regex(u,`Must be a valid CIDR block (e.g. 0.0.0.0/0)`),targetType:c([`igw`,`nat`]),targetId:i().min(1,`Target is required`)}),D=l({subnetId:i().min(1,`Subnet is required`)});l({cidrBlock:i().min(1,`CIDR block is required`).regex(u,`Must be a valid CIDR block (e.g. 10.0.0.0/16)`),name:i().optional()});var O=l({key:i().min(1,`Key is required`),value:i()}),k=l({mode:c([`vpc-only`,`vpc-and-more`]),namePrefix:i().optional(),autoGenerateNames:o(),cidrBlock:i().min(1,`CIDR block is required`).regex(u,`Must be a valid CIDR block (e.g. 10.0.0.0/16)`).refine(e=>n(e),`CIDR has invalid octets or prefix length (must be /16 to /28)`),tenancy:c([`default`,`dedicated`]),natGateway:c([`none`,`single`]).optional(),publicSubnetCount:r().int().min(0).max(1),privateSubnetCount:r().int().min(0).max(2),publicSubnetCidrs:s(i()),privateSubnetCidrs:s(i()),tags:s(O)}).superRefine((r,i)=>{if(r.mode!==`vpc-and-more`)return;let a=[];for(let[e,o]of r.publicSubnetCidrs.entries())n(o,16,28)?(t(r.cidrBlock,o)||i.addIssue({code:`custom`,message:`Subnet CIDR must be within the VPC CIDR range`,path:[`publicSubnetCidrs`,e]}),a.push({cidr:o,field:`publicSubnetCidrs`,index:e})):i.addIssue({code:`custom`,message:`Invalid subnet CIDR format or prefix length`,path:[`publicSubnetCidrs`,e]});for(let[e,o]of r.privateSubnetCidrs.entries())n(o,16,28)?(t(r.cidrBlock,o)||i.addIssue({code:`custom`,message:`Subnet CIDR must be within the VPC CIDR range`,path:[`privateSubnetCidrs`,e]}),a.push({cidr:o,field:`privateSubnetCidrs`,index:e})):i.addIssue({code:`custom`,message:`Invalid subnet CIDR format or prefix length`,path:[`privateSubnetCidrs`,e]});for(let t=0;t{if(e.securityGroupMode){if(e.securityGroupMode===`existing`){(e.securityGroupIds??[]).length===0&&t.addIssue({code:`custom`,message:`Select at least one security group`,path:[`securityGroupIds`]});return}(!e.newSgName||e.newSgName.trim().length===0)&&t.addIssue({code:`custom`,message:`Security group name is required`,path:[`newSgName`]}),e.ruleSource===`custom`&&(!e.customCidr||!n(e.customCidr))&&t.addIssue({code:`custom`,message:`Enter a valid CIDR (e.g. 203.0.113.0/24)`,path:[`customCidr`]})}});function h(e){let t=0,n=RegExp(`^${p}(\\d+)$`);for(let r of e){let e=n.exec(r);if(e){let n=Number(e[1]);n>t&&(t=n)}}return`${p}${t+1}`}var g=l({keyName:d}),_=l({keyName:d,publicKeyMaterial:c().min(1,`Public key is required`).refine(e=>e.trim().length>0,`Public key cannot be empty`)}),v=l({size:s().int(`Size must be a whole number`).min(1,`Size must be at least 1 GiB`).max(16384,`Size must be at most 16384 GiB`),availabilityZone:c().min(1,`Availability zone is required`)}),y=l({size:s().int(`Size must be a whole number`).min(1,`Size must be at least 1 GiB`)}),b=l({volumeId:c().min(1,`Volume is required`),description:c().optional()});l({sourceSnapshotId:c().min(1,`Source snapshot is required`),sourceRegion:c().min(1,`Source region is required`),description:c().optional()}),l({volumeId:c().min(1,`Volume is required`),instanceId:c().min(1,`Instance is required`),device:c().optional()}),l({volumeId:c().min(1,`Volume is required`),instanceId:c().optional(),force:i().optional()}),l({instanceType:c().min(1,`Instance type is required`)}),l({name:c().min(1,`Name is required`),description:c().optional()});var x=l({vpcId:c().min(1,`VPC is required`),cidrBlock:c().min(1,`CIDR block is required`).regex(u,`Must be a valid CIDR block (e.g. 10.0.1.0/24)`),availabilityZone:c().optional(),mapPublicIpOnLaunch:i().optional()}),S=l({name:c().optional()}),C=l({subnetId:c().min(1,`Subnet is required`),allocationId:c().min(1,`Elastic IP is required`),name:c().optional()}),w=l({name:c().optional()}),T=l({vpcId:c().min(1,`VPC is required`),name:c().optional()}),E=l({destinationCidrBlock:c().min(1,`Destination is required`).regex(u,`Must be a valid CIDR block (e.g. 0.0.0.0/0)`),targetType:o([`igw`,`nat`]),targetId:c().min(1,`Target is required`)}),D=l({subnetId:c().min(1,`Subnet is required`)});l({cidrBlock:c().min(1,`CIDR block is required`).regex(u,`Must be a valid CIDR block (e.g. 10.0.0.0/16)`),name:c().optional()});var O=l({key:c().min(1,`Key is required`),value:c()}),k=l({mode:o([`vpc-only`,`vpc-and-more`]),namePrefix:c().optional(),autoGenerateNames:i(),cidrBlock:c().min(1,`CIDR block is required`).regex(u,`Must be a valid CIDR block (e.g. 10.0.0.0/16)`).refine(e=>n(e),`CIDR has invalid octets or prefix length (must be /16 to /28)`),tenancy:o([`default`,`dedicated`]),natGateway:o([`none`,`single`]).optional(),publicSubnetCount:s().int().min(0).max(1),privateSubnetCount:s().int().min(0).max(2),publicSubnetCidrs:a(c()),privateSubnetCidrs:a(c()),tags:a(O)}).superRefine((r,i)=>{if(r.mode!==`vpc-and-more`)return;let a=[];for(let[e,o]of r.publicSubnetCidrs.entries())n(o,16,28)?(t(r.cidrBlock,o)||i.addIssue({code:`custom`,message:`Subnet CIDR must be within the VPC CIDR range`,path:[`publicSubnetCidrs`,e]}),a.push({cidr:o,field:`publicSubnetCidrs`,index:e})):i.addIssue({code:`custom`,message:`Invalid subnet CIDR format or prefix length`,path:[`publicSubnetCidrs`,e]});for(let[e,o]of r.privateSubnetCidrs.entries())n(o,16,28)?(t(r.cidrBlock,o)||i.addIssue({code:`custom`,message:`Subnet CIDR must be within the VPC CIDR range`,path:[`privateSubnetCidrs`,e]}),a.push({cidr:o,field:`privateSubnetCidrs`,index:e})):i.addIssue({code:`custom`,message:`Invalid subnet CIDR format or prefix length`,path:[`privateSubnetCidrs`,e]});for(let t=0;t{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`]})}},t[0]=n,t[1]=r),e(r)}async function z(e){let t=new E({LoadBalancerArn:e});return await m().send(t)}function B(){let t=(0,L.c)(2),n=g(),r;return t[0]===n?r=t[1]:(r={mutationFn:V,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn,`attributes`]})}},t[0]=n,t[1]=r),e(r)}async function V(e){let t=new j({LoadBalancerArn:e.loadBalancerArn,Attributes:e.attributes.map(H)});return await m().send(t)}function H(e){return{Key:e.key,Value:e.value}}function ie(){let t=(0,L.c)(2),n=g(),r;return t[0]===n?r=t[1]:(r={mutationFn:U,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`tags`]})}},t[0]=n,t[1]=r),e(r)}async function U(e){let t=new Set(e.tags.map(G)),n=e.initialKeys.filter(e=>!t.has(e)),r=m();e.tags.length>0&&await r.send(new b({ResourceArns:[e.resourceArn],Tags:e.tags.map(W)})),n.length>0&&await r.send(new F({ResourceArns:[e.resourceArn],TagKeys:n}))}function W(e){return{Key:e.key,Value:e.value}}function G(e){return e.key}function K(){let t=(0,L.c)(2),n=g(),r;return t[0]===n?r=t[1]:(r={mutationFn:q,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn]})}},t[0]=n,t[1]=r),e(r)}async function q(e){let t=new I({LoadBalancerArn:e.loadBalancerArn,SecurityGroups:e.securityGroupIds});return await m().send(t)}function J(){let t=(0,L.c)(2),n=g(),r;return t[0]===n?r=t[1]:(r={mutationFn:Y,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},t[0]=n,t[1]=r),e(r)}async function Y(e){let t=e.tags.filter(oe).map(ae),n=e.healthCheck.protocol===`HTTP`,r=new w({Name:e.name,Protocol:e.protocol,Port:e.port,VpcId:e.vpcId,TargetType:`instance`,HealthCheckProtocol:e.healthCheck.protocol,HealthCheckPath:n?e.healthCheck.path:void 0,HealthCheckPort:e.healthCheck.port,HealthCheckIntervalSeconds:e.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:e.healthCheck.timeoutSeconds,HealthyThresholdCount:e.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:e.healthCheck.unhealthyThresholdCount,Matcher:n?{HttpCode:e.healthCheck.matcher}:void 0,Tags:t.length>0?t:void 0});return await m().send(r)}function ae(e){return{Key:e.key,Value:e.value}}function oe(e){return e.key.length>0}function se(){let t=(0,L.c)(2),n=g(),r;return t[0]===n?r=t[1]:(r={mutationFn:ce,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},t[0]=n,t[1]=r),e(r)}async function ce(e){let t=new O({TargetGroupArn:e});return await m().send(t)}function le(){let t=(0,L.c)(2),n=g(),r;return t[0]===n?r=t[1]:(r={mutationFn:ue,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`attributes`]})}},t[0]=n,t[1]=r),e(r)}async function ue(e){let t=new N({TargetGroupArn:e.targetGroupArn,Attributes:e.attributes.map(de)});return await m().send(t)}function de(e){return{Key:e.key,Value:e.value}}function X(e,t,n){return!(e===`HTTPS`||e===`TLS`)||!t?{}:{Certificates:[{CertificateArn:t}],SslPolicy:e===`HTTPS`?n:void 0}}function fe(){let t=(0,L.c)(2),n=g(),r;return t[0]===n?r=t[1]:(r={mutationFn:pe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},t[0]=n,t[1]=r),e(r)}async function pe(e){let t=[{Type:`forward`,TargetGroupArn:e.defaultTargetGroupArn}],n=new x({LoadBalancerArn:e.loadBalancerArn,Protocol:e.protocol,Port:e.port,DefaultActions:t,...X(e.protocol,e.certificateArn,e.sslPolicy)});return await m().send(n)}function me(){let t=(0,L.c)(2),n=g(),r;return t[0]===n?r=t[1]:(r={mutationFn:he,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`]})}},t[0]=n,t[1]=r),e(r)}async function he(e){let t=new T({ListenerArn:e});return await m().send(t)}function ge(){let t=(0,L.c)(2),n=g(),r;return t[0]===n?r=t[1]:(r={mutationFn:_e,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},t[0]=n,t[1]=r),e(r)}async function _e(e){let t=[{Type:`forward`,TargetGroupArn:e.defaultTargetGroupArn}],n=new A({ListenerArn:e.listenerArn,Protocol:e.protocol,Port:e.port,DefaultActions:t,...X(e.protocol,e.certificateArn,e.sslPolicy)});return await m().send(n)}function ve(){let t=g();return e({mutationFn:async e=>{let t=m(),n=[],r=``;try{let i=e.listener.existingTargetGroupArn;if(e.listener.targetGroupMode===`new`){let a=e.listener.newTargetGroup;if(!a)throw Error(`internal error: new target group requested but no data supplied`);r=`creating target group`;let o=a.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value})),s=a.healthCheck.protocol===`HTTP`;if(i=(await t.send(new w({Name:a.name,Protocol:a.protocol,Port:a.port,VpcId:a.vpcId,TargetType:`instance`,HealthCheckProtocol:a.healthCheck.protocol,HealthCheckPath:s?a.healthCheck.path:void 0,HealthCheckPort:a.healthCheck.port,HealthCheckIntervalSeconds:a.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:a.healthCheck.timeoutSeconds,HealthyThresholdCount:a.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:a.healthCheck.unhealthyThresholdCount,Matcher:s?{HttpCode:a.healthCheck.matcher}:void 0,Tags:o.length>0?o:void 0}))).TargetGroups?.[0]?.TargetGroupArn,!i)throw Error(`Target group was created but no ARN was returned by the API`);n.push({type:`Target Group`,id:i})}if(!i)throw Error(`Target group selection is required`);r=`creating load balancer`;let a=e.lb.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value})),o=(await t.send(new S({Name:e.lb.name,Scheme:e.lb.scheme,Type:e.lb.type,IpAddressType:`ipv4`,Subnets:e.lb.subnetIds,SecurityGroups:e.lb.securityGroupIds.length>0?e.lb.securityGroupIds:void 0,Tags:a.length>0?a:void 0}))).LoadBalancers?.[0]?.LoadBalancerArn;if(!o)throw Error(`Load balancer was created but no ARN was returned by the API`);return n.push({type:`Load Balancer`,id:o}),r=`creating listener`,await t.send(new x({LoadBalancerArn:o,Protocol:e.listener.protocol,Port:e.listener.port,DefaultActions:[{Type:`forward`,TargetGroupArn:i}],...X(e.listener.protocol,e.listener.certificateArn,e.listener.sslPolicy)})),n.push({type:`Listener`,id:void 0}),{loadBalancerArn:o,created:n}}catch(e){return{loadBalancerArn:void 0,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:r}}},onSettled:()=>{t.invalidateQueries({queryKey:[`elbv2`]})}})}function Z(e){return e.map(e=>({Id:e.id,Port:e.port}))}function ye(){let t=(0,L.c)(2),n=g(),r;return t[0]===n?r=t[1]:(r={mutationFn:be,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},t[0]=n,t[1]=r),e(r)}async function be(e){let t=new P({TargetGroupArn:e.targetGroupArn,Targets:Z(e.targets)});return await m().send(t)}function xe(){let t=(0,L.c)(2),n=g(),r;return t[0]===n?r=t[1]:(r={mutationFn:Se,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},t[0]=n,t[1]=r),e(r)}async function Se(e){let t=new k({TargetGroupArn:e.targetGroupArn,Targets:Z(e.targets)});return await m().send(t)}function Q(e){return e.map(e=>{switch(e.field){case`host-header`:return{Field:e.field,HostHeaderConfig:{Values:e.values}};case`path-pattern`:return{Field:e.field,PathPatternConfig:{Values:e.values}};case`http-header`:return{Field:e.field,HttpHeaderConfig:{HttpHeaderName:e.httpHeaderName??``,Values:e.values}};case`http-request-method`:return{Field:e.field,HttpRequestMethodConfig:{Values:e.values}};case`source-ip`:return{Field:e.field,SourceIpConfig:{Values:e.values}};case`query-string`:return{Field:e.field,QueryStringConfig:{Values:(e.queryStringPairs??[]).map(e=>({Key:e.key&&e.key.length>0?e.key:void 0,Value:e.value}))}};default:return{Field:e.field,Values:e.values}}})}function Ce(){let t=(0,L.c)(2),n=g(),r;return t[0]===n?r=t[1]:(r={mutationFn:$,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},t[0]=n,t[1]=r),e(r)}async function $(e){let t=[{Type:`forward`,TargetGroupArn:e.forwardTargetGroupArn}],n=new C({ListenerArn:e.listenerArn,Priority:e.priority,Conditions:Q(e.conditions),Actions:t});return await m().send(n)}function we(){let t=(0,L.c)(2),n=g(),r;return t[0]===n?r=t[1]:(r={mutationFn:Te,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},t[0]=n,t[1]=r),e(r)}async function Te(e){let t=new M({RuleArn:e.ruleArn,Conditions:e.conditions?Q(e.conditions):void 0,Actions:e.forwardTargetGroupArn?[{Type:`forward`,TargetGroupArn:e.forwardTargetGroupArn}]:void 0});return await m().send(t)}function Ee(){let t=(0,L.c)(2),n=g(),r;return t[0]===n?r=t[1]:(r={mutationFn:De,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},t[0]=n,t[1]=r),e(r)}async function De(e){let t=new D({RuleArn:e.ruleArn});return await m().send(t)}export{me as a,se as c,B as d,we as f,ie as g,K as h,J as i,xe as l,ye as m,ve as n,R as o,le as p,Ce as r,Ee as s,fe as t,ge as u}; \ No newline at end of file +import{n as e}from"./error-banner.js";import{An as t,Cn as n,Dn as r,En as i,Mn as a,Mr as o,Nr as s,On as ee,Sn as c,Tn as l,_n as u,bn as d,gn as te,hn as ne,jn as re,jt as f,kn as p,mn as m,ps as h,vn as g,wn as _,xn as v,yn as y,ys as b}from"./index.js";var x=class extends o.classBuilder().ep(a).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`AddTags`,{}).n(`ElasticLoadBalancingV2Client`,`AddTagsCommand`).sc(m).build(){},S=class extends o.classBuilder().ep(a).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateListener`,{}).n(`ElasticLoadBalancingV2Client`,`CreateListenerCommand`).sc(ne).build(){},C=class extends o.classBuilder().ep(a).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateLoadBalancer`,{}).n(`ElasticLoadBalancingV2Client`,`CreateLoadBalancerCommand`).sc(te).build(){},w=class extends o.classBuilder().ep(a).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateRule`,{}).n(`ElasticLoadBalancingV2Client`,`CreateRuleCommand`).sc(u).build(){},T=class extends o.classBuilder().ep(a).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateTargetGroup`,{}).n(`ElasticLoadBalancingV2Client`,`CreateTargetGroupCommand`).sc(g).build(){},E=class extends o.classBuilder().ep(a).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteListener`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteListenerCommand`).sc(y).build(){},D=class extends o.classBuilder().ep(a).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteLoadBalancer`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteLoadBalancerCommand`).sc(d).build(){},O=class extends o.classBuilder().ep(a).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteRule`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteRuleCommand`).sc(v).build(){},k=class extends o.classBuilder().ep(a).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteTargetGroup`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteTargetGroupCommand`).sc(c).build(){},A=class extends o.classBuilder().ep(a).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeregisterTargets`,{}).n(`ElasticLoadBalancingV2Client`,`DeregisterTargetsCommand`).sc(n).build(){},j=class extends o.classBuilder().ep(a).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyListener`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyListenerCommand`).sc(_).build(){},M=class extends o.classBuilder().ep(a).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyLoadBalancerAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyLoadBalancerAttributesCommand`).sc(l).build(){},N=class extends o.classBuilder().ep(a).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyRule`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyRuleCommand`).sc(i).build(){},P=class extends o.classBuilder().ep(a).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyTargetGroupAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyTargetGroupAttributesCommand`).sc(r).build(){},F=class extends o.classBuilder().ep(a).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`RegisterTargets`,{}).n(`ElasticLoadBalancingV2Client`,`RegisterTargetsCommand`).sc(ee).build(){},I=class extends o.classBuilder().ep(a).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`RemoveTags`,{}).n(`ElasticLoadBalancingV2Client`,`RemoveTagsCommand`).sc(p).build(){},L=class extends o.classBuilder().ep(a).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`SetSecurityGroups`,{}).n(`ElasticLoadBalancingV2Client`,`SetSecurityGroupsCommand`).sc(t).build(){},R=class extends o.classBuilder().ep(a).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`SetSubnets`,{}).n(`ElasticLoadBalancingV2Client`,`SetSubnetsCommand`).sc(re).build(){},z=h();function B(){let t=(0,z.c)(2),n=b(),r;return t[0]===n?r=t[1]:(r={mutationFn:V,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`]})}},t[0]=n,t[1]=r),e(r)}async function V(e){let t=new D({LoadBalancerArn:e});return await f().send(t)}function H(){let t=(0,z.c)(2),n=b(),r;return t[0]===n?r=t[1]:(r={mutationFn:U,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn,`attributes`]})}},t[0]=n,t[1]=r),e(r)}async function U(e){let t=new M({LoadBalancerArn:e.loadBalancerArn,Attributes:e.attributes.map(W)});return await f().send(t)}function W(e){return{Key:e.key,Value:e.value}}function G(){let t=(0,z.c)(2),n=b(),r;return t[0]===n?r=t[1]:(r={mutationFn:K,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`tags`]})}},t[0]=n,t[1]=r),e(r)}async function K(e){let t=new Set(e.tags.map(J)),n=e.initialKeys.filter(e=>!t.has(e)),r=f();e.tags.length>0&&await r.send(new x({ResourceArns:[e.resourceArn],Tags:e.tags.map(q)})),n.length>0&&await r.send(new I({ResourceArns:[e.resourceArn],TagKeys:n}))}function q(e){return{Key:e.key,Value:e.value}}function J(e){return e.key}function ie(){let t=(0,z.c)(2),n=b(),r;return t[0]===n?r=t[1]:(r={mutationFn:Y,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn]})}},t[0]=n,t[1]=r),e(r)}async function Y(e){let t=new L({LoadBalancerArn:e.loadBalancerArn,SecurityGroups:e.securityGroupIds});return await f().send(t)}function ae(){let t=(0,z.c)(2),n=b(),r;return t[0]===n?r=t[1]:(r={mutationFn:oe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn]})}},t[0]=n,t[1]=r),e(r)}async function oe(e){let t=new R({LoadBalancerArn:e.loadBalancerArn,Subnets:e.subnetIds});return await f().send(t)}function se(){let t=(0,z.c)(2),n=b(),r;return t[0]===n?r=t[1]:(r={mutationFn:ce,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},t[0]=n,t[1]=r),e(r)}async function ce(e){let t=e.tags.filter(ue).map(le),n=e.healthCheck.protocol===`HTTP`,r=new T({Name:e.name,Protocol:e.protocol,Port:e.port,VpcId:e.vpcId,TargetType:`instance`,HealthCheckProtocol:e.healthCheck.protocol,HealthCheckPath:n?e.healthCheck.path:void 0,HealthCheckPort:e.healthCheck.port,HealthCheckIntervalSeconds:e.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:e.healthCheck.timeoutSeconds,HealthyThresholdCount:e.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:e.healthCheck.unhealthyThresholdCount,Matcher:n?{HttpCode:e.healthCheck.matcher}:void 0,Tags:t.length>0?t:void 0});return await f().send(r)}function le(e){return{Key:e.key,Value:e.value}}function ue(e){return e.key.length>0}function de(){let t=(0,z.c)(2),n=b(),r;return t[0]===n?r=t[1]:(r={mutationFn:fe,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},t[0]=n,t[1]=r),e(r)}async function fe(e){let t=new k({TargetGroupArn:e});return await f().send(t)}function pe(){let t=(0,z.c)(2),n=b(),r;return t[0]===n?r=t[1]:(r={mutationFn:me,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`attributes`]})}},t[0]=n,t[1]=r),e(r)}async function me(e){let t=new P({TargetGroupArn:e.targetGroupArn,Attributes:e.attributes.map(he)});return await f().send(t)}function he(e){return{Key:e.key,Value:e.value}}function X(e,t,n){return!(e===`HTTPS`||e===`TLS`)||!t?{}:{Certificates:[{CertificateArn:t}],SslPolicy:e===`HTTPS`?n:void 0}}function ge(){let t=(0,z.c)(2),n=b(),r;return t[0]===n?r=t[1]:(r={mutationFn:_e,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},t[0]=n,t[1]=r),e(r)}async function _e(e){let t=[{Type:`forward`,TargetGroupArn:e.defaultTargetGroupArn}],n=new S({LoadBalancerArn:e.loadBalancerArn,Protocol:e.protocol,Port:e.port,DefaultActions:t,...X(e.protocol,e.certificateArn,e.sslPolicy)});return await f().send(n)}function ve(){let t=(0,z.c)(2),n=b(),r;return t[0]===n?r=t[1]:(r={mutationFn:ye,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`]})}},t[0]=n,t[1]=r),e(r)}async function ye(e){let t=new E({ListenerArn:e});return await f().send(t)}function be(){let t=(0,z.c)(2),n=b(),r;return t[0]===n?r=t[1]:(r={mutationFn:xe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},t[0]=n,t[1]=r),e(r)}async function xe(e){let t=[{Type:`forward`,TargetGroupArn:e.defaultTargetGroupArn}],n=new j({ListenerArn:e.listenerArn,Protocol:e.protocol,Port:e.port,DefaultActions:t,...X(e.protocol,e.certificateArn,e.sslPolicy)});return await f().send(n)}function Se(){let t=b();return e({mutationFn:async e=>{let t=f(),n=[],r=``;try{let i=e.listener.existingTargetGroupArn;if(e.listener.targetGroupMode===`new`){let a=e.listener.newTargetGroup;if(!a)throw Error(`internal error: new target group requested but no data supplied`);r=`creating target group`;let o=a.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value})),s=a.healthCheck.protocol===`HTTP`;if(i=(await t.send(new T({Name:a.name,Protocol:a.protocol,Port:a.port,VpcId:a.vpcId,TargetType:`instance`,HealthCheckProtocol:a.healthCheck.protocol,HealthCheckPath:s?a.healthCheck.path:void 0,HealthCheckPort:a.healthCheck.port,HealthCheckIntervalSeconds:a.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:a.healthCheck.timeoutSeconds,HealthyThresholdCount:a.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:a.healthCheck.unhealthyThresholdCount,Matcher:s?{HttpCode:a.healthCheck.matcher}:void 0,Tags:o.length>0?o:void 0}))).TargetGroups?.[0]?.TargetGroupArn,!i)throw Error(`Target group was created but no ARN was returned by the API`);n.push({type:`Target Group`,id:i})}if(!i)throw Error(`Target group selection is required`);r=`creating load balancer`;let a=e.lb.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value})),o=(await t.send(new C({Name:e.lb.name,Scheme:e.lb.scheme,Type:e.lb.type,IpAddressType:`ipv4`,Subnets:e.lb.subnetIds,SecurityGroups:e.lb.securityGroupIds.length>0?e.lb.securityGroupIds:void 0,Tags:a.length>0?a:void 0}))).LoadBalancers?.[0]?.LoadBalancerArn;if(!o)throw Error(`Load balancer was created but no ARN was returned by the API`);return n.push({type:`Load Balancer`,id:o}),r=`creating listener`,await t.send(new S({LoadBalancerArn:o,Protocol:e.listener.protocol,Port:e.listener.port,DefaultActions:[{Type:`forward`,TargetGroupArn:i}],...X(e.listener.protocol,e.listener.certificateArn,e.listener.sslPolicy)})),n.push({type:`Listener`,id:void 0}),{loadBalancerArn:o,created:n}}catch(e){return{loadBalancerArn:void 0,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:r}}},onSettled:()=>{t.invalidateQueries({queryKey:[`elbv2`]})}})}function Z(e){return e.map(e=>({Id:e.id,Port:e.port}))}function Ce(){let t=(0,z.c)(2),n=b(),r;return t[0]===n?r=t[1]:(r={mutationFn:we,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},t[0]=n,t[1]=r),e(r)}async function we(e){let t=new F({TargetGroupArn:e.targetGroupArn,Targets:Z(e.targets)});return await f().send(t)}function Q(){let t=(0,z.c)(2),n=b(),r;return t[0]===n?r=t[1]:(r={mutationFn:Te,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},t[0]=n,t[1]=r),e(r)}async function Te(e){let t=new A({TargetGroupArn:e.targetGroupArn,Targets:Z(e.targets)});return await f().send(t)}function $(e){return e.map(e=>{switch(e.field){case`host-header`:return{Field:e.field,HostHeaderConfig:{Values:e.values}};case`path-pattern`:return{Field:e.field,PathPatternConfig:{Values:e.values}};case`http-header`:return{Field:e.field,HttpHeaderConfig:{HttpHeaderName:e.httpHeaderName??``,Values:e.values}};case`http-request-method`:return{Field:e.field,HttpRequestMethodConfig:{Values:e.values}};case`source-ip`:return{Field:e.field,SourceIpConfig:{Values:e.values}};case`query-string`:return{Field:e.field,QueryStringConfig:{Values:(e.queryStringPairs??[]).map(e=>({Key:e.key&&e.key.length>0?e.key:void 0,Value:e.value}))}};default:return{Field:e.field,Values:e.values}}})}function Ee(){let t=(0,z.c)(2),n=b(),r;return t[0]===n?r=t[1]:(r={mutationFn:De,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},t[0]=n,t[1]=r),e(r)}async function De(e){let t=[{Type:`forward`,TargetGroupArn:e.forwardTargetGroupArn}],n=new w({ListenerArn:e.listenerArn,Priority:e.priority,Conditions:$(e.conditions),Actions:t});return await f().send(n)}function Oe(){let t=(0,z.c)(2),n=b(),r;return t[0]===n?r=t[1]:(r={mutationFn:ke,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},t[0]=n,t[1]=r),e(r)}async function ke(e){let t=new N({RuleArn:e.ruleArn,Conditions:e.conditions?$(e.conditions):void 0,Actions:e.forwardTargetGroupArn?[{Type:`forward`,TargetGroupArn:e.forwardTargetGroupArn}]:void 0});return await f().send(t)}function Ae(){let t=(0,z.c)(2),n=b(),r;return t[0]===n?r=t[1]:(r={mutationFn:je,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},t[0]=n,t[1]=r),e(r)}async function je(e){let t=new O({RuleArn:e.ruleArn});return await f().send(t)}export{G as _,ve as a,de as c,H as d,Oe as f,ae as g,ie as h,se as i,Q as l,Ce as m,Se as n,B as o,pe as p,Ee as r,Ae as s,ge as t,be as u}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/elbv22.js b/spinifex/services/spinifexui/frontend/dist/assets/elbv22.js index b63171720..9873bf86e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/elbv22.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/elbv22.js @@ -1 +1 @@ -import{_i as e,bi as t,mi as n,pi as r,vi as i,yi as a}from"./index.js";var o=/^(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])$/,s=t().min(1,`Name is required`).max(32,`Name must be 32 characters or less`).regex(o,`Name may contain only letters, digits, and hyphens; must start and end with alphanumeric`).refine(e=>!e.startsWith(`internal-`),`Name cannot start with 'internal-'`),c=t().min(1,`Name is required`).max(32,`Name must be 32 characters or less`).regex(o,`Name may contain only letters, digits, and hyphens; must start and end with alphanumeric`),l=e().int(`Port must be a whole number`).min(1,`Port must be at least 1`).max(65535,`Port must be at most 65535`),u=i({key:t().min(1,`Tag key is required`).max(128),value:t().max(256)}),d=i({protocol:r([`HTTP`,`TCP`]),path:t().min(1,`Path is required`).max(1024),port:t().min(1),intervalSeconds:e().int().min(5).max(300),timeoutSeconds:e().int().min(2).max(120),healthyThresholdCount:e().int().min(2).max(10),unhealthyThresholdCount:e().int().min(2).max(10),matcher:t().regex(/^\d{3}(?:[-,]\d{3})*$/,`Matcher must be HTTP codes like 200 or 200-299 or 200,201`)}),f=i({name:c,protocol:r([`HTTP`,`HTTPS`,`TCP`,`UDP`,`TLS`,`TCP_UDP`]),port:l,vpcId:t().min(1,`VPC is required`),healthCheck:d,tags:n(u)}),p=`ELBSecurityPolicy-2016-08`,m=[`application`,`network`],h=[`HTTP`,`HTTPS`],g=[`TCP`,`UDP`,`TLS`,`TCP_UDP`],_=[...h,...g];function v(e){return e===`network`?g:h}function y(e){return e===`network`?`TCP`:`HTTP`}function b(e){return e===`HTTPS`||e===`TLS`}var x=i({protocol:r(_),port:l,defaultTargetGroupArn:t().min(1,`Target group is required`),certificateArn:t().optional(),sslPolicy:t().optional()}).superRefine((e,t)=>{b(e.protocol)&&!e.certificateArn&&t.addIssue({code:`custom`,path:[`certificateArn`],message:`A certificate is required for HTTPS and TLS`})}),S=/^[!-~]+$/,C=i({field:r([`host-header`,`path-pattern`,`http-header`,`http-request-method`,`source-ip`,`query-string`]),httpHeaderName:t().max(40).optional(),rawValues:t().min(1,`At least one value is required`).max(640,`Too many values`)}).superRefine((e,t)=>{e.field===`http-header`&&!e.httpHeaderName&&t.addIssue({code:`custom`,path:[`httpHeaderName`],message:`Header name is required`});let n=e.rawValues.split(/[\n,]/).map(e=>e.trim()).filter(e=>e.length>0);if(n.length===0||n.length>5){t.addIssue({code:`custom`,path:[`rawValues`],message:`Enter 1 to 5 values, comma or newline separated`});return}for(let e of n)if(!S.test(e)){t.addIssue({code:`custom`,path:[`rawValues`],message:`Value "${e}" contains whitespace or non-ASCII characters`});return}}),w=i({priority:e().int(`Priority must be a whole number`).min(1,`Priority must be at least 1`).max(5e4,`Priority must be at most 50000`),conditions:n(C).min(1,`At least one condition is required`).max(5,`Up to 5 conditions per rule`),forwardTargetGroupArn:t().min(1,`Target group is required`)}),T=i({name:s,type:r(m),scheme:r([`internet-facing`,`internal`]),vpcId:t().min(1,`VPC is required`),subnetIds:n(t()).min(1,`At least 1 subnet is required`),securityGroupIds:n(t()),tags:n(u),listener:i({protocol:r(_),port:l,targetGroupMode:r([`new`,`existing`]),existingTargetGroupArn:t().optional(),certificateArn:t().optional(),sslPolicy:t().optional()}).superRefine((e,t)=>{e.targetGroupMode===`existing`&&!e.existingTargetGroupArn&&t.addIssue({code:`custom`,path:[`existingTargetGroupArn`],message:`Target group is required`}),b(e.protocol)&&!e.certificateArn&&t.addIssue({code:`custom`,path:[`certificateArn`],message:`A certificate is required for HTTPS/TLS`})})});i({targets:n(i({instanceId:t().min(1,`Instance is required`),port:l.optional()})).min(1,`At least one target is required`)}),a(t(),t());export{f as a,v as c,w as i,x as n,y as o,T as r,b as s,p as t}; \ No newline at end of file +import{bi as e,hi as t,mi as n,vi as r,xi as i,yi as a}from"./index.js";var o=/^(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])$/,s=i().min(1,`Name is required`).max(32,`Name must be 32 characters or less`).regex(o,`Name may contain only letters, digits, and hyphens; must start and end with alphanumeric`).refine(e=>!e.startsWith(`internal-`),`Name cannot start with 'internal-'`),c=i().min(1,`Name is required`).max(32,`Name must be 32 characters or less`).regex(o,`Name may contain only letters, digits, and hyphens; must start and end with alphanumeric`),l=r().int(`Port must be a whole number`).min(1,`Port must be at least 1`).max(65535,`Port must be at most 65535`),u=a({key:i().min(1,`Tag key is required`).max(128),value:i().max(256)}),d=a({protocol:n([`HTTP`,`TCP`]),path:i().min(1,`Path is required`).max(1024),port:i().min(1),intervalSeconds:r().int().min(5).max(300),timeoutSeconds:r().int().min(2).max(120),healthyThresholdCount:r().int().min(2).max(10),unhealthyThresholdCount:r().int().min(2).max(10),matcher:i().regex(/^\d{3}(?:[-,]\d{3})*$/,`Matcher must be HTTP codes like 200 or 200-299 or 200,201`)}),f=a({name:c,protocol:n([`HTTP`,`HTTPS`,`TCP`,`UDP`,`TLS`,`TCP_UDP`]),port:l,vpcId:i().min(1,`VPC is required`),healthCheck:d,tags:t(u)}),p=`ELBSecurityPolicy-2016-08`,m=[`application`,`network`],h=[`HTTP`,`HTTPS`],g=[`TCP`,`UDP`,`TLS`,`TCP_UDP`],_=[...h,...g];function v(e){return e===`network`?g:h}function y(e){return e===`network`?`TCP`:`HTTP`}function b(e){return e===`HTTPS`||e===`TLS`}var x=a({protocol:n(_),port:l,defaultTargetGroupArn:i().min(1,`Target group is required`),certificateArn:i().optional(),sslPolicy:i().optional()}).superRefine((e,t)=>{b(e.protocol)&&!e.certificateArn&&t.addIssue({code:`custom`,path:[`certificateArn`],message:`A certificate is required for HTTPS and TLS`})}),S=/^[!-~]+$/,C=a({field:n([`host-header`,`path-pattern`,`http-header`,`http-request-method`,`source-ip`,`query-string`]),httpHeaderName:i().max(40).optional(),rawValues:i().min(1,`At least one value is required`).max(640,`Too many values`)}).superRefine((e,t)=>{e.field===`http-header`&&!e.httpHeaderName&&t.addIssue({code:`custom`,path:[`httpHeaderName`],message:`Header name is required`});let n=e.rawValues.split(/[\n,]/).map(e=>e.trim()).filter(e=>e.length>0);if(n.length===0||n.length>5){t.addIssue({code:`custom`,path:[`rawValues`],message:`Enter 1 to 5 values, comma or newline separated`});return}for(let e of n)if(!S.test(e)){t.addIssue({code:`custom`,path:[`rawValues`],message:`Value "${e}" contains whitespace or non-ASCII characters`});return}}),w=a({priority:r().int(`Priority must be a whole number`).min(1,`Priority must be at least 1`).max(5e4,`Priority must be at most 50000`),conditions:t(C).min(1,`At least one condition is required`).max(5,`Up to 5 conditions per rule`),forwardTargetGroupArn:i().min(1,`Target group is required`)}),T=a({name:s,type:n(m),scheme:n([`internet-facing`,`internal`]),vpcId:i().min(1,`VPC is required`),subnetIds:t(i()).min(1,`At least 1 subnet is required`),securityGroupIds:t(i()),tags:t(u),listener:a({protocol:n(_),port:l,targetGroupMode:n([`new`,`existing`]),existingTargetGroupArn:i().optional(),certificateArn:i().optional(),sslPolicy:i().optional()}).superRefine((e,t)=>{e.targetGroupMode===`existing`&&!e.existingTargetGroupArn&&t.addIssue({code:`custom`,path:[`existingTargetGroupArn`],message:`Target group is required`}),b(e.protocol)&&!e.certificateArn&&t.addIssue({code:`custom`,path:[`certificateArn`],message:`A certificate is required for HTTPS/TLS`})})});a({targets:t(a({instanceId:i().min(1,`Instance is required`),port:l.optional()})).min(1,`At least one target is required`)}),e(i(),i());export{f as a,v as c,w as i,x as n,y as o,T as r,b as s,p as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/error-banner.js b/spinifex/services/spinifexui/frontend/dist/assets/error-banner.js index c828921e9..e15e3f895 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/error-banner.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/error-banner.js @@ -1 +1 @@ -import{Cs as e,Es as t,Ls as n,Ms as r,Ns as i,Os as a,bs as o,fs as s,vs as c,xs as l,ys as u,zs as d}from"./index.js";var f=class extends n{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let n=this.options;this.options=this.#e.defaultMutationOptions(e),r(this.options,n)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&t(n.mutationKey)!==t(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??l();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(t){e.batch(()=>{if(this.#r&&this.hasListeners()){let e=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type===`success`){try{this.#r.onSuccess?.(t.data,e,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(t.data,null,e,n,r)}catch(e){Promise.reject(e)}}else if(t?.type===`error`){try{this.#r.onError?.(t.error,e,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,t.error,e,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},p=d(o(),1);function m(t,n){let r=c(n),[o]=p.useState(()=>new f(r,t));p.useEffect(()=>{o.setOptions(t)},[o,t]);let s=p.useSyncExternalStore(p.useCallback(t=>o.subscribe(e.batchCalls(t)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),l=p.useCallback((e,t)=>{o.mutate(e,t).catch(a)},[o]);if(s.error&&i(o.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}var h=s(),g=u();function _(e){let t=(0,h.c)(7),{msg:n,error:r}=e,i;r&&(i=r.name===`Error`?r.message:r.name);let a;t[0]===n?a=t[1]:(a=n&&(0,g.jsx)(`h2`,{className:`text-sm text-destructive`,children:n}),t[0]=n,t[1]=a);let o;t[2]===i?o=t[3]:(o=i&&(0,g.jsx)(`p`,{className:`text-sm text-destructive`,children:i}),t[2]=i,t[3]=o);let s;return t[4]!==a||t[5]!==o?(s=(0,g.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[a,o]}),t[4]=a,t[5]=o,t[6]=s):s=t[6],s}export{m as n,_ as t}; \ No newline at end of file +import{Bs as e,Ds as t,Ns as n,Ps as r,Rs as i,Ss as a,bs as o,ks as s,ps as c,ws as l,xs as u,ys as d}from"./index.js";var f=class extends i{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let r=this.options;this.options=this.#e.defaultMutationOptions(e),n(this.options,r)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&t(r.mutationKey)!==t(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??a();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){l.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},p=e(u(),1);function m(e,t){let n=d(t),[i]=p.useState(()=>new f(n,e));p.useEffect(()=>{i.setOptions(e)},[i,e]);let a=p.useSyncExternalStore(p.useCallback(e=>i.subscribe(l.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=p.useCallback((e,t)=>{i.mutate(e,t).catch(s)},[i]);if(a.error&&r(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}var h=c(),g=o();function _(e){let t=(0,h.c)(7),{msg:n,error:r}=e,i;r&&(i=r.name===`Error`?r.message:r.name);let a;t[0]===n?a=t[1]:(a=n&&(0,g.jsx)(`h2`,{className:`text-sm text-destructive`,children:n}),t[0]=n,t[1]=a);let o;t[2]===i?o=t[3]:(o=i&&(0,g.jsx)(`p`,{className:`text-sm text-destructive`,children:i}),t[2]=i,t[3]=o);let s;return t[4]!==a||t[5]!==o?(s=(0,g.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[a,o]}),t[4]=a,t[5]=o,t[6]=s):s=t[6],s}export{m as n,_ as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/event-streams.js b/spinifex/services/spinifexui/frontend/dist/assets/event-streams.js index edaa7fe77..f5e8a26a2 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/event-streams.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/event-streams.js @@ -1 +1 @@ -import{$r as e,Zr as t}from"./index.js";var n=class{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:t,deserializer:n,serdeContext:r,defaultContentType:i}){this.marshaller=e,this.serializer=t,this.deserializer=n,this.serdeContext=r,this.defaultContentType=i}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){let r=this.marshaller,i=t.getEventStreamMember(),a=t.getMemberSchema(i),o=this.serializer,s=this.defaultContentType,c=Symbol(`initialRequestMarker`),l={async*[Symbol.asyncIterator](){if(n){let e={":event-type":{type:`string`,value:`initial-request`},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:s}};o.write(t,n);let r=o.flush();yield{[c]:!0,headers:e,body:r}}for await(let t of e)yield t}};return r.serialize(l,e=>{if(e[c])return{headers:e.headers,body:e.body};let t=``;for(let n in e)if(n!==`__type`){t=n;break}let{additionalHeaders:n,body:r,eventType:i,explicitPayloadContentType:o}=this.writeEventBody(t,a,e);return{headers:{":event-type":{type:`string`,value:i},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:o??s},...n},body:r}})}async deserializeEventStream({response:e,responseSchema:n,initialResponseContainer:r}){let i=this.marshaller,a=n.getEventStreamMember(),o=n.getMemberSchema(a).getMemberSchemas(),s=Symbol(`initialResponseMarker`),c=i.deserialize(e.body,async e=>{let r=``;for(let t in e)if(t!==`__type`){r=t;break}let i=e[r].body;if(r===`initial-response`){let e=await this.deserializer.read(n,i);return delete e[a],{[s]:!0,...e}}else if(r in o){let n=o[r];if(n.isStructSchema()){let a={},o=!1;for(let[s,c]of n.structIterator()){let{eventHeader:n,eventPayload:l}=c.getMergedTraits();if(o||=!!(n||l),l)c.isBlobSchema()?a[s]=i:c.isStringSchema()?a[s]=(this.serdeContext?.utf8Encoder??t)(i):c.isStructSchema()&&(a[s]=await this.deserializer.read(c,i));else if(n){let t=e[r].headers[s]?.value;t!=null&&(c.isNumericSchema()?t&&typeof t==`object`&&`bytes`in t?a[s]=BigInt(t.toString()):a[s]=Number(t):a[s]=t)}}if(o)return{[r]:a};if(i.byteLength===0)return{[r]:{}}}return{[r]:await this.deserializer.read(n,i)}}else return{$unknown:e}}),l=c[Symbol.asyncIterator](),u=await l.next();if(u.done)return c;if(u.value?.[s]){if(!n)throw Error(`@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.`);for(let e in u.value)r[e]=u.value[e]}return{async*[Symbol.asyncIterator](){for(u?.value?.[s]||(yield u.value);;){let{done:e,value:t}=await l.next();if(e)break;yield t}}}}writeEventBody(t,n,r){let i=this.serializer,a=t,o=null,s,c=n.getSchema()[4].includes(t),l={};if(c){let e=n.getMemberSchema(t);if(e.isStructSchema()){for(let[n,i]of e.structIterator()){let{eventHeader:e,eventPayload:a}=i.getMergedTraits();if(a)o=n;else if(e){let e=r[t][n],a=`binary`;i.isNumericSchema()?a=(-2)**31<=e&&e<=2**31-1?`integer`:`long`:i.isTimestampSchema()?a=`timestamp`:i.isStringSchema()?a=`string`:i.isBooleanSchema()&&(a=`boolean`),e!=null&&(l[n]={type:a,value:e},delete r[t][n])}}if(o!==null){let n=e.getMemberSchema(o);n.isBlobSchema()?s=`application/octet-stream`:n.isStringSchema()&&(s=`text/plain`),i.write(n,r[t][o])}else i.write(e,r[t])}else if(e.isUnitSchema())i.write(e,{});else throw Error(`@smithy/core/event-streams - non-struct member not supported in event stream union.`)}else{let[e,n]=r[t];a=e,i.write(15,n)}let u=i.flush()??new Uint8Array;return{body:typeof u==`string`?(this.serdeContext?.utf8Decoder??e)(u):u,eventType:a,explicitPayloadContentType:s,additionalHeaders:l}}};export{n as EventStreamSerde}; \ No newline at end of file +import{Qr as e,ei as t}from"./index.js";var n=class{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:t,deserializer:n,serdeContext:r,defaultContentType:i}){this.marshaller=e,this.serializer=t,this.deserializer=n,this.serdeContext=r,this.defaultContentType=i}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){let r=this.marshaller,i=t.getEventStreamMember(),a=t.getMemberSchema(i),o=this.serializer,s=this.defaultContentType,c=Symbol(`initialRequestMarker`),l={async*[Symbol.asyncIterator](){if(n){let e={":event-type":{type:`string`,value:`initial-request`},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:s}};o.write(t,n);let r=o.flush();yield{[c]:!0,headers:e,body:r}}for await(let t of e)yield t}};return r.serialize(l,e=>{if(e[c])return{headers:e.headers,body:e.body};let t=``;for(let n in e)if(n!==`__type`){t=n;break}let{additionalHeaders:n,body:r,eventType:i,explicitPayloadContentType:o}=this.writeEventBody(t,a,e);return{headers:{":event-type":{type:`string`,value:i},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:o??s},...n},body:r}})}async deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:r}){let i=this.marshaller,a=n.getEventStreamMember(),o=n.getMemberSchema(a).getMemberSchemas(),s=Symbol(`initialResponseMarker`),c=i.deserialize(t.body,async t=>{let r=``;for(let e in t)if(e!==`__type`){r=e;break}let i=t[r].body;if(r===`initial-response`){let e=await this.deserializer.read(n,i);return delete e[a],{[s]:!0,...e}}else if(r in o){let n=o[r];if(n.isStructSchema()){let a={},o=!1;for(let[s,c]of n.structIterator()){let{eventHeader:n,eventPayload:l}=c.getMergedTraits();if(o||=!!(n||l),l)c.isBlobSchema()?a[s]=i:c.isStringSchema()?a[s]=(this.serdeContext?.utf8Encoder??e)(i):c.isStructSchema()&&(a[s]=await this.deserializer.read(c,i));else if(n){let e=t[r].headers[s]?.value;e!=null&&(c.isNumericSchema()?e&&typeof e==`object`&&`bytes`in e?a[s]=BigInt(e.toString()):a[s]=Number(e):a[s]=e)}}if(o)return{[r]:a};if(i.byteLength===0)return{[r]:{}}}return{[r]:await this.deserializer.read(n,i)}}else return{$unknown:t}}),l=c[Symbol.asyncIterator](),u=await l.next();if(u.done)return c;if(u.value?.[s]){if(!n)throw Error(`@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.`);for(let e in u.value)r[e]=u.value[e]}return{async*[Symbol.asyncIterator](){for(u?.value?.[s]||(yield u.value);;){let{done:e,value:t}=await l.next();if(e)break;yield t}}}}writeEventBody(e,n,r){let i=this.serializer,a=e,o=null,s,c=n.getSchema()[4].includes(e),l={};if(c){let t=n.getMemberSchema(e);if(t.isStructSchema()){for(let[n,i]of t.structIterator()){let{eventHeader:t,eventPayload:a}=i.getMergedTraits();if(a)o=n;else if(t){let t=r[e][n],a=`binary`;i.isNumericSchema()?a=(-2)**31<=t&&t<=2**31-1?`integer`:`long`:i.isTimestampSchema()?a=`timestamp`:i.isStringSchema()?a=`string`:i.isBooleanSchema()&&(a=`boolean`),t!=null&&(l[n]={type:a,value:t},delete r[e][n])}}if(o!==null){let n=t.getMemberSchema(o);n.isBlobSchema()?s=`application/octet-stream`:n.isStringSchema()&&(s=`text/plain`),i.write(n,r[e][o])}else i.write(t,r[e])}else if(t.isUnitSchema())i.write(t,{});else throw Error(`@smithy/core/event-streams - non-struct member not supported in event stream union.`)}else{let[t,n]=r[e];a=t,i.write(15,n)}let u=i.flush()??new Uint8Array;return{body:typeof u==`string`?(this.serdeContext?.utf8Decoder??t)(u):u,eventType:a,explicitPayloadContentType:s,additionalHeaders:l}}};export{n as EventStreamSerde}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/field.js b/spinifex/services/spinifexui/frontend/dist/assets/field.js index c53194993..150c49390 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/field.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/field.js @@ -1 +1 @@ -import{Ao as e,bs as t,fs as n,ns as r,ys as i}from"./index.js";t();var a=n(),o=i();function s(t){let n=(0,a.c)(8),r,i;n[0]===t?(r=n[1],i=n[2]):({className:r,...i}=t,n[0]=t,n[1]=r,n[2]=i);let s;n[3]===r?s=n[4]:(s=e(`group/field-group @container/field-group flex w-full flex-col gap-4 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4`,r),n[3]=r,n[4]=s);let c;return n[5]!==i||n[6]!==s?(c=(0,o.jsx)(`div`,{className:s,"data-slot":`field-group`,...i}),n[5]=i,n[6]=s,n[7]=c):c=n[7],c}var c=r(`group/field flex w-full gap-2 data-[invalid=true]:text-destructive`,{variants:{orientation:{vertical:`flex-col [&>*]:w-full [&>.sr-only]:w-auto`,horizontal:`flex-row items-center has-[>[data-slot=field-content]]:items-start [&>[data-slot=field-label]]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`,responsive:`flex-col @md/field-group:flex-row @md/field-group:items-center @md/field-group:has-[>[data-slot=field-content]]:items-start [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto @md/field-group:[&>[data-slot=field-label]]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`}},defaultVariants:{orientation:`vertical`}});function l(t){let n=(0,a.c)(11),r,i,s;n[0]===t?(r=n[1],i=n[2],s=n[3]):({className:r,orientation:s,...i}=t,n[0]=t,n[1]=r,n[2]=i,n[3]=s);let l=s===void 0?`vertical`:s,u;n[4]!==r||n[5]!==l?(u=e(c({orientation:l}),r),n[4]=r,n[5]=l,n[6]=u):u=n[6];let d;return n[7]!==l||n[8]!==i||n[9]!==u?(d=(0,o.jsx)(`div`,{className:u,"data-orientation":l,"data-slot":`field`,role:`group`,...i}),n[7]=l,n[8]=i,n[9]=u,n[10]=d):d=n[10],d}function u(t){let n=(0,a.c)(8),r,i;n[0]===t?(r=n[1],i=n[2]):({className:r,...i}=t,n[0]=t,n[1]=r,n[2]=i);let s;n[3]===r?s=n[4]:(s=e(`flex w-fit items-center gap-2 text-xs/relaxed leading-snug font-medium group-data-[disabled=true]/field:opacity-50`,r),n[3]=r,n[4]=s);let c;return n[5]!==i||n[6]!==s?(c=(0,o.jsx)(`div`,{className:s,"data-slot":`field-label`,...i}),n[5]=i,n[6]=s,n[7]=c):c=n[7],c}function d(t){let n=(0,a.c)(8),r,i;n[0]===t?(r=n[1],i=n[2]):({className:r,...i}=t,n[0]=t,n[1]=r,n[2]=i);let s;n[3]===r?s=n[4]:(s=e(`text-left text-xs/relaxed leading-normal font-normal text-muted-foreground group-has-data-[orientation=horizontal]/field:text-balance [[data-variant=legend]+&]:-mt-1.5`,`last:mt-0 nth-last-2:-mt-1`,`[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,r),n[3]=r,n[4]=s);let c;return n[5]!==i||n[6]!==s?(c=(0,o.jsx)(`p`,{className:s,"data-slot":`field-description`,...i}),n[5]=i,n[6]=s,n[7]=c):c=n[7],c}function f(t){let n=(0,a.c)(15),r,i,s,c;n[0]===t?(r=n[1],i=n[2],s=n[3],c=n[4]):({className:i,children:r,errors:s,...c}=t,n[0]=t,n[1]=r,n[2]=i,n[3]=s,n[4]=c);let l;bb0:{if(r){l=r;break bb0}if(!s?.length){l=null;break bb0}let e;n[5]===s?e=n[6]:(e=[...new Map(s.map(m)).values()],n[5]=s,n[6]=e);let t=e;if(t?.length===1){l=t[0]?.message;break bb0}let i;n[7]===t?i=n[8]:(i=(0,o.jsx)(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:t.map(p)}),n[7]=t,n[8]=i),l=i}let u=l;if(!u)return null;let d;n[9]===i?d=n[10]:(d=e(`text-xs/relaxed font-normal text-destructive`,i),n[9]=i,n[10]=d);let f;return n[11]!==u||n[12]!==c||n[13]!==d?(f=(0,o.jsx)(`div`,{className:d,"data-slot":`field-error`,role:`alert`,...c,children:u}),n[11]=u,n[12]=c,n[13]=d,n[14]=f):f=n[14],f}function p(e){return e?.message&&(0,o.jsx)(`li`,{children:e.message},e.message)}function m(e){return[e?.message,e]}export{u as a,s as i,d as n,f as r,l as t}; \ No newline at end of file +import{bs as e,jo as t,ps as n,rs as r,xs as i}from"./index.js";i();var a=n(),o=e();function s(e){let n=(0,a.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let s;n[3]===r?s=n[4]:(s=t(`group/field-group @container/field-group flex w-full flex-col gap-4 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4`,r),n[3]=r,n[4]=s);let c;return n[5]!==i||n[6]!==s?(c=(0,o.jsx)(`div`,{className:s,"data-slot":`field-group`,...i}),n[5]=i,n[6]=s,n[7]=c):c=n[7],c}var c=r(`group/field flex w-full gap-2 data-[invalid=true]:text-destructive`,{variants:{orientation:{vertical:`flex-col [&>*]:w-full [&>.sr-only]:w-auto`,horizontal:`flex-row items-center has-[>[data-slot=field-content]]:items-start [&>[data-slot=field-label]]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`,responsive:`flex-col @md/field-group:flex-row @md/field-group:items-center @md/field-group:has-[>[data-slot=field-content]]:items-start [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto @md/field-group:[&>[data-slot=field-label]]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`}},defaultVariants:{orientation:`vertical`}});function l(e){let n=(0,a.c)(11),r,i,s;n[0]===e?(r=n[1],i=n[2],s=n[3]):({className:r,orientation:s,...i}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=s);let l=s===void 0?`vertical`:s,u;n[4]!==r||n[5]!==l?(u=t(c({orientation:l}),r),n[4]=r,n[5]=l,n[6]=u):u=n[6];let d;return n[7]!==l||n[8]!==i||n[9]!==u?(d=(0,o.jsx)(`div`,{className:u,"data-orientation":l,"data-slot":`field`,role:`group`,...i}),n[7]=l,n[8]=i,n[9]=u,n[10]=d):d=n[10],d}function u(e){let n=(0,a.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let s;n[3]===r?s=n[4]:(s=t(`flex w-fit items-center gap-2 text-xs/relaxed leading-snug font-medium group-data-[disabled=true]/field:opacity-50`,r),n[3]=r,n[4]=s);let c;return n[5]!==i||n[6]!==s?(c=(0,o.jsx)(`div`,{className:s,"data-slot":`field-label`,...i}),n[5]=i,n[6]=s,n[7]=c):c=n[7],c}function d(e){let n=(0,a.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let s;n[3]===r?s=n[4]:(s=t(`text-left text-xs/relaxed leading-normal font-normal text-muted-foreground group-has-data-[orientation=horizontal]/field:text-balance [[data-variant=legend]+&]:-mt-1.5`,`last:mt-0 nth-last-2:-mt-1`,`[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,r),n[3]=r,n[4]=s);let c;return n[5]!==i||n[6]!==s?(c=(0,o.jsx)(`p`,{className:s,"data-slot":`field-description`,...i}),n[5]=i,n[6]=s,n[7]=c):c=n[7],c}function f(e){let n=(0,a.c)(15),r,i,s,c;n[0]===e?(r=n[1],i=n[2],s=n[3],c=n[4]):({className:i,children:r,errors:s,...c}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=s,n[4]=c);let l;bb0:{if(r){l=r;break bb0}if(!s?.length){l=null;break bb0}let e;n[5]===s?e=n[6]:(e=[...new Map(s.map(m)).values()],n[5]=s,n[6]=e);let t=e;if(t?.length===1){l=t[0]?.message;break bb0}let i;n[7]===t?i=n[8]:(i=(0,o.jsx)(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:t.map(p)}),n[7]=t,n[8]=i),l=i}let u=l;if(!u)return null;let d;n[9]===i?d=n[10]:(d=t(`text-xs/relaxed font-normal text-destructive`,i),n[9]=i,n[10]=d);let f;return n[11]!==u||n[12]!==c||n[13]!==d?(f=(0,o.jsx)(`div`,{className:d,"data-slot":`field-error`,role:`alert`,...c,children:u}),n[11]=u,n[12]=c,n[13]=d,n[14]=f):f=n[14],f}function p(e){return e?.message&&(0,o.jsx)(`li`,{children:e.message},e.message)}function m(e){return[e?.message,e]}export{u as a,s as i,d as n,f as r,l as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/form-actions.js b/spinifex/services/spinifexui/frontend/dist/assets/form-actions.js index 892667a8a..1229b3749 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/form-actions.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/form-actions.js @@ -1 +1 @@ -import{Do as e,fs as t,ys as n}from"./index.js";var r=t(),i=n();function a(t){let n=(0,r.c)(9),{isSubmitting:a,isPending:o,onCancel:s,submitLabel:c,pendingLabel:l}=t,u=a||o,d;n[0]!==u||n[1]!==s?(d=(0,i.jsx)(e,{disabled:u,onClick:s,type:`button`,variant:`outline`,children:`Cancel`}),n[0]=u,n[1]=s,n[2]=d):d=n[2];let f=u?l:c,p;n[3]!==u||n[4]!==f?(p=(0,i.jsx)(e,{disabled:u,type:`submit`,children:f}),n[3]=u,n[4]=f,n[5]=p):p=n[5];let m;return n[6]!==d||n[7]!==p?(m=(0,i.jsxs)(`div`,{className:`flex gap-2`,children:[d,p]}),n[6]=d,n[7]=p,n[8]=m):m=n[8],m}export{a as t}; \ No newline at end of file +import{Oo as e,bs as t,ps as n}from"./index.js";var r=n(),i=t();function a(t){let n=(0,r.c)(9),{isSubmitting:a,isPending:o,onCancel:s,submitLabel:c,pendingLabel:l}=t,u=a||o,d;n[0]!==u||n[1]!==s?(d=(0,i.jsx)(e,{disabled:u,onClick:s,type:`button`,variant:`outline`,children:`Cancel`}),n[0]=u,n[1]=s,n[2]=d):d=n[2];let f=u?l:c,p;n[3]!==u||n[4]!==f?(p=(0,i.jsx)(e,{disabled:u,type:`submit`,children:f}),n[3]=u,n[4]=f,n[5]=p):p=n[5];let m;return n[6]!==d||n[7]!==p?(m=(0,i.jsxs)(`div`,{className:`flex gap-2`,children:[d,p]}),n[6]=d,n[7]=p,n[8]=m):m=n[8],m}export{a as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/iam.js b/spinifex/services/spinifexui/frontend/dist/assets/iam.js index cc26d3626..83f3b9cd2 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/iam.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/iam.js @@ -1 +1 @@ -import{n as e}from"./error-banner.js";import{$t as t,Mr as n,Mt as r,Qt as i,Xt as a,Zt as o,an as s,cn as c,dn as l,en as ee,fn as u,fs as d,in as f,jr as p,ln as m,nn as h,on as g,pn as _,rn as v,sn as y,tn as b,un as x,vs as S}from"./index.js";var C=class extends p.classBuilder().ep(_).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AddRoleToInstanceProfile`,{}).n(`IAMClient`,`AddRoleToInstanceProfileCommand`).sc(a).build(){},w=class extends p.classBuilder().ep(_).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AttachRolePolicy`,{}).n(`IAMClient`,`AttachRolePolicyCommand`).sc(o).build(){},T=class extends p.classBuilder().ep(_).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AttachUserPolicy`,{}).n(`IAMClient`,`AttachUserPolicyCommand`).sc(i).build(){},E=class extends p.classBuilder().ep(_).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateAccessKey`,{}).n(`IAMClient`,`CreateAccessKeyCommand`).sc(t).build(){},D=class extends p.classBuilder().ep(_).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateInstanceProfile`,{}).n(`IAMClient`,`CreateInstanceProfileCommand`).sc(ee).build(){},O=class extends p.classBuilder().ep(_).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreatePolicy`,{}).n(`IAMClient`,`CreatePolicyCommand`).sc(b).build(){},k=class extends p.classBuilder().ep(_).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateRole`,{}).n(`IAMClient`,`CreateRoleCommand`).sc(h).build(){},A=class extends p.classBuilder().ep(_).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateUser`,{}).n(`IAMClient`,`CreateUserCommand`).sc(v).build(){},j=class extends p.classBuilder().ep(_).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteAccessKey`,{}).n(`IAMClient`,`DeleteAccessKeyCommand`).sc(f).build(){},M=class extends p.classBuilder().ep(_).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteInstanceProfile`,{}).n(`IAMClient`,`DeleteInstanceProfileCommand`).sc(s).build(){},N=class extends p.classBuilder().ep(_).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeletePolicy`,{}).n(`IAMClient`,`DeletePolicyCommand`).sc(g).build(){},P=class extends p.classBuilder().ep(_).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteRole`,{}).n(`IAMClient`,`DeleteRoleCommand`).sc(y).build(){},F=class extends p.classBuilder().ep(_).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteUser`,{}).n(`IAMClient`,`DeleteUserCommand`).sc(c).build(){},I=class extends p.classBuilder().ep(_).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DetachRolePolicy`,{}).n(`IAMClient`,`DetachRolePolicyCommand`).sc(m).build(){},L=class extends p.classBuilder().ep(_).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DetachUserPolicy`,{}).n(`IAMClient`,`DetachUserPolicyCommand`).sc(x).build(){},R=class extends p.classBuilder().ep(_).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`RemoveRoleFromInstanceProfile`,{}).n(`IAMClient`,`RemoveRoleFromInstanceProfileCommand`).sc(l).build(){},z=class extends p.classBuilder().ep(_).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`UpdateAccessKey`,{}).n(`IAMClient`,`UpdateAccessKeyCommand`).sc(u).build(){},B=d();function V(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:H,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},t[0]=n,t[1]=r),e(r)}async function H(e){let t=new A({UserName:e.userName,Path:e.path||void 0});return await r().send(t)}function U(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:W,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},t[0]=n,t[1]=r),e(r)}async function W(e){let t=new F({UserName:e});return await r().send(t)}function G(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:te,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},t[0]=n,t[1]=r),e(r)}async function te(e){let t=new E({UserName:e});return await r().send(t)}function K(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:q,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},t[0]=n,t[1]=r),e(r)}async function q(e){let{userName:t,accessKeyId:n}=e,i=new j({UserName:t,AccessKeyId:n});return await r().send(i)}function J(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:Y,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},t[0]=n,t[1]=r),e(r)}async function Y(e){let{userName:t,accessKeyId:n,status:i}=e,a=new z({UserName:t,AccessKeyId:n,Status:i});return await r().send(a)}function X(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:Z,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},t[0]=n,t[1]=r),e(r)}async function Z(e){let t=new O({PolicyName:e.policyName,Description:e.description||void 0,PolicyDocument:e.policyDocument});return await r().send(t)}function Q(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:ne,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},t[0]=n,t[1]=r),e(r)}async function ne(e){let t=new N({PolicyArn:e});return await r().send(t)}function re(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:ie,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},t[0]=n,t[1]=r),e(r)}async function ie(e){let{userName:t,policyArn:n}=e,i=new T({UserName:t,PolicyArn:n});return await r().send(i)}function ae(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:oe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},t[0]=n,t[1]=r),e(r)}async function oe(e){let{userName:t,policyArn:n}=e,i=new L({UserName:t,PolicyArn:n});return await r().send(i)}function se(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:ce,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`roles`]})}},t[0]=n,t[1]=r),e(r)}async function ce(e){let t=new k({RoleName:e.roleName,Path:e.path||void 0,Description:e.description||void 0,AssumeRolePolicyDocument:e.assumeRolePolicyDocument});return await r().send(t)}function le(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:ue,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`roles`]})}},t[0]=n,t[1]=r),e(r)}async function ue(e){let t=new P({RoleName:e});return await r().send(t)}function de(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:fe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-role-policies`]})}},t[0]=n,t[1]=r),e(r)}async function fe(e){let{roleName:t,policyArn:n}=e,i=new w({RoleName:t,PolicyArn:n});return await r().send(i)}function pe(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:$,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-role-policies`]})}},t[0]=n,t[1]=r),e(r)}async function $(e){let{roleName:t,policyArn:n}=e,i=new I({RoleName:t,PolicyArn:n});return await r().send(i)}function me(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:he,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},t[0]=n,t[1]=r),e(r)}async function he(e){let t=new D({InstanceProfileName:e.instanceProfileName,Path:e.path||void 0});return await r().send(t)}function ge(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:_e,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},t[0]=n,t[1]=r),e(r)}async function _e(e){let t=new M({InstanceProfileName:e});return await r().send(t)}function ve(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:ye,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},t[0]=n,t[1]=r),e(r)}async function ye(e){let{instanceProfileName:t,roleName:n}=e,i=new C({InstanceProfileName:t,RoleName:n});return await r().send(i)}function be(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:xe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},t[0]=n,t[1]=r),e(r)}async function xe(e){let{instanceProfileName:t,roleName:n}=e,i=new R({InstanceProfileName:t,RoleName:n});return await r().send(i)}export{J as _,me as a,V as c,Q as d,le as f,be as g,ae as h,G as i,K as l,pe as m,de as n,X as o,U as p,re as r,se as s,ve as t,ge as u}; \ No newline at end of file +import{n as e}from"./error-banner.js";import{$t as t,Mr as n,Mt as r,Nr as i,Qt as a,Xt as o,Zt as s,an as c,cn as ee,dn as l,en as u,fn as d,in as f,ln as p,nn as m,on as h,pn as g,ps as _,rn as v,sn as y,tn as b,un as x,ys as S}from"./index.js";var C=class extends n.classBuilder().ep(g).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AddRoleToInstanceProfile`,{}).n(`IAMClient`,`AddRoleToInstanceProfileCommand`).sc(o).build(){},w=class extends n.classBuilder().ep(g).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AttachRolePolicy`,{}).n(`IAMClient`,`AttachRolePolicyCommand`).sc(s).build(){},T=class extends n.classBuilder().ep(g).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AttachUserPolicy`,{}).n(`IAMClient`,`AttachUserPolicyCommand`).sc(a).build(){},E=class extends n.classBuilder().ep(g).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateAccessKey`,{}).n(`IAMClient`,`CreateAccessKeyCommand`).sc(t).build(){},D=class extends n.classBuilder().ep(g).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateInstanceProfile`,{}).n(`IAMClient`,`CreateInstanceProfileCommand`).sc(u).build(){},O=class extends n.classBuilder().ep(g).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreatePolicy`,{}).n(`IAMClient`,`CreatePolicyCommand`).sc(b).build(){},k=class extends n.classBuilder().ep(g).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateRole`,{}).n(`IAMClient`,`CreateRoleCommand`).sc(m).build(){},A=class extends n.classBuilder().ep(g).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateUser`,{}).n(`IAMClient`,`CreateUserCommand`).sc(v).build(){},j=class extends n.classBuilder().ep(g).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteAccessKey`,{}).n(`IAMClient`,`DeleteAccessKeyCommand`).sc(f).build(){},M=class extends n.classBuilder().ep(g).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteInstanceProfile`,{}).n(`IAMClient`,`DeleteInstanceProfileCommand`).sc(c).build(){},N=class extends n.classBuilder().ep(g).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeletePolicy`,{}).n(`IAMClient`,`DeletePolicyCommand`).sc(h).build(){},P=class extends n.classBuilder().ep(g).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteRole`,{}).n(`IAMClient`,`DeleteRoleCommand`).sc(y).build(){},F=class extends n.classBuilder().ep(g).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteUser`,{}).n(`IAMClient`,`DeleteUserCommand`).sc(ee).build(){},I=class extends n.classBuilder().ep(g).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DetachRolePolicy`,{}).n(`IAMClient`,`DetachRolePolicyCommand`).sc(p).build(){},L=class extends n.classBuilder().ep(g).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DetachUserPolicy`,{}).n(`IAMClient`,`DetachUserPolicyCommand`).sc(x).build(){},R=class extends n.classBuilder().ep(g).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`RemoveRoleFromInstanceProfile`,{}).n(`IAMClient`,`RemoveRoleFromInstanceProfileCommand`).sc(l).build(){},z=class extends n.classBuilder().ep(g).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`UpdateAccessKey`,{}).n(`IAMClient`,`UpdateAccessKeyCommand`).sc(d).build(){},B=_();function V(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:H,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},t[0]=n,t[1]=r),e(r)}async function H(e){let t=new A({UserName:e.userName,Path:e.path||void 0});return await r().send(t)}function U(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:W,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},t[0]=n,t[1]=r),e(r)}async function W(e){let t=new F({UserName:e});return await r().send(t)}function te(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:G,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},t[0]=n,t[1]=r),e(r)}async function G(e){let t=new E({UserName:e});return await r().send(t)}function K(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:q,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},t[0]=n,t[1]=r),e(r)}async function q(e){let{userName:t,accessKeyId:n}=e,i=new j({UserName:t,AccessKeyId:n});return await r().send(i)}function J(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:Y,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},t[0]=n,t[1]=r),e(r)}async function Y(e){let{userName:t,accessKeyId:n,status:i}=e,a=new z({UserName:t,AccessKeyId:n,Status:i});return await r().send(a)}function X(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:Z,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},t[0]=n,t[1]=r),e(r)}async function Z(e){let t=new O({PolicyName:e.policyName,Description:e.description||void 0,PolicyDocument:e.policyDocument});return await r().send(t)}function Q(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:ne,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},t[0]=n,t[1]=r),e(r)}async function ne(e){let t=new N({PolicyArn:e});return await r().send(t)}function re(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:ie,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},t[0]=n,t[1]=r),e(r)}async function ie(e){let{userName:t,policyArn:n}=e,i=new T({UserName:t,PolicyArn:n});return await r().send(i)}function ae(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:oe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},t[0]=n,t[1]=r),e(r)}async function oe(e){let{userName:t,policyArn:n}=e,i=new L({UserName:t,PolicyArn:n});return await r().send(i)}function se(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:ce,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`roles`]})}},t[0]=n,t[1]=r),e(r)}async function ce(e){let t=new k({RoleName:e.roleName,Path:e.path||void 0,Description:e.description||void 0,AssumeRolePolicyDocument:e.assumeRolePolicyDocument});return await r().send(t)}function le(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:ue,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`roles`]})}},t[0]=n,t[1]=r),e(r)}async function ue(e){let t=new P({RoleName:e});return await r().send(t)}function de(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:fe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-role-policies`]})}},t[0]=n,t[1]=r),e(r)}async function fe(e){let{roleName:t,policyArn:n}=e,i=new w({RoleName:t,PolicyArn:n});return await r().send(i)}function pe(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:$,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-role-policies`]})}},t[0]=n,t[1]=r),e(r)}async function $(e){let{roleName:t,policyArn:n}=e,i=new I({RoleName:t,PolicyArn:n});return await r().send(i)}function me(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:he,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},t[0]=n,t[1]=r),e(r)}async function he(e){let t=new D({InstanceProfileName:e.instanceProfileName,Path:e.path||void 0});return await r().send(t)}function ge(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:_e,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},t[0]=n,t[1]=r),e(r)}async function _e(e){let t=new M({InstanceProfileName:e});return await r().send(t)}function ve(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:ye,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},t[0]=n,t[1]=r),e(r)}async function ye(e){let{instanceProfileName:t,roleName:n}=e,i=new C({InstanceProfileName:t,RoleName:n});return await r().send(i)}function be(){let t=(0,B.c)(2),n=S(),r;return t[0]===n?r=t[1]:(r={mutationFn:xe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},t[0]=n,t[1]=r),e(r)}async function xe(e){let{instanceProfileName:t,roleName:n}=e,i=new R({InstanceProfileName:t,RoleName:n});return await r().send(i)}export{J as _,me as a,V as c,Q as d,le as f,be as g,ae as h,te as i,K as l,pe as m,de as n,X as o,U as p,re as r,se as s,ve as t,ge as u}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/iam2.js b/spinifex/services/spinifexui/frontend/dist/assets/iam2.js index 19abf4d49..d3c19ebc1 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/iam2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/iam2.js @@ -1 +1 @@ -import{bi as e,vi as t}from"./index.js";var n=t({userName:e().min(1,`User name is required`).max(64,`User name must be 64 characters or less`).regex(/^[\w+=,.@-]+$/,`User name contains invalid characters`),path:e().optional()}),r=t({policyName:e().min(1,`Policy name is required`).max(128,`Policy name must be 128 characters or less`).regex(/^[\w+=,.@-]+$/,`Policy name contains invalid characters`),description:e().optional(),policyDocument:e().min(1,`Policy document is required`).refine(e=>{try{return JSON.parse(e),!0}catch{return!1}},{message:`Policy document must be valid JSON`})}),i=JSON.stringify({Version:`2012-10-17`,Statement:[{Effect:`Allow`,Principal:{Service:`ec2.amazonaws.com`},Action:`sts:AssumeRole`}]},null,2),a=t({roleName:e().min(1,`Role name is required`).max(64,`Role name must be 64 characters or less`).regex(/^[\w+=,.@-]+$/,`Role name contains invalid characters`),path:e().optional(),description:e().optional(),assumeRolePolicyDocument:e().min(1,`Trust policy is required`).refine(e=>{try{return JSON.parse(e),!0}catch{return!1}},{message:`Trust policy must be valid JSON`})}),o=t({instanceProfileName:e().min(1,`Instance profile name is required`).max(128,`Instance profile name must be 128 characters or less`).regex(/^[\w+=,.@-]+$/,`Instance profile name contains invalid characters`),path:e().optional()});export{n as a,a as i,o as n,r,i as t}; \ No newline at end of file +import{xi as e,yi as t}from"./index.js";var n=t({userName:e().min(1,`User name is required`).max(64,`User name must be 64 characters or less`).regex(/^[\w+=,.@-]+$/,`User name contains invalid characters`),path:e().optional()}),r=t({policyName:e().min(1,`Policy name is required`).max(128,`Policy name must be 128 characters or less`).regex(/^[\w+=,.@-]+$/,`Policy name contains invalid characters`),description:e().optional(),policyDocument:e().min(1,`Policy document is required`).refine(e=>{try{return JSON.parse(e),!0}catch{return!1}},{message:`Policy document must be valid JSON`})}),i=JSON.stringify({Version:`2012-10-17`,Statement:[{Effect:`Allow`,Principal:{Service:`ec2.amazonaws.com`},Action:`sts:AssumeRole`}]},null,2),a=t({roleName:e().min(1,`Role name is required`).max(64,`Role name must be 64 characters or less`).regex(/^[\w+=,.@-]+$/,`Role name contains invalid characters`),path:e().optional(),description:e().optional(),assumeRolePolicyDocument:e().min(1,`Trust policy is required`).refine(e=>{try{return JSON.parse(e),!0}catch{return!1}},{message:`Trust policy must be valid JSON`})}),o=t({instanceProfileName:e().min(1,`Instance profile name is required`).max(128,`Instance profile name must be 128 characters or less`).regex(/^[\w+=,.@-]+$/,`Instance profile name contains invalid characters`),path:e().optional()});export{n as a,a as i,o as n,r,i as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair.js b/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair.js index de56196fa..b3cd747d6 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair.js @@ -1,3 +1,3 @@ -import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as ee}from"./cli-command-panel.js";import{V as te}from"./ec2.js";import{Da as n,fs as r,hs as i,ys as a}from"./index.js";import{a as o,i as s,t as c}from"./zod.js";import{t as l}from"./form-actions.js";import{t as ne}from"./page-heading.js";import{a as u,r as d,t as f}from"./field.js";import{g as p}from"./ec22.js";import{t as m}from"./textarea.js";var h=r(),g=a();function _(){let r=(0,h.c)(57),a=i(),_=te(),v;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(v={resolver:c(p)},r[0]=v):v=r[0];let{handleSubmit:y,register:b,control:x,formState:S}=s(v),{errors:C,isSubmitting:w}=S,T;r[1]===x?T=r[2]:(T={control:x},r[1]=x,r[2]=T);let E=o(T),D;r[3]===E?D=r[4]:(D=e=>e?E[e]:void 0,r[3]=E,r[4]=D);let O=D,k;r[5]!==_||r[6]!==a?(k=async e=>{await _.mutateAsync(e),a({to:`/ec2/describe-key-pairs`})},r[5]=_,r[6]=a,r[7]=k):k=r[7];let A=k,j,M;r[8]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,g.jsx)(t,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),M=(0,g.jsx)(ne,{title:`Import Key Pair`}),r[8]=j,r[9]=M):(j=r[8],M=r[9]);let N;r[10]===_.error?N=r[11]:(N=_.error&&(0,g.jsx)(e,{error:_.error,msg:`Failed to import key pair`}),r[10]=_.error,r[11]=N);let P;r[12]!==y||r[13]!==A?(P=y(A),r[12]=y,r[13]=A,r[14]=P):P=r[14];let F;r[15]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,g.jsx)(u,{children:(0,g.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),r[15]=F):F=r[15];let I=!!C.keyName,L;r[16]===b?L=r[17]:(L=b(`keyName`),r[16]=b,r[17]=L);let R;r[18]!==I||r[19]!==L?(R=(0,g.jsx)(n,{"aria-invalid":I,id:`keyName`,placeholder:`my-key-pair…`,...L}),r[18]=I,r[19]=L,r[20]=R):R=r[20];let z;r[21]===C.keyName?z=r[22]:(z=(0,g.jsx)(d,{errors:[C.keyName]}),r[21]=C.keyName,r[22]=z);let B;r[23]!==R||r[24]!==z?(B=(0,g.jsxs)(f,{children:[F,R,z]}),r[23]=R,r[24]=z,r[25]=B):B=r[25];let V,H;r[26]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,g.jsx)(u,{children:(0,g.jsx)(`label`,{htmlFor:`publicKeyMaterial`,children:`Public Key`})}),H=(0,g.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`publicKey-description`,children:`Paste your OpenSSH public key (e.g. the contents of id_rsa.pub)`}),r[26]=V,r[27]=H):(V=r[26],H=r[27]);let U=!!C.publicKeyMaterial,W;r[28]===b?W=r[29]:(W=b(`publicKeyMaterial`),r[28]=b,r[29]=W);let G;r[30]!==U||r[31]!==W?(G=(0,g.jsx)(m,{"aria-invalid":U,id:`publicKeyMaterial`,placeholder:`ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC…`,rows:8,...W}),r[30]=U,r[31]=W,r[32]=G):G=r[32];let K;r[33]===C.publicKeyMaterial?K=r[34]:(K=(0,g.jsx)(d,{errors:[C.publicKeyMaterial]}),r[33]=C.publicKeyMaterial,r[34]=K);let q;r[35]!==G||r[36]!==K?(q=(0,g.jsxs)(f,{children:[V,H,G,K]}),r[35]=G,r[36]=K,r[37]=q):q=r[37];let J;r[38]===O?J=r[39]:(J=re(O),r[38]=O,r[39]=J);let Y;r[40]===J?Y=r[41]:(Y=(0,g.jsx)(ee,{commands:J}),r[40]=J,r[41]=Y);let X;r[42]===a?X=r[43]:(X=async()=>await a({to:`/ec2/describe-key-pairs`}),r[42]=a,r[43]=X);let Z;r[44]!==_.isPending||r[45]!==w||r[46]!==X?(Z=(0,g.jsx)(l,{isPending:_.isPending,isSubmitting:w,onCancel:X,pendingLabel:`Importing…`,submitLabel:`Import Key Pair`}),r[44]=_.isPending,r[45]=w,r[46]=X,r[47]=Z):Z=r[47];let Q;r[48]!==B||r[49]!==q||r[50]!==Y||r[51]!==Z||r[52]!==P?(Q=(0,g.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:P,children:[B,q,Y,Z]}),r[48]=B,r[49]=q,r[50]=Y,r[51]=Z,r[52]=P,r[53]=Q):Q=r[53];let $;return r[54]!==Q||r[55]!==N?($=(0,g.jsxs)(g.Fragment,{children:[j,M,N,Q]}),r[54]=Q,r[55]=N,r[56]=$):$=r[56],$}function re(e){let t=e(`keyName`);return[{label:`Import Key Pair`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 import-key-pair`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as ee}from"./cli-command-panel.js";import{V as te}from"./ec2.js";import{Oa as n,bs as r,gs as i,ps as a}from"./index.js";import{a as o,i as s,t as c}from"./zod.js";import{t as l}from"./form-actions.js";import{t as ne}from"./page-heading.js";import{a as u,r as d,t as f}from"./field.js";import{g as p}from"./ec22.js";import{t as m}from"./textarea.js";var h=a(),g=r();function _(){let r=(0,h.c)(57),a=i(),_=te(),v;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(v={resolver:c(p)},r[0]=v):v=r[0];let{handleSubmit:y,register:b,control:x,formState:S}=s(v),{errors:C,isSubmitting:w}=S,T;r[1]===x?T=r[2]:(T={control:x},r[1]=x,r[2]=T);let E=o(T),D;r[3]===E?D=r[4]:(D=e=>e?E[e]:void 0,r[3]=E,r[4]=D);let O=D,k;r[5]!==_||r[6]!==a?(k=async e=>{await _.mutateAsync(e),a({to:`/ec2/describe-key-pairs`})},r[5]=_,r[6]=a,r[7]=k):k=r[7];let A=k,j,M;r[8]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,g.jsx)(t,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),M=(0,g.jsx)(ne,{title:`Import Key Pair`}),r[8]=j,r[9]=M):(j=r[8],M=r[9]);let N;r[10]===_.error?N=r[11]:(N=_.error&&(0,g.jsx)(e,{error:_.error,msg:`Failed to import key pair`}),r[10]=_.error,r[11]=N);let P;r[12]!==y||r[13]!==A?(P=y(A),r[12]=y,r[13]=A,r[14]=P):P=r[14];let F;r[15]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,g.jsx)(u,{children:(0,g.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),r[15]=F):F=r[15];let I=!!C.keyName,L;r[16]===b?L=r[17]:(L=b(`keyName`),r[16]=b,r[17]=L);let R;r[18]!==I||r[19]!==L?(R=(0,g.jsx)(n,{"aria-invalid":I,id:`keyName`,placeholder:`my-key-pair…`,...L}),r[18]=I,r[19]=L,r[20]=R):R=r[20];let z;r[21]===C.keyName?z=r[22]:(z=(0,g.jsx)(d,{errors:[C.keyName]}),r[21]=C.keyName,r[22]=z);let B;r[23]!==R||r[24]!==z?(B=(0,g.jsxs)(f,{children:[F,R,z]}),r[23]=R,r[24]=z,r[25]=B):B=r[25];let V,H;r[26]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,g.jsx)(u,{children:(0,g.jsx)(`label`,{htmlFor:`publicKeyMaterial`,children:`Public Key`})}),H=(0,g.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`publicKey-description`,children:`Paste your OpenSSH public key (e.g. the contents of id_rsa.pub)`}),r[26]=V,r[27]=H):(V=r[26],H=r[27]);let U=!!C.publicKeyMaterial,W;r[28]===b?W=r[29]:(W=b(`publicKeyMaterial`),r[28]=b,r[29]=W);let G;r[30]!==U||r[31]!==W?(G=(0,g.jsx)(m,{"aria-invalid":U,id:`publicKeyMaterial`,placeholder:`ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC…`,rows:8,...W}),r[30]=U,r[31]=W,r[32]=G):G=r[32];let K;r[33]===C.publicKeyMaterial?K=r[34]:(K=(0,g.jsx)(d,{errors:[C.publicKeyMaterial]}),r[33]=C.publicKeyMaterial,r[34]=K);let q;r[35]!==G||r[36]!==K?(q=(0,g.jsxs)(f,{children:[V,H,G,K]}),r[35]=G,r[36]=K,r[37]=q):q=r[37];let J;r[38]===O?J=r[39]:(J=re(O),r[38]=O,r[39]=J);let Y;r[40]===J?Y=r[41]:(Y=(0,g.jsx)(ee,{commands:J}),r[40]=J,r[41]=Y);let X;r[42]===a?X=r[43]:(X=async()=>await a({to:`/ec2/describe-key-pairs`}),r[42]=a,r[43]=X);let Z;r[44]!==_.isPending||r[45]!==w||r[46]!==X?(Z=(0,g.jsx)(l,{isPending:_.isPending,isSubmitting:w,onCancel:X,pendingLabel:`Importing…`,submitLabel:`Import Key Pair`}),r[44]=_.isPending,r[45]=w,r[46]=X,r[47]=Z):Z=r[47];let Q;r[48]!==B||r[49]!==q||r[50]!==Y||r[51]!==Z||r[52]!==P?(Q=(0,g.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:P,children:[B,q,Y,Z]}),r[48]=B,r[49]=q,r[50]=Y,r[51]=Z,r[52]=P,r[53]=Q):Q=r[53];let $;return r[54]!==Q||r[55]!==N?($=(0,g.jsxs)(g.Fragment,{children:[j,M,N,Q]}),r[54]=Q,r[55]=N,r[56]=$):$=r[56],$}function re(e){let t=e(`keyName`);return[{label:`Import Key Pair`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 import-key-pair`},{type:`flag`,value:` \\ --key-name`},{type:`value`,value:` ${(typeof t==`string`?t:``)||``}`},{type:`flag`,value:` \\ --public-key-material`},{type:`value`,value:` fileb://path/to/key.pub`}]}]}export{_ as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/index.browser.js b/spinifex/services/spinifexui/frontend/dist/assets/index.browser.js index 115909bf5..04c6d1427 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/index.browser.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/index.browser.js @@ -1 +1 @@ -import{Gr as e,Wr as t}from"./index.js";var n=class{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:t,deserializer:n,serdeContext:r,defaultContentType:i}){this.marshaller=e,this.serializer=t,this.deserializer=n,this.serdeContext=r,this.defaultContentType=i}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){let r=this.marshaller,i=t.getEventStreamMember(),a=t.getMemberSchema(i),o=this.serializer,s=this.defaultContentType,c=Symbol(`initialRequestMarker`),l={async*[Symbol.asyncIterator](){if(n){let e={":event-type":{type:`string`,value:`initial-request`},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:s}};o.write(t,n);let r=o.flush();yield{[c]:!0,headers:e,body:r}}for await(let t of e)yield t}};return r.serialize(l,e=>{if(e[c])return{headers:e.headers,body:e.body};let t=``;for(let n in e)if(n!==`__type`){t=n;break}let{additionalHeaders:n,body:r,eventType:i,explicitPayloadContentType:o}=this.writeEventBody(t,a,e);return{headers:{":event-type":{type:`string`,value:i},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:o??s},...n},body:r}})}async deserializeEventStream({response:e,responseSchema:n,initialResponseContainer:r}){let i=this.marshaller,a=n.getEventStreamMember(),o=n.getMemberSchema(a).getMemberSchemas(),s=Symbol(`initialResponseMarker`),c=i.deserialize(e.body,async e=>{let r=``;for(let t in e)if(t!==`__type`){r=t;break}let i=e[r].body;if(r===`initial-response`){let e=await this.deserializer.read(n,i);return delete e[a],{[s]:!0,...e}}else if(r in o){let n=o[r];if(n.isStructSchema()){let a={},o=!1;for(let[s,c]of n.structIterator()){let{eventHeader:n,eventPayload:l}=c.getMergedTraits();if(o||=!!(n||l),l)c.isBlobSchema()?a[s]=i:c.isStringSchema()?a[s]=(this.serdeContext?.utf8Encoder??t)(i):c.isStructSchema()&&(a[s]=await this.deserializer.read(c,i));else if(n){let t=e[r].headers[s]?.value;t!=null&&(c.isNumericSchema()?t&&typeof t==`object`&&`bytes`in t?a[s]=BigInt(t.toString()):a[s]=Number(t):a[s]=t)}}if(o)return{[r]:a};if(i.byteLength===0)return{[r]:{}}}return{[r]:await this.deserializer.read(n,i)}}else return{$unknown:e}}),l=c[Symbol.asyncIterator](),u=await l.next();if(u.done)return c;if(u.value?.[s]){if(!n)throw Error(`@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.`);for(let e in u.value)r[e]=u.value[e]}return{async*[Symbol.asyncIterator](){for(u?.value?.[s]||(yield u.value);;){let{done:e,value:t}=await l.next();if(e)break;yield t}}}}writeEventBody(t,n,r){let i=this.serializer,a=t,o=null,s,c=n.getSchema()[4].includes(t),l={};if(c){let e=n.getMemberSchema(t);if(e.isStructSchema()){for(let[n,i]of e.structIterator()){let{eventHeader:e,eventPayload:a}=i.getMergedTraits();if(a)o=n;else if(e){let e=r[t][n],a=`binary`;i.isNumericSchema()?a=(-2)**31<=e&&e<=2**31-1?`integer`:`long`:i.isTimestampSchema()?a=`timestamp`:i.isStringSchema()?a=`string`:i.isBooleanSchema()&&(a=`boolean`),e!=null&&(l[n]={type:a,value:e},delete r[t][n])}}if(o!==null){let n=e.getMemberSchema(o);n.isBlobSchema()?s=`application/octet-stream`:n.isStringSchema()&&(s=`text/plain`),i.write(n,r[t][o])}else i.write(e,r[t])}else if(e.isUnitSchema())i.write(e,{});else throw Error(`@smithy/core/event-streams - non-struct member not supported in event stream union.`)}else{let[e,n]=r[t];a=e,i.write(15,n)}let u=i.flush()??new Uint8Array;return{body:typeof u==`string`?(this.serdeContext?.utf8Decoder??e)(u):u,eventType:a,explicitPayloadContentType:s,additionalHeaders:l}}};export{n as EventStreamSerde}; \ No newline at end of file +import{Gr as e,Kr as t}from"./index.js";var n=class{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:t,deserializer:n,serdeContext:r,defaultContentType:i}){this.marshaller=e,this.serializer=t,this.deserializer=n,this.serdeContext=r,this.defaultContentType=i}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){let r=this.marshaller,i=t.getEventStreamMember(),a=t.getMemberSchema(i),o=this.serializer,s=this.defaultContentType,c=Symbol(`initialRequestMarker`),l={async*[Symbol.asyncIterator](){if(n){let e={":event-type":{type:`string`,value:`initial-request`},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:s}};o.write(t,n);let r=o.flush();yield{[c]:!0,headers:e,body:r}}for await(let t of e)yield t}};return r.serialize(l,e=>{if(e[c])return{headers:e.headers,body:e.body};let t=``;for(let n in e)if(n!==`__type`){t=n;break}let{additionalHeaders:n,body:r,eventType:i,explicitPayloadContentType:o}=this.writeEventBody(t,a,e);return{headers:{":event-type":{type:`string`,value:i},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:o??s},...n},body:r}})}async deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:r}){let i=this.marshaller,a=n.getEventStreamMember(),o=n.getMemberSchema(a).getMemberSchemas(),s=Symbol(`initialResponseMarker`),c=i.deserialize(t.body,async t=>{let r=``;for(let e in t)if(e!==`__type`){r=e;break}let i=t[r].body;if(r===`initial-response`){let e=await this.deserializer.read(n,i);return delete e[a],{[s]:!0,...e}}else if(r in o){let n=o[r];if(n.isStructSchema()){let a={},o=!1;for(let[s,c]of n.structIterator()){let{eventHeader:n,eventPayload:l}=c.getMergedTraits();if(o||=!!(n||l),l)c.isBlobSchema()?a[s]=i:c.isStringSchema()?a[s]=(this.serdeContext?.utf8Encoder??e)(i):c.isStructSchema()&&(a[s]=await this.deserializer.read(c,i));else if(n){let e=t[r].headers[s]?.value;e!=null&&(c.isNumericSchema()?e&&typeof e==`object`&&`bytes`in e?a[s]=BigInt(e.toString()):a[s]=Number(e):a[s]=e)}}if(o)return{[r]:a};if(i.byteLength===0)return{[r]:{}}}return{[r]:await this.deserializer.read(n,i)}}else return{$unknown:t}}),l=c[Symbol.asyncIterator](),u=await l.next();if(u.done)return c;if(u.value?.[s]){if(!n)throw Error(`@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.`);for(let e in u.value)r[e]=u.value[e]}return{async*[Symbol.asyncIterator](){for(u?.value?.[s]||(yield u.value);;){let{done:e,value:t}=await l.next();if(e)break;yield t}}}}writeEventBody(e,n,r){let i=this.serializer,a=e,o=null,s,c=n.getSchema()[4].includes(e),l={};if(c){let t=n.getMemberSchema(e);if(t.isStructSchema()){for(let[n,i]of t.structIterator()){let{eventHeader:t,eventPayload:a}=i.getMergedTraits();if(a)o=n;else if(t){let t=r[e][n],a=`binary`;i.isNumericSchema()?a=(-2)**31<=t&&t<=2**31-1?`integer`:`long`:i.isTimestampSchema()?a=`timestamp`:i.isStringSchema()?a=`string`:i.isBooleanSchema()&&(a=`boolean`),t!=null&&(l[n]={type:a,value:t},delete r[e][n])}}if(o!==null){let n=t.getMemberSchema(o);n.isBlobSchema()?s=`application/octet-stream`:n.isStringSchema()&&(s=`text/plain`),i.write(n,r[e][o])}else i.write(t,r[e])}else if(t.isUnitSchema())i.write(t,{});else throw Error(`@smithy/core/event-streams - non-struct member not supported in event stream union.`)}else{let[t,n]=r[e];a=t,i.write(15,n)}let u=i.flush()??new Uint8Array;return{body:typeof u==`string`?(this.serdeContext?.utf8Decoder??t)(u):u,eventType:a,explicitPayloadContentType:s,additionalHeaders:l}}};export{n as EventStreamSerde}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/index.css b/spinifex/services/spinifexui/frontend/dist/assets/index.css index db36b88aa..78752ec89 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/index.css +++ b/spinifex/services/spinifexui/frontend/dist/assets/index.css @@ -1,2 +1,2 @@ /*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */ -@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-100:#ffe2e2;--color-red-800:#9f0712;--color-red-900:#82181a;--color-amber-500:#f99c00;--color-yellow-100:#fef9c2;--color-yellow-800:#874b00;--color-yellow-900:#733e0a;--color-green-100:#dcfce7;--color-green-600:#00a544;--color-green-800:#016630;--color-green-900:#0d542b;--color-emerald-400:#00d294;--color-emerald-500:#00bb7f;--color-emerald-700:#007956;--color-blue-500:#3080ff;--color-gray-100:#f3f4f6;--color-gray-800:#1e2939;--color-zinc-100:#f4f4f5;--color-zinc-400:#9f9fa9;--color-zinc-500:#71717b;--color-zinc-800:#27272a;--color-black:#000;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-4xl:56rem;--container-6xl:72rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wider:.05em;--tracking-widest:.1em;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--radius-sm:calc(var(--radius) - 2px);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-xs:4px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}@supports (color:lab(0% 0 0)){:root,:host{--color-red-100:lab(92.243% 10.2865 3.83865);--color-red-800:lab(33.7174% 55.8993 41.0293);--color-red-900:lab(28.5139% 44.5539 29.0463);--color-amber-500:lab(72.7183% 31.8672 97.9407);--color-yellow-100:lab(97.3564% -4.51407 27.344);--color-yellow-800:lab(38.7484% 23.5833 51.4916);--color-yellow-900:lab(32.3865% 21.1273 38.5959);--color-green-100:lab(96.1861% -13.8464 6.52365);--color-green-600:lab(59.0978% -58.6621 41.2579);--color-green-800:lab(37.4616% -36.7971 22.9692);--color-green-900:lab(30.797% -29.6927 17.382);--color-emerald-400:lab(75.0771% -60.7313 19.4147);--color-emerald-500:lab(66.9756% -58.27 19.5419);--color-emerald-700:lab(44.4871% -41.0396 11.0361);--color-blue-500:lab(54.1736% 13.3369 -74.6839);--color-gray-100:lab(96.1596% -.0823438 -1.13575);--color-gray-800:lab(16.1051% -1.18239 -11.7533);--color-zinc-100:lab(96.1634% .0993311 -.364041);--color-zinc-400:lab(65.6464% 1.53497 -5.42429);--color-zinc-500:lab(47.8878% 1.65477 -5.77283);--color-zinc-800:lab(15.7305% .613764 -2.16959)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}*{scrollbar-width:thin}html,body{overscroll-behavior:none}body{background-color:var(--background);width:100%;min-height:100svh;color:var(--foreground);font-family:var(--font-sans), sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.font-mono{font-family:var(--font-mono), monospace}button:not(:disabled),[role=button]:not(:disabled){cursor:pointer}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.\@container\/field-group{container:field-group/inline-size}.\@container{container-type:inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.top-0{top:calc(var(--spacing) * 0)}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-3\.5{top:calc(var(--spacing) * 3.5)}.top-4{top:calc(var(--spacing) * 4)}.right-0{right:calc(var(--spacing) * 0)}.right-1{right:calc(var(--spacing) * 1)}.right-2{right:calc(var(--spacing) * 2)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.bottom-0{bottom:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.left-1\/2{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.order-first{order:-9999}.order-last{order:9999}.col-span-2{grid-column:span 2/span 2}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-0{margin-inline:calc(var(--spacing) * 0)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-3\.5{margin-inline:calc(var(--spacing) * 3.5)}.mx-auto{margin-inline:auto}.-my-2{margin-block:calc(var(--spacing) * -2)}.my-1{margin-block:calc(var(--spacing) * 1)}.my-2{margin-block:calc(var(--spacing) * 2)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-auto{margin-right:auto}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.field-sizing-content{field-sizing:content}.aspect-square{aspect-ratio:1}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-\[1\.2rem\]{width:1.2rem;height:1.2rem}.size-full{width:100%;height:100%}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-\[calc\(--spacing\(4\.75\)\)\]{height:calc(calc(var(--spacing) * 4.75))}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-\(--available-height\){max-height:var(--available-height)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[min\(calc\(--spacing\(72\)---spacing\(9\)\)\,calc\(var\(--available-height\)---spacing\(9\)\)\)\]{max-height:min(calc(calc(var(--spacing) * 72) - calc(var(--spacing) * 9)), calc(var(--available-height) - calc(var(--spacing) * 9)))}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-svh{min-height:100svh}.w-\(--anchor-width\){width:var(--anchor-width)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-24{width:calc(var(--spacing) * 24)}.w-32{width:calc(var(--spacing) * 32)}.w-36{width:calc(var(--spacing) * 36)}.w-48{width:calc(var(--spacing) * 48)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\(--available-width\){max-width:var(--available-width)}.max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-5{min-width:calc(var(--spacing) * 5)}.min-w-16{min-width:calc(var(--spacing) * 16)}.min-w-32{min-width:calc(var(--spacing) * 32)}.min-w-\[calc\(var\(--anchor-width\)\+--spacing\(7\)\)\]{min-width:calc(var(--anchor-width) + calc(var(--spacing) * 7))}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-\(--transform-origin\){transform-origin:var(--transform-origin)}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[calc\(-50\%-2px\)\]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-none{translate:none}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-3d{scale:var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)}.rotate-0{rotate:0deg}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)}.resize{resize:both}.resize-none{resize:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing) * 1)}.scroll-py-1{scroll-padding-block:calc(var(--spacing) * 1)}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\[minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,1fr)}.grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing) * 0)}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-px{gap:1px}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 0) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 0) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}:where(.-space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * -2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * -2) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[calc\(var\(--radius-sm\)\+2px\)\]{border-radius:calc(var(--radius-sm) + 2px)}.rounded-\[calc\(var\(--radius-sm\)-2px\)\]{border-radius:calc(var(--radius-sm) - 2px)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:calc(var(--radius) + 2px)}.rounded-md{border-radius:var(--radius)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:calc(var(--radius) + 2px);border-top-right-radius:calc(var(--radius) + 2px)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:calc(var(--radius) + 2px);border-bottom-left-radius:calc(var(--radius) + 2px)}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-bs{border-block-start-style:var(--tw-border-style);border-block-start-width:1px}.border-be{border-block-end-style:var(--tw-border-style);border-block-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-amber-500\/30{border-color:#f99c004d}@supports (color:color-mix(in lab, red, red)){.border-amber-500\/30{border-color:color-mix(in oklab, var(--color-amber-500) 30%, transparent)}}.border-blue-500\/30{border-color:#3080ff4d}@supports (color:color-mix(in lab, red, red)){.border-blue-500\/30{border-color:color-mix(in oklab, var(--color-blue-500) 30%, transparent)}}.border-border{border-color:var(--border)}.border-destructive{border-color:var(--destructive)}.border-emerald-500{border-color:var(--color-emerald-500)}.border-emerald-500\/30{border-color:#00bb7f4d}@supports (color:color-mix(in lab, red, red)){.border-emerald-500\/30{border-color:color-mix(in oklab, var(--color-emerald-500) 30%, transparent)}}.border-foreground\/10{border-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.border-foreground\/10{border-color:color-mix(in oklab, var(--foreground) 10%, transparent)}}.border-foreground\/20{border-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.border-foreground\/20{border-color:color-mix(in oklab, var(--foreground) 20%, transparent)}}.border-input{border-color:var(--input)}.border-muted{border-color:var(--muted)}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:#0000}.bg-amber-500\/10{background-color:#f99c001a}@supports (color:color-mix(in lab, red, red)){.bg-amber-500\/10{background-color:color-mix(in oklab, var(--color-amber-500) 10%, transparent)}}.bg-background{background-color:var(--background)}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab, red, red)){.bg-black\/80{background-color:color-mix(in oklab, var(--color-black) 80%, transparent)}}.bg-blue-500\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab, red, red)){.bg-blue-500\/10{background-color:color-mix(in oklab, var(--color-blue-500) 10%, transparent)}}.bg-border,.bg-border\/50{background-color:var(--border)}@supports (color:color-mix(in lab, red, red)){.bg-border\/50{background-color:color-mix(in oklab, var(--border) 50%, transparent)}}.bg-card{background-color:var(--card)}.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/10{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.bg-emerald-500\/10{background-color:#00bb7f1a}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\/10{background-color:color-mix(in oklab, var(--color-emerald-500) 10%, transparent)}}.bg-foreground{background-color:var(--foreground)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-green-100{background-color:var(--color-green-100)}.bg-input\/20{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.bg-input\/20{background-color:color-mix(in oklab, var(--input) 20%, transparent)}}.bg-muted{background-color:var(--muted)}.bg-muted-foreground\/10{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.bg-muted-foreground\/10{background-color:color-mix(in oklab, var(--muted-foreground) 10%, transparent)}}.bg-muted\/20{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/20{background-color:color-mix(in oklab, var(--muted) 20%, transparent)}}.bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/30{background-color:color-mix(in oklab, var(--muted) 30%, transparent)}}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/50{background-color:color-mix(in oklab, var(--muted) 50%, transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-red-100{background-color:var(--color-red-100)}.bg-secondary{background-color:var(--secondary)}.bg-sidebar{background-color:var(--sidebar)}.bg-sidebar-border{background-color:var(--sidebar-border)}.bg-transparent{background-color:#0000}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-clip-padding{background-clip:padding-box}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-foreground{fill:var(--foreground)}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-0{padding-inline:calc(var(--spacing) * 0)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-0{padding-bottom:calc(var(--spacing) * 0)}.pb-0\.5{padding-bottom:calc(var(--spacing) * .5)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-4{padding-left:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\/relaxed{font-size:var(--text-sm);line-height:var(--leading-relaxed)}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-xs\/relaxed{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.text-\[0\.625rem\]{font-size:.625rem}.text-\[11px\]{font-size:11px}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-500{color:var(--color-amber-500)}.text-background{color:var(--background)}.text-card-foreground{color:var(--card-foreground)}.text-destructive{color:var(--destructive)}.text-emerald-700{color:var(--color-emerald-700)}.text-foreground{color:var(--foreground)}.text-gray-800{color:var(--color-gray-800)}.text-green-600{color:var(--color-green-600)}.text-green-800{color:var(--color-green-800)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-800{color:var(--color-red-800)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab, red, red)){.text-sidebar-foreground\/70{color:color-mix(in oklab, var(--sidebar-foreground) 70%, transparent)}}.text-tactical-amber{color:var(--tactical-amber)}.text-tactical-cyan{color:var(--tactical-cyan)}.text-tactical-green{color:var(--tactical-green)}.text-yellow-800{color:var(--color-yellow-800)}.text-zinc-500{color:var(--color-zinc-500)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.opacity-50{opacity:.5}.bg-blend-color{background-blend-mode:color}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-background{--tw-ring-color:var(--background)}.ring-foreground\/10{--tw-ring-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.ring-foreground\/10{--tw-ring-color:color-mix(in oklab, var(--foreground) 10%, transparent)}}.ring-sidebar-ring{--tw-ring-color:var(--sidebar-ring)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.ring-inset{--tw-ring-inset:inset}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media (hover:hover){.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-focus\/dropdown-menu-item\:text-accent-foreground:is(:where(.group\/dropdown-menu-item):focus *){color:var(--accent-foreground)}.group-has-data-\[orientation\=horizontal\]\/field\:text-balance:is(:where(.group\/field):has([data-orientation=horizontal]) *){text-wrap:balance}.group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--spacing) * 8)}.group-has-data-\[size\=lg\]\/avatar-group\:size-10:is(:where(.group\/avatar-group):has([data-size=lg]) *){width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.group-has-data-\[size\=sm\]\/avatar-group\:size-6:is(:where(.group\/avatar-group):has([data-size=sm]) *){width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.group-has-data-\[slot\=combobox-clear\]\/input-group\:hidden:is(:where(.group\/input-group):has([data-slot=combobox-clear]) *){display:none}.group-has-\[\>input\]\/input-group\:pt-2:is(:where(.group\/input-group):has(>input) *){padding-top:calc(var(--spacing) * 2)}.group-has-\[\>input\]\/input-group\:pb-2:is(:where(.group\/input-group):has(>input) *){padding-bottom:calc(var(--spacing) * 2)}.group-data-empty\/combobox-content\:flex:is(:where(.group\/combobox-content)[data-empty] *){display:flex}.group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible=icon] *){margin-top:calc(var(--spacing) * -8)}.group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible=icon] *){display:none}.group-data-\[collapsible\=icon\]\:size-8\!:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--spacing) * 8)!important;height:calc(var(--spacing) * 8)!important}.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-collapsible=icon] *){width:var(--sidebar-width-icon)}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)))}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)) + 2px)}.group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible=icon] *){overflow:hidden}.group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 0)!important}.group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 2)!important}.group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible=icon] *){opacity:0}.group-data-\[collapsible\=offExamples\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offExamples] *){right:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offExamples\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offExamples] *){left:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offExamples\]\:w-0:is(:where(.group)[data-collapsible=offExamples] *){width:calc(var(--spacing) * 0)}.group-data-\[collapsible\=offExamples\]\:translate-x-0:is(:where(.group)[data-collapsible=offExamples] *){--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *),.group-data-\[disabled\=true\]\/field\:opacity-50:is(:where(.group\/field)[data-disabled=true] *),.group-data-\[disabled\=true\]\/input-group\:opacity-50:is(:where(.group\/input-group)[data-disabled=true] *){opacity:.5}.group-data-\[panel-open\]\:rotate-180:is(:where(.group)[data-panel-open] *){rotate:180deg}.group-data-\[side\=left\]\:-right-4:is(:where(.group)[data-side=left] *){right:calc(var(--spacing) * -4)}.group-data-\[side\=left\]\:border-r:is(:where(.group)[data-side=left] *){border-right-style:var(--tw-border-style);border-right-width:1px}.group-data-\[side\=right\]\:left-0:is(:where(.group)[data-side=right] *){left:calc(var(--spacing) * 0)}.group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side=right] *){rotate:180deg}.group-data-\[side\=right\]\:border-l:is(:where(.group)[data-side=right] *){border-left-style:var(--tw-border-style);border-left-width:1px}.group-data-\[size\=default\]\/avatar\:size-2\.5:is(:where(.group\/avatar)[data-size=default] *){width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.group-data-\[size\=lg\]\/avatar\:size-3:is(:where(.group\/avatar)[data-size=lg] *){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.group-data-\[size\=sm\]\/alert-dialog-content\:grid:is(:where(.group\/alert-dialog-content)[data-size=sm] *){display:grid}.group-data-\[size\=sm\]\/alert-dialog-content\:grid-cols-2:is(:where(.group\/alert-dialog-content)[data-size=sm] *){grid-template-columns:repeat(2,minmax(0,1fr))}.group-data-\[size\=sm\]\/avatar\:size-2:is(:where(.group\/avatar)[data-size=sm] *){width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.group-data-\[size\=sm\]\/avatar\:text-xs:is(:where(.group\/avatar)[data-size=sm] *){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.group-data-\[size\=sm\]\/card\:px-3:is(:where(.group\/card)[data-size=sm] *){padding-inline:calc(var(--spacing) * 3)}.group-data-\[variant\=floating\]\:rounded-lg:is(:where(.group)[data-variant=floating] *){border-radius:calc(var(--radius) + 2px)}.group-data-\[variant\=floating\]\:shadow-sm:is(:where(.group)[data-variant=floating] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[variant\=floating\]\:ring-1:is(:where(.group)[data-variant=floating] *){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[variant\=floating\]\:ring-sidebar-border:is(:where(.group)[data-variant=floating] *){--tw-ring-color:var(--sidebar-border)}.group-data-\[variant\=outline\]\/field-group\:-mb-2:is(:where(.group\/field-group)[data-variant=outline] *){margin-bottom:calc(var(--spacing) * -2)}@media (hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--sidebar-accent-foreground)}}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.peer-data-active\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active]~*){color:var(--sidebar-accent-foreground)}.peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.peer\/menu-button)[data-size=default]~*){top:calc(var(--spacing) * 1.5)}.peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.peer\/menu-button)[data-size=lg]~*){top:calc(var(--spacing) * 2.5)}.peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size=sm]~*){top:calc(var(--spacing) * 1)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-6::file-selector-button{height:calc(var(--spacing) * 6)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-xs\/relaxed::file-selector-button{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing) * -2)}.after\:inset-0:after{content:var(--tw-content);inset:calc(var(--spacing) * 0)}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing) * 0)}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.after\:rounded-full:after{content:var(--tw-content);border-radius:3.40282e38px}.after\:border:after{content:var(--tw-content);border-style:var(--tw-border-style);border-width:1px}.after\:border-border:after{content:var(--tw-content);border-color:var(--border)}.after\:mix-blend-darken:after{content:var(--tw-content);mix-blend-mode:darken}.group-data-\[collapsible\=offExamples\]\:after\:left-full:is(:where(.group)[data-collapsible=offExamples] *):after{content:var(--tw-content);left:100%}.last\:mt-0:last-child{margin-top:calc(var(--spacing) * 0)}.last\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.focus-within\:border-ring:focus-within{border-color:var(--ring)}.focus-within\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}@media (hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive\/20:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/20:hover{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.hover\:bg-input\/40:hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-input\/40:hover{background-color:color-mix(in oklab, var(--input) 40%, transparent)}}.hover\:bg-input\/50:hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-input\/50:hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:bg-primary\/80:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-primary\/80:hover{background-color:color-mix(in oklab, var(--primary) 80%, transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.hover\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-muted-foreground:hover{color:var(--muted-foreground)}.hover\:text-sidebar-accent-foreground:hover{color:var(--sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-accent)));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:group-data-\[collapsible\=offExamples\]\:bg-sidebar:hover:is(:where(.group)[data-collapsible=offExamples] *){background-color:var(--sidebar)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:var(--sidebar-border)}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus,:is(.focus\:\*\*\:text-accent-foreground:focus *),:is(.not-data-\[variant\=destructive\]\:focus\:\*\*\:text-accent-foreground:not([data-variant=destructive]):focus *){color:var(--accent-foreground)}.focus-visible\:border-destructive\/40:focus-visible{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:border-destructive\/40:focus-visible{border-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-2:focus-visible,.focus-visible\:ring-\[2px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:bg-sidebar-accent:active{background-color:var(--sidebar-accent)}.active\:text-sidebar-accent-foreground:active{color:var(--sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}:where([data-side=left]) .in-data-\[side\=left\]\:cursor-w-resize{cursor:w-resize}:where([data-side=right]) .in-data-\[side\=right\]\:cursor-e-resize{cursor:e-resize}:where([data-slot=combobox-content]) .in-data-\[slot\=combobox-content\]\:focus-within\:border-inherit:focus-within{border-color:inherit}:where([data-slot=combobox-content]) .in-data-\[slot\=combobox-content\]\:focus-within\:ring-0:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-disabled\:pointer-events-none:has(:disabled){pointer-events:none}.has-disabled\:cursor-not-allowed:has(:disabled){cursor:not-allowed}.has-disabled\:opacity-50:has(:disabled){opacity:.5}.has-aria-invalid\:border-destructive:has([aria-invalid=true]){border-color:var(--destructive)}.has-aria-invalid\:ring-2:has([aria-invalid=true]){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.has-data-checked\:bg-primary\/5:has([data-checked]){background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.has-data-checked\:bg-primary\/5:has([data-checked]){background-color:color-mix(in oklab, var(--primary) 5%, transparent)}}.has-data-\[align\=block-end\]\:rounded-md:has([data-align=block-end]),.has-data-\[align\=block-start\]\:rounded-md:has([data-align=block-start]){border-radius:var(--radius)}.has-data-\[icon\=inline-end\]\:pr-1\.5:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-end\]\:pr-2:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 2)}.has-data-\[icon\=inline-start\]\:pl-1\.5:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-start\]\:pl-2:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 2)}.has-data-\[slot\=alert-dialog-media\]\:grid-rows-\[auto_auto_1fr\]:has([data-slot=alert-dialog-media]){grid-template-rows:auto auto 1fr}.has-data-\[slot\=alert-dialog-media\]\:gap-x-4:has([data-slot=alert-dialog-media]){column-gap:calc(var(--spacing) * 4)}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-data-\[slot\=card-description\]\:grid-rows-\[auto_auto\]:has([data-slot=card-description]){grid-template-rows:auto auto}.has-data-\[slot\=combobox-chip\]\:px-1:has([data-slot=combobox-chip]){padding-inline:calc(var(--spacing) * 1)}.has-data-\[slot\=combobox-chip-remove\]\:pr-0:has([data-slot=combobox-chip-remove]){padding-right:calc(var(--spacing) * 0)}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--sidebar)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:border-ring:has([data-slot=input-group-control]:focus-visible){border-color:var(--ring)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-2:has([data-slot=input-group-control]:focus-visible){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/30:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/30:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:border-destructive:has([data-slot][aria-invalid=true]){border-color:var(--destructive)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-2:has([data-slot][aria-invalid=true]){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.has-\[textarea\]\:rounded-md:has(:is(textarea)){border-radius:var(--radius)}.has-\[\>\[data-align\=block-end\]\]\:h-auto:has(>[data-align=block-end]){height:auto}.has-\[\>\[data-align\=block-end\]\]\:flex-col:has(>[data-align=block-end]){flex-direction:column}.has-\[\>\[data-align\=block-start\]\]\:h-auto:has(>[data-align=block-start]){height:auto}.has-\[\>\[data-align\=block-start\]\]\:flex-col:has(>[data-align=block-start]){flex-direction:column}.has-\[\>\[data-slot\=checkbox-group\]\]\:gap-3:has(>[data-slot=checkbox-group]){gap:calc(var(--spacing) * 3)}.has-\[\>\[data-slot\=field-content\]\]\:items-start:has(>[data-slot=field-content]){align-items:flex-start}.has-\[\>\[data-slot\=field\]\]\:w-full:has(>[data-slot=field]){width:100%}.has-\[\>\[data-slot\=field\]\]\:flex-col:has(>[data-slot=field]){flex-direction:column}.has-\[\>\[data-slot\=field\]\]\:rounded-md:has(>[data-slot=field]){border-radius:var(--radius)}.has-\[\>\[data-slot\=field\]\]\:border:has(>[data-slot=field]){border-style:var(--tw-border-style);border-width:1px}.has-\[\>\[data-slot\=radio-group\]\]\:gap-3:has(>[data-slot=radio-group]){gap:calc(var(--spacing) * 3)}.has-\[\>button\]\:mr-\[-0\.275rem\]:has(>button){margin-right:-.275rem}.has-\[\>button\]\:ml-\[-0\.275rem\]:has(>button){margin-left:-.275rem}.has-\[\>img\:first-child\]\:pt-0:has(>img:first-child){padding-top:calc(var(--spacing) * 0)}.has-\[\>kbd\]\:mr-\[-0\.275rem\]:has(>kbd){margin-right:-.275rem}.has-\[\>kbd\]\:ml-\[-0\.275rem\]:has(>kbd){margin-left:-.275rem}.has-\[\>svg\]\:p-0:has(>svg){padding:calc(var(--spacing) * 0)}.has-\[\>textarea\]\:h-auto:has(>textarea){height:auto}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-expanded\:bg-muted[aria-expanded=true]{background-color:var(--muted)}.aria-expanded\:bg-secondary[aria-expanded=true]{background-color:var(--secondary)}.aria-expanded\:text-foreground[aria-expanded=true]{color:var(--foreground)}.aria-expanded\:text-secondary-foreground[aria-expanded=true]{color:var(--secondary-foreground)}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-0[aria-invalid=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:ring-2[aria-invalid=true],.aria-invalid\:ring-\[2px\][aria-invalid=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.data-active\:bg-sidebar-accent[data-active]{background-color:var(--sidebar-accent)}.data-active\:font-medium[data-active]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-active\:text-sidebar-accent-foreground[data-active]{color:var(--sidebar-accent-foreground)}.data-closed\:overflow-hidden[data-closed]{overflow:hidden}.data-disabled\:pointer-events-none[data-disabled]{pointer-events:none}.data-disabled\:opacity-50[data-disabled]{opacity:.5}.data-empty\:p-0[data-empty]{padding:calc(var(--spacing) * 0)}.data-ending-style\:opacity-0[data-ending-style]{opacity:0}.data-highlighted\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-highlighted\:text-accent-foreground[data-highlighted],:is(.not-data-\[variant\=destructive\]\:data-highlighted\:\*\*\:text-accent-foreground:not([data-variant=destructive])[data-highlighted] *){color:var(--accent-foreground)}.data-inset\:pl-8[data-inset]{padding-left:calc(var(--spacing) * 8)}.data-open\:bg-accent[data-open]{background-color:var(--accent)}.data-open\:text-accent-foreground[data-open]{color:var(--accent-foreground)}.data-open\:opacity-100[data-open]{opacity:1}@media (hover:hover){.data-open\:hover\:bg-sidebar-accent[data-open]:hover{background-color:var(--sidebar-accent)}.data-open\:hover\:text-sidebar-accent-foreground[data-open]:hover{color:var(--sidebar-accent-foreground)}}.data-placeholder\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-pressed\:bg-transparent[data-pressed]{background-color:#0000}.data-selected\:border-primary[data-selected]{border-color:var(--primary)}.data-selected\:text-foreground[data-selected]{color:var(--foreground)}.data-starting-style\:opacity-0[data-starting-style]{opacity:0}.data-\[chips\=true\]\:min-w-\(--anchor-width\)[data-chips=true]{min-width:var(--anchor-width)}.data-\[invalid\=true\]\:text-destructive[data-invalid=true]{color:var(--destructive)}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[orientation\=vertical\]\:self-stretch[data-orientation=vertical]{align-self:stretch}.data-\[side\=bottom\]\:inset-x-0[data-side=bottom]{inset-inline:calc(var(--spacing) * 0)}.data-\[side\=bottom\]\:top-1[data-side=bottom]{top:calc(var(--spacing) * 1)}.data-\[side\=bottom\]\:bottom-0[data-side=bottom]{bottom:calc(var(--spacing) * 0)}.data-\[side\=bottom\]\:h-auto[data-side=bottom]{height:auto}.data-\[side\=bottom\]\:border-t[data-side=bottom]{border-top-style:var(--tw-border-style);border-top-width:1px}.data-\[side\=left\]\:inset-y-0[data-side=left]{inset-block:calc(var(--spacing) * 0)}.data-\[side\=left\]\:top-1\/2\![data-side=left]{top:50%!important}.data-\[side\=left\]\:-right-1[data-side=left]{right:calc(var(--spacing) * -1)}.data-\[side\=left\]\:left-0[data-side=left]{left:calc(var(--spacing) * 0)}.data-\[side\=left\]\:h-full[data-side=left]{height:100%}.data-\[side\=left\]\:w-3\/4[data-side=left]{width:75%}.data-\[side\=left\]\:-translate-y-1\/2[data-side=left]{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:border-r[data-side=left]{border-right-style:var(--tw-border-style);border-right-width:1px}.data-\[side\=right\]\:inset-y-0[data-side=right]{inset-block:calc(var(--spacing) * 0)}.data-\[side\=right\]\:top-1\/2\![data-side=right]{top:50%!important}.data-\[side\=right\]\:right-0[data-side=right]{right:calc(var(--spacing) * 0)}.data-\[side\=right\]\:-left-1[data-side=right]{left:calc(var(--spacing) * -1)}.data-\[side\=right\]\:h-full[data-side=right]{height:100%}.data-\[side\=right\]\:w-3\/4[data-side=right]{width:75%}.data-\[side\=right\]\:-translate-y-1\/2[data-side=right]{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:border-l[data-side=right]{border-left-style:var(--tw-border-style);border-left-width:1px}.data-\[side\=top\]\:inset-x-0[data-side=top]{inset-inline:calc(var(--spacing) * 0)}.data-\[side\=top\]\:top-0[data-side=top]{top:calc(var(--spacing) * 0)}.data-\[side\=top\]\:-bottom-2\.5[data-side=top]{bottom:calc(var(--spacing) * -2.5)}.data-\[side\=top\]\:h-auto[data-side=top]{height:auto}.data-\[side\=top\]\:border-b[data-side=top]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.data-\[size\=default\]\:h-7[data-size=default]{height:calc(var(--spacing) * 7)}.data-\[size\=default\]\:max-w-xs[data-size=default]{max-width:var(--container-xs)}.data-\[size\=lg\]\:size-10[data-size=lg]{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.data-\[size\=md\]\:text-xs[data-size=md]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.data-\[size\=sm\]\:size-6[data-size=sm]{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.data-\[size\=sm\]\:h-6[data-size=sm]{height:calc(var(--spacing) * 6)}.data-\[size\=sm\]\:max-w-64[data-size=sm]{max-width:calc(var(--spacing) * 64)}.data-\[size\=sm\]\:gap-3[data-size=sm]{gap:calc(var(--spacing) * 3)}.data-\[size\=sm\]\:py-3[data-size=sm]{padding-block:calc(var(--spacing) * 3)}.data-\[size\=sm\]\:text-xs[data-size=sm]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}:is(.\*\:data-\[slot\=avatar\]\:ring-2>*)[data-slot=avatar]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}:is(.\*\:data-\[slot\=avatar\]\:ring-background>*)[data-slot=avatar]{--tw-ring-color:var(--background)}.data-\[slot\=checkbox-group\]\:gap-3[data-slot=checkbox-group]{gap:calc(var(--spacing) * 3)}:is(.\*\:data-\[slot\=field\]\:p-2>*)[data-slot=field]{padding:calc(var(--spacing) * 2)}:is(.\*\:data-\[slot\=field-group\]\:gap-4>*)[data-slot=field-group]{gap:calc(var(--spacing) * 4)}:is(.\*\:data-\[slot\=input-group\]\:m-1>*)[data-slot=input-group]{margin:calc(var(--spacing) * 1)}:is(.\*\:data-\[slot\=input-group\]\:mb-0>*)[data-slot=input-group]{margin-bottom:calc(var(--spacing) * 0)}:is(.\*\:data-\[slot\=input-group\]\:h-7>*)[data-slot=input-group]{height:calc(var(--spacing) * 7)}:is(.\*\:data-\[slot\=input-group\]\:border-none>*)[data-slot=input-group]{--tw-border-style:none;border-style:none}:is(.\*\:data-\[slot\=input-group\]\:bg-input\/20>*)[data-slot=input-group]{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){:is(.\*\:data-\[slot\=input-group\]\:bg-input\/20>*)[data-slot=input-group]{background-color:color-mix(in oklab, var(--input) 20%, transparent)}}:is(.\*\:data-\[slot\=input-group\]\:shadow-none>*)[data-slot=input-group]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}:is(.\*\*\:data-\[slot\=kbd\]\:rounded-\[calc\(var\(--radius-sm\)-2px\)\] *)[data-slot=kbd]{border-radius:calc(var(--radius-sm) - 2px)}:is(.\*\*\:data-\[slot\=kbd\]\:rounded-md *)[data-slot=kbd]{border-radius:var(--radius)}:is(.\*\*\:data-\[slot\=kbd\]\:bg-muted-foreground\/10 *)[data-slot=kbd]{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){:is(.\*\*\:data-\[slot\=kbd\]\:bg-muted-foreground\/10 *)[data-slot=kbd]{background-color:color-mix(in oklab, var(--muted-foreground) 10%, transparent)}}:is(.\*\*\:data-\[slot\=kbd\]\:px-1 *)[data-slot=kbd]{padding-inline:calc(var(--spacing) * 1)}:is(.\*\*\:data-\[slot\=kbd\]\:text-\[0\.625rem\] *)[data-slot=kbd]{font-size:.625rem}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-1\.5>*)[data-slot=select-value]{gap:calc(var(--spacing) * 1.5)}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}.data-\[variant\=label\]\:text-xs\/relaxed[data-variant=label]{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.data-\[variant\=legend\]\:text-sm[data-variant=legend]{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.nth-last-2\:-mt-1:nth-last-child(2){margin-top:calc(var(--spacing) * -1)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.supports-backdrop-filter\:backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}}@media (width>=40rem){.sm\:flex{display:flex}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-\[1fr_1fr_1fr_auto\]{grid-template-columns:1fr 1fr 1fr auto}.sm\:grid-cols-\[1fr_auto\]{grid-template-columns:1fr auto}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:row-span-2:is(:where(.group\/alert-dialog-content)[data-size=default] *){grid-row:span 2/span 2}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:place-items-start:is(:where(.group\/alert-dialog-content)[data-size=default] *){place-items:start}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:text-left:is(:where(.group\/alert-dialog-content)[data-size=default] *){text-align:left}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:group-has-data-\[slot\=alert-dialog-media\]\/alert-dialog-content\:col-start-2:is(:where(.group\/alert-dialog-content)[data-size=default] *):is(:where(.group\/alert-dialog-content):has([data-slot=alert-dialog-media]) *){grid-column-start:2}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:has-data-\[slot\=alert-dialog-media\]\:grid-rows-\[auto_1fr\]:is(:where(.group\/alert-dialog-content)[data-size=default] *):has([data-slot=alert-dialog-media]){grid-template-rows:auto 1fr}.data-\[side\=left\]\:sm\:max-w-sm[data-side=left],.data-\[side\=right\]\:sm\:max-w-sm[data-side=right],.data-\[size\=default\]\:sm\:max-w-sm[data-size=default]{max-width:var(--container-sm)}}@media (width>=48rem){.md\:block{display:block}.md\:flex{display:flex}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:text-xs\/relaxed{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.md\:text-pretty{text-wrap:pretty}.md\:opacity-0{opacity:0}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing) * 2)}.md\:peer-data-\[variant\=inset\]\:ml-0:is(:where(.peer)[data-variant=inset]~*){margin-left:calc(var(--spacing) * 0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:calc(var(--radius) + 4px)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ml-2:is(:where(.peer)[data-variant=inset]~*):is(:where(.peer)[data-state=collapsed]~*){margin-left:calc(var(--spacing) * 2)}.md\:after\:hidden:after{content:var(--tw-content);display:none}}@media (width>=64rem){.lg\:block{display:block}}@media (width>=80rem){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container field-group (width>=28rem){.\@md\/field-group\:flex-row{flex-direction:row}.\@md\/field-group\:items-center{align-items:center}.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:items-start:has(>[data-slot=field-content]){align-items:flex-start}}.dark\:scale-0:where(.dark,.dark *){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.dark\:scale-100:where(.dark,.dark *){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.dark\:-rotate-90:where(.dark,.dark *){rotate:-90deg}.dark\:rotate-0:where(.dark,.dark *){rotate:0deg}.dark\:bg-destructive\/20:where(.dark,.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-destructive\/20:where(.dark,.dark *){background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.dark\:bg-gray-800:where(.dark,.dark *){background-color:var(--color-gray-800)}.dark\:bg-green-900:where(.dark,.dark *){background-color:var(--color-green-900)}.dark\:bg-input\/30:where(.dark,.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-input\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.dark\:bg-muted\/30:where(.dark,.dark *){background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-muted\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--muted) 30%, transparent)}}.dark\:bg-popover:where(.dark,.dark *){background-color:var(--popover)}.dark\:bg-red-900:where(.dark,.dark *){background-color:var(--color-red-900)}.dark\:bg-transparent:where(.dark,.dark *){background-color:#0000}.dark\:bg-yellow-900:where(.dark,.dark *){background-color:var(--color-yellow-900)}.dark\:bg-zinc-800:where(.dark,.dark *){background-color:var(--color-zinc-800)}.dark\:text-emerald-400:where(.dark,.dark *){color:var(--color-emerald-400)}.dark\:text-gray-100:where(.dark,.dark *){color:var(--color-gray-100)}.dark\:text-green-100:where(.dark,.dark *){color:var(--color-green-100)}.dark\:text-red-100:where(.dark,.dark *){color:var(--color-red-100)}.dark\:text-yellow-100:where(.dark,.dark *){color:var(--color-yellow-100)}.dark\:text-zinc-400:where(.dark,.dark *){color:var(--color-zinc-400)}.dark\:invert:where(.dark,.dark *){--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.dark\:after\:mix-blend-lighten:where(.dark,.dark *):after{content:var(--tw-content);mix-blend-mode:lighten}@media (hover:hover){.dark\:hover\:bg-destructive\/30:where(.dark,.dark *):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-destructive\/30:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--destructive) 30%, transparent)}}.dark\:hover\:bg-input\/50:where(.dark,.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-input\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.dark\:hover\:bg-muted\/50:where(.dark,.dark *):hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-muted\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--muted) 50%, transparent)}}}.dark\:focus-visible\:ring-destructive\/40:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:focus-visible\:ring-destructive\/40:where(.dark,.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:has-aria-invalid\:border-destructive\/50:where(.dark,.dark *):has([aria-invalid=true]){border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-aria-invalid\:border-destructive\/50:where(.dark,.dark *):has([aria-invalid=true]){border-color:color-mix(in oklab, var(--destructive) 50%, transparent)}}.dark\:has-aria-invalid\:ring-destructive\/40:where(.dark,.dark *):has([aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-aria-invalid\:ring-destructive\/40:where(.dark,.dark *):has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:has-data-checked\:bg-primary\/10:where(.dark,.dark *):has([data-checked]){background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.dark\:has-data-checked\:bg-primary\/10:where(.dark,.dark *):has([data-checked]){background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:where(.dark,.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:where(.dark,.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:aria-invalid\:border-destructive\/50:where(.dark,.dark *)[aria-invalid=true]{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:border-destructive\/50:where(.dark,.dark *)[aria-invalid=true]{border-color:color-mix(in oklab, var(--destructive) 50%, transparent)}}.dark\:aria-invalid\:ring-destructive\/40:where(.dark,.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:ring-destructive\/40:where(.dark,.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:where(.dark,.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:where(.dark,.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-2\.5 svg:not([class*=size-]){width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5 svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\.border-b\]\:pb-2.border-b{padding-bottom:calc(var(--spacing) * 2)}.\[\.border-b\]\:pb-4.border-b{padding-bottom:calc(var(--spacing) * 4)}.group-data-\[size\=sm\]\/card\:\[\.border-b\]\:pb-3:is(:where(.group\/card)[data-size=sm] *).border-b{padding-bottom:calc(var(--spacing) * 3)}.\[\.border-t\]\:pt-2.border-t{padding-top:calc(var(--spacing) * 2)}.\[\.border-t\]\:pt-4.border-t{padding-top:calc(var(--spacing) * 4)}.group-data-\[size\=sm\]\/card\:\[\.border-t\]\:pt-3:is(:where(.group\/card)[data-size=sm] *).border-t{padding-top:calc(var(--spacing) * 3)}:is(.\*\:\[a\]\:underline>*):is(a){text-decoration-line:underline}:is(.\*\:\[a\]\:underline-offset-3>*):is(a){text-underline-offset:3px}@media (hover:hover){.\[a\]\:hover\:bg-destructive\/20:is(a):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.\[a\]\:hover\:bg-destructive\/20:is(a):hover{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.\[a\]\:hover\:bg-muted:is(a):hover{background-color:var(--muted)}.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:color-mix(in oklab, var(--primary) 80%, transparent)}}.\[a\]\:hover\:bg-secondary\/80:is(a):hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.\[a\]\:hover\:bg-secondary\/80:is(a):hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.\[a\]\:hover\:text-muted-foreground:is(a):hover{color:var(--muted-foreground)}:is(.\*\:\[a\]\:hover\:text-foreground>*):is(a):hover{color:var(--foreground)}}:is(.\*\:\[img\:first-child\]\:rounded-t-lg>*):is(img:first-child){border-top-left-radius:calc(var(--radius) + 2px);border-top-right-radius:calc(var(--radius) + 2px)}:is(.\*\:\[img\:last-child\]\:rounded-b-lg>*):is(img:last-child){border-bottom-right-radius:calc(var(--radius) + 2px);border-bottom-left-radius:calc(var(--radius) + 2px)}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing) * 2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)}:is(.\*\:\[svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4>*):is(svg:not([class*=size-])){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>\*\]\:w-full>*{width:100%}@container field-group (width>=28rem){.\@md\/field-group\:\[\&\>\*\]\:w-auto>*{width:auto}}.\[\&\>\.sr-only\]\:w-auto>.sr-only{width:auto}.\[\&\>\[data-slot\=field-label\]\]\:flex-auto>[data-slot=field-label]{flex:auto}@container field-group (width>=28rem){.\@md\/field-group\:\[\&\>\[data-slot\=field-label\]\]\:flex-auto>[data-slot=field-label]{flex:auto}}.has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content])>[role=checkbox],.has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content]) [role=radio]{margin-top:1px}@container field-group (width>=28rem){.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content])>[role=checkbox],.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content]) [role=radio]{margin-top:1px}}.\[\&\>a\]\:underline>a{text-decoration-line:underline}.\[\&\>a\]\:underline-offset-4>a{text-underline-offset:4px}.\[\&\>a\:hover\]\:text-primary>a:hover{color:var(--primary)}.\[\&\>button\]\:hidden>button{display:none}.has-\[\>\[data-align\=block-end\]\]\:\[\&\>input\]\:pt-3:has(>[data-align=block-end])>input{padding-top:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=block-start\]\]\:\[\&\>input\]\:pb-3:has(>[data-align=block-start])>input{padding-bottom:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=inline-end\]\]\:\[\&\>input\]\:pr-1\.5:has(>[data-align=inline-end])>input{padding-right:calc(var(--spacing) * 1.5)}.has-\[\>\[data-align\=inline-start\]\]\:\[\&\>input\]\:pl-1\.5:has(>[data-align=inline-start])>input{padding-left:calc(var(--spacing) * 1.5)}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-2\.5\!>svg{width:calc(var(--spacing) * 2.5)!important;height:calc(var(--spacing) * 2.5)!important}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--sidebar-accent-foreground)}.group-has-data-\[size\=lg\]\/avatar-group\:\[\&\>svg\]\:size-5:is(:where(.group\/avatar-group):has([data-size=lg]) *)>svg{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.group-has-data-\[size\=sm\]\/avatar-group\:\[\&\>svg\]\:size-3:is(:where(.group\/avatar-group):has([data-size=sm]) *)>svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.group-data-\[size\=default\]\/avatar\:\[\&\>svg\]\:size-2:is(:where(.group\/avatar)[data-size=default] *)>svg,.group-data-\[size\=lg\]\/avatar\:\[\&\>svg\]\:size-2:is(:where(.group\/avatar)[data-size=lg] *)>svg{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.group-data-\[size\=sm\]\/avatar\:\[\&\>svg\]\:hidden:is(:where(.group\/avatar)[data-size=sm] *)>svg{display:none}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3>svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5>svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}[data-side=left][data-collapsible=offExamples] .\[\[data-side\=left\]\[data-collapsible\=offExamples\]_\&\]\:-right-2{right:calc(var(--spacing) * -2)}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=right][data-collapsible=offExamples] .\[\[data-side\=right\]\[data-collapsible\=offExamples\]_\&\]\:-left-2{left:calc(var(--spacing) * -2)}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-variant=legend]+.\[\[data-variant\=legend\]\+\&\]\:-mt-1\.5{margin-top:calc(var(--spacing) * -1.5)}}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(data:font/woff2;base64,d09GMgABAAAAAAfsABQAAAAAEAwAAAeCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoP0hWQVJbBmA/U1RBVIFiJyYAdC9qEQgKhGSEAAsgADCGCAE2AiQDOgQgBYlMB4EUDAcbLQ4onoexrSC/2ZyLAa8p8VHB8/x3Vue+V0hVJalMJg2nx/TCrQXxBeqLjQG7FyM1WEa/X1tEXN7cFz9EJEMmMUz3RihWSSKeQCbcIou0izz/C8v+fq3VfajEa9gDD11CImXS7qL/RJFVzC1qiB6KmKeD6TZdQ6IRGv78dL6uSVVCfgni5mzu7kcgQBgAEAQTQRCoL++STTYybkJxNfQxAAIAGu8OdEB9teW2jh4BpgDqFjAeSEByW3zFP0CBBgNMsMCGEDjgggdhiEAUAeIIED7ABTDUEnkIE9Q9ahFgKttcVhApo4ACB4qobHaccgDfEjFO6aaWUhjMLt2SyIvHKoDqoA4CSUwEIYQCEjhAO9R1G6keDeDZGjNo+AhxOjCEGTr1WeIF3kYBiLAOKvkJSMiKX0VdAyQt3SDJClCkxJCHkCzfqyVTriJZLcolS32JZHUekq2TYNkYtCtjYHMQXSxGjXDz2t/yLWXzDzxz+o3zFwDEaN23F+13pyMdQAEaSKAR9vcGq4A4MTSKCElGW+M7UcY7xqkggITb28ZJhlqc9q2twYKTt0NjixBgYvO9BIihEBLYuOFXQzfIQ7dXGUEEEgFDooBfAzqiQbpJrhiWSuKJCRFKYbHCyJKI2G5GiZbNAvgAu5pc3vwx4G+g3aDkhklABiSz0BICXrYghtYhx/cdJ+44rY2oZ0aMNRFz3VZjb6W33F3gzltqtOCV8tTHSpOeXuItfvr5lCdfzFpqtEitvqdcdGGFd28ZqqC0tPbeChGXgrIlnhSWu/eUso4uKWFLugyDzQJhflY4659+WjQ++6x72WUMv9G8mw6QJl7BVxX5fe/kpUsOvnZwee9uQ0cGXYd0o89XB2748sDSnt8d2VphdOTTgceDVvOds0v9P/s7HPq15aGun/6Vllb56f1dl0t1LejqrNkpdRZsG8TOnM5vkBG5oiVyVGnS8LHps5cfNWJs6qKPfaNSxiQNBUm3cKNWROr0GSur7Za31k1vieq7LH11VF+jXdRIasRKflc7jkobm1Z9te1IyZA0pDkhLR98+H37Zf1c/8at+dB7x+7GfVyTfJMPiYztsnl59Y5l4j+0n1RXlpHnF3Tq7HecmNF/CJodEMAikruxiyJaGLvHOdAfoA+oDvpjBm2b91cHGRZMU9n25xEU0A8fgEEAdKI3Q1iDtc034sug5YVMkE2jsE+BIkwSoQ3gxXMqz9tELp48bd0cFKOKS7xYjEuXBnZP5ia7DyiO/X/YI+PQSbt2uSdqAkWL9nQbV1XB94/+uPfdZz8dnXYFBYrcTl2SIR/ybxJNJPz/Gupb0JaZeens2ekC7EKr8t+Ls/P5VJPYJdHKyqfg2nqU6bhlidzcddQV/7MmecTzJ5VPcKXkNKSEogHjYFx6QZ7rQ+FSe8njaiNuOnXS8H2ScQ619c2mC3VTtauL0rRbXd/CkSOP37FY9Zkjz8+GibYUMOEWF+RdrFS8Ecv1SHOpPUPZGEIpjPvFyU5cXKjd6OXqorTqy9GwRd++HVufPGnVsW+aO3vggKZ18jR9sXaTC1PWTEsVUaK0FkNySbTQDqlm2PfDjZcu4aalnSLKjnOoYQ0nUlqqXcGpPu/4VgV/xU2pAqW4BW3qzhQ8/hFKhV2qE3+BKAtDqBXjfgnVdH4y0wg5tbVNRenNdTWOrenWLcupQdmsbq5b+18piTe/xRdp1xbILxNPJGInm2z6hoB21Lal0i+ePTtd7B45+3XhFJ329evskXm7qurUVREotqSluSo/L29d3qDhI4YOQqWhI4YNvBNfsMHeXKemXrxQfKeuPOGRVayA3JtkJKEgbPp+dXUDluddutRYLFoXGXWX6N3WFaGLbQtRSitVYNacTNSdy7AaG/HSaUEANcBoGXNdcZvZsOqQ1icBDv21/gzAoYPHH/WDW0qNR3QTYKEAEHig6o13NXbND06CQPlRtYjGNnSktRc09k1mAMDvAlDKfQjgy6fssInlfzmNAjKkDxoxHOBLdVRAIVt9j4qo+hA1w9T1aNBNTUOTTNUHLbqokE+UAfJXCIGw/IxCSL5GRUJeR40rL/UxTm4Q08H6MbCs70ObuNyIIXrINHQYInF06UUlevTjbQzTh5upiDMzMMogUtEnjPs/Y7jAHCJeB0GBHh04tC6FiB6ZFB1oArUSIoFoqhzCeAN6lHwm0T4C3VVPWvjpSMXReuWesMEcoqrmgtNBGd2noWeV0hNAz9rFeShNJxHGsPa3HXeKTk8b55hahySYHaYKKFFLpCfN8rsoaJn01CR04Gkc+5k7KVTCmClX8Q10HCrUEkVlSX+XO33oQR9609tJ516H497WSobWs5Up6TLaS10/dessIskgJSLiDlWvHVUywpkQ7hdPZqGyiEF0uVQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/b2kP/IYX8oR2mcFvv2GtBV3JXgd437AQAA)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-greek-wght-normal.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-vietnamese-wght-normal.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--font-sans:"Geist Variable", sans-serif;--font-mono:"JetBrains Mono Variable", monospace;--background:#f4f1ec;--foreground:#1d2930;--card:#f9f8f6;--card-foreground:#1d2930;--popover:#fbfaf9;--popover-foreground:#1d2930;--primary:#305030;--primary-foreground:#f5f3ef;--secondary:#eae5d7;--secondary-foreground:#263740;--muted:#e9e7e2;--muted-foreground:#576b75;--accent:#e7e2da;--accent-foreground:#1d2930;--destructive:#c32222;--destructive-foreground:#fff;--border:#b6c9b6;--input:#dedbd3;--ring:#3e743e;--chart-1:#2e6b2e;--chart-2:#cfa117;--chart-3:#297aa3;--chart-4:#cc8c33;--chart-5:#b82e2e;--radius:.25rem;--sidebar:#f5f3f0;--sidebar-background:#f5f3f0;--sidebar-foreground:#263740;--sidebar-primary:#305030;--sidebar-primary-foreground:#f5f3ef;--sidebar-accent:#e7e2da;--sidebar-accent-foreground:#1d2930;--sidebar-border:#c4d4c4;--sidebar-ring:#3e743e;--tactical-amber:#c2940a;--tactical-amber-dim:#d6b85c;--tactical-green:#267326;--tactical-green-dim:#7ab87a;--tactical-cyan:#24868f;--tactical-cyan-dim:#5eb2ba;--tactical-red:#bd2828;--tactical-olive:#64783a;--scanline-opacity:.015}.dark{--background:#0d1012;--foreground:#e0ddd1;--card:#14181a;--card-foreground:#e0ddd1;--popover:#111517;--popover-foreground:#e0ddd1;--primary:#fa0;--primary-foreground:#0d1012;--secondary:#323922;--secondary-foreground:#c6d2ac;--muted:#202527;--muted-foreground:#819098;--accent:#292f32;--accent-foreground:#ebe8e0;--destructive:#c32222;--destructive-foreground:#fff;--border:#203c32;--input:#292f32;--ring:#ffbf00;--chart-1:#ffbf00;--chart-2:#22c38e;--chart-3:#1aa1e6;--chart-4:#86ac39;--chart-5:#d92626;--sidebar:#111517;--sidebar-background:#111517;--sidebar-foreground:#e0ddd1;--sidebar-primary:#ffbf00;--sidebar-primary-foreground:#0d1012;--sidebar-accent:#292f32;--sidebar-accent-foreground:#ebe8e0;--sidebar-border:#203c32;--sidebar-ring:#ffbf00;--tactical-amber:#ffbf00;--tactical-amber-dim:#a17d12;--tactical-green:#22c38e;--tactical-green-dim:#20604a;--tactical-cyan:#17bfcf;--tactical-cyan-dim:#196066;--tactical-red:#d92626;--tactical-olive:#576b2e;--scanline-opacity:.03}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes pulse{50%{opacity:.5}} +@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-100:#ffe2e2;--color-red-800:#9f0712;--color-red-900:#82181a;--color-amber-400:#fcbb00;--color-amber-500:#f99c00;--color-amber-700:#b75000;--color-yellow-100:#fef9c2;--color-yellow-800:#874b00;--color-yellow-900:#733e0a;--color-green-100:#dcfce7;--color-green-600:#00a544;--color-green-800:#016630;--color-green-900:#0d542b;--color-emerald-400:#00d294;--color-emerald-500:#00bb7f;--color-emerald-700:#007956;--color-blue-500:#3080ff;--color-gray-100:#f3f4f6;--color-gray-800:#1e2939;--color-zinc-100:#f4f4f5;--color-zinc-400:#9f9fa9;--color-zinc-500:#71717b;--color-zinc-800:#27272a;--color-black:#000;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-4xl:56rem;--container-6xl:72rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wider:.05em;--tracking-widest:.1em;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--radius-sm:calc(var(--radius) - 2px);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-xs:4px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}@supports (color:lab(0% 0 0)){:root,:host{--color-red-100:lab(92.243% 10.2865 3.83865);--color-red-800:lab(33.7174% 55.8993 41.0293);--color-red-900:lab(28.5139% 44.5539 29.0463);--color-amber-400:lab(80.1641% 16.6016 99.2089);--color-amber-500:lab(72.7183% 31.8672 97.9407);--color-amber-700:lab(47.2709% 42.9082 69.2966);--color-yellow-100:lab(97.3564% -4.51407 27.344);--color-yellow-800:lab(38.7484% 23.5833 51.4916);--color-yellow-900:lab(32.3865% 21.1273 38.5959);--color-green-100:lab(96.1861% -13.8464 6.52365);--color-green-600:lab(59.0978% -58.6621 41.2579);--color-green-800:lab(37.4616% -36.7971 22.9692);--color-green-900:lab(30.797% -29.6927 17.382);--color-emerald-400:lab(75.0771% -60.7313 19.4147);--color-emerald-500:lab(66.9756% -58.27 19.5419);--color-emerald-700:lab(44.4871% -41.0396 11.0361);--color-blue-500:lab(54.1736% 13.3369 -74.6839);--color-gray-100:lab(96.1596% -.0823438 -1.13575);--color-gray-800:lab(16.1051% -1.18239 -11.7533);--color-zinc-100:lab(96.1634% .0993311 -.364041);--color-zinc-400:lab(65.6464% 1.53497 -5.42429);--color-zinc-500:lab(47.8878% 1.65477 -5.77283);--color-zinc-800:lab(15.7305% .613764 -2.16959)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}*{scrollbar-width:thin}html,body{overscroll-behavior:none}body{background-color:var(--background);width:100%;min-height:100svh;color:var(--foreground);font-family:var(--font-sans), sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.font-mono{font-family:var(--font-mono), monospace}button:not(:disabled),[role=button]:not(:disabled){cursor:pointer}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.\@container\/field-group{container:field-group/inline-size}.\@container{container-type:inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.top-0{top:calc(var(--spacing) * 0)}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-3\.5{top:calc(var(--spacing) * 3.5)}.top-4{top:calc(var(--spacing) * 4)}.right-0{right:calc(var(--spacing) * 0)}.right-1{right:calc(var(--spacing) * 1)}.right-2{right:calc(var(--spacing) * 2)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.bottom-0{bottom:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.left-1\/2{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.order-first{order:-9999}.order-last{order:9999}.col-span-2{grid-column:span 2/span 2}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-0{margin-inline:calc(var(--spacing) * 0)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-3\.5{margin-inline:calc(var(--spacing) * 3.5)}.mx-auto{margin-inline:auto}.-my-2{margin-block:calc(var(--spacing) * -2)}.my-1{margin-block:calc(var(--spacing) * 1)}.my-2{margin-block:calc(var(--spacing) * 2)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-auto{margin-right:auto}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.field-sizing-content{field-sizing:content}.aspect-square{aspect-ratio:1}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-\[1\.2rem\]{width:1.2rem;height:1.2rem}.size-full{width:100%;height:100%}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-\[calc\(--spacing\(4\.75\)\)\]{height:calc(calc(var(--spacing) * 4.75))}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-\(--available-height\){max-height:var(--available-height)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[min\(calc\(--spacing\(72\)---spacing\(9\)\)\,calc\(var\(--available-height\)---spacing\(9\)\)\)\]{max-height:min(calc(calc(var(--spacing) * 72) - calc(var(--spacing) * 9)), calc(var(--available-height) - calc(var(--spacing) * 9)))}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-svh{min-height:100svh}.w-\(--anchor-width\){width:var(--anchor-width)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-24{width:calc(var(--spacing) * 24)}.w-32{width:calc(var(--spacing) * 32)}.w-36{width:calc(var(--spacing) * 36)}.w-48{width:calc(var(--spacing) * 48)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\(--available-width\){max-width:var(--available-width)}.max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-5{min-width:calc(var(--spacing) * 5)}.min-w-16{min-width:calc(var(--spacing) * 16)}.min-w-32{min-width:calc(var(--spacing) * 32)}.min-w-\[calc\(var\(--anchor-width\)\+--spacing\(7\)\)\]{min-width:calc(var(--anchor-width) + calc(var(--spacing) * 7))}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-\(--transform-origin\){transform-origin:var(--transform-origin)}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[calc\(-50\%-2px\)\]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-none{translate:none}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-3d{scale:var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)}.rotate-0{rotate:0deg}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)}.resize{resize:both}.resize-none{resize:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing) * 1)}.scroll-py-1{scroll-padding-block:calc(var(--spacing) * 1)}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\[minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,1fr)}.grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing) * 0)}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-px{gap:1px}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 0) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 0) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}:where(.-space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * -2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * -2) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[calc\(var\(--radius-sm\)\+2px\)\]{border-radius:calc(var(--radius-sm) + 2px)}.rounded-\[calc\(var\(--radius-sm\)-2px\)\]{border-radius:calc(var(--radius-sm) - 2px)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:calc(var(--radius) + 2px)}.rounded-md{border-radius:var(--radius)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:calc(var(--radius) + 2px);border-top-right-radius:calc(var(--radius) + 2px)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:calc(var(--radius) + 2px);border-bottom-left-radius:calc(var(--radius) + 2px)}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-bs{border-block-start-style:var(--tw-border-style);border-block-start-width:1px}.border-be{border-block-end-style:var(--tw-border-style);border-block-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-amber-500{border-color:var(--color-amber-500)}.border-amber-500\/30{border-color:#f99c004d}@supports (color:color-mix(in lab, red, red)){.border-amber-500\/30{border-color:color-mix(in oklab, var(--color-amber-500) 30%, transparent)}}.border-blue-500\/30{border-color:#3080ff4d}@supports (color:color-mix(in lab, red, red)){.border-blue-500\/30{border-color:color-mix(in oklab, var(--color-blue-500) 30%, transparent)}}.border-border{border-color:var(--border)}.border-destructive{border-color:var(--destructive)}.border-emerald-500{border-color:var(--color-emerald-500)}.border-emerald-500\/30{border-color:#00bb7f4d}@supports (color:color-mix(in lab, red, red)){.border-emerald-500\/30{border-color:color-mix(in oklab, var(--color-emerald-500) 30%, transparent)}}.border-foreground\/10{border-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.border-foreground\/10{border-color:color-mix(in oklab, var(--foreground) 10%, transparent)}}.border-foreground\/20{border-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.border-foreground\/20{border-color:color-mix(in oklab, var(--foreground) 20%, transparent)}}.border-input{border-color:var(--input)}.border-muted{border-color:var(--muted)}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:#0000}.bg-amber-500\/10{background-color:#f99c001a}@supports (color:color-mix(in lab, red, red)){.bg-amber-500\/10{background-color:color-mix(in oklab, var(--color-amber-500) 10%, transparent)}}.bg-background{background-color:var(--background)}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab, red, red)){.bg-black\/80{background-color:color-mix(in oklab, var(--color-black) 80%, transparent)}}.bg-blue-500\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab, red, red)){.bg-blue-500\/10{background-color:color-mix(in oklab, var(--color-blue-500) 10%, transparent)}}.bg-border,.bg-border\/50{background-color:var(--border)}@supports (color:color-mix(in lab, red, red)){.bg-border\/50{background-color:color-mix(in oklab, var(--border) 50%, transparent)}}.bg-card{background-color:var(--card)}.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/10{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.bg-emerald-500\/10{background-color:#00bb7f1a}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\/10{background-color:color-mix(in oklab, var(--color-emerald-500) 10%, transparent)}}.bg-foreground{background-color:var(--foreground)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-green-100{background-color:var(--color-green-100)}.bg-input\/20{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.bg-input\/20{background-color:color-mix(in oklab, var(--input) 20%, transparent)}}.bg-muted{background-color:var(--muted)}.bg-muted-foreground\/10{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.bg-muted-foreground\/10{background-color:color-mix(in oklab, var(--muted-foreground) 10%, transparent)}}.bg-muted\/20{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/20{background-color:color-mix(in oklab, var(--muted) 20%, transparent)}}.bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/30{background-color:color-mix(in oklab, var(--muted) 30%, transparent)}}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/50{background-color:color-mix(in oklab, var(--muted) 50%, transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-red-100{background-color:var(--color-red-100)}.bg-secondary{background-color:var(--secondary)}.bg-sidebar{background-color:var(--sidebar)}.bg-sidebar-border{background-color:var(--sidebar-border)}.bg-transparent{background-color:#0000}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-clip-padding{background-clip:padding-box}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-foreground{fill:var(--foreground)}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-0{padding-inline:calc(var(--spacing) * 0)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-0{padding-bottom:calc(var(--spacing) * 0)}.pb-0\.5{padding-bottom:calc(var(--spacing) * .5)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-4{padding-left:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\/relaxed{font-size:var(--text-sm);line-height:var(--leading-relaxed)}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-xs\/relaxed{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.text-\[0\.625rem\]{font-size:.625rem}.text-\[11px\]{font-size:11px}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-500{color:var(--color-amber-500)}.text-amber-700{color:var(--color-amber-700)}.text-background{color:var(--background)}.text-card-foreground{color:var(--card-foreground)}.text-destructive{color:var(--destructive)}.text-emerald-700{color:var(--color-emerald-700)}.text-foreground{color:var(--foreground)}.text-gray-800{color:var(--color-gray-800)}.text-green-600{color:var(--color-green-600)}.text-green-800{color:var(--color-green-800)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-800{color:var(--color-red-800)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab, red, red)){.text-sidebar-foreground\/70{color:color-mix(in oklab, var(--sidebar-foreground) 70%, transparent)}}.text-tactical-amber{color:var(--tactical-amber)}.text-tactical-cyan{color:var(--tactical-cyan)}.text-tactical-green{color:var(--tactical-green)}.text-yellow-800{color:var(--color-yellow-800)}.text-zinc-500{color:var(--color-zinc-500)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.opacity-50{opacity:.5}.bg-blend-color{background-blend-mode:color}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-background{--tw-ring-color:var(--background)}.ring-foreground\/10{--tw-ring-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.ring-foreground\/10{--tw-ring-color:color-mix(in oklab, var(--foreground) 10%, transparent)}}.ring-sidebar-ring{--tw-ring-color:var(--sidebar-ring)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.ring-inset{--tw-ring-inset:inset}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media (hover:hover){.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-focus\/dropdown-menu-item\:text-accent-foreground:is(:where(.group\/dropdown-menu-item):focus *){color:var(--accent-foreground)}.group-has-data-\[orientation\=horizontal\]\/field\:text-balance:is(:where(.group\/field):has([data-orientation=horizontal]) *){text-wrap:balance}.group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--spacing) * 8)}.group-has-data-\[size\=lg\]\/avatar-group\:size-10:is(:where(.group\/avatar-group):has([data-size=lg]) *){width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.group-has-data-\[size\=sm\]\/avatar-group\:size-6:is(:where(.group\/avatar-group):has([data-size=sm]) *){width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.group-has-data-\[slot\=combobox-clear\]\/input-group\:hidden:is(:where(.group\/input-group):has([data-slot=combobox-clear]) *){display:none}.group-has-\[\>input\]\/input-group\:pt-2:is(:where(.group\/input-group):has(>input) *){padding-top:calc(var(--spacing) * 2)}.group-has-\[\>input\]\/input-group\:pb-2:is(:where(.group\/input-group):has(>input) *){padding-bottom:calc(var(--spacing) * 2)}.group-data-empty\/combobox-content\:flex:is(:where(.group\/combobox-content)[data-empty] *){display:flex}.group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible=icon] *){margin-top:calc(var(--spacing) * -8)}.group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible=icon] *){display:none}.group-data-\[collapsible\=icon\]\:size-8\!:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--spacing) * 8)!important;height:calc(var(--spacing) * 8)!important}.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-collapsible=icon] *){width:var(--sidebar-width-icon)}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)))}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)) + 2px)}.group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible=icon] *){overflow:hidden}.group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 0)!important}.group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 2)!important}.group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible=icon] *){opacity:0}.group-data-\[collapsible\=offExamples\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offExamples] *){right:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offExamples\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offExamples] *){left:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offExamples\]\:w-0:is(:where(.group)[data-collapsible=offExamples] *){width:calc(var(--spacing) * 0)}.group-data-\[collapsible\=offExamples\]\:translate-x-0:is(:where(.group)[data-collapsible=offExamples] *){--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *),.group-data-\[disabled\=true\]\/field\:opacity-50:is(:where(.group\/field)[data-disabled=true] *),.group-data-\[disabled\=true\]\/input-group\:opacity-50:is(:where(.group\/input-group)[data-disabled=true] *){opacity:.5}.group-data-\[panel-open\]\:rotate-180:is(:where(.group)[data-panel-open] *){rotate:180deg}.group-data-\[side\=left\]\:-right-4:is(:where(.group)[data-side=left] *){right:calc(var(--spacing) * -4)}.group-data-\[side\=left\]\:border-r:is(:where(.group)[data-side=left] *){border-right-style:var(--tw-border-style);border-right-width:1px}.group-data-\[side\=right\]\:left-0:is(:where(.group)[data-side=right] *){left:calc(var(--spacing) * 0)}.group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side=right] *){rotate:180deg}.group-data-\[side\=right\]\:border-l:is(:where(.group)[data-side=right] *){border-left-style:var(--tw-border-style);border-left-width:1px}.group-data-\[size\=default\]\/avatar\:size-2\.5:is(:where(.group\/avatar)[data-size=default] *){width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.group-data-\[size\=lg\]\/avatar\:size-3:is(:where(.group\/avatar)[data-size=lg] *){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.group-data-\[size\=sm\]\/alert-dialog-content\:grid:is(:where(.group\/alert-dialog-content)[data-size=sm] *){display:grid}.group-data-\[size\=sm\]\/alert-dialog-content\:grid-cols-2:is(:where(.group\/alert-dialog-content)[data-size=sm] *){grid-template-columns:repeat(2,minmax(0,1fr))}.group-data-\[size\=sm\]\/avatar\:size-2:is(:where(.group\/avatar)[data-size=sm] *){width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.group-data-\[size\=sm\]\/avatar\:text-xs:is(:where(.group\/avatar)[data-size=sm] *){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.group-data-\[size\=sm\]\/card\:px-3:is(:where(.group\/card)[data-size=sm] *){padding-inline:calc(var(--spacing) * 3)}.group-data-\[variant\=floating\]\:rounded-lg:is(:where(.group)[data-variant=floating] *){border-radius:calc(var(--radius) + 2px)}.group-data-\[variant\=floating\]\:shadow-sm:is(:where(.group)[data-variant=floating] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[variant\=floating\]\:ring-1:is(:where(.group)[data-variant=floating] *){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[variant\=floating\]\:ring-sidebar-border:is(:where(.group)[data-variant=floating] *){--tw-ring-color:var(--sidebar-border)}.group-data-\[variant\=outline\]\/field-group\:-mb-2:is(:where(.group\/field-group)[data-variant=outline] *){margin-bottom:calc(var(--spacing) * -2)}@media (hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--sidebar-accent-foreground)}}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.peer-data-active\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active]~*){color:var(--sidebar-accent-foreground)}.peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.peer\/menu-button)[data-size=default]~*){top:calc(var(--spacing) * 1.5)}.peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.peer\/menu-button)[data-size=lg]~*){top:calc(var(--spacing) * 2.5)}.peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size=sm]~*){top:calc(var(--spacing) * 1)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-6::file-selector-button{height:calc(var(--spacing) * 6)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-xs\/relaxed::file-selector-button{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing) * -2)}.after\:inset-0:after{content:var(--tw-content);inset:calc(var(--spacing) * 0)}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing) * 0)}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.after\:rounded-full:after{content:var(--tw-content);border-radius:3.40282e38px}.after\:border:after{content:var(--tw-content);border-style:var(--tw-border-style);border-width:1px}.after\:border-border:after{content:var(--tw-content);border-color:var(--border)}.after\:mix-blend-darken:after{content:var(--tw-content);mix-blend-mode:darken}.group-data-\[collapsible\=offExamples\]\:after\:left-full:is(:where(.group)[data-collapsible=offExamples] *):after{content:var(--tw-content);left:100%}.last\:mt-0:last-child{margin-top:calc(var(--spacing) * 0)}.last\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.focus-within\:border-ring:focus-within{border-color:var(--ring)}.focus-within\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}@media (hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive\/20:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/20:hover{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.hover\:bg-input\/40:hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-input\/40:hover{background-color:color-mix(in oklab, var(--input) 40%, transparent)}}.hover\:bg-input\/50:hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-input\/50:hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:bg-primary\/80:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-primary\/80:hover{background-color:color-mix(in oklab, var(--primary) 80%, transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.hover\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-muted-foreground:hover{color:var(--muted-foreground)}.hover\:text-sidebar-accent-foreground:hover{color:var(--sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-accent)));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:group-data-\[collapsible\=offExamples\]\:bg-sidebar:hover:is(:where(.group)[data-collapsible=offExamples] *){background-color:var(--sidebar)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:var(--sidebar-border)}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus,:is(.focus\:\*\*\:text-accent-foreground:focus *),:is(.not-data-\[variant\=destructive\]\:focus\:\*\*\:text-accent-foreground:not([data-variant=destructive]):focus *){color:var(--accent-foreground)}.focus-visible\:border-destructive\/40:focus-visible{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:border-destructive\/40:focus-visible{border-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-2:focus-visible,.focus-visible\:ring-\[2px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:bg-sidebar-accent:active{background-color:var(--sidebar-accent)}.active\:text-sidebar-accent-foreground:active{color:var(--sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}:where([data-side=left]) .in-data-\[side\=left\]\:cursor-w-resize{cursor:w-resize}:where([data-side=right]) .in-data-\[side\=right\]\:cursor-e-resize{cursor:e-resize}:where([data-slot=combobox-content]) .in-data-\[slot\=combobox-content\]\:focus-within\:border-inherit:focus-within{border-color:inherit}:where([data-slot=combobox-content]) .in-data-\[slot\=combobox-content\]\:focus-within\:ring-0:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-disabled\:pointer-events-none:has(:disabled){pointer-events:none}.has-disabled\:cursor-not-allowed:has(:disabled){cursor:not-allowed}.has-disabled\:opacity-50:has(:disabled){opacity:.5}.has-aria-invalid\:border-destructive:has([aria-invalid=true]){border-color:var(--destructive)}.has-aria-invalid\:ring-2:has([aria-invalid=true]){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.has-data-checked\:bg-primary\/5:has([data-checked]){background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.has-data-checked\:bg-primary\/5:has([data-checked]){background-color:color-mix(in oklab, var(--primary) 5%, transparent)}}.has-data-\[align\=block-end\]\:rounded-md:has([data-align=block-end]),.has-data-\[align\=block-start\]\:rounded-md:has([data-align=block-start]){border-radius:var(--radius)}.has-data-\[icon\=inline-end\]\:pr-1\.5:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-end\]\:pr-2:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 2)}.has-data-\[icon\=inline-start\]\:pl-1\.5:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-start\]\:pl-2:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 2)}.has-data-\[slot\=alert-dialog-media\]\:grid-rows-\[auto_auto_1fr\]:has([data-slot=alert-dialog-media]){grid-template-rows:auto auto 1fr}.has-data-\[slot\=alert-dialog-media\]\:gap-x-4:has([data-slot=alert-dialog-media]){column-gap:calc(var(--spacing) * 4)}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-data-\[slot\=card-description\]\:grid-rows-\[auto_auto\]:has([data-slot=card-description]){grid-template-rows:auto auto}.has-data-\[slot\=combobox-chip\]\:px-1:has([data-slot=combobox-chip]){padding-inline:calc(var(--spacing) * 1)}.has-data-\[slot\=combobox-chip-remove\]\:pr-0:has([data-slot=combobox-chip-remove]){padding-right:calc(var(--spacing) * 0)}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--sidebar)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:border-ring:has([data-slot=input-group-control]:focus-visible){border-color:var(--ring)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-2:has([data-slot=input-group-control]:focus-visible){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/30:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/30:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:border-destructive:has([data-slot][aria-invalid=true]){border-color:var(--destructive)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-2:has([data-slot][aria-invalid=true]){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.has-\[textarea\]\:rounded-md:has(:is(textarea)){border-radius:var(--radius)}.has-\[\>\[data-align\=block-end\]\]\:h-auto:has(>[data-align=block-end]){height:auto}.has-\[\>\[data-align\=block-end\]\]\:flex-col:has(>[data-align=block-end]){flex-direction:column}.has-\[\>\[data-align\=block-start\]\]\:h-auto:has(>[data-align=block-start]){height:auto}.has-\[\>\[data-align\=block-start\]\]\:flex-col:has(>[data-align=block-start]){flex-direction:column}.has-\[\>\[data-slot\=checkbox-group\]\]\:gap-3:has(>[data-slot=checkbox-group]){gap:calc(var(--spacing) * 3)}.has-\[\>\[data-slot\=field-content\]\]\:items-start:has(>[data-slot=field-content]){align-items:flex-start}.has-\[\>\[data-slot\=field\]\]\:w-full:has(>[data-slot=field]){width:100%}.has-\[\>\[data-slot\=field\]\]\:flex-col:has(>[data-slot=field]){flex-direction:column}.has-\[\>\[data-slot\=field\]\]\:rounded-md:has(>[data-slot=field]){border-radius:var(--radius)}.has-\[\>\[data-slot\=field\]\]\:border:has(>[data-slot=field]){border-style:var(--tw-border-style);border-width:1px}.has-\[\>\[data-slot\=radio-group\]\]\:gap-3:has(>[data-slot=radio-group]){gap:calc(var(--spacing) * 3)}.has-\[\>button\]\:mr-\[-0\.275rem\]:has(>button){margin-right:-.275rem}.has-\[\>button\]\:ml-\[-0\.275rem\]:has(>button){margin-left:-.275rem}.has-\[\>img\:first-child\]\:pt-0:has(>img:first-child){padding-top:calc(var(--spacing) * 0)}.has-\[\>kbd\]\:mr-\[-0\.275rem\]:has(>kbd){margin-right:-.275rem}.has-\[\>kbd\]\:ml-\[-0\.275rem\]:has(>kbd){margin-left:-.275rem}.has-\[\>svg\]\:p-0:has(>svg){padding:calc(var(--spacing) * 0)}.has-\[\>textarea\]\:h-auto:has(>textarea){height:auto}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-expanded\:bg-muted[aria-expanded=true]{background-color:var(--muted)}.aria-expanded\:bg-secondary[aria-expanded=true]{background-color:var(--secondary)}.aria-expanded\:text-foreground[aria-expanded=true]{color:var(--foreground)}.aria-expanded\:text-secondary-foreground[aria-expanded=true]{color:var(--secondary-foreground)}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-0[aria-invalid=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:ring-2[aria-invalid=true],.aria-invalid\:ring-\[2px\][aria-invalid=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.data-active\:bg-sidebar-accent[data-active]{background-color:var(--sidebar-accent)}.data-active\:font-medium[data-active]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-active\:text-sidebar-accent-foreground[data-active]{color:var(--sidebar-accent-foreground)}.data-closed\:overflow-hidden[data-closed]{overflow:hidden}.data-disabled\:pointer-events-none[data-disabled]{pointer-events:none}.data-disabled\:opacity-50[data-disabled]{opacity:.5}.data-empty\:p-0[data-empty]{padding:calc(var(--spacing) * 0)}.data-ending-style\:opacity-0[data-ending-style]{opacity:0}.data-highlighted\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-highlighted\:text-accent-foreground[data-highlighted],:is(.not-data-\[variant\=destructive\]\:data-highlighted\:\*\*\:text-accent-foreground:not([data-variant=destructive])[data-highlighted] *){color:var(--accent-foreground)}.data-inset\:pl-8[data-inset]{padding-left:calc(var(--spacing) * 8)}.data-open\:bg-accent[data-open]{background-color:var(--accent)}.data-open\:text-accent-foreground[data-open]{color:var(--accent-foreground)}.data-open\:opacity-100[data-open]{opacity:1}@media (hover:hover){.data-open\:hover\:bg-sidebar-accent[data-open]:hover{background-color:var(--sidebar-accent)}.data-open\:hover\:text-sidebar-accent-foreground[data-open]:hover{color:var(--sidebar-accent-foreground)}}.data-placeholder\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-pressed\:bg-transparent[data-pressed]{background-color:#0000}.data-selected\:border-primary[data-selected]{border-color:var(--primary)}.data-selected\:text-foreground[data-selected]{color:var(--foreground)}.data-starting-style\:opacity-0[data-starting-style]{opacity:0}.data-\[chips\=true\]\:min-w-\(--anchor-width\)[data-chips=true]{min-width:var(--anchor-width)}.data-\[invalid\=true\]\:text-destructive[data-invalid=true]{color:var(--destructive)}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[orientation\=vertical\]\:self-stretch[data-orientation=vertical]{align-self:stretch}.data-\[side\=bottom\]\:inset-x-0[data-side=bottom]{inset-inline:calc(var(--spacing) * 0)}.data-\[side\=bottom\]\:top-1[data-side=bottom]{top:calc(var(--spacing) * 1)}.data-\[side\=bottom\]\:bottom-0[data-side=bottom]{bottom:calc(var(--spacing) * 0)}.data-\[side\=bottom\]\:h-auto[data-side=bottom]{height:auto}.data-\[side\=bottom\]\:border-t[data-side=bottom]{border-top-style:var(--tw-border-style);border-top-width:1px}.data-\[side\=left\]\:inset-y-0[data-side=left]{inset-block:calc(var(--spacing) * 0)}.data-\[side\=left\]\:top-1\/2\![data-side=left]{top:50%!important}.data-\[side\=left\]\:-right-1[data-side=left]{right:calc(var(--spacing) * -1)}.data-\[side\=left\]\:left-0[data-side=left]{left:calc(var(--spacing) * 0)}.data-\[side\=left\]\:h-full[data-side=left]{height:100%}.data-\[side\=left\]\:w-3\/4[data-side=left]{width:75%}.data-\[side\=left\]\:-translate-y-1\/2[data-side=left]{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:border-r[data-side=left]{border-right-style:var(--tw-border-style);border-right-width:1px}.data-\[side\=right\]\:inset-y-0[data-side=right]{inset-block:calc(var(--spacing) * 0)}.data-\[side\=right\]\:top-1\/2\![data-side=right]{top:50%!important}.data-\[side\=right\]\:right-0[data-side=right]{right:calc(var(--spacing) * 0)}.data-\[side\=right\]\:-left-1[data-side=right]{left:calc(var(--spacing) * -1)}.data-\[side\=right\]\:h-full[data-side=right]{height:100%}.data-\[side\=right\]\:w-3\/4[data-side=right]{width:75%}.data-\[side\=right\]\:-translate-y-1\/2[data-side=right]{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:border-l[data-side=right]{border-left-style:var(--tw-border-style);border-left-width:1px}.data-\[side\=top\]\:inset-x-0[data-side=top]{inset-inline:calc(var(--spacing) * 0)}.data-\[side\=top\]\:top-0[data-side=top]{top:calc(var(--spacing) * 0)}.data-\[side\=top\]\:-bottom-2\.5[data-side=top]{bottom:calc(var(--spacing) * -2.5)}.data-\[side\=top\]\:h-auto[data-side=top]{height:auto}.data-\[side\=top\]\:border-b[data-side=top]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.data-\[size\=default\]\:h-7[data-size=default]{height:calc(var(--spacing) * 7)}.data-\[size\=default\]\:max-w-xs[data-size=default]{max-width:var(--container-xs)}.data-\[size\=lg\]\:size-10[data-size=lg]{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.data-\[size\=md\]\:text-xs[data-size=md]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.data-\[size\=sm\]\:size-6[data-size=sm]{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.data-\[size\=sm\]\:h-6[data-size=sm]{height:calc(var(--spacing) * 6)}.data-\[size\=sm\]\:max-w-64[data-size=sm]{max-width:calc(var(--spacing) * 64)}.data-\[size\=sm\]\:gap-3[data-size=sm]{gap:calc(var(--spacing) * 3)}.data-\[size\=sm\]\:py-3[data-size=sm]{padding-block:calc(var(--spacing) * 3)}.data-\[size\=sm\]\:text-xs[data-size=sm]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}:is(.\*\:data-\[slot\=avatar\]\:ring-2>*)[data-slot=avatar]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}:is(.\*\:data-\[slot\=avatar\]\:ring-background>*)[data-slot=avatar]{--tw-ring-color:var(--background)}.data-\[slot\=checkbox-group\]\:gap-3[data-slot=checkbox-group]{gap:calc(var(--spacing) * 3)}:is(.\*\:data-\[slot\=field\]\:p-2>*)[data-slot=field]{padding:calc(var(--spacing) * 2)}:is(.\*\:data-\[slot\=field-group\]\:gap-4>*)[data-slot=field-group]{gap:calc(var(--spacing) * 4)}:is(.\*\:data-\[slot\=input-group\]\:m-1>*)[data-slot=input-group]{margin:calc(var(--spacing) * 1)}:is(.\*\:data-\[slot\=input-group\]\:mb-0>*)[data-slot=input-group]{margin-bottom:calc(var(--spacing) * 0)}:is(.\*\:data-\[slot\=input-group\]\:h-7>*)[data-slot=input-group]{height:calc(var(--spacing) * 7)}:is(.\*\:data-\[slot\=input-group\]\:border-none>*)[data-slot=input-group]{--tw-border-style:none;border-style:none}:is(.\*\:data-\[slot\=input-group\]\:bg-input\/20>*)[data-slot=input-group]{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){:is(.\*\:data-\[slot\=input-group\]\:bg-input\/20>*)[data-slot=input-group]{background-color:color-mix(in oklab, var(--input) 20%, transparent)}}:is(.\*\:data-\[slot\=input-group\]\:shadow-none>*)[data-slot=input-group]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}:is(.\*\*\:data-\[slot\=kbd\]\:rounded-\[calc\(var\(--radius-sm\)-2px\)\] *)[data-slot=kbd]{border-radius:calc(var(--radius-sm) - 2px)}:is(.\*\*\:data-\[slot\=kbd\]\:rounded-md *)[data-slot=kbd]{border-radius:var(--radius)}:is(.\*\*\:data-\[slot\=kbd\]\:bg-muted-foreground\/10 *)[data-slot=kbd]{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){:is(.\*\*\:data-\[slot\=kbd\]\:bg-muted-foreground\/10 *)[data-slot=kbd]{background-color:color-mix(in oklab, var(--muted-foreground) 10%, transparent)}}:is(.\*\*\:data-\[slot\=kbd\]\:px-1 *)[data-slot=kbd]{padding-inline:calc(var(--spacing) * 1)}:is(.\*\*\:data-\[slot\=kbd\]\:text-\[0\.625rem\] *)[data-slot=kbd]{font-size:.625rem}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-1\.5>*)[data-slot=select-value]{gap:calc(var(--spacing) * 1.5)}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}.data-\[variant\=label\]\:text-xs\/relaxed[data-variant=label]{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.data-\[variant\=legend\]\:text-sm[data-variant=legend]{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.nth-last-2\:-mt-1:nth-last-child(2){margin-top:calc(var(--spacing) * -1)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.supports-backdrop-filter\:backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}}@media (width>=40rem){.sm\:flex{display:flex}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-\[1fr_1fr_1fr_auto\]{grid-template-columns:1fr 1fr 1fr auto}.sm\:grid-cols-\[1fr_auto\]{grid-template-columns:1fr auto}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:row-span-2:is(:where(.group\/alert-dialog-content)[data-size=default] *){grid-row:span 2/span 2}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:place-items-start:is(:where(.group\/alert-dialog-content)[data-size=default] *){place-items:start}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:text-left:is(:where(.group\/alert-dialog-content)[data-size=default] *){text-align:left}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:group-has-data-\[slot\=alert-dialog-media\]\/alert-dialog-content\:col-start-2:is(:where(.group\/alert-dialog-content)[data-size=default] *):is(:where(.group\/alert-dialog-content):has([data-slot=alert-dialog-media]) *){grid-column-start:2}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:has-data-\[slot\=alert-dialog-media\]\:grid-rows-\[auto_1fr\]:is(:where(.group\/alert-dialog-content)[data-size=default] *):has([data-slot=alert-dialog-media]){grid-template-rows:auto 1fr}.data-\[side\=left\]\:sm\:max-w-sm[data-side=left],.data-\[side\=right\]\:sm\:max-w-sm[data-side=right],.data-\[size\=default\]\:sm\:max-w-sm[data-size=default]{max-width:var(--container-sm)}}@media (width>=48rem){.md\:block{display:block}.md\:flex{display:flex}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:text-xs\/relaxed{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.md\:text-pretty{text-wrap:pretty}.md\:opacity-0{opacity:0}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing) * 2)}.md\:peer-data-\[variant\=inset\]\:ml-0:is(:where(.peer)[data-variant=inset]~*){margin-left:calc(var(--spacing) * 0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:calc(var(--radius) + 4px)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ml-2:is(:where(.peer)[data-variant=inset]~*):is(:where(.peer)[data-state=collapsed]~*){margin-left:calc(var(--spacing) * 2)}.md\:after\:hidden:after{content:var(--tw-content);display:none}}@media (width>=64rem){.lg\:block{display:block}}@media (width>=80rem){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container field-group (width>=28rem){.\@md\/field-group\:flex-row{flex-direction:row}.\@md\/field-group\:items-center{align-items:center}.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:items-start:has(>[data-slot=field-content]){align-items:flex-start}}.dark\:scale-0:where(.dark,.dark *){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.dark\:scale-100:where(.dark,.dark *){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.dark\:-rotate-90:where(.dark,.dark *){rotate:-90deg}.dark\:rotate-0:where(.dark,.dark *){rotate:0deg}.dark\:bg-destructive\/20:where(.dark,.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-destructive\/20:where(.dark,.dark *){background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.dark\:bg-gray-800:where(.dark,.dark *){background-color:var(--color-gray-800)}.dark\:bg-green-900:where(.dark,.dark *){background-color:var(--color-green-900)}.dark\:bg-input\/30:where(.dark,.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-input\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.dark\:bg-muted\/30:where(.dark,.dark *){background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-muted\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--muted) 30%, transparent)}}.dark\:bg-popover:where(.dark,.dark *){background-color:var(--popover)}.dark\:bg-red-900:where(.dark,.dark *){background-color:var(--color-red-900)}.dark\:bg-transparent:where(.dark,.dark *){background-color:#0000}.dark\:bg-yellow-900:where(.dark,.dark *){background-color:var(--color-yellow-900)}.dark\:bg-zinc-800:where(.dark,.dark *){background-color:var(--color-zinc-800)}.dark\:text-amber-400:where(.dark,.dark *){color:var(--color-amber-400)}.dark\:text-emerald-400:where(.dark,.dark *){color:var(--color-emerald-400)}.dark\:text-gray-100:where(.dark,.dark *){color:var(--color-gray-100)}.dark\:text-green-100:where(.dark,.dark *){color:var(--color-green-100)}.dark\:text-red-100:where(.dark,.dark *){color:var(--color-red-100)}.dark\:text-yellow-100:where(.dark,.dark *){color:var(--color-yellow-100)}.dark\:text-zinc-400:where(.dark,.dark *){color:var(--color-zinc-400)}.dark\:invert:where(.dark,.dark *){--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.dark\:after\:mix-blend-lighten:where(.dark,.dark *):after{content:var(--tw-content);mix-blend-mode:lighten}@media (hover:hover){.dark\:hover\:bg-destructive\/30:where(.dark,.dark *):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-destructive\/30:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--destructive) 30%, transparent)}}.dark\:hover\:bg-input\/50:where(.dark,.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-input\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.dark\:hover\:bg-muted\/50:where(.dark,.dark *):hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-muted\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--muted) 50%, transparent)}}}.dark\:focus-visible\:ring-destructive\/40:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:focus-visible\:ring-destructive\/40:where(.dark,.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:has-aria-invalid\:border-destructive\/50:where(.dark,.dark *):has([aria-invalid=true]){border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-aria-invalid\:border-destructive\/50:where(.dark,.dark *):has([aria-invalid=true]){border-color:color-mix(in oklab, var(--destructive) 50%, transparent)}}.dark\:has-aria-invalid\:ring-destructive\/40:where(.dark,.dark *):has([aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-aria-invalid\:ring-destructive\/40:where(.dark,.dark *):has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:has-data-checked\:bg-primary\/10:where(.dark,.dark *):has([data-checked]){background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.dark\:has-data-checked\:bg-primary\/10:where(.dark,.dark *):has([data-checked]){background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:where(.dark,.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:where(.dark,.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:aria-invalid\:border-destructive\/50:where(.dark,.dark *)[aria-invalid=true]{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:border-destructive\/50:where(.dark,.dark *)[aria-invalid=true]{border-color:color-mix(in oklab, var(--destructive) 50%, transparent)}}.dark\:aria-invalid\:ring-destructive\/40:where(.dark,.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:ring-destructive\/40:where(.dark,.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:where(.dark,.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:where(.dark,.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-2\.5 svg:not([class*=size-]){width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5 svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\.border-b\]\:pb-2.border-b{padding-bottom:calc(var(--spacing) * 2)}.\[\.border-b\]\:pb-4.border-b{padding-bottom:calc(var(--spacing) * 4)}.group-data-\[size\=sm\]\/card\:\[\.border-b\]\:pb-3:is(:where(.group\/card)[data-size=sm] *).border-b{padding-bottom:calc(var(--spacing) * 3)}.\[\.border-t\]\:pt-2.border-t{padding-top:calc(var(--spacing) * 2)}.\[\.border-t\]\:pt-4.border-t{padding-top:calc(var(--spacing) * 4)}.group-data-\[size\=sm\]\/card\:\[\.border-t\]\:pt-3:is(:where(.group\/card)[data-size=sm] *).border-t{padding-top:calc(var(--spacing) * 3)}:is(.\*\:\[a\]\:underline>*):is(a){text-decoration-line:underline}:is(.\*\:\[a\]\:underline-offset-3>*):is(a){text-underline-offset:3px}@media (hover:hover){.\[a\]\:hover\:bg-destructive\/20:is(a):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.\[a\]\:hover\:bg-destructive\/20:is(a):hover{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.\[a\]\:hover\:bg-muted:is(a):hover{background-color:var(--muted)}.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:color-mix(in oklab, var(--primary) 80%, transparent)}}.\[a\]\:hover\:bg-secondary\/80:is(a):hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.\[a\]\:hover\:bg-secondary\/80:is(a):hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.\[a\]\:hover\:text-muted-foreground:is(a):hover{color:var(--muted-foreground)}:is(.\*\:\[a\]\:hover\:text-foreground>*):is(a):hover{color:var(--foreground)}}:is(.\*\:\[img\:first-child\]\:rounded-t-lg>*):is(img:first-child){border-top-left-radius:calc(var(--radius) + 2px);border-top-right-radius:calc(var(--radius) + 2px)}:is(.\*\:\[img\:last-child\]\:rounded-b-lg>*):is(img:last-child){border-bottom-right-radius:calc(var(--radius) + 2px);border-bottom-left-radius:calc(var(--radius) + 2px)}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing) * 2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)}:is(.\*\:\[svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4>*):is(svg:not([class*=size-])){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>\*\]\:w-full>*{width:100%}@container field-group (width>=28rem){.\@md\/field-group\:\[\&\>\*\]\:w-auto>*{width:auto}}.\[\&\>\.sr-only\]\:w-auto>.sr-only{width:auto}.\[\&\>\[data-slot\=field-label\]\]\:flex-auto>[data-slot=field-label]{flex:auto}@container field-group (width>=28rem){.\@md\/field-group\:\[\&\>\[data-slot\=field-label\]\]\:flex-auto>[data-slot=field-label]{flex:auto}}.has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content])>[role=checkbox],.has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content]) [role=radio]{margin-top:1px}@container field-group (width>=28rem){.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content])>[role=checkbox],.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content]) [role=radio]{margin-top:1px}}.\[\&\>a\]\:underline>a{text-decoration-line:underline}.\[\&\>a\]\:underline-offset-4>a{text-underline-offset:4px}.\[\&\>a\:hover\]\:text-primary>a:hover{color:var(--primary)}.\[\&\>button\]\:hidden>button{display:none}.has-\[\>\[data-align\=block-end\]\]\:\[\&\>input\]\:pt-3:has(>[data-align=block-end])>input{padding-top:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=block-start\]\]\:\[\&\>input\]\:pb-3:has(>[data-align=block-start])>input{padding-bottom:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=inline-end\]\]\:\[\&\>input\]\:pr-1\.5:has(>[data-align=inline-end])>input{padding-right:calc(var(--spacing) * 1.5)}.has-\[\>\[data-align\=inline-start\]\]\:\[\&\>input\]\:pl-1\.5:has(>[data-align=inline-start])>input{padding-left:calc(var(--spacing) * 1.5)}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-2\.5\!>svg{width:calc(var(--spacing) * 2.5)!important;height:calc(var(--spacing) * 2.5)!important}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--sidebar-accent-foreground)}.group-has-data-\[size\=lg\]\/avatar-group\:\[\&\>svg\]\:size-5:is(:where(.group\/avatar-group):has([data-size=lg]) *)>svg{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.group-has-data-\[size\=sm\]\/avatar-group\:\[\&\>svg\]\:size-3:is(:where(.group\/avatar-group):has([data-size=sm]) *)>svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.group-data-\[size\=default\]\/avatar\:\[\&\>svg\]\:size-2:is(:where(.group\/avatar)[data-size=default] *)>svg,.group-data-\[size\=lg\]\/avatar\:\[\&\>svg\]\:size-2:is(:where(.group\/avatar)[data-size=lg] *)>svg{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.group-data-\[size\=sm\]\/avatar\:\[\&\>svg\]\:hidden:is(:where(.group\/avatar)[data-size=sm] *)>svg{display:none}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3>svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5>svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}[data-side=left][data-collapsible=offExamples] .\[\[data-side\=left\]\[data-collapsible\=offExamples\]_\&\]\:-right-2{right:calc(var(--spacing) * -2)}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=right][data-collapsible=offExamples] .\[\[data-side\=right\]\[data-collapsible\=offExamples\]_\&\]\:-left-2{left:calc(var(--spacing) * -2)}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-variant=legend]+.\[\[data-variant\=legend\]\+\&\]\:-mt-1\.5{margin-top:calc(var(--spacing) * -1.5)}}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(data:font/woff2;base64,d09GMgABAAAAAAfsABQAAAAAEAwAAAeCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoP0hWQVJbBmA/U1RBVIFiJyYAdC9qEQgKhGSEAAsgADCGCAE2AiQDOgQgBYlMB4EUDAcbLQ4onoexrSC/2ZyLAa8p8VHB8/x3Vue+V0hVJalMJg2nx/TCrQXxBeqLjQG7FyM1WEa/X1tEXN7cFz9EJEMmMUz3RihWSSKeQCbcIou0izz/C8v+fq3VfajEa9gDD11CImXS7qL/RJFVzC1qiB6KmKeD6TZdQ6IRGv78dL6uSVVCfgni5mzu7kcgQBgAEAQTQRCoL++STTYybkJxNfQxAAIAGu8OdEB9teW2jh4BpgDqFjAeSEByW3zFP0CBBgNMsMCGEDjgggdhiEAUAeIIED7ABTDUEnkIE9Q9ahFgKttcVhApo4ACB4qobHaccgDfEjFO6aaWUhjMLt2SyIvHKoDqoA4CSUwEIYQCEjhAO9R1G6keDeDZGjNo+AhxOjCEGTr1WeIF3kYBiLAOKvkJSMiKX0VdAyQt3SDJClCkxJCHkCzfqyVTriJZLcolS32JZHUekq2TYNkYtCtjYHMQXSxGjXDz2t/yLWXzDzxz+o3zFwDEaN23F+13pyMdQAEaSKAR9vcGq4A4MTSKCElGW+M7UcY7xqkggITb28ZJhlqc9q2twYKTt0NjixBgYvO9BIihEBLYuOFXQzfIQ7dXGUEEEgFDooBfAzqiQbpJrhiWSuKJCRFKYbHCyJKI2G5GiZbNAvgAu5pc3vwx4G+g3aDkhklABiSz0BICXrYghtYhx/cdJ+44rY2oZ0aMNRFz3VZjb6W33F3gzltqtOCV8tTHSpOeXuItfvr5lCdfzFpqtEitvqdcdGGFd28ZqqC0tPbeChGXgrIlnhSWu/eUso4uKWFLugyDzQJhflY4659+WjQ++6x72WUMv9G8mw6QJl7BVxX5fe/kpUsOvnZwee9uQ0cGXYd0o89XB2748sDSnt8d2VphdOTTgceDVvOds0v9P/s7HPq15aGun/6Vllb56f1dl0t1LejqrNkpdRZsG8TOnM5vkBG5oiVyVGnS8LHps5cfNWJs6qKPfaNSxiQNBUm3cKNWROr0GSur7Za31k1vieq7LH11VF+jXdRIasRKflc7jkobm1Z9te1IyZA0pDkhLR98+H37Zf1c/8at+dB7x+7GfVyTfJMPiYztsnl59Y5l4j+0n1RXlpHnF3Tq7HecmNF/CJodEMAikruxiyJaGLvHOdAfoA+oDvpjBm2b91cHGRZMU9n25xEU0A8fgEEAdKI3Q1iDtc034sug5YVMkE2jsE+BIkwSoQ3gxXMqz9tELp48bd0cFKOKS7xYjEuXBnZP5ia7DyiO/X/YI+PQSbt2uSdqAkWL9nQbV1XB94/+uPfdZz8dnXYFBYrcTl2SIR/ybxJNJPz/Gupb0JaZeens2ekC7EKr8t+Ls/P5VJPYJdHKyqfg2nqU6bhlidzcddQV/7MmecTzJ5VPcKXkNKSEogHjYFx6QZ7rQ+FSe8njaiNuOnXS8H2ScQ619c2mC3VTtauL0rRbXd/CkSOP37FY9Zkjz8+GibYUMOEWF+RdrFS8Ecv1SHOpPUPZGEIpjPvFyU5cXKjd6OXqorTqy9GwRd++HVufPGnVsW+aO3vggKZ18jR9sXaTC1PWTEsVUaK0FkNySbTQDqlm2PfDjZcu4aalnSLKjnOoYQ0nUlqqXcGpPu/4VgV/xU2pAqW4BW3qzhQ8/hFKhV2qE3+BKAtDqBXjfgnVdH4y0wg5tbVNRenNdTWOrenWLcupQdmsbq5b+18piTe/xRdp1xbILxNPJGInm2z6hoB21Lal0i+ePTtd7B45+3XhFJ329evskXm7qurUVREotqSluSo/L29d3qDhI4YOQqWhI4YNvBNfsMHeXKemXrxQfKeuPOGRVayA3JtkJKEgbPp+dXUDluddutRYLFoXGXWX6N3WFaGLbQtRSitVYNacTNSdy7AaG/HSaUEANcBoGXNdcZvZsOqQ1icBDv21/gzAoYPHH/WDW0qNR3QTYKEAEHig6o13NXbND06CQPlRtYjGNnSktRc09k1mAMDvAlDKfQjgy6fssInlfzmNAjKkDxoxHOBLdVRAIVt9j4qo+hA1w9T1aNBNTUOTTNUHLbqokE+UAfJXCIGw/IxCSL5GRUJeR40rL/UxTm4Q08H6MbCs70ObuNyIIXrINHQYInF06UUlevTjbQzTh5upiDMzMMogUtEnjPs/Y7jAHCJeB0GBHh04tC6FiB6ZFB1oArUSIoFoqhzCeAN6lHwm0T4C3VVPWvjpSMXReuWesMEcoqrmgtNBGd2noWeV0hNAz9rFeShNJxHGsPa3HXeKTk8b55hahySYHaYKKFFLpCfN8rsoaJn01CR04Gkc+5k7KVTCmClX8Q10HCrUEkVlSX+XO33oQR9609tJ516H497WSobWs5Up6TLaS10/dessIskgJSLiDlWvHVUywpkQ7hdPZqGyiEF0uVQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/b2kP/IYX8oR2mcFvv2GtBV3JXgd437AQAA)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-greek-wght-normal.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-vietnamese-wght-normal.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--font-sans:"Geist Variable", sans-serif;--font-mono:"JetBrains Mono Variable", monospace;--background:#f4f1ec;--foreground:#1d2930;--card:#f9f8f6;--card-foreground:#1d2930;--popover:#fbfaf9;--popover-foreground:#1d2930;--primary:#305030;--primary-foreground:#f5f3ef;--secondary:#eae5d7;--secondary-foreground:#263740;--muted:#e9e7e2;--muted-foreground:#576b75;--accent:#e7e2da;--accent-foreground:#1d2930;--destructive:#c32222;--destructive-foreground:#fff;--border:#b6c9b6;--input:#dedbd3;--ring:#3e743e;--chart-1:#2e6b2e;--chart-2:#cfa117;--chart-3:#297aa3;--chart-4:#cc8c33;--chart-5:#b82e2e;--radius:.25rem;--sidebar:#f5f3f0;--sidebar-background:#f5f3f0;--sidebar-foreground:#263740;--sidebar-primary:#305030;--sidebar-primary-foreground:#f5f3ef;--sidebar-accent:#e7e2da;--sidebar-accent-foreground:#1d2930;--sidebar-border:#c4d4c4;--sidebar-ring:#3e743e;--tactical-amber:#c2940a;--tactical-amber-dim:#d6b85c;--tactical-green:#267326;--tactical-green-dim:#7ab87a;--tactical-cyan:#24868f;--tactical-cyan-dim:#5eb2ba;--tactical-red:#bd2828;--tactical-olive:#64783a;--scanline-opacity:.015}.dark{--background:#0d1012;--foreground:#e0ddd1;--card:#14181a;--card-foreground:#e0ddd1;--popover:#111517;--popover-foreground:#e0ddd1;--primary:#fa0;--primary-foreground:#0d1012;--secondary:#323922;--secondary-foreground:#c6d2ac;--muted:#202527;--muted-foreground:#819098;--accent:#292f32;--accent-foreground:#ebe8e0;--destructive:#c32222;--destructive-foreground:#fff;--border:#203c32;--input:#292f32;--ring:#ffbf00;--chart-1:#ffbf00;--chart-2:#22c38e;--chart-3:#1aa1e6;--chart-4:#86ac39;--chart-5:#d92626;--sidebar:#111517;--sidebar-background:#111517;--sidebar-foreground:#e0ddd1;--sidebar-primary:#ffbf00;--sidebar-primary-foreground:#0d1012;--sidebar-accent:#292f32;--sidebar-accent-foreground:#ebe8e0;--sidebar-border:#203c32;--sidebar-ring:#ffbf00;--tactical-amber:#ffbf00;--tactical-amber-dim:#a17d12;--tactical-green:#22c38e;--tactical-green-dim:#20604a;--tactical-cyan:#17bfcf;--tactical-cyan-dim:#196066;--tactical-red:#d92626;--tactical-olive:#576b2e;--scanline-opacity:.03}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes pulse{50%{opacity:.5}} diff --git a/spinifex/services/spinifexui/frontend/dist/assets/index.js b/spinifex/services/spinifexui/frontend/dist/assets/index.js index b4b608675..0c8293c96 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/index.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/index.js @@ -7,9 +7,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r= `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ve=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?_e(n):``}function be(e,t){switch(e.tag){case 26:case 27:case 5:return _e(e.type);case 16:return _e(`Lazy`);case 13:return e.child!==t&&t!==null?_e(`Suspense Fallback`):_e(`Suspense`);case 19:return _e(`SuspenseList`);case 0:case 15:return ye(e.type,!1);case 11:return ye(e.type.render,!1);case 1:return ye(e.type,!0);case 31:return _e(`Activity`);default:return``}}function xe(e){try{var t=``,n=null;do t+=be(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` `+e.stack}}var Se=Object.prototype.hasOwnProperty,Ce=t.unstable_scheduleCallback,we=t.unstable_cancelCallback,Te=t.unstable_shouldYield,Ee=t.unstable_requestPaint,De=t.unstable_now,Oe=t.unstable_getCurrentPriorityLevel,ke=t.unstable_ImmediatePriority,Ae=t.unstable_UserBlockingPriority,Me=t.unstable_NormalPriority,Ne=t.unstable_LowPriority,P=t.unstable_IdlePriority,F=t.log,Pe=t.unstable_setDisableYieldValue,Fe=null,Ie=null;function I(e){if(typeof F==`function`&&Pe(e),Ie&&typeof Ie.setStrictMode==`function`)try{Ie.setStrictMode(Fe,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),un=!1;if(ln)try{var dn={};Object.defineProperty(dn,`passive`,{get:function(){un=!0}}),window.addEventListener(`test`,dn,dn),window.removeEventListener(`test`,dn,dn)}catch{un=!1}var fn=null,pn=null,mn=null;function hn(){if(mn)return mn;var e,t=pn,n=t.length,r,i=`value`in fn?fn.value:fn.textContent,a=i.length;for(e=0;e=qn),Xn=` `,Zn=!1;function Qn(e,t){switch(e){case`keyup`:return Gn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function $n(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var er=!1;function tr(e,t){switch(e){case`compositionend`:return $n(t);case`keypress`:return t.which===32?(Zn=!0,Xn):null;case`textInput`:return e=t.data,e===Xn&&Zn?null:e;default:return null}}function nr(e,t){if(er)return e===`compositionend`||!Kn&&Qn(e,t)?(e=hn(),mn=pn=fn=null,er=!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=wr(n)}}function Er(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Er(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=It(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=It(e.document)}return t}function Or(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 kr=ln&&`documentMode`in document&&11>=document.documentMode,Ar=null,jr=null,Mr=null,Nr=!1;function Pr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nr||Ar==null||Ar!==It(r)||(r=Ar,`selectionStart`in r&&Or(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}),Mr&&Cr(Mr,r)||(Mr=r,r=Rd(jr,`onSelect`),0>=o,i-=o,Di=1<<32-Le(t)+i|n<m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),R&&ki(i,m),l;if(d===null){for(;mh?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),R&&ki(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return R&&ki(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),R&&ki(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&ka(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ia(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===g?(c=pi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=fi(o.type,o.key,o.props,null,e.mode,c),Ia(c,o),c.return=e,e=c)}return s(e);case h: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=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=_i(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=ka(o),x(e,r,o,c)}if(re(o))return v(e,r,o,c);if(O(o)){if(l=O(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,Fa(o),c);if(o.$$typeof===b)return x(e,r,na(e,o),c);La(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=a(r,o),c.return=e,e=c):(n(e,r),c=hi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Pa=0;var i=x(e,t,n,r);return Na=null,i}catch(t){if(t===Ca||t===Ta)throw t;var a=ci(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var za=Ra(!0),Ba=Ra(!1),Va=!1;function Ha(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ua(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 Wa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ga(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Wl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ai(e),ii(e,null,n),t}return ti(e,r,t,n),ai(e)}function Ka(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 qa(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 Ja=!1;function Ya(){if(Ja){var e=ma;if(e!==null)throw e}}function Xa(e,t,n,r){Ja=!1;var i=e.updateQueue;Va=!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 p=s.lane&-536870913,m=p!==s.lane;if(m?(ql&p)===p:(r&p)===p){p!==0&&p===pa&&(Ja=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Va=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;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),tu|=o,e.lanes=o,e.memoizedState=d}}function Za(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Qa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=k.T,s={};k.T=s,zs(e,!1,t,n);try{var c=i(),l=k.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Rs(e,t,_a(c,r),Cu(e)):Rs(e,t,r,Cu(e))}catch(n){Rs(e,t,{then:function(){},status:`rejected`,reason:n},Cu())}finally{A.p=a,o!==null&&s.types!==null&&(o.types=s.types),k.T=o}}function Os(){}function ks(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=As(e).queue;Ds(e,a,t,ie,n===null?Os:function(){return js(e),n(r)})}function As(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:ie},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function js(e){var t=As(e);t.next===null&&(t=e.alternate.memoizedState),Rs(e,t.next.queue,{},Cu())}function Ms(){return ta(dp)}function Ns(){return Fo().memoizedState}function Ps(){return Fo().memoizedState}function Fs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Cu();e=Wa(n);var r=Ga(t,e,n);r!==null&&(Tu(r,t,n),Ka(r,t,n)),t={cache:la()},e.payload=t;return}t=t.return}}function Is(e,t,n){var r=Cu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Bs(e)?Vs(t,n):(n=ni(e,t,n,r),n!==null&&(Tu(n,e,r),Hs(n,t,r)))}function Ls(e,t,n){Rs(e,t,n,Cu())}function Rs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bs(e))Vs(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,Sr(s,o))return ti(e,t,i,0),Gl===null&&ei(),!1}catch{}if(n=ni(e,t,i,r),n!==null)return Tu(n,e,r),Hs(n,t,r),!0}return!1}function zs(e,t,n,r){if(r={lane:2,revertLane:Sd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Bs(e)){if(t)throw Error(i(479))}else t=ni(e,n,r,2),t!==null&&Tu(t,e,2)}function Bs(e){var t=e.alternate;return e===ho||t!==null&&t===ho}function Vs(e,t){yo=vo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}var Us={readContext:ta,use:Ro,useCallback:To,useContext:To,useEffect:To,useImperativeHandle:To,useLayoutEffect:To,useInsertionEffect:To,useMemo:To,useReducer:To,useRef:To,useState:To,useDebugValue:To,useDeferredValue:To,useTransition:To,useSyncExternalStore:To,useId:To,useHostTransitionStatus:To,useFormState:To,useActionState:To,useOptimistic:To,useMemoCache:To,useCacheRefresh:To};Us.useEffectEvent=To;var Ws={readContext:ta,use:Ro,useCallback:function(e,t){return Po().memoizedState=[e,t===void 0?null:t],e},useContext:ta,useEffect:ms,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),fs(4194308,4,bs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fs(4194308,4,e,t)},useInsertionEffect:function(e,t){fs(4,2,e,t)},useMemo:function(e,t){var n=Po();t=t===void 0?null:t;var r=e();if(bo){I(!0);try{e()}finally{I(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Po();if(n!==void 0){var i=n(t);if(bo){I(!0);try{n(t)}finally{I(!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=Is.bind(null,ho,e),[r.memoizedState,e]},useRef:function(e){var t=Po();return e={current:e},t.memoizedState=e},useState:function(e){e=Xo(e);var t=e.queue,n=Ls.bind(null,ho,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ss,useDeferredValue:function(e,t){return Ts(Po(),e,t)},useTransition:function(){var e=Xo(!1);return e=Ds.bind(null,ho,e.queue,!0,!1),Po().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ho,a=Po();if(R){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Gl===null)throw Error(i(349));ql&127||Go(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ms(qo.bind(null,r,o,e),[e]),r.flags|=2048,us(9,{destroy:void 0},Ko.bind(null,r,o,n,t),null),n},useId:function(){var e=Po(),t=Gl.identifierPrefix;if(R){var n=Oi,r=Di;n=(r&~(1<<32-Le(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=xo++,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(a,{is:r.is}):s.createElement(a)}}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(qd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Lc(t)}}return Vc(t),Rc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Lc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ue.current,Vi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=L,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ot]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Wd(e.nodeValue,n)),e||Ri(t,!0)}else e=$d(e).createTextNode(r),e[ot]=t,t.stateNode=e}return Vc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Vi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ot]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Vc(t),e=!1}else n=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(uo(t),t):(uo(t),null);if(t.flags&128)throw Error(i(558))}return Vc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Vi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ot]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Vc(t),a=!1}else a=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(uo(t),t):(uo(t),null)}return uo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Bc(t,t.updateQueue),Vc(t),null);case 4:return fe(),e===null&&Pd(t.stateNode.containerInfo),Vc(t),null;case 10:return Yi(t.type),Vc(t),null;case 19:if(se(fo),r=t.memoizedState,r===null)return Vc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)B(r,!1);else{if(eu!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=po(e),o!==null){for(t.flags|=128,B(r,!1),e=o.updateQueue,t.updateQueue=e,Bc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)di(n,e),n=n.sibling;return ce(fo,fo.current&1|2),R&&ki(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&De()>du&&(t.flags|=128,a=!0,B(r,!1),t.lanes=4194304)}else{if(!a)if(e=po(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Bc(t,e),B(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!R)return Vc(t),null}else 2*De()-r.renderingStartTime>du&&n!==536870912&&(t.flags|=128,a=!0,B(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?(Vc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=De(),e.sibling=null,n=fo.current,ce(fo,a?n&1|2:n&1),R&&ki(t,r.treeForkCount),e);case 22:case 23:return uo(t),ro(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Vc(t),t.subtreeFlags&6&&(t.flags|=8192)):Vc(t),n=t.updateQueue,n!==null&&Bc(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&&se(ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Yi(ca),Vc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Uc(e,t){switch(Mi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yi(ca),fe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return me(t),null;case 31:if(t.memoizedState!==null){if(uo(t),t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(uo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(fo),null;case 4:return fe(),null;case 10:return Yi(t.type),null;case 22:case 23:return uo(t),ro(),e!==null&&se(ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yi(ca),null;case 25:return null;default:return null}}function Wc(e,t){switch(Mi(t),t.tag){case 3:Yi(ca),fe();break;case 26:case 27:case 5:me(t);break;case 4:fe();break;case 31:t.memoizedState!==null&&uo(t);break;case 13:uo(t);break;case 19:se(fo);break;case 10:Yi(t.type);break;case 22:case 23:uo(t),ro(),e!==null&&se(ya);break;case 24:Yi(ca)}}function Gc(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){td(t,t.return,e)}}function Kc(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){td(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){td(t,t.return,e)}}function qc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Qa(t,n)}catch(t){td(e,e.return,t)}}}function Jc(e,t,n){n.props=Zs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){td(e,t,n)}}function Yc(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){td(e,t,n)}}function Xc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){td(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){td(e,t,n)}else n.current=null}function Zc(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){td(e,e.return,t)}}function Qc(e,t,n){try{var r=e.stateNode;Jd(r,e.type,n,t),r[st]=t}catch(t){td(e,e.return,t)}}function $c(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&df(e.type)||e.tag===4}function el(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||$c(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&&df(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 tl(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=$t));else if(r!==4&&(r===27&&df(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}function nl(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&&df(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(nl(e,t,n),e=e.sibling;e!==null;)nl(e,t,n),e=e.sibling}function rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);qd(t,r,n),t[ot]=e,t[st]=n}catch(t){td(e,e.return,t)}}var il=!1,al=!1,ol=!1,sl=typeof WeakSet==`function`?WeakSet:Set,cl=null;function ll(e,t){if(e=e.containerInfo,Zd=bp,e=Dr(e),Or(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 a=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||a!==0&&f.nodeType!==3||(c=s+a),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===a&&(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(Qd={focusedElem:e,selectionRange:n},bp=!1,cl=t;cl!==null;)if(t=cl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,cl=e;else for(;cl!==null;){switch(t=cl,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`))),qd(o,r,n),o[ot]=e,yt(o),r=o;break a;case`link`:var s=ep(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=Tr(s,h),v=Tr(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,k.T=null,n=yu,yu=null;var o=hu,s=_u;if(mu=0,gu=hu=null,_u=0,Wl&6)throw Error(i(331));var c=Wl;if(Wl|=4,zl(o.current),jl(o,o.current,s,n),Wl=c,hd(0,!1),Ie&&typeof Ie.onPostCommitFiberRoot==`function`)try{Ie.onPostCommitFiberRoot(Fe,o)}catch{}return!0}finally{A.p=a,k.T=r,Zu(e,t)}}function ed(e,t,n){t=yi(n,t),t=rc(e.stateNode,t,2),e=Ga(e,t,2),e!==null&&(Xe(e,2),md(e))}function td(e,t,n){if(e.tag===3)ed(e,e,n);else for(;t!==null;){if(t.tag===3){ed(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(pu===null||!pu.has(r))){e=yi(n,e),n=ic(2),r=Ga(t,n,2),r!==null&&(ac(n,r,t,e),Xe(r,2),md(r));break}}t=t.return}}function nd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ul;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)||(Ql=!0,i.add(n),e=rd.bind(null,e,t,n),t.then(e,e))}function rd(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Gl===e&&(ql&n)===n&&(eu===4||eu===3&&(ql&62914560)===ql&&300>De()-lu?!(Wl&2)&&Mu(e,0):ru|=n,au===ql&&(au=0)),md(e)}function id(e,t){t===0&&(t=Je()),e=ri(e,t),e!==null&&(Xe(e,t),md(e))}function ad(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),id(e,n)}function od(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),id(e,n)}function sd(e,t){return Ce(e,t)}var cd=null,ld=null,ud=!1,dd=!1,fd=!1,pd=0;function md(e){e!==ld&&e.next===null&&(ld===null?cd=ld=e:ld=ld.next=e),dd=!0,ud||(ud=!0,xd())}function hd(e,t){if(!fd&&dd){fd=!0;do for(var n=!1,r=cd;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,bd(r,a))}else a=ql,a=Ge(r,r===Gl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ke(r,a)||(n=!0,bd(r,a));r=r.next}while(n);fd=!1}}function gd(){_d()}function _d(){dd=ud=!1;var e=0;pd!==0&&af()&&(e=pd);for(var t=De(),n=null,r=cd;r!==null;){var i=r.next,a=vd(r,t);a===0?(r.next=null,n===null?cd=i:n.next=i,i===null&&(ld=n)):(n=r,(e!==0||a&3)&&(dd=!0)),r=i}mu!==0&&mu!==5||hd(e,!1),pd!==0&&(pd=0)}function vd(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&&Yd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Pf(e,t,n){var r=Nf;if(r&&typeof t==`string`&&t){var i=Rt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Of.has(i)||(Of.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),qd(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Ff(e){Af.D(e),Pf(`dns-prefetch`,e,null)}function If(e,t){Af.C(e,t),Pf(`preconnect`,e,t)}function Lf(e,t,n){Af.L(e,t,n);var r=Nf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Rt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Rt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Rt(n.imageSizes)+`"]`)):i+=`[href="`+Rt(e)+`"]`;var a=i;switch(t){case`style`:a=Uf(e);break;case`script`:a=qf(e)}Df.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Df.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Wf(a))||t===`script`&&r.querySelector(Jf(a))||(t=r.createElement(`link`),qd(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Rf(e,t){Af.m(e,t);var n=Nf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Rt(r)+`"][href="`+Rt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=qf(e)}if(!Df.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Df.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Jf(a)))return}r=n.createElement(`link`),qd(r,`link`,e),yt(r),n.head.appendChild(r)}}}function zf(e,t,n){Af.S(e,t,n);var r=Nf;if(r&&e){var i=vt(r).hoistableStyles,a=Uf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Wf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Df.get(a))&&Zf(e,n);var c=o=r.createElement(`link`);yt(c),qd(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,Xf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Bf(e,t){Af.X(e,t);var n=Nf;if(n&&e){var r=vt(n).hoistableScripts,i=qf(e),a=r.get(i);a||(a=n.querySelector(Jf(i)),a||(e=f({src:e,async:!0},t),(t=Df.get(i))&&Qf(e,t),a=n.createElement(`script`),yt(a),qd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Vf(e,t){Af.M(e,t);var n=Nf;if(n&&e){var r=vt(n).hoistableScripts,i=qf(e),a=r.get(i);a||(a=n.querySelector(Jf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Df.get(i))&&Qf(e,t),a=n.createElement(`script`),yt(a),qd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Hf(e,t,n,r){var a=(a=ue.current)?kf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Uf(n.href),n=vt(a).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=Uf(n.href);var o=vt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Wf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Df.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},Df.set(e,n),o||Kf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=qf(n),n=vt(a).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(i(444,e))}}function Uf(e){return`href="`+Rt(e)+`"`}function Wf(e){return`link[rel="stylesheet"][`+e+`]`}function Gf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Kf(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}),qd(t,`link`,n),yt(t),e.head.appendChild(t))}function qf(e){return`[src="`+Rt(e)+`"]`}function Jf(e){return`script[async]`+e}function Yf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Rt(n.href)+`"]`);if(r)return t.instance=r,yt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),yt(r),qd(r,`style`,a),Xf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Uf(n.href);var o=e.querySelector(Wf(a));if(o)return t.state.loading|=4,t.instance=o,yt(o),o;r=Gf(n),(a=Df.get(a))&&Zf(r,a),o=(e.ownerDocument||e).createElement(`link`),yt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),qd(o,`link`,r),t.state.loading|=4,Xf(o,n.precedence,e),t.instance=o;case`script`:return o=qf(n.src),(a=e.querySelector(Jf(o)))?(t.instance=a,yt(a),a):(r=n,(a=Df.get(o))&&(r=f({},n),Qf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),yt(a),qd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Xf(r,n.precedence,e));return t.instance}function Xf(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 np(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 rp(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ip(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=Uf(r.href),a=t.querySelector(Wf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=sp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,yt(a);return}a=t.ownerDocument||t,r=Gf(r),(i=Df.get(i))&&Zf(r,i),a=a.createElement(`link`),yt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),qd(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=sp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ap=0;function op(e,t){return e.stylesheets&&e.count===0&&lp(e,e.stylesheets),0ap?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function sp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var cp=null;function lp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,cp=new Map,t.forEach(up,e),cp=null,sp.call(e))}function up(e,t){if(!(t.state.loading&4)){var n=cp.get(e);if(n)var r=n.get(null);else{n=new Map,cp.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=oa()})),ca=o((e=>{var t=je().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;e.c=function(e){return t.H.useMemoCache(e)}})),la=o(((e,t)=>{t.exports=ca()})),ua=c(sa(),1),da=la(),fa=(0,P.createContext)(void 0);function pa(e,t){try{let t=localStorage.getItem(e);if(t===`light`||t===`dark`||t===`system`)return t}catch{}return t}function ma(e){let t=(0,da.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=()=>pa(o,a),t[0]=a,t[1]=o,t[2]=s):s=t[2];let[c,l]=(0,P.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,P.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,F.jsx)(fa.Provider,{value:m,children:n}),t[11]=n,t[12]=m,t[13]=h):h=t[13],h}function ha(){let e=(0,P.useContext)(fa);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}function ga(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var _a={};function va(e,t,n,r,i){if(!n&&!r&&!i&&!e)return ba(t);let a=ba(e);return t&&(a=xa(a,t)),n&&(a=xa(a,n)),r&&(a=xa(a,r)),i&&(a=xa(a,i)),a}function ya(e){if(e.length===0)return _a;if(e.length===1)return ba(e[0]);let t=ba(e[0]);for(let n=1;n=65&&i<=90&&(typeof t==`function`||t===void 0)}function Ta(e){return typeof e==`function`}function Ea(e,t){return Ta(e)?e(t):e??_a}function Da(e,t){return t?e?(...n)=>{let r=n[0];if(ja(r)){let i=r;ka(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:Oa(t):e}function Oa(e){return e&&((...t)=>{let n=t[0];return ja(n)&&ka(n),e(...t)})}function ka(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Aa(e,t){return t?e?t+` `+e:t:e}function ja(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Ma(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Na=Ma(`https://base-ui.com/production-error`,`Base UI`),Pa={};function Fa(e,t){let n=P.useRef(Pa);return n.current===Pa&&(n.current=e(t)),n}function Ia(e,t,n,r){let i=Fa(Ra).current;return za(i,e,t,n,r)&&Va(i,[e,t,n,r]),i.callback}function La(e){let t=Fa(Ra).current;return Ba(t,e)&&Va(t,e),t.callback}function Ra(){return{callback:null,cleanup:null,refs:[]}}function za(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Ba(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function Va(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e{for(let e=0;e=e}function Wa(e){if(!P.isValidElement(e))return null;let t=e,n=t.props;return(Ua(19)?n?.ref:t.ref)??null}function Ga(){}var Ka=Object.freeze([]),qa=Object.freeze({});function Ja(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function Ya(e,t){return typeof e==`function`?e(t):e}function Xa(e,t){return typeof e==`function`?e(t):e}function Za(e,t,n={}){let r=t.render,i=Qa(t,n);return n.enabled===!1?null:to(e,r,i,n.state??qa)}function Qa(e,t={}){let{className:n,style:r,render:i}=e,{state:a=qa,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?Ya(n,a):void 0,d=l?Xa(r,a):void 0,f=l?Ja(a,c):qa,p=l&&s?$a(s):void 0,m=l?ga(f,p)??{}:qa;return typeof document<`u`&&(l?Array.isArray(o)?m.ref=La([m.ref,Wa(i),...o]):m.ref=Ia(m.ref,Wa(i),o):Ia(null,null)),l?(u!==void 0&&(m.className=Aa(m.className,u)),d!==void 0&&(m.style=ga(m.style,d)),m):qa}function $a(e){return Array.isArray(e)?ya(e):va(void 0,e)}var eo=Symbol.for(`react.lazy`);function to(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=va(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===eo&&(i=P.Children.toArray(t)[0]),P.cloneElement(i,e)}if(e&&typeof e==`string`)return no(e,n);throw Error(Na(8))}function no(e,t){return e===`button`?(0,P.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,P.createElement)(`img`,{alt:``,...t,key:t.key}):P.createElement(e,t)}function ro(e){return Za(e.defaultTagName??`div`,e,e)}function io(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e==`boolean`?`${e}`:e===0?`0`:e,so=ao,co=(e,t)=>n=>{if(t?.variants==null)return so(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=oo(t)||oo(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return so(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},lo=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),uo=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),fo=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),po=e=>{let t=fo(e);return t.charAt(0).toUpperCase()+t.slice(1)},mo={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`},ho=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},go=(0,P.createContext)({}),_o=()=>(0,P.useContext)(go),vo=(0,P.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=``}=_o()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,P.createElement)(`svg`,{ref:c,...mo,width:t??l??mo.width,height:t??l??mo.height,stroke:e??f,strokeWidth:m,className:lo(`lucide`,p,i),...!a&&!ho(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,P.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),yo=(e,t)=>{let n=(0,P.forwardRef)(({className:n,...r},i)=>(0,P.createElement)(vo,{ref:i,iconNode:t,className:lo(`lucide-${uo(po(e))}`,`lucide-${e}`,n),...r}));return n.displayName=po(e),n},bo=yo(`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`}]]),xo=yo(`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`}]]),So=yo(`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`}]]),Co=yo(`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`}]]),wo=yo(`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`}]]),To=yo(`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`}]]),Eo=yo(`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`}]]),Do=yo(`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`}]]),Oo=yo(`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`}]]),ko=yo(`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`}]]),Ao=yo(`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`}]]),jo=yo(`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`}]]),Mo=yo(`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`}]]),No=yo(`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`}]]),Po=yo(`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`}]]),Fo=yo(`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`}]]),Io=yo(`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`}]]),Lo=yo(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Ro=yo(`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`}]]),zo=yo(`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`}]]),Bo=yo(`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`}]]),Vo=yo(`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`}]]),Ho=yo(`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`}]]),Uo=yo(`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`}]]),Wo=yo(`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`}]]),Go=yo(`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`}]]),Ko=yo(`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`}]]),qo=yo(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function Jo(){return typeof window<`u`}function Yo(e){return Qo(e)?(e.nodeName||``).toLowerCase():`#document`}function Xo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zo(e){return((Qo(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Qo(e){return Jo()?e instanceof Node||e instanceof Xo(e).Node:!1}function $o(e){return Jo()?e instanceof Element||e instanceof Xo(e).Element:!1}function es(e){return Jo()?e instanceof HTMLElement||e instanceof Xo(e).HTMLElement:!1}function ts(e){return!Jo()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Xo(e).ShadowRoot}function ns(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ps(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function rs(e){return/^(table|td|th)$/.test(Yo(e))}function is(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var as=/transform|translate|scale|rotate|perspective|filter/,os=/paint|layout|strict|content/,ss=e=>!!e&&e!==`none`,cs;function ls(e){let t=$o(e)?ps(e):e;return ss(t.transform)||ss(t.translate)||ss(t.scale)||ss(t.rotate)||ss(t.perspective)||!ds()&&(ss(t.backdropFilter)||ss(t.filter))||as.test(t.willChange||``)||os.test(t.contain||``)}function us(e){let t=hs(e);for(;es(t)&&!fs(t);){if(ls(t))return t;if(is(t))return null;t=hs(t)}return null}function ds(){return cs??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),cs}function fs(e){return/^(html|body|#document)$/.test(Yo(e))}function ps(e){return Xo(e).getComputedStyle(e)}function ms(e){return $o(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function hs(e){if(Yo(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ts(e)&&e.host||Zo(e);return ts(t)?t.host:t}function gs(e){let t=hs(e);return fs(t)?e.ownerDocument?e.ownerDocument.body:e.body:es(t)&&ns(t)?t:gs(t)}function _s(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=gs(e),i=r===e.ownerDocument?.body,a=Xo(r);if(i){let e=vs(a);return t.concat(a,a.visualViewport||[],ns(r)?r:[],e&&n?_s(e):[])}else return t.concat(r,_s(r,[],n))}function vs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var ys=P[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],bs=ys&&ys!==P.useLayoutEffect?ys:e=>e();function xs(e){let t=Fa(Ss).current;return t.next=e,bs(t.effect),t.trampoline}function Ss(){let e={next:void 0,callback:Cs,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Cs(){}var ws={...P},Ts=typeof document<`u`?P.useLayoutEffect:()=>{},Es=P.createContext(void 0);function Ds(e=!1){let t=P.useContext(Es);if(t===void 0&&!e)throw Error(Na(16));return t}function Os(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:P.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function ks(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=P.useRef(null),s=Ds(!0),c=a??s!==void 0,{props:l}=Os({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=P.useCallback(()=>{let e=o.current;As(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return Ts(u,[u]),{getButtonProps:P.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return va({type:i?`button`:void 0,onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(ka(e),o?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,a=e.currentTarget,s=As(a),l=!i&&js(a),u=r&&(i?s:!l),d=e.key===`Enter`,f=e.key===` `,p=a.getAttribute(`role`),m=p?.startsWith(`menuitem`)||p===`option`||p===`gridcell`;if(r&&c&&f){if(e.defaultPrevented&&m)return;e.preventDefault(),l||i&&s?(a.click(),e.preventBaseUIHandler()):u&&(n?.(e),e.preventBaseUIHandler());return}u&&(!i&&(f||d)&&e.preventDefault(),!i&&d&&n?.(e))},onKeyUp(e){if(!t){if(ka(e),a?.(e),e.target===e.currentTarget&&i&&c&&As(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!c&&e.key===` `&&n?.(e)}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?void 0:{role:`button`},l,u)},[t,l,c,i]),buttonRef:xs(e=>{o.current=e,u()})}}function As(e){return es(e)&&e.tagName===`BUTTON`}function js(e){return!!(e?.tagName===`A`&&e?.href)}var Ms=P.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=ks({disabled:i,focusableWhenDisabled:a,native:o});return Za(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),Ns=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),Fs=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Is=`-`,Ls=[],Rs=`arbitrary..`,zs=e=>{let t=Hs(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Vs(e);let n=e.split(Is);return Bs(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Ns(i,t):t:i||Ls}return n[e]||Ls}}},Bs=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Bs(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Is):e.slice(t).join(Is),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Rs+r:void 0})(),Hs=e=>{let{theme:t,classGroups:n}=e;return Us(n,t)},Us=(e,t)=>{let n=Fs();for(let r in e){let i=e[r];Ws(i,n,r,t)}return n},Ws=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){Ks(e,t,n);return}if(typeof e==`function`){qs(e,t,n,r);return}Js(e,t,n,r)},Ks=(e,t,n)=>{let r=e===``?t:Ys(t,e);r.classGroupId=n},qs=(e,t,n,r)=>{if(Xs(e)){Ws(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ps(n,e))},Js=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(Is),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,Zs=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Qs=`!`,$s=`:`,ec=[],tc=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),nc=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return tc(t,l,c,u)};if(t){let e=t+$s,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):tc(ec,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},rc=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},ic=e=>({cache:Zs(e.cacheSize),parseClassName:nc(e),sortModifiers:rc(e),postfixLookupClassGroupIds:ac(e),...zs(e)}),ac=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(oc),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Qs:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e0?` `+l:l)}return l},cc=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=ic(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=sc(e,n);return i(e,a),a};return a=o,(...e)=>a(cc(...e))},dc=[],fc=e=>{let t=t=>t[e]||dc;return t.isThemeGetter=!0,t},pc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,mc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,hc=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,gc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_c=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,yc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xc=e=>hc.test(e),Sc=e=>!!e&&!Number.isNaN(Number(e)),Cc=e=>!!e&&Number.isInteger(Number(e)),wc=e=>e.endsWith(`%`)&&Sc(e.slice(0,-1)),Tc=e=>gc.test(e),Ec=()=>!0,Dc=e=>_c.test(e)&&!vc.test(e),Oc=()=>!1,kc=e=>yc.test(e),Ac=e=>bc.test(e),jc=e=>!z(e)&&!B(e),Mc=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Nc=e=>Jc(e,Qc,Oc),z=e=>pc.test(e),Pc=e=>Jc(e,$c,Dc),Fc=e=>Jc(e,el,Sc),Ic=e=>Jc(e,nl,Ec),Lc=e=>Jc(e,tl,Oc),Rc=e=>Jc(e,Xc,Oc),zc=e=>Jc(e,Zc,Ac),Bc=e=>Jc(e,rl,kc),B=e=>mc.test(e),Vc=e=>Yc(e,$c),Hc=e=>Yc(e,tl),Uc=e=>Yc(e,Xc),Wc=e=>Yc(e,Qc),Gc=e=>Yc(e,Zc),Kc=e=>Yc(e,rl,!0),qc=e=>Yc(e,nl,!0),Jc=(e,t,n)=>{let r=pc.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Yc=(e,t,n=!1)=>{let r=mc.exec(e);return r?r[1]?t(r[1]):n:!1},Xc=e=>e===`position`||e===`percentage`,Zc=e=>e===`image`||e===`url`,Qc=e=>e===`length`||e===`size`||e===`bg-size`,$c=e=>e===`length`,el=e=>e===`number`,tl=e=>e===`family-name`,nl=e=>e===`number`||e===`weight`,rl=e=>e===`shadow`,il=uc(()=>{let e=fc(`color`),t=fc(`font`),n=fc(`text`),r=fc(`font-weight`),i=fc(`tracking`),a=fc(`leading`),o=fc(`breakpoint`),s=fc(`container`),c=fc(`spacing`),l=fc(`radius`),u=fc(`shadow`),d=fc(`inset-shadow`),f=fc(`text-shadow`),p=fc(`drop-shadow`),m=fc(`blur`),h=fc(`perspective`),g=fc(`aspect`),_=fc(`ease`),v=fc(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),B,z],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[B,z,c],T=()=>[xc,`full`,`auto`,...w()],E=()=>[Cc,`none`,`subgrid`,B,z],ee=()=>[`auto`,{span:[`full`,Cc,B,z]},Cc,B,z],D=()=>[Cc,`auto`,B,z],O=()=>[`auto`,`min`,`max`,`fr`,B,z],te=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ne=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],re=()=>[`auto`,...w()],k=()=>[xc,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],A=()=>[xc,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ie=()=>[xc,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[e,B,z],ae=()=>[...b(),Uc,Rc,{position:[B,z]}],oe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,Wc,Nc,{size:[B,z]}],ce=()=>[wc,Vc,Pc],M=()=>[``,`none`,`full`,l,B,z],le=()=>[``,Sc,Vc,Pc],ue=()=>[`solid`,`dashed`,`dotted`,`double`],N=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],de=()=>[Sc,wc,Uc,Rc],fe=()=>[``,`none`,m,B,z],pe=()=>[`none`,Sc,B,z],me=()=>[`none`,Sc,B,z],he=()=>[Sc,B,z],ge=()=>[xc,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Tc],breakpoint:[Tc],color:[Ec],container:[Tc],"drop-shadow":[Tc],ease:[`in`,`out`,`in-out`],font:[jc],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Tc],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Tc],shadow:[Tc],spacing:[`px`,Sc],text:[Tc],"text-shadow":[Tc],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,xc,z,B,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,B,z]}],"container-named":[Mc],columns:[{columns:[Sc,z,B,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Cc,`auto`,B,z]}],basis:[{basis:[xc,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Sc,xc,`auto`,`initial`,`none`,z]}],grow:[{grow:[``,Sc,B,z]}],shrink:[{shrink:[``,Sc,B,z]}],order:[{order:[Cc,`first`,`last`,`none`,B,z]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...te(),`normal`]}],"justify-items":[{"justify-items":[...ne(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ne()]}],"align-content":[{content:[`normal`,...te()]}],"align-items":[{items:[...ne(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ne(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...ne(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ne()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mbs:[{mbs:re()}],mbe:[{mbe:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:k()}],"inline-size":[{inline:[`auto`,...A()]}],"min-inline-size":[{"min-inline":[`auto`,...A()]}],"max-inline-size":[{"max-inline":[`none`,...A()]}],"block-size":[{block:[`auto`,...ie()]}],"min-block-size":[{"min-block":[`auto`,...ie()]}],"max-block-size":[{"max-block":[`none`,...ie()]}],w:[{w:[s,`screen`,...k()]}],"min-w":[{"min-w":[s,`screen`,`none`,...k()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...k()]}],h:[{h:[`screen`,`lh`,...k()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...k()]}],"max-h":[{"max-h":[`screen`,`lh`,...k()]}],"font-size":[{text:[`base`,n,Vc,Pc]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,qc,Ic]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,wc,z]}],"font-family":[{font:[Hc,Lc,t]}],"font-features":[{"font-features":[z]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,B,z]}],"line-clamp":[{"line-clamp":[Sc,`none`,B,Fc]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,B,z]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,B,z]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ue(),`wavy`]}],"text-decoration-thickness":[{decoration:[Sc,`from-font`,`auto`,B,Pc]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[Sc,`auto`,B,z]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[Cc,B,z]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,B,z]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,B,z]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Cc,B,z],radial:[``,B,z],conic:[Cc,B,z]},Gc,zc]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":le()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ue(),`hidden`,`none`]}],"divide-style":[{divide:[...ue(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...ue(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Sc,B,z]}],"outline-w":[{outline:[``,Sc,Vc,Pc]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`none`,u,Kc,Bc]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,Kc,Bc]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:le()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[Sc,Pc]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,Kc,Bc]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[Sc,B,z]}],"mix-blend":[{"mix-blend":[...N(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":N()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Sc]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[B,z]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Sc]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,B,z]}],filter:[{filter:[``,`none`,B,z]}],blur:[{blur:fe()}],brightness:[{brightness:[Sc,B,z]}],contrast:[{contrast:[Sc,B,z]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Kc,Bc]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,Sc,B,z]}],"hue-rotate":[{"hue-rotate":[Sc,B,z]}],invert:[{invert:[``,Sc,B,z]}],saturate:[{saturate:[Sc,B,z]}],sepia:[{sepia:[``,Sc,B,z]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,B,z]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[Sc,B,z]}],"backdrop-contrast":[{"backdrop-contrast":[Sc,B,z]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Sc,B,z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Sc,B,z]}],"backdrop-invert":[{"backdrop-invert":[``,Sc,B,z]}],"backdrop-opacity":[{"backdrop-opacity":[Sc,B,z]}],"backdrop-saturate":[{"backdrop-saturate":[Sc,B,z]}],"backdrop-sepia":[{"backdrop-sepia":[``,Sc,B,z]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,B,z]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Sc,`initial`,B,z]}],ease:[{ease:[`linear`,`initial`,_,B,z]}],delay:[{delay:[Sc,B,z]}],animate:[{animate:[`none`,v,B,z]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,B,z]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":[`scale-3d`],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[B,z,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ge()}],"translate-x":[{"translate-x":ge()}],"translate-y":[{"translate-y":ge()}],"translate-z":[{"translate-z":ge()}],"translate-none":[`translate-none`],zoom:[{zoom:[Cc,B,z]}],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,B,z]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,B,z]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[Sc,Vc,Pc,Fc]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function al(...e){return il(ao(e))}var ol=new Intl.DateTimeFormat(void 0,{year:`numeric`,month:`long`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`});function sl(e){return e?ol.format(new Date(e)):`Unknown`}function cl(e){return`${Math.round(e/1024)} GiB`}var ll=[`B`,`KB`,`MB`,`GB`,`TB`];function ul(e){if(e===0)return`0 B`;let t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**t).toFixed(2)} ${ll[t]}`}function dl(e){return e?.find(e=>e.Key===`Name`)?.Value}var fl=/\/$/;function pl(e){return e.replace(fl,``)}function ml(e){return e&&(e.endsWith(`/`)?e:`${e}/`)}function hl(e,t){return e.startsWith(t)?e:`${t}${e}`}function gl(e,t){return e.startsWith(t)?e.slice(t.length):e}var _l=co(`group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-[2px] focus-visible:ring-ring/30 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:bg-input/30`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,xs:`h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5`,sm:`h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,lg:`h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4`,icon:`size-7 [&_svg:not([class*='size-'])]:size-3.5`,"icon-xs":`size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5`,"icon-sm":`size-6 [&_svg:not([class*='size-'])]:size-3`,"icon-lg":`size-8 [&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`,size:`default`}});function vl(e){let t=(0,da.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,variant:i,size:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`default`:i,s=a===void 0?`default`:a,c;t[5]!==n||t[6]!==s||t[7]!==o?(c=al(_l({variant:o,size:s,className:n})),t[5]=n,t[6]=s,t[7]=o,t[8]=c):c=t[8];let l;return t[9]!==r||t[10]!==c?(l=(0,F.jsx)(Ms,{className:c,"data-slot":`button`,...r}),t[9]=r,t[10]=c,t[11]=l):l=t[11],l}var yl=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}({}),bl={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},xl={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Sl={disabled:!1,...xl},Cl={valid(e){return e===null?null:e?{[yl.valid]:``}:{[yl.invalid]:``}}},wl=P.createContext({invalid:void 0,name:void 0,validityData:{state:bl,errors:[],error:``,value:``,initialValue:null},setValidityData:Ga,disabled:void 0,touched:xl.touched,setTouched:Ga,dirty:xl.dirty,setDirty:Ga,filled:xl.filled,setFilled:Ga,focused:xl.focused,setFocused:Ga,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:Sl,markedDirtyRef:{current:!1},registerFieldControl:Ga,validation:{getValidationProps:(e=qa)=>e,getInputValidationProps:(e=qa)=>e,inputRef:{current:null},commit:async()=>{}}});function Tl(e=!0){let t=P.useContext(wl);if(t.setValidityData===Ga&&!e)throw Error(Na(28));return t}var El=0;function Dl(e,t=`mui`){let[n,r]=P.useState(e),i=e||n;return P.useEffect(()=>{n??(El+=1,r(`${t}-${El}`))},[n,t]),i}var Ol=ws.useId;function kl(e,t){if(Ol!==void 0){let n=Ol();return e??(t?`${t}-${n}`:n)}return Dl(e,t)}function Al(e){return kl(e,`base-ui`)}var jl=P.createContext({controlId:void 0,registerControlId:Ga,labelId:void 0,setLabelId:Ga,messageIds:[],setMessageIds:Ga,getDescriptionProps:e=>e});function Ml(){return P.useContext(jl)}function Nl(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=Ml(),o=Al(t),s=n?i:void 0,c=Fa(()=>Symbol(`labelable-control`)),l=P.useRef(!1),u=P.useRef(t!=null),d=xs(()=>{!l.current||a===Ga||(l.current=!1,a(c.current,void 0))});return Ts(()=>{if(a===Ga)return;let e;if(n){let n=r?.current;e=$o(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]),P.useEffect(()=>d,[d]),i??o}function Pl(e){return e?.ownerDocument||document}var Fl=typeof navigator<`u`,Il=Gl(),Ll=ql(),Rl=Kl(),zl=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),Bl=Il.platform===`MacIntel`&&Il.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Il.platform);Fl&&/firefox/i.test(Rl);var Vl=Fl&&/apple/i.test(navigator.vendor);Fl&&/Edg/i.test(Rl);var Hl=Fl&&/android/i.test(Ll)||/android/i.test(Rl),Ul=Fl&&Ll.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,Wl=Rl.includes(`jsdom/`);function Gl(){if(!Fl)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 Kl(){if(!Fl)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function ql(){if(!Fl)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var Jl=`data-base-ui-focusable`,Yl=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,Xl=`ArrowLeft`,Zl=`ArrowRight`,Ql=`ArrowUp`,$l=`ArrowDown`;function eu(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function tu(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&ts(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function nu(e){return`composedPath`in e?e.composedPath()[0]:e.target}function ru(e,t){if(!$o(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(tu(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function iu(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 au(e){return e.matches(`html,body`)}function ou(e){return es(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function su(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Yl}`)!=null}function cu(e){return e?e.getAttribute(`role`)===`combobox`&&ou(e):!1}function lu(e){if(!e||Wl)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function uu(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function du(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...du(e,t.id,n)])}function fu(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 pu(e){e.preventDefault(),e.stopPropagation()}function mu(e){return`nativeEvent`in e}function hu(e){return e.pointerType===``&&e.isTrusted?!0:Hl&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function gu(e){return Wl?!1:!Hl&&e.width===0&&e.height===0||Hl&&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 _u(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function vu(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var yu=[`top`,`right`,`bottom`,`left`],bu=Math.min,xu=Math.max,Su=Math.round,Cu=Math.floor,wu=e=>({x:e,y:e}),Tu={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Eu(e,t,n){return xu(e,bu(t,n))}function Du(e,t){return typeof e==`function`?e(t):e}function Ou(e){return e.split(`-`)[0]}function ku(e){return e.split(`-`)[1]}function Au(e){return e===`x`?`y`:`x`}function ju(e){return e===`y`?`height`:`width`}function Mu(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Nu(e){return Au(Mu(e))}function Pu(e,t,n){n===void 0&&(n=!1);let r=ku(e),i=Nu(e),a=ju(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Uu(o)),[o,Uu(o)]}function Fu(e){let t=Uu(e);return[Iu(e),t,Iu(t)]}function Iu(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Lu=[`left`,`right`],Ru=[`right`,`left`],zu=[`top`,`bottom`],Bu=[`bottom`,`top`];function Vu(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ru:Lu:t?Lu:Ru;case`left`:case`right`:return t?zu:Bu;default:return[]}}function Hu(e,t,n,r){let i=ku(e),a=Vu(Ou(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Iu)))),a}function Uu(e){let t=Ou(e);return Tu[t]+e.slice(t.length)}function Wu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gu(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Wu(e)}function Ku(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 qu(e,t,n){return Math.floor(e/t)!==n}function Ju(e,t){return t<0||t>=e.length}function Yu(e,t){return Zu(e.current,{disabledIndices:t})}function Xu(e,t){return Zu(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Zu(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&&nd(e,a,r));return a}function Qu(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(!nd(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=Cu(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(!nd(e,r,s))return r}};d&&pu(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=Zu(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=Zu(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}Ju(e,f)&&(f=u)}if(n===`both`){let n=Cu(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&pu(t),u%o===o-1?r&&(f=Zu(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Zu(e,{startingIndex:u,disabledIndices:s}),r&&qu(f,o,n)&&(f=Zu(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),qu(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&pu(t),u%o===0?r&&(f=Zu(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Zu(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&qu(f,o,n)&&(f=Zu(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),qu(f,o,n)&&(f=u));let c=Cu(l/o)===n;Ju(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:Zu(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function $u(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 ed(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 td(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function nd(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?id(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function rd(e){return e.visibility===`hidden`||e.visibility===`collapse`}function id(e,t=e?ps(e):null){return!e||!e.isConnected||!t||rd(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var ad=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function od(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return ts(n)?n.host:null}function sd(e){for(let t of Array.from(e.children))if(Yo(t)===`summary`)return t;return null}function cd(e,t){let n=sd(t);return!!n&&(e===n||tu(n,e))}function ld(e){let t=e?Yo(e):``;return e!=null&&e.matches(ad)&&(t!==`summary`||e.parentElement!=null&&Yo(e.parentElement)===`details`&&sd(e.parentElement)===e)&&(t!==`details`||sd(e)==null)&&(t!==`input`||e.type!==`hidden`)}function ud(e){if(!ld(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=od(t)){let n=t!==e,r=Yo(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Yo(t)===`details`&&!t.open&&!cd(e,t)||t.hasAttribute(`hidden`)||!r&&!dd(t,n))return!1}return!0}function dd(e,t){let n=ps(e);return t?n.display!==`none`:id(e,n)}function fd(e){let t=e.tabIndex;if(t<0){let t=Yo(e);if(t===`details`||t===`audio`||t===`video`||es(e)&&e.isContentEditable)return 0}return t}function pd(e){if(Yo(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function md(e,t){let n=pd(e);if(!n)return!0;let r=t.find(e=>{let t=pd(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=pd(e);return t?.name===n.name&&t.form===n.form})===n}function hd(e){if(es(e)&&Yo(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return es(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function gd(e,t){hd(e).forEach(e=>{ld(e)&&t.push(e),gd(e,t)})}function _d(e,t,n){hd(e).forEach(e=>{es(e)&&e.matches(t)&&n.push(e),_d(e,t,n)})}function vd(e){return ud(e)&&fd(e)>=0}function yd(e){let t=[];return gd(e,t),t.filter(ud)}function bd(e){let t=yd(e);return t.filter(e=>fd(e)>=0&&md(e,t))}function xd(e,t){let n=bd(e),r=n.length;if(r===0)return;let i=eu(Pl(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Sd(e){return xd(Pl(e).body,1)||e}function Cd(e){return xd(Pl(e).body,-1)||e}function wd(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!tu(n,r)}function Td(e){bd(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Ed(e){let t=[];_d(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 Dd=[];function Od(e){P.useEffect(e,Dd)}var kd=0,Ad=class e{static create(){return new e}currentId=kd;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=kd,t()},e)}isStarted(){return this.currentId!==kd}clear=()=>{this.currentId!==kd&&(clearTimeout(this.currentId),this.currentId=kd)};disposeEffect=()=>this.clear};function jd(){let e=Fa(Ad.create).current;return Od(e.disposeEffect),e}var Md=null;globalThis.requestAnimationFrame;var Nd=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)}},Pd=class e{static create(){return new e}static request(e){return Nd.request(e)}static cancel(e){return Nd.cancel(e)}currentId=Md;request(e){this.cancel(),this.currentId=Nd.request(()=>{this.currentId=Md,e()})}cancel=()=>{this.currentId!==Md&&(Nd.cancel(this.currentId),this.currentId=Md)};disposeEffect=()=>this.cancel};function Fd(){let e=Fa(Pd.create).current;return Od(e.disposeEffect),e}function Id(e){return e==null?e:`current`in e?e.current:e}var Ld=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),Rd={[Ld.startingStyle]:``},zd={[Ld.endingStyle]:``},Bd={transitionStatus(e){return e===`starting`?Rd:e===`ending`?zd:null}};function Vd(e,t=!1,n=!0){let r=Fd();return xs((i,a=null)=>{r.cancel();let o=Id(e);if(o==null)return;let s=o,c=()=>{hi.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=Ld.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 Hd(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=xs(i),o=Vd(r,n,!1);P.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function Ud(e,t=!1,n=!1){let[r,i]=P.useState(e&&t?`idle`:void 0),[a,o]=P.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),Ts(()=>{if(!e&&a&&r!==`ending`&&n){let e=Pd.request(()=>{i(`ending`)});return()=>{Pd.cancel(e)}}},[e,a,r,n]),Ts(()=>{if(!e||t)return;let n=Pd.request(()=>{i(void 0)});return()=>{Pd.cancel(n)}},[t,e]),Ts(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=Pd.request(()=>{i(`idle`)});return()=>{Pd.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}function Wd({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=P.useRef(e!==void 0),[a,o]=P.useState(t);return[i?e:a,P.useCallback(e=>{i||o(e)},[])]}function Gd(e,t){let{enabled:n=!0,getValue:r,id:i,value:a}=t,{registerFieldControl:o}=Tl(),s=P.useRef(null);s.current||=Symbol(),Ts(()=>{let t=s.current;if(!(!t||!n))return o(t,{controlRef:e,getValue:r,id:i,value:a}),()=>{o(t,void 0)}},[e,n,r,i,o,a])}var Kd=`none`,qd=`trigger-press`,Jd=`trigger-hover`,Yd=`trigger-focus`,Xd=`outside-press`,Zd=`item-press`,Qd=`close-press`,$d=`focus-out`,ef=`escape-key`,tf=`list-navigation`,nf=`cancel-open`,rf=`disabled`,af=`imperative-action`,of=`window-resize`;function sf(e,t,n,r){let i=!1,a=!1,o=r??qa;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}var cf=P.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}=Tl(),C=h||s,w=m??a,T={...p,disabled:C},{labelId:E}=Ml(),ee=Nl({id:i});Ts(()=>{let e=o!=null;S.inputRef.current?.value||e&&o!==``?b(!0):e&&o===``&&b(!1)},[S.inputRef,b,o]);let D=P.useRef(null);Ts(()=>{u&&D.current===eu(Pl(D.current))&&y(!0)},[u,y]);let[O]=Wd({controlled:o,default:l,name:`FieldControl`,state:`value`}),te=o!==void 0,ne=te?O:void 0,re=xs(()=>S.inputRef.current?.value);return Gd(S.inputRef,{id:ee,value:ne,getValue:re}),Za(`input`,e,{ref:[t,D],state:T,props:[{id:ee,disabled:C,name:w,ref:S.inputRef,"aria-labelledby":E,autoFocus:u,...te?{value:ne}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,sf(Kd,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:Cl})}),lf=P.forwardRef(function(e,t){return(0,F.jsx)(cf,{ref:t,...e})});function uf(e){let t=(0,da.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=al(`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 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,F.jsx)(lf,{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 df=P.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return Za(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});function ff(e){let t=(0,da.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=al(`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,F.jsx)(df,{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 pf=P.createContext(void 0);function mf(e){let t=P.useContext(pf);if(e===!1&&t===void 0)throw Error(Na(27));return t}var hf=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=Ld.startingStyle]=`startingStyle`,e[e.endingStyle=Ld.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),gf=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),_f={[gf.popupOpen]:``},vf={[gf.popupOpen]:``,[gf.pressed]:``},yf={[hf.open]:``},bf={[hf.closed]:``},xf={[hf.anchorHidden]:``},Sf={open(e){return e?_f:null}},Cf={open(e){return e?vf:null}},wf={open(e){return e?yf:bf},anchorHidden(e){return e?xf:null}},Tf={...wf,...Bd},Ef=P.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=mf(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return Za(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:Tf,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Df=P.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,style:o,...s}=e,{store:c}=mf(),l=c.useState(`open`);function u(e){l&&c.setOpen(!1,sf(Qd,e.nativeEvent))}let{getButtonProps:d,buttonRef:f}=ks({disabled:i,native:a});return Za(`button`,e,{state:{disabled:i},ref:[t,f],props:[{onClick:u},s,d]})}),Of=P.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=mf(),c=Al(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),Za(`p`,e,{ref:t,props:[{id:c},o]})});function kf(e,t){return t!=null&&!_u(t)?0:typeof e==`function`?e():e}function Af(e,t,n){let r=kf(e,n);return typeof r==`number`?r:r?.[t]}function jf(e){return typeof e==`function`?e():e}function Mf(e,t){return t||e===`click`||e===`mousedown`}var Nf=P.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Ad,currentIdRef:{current:null},currentContextRef:{current:null}});function Pf(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=P.useRef(n),a=P.useRef(n),o=P.useRef(null),s=P.useRef(null),c=jd();return(0,F.jsx)(Nf.Provider,{value:P.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function Ff(e,t={open:!1}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`floatingId`),{open:i}=t,{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=P.useContext(Nf),[f,p]=P.useState(!1);return Ts(()=>{function e(){p(!1),l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current}if(a.current&&!i&&a.current===r){if(p(!1),s){let t=r;return d.start(s,()=>{n.select(`open`)||a.current&&a.current!==t||e()}),()=>{d.clear()}}e()}},[i,r,a,o,s,c,l,d,n]),Ts(()=>{if(!i)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:n.setOpen,setIsInstantPhase:p},a.current=r,o.current={open:0,close:Af(c.current,`close`)},t!==null&&t!==r?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,sf(Kd))):(p(!1),e?.setIsInstantPhase(!1))},[i,r,n,a,o,s,c,l,d]),Ts(()=>()=>{l.current=null},[l]),P.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function If(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Lf(...e){return()=>{for(let t=0;t{t.current=t.next}};return t}var Bf={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Vf={...Bf,position:`fixed`,top:0,left:0},Hf={...Bf,position:`absolute`},Uf=P.forwardRef(function(e,t){let[n,r]=P.useState();Ts(()=>{Vl&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,F.jsx)(`span`,{...e,ref:t,style:Vf,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function Wf(e){return`data-base-ui-${e}`}var Gf=0;function Kf(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Gf);let a=()=>e?.focus({preventScroll:n});if(i)return a(),Ga;let o=requestAnimationFrame(a);return Gf=o,()=>{Gf===o&&(cancelAnimationFrame(o),Gf=0)}}var qf={inert:new WeakMap,"aria-hidden":new WeakMap},Jf=`data-base-ui-inert`,Yf={inert:new WeakSet,"aria-hidden":new WeakSet},Xf=new WeakMap,Zf=0;function Qf(e){return Yf[e]}function $f(e){return e?ts(e)?e.host:$f(e.parentNode):null}var ep=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=$f(t);return e.contains(n)?n:null}).filter(e=>e!=null),tp=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},np=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{Yo(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function rp(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=ep(t,e),u=i?ep(t,a):[],d=new Set(u),f=i?np(t,tp(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=qf[o],n=Qf(o);c=n,s=e;let r=ep(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);np(t,tp(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=(Xf.get(e)||0)+1;Xf.set(e,t),m.push(e),t===1&&e.setAttribute(Jf,``)}),Zf+=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=(Xf.get(e)||0)-1;Xf.set(e,t),t||e.removeAttribute(Jf)}),--Zf,Zf||(qf.inert=new WeakMap,qf[`aria-hidden`]=new WeakMap,Yf.inert=new WeakSet,Yf[`aria-hidden`]=new WeakSet,Xf=new WeakMap)}}function ip(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=Pl(e[0]).body;return rp(e,o,n,r,{mark:i,markerIgnoreElements:a})}var ap={style:{transition:`none`}},op={fallbackAxisSide:`none`},sp={fallbackAxisSide:`end`},cp={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},lp=P.createContext(null),up=()=>P.useContext(lp),dp=Wf(`portal`);function fp(e={}){let{ref:t,container:n,componentProps:r=qa,elementProps:i}=e,a=kl(),o=up()?.portalNode,[s,c]=P.useState(null),[l,u]=P.useState(null),d=xs(e=>{e!==null&&u(e)}),f=P.useRef(null);Ts(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(Qo(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=Za(`div`,r,{ref:[t,d],props:[{id:a,[dp]:``},i]});return{portalNode:l,portalSubtree:s&&p?hi.createPortal(p,s):null}}var pp=P.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,renderGuards:o,style:s,...c}=e,{portalNode:l,portalSubtree:u}=fp({container:r,ref:t,componentProps:e,elementProps:c}),d=P.useRef(null),f=P.useRef(null),p=P.useRef(null),m=P.useRef(null),[h,g]=P.useState(null),_=P.useRef(!1),v=h?.modal,y=h?.open,b=typeof o==`boolean`?o:!!h&&!h.modal&&h.open&&!!l;P.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&wd(e)&&(e.type===`focusin`?_.current&&=(Ed(l),!1):(Td(l),_.current=!0))}return Lf(If(l,`focusin`,e,!0),If(l,`focusout`,e,!0))},[l,v]),P.useEffect(()=>{!l||y!==!1||(Ed(l),_.current=!1)},[y,l]);let x=P.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,F.jsxs)(P.Fragment,{children:[u,(0,F.jsxs)(lp.Provider,{value:x,children:[b&&l&&(0,F.jsx)(Uf,{"data-type":`outside`,ref:d,onFocus:e=>{wd(e,l)?p.current?.focus():Cd(h?h.domReference:null)?.focus()}}),b&&l&&(0,F.jsx)(`span`,{"aria-owns":l.id,style:cp}),l&&hi.createPortal(n,l),b&&l&&(0,F.jsx)(Uf,{"data-type":`outside`,ref:f,onFocus:e=>{wd(e,l)?m.current?.focus():(Sd(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,sf(`focus-out`,e.nativeEvent)))}})]})]})});function mp(){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 hp=P.createContext(null),gp=P.createContext(null),_p=()=>P.useContext(hp)?.id||null,vp=e=>{let t=P.useContext(gp);return e??t};function yp(e,t){let n=Xo(nu(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 bp=20,xp=[];function Sp(){xp=xp.filter(e=>e.deref()?.isConnected)}function Cp(e){Sp(),e&&Yo(e)!==`body`&&(xp.push(new WeakRef(e)),xp.length>bp&&(xp=xp.slice(-bp)))}function wp(){return Sp(),xp[xp.length-1]?.deref()}function Tp(e){return e?vd(e)?e:bd(e)[0]||e:null}function Ep(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=yd(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return vd(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 Dp(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=xs(()=>b.current.floatingContext?.nodeId),S=i===!1,C=cu(_)&&S,w=P.useRef([`content`]),T=Rf(i),E=Rf(a),ee=Rf(l),D=vp(p),O=up(),te=P.useRef(!1),ne=P.useRef(!1),re=P.useRef(!1),k=P.useRef(null),A=P.useRef(``),ie=P.useRef(``),j=P.useRef(null),ae=P.useRef(null),oe=Ia(j,f,O?.beforeInsideRef),se=Ia(ae,O?.afterInsideRef),ce=jd(),M=jd(),le=Fd(),ue=O!=null,N=uu(v),de=xs((e=N)=>e?bd(e):[]),fe=xs(()=>m?.().filter(e=>e!=null)??[]);P.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&tu(N,eu(Pl(N)))&&de().length===0&&!C&&pu(e)}return If(Pl(N),`keydown`,e)},[r,_,N,s,w,C,de]),P.useEffect(()=>{if(r||!g)return;let e=Pl(N);function t(){re.current=!1}function n(e){let t=nu(e),n=fe();re.current=!(tu(v,t)||tu(_,t)||tu(O?.portalNode,t)||n.some(e=>e===t||tu(e,t))),ie.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(ne.current=!0)}function i(){ie.current=`keyboard`}return Lf(If(e,`pointerdown`,n,!0),If(e,`pointerup`,t,!0),If(e,`pointercancel`,t,!0),If(e,`keydown`,i,!0))},[r,v,_,N,g,O,fe]),P.useEffect(()=>{if(r||!c)return;let e=Pl(N);function t(){ne.current=!0,M.start(0,()=>{ne.current=!1})}function n(e){let t=nu(e);vd(t)&&(k.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=nu(t);queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=fe(),f=n?.hasAttribute(Wf(`focus-guard`))&&[j.current,ae.current,O?.beforeInsideRef.current,O?.afterInsideRef.current,O?.beforeOutsideRef.current,O?.afterOutsideRef.current,Id(d),Id(u)].includes(n),p=!(tu(_,n)||tu(v,n)||tu(n,v)||tu(O?.portalNode,n)||l.some(e=>e===n||tu(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>tu(e,n))||f||D&&(du(D.nodesRef.current,a).find(e=>tu(e.context?.elements.floating,n)||tu(e.context?.elements.domReference,n))||fu(D.nodesRef.current,a).find(e=>[e.context?.elements.floating,uu(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&N&&Ep(N,w),o&&r!==_&&!id(i)&&eu(e)===e.body){if(es(N)&&(N.focus(),o===`popup`)){le.request(()=>{N.focus()});return}let e=de(),t=k.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||N;es(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(C||!s)&&n&&p&&!ne.current&&(C||n!==wp())&&(te.current=!0,h.setOpen(!1,sf($d,t)))})}function a(){re.current||(b.current.insideReactTree=!0,ce.start(0,()=>{b.current.insideReactTree=!1}))}let l=es(_)?_:null;if(!(!v&&!l))return Lf(l&&If(l,`focusout`,i),l&&If(l,`pointerdown`,t),v&&If(v,`focusin`,n),v&&If(v,`focusout`,i),v&&O&&If(v,`focusout`,a,!0))},[r,_,v,N,s,D,O,h,c,o,de,C,x,w,b,ce,M,le,u,d,fe]),P.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(O?.portalNode?.querySelectorAll(`[${Wf(`portal`)}]`)||[]),t=(D?fu(D.nodesRef.current,x()):[]).find(e=>cu(e.context?.elements.domReference||null))?.context?.elements.domReference,n=ip([v,...e,j.current,ae.current,O?.beforeOutsideRef.current,O?.afterOutsideRef.current,...fe(),t,Id(d),Id(u),C?_:null].filter(e=>e!=null),{ariaHidden:s||C,mark:!1}),i=ip([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,w,O,C,D,x,u,d,fe]),Ts(()=>{if(!g||r||!es(N))return;let e=eu(Pl(N));queueMicrotask(()=>{let t=T.current,n=typeof t==`function`?t(ee.current||``):t;if(n===void 0||n===!1||tu(N,e))return;let r=null,i=()=>(r??=de(N),r[0]||N),a;a=n===!0||n===null?i():Id(n),a||=i(),Kf(a,{preventScroll:a===N})})},[r,g,N,S,de,T,ee]),Ts(()=>{if(r||!N)return;let e=Pl(N);Cp(eu(e));function t(e){if(e.open||(A.current=yp(e.nativeEvent,ie.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(te.current=!0),e.reason===`outside-press`)if(e.nested)te.current=!1;else if(hu(e.nativeEvent)||gu(e.nativeEvent))te.current=!1;else{let e=!1;Pl(N).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?te.current=!1:te.current=!0}}y.on(`openchange`,t);function n(){let e=E.current,t=typeof e==`function`?e(A.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`){let e=_||wp();return e&&e.isConnected?e:null}let n=_||wp();return Id(t)||n||null}return()=>{y.off(`openchange`,t);let r=eu(e),i=fe(),a=tu(v,r)||i.some(e=>e===r||tu(e,r))||D&&du(D.nodesRef.current,x(),!1).some(e=>tu(e.context?.elements.floating,r)),o=E.current,s=n();queueMicrotask(()=>{let t=Tp(s),n=typeof o!=`boolean`;o&&!te.current&&es(t)&&(!(!n&&t!==r&&r!==e.body)||a)&&t.focus({preventScroll:!0}),te.current=!1})}},[r,v,N,E,b,y,D,_,x,fe]),Ts(()=>{if(!zl||g||!v)return;let e=eu(Pl(v));!es(e)||!ou(e)||tu(v,e)&&e.blur()},[g,v]),Ts(()=>{if(!(r||!O))return O.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{O.setFocusManagerState(null)}},[r,O,s,g,h,c,_]),Ts(()=>{if(!(r||!N))return Ep(N,w),()=>{queueMicrotask(Sp)}},[r,N,w]);let pe=!r&&(s?!C:!0)&&(ue||s);return(0,F.jsxs)(P.Fragment,{children:[pe&&(0,F.jsx)(Uf,{"data-type":`inside`,ref:oe,onFocus:e=>{if(s){let e=de();Kf(e[e.length-1])}else O?.portalNode&&(te.current=!1,wd(e,O.portalNode)?Sd(_)?.focus():Id(d??O.beforeOutsideRef)?.focus())}}),n,pe&&(0,F.jsx)(Uf,{"data-type":`inside`,ref:se,onFocus:e=>{s?Kf(de()[0]):O?.portalNode&&(c&&(te.current=!0),wd(e,O.portalNode)?Cd(_)?.focus():Id(u??O.afterOutsideRef)?.focus())}})]})}function Op(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 kp(e){return e!=null&&e.clientX!=null}function Ap(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),o=n.context.dataRef,{enabled:s=!0,axis:c=`both`}=t,l=P.useRef(!1),u=P.useRef(null),[d,f]=P.useState(),[p,m]=P.useState([]),h=xs((e,t,r)=>{l.current||o.current.openEvent&&!kp(o.current.openEvent)||n.set(`positionReference`,Op(r??a,{x:e,y:t,axis:c,dataRef:o,pointerType:d}))}),g=xs(e=>{r?u.current||m([]):h(e.clientX,e.clientY,e.currentTarget)}),_=_u(d)?i:r,v=P.useCallback(()=>{if(!_||!s)return;let e=Xo(i);function t(e){tu(i,nu(e))?(u.current?.(),u.current=null):h(e.clientX,e.clientY)}if(!o.current.openEvent||kp(o.current.openEvent))return u.current=If(e,`mousemove`,t),()=>{u.current?.(),u.current=null};n.set(`positionReference`,a)},[_,s,i,o,a,n,h]);P.useEffect(()=>v(),[v,p]),P.useEffect(()=>{s&&!i&&(l.current=!1)},[s,i]),P.useEffect(()=>{!s&&r&&(l.current=!0)},[s,r]);let y=P.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:g,onMouseEnter:g}},[g]);return P.useMemo(()=>s?{reference:y,trigger:y}:{},[s,y])}var jp={intentional:`onClick`,sloppy:`onPointerDown`};function Mp(){return!1}function Np(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Pp(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),{dataRef:a}=n.context,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`sloppy`,referencePress:u=Mp,referencePressEvent:d=`sloppy`,bubbles:f,externalTree:p}=t,m=vp(p),h=xs(typeof c==`function`?c:()=>!1),g=typeof c==`function`?h:c,_=g!==!1,v=xs(()=>l),y=P.useRef(!1),b=P.useRef(!1),x=P.useRef(!1),{escapeKey:S,outsidePress:C}=Np(f),w=P.useRef(null),T=jd(),E=jd(),ee=xs(()=>{E.clear(),a.current.insideReactTree=!1}),D=P.useRef(!1),O=P.useRef(``),te=xs(u),ne=xs(e=>{if(!r||!o||!s||e.key!==`Escape`||D.current)return;let t=a.current.floatingContext?.nodeId,i=m?du(m.nodesRef.current,t):[];if(!S&&i.length>0){let e=!0;if(i.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let c=sf(ef,mu(e)?e.nativeEvent:e);n.setOpen(!1,c),!S&&!c.isPropagationAllowed&&e.stopPropagation()}),re=xs(()=>{a.current.insideReactTree=!0,E.start(0,ee)});P.useEffect(()=>{if(!r||!o)return;a.current.__escapeKeyBubbles=S,a.current.__outsidePressBubbles=C;let e=new Ad,t=new Ad;function c(){e.clear(),D.current=!0}function l(){e.start(ds()?5:0,()=>{D.current=!1})}function u(){x.current=!0,t.start(0,()=>{x.current=!1})}function d(){y.current=!1,b.current=!1}function f(){let e=O.current,t=e===`pen`||!e?`mouse`:e,n=v(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function p(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function h(e){let t=a.current.floatingContext?.nodeId,r=m&&du(m.nodesRef.current,t).some(t=>iu(e,t.context?.elements.floating));return iu(e,n.select(`floatingElement`))||iu(e,n.select(`domReferenceElement`))||r}function E(e){if(p(e)){ee();return}if(a.current.insideReactTree){ee();return}let r=nu(e),i=`[${Wf(`inert`)}]`,o=$o(r)?r.getRootNode():null,s=Array.from((ts(o)?o:Pl(n.select(`floatingElement`))).querySelectorAll(i)),c=n.context.triggerElements;if(r&&(c.hasElement(r)||c.hasMatchingElement(e=>tu(e,r))))return;let l=$o(r)?r:null;for(;l&&!fs(l);){let e=hs(l);if(fs(e)||!$o(e))break;l=e}if(s.length&&$o(r)&&!au(r)&&!tu(r,n.select(`floatingElement`))&&s.every(e=>!tu(l,e)))return;if(es(r)&&!(`touches`in e)){let t=fs(r),n=ps(r),i=/auto|scroll/,a=t||i.test(n.overflowX),o=t||i.test(n.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),d=s&&e.offsetY>r.clientHeight;if(u||d)return}if(h(e))return;if(f()===`intentional`&&x.current){t.clear(),x.current=!1;return}if(typeof g==`function`&&!g(e))return;let u=a.current.floatingContext?.nodeId,d=m?du(m.nodesRef.current,u):[];if(d.length>0){let e=!0;if(d.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}n.setOpen(!1,sf(Xd,e)),ee()}function te(e){f()!==`sloppy`||e.pointerType===`touch`||!n.select(`open`)||!o||iu(e,n.select(`floatingElement`))||iu(e,n.select(`domReferenceElement`))||E(e)}function re(e){if(f()!==`sloppy`||!n.select(`open`)||!o||iu(e,n.select(`floatingElement`))||iu(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];t&&(w.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},T.start(1e3,()=>{w.current&&(w.current.dismissOnTouchEnd=!1,w.current.dismissOnMouseDown=!1)}))}function k(e,t){let n=nu(e);if(!n)return;let r=If(n,e.type,()=>{t(e),r()})}function A(e){O.current=`touch`,k(e,re)}function ie(e){T.clear(),e.type===`pointerdown`&&(O.current=e.pointerType),!(e.type===`mousedown`&&w.current&&!w.current.dismissOnMouseDown)&&k(e,e=>{e.type===`pointerdown`?te(e):E(e)})}function j(e){if(!y.current)return;let n=b.current;if(d(),f()===`intentional`){if(e.type===`pointercancel`){n&&u();return}if(!h(e)){if(n){u();return}typeof g==`function`&&!g(e)||(t.clear(),x.current=!0,ee())}}}function ae(e){if(f()!==`sloppy`||!w.current||iu(e,n.select(`floatingElement`))||iu(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-w.current.startX),i=Math.abs(t.clientY-w.current.startY),a=Math.sqrt(r*r+i*i);a>5&&(w.current.dismissOnTouchEnd=!0),a>10&&(E(e),T.clear(),w.current=null)}function oe(e){k(e,ae)}function se(e){f()!==`sloppy`||!w.current||iu(e,n.select(`floatingElement`))||iu(e,n.select(`domReferenceElement`))||(w.current.dismissOnTouchEnd&&E(e),T.clear(),w.current=null)}function ce(e){k(e,se)}let M=Pl(i),le=Lf(s&&Lf(If(M,`keydown`,ne),If(M,`compositionstart`,c),If(M,`compositionend`,l)),_&&Lf(If(M,`click`,ie,!0),If(M,`pointerdown`,ie,!0),If(M,`pointerup`,j,!0),If(M,`pointercancel`,j,!0),If(M,`mousedown`,ie,!0),If(M,`mouseup`,j,!0),If(M,`touchstart`,A,!0),If(M,`touchmove`,oe,!0),If(M,`touchend`,ce,!0)));return()=>{le(),e.clear(),t.clear(),d(),x.current=!1}},[a,i,s,_,g,r,o,S,C,ne,ee,v,m,n,T]),P.useEffect(ee,[g,ee]);let k=P.useMemo(()=>({onKeyDown:ne,[jp[d]]:e=>{te()&&n.setOpen(!1,sf(qd,e.nativeEvent))},...d!==`intentional`&&{onClick(e){te()&&n.setOpen(!1,sf(`trigger-press`,e.nativeEvent))}}}),[ne,n,d,te]),A=xs(e=>{if(!r||!o||e.button!==0)return;let t=nu(e.nativeEvent);tu(n.select(`floatingElement`),t)&&(y.current||(y.current=!0,b.current=!1))}),ie=xs(e=>{!r||!o||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&y.current&&(b.current=!0)}),j=P.useMemo(()=>({onKeyDown:ne,onPointerDown:ie,onMouseDown:ie,onClickCapture:re,onMouseDownCapture(e){re(),A(e)},onPointerDownCapture(e){re(),A(e)},onMouseUpCapture:re,onTouchEndCapture:re,onTouchMoveCapture:re}),[ne,re,A,ie]);return P.useMemo(()=>o?{reference:k,floating:j,trigger:k}:{},[o,k,j])}function Fp(e,t,n){let{reference:r,floating:i}=e,a=Mu(t),o=Nu(t),s=ju(o),c=Ou(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(ku(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 Ip(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}=Du(t,e),p=Gu(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ku(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=Ku(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 Lp=50,Rp=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Ip},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Fp(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`&&_!==Mu(t))||T.every(e=>Mu(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=Mu(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 Bp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vp(e){return yu.some(t=>e[t]>=0)}var Hp=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Du(e,t);switch(i){case`referenceHidden`:{let e=Bp(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Vp(e)}}}case`escaped`:{let e=Bp(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Vp(e)}}}default:return{}}}}},Up=new Set([`left`,`top`]);async function Wp(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ou(n),s=ku(n),c=Mu(n)===`y`,l=Up.has(o)?-1:1,u=a&&c?-1:1,d=Du(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 Gp=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 Wp(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}}}}},Kp=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}=Du(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Mu(Ou(i)),p=Au(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=Eu(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=Eu(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}}}}}},qp=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}=Du(e,t),u={x:n,y:r},d=Mu(i),f=Au(d),p=u[f],m=u[d],h=Du(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=Up.has(Ou(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}}}},Jp=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}=Du(e,t),u=await o.detectOverflow(t,l),d=Ou(i),f=ku(i),p=Mu(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=bu(h-u[g],v),x=bu(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=xu(u.left,0),t=xu(u.right,0),n=xu(u.top,0),r=xu(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:xu(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:xu(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 Yp(e){let t=ps(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=es(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Su(n)!==a||Su(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Xp(e){return $o(e)?e:e.contextElement}function Zp(e){let t=Xp(e);if(!es(t))return wu(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Yp(t),o=(a?Su(n.width):n.width)/r,s=(a?Su(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Qp=wu(0);function $p(e){let t=Xo(e);return!ds()||!t.visualViewport?Qp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function eee(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xo(e)?!1:t}function em(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Xp(e),o=wu(1);t&&(r?$o(r)&&(o=Zp(r)):o=Zp(e));let s=eee(a,n,r)?$p(a):wu(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=Xo(a),t=r&&$o(r)?Xo(r):r,n=e,i=vs(n);for(;i&&r&&t!==n;){let e=Zp(i),t=i.getBoundingClientRect(),r=ps(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=Xo(i),i=vs(n)}}return Ku({width:u,height:d,x:c,y:l})}function tm(e,t){let n=ms(e).scrollLeft;return t?t.left+n:em(Zo(e)).left+n}function nm(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-tm(e,n),y:n.top+t.scrollTop}}function tee(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Zo(r),s=t?is(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=wu(1),u=wu(0),d=es(r);if((d||!d&&!a)&&((Yo(r)!==`body`||ns(o))&&(c=ms(r)),d)){let e=em(r);l=Zp(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?nm(o,c):wu(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 nee(e){return Array.from(e.getClientRects())}function ree(e){let t=Zo(e),n=ms(e),r=e.ownerDocument.body,i=xu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=xu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+tm(e),s=-n.scrollTop;return ps(r).direction===`rtl`&&(o+=xu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var rm=25;function iee(e,t){let n=Xo(e),r=Zo(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=ds();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=tm(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<=rm&&(a-=o)}else l<=rm&&(a+=l);return{width:a,height:o,x:s,y:c}}function aee(e,t){let n=em(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=es(e)?Zp(e):wu(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function im(e,t,n){let r;if(t===`viewport`)r=iee(e,n);else if(t===`document`)r=ree(Zo(e));else if($o(t))r=aee(t,n);else{let n=$p(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ku(r)}function am(e,t){let n=hs(e);return n===t||!$o(n)||fs(n)?!1:ps(n).position===`fixed`||am(n,t)}function oee(e,t){let n=t.get(e);if(n)return n;let r=_s(e,[],!1).filter(e=>$o(e)&&Yo(e)!==`body`),i=null,a=ps(e).position===`fixed`,o=a?hs(e):e;for(;$o(o)&&!fs(o);){let t=ps(o),n=ls(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||ns(o)&&!n&&am(e,o))?r=r.filter(e=>e!==o):i=t,o=hs(o)}return t.set(e,r),r}function see(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?is(t)?[]:oee(t,this._c):[].concat(n),r],o=im(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&&!um(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 dm(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=Xp(e),u=i||a?[...l?_s(l):[],...t?_s(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?fee(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?em(e):null;c&&g();function g(){let t=em(e);h&&!um(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 fm=Gp,pm=Kp,mm=zp,hm=Jp,gm=Hp,_m=qp,vm=(e,t,n)=>{let r=new Map,i={platform:lm,...n},a={...i.platform,_c:r};return Rp(e,t,{...i,platform:a})},ym=typeof document<`u`?P.useLayoutEffect:function(){};function bm(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(!bm(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)&&!bm(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function xm(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sm(e,t){let n=xm(e);return Math.round(t*n)/n}function Cm(e){let t=P.useRef(e);return ym(()=>{t.current=e}),t}function pee(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]=P.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=P.useState(r);bm(f,r)||p(r);let[m,h]=P.useState(null),[g,_]=P.useState(null),v=P.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=P.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=P.useRef(null),C=P.useRef(null),w=P.useRef(u),T=c!=null,E=Cm(c),ee=Cm(i),D=Cm(l),O=P.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};ee.current&&(e.platform=ee.current),vm(S.current,C.current,e).then(e=>{let t={...e,isPositioned:D.current!==!1};te.current&&!bm(w.current,t)&&(w.current=t,hi.flushSync(()=>{d(t)}))})},[f,t,n,ee,D]);ym(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let te=P.useRef(!1);ym(()=>(te.current=!0,()=>{te.current=!1}),[]),ym(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,O);O()}},[b,x,O,E,T]);let ne=P.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),re=P.useMemo(()=>({reference:b,floating:x}),[b,x]),k=P.useMemo(()=>{let e={position:n,left:0,top:0};if(!re.floating)return e;let t=Sm(re.floating,u.x),r=Sm(re.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...xm(re.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,re.floating,u.x,u.y]);return P.useMemo(()=>({...u,update:O,refs:ne,elements:re,floatingStyles:k}),[u,O,ne,re,k])}var mee=(e,t)=>{let n=fm(e);return{name:n.name,fn:n.fn,options:[e,t]}},hee=(e,t)=>{let n=pm(e);return{name:n.name,fn:n.fn,options:[e,t]}},gee=(e,t)=>({fn:_m(e).fn,options:[e,t]}),_ee=(e,t)=>{let n=mm(e);return{name:n.name,fn:n.fn,options:[e,t]}},vee=(e,t)=>{let n=hm(e);return{name:n.name,fn:n.fn,options:[e,t]}},yee=(e,t)=>{let n=gm(e);return{name:n.name,fn:n.fn,options:[e,t]}},wm=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(Na(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},Tm=[],Em=void 0;function bee(){return Em}function xee(e){Tm.push(e)}function Dm(e){let t=(t,n)=>{let r=Fa(Cee).current,i;try{Em=r;for(let e of Tm)e.before(r);i=e(t,n);for(let e of Tm)e.after(r);r.didInitialize=!0}finally{Em=void 0}return i};return t.displayName=e.displayName||e.name,t}function See(e){return P.forwardRef(Dm(e))}function Cee(){return{didInitialize:!1}}var Om=ei(),wee=Ua(19)?Eee:Dee;function km(e,t,n,r,i){return wee(e,t,n,r,i)}function Tee(e,t,n,r,i){let a=P.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Om.useSyncExternalStore)(e.subscribe,a,a)}xee({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,Om.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Eee(e,t,n,r,i){let a=bee();if(!a)return Tee(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 Dee(e,t,n,r,i){return(0,ni.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Am=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 km(this,e,t,n,r)}},jm=class extends Am{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){P.useDebugValue(e),Ts(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;Ts(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;Ts(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){P.useDebugValue(e);let n=t!==void 0;Ts(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return P.useDebugValue(e),km(this,this.selectors[e],t,n,r)}useContextCallback(e,t){P.useDebugValue(e);let n=xs(t??Ga);this.context[e]=n}useStateSetter(e){let t=P.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)}})}},Oee={open:wm(e=>e.open),transitionStatus:wm(e=>e.transitionStatus),domReferenceElement:wm(e=>e.domReferenceElement),referenceElement:wm(e=>e.positionReference??e.referenceElement),floatingElement:wm(e=>e.floatingElement),floatingId:wm(e=>e.floatingId)},Mm=class extends jm{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:mp(),nested:n,triggerElements:i},Oee),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&vu(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 kee(e,t){let n=P.useRef(null),r=P.useRef(null);return P.useCallback(i=>{if(e!==void 0){if(n.current!==null){let e=n.current,i=r.current,a=t.context.triggerElements.getById(e);i&&a===i&&t.context.triggerElements.delete(e),n.current=null,r.current=null}i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i))}},[t,e])}function Aee(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=kee(e,n),o=xs(t=>{if(a(t),!t||!n.select(`open`))return;let i=n.select(`activeTriggerId`);if(i===e){n.update({activeTriggerElement:t,...r});return}i??n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return Ts(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function Nm(e){let t=e.useState(`open`);Ts(()=>{if(t&&!e.select(`activeTriggerId`)&&e.context.triggerElements.size===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[n,r]=t.value;e.update({activeTriggerId:n,activeTriggerElement:r})}}},[t,e])}function Pm(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=Ud(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=xs(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return Hd({enabled:!t.useState(`preventUnmountingOnClose`),open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}var Fm=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 jee(){return new Mm({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Fm,floatingId:``,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Im(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:jee(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:qa,inactiveTriggerProps:qa,popupProps:qa}}var Lm=wm(e=>e.triggerIdProp??e.activeTriggerId),Rm={open:wm(e=>e.openProp??e.open),mounted:wm(e=>e.mounted),transitionStatus:wm(e=>e.transitionStatus),floatingRootContext:wm(e=>e.floatingRootContext),preventUnmountingOnClose:wm(e=>e.preventUnmountingOnClose),payload:wm(e=>e.payload),activeTriggerId:Lm,activeTriggerElement:wm(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:wm((e,t)=>t!==void 0&&Lm(e)===t),isOpenedByTrigger:wm((e,t)=>t!==void 0&&Lm(e)===t&&e.open),isMountedByTrigger:wm((e,t)=>t!==void 0&&Lm(e)===t&&e.mounted),triggerProps:wm((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:wm(e=>e.popupProps),popupElement:wm(e=>e.popupElement),positionerElement:wm(e=>e.positionerElement)};function zm(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=kl(),a=_p()!=null,o=Fa(()=>new Mm({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Fm,floatingId:i,syncOnly:!1,nested:a})).current;return Ts(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=$o(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 Mee(e={}){let{nodeId:t,externalTree:n}=e,r=zm(e),i=e.rootContext||r,a={reference:i.useState(`referenceElement`),floating:i.useState(`floatingElement`),domReference:i.useState(`domReferenceElement`)},[o,s]=P.useState(null),c=P.useRef(null),l=vp(n);Ts(()=>{a.domReference&&(c.current=a.domReference)},[a.domReference]);let u=pee({...e,elements:{...a,...o&&{reference:o}}}),d=P.useCallback(e=>{let t=$o(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),u.refs.setReference(t)},[u.refs]),[f,p]=P.useState(void 0),[m,h]=P.useState(null);i.useSyncedValue(`referenceElement`,f??null);let g=$o(f)?f:null;i.useSyncedValue(`domReferenceElement`,f===void 0?a.domReference:g),i.useSyncedValue(`floatingElement`,m);let _=P.useCallback(e=>{($o(e)||e===null)&&(c.current=e,p(e)),($o(u.refs.reference.current)||u.refs.reference.current===null||e!==null&&!$o(e))&&u.refs.setReference(e)},[u.refs,p]),v=P.useCallback(e=>{h(e),u.refs.setFloating(e)},[u.refs]),y=P.useMemo(()=>({...u.refs,setReference:_,setFloating:v,setPositionReference:d,domReference:c}),[u.refs,_,v,d]),b=P.useMemo(()=>({...u.elements,domReference:a.domReference}),[u.elements,a.domReference]),x=i.useState(`open`),S=i.useState(`floatingId`),C=P.useMemo(()=>({...u,dataRef:i.context.dataRef,open:x,onOpenChange:i.setOpen,events:i.context.events,floatingId:S,refs:y,elements:b,nodeId:t,rootStore:i}),[u,y,b,t,i,x,S]);return Ts(()=>{i.context.dataRef.current.floatingContext=C;let e=l?.nodesRef.current.find(e=>e.id===t);e&&(e.context=C)}),P.useMemo(()=>({...u,context:C,refs:y,elements:b,rootStore:i}),[u,y,b,C,i])}function Bm(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,onOpenChange:r}=e,i=kl(),a=_p()!=null,o=t.useState(`open`),s=t.useState(`activeTriggerElement`),c=t.useState(n?`popupElement`:`positionerElement`),l=t.context.triggerElements,u=Fa(()=>new Mm({open:o,transitionStatus:void 0,referenceElement:s,floatingElement:c,triggerElements:l,onOpenChange:r,floatingId:i,syncOnly:!0,nested:a})).current;return Ts(()=>{let e={open:o,floatingId:i,referenceElement:s,floatingElement:c};$o(s)&&(e.domReferenceElement=s),u.state.positionReference===u.state.referenceElement&&(e.positionReference=s),u.update(e)},[o,i,s,c,u]),u.context.onOpenChange=r,u.context.nested=a,u}var Vm=Ul&&Vl;function Nee(e,t={}){let n=`rootStore`in e?e.rootStore:e,{events:r,dataRef:i}=n.context,{enabled:a=!0,delay:o}=t,s=P.useRef(!1),c=P.useRef(null),l=jd(),u=P.useRef(!0);P.useEffect(()=>{let e=n.select(`domReferenceElement`);if(!a)return;let t=Xo(e);function r(){let e=n.select(`domReferenceElement`);!n.select(`open`)&&es(e)&&e===eu(Pl(e))&&(s.current=!0)}function i(){u.current=!0}function o(){u.current=!1}return Lf(If(t,`blur`,r),Vm&&If(t,`keydown`,i,!0),Vm&&If(t,`pointerdown`,o,!0))},[n,a]),P.useEffect(()=>{if(!a)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=n.select(`domReferenceElement`);$o(e)&&(c.current=e,s.current=!0)}}return r.on(`openchange`,e),()=>{r.off(`openchange`,e)}},[r,a,n]);let d=P.useMemo(()=>({onMouseLeave(){s.current=!1,c.current=null},onFocus(e){let t=e.currentTarget;if(s.current){if(c.current===t)return;s.current=!1,c.current=null}let r=nu(e.nativeEvent);if($o(r)){if(Vm&&!e.relatedTarget){if(!u.current&&!ou(r))return}else if(!lu(r))return}let i=ru(e.relatedTarget,n.context.triggerElements),{nativeEvent:a,currentTarget:d}=e,f=typeof o==`function`?o():o;if(n.select(`open`)&&i||f===0||f===void 0){n.setOpen(!0,sf(Yd,a,d));return}l.start(f,()=>{s.current||n.setOpen(!0,sf(Yd,a,d))})},onBlur(e){s.current=!1,c.current=null;let t=e.relatedTarget,r=e.nativeEvent,a=$o(t)&&t.hasAttribute(Wf(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let e=n.select(`domReferenceElement`),o=eu(Pl(e));!t&&o===e||tu(i.current.floatingContext?.refs.floating.current,o)||tu(e,o)||a||ru(t??o,n.context.triggerElements)||n.setOpen(!1,sf(Yd,r))})}}),[i,n,l,o]);return P.useMemo(()=>a?{reference:d,trigger:d}:{},[a,d])}var Pee=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 Ad,this.restTimeout=new Ad,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Hm=new WeakMap;function Um(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Hm.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Hm.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Wm(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Hm.get(n);a&&a!==e&&Um(a),Um(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Hm.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Gm(e){let t=Fa(Pee.create).current,n=e.context.dataRef.current;return n.hoverInteractionState||=t,Od(n.hoverInteractionState.disposeEffect),n.hoverInteractionState}function Fee(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),{dataRef:o}=n.context,{enabled:s=!0,closeDelay:c=0,nodeId:l}=t,u=Gm(n),d=vp(),f=_p(),p=xs(()=>Mf(o.current.openEvent?.type,u.interactedInside)),m=xs(()=>{let e=o.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`}),h=xs(e=>ru(e,n.context.triggerElements)),g=P.useCallback(e=>{let t=Af(c,`close`,u.pointerType),r=()=>{n.setOpen(!1,sf(Jd,e)),d?.events.emit(`floating.closed`,e)};t?u.openChangeTimeout.start(t,r):(u.openChangeTimeout.clear(),r())},[c,n,u,d]),_=xs(()=>{Um(u)}),v=xs(e=>{let t=nu(e);if(!su(t)){u.interactedInside=!1;return}u.interactedInside=t?.closest(`[aria-haspopup]`)!=null});Ts(()=>{r||(u.pointerType=void 0,u.restTimeoutPending=!1,u.interactedInside=!1,_())},[r,u,_]),P.useEffect(()=>_,[_]),Ts(()=>{if(s&&r&&u.handleCloseOptions?.blockPointerEvents&&m()&&$o(a)&&i){let e=a,t=i,n=Pl(i),r=d?.nodesRef.current.find(e=>e.id===f)?.context?.elements.floating;return r&&(r.style.pointerEvents=``),Wm(u,{scopeElement:u.handleCloseOptions?.getScope?.()??u.pointerEventsScopeElement??r??e.closest(`[data-rootownerid]`)??n.body,referenceElement:e,floatingElement:t}),()=>{_()}}},[s,r,a,i,u,m,d,f,_]);let y=jd();P.useEffect(()=>{if(!s)return;function e(){u.openChangeTimeout.clear(),y.clear(),d?.events.off(`floating.closed`,r),_()}function t(e){if(d&&f&&du(d.nodesRef.current,f).length>0){d.events.on(`floating.closed`,r);return}if(h(e.relatedTarget))return;let t=o.current.floatingContext?.nodeId??l,n=e.relatedTarget;if(!(d&&t&&$o(n)&&du(d.nodesRef.current,t,!1).some(e=>tu(e.context?.elements.floating,n)))){if(u.handler){u.handler(e);return}_(),p()||g(e)}}function r(e){!d||!f||du(d.nodesRef.current,f).length>0||y.start(0,()=>{d.events.off(`floating.closed`,r),n.setOpen(!1,sf(Jd,e)),d.events.emit(`floating.closed`,e)})}let a=i;return Lf(a&&If(a,`mouseenter`,e),a&&If(a,`mouseleave`,t),a&&If(a,`pointerdown`,v,!0),()=>{d?.events.off(`floating.closed`,r)})},[s,i,n,o,l,p,h,g,_,v,u,d,f,y])}var Iee={current:null};function Lee(e,t={}){let n=`rootStore`in e?e.rootStore:e,{dataRef:r,events:i}=n.context,{enabled:a=!0,delay:o=0,handleClose:s=null,mouseOnly:c=!1,restMs:l=0,move:u=!0,triggerElementRef:d=Iee,externalTree:f,isActiveTrigger:p=!0,getHandleCloseContext:m,isClosing:h}=t,g=vp(f),_=Gm(n),v=P.useRef(!1),y=Rf(s),b=Rf(o),x=Rf(l),S=Rf(a),C=Rf(h);p&&(_.handleCloseOptions=y.current?.__options);let w=xs(()=>Mf(r.current.openEvent?.type,_.interactedInside)),T=xs(e=>ru(e,n.context.triggerElements)),E=xs((e,t,r)=>{let i=n.context.triggerElements;if(i.hasElement(t))return!e||!tu(e,t);if(!$o(r))return!1;let a=r;return i.hasMatchingElement(e=>tu(e,a))&&(!e||!tu(e,a))}),ee=xs((e,t=!0)=>{let r=Af(b.current,`close`,_.pointerType);r?_.openChangeTimeout.start(r,()=>{n.setOpen(!1,sf(Jd,e)),g?.events.emit(`floating.closed`,e)}):t&&(_.openChangeTimeout.clear(),n.setOpen(!1,sf(Jd,e)),g?.events.emit(`floating.closed`,e))}),D=xs(()=>{_.handler&&=(Pl(n.select(`domReferenceElement`)).removeEventListener(`mousemove`,_.handler),void 0)}),O=xs(()=>{Um(_)});return P.useEffect(()=>D,[D]),P.useEffect(()=>{if(!a)return;function e(e){e.open?v.current=!1:(v.current=e.reason===Jd,D(),_.openChangeTimeout.clear(),_.restTimeout.clear(),_.blockMouseMove=!0,_.restTimeoutPending=!1)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[a,i,_,D]),P.useEffect(()=>{if(!a)return;let e=d.current??(p?n.select(`domReferenceElement`):null);if(!$o(e))return;function t(e){if(_.openChangeTimeout.clear(),_.blockMouseMove=!1,c&&!_u(_.pointerType))return;let t=jf(x.current),r=Af(b.current,`open`,_.pointerType),i=nu(e),a=e.currentTarget??null,o=n.select(`domReferenceElement`),s=a;if($o(i)&&!n.context.triggerElements.hasElement(i)){for(let e of n.context.triggerElements.elements())if(tu(e,i)){s=e;break}}$o(a)&&$o(o)&&!n.context.triggerElements.hasElement(a)&&tu(a,o)&&(s=o);let l=s==null?!1:E(o,s,i),u=n.select(`open`),d=C.current?.()??n.select(`transitionStatus`)===`ending`,f=!u&&d&&v.current,p=!l&&$o(s)&&$o(o)&&tu(o,s)&&f,m=t>0&&!r,h=l&&(u||f)||p,g=!u||l;if(h){n.setOpen(!0,sf(Jd,e,s));return}m||(r?_.openChangeTimeout.start(r,()=>{g&&n.setOpen(!0,sf(Jd,e,s))}):g&&n.setOpen(!0,sf(Jd,e,s)))}function i(e){if(w()){O();return}D();let t=Pl(n.select(`domReferenceElement`));_.restTimeout.clear(),_.restTimeoutPending=!1;let i=r.current.floatingContext??m?.();if(!T(e.relatedTarget)){if(y.current&&i){n.select(`open`)||_.openChangeTimeout.clear();let r=d.current;_.handler=y.current({...i,tree:g,x:e.clientX,y:e.clientY,onClose(){O(),D(),S.current&&!w()&&r===n.select(`domReferenceElement`)&&ee(e,!0)}}),t.addEventListener(`mousemove`,_.handler),_.handler(e);return}(_.pointerType!==`touch`||!tu(n.select(`floatingElement`),e.relatedTarget))&&ee(e)}}return u?Lf(If(e,`mousemove`,t,{once:!0}),If(e,`mouseenter`,t),If(e,`mouseleave`,i)):Lf(If(e,`mouseenter`,t),If(e,`mouseleave`,i))},[D,O,r,b,ee,n,a,y,_,p,E,w,T,c,u,x,d,g,S,m,C]),P.useMemo(()=>{if(!a)return;function e(e){_.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,r=e.currentTarget,i=n.select(`domReferenceElement`),a=n.select(`open`),o=E(i,r,e.target);if(c&&!_u(_.pointerType))return;if(a&&o&&_.handleCloseOptions?.blockPointerEvents){let e=n.select(`floatingElement`);e&&Wm(_,{scopeElement:_.handleCloseOptions?.getScope?.()??r.ownerDocument.body,referenceElement:r,floatingElement:e})}let s=jf(x.current);if(a&&!o||s===0||!o&&_.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;_.restTimeout.clear();function l(){if(_.restTimeoutPending=!1,w())return;let e=n.select(`open`);!_.blockMouseMove&&(!e||o)&&n.setOpen(!0,sf(Jd,t,r))}_.pointerType===`touch`?hi.flushSync(()=>{l()}):o&&a?l():(_.restTimeoutPending=!0,_.restTimeout.start(s,l))}}},[a,_,w,E,c,n,x])}function Km(e=[]){let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=e.map(e=>e?.trigger),a=P.useCallback(t=>qm(t,e,`reference`),t),o=P.useCallback(t=>qm(t,e,`floating`),n),s=P.useCallback(t=>qm(t,e,`item`),r),c=P.useCallback(t=>qm(t,e,`trigger`),i);return P.useMemo(()=>({getReferenceProps:a,getFloatingProps:o,getItemProps:s,getTriggerProps:c}),[a,o,s,c])}function qm(e,t,n){let r=new Map,i=n===`item`,a={};n===`floating`&&(a.tabIndex=-1,a[Jl]=``);for(let t in e)i&&e&&(t===`active`||t===`selected`)||(a[t]=e[t]);for(let o=0;or.get(i)?.map(t=>t(...e)).find(e=>e!==void 0))):e[i]=a)}}var Ree=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function zee(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingId`),a=n.useState(`domReferenceElement`),o=n.useState(`floatingElement`),{role:s=`dialog`}=t,c=kl(),l=a?.id||c,u=P.useMemo(()=>uu(o)?.id||i,[o,i]),d=Ree.get(s)??s,f=_p()!=null,p=P.useMemo(()=>d===`tooltip`||s===`label`?qa:{"aria-haspopup":d===`alertdialog`?`dialog`:d,"aria-expanded":`false`,...d===`listbox`&&{role:`combobox`},...d===`menu`&&f&&{role:`menuitem`},...s===`select`&&{"aria-autocomplete":`none`},...s===`combobox`&&{"aria-autocomplete":`list`}},[d,f,s]),m=P.useMemo(()=>d===`tooltip`||s===`label`?{[`aria-${s===`label`?`labelledby`:`describedby`}`]:r?u:void 0}:{...p,"aria-expanded":r?`true`:`false`,"aria-controls":r?u:void 0,...d===`menu`&&{id:l}},[d,u,r,l,s,p]),h=P.useMemo(()=>{let e={id:u,...d&&{role:d}};return d===`tooltip`||s===`label`?e:{...e,...d===`menu`&&{"aria-labelledby":l}}},[d,u,l,s]),g=P.useCallback(({active:e,selected:t})=>{let n={role:`option`,...e&&{id:`${u}-fui-option`}};switch(s){case`select`:case`combobox`:return{...n,"aria-selected":t};default:}return{}},[u,s]);return P.useMemo(()=>({reference:m,floating:h,item:g,trigger:p}),[m,h,p,g])}var Ym=.1,Bee=Ym*Ym,Xm=.5;function Zm(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function Qm(e,t,n,r,i,a,o,s,c,l){let u=!1;return Zm(e,t,n,r,i,a)&&(u=!u),Zm(e,t,i,a,o,s)&&(u=!u),Zm(e,t,o,s,c,l)&&(u=!u),Zm(e,t,c,l,n,r)&&(u=!u),u}function Vee(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function $m(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 Hee(e={}){let{blockPointerEvents:t=!1}=e,n=new Ad,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*Bee;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,ee=(T?x:S).left,D=(T?x:S).right,O=(E?x:S).top,te=(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 ne=!1;switch(c){case`top`:ne=$m(d,f,ee,x.top+1,D,S.bottom-1);break;case`bottom`:ne=$m(d,f,ee,S.top+1,D,x.bottom-1);break;case`left`:ne=$m(d,f,S.right-1,te,x.left+1,O);break;case`right`:ne=$m(d,f,x.right-1,te,S.left+1,O);break;default:}if(ne)return;if(l&&!Vee(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let re=!1;switch(c){case`top`:{let n=T?Xm/2:Xm*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+Xm+1,o=C||T?S.bottom-Xm:S.top,s=C?T?S.bottom-Xm:S.top:S.bottom-Xm;re=Qm(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?Xm/2:Xm*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-Xm,o=C||T?S.top+Xm:S.bottom,s=C?T?S.top+Xm:S.bottom:S.top+Xm;re=Qm(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?Xm/2:Xm*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+Xm+1,o=w||E?S.right-Xm:S.left,s=w?E?S.right-Xm:S.left:S.right-Xm;re=Qm(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?Xm/2:Xm*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-Xm,o=w||E?S.left+Xm:S.right,s=w?E?S.left+Xm:S.right:S.left+Xm;re=Qm(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}re?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var Uee=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),Wee=function(e){return e[e.open=hf.open]=`open`,e[e.closed=hf.closed]=`closed`,e[e.startingStyle=hf.startingStyle]=`startingStyle`,e[e.endingStyle=hf.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),eh=P.createContext(void 0);function Gee(){let e=P.useContext(eh);if(e===void 0)throw Error(Na(26));return e}var th=`ArrowUp`,nh=`ArrowDown`,rh=`ArrowLeft`,ih=`ArrowRight`,ah=`Home`,oh=new Set([rh,ih]),Kee=new Set([rh,ih,ah,`End`]),sh=new Set([th,nh]),qee=new Set([th,nh,ah,`End`]),ch=new Set([...oh,...sh]),Jee=new Set([...ch,ah,`End`]),lh=new Set([th,nh,rh,ih,ah,`End`]),Yee=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function Xee(e){return es(e)&&e.tagName===`INPUT`}function Zee(e){return!!(Xee(e)&&e.selectionStart!=null||es(e)&&e.tagName===`TEXTAREA`)}function Qee(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=uh(e,t,`top`),r=dh(e),i=dh(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 uh(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 dh(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 $ee={...wf,...Bd,nestedDialogOpen(e){return e?{[Wee.nestedDialogOpen]:``}:null}},fh=P.forwardRef(function(e,t){let{className:n,finalFocus:r,initialFocus:i,render:a,style:o,...s}=e,{store:c}=mf(),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`);Gee(),Hd({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});function S(e){return e===`touch`?c.context.popupRef.current:!0}let C=i===void 0?S:i,w=Za(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:g>0},props:[f,{"aria-labelledby":y??void 0,"aria-describedby":l??void 0,role:x,tabIndex:-1,hidden:!m,onKeyDown(e){lh.has(e.key)&&e.stopPropagation()},style:{[Uee.nestedDialogs]:g}},s],ref:[t,c.context.popupRef,c.useStateSetter(`popupElement`)],stateAttributesMapping:$ee});return(0,F.jsx)(Dp,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:r,modal:p!==!1,restoreFocus:`popup`,children:w})});function ph(e){return Ua(19)?e:e?`true`:void 0}var mh=P.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,F.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),hh=P.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=mf(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,F.jsx)(eh.Provider,{value:n,children:(0,F.jsxs)(pp,{ref:t,...r,children:[a&&o===!0&&(0,F.jsx)(mh,{ref:i.context.internalBackdropRef,inert:ph(!s)}),e.children]})}):null});function gh(e){let t=P.useRef(!0);t.current&&(t.current=!1,e())}var _h={},vh={},yh=``;function ete(e){if(typeof document>`u`)return!1;let t=Pl(e);return Xo(t).innerWidth-t.documentElement.clientWidth>0}function tte(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Pl(e),n=t.documentElement,r=t.body,i=ns(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 nte(e){let t=Pl(e),n=t.documentElement,r=t.body,i=ns(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 rte(e){let t=Pl(e),n=t.documentElement,r=t.body,i=Xo(n),a=0,o=0,s=!1,c=Pd.create();if(zl&&(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,_h={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},yh=n.style.scrollBehavior,vh={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=ns(n)?n:r;if(s=tte(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,_h),Object.assign(r.style,vh),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=yh)}function d(){u(),c.request(l)}l();let f=If(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var ite=new class{lockCount=0;restore=null;timeoutLock=Ad.create();timeoutUnlock=Ad.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=Pl(e).documentElement,n=Xo(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=Ga;return}let r=Bl||!ete(e);this.restore=r?nte(e):rte(e)}};function bh(e=!0,t=null){Ts(()=>{if(e)return ite.acquire(t)},[e,t])}function ate(e){let t=P.useRef(``),n=P.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:P.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function xh(e,t){let n=P.useRef(e),r=xs(t);Ts(()=>{n.current!==e&&r(n.current)},[e,r]),Ts(()=>{n.current=e},[e])}function Sh(e){let[t,n]=P.useState(null),r=xs((t,r)=>{e||n(r||(Bl?`touch`:``))});xh(e,t=>{t&&!e&&n(null)});let{onClick:i,onPointerDown:a}=ate(r);return P.useMemo(()=>({openMethod:t,triggerProps:{onClick:i,onPointerDown:a}}),[t,i,a])}function Ch(e){let{store:t,parentContext:n,actionsRef:r,isDrawer:i}=e,a=t.useState(`open`),o=t.useState(`disablePointerDismissal`),s=t.useState(`modal`),c=t.useState(`popupElement`),{openMethod:l,triggerProps:u}=Sh(a);Nm(t);let{forceUnmount:d}=Pm(a,t),f=P.useCallback(()=>{t.setOpen(!1,sf(af))},[t]);P.useImperativeHandle(r,()=>({unmount:d,close:f}),[d,f]);let p=Bm({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0}),[m,h]=P.useState(0),[g,_]=P.useState(0),v=m===0,y=zee(p),b=Pp(p,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?`intentional`:{mouse:s===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(e){if(!t.context.outsidePressEnabledRef.current||`button`in e&&e.button!==0||`touches`in e&&e.touches.length!==1)return!1;let n=nu(e);if(v&&!o){let e=n;return s&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===e||t.context.backdropRef.current===e||tu(e,c)&&!e?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:v});bh(a&&s===!0,c);let{getReferenceProps:x,getFloatingProps:S,getTriggerProps:C}=Km([y,b]);t.useContextCallback(`onNestedDialogOpen`,(e,t)=>{h(e),_(t)}),t.useContextCallback(`onNestedDialogClose`,()=>{h(0),_(0)}),P.useEffect(()=>(n?.onNestedDialogOpen&&a&&n.onNestedDialogOpen(m+1,g+ +!!i),n?.onNestedDialogClose&&!a&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&a&&n.onNestedDialogClose()}),[i,a,m,g,n]);let w=P.useMemo(()=>x(u),[x,u]),T=P.useMemo(()=>C(u),[C,u]),E=P.useMemo(()=>S(),[S]);t.useSyncedValues({openMethod:l,activeTriggerProps:w,inactiveTriggerProps:T,popupProps:E,floatingRootContext:p,nestedOpenDialogCount:m,nestedOpenDrawerCount:g})}var ote={...Rm,modal:wm(e=>e.modal),nested:wm(e=>e.nested),nestedOpenDialogCount:wm(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:wm(e=>e.nestedOpenDrawerCount),disablePointerDismissal:wm(e=>e.disablePointerDismissal),openMethod:wm(e=>e.openMethod),descriptionElementId:wm(e=>e.descriptionElementId),titleElementId:wm(e=>e.titleElementId),viewportElement:wm(e=>e.viewportElement),role:wm(e=>e.role)},wh=class e extends jm{constructor(e){super(ste(e),{popupRef:P.createRef(),backdropRef:P.createRef(),internalBackdropRef:P.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new Fm,onOpenChange:void 0,onOpenChangeComplete:void 0},ote)}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},r=t.trigger?.id??null;(r||e)&&(n.activeTriggerId=r,n.activeTriggerElement=t.trigger??null),this.update(n)};static useStore(t,n){let r=Fa(()=>new e(n)).current;return t??r}};function ste(e={}){return{...Im(),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}}var Th=P.createContext(!1);function cte(e){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,disablePointerDismissal:o=!1,modal:s=!0,actionsRef:c,handle:l,triggerId:u,defaultTriggerId:d=null}=e,f=mf(!0),p=P.useContext(Th),m=!!f,h=wh.useStore(l?.store,{open:r,openProp:n,activeTriggerId:d,triggerIdProp:u,modal:s,disablePointerDismissal:o,nested:m});gh(()=>{n===void 0&&h.state.open===!1&&r===!0&&h.update({open:!0,activeTriggerId:d})}),h.useControlledProp(`openProp`,n),h.useControlledProp(`triggerIdProp`,u),h.useSyncedValues({disablePointerDismissal:o,nested:m,modal:s}),h.useContextCallback(`onOpenChange`,i),h.useContextCallback(`onOpenChangeComplete`,a);let g=h.useState(`payload`);Ch({store:h,actionsRef:c,parentContext:f?.store.context,isDrawer:p,onOpenChange:i,triggerIdProp:u});let _=P.useMemo(()=>({store:h}),[h]);return(0,F.jsx)(Th.Provider,{value:!1,children:(0,F.jsx)(pf.Provider,{value:_,children:typeof t==`function`?t({payload:g}):t})})}var Eh=P.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=mf(),c=Al(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),Za(`h2`,e,{ref:t,props:[{id:c},o]})});function lte(e){let t=(0,da.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,F.jsx)(cte,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function ute(e){let t=(0,da.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,F.jsx)(hh,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function dte(e){let t=(0,da.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=al(`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,F.jsx)(Ef,{className:i,"data-slot":`sheet-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function fte(e){let t=(0,da.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,F.jsx)(dte,{}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=al(`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,F.jsxs)(Df,{"data-slot":`sheet-close`,render:(0,F.jsx)(vl,{className:`absolute top-4 right-4`,size:`icon-sm`,variant:`ghost`}),children:[(0,F.jsx)(qo,{}),(0,F.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,F.jsxs)(ute,{children:[l,(0,F.jsxs)(fh,{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 pte(e){let t=(0,da.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=al(`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,F.jsx)(`div`,{className:i,"data-slot":`sheet-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function mte(e){let t=(0,da.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=al(`text-sm font-medium text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(Eh,{className:i,"data-slot":`sheet-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function hte(e){let t=(0,da.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=al(`text-xs/relaxed text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(Of,{className:i,"data-slot":`sheet-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Dh=P.createContext(void 0);function Oh(e){let t=P.useContext(Dh);if(t===void 0&&!e)throw Error(Na(72));return t}var gte={...Rm,disabled:wm(e=>e.disabled),instantType:wm(e=>e.instantType),isInstantPhase:wm(e=>e.isInstantPhase),trackCursorAxis:wm(e=>e.trackCursorAxis),disableHoverablePopup:wm(e=>e.disableHoverablePopup),lastOpenChangeReason:wm(e=>e.openChangeReason),closeOnClick:wm(e=>e.closeOnClick),closeDelay:wm(e=>e.closeDelay),hasViewport:wm(e=>e.hasViewport)},_te=class e extends jm{constructor(e){super({...kh(),...e},{popupRef:P.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new Fm},gte)}setOpen=(e,t)=>{let n=t.reason,r=n===Jd,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);let o=t.trigger?.id??null;(o||e)&&(r.activeTriggerId=o,r.activeTriggerElement=t.trigger??null),this.update(r)};r?hi.flushSync(o):o()};static useStore(t,n){let r=Fa(()=>new e(n)).current,i=t??r,a=Bm({popupStore:i,onOpenChange:i.setOpen});return i.state.floatingRootContext=a,i}};function kh(){return{...Im(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var Ah=Dm(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=_te.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});gh(()=>{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(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),Ts(()=>{m&&t&&p.setOpen(!1,sf(rf))},[m,t,p]),p.useSyncedValue(`disabled`,t),Nm(p);let{forceUnmount:v,transitionStatus:y}=Pm(h,p),b=p.select(`floatingRootContext`),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=P.useRef(null);Ts(()=>{y===`ending`&&C===`none`||y!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[y,x,C,S,p]),Ts(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let T=P.useCallback(()=>{p.setOpen(!1,sf(af))},[p]);P.useImperativeHandle(o,()=>({unmount:v,close:T}),[v,T]);let{getReferenceProps:E,getFloatingProps:ee,getTriggerProps:D}=Km([Pp(b,{enabled:!t,referencePress:()=>p.select(`closeOnClick`)}),Ap(b,{enabled:!t&&a!==`none`,axis:a===`none`?void 0:a})]),O=P.useMemo(()=>E(),[E]),te=P.useMemo(()=>D(),[D]),ne=P.useMemo(()=>ee(),[ee]);return p.useSyncedValues({activeTriggerProps:O,inactiveTriggerProps:te,popupProps:ne}),(0,F.jsx)(Dh.Provider,{value:p,children:typeof f==`function`?f({payload:_}):f})}),jh=P.createContext(void 0);function Mh(){return P.useContext(jh)}var Nh=function(e){return e[e.popupOpen=gf.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),Ph=See(function(e,t){let{className:n,render:r,handle:i,payload:a,disabled:o,delay:s,closeOnClick:c=!0,closeDelay:l,id:u,style:d,...f}=e,p=Oh(!0),m=i?.store??p;if(!m)throw Error(Na(82));let h=Al(u),g=m.useState(`isTriggerActive`,h),_=m.useState(`isOpenedByTrigger`,h),v=m.useState(`floatingRootContext`),y=P.useRef(null),b=s??600,x=l??0,{registerTrigger:S,isMountedByThisTrigger:C}=Aee(h,y,m,{payload:a,closeOnClick:c,closeDelay:x}),w=Mh(),{delayRef:T,isInstantPhase:E,hasProvider:ee}=Ff(v,{open:_});m.useSyncedValue(`isInstantPhase`,E);let D=m.useState(`disabled`),O=o??D,te=m.useState(`trackCursorAxis`),ne=m.useState(`disableHoverablePopup`),re=Lee(v,{enabled:!O,mouseOnly:!0,move:!1,handleClose:!ne&&te!==`both`?Hee():null,restMs(){let e=w?.delay,t=typeof T.current==`object`?T.current.open:void 0,n=b;return ee&&(n=t===0?0:s??e??b),n},delay(){let e=typeof T.current==`object`?T.current.close:void 0,t=x;return l==null&&ee&&(t=e),{close:t}},triggerElementRef:y,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`}),k=Nee(v,{enabled:!O}).reference,A={open:_},ie=m.useState(`triggerProps`,C);return Za(`button`,e,{state:A,ref:[t,S,y],props:[re,k,ie,{onPointerDown(){m.set(`closeOnClick`,c)},id:h,[Nh.triggerDisabled]:O?``:void 0},f],stateAttributesMapping:Sf})}),Fh=P.createContext(void 0);function Ih(){let e=P.useContext(Fh);if(e===void 0)throw Error(Na(70));return e}var Lh=P.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=fp({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,F.jsxs)(P.Fragment,{children:[l,c&&hi.createPortal(n,c)]})}),Rh=P.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return Oh().useState(`mounted`)||n?(0,F.jsx)(Fh.Provider,{value:n,children:(0,F.jsx)(Lh,{ref:t,...r})}):null}),zh=P.createContext(void 0);function Bh(){let e=P.useContext(zh);if(e===void 0)throw Error(Na(71));return e}var Vh=P.createContext(void 0);function Hh(){return P.useContext(Vh)?.direction??`ltr`}var Uh=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`}=Du(e,t)||{};if(l==null)return{};let f=Gu(u),p={x:n,y:r},m=Nu(i),h=ju(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,ee=Math.min(f[v],E),D=Math.min(f[y],E),O=ee,te=w-g[h]-D,ne=w/2-g[h]/2+T,re=Eu(O,ne,te),k=!c.arrow&&ku(i)!=null&&ne!==re&&a.reference[h]/2-(ne({...Uh(e),options:[e,t]}),Gh={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 yee().fn(e)).data?.referenceHidden||a}}}},Kh={sideX:`left`,sideY:`top`},qh={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=Xo(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:Kh};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=Pl(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=Ou(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`:Kh.sideX,g=f===`top`?`bottom`:Kh.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function Jh(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 Yh(e,t,n){let{rects:r,placement:i}=e;return{side:Jh(t,Ou(i),n),align:ku(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Xh(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,keepMounted:f=!1,floatingRootContext:p,mounted:m,collisionAvoidance:h,shiftCrossAxis:g=!1,nodeId:_,adaptiveOrigin:v,lazyFlip:y=!1,externalTree:b}=e,[x,S]=P.useState(null);!m&&x!==null&&S(null);let C=h.side||`flip`,w=h.align||`flip`,T=h.fallbackAxisSide||`end`,E=typeof t==`function`?t:void 0,ee=xs(E),D=E?ee:t,O=Rf(t),te=Rf(m),ne=Hh()===`rtl`,re=x||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":ne?`left`:`right`,"inline-start":ne?`right`:`left`}[r],k=a===`center`?re:`${re}-${a}`,A=c,ie=+(r===`bottom`),j=+(r===`top`),ae=+(r===`right`),oe=+(r===`left`);typeof A==`number`?A={top:A+ie,right:A+oe,bottom:A+j,left:A+ae}:A&&={top:(A.top||0)+ie,right:(A.right||0)+oe,bottom:(A.bottom||0)+j,left:(A.left||0)+ae};let se={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:A},ce=P.useRef(null),M=Rf(i),le=Rf(o),ue=[mee(e=>{let t=Yh(e,r,ne),n=typeof M.current==`function`?M.current(t):M.current,i=typeof le.current==`function`?le.current(t):le.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[typeof i==`function`?0:i,typeof o==`function`?0:o,ne,r])],N=w===`none`&&C!==`shift`,de=!N&&(l||g||C===`shift`),fe=C===`none`?null:_ee({...se,padding:{top:A.top+1,right:A.right+1,bottom:A.bottom+1,left:A.left+1},mainAxis:!g&&C===`flip`,crossAxis:w===`flip`?`alignment`:!1,fallbackAxisSideDirection:T}),pe=N?null:hee(e=>{let t=Pl(e.elements.floating).documentElement;return{...se,rootBoundary:g?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:w!==`none`,crossAxis:de,limiter:l||g?void 0:gee(e=>{if(!ce.current)return{};let{width:t,height:n}=ce.current.getBoundingClientRect(),r=Mu(Ou(e.placement)),i=r===`y`?t:n,a=r===`y`?A.left+A.right:A.top+A.bottom;return{offset:i/2+a/2}})}},[se,l,g,A,w]);C===`shift`||w===`shift`||a===`center`?ue.push(pe,fe):ue.push(fe,pe),ue.push(vee({...se,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!te.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=Xo(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`)}}),Wh(()=>({element:ce.current||Pl(ce.current).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=Ou(a),l=Mu(c),u=ce.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(Yh(e,r,ne)):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),{}}},Gh,v),Ts(()=>{!m&&p&&p.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[m,p]);let me=P.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}=Mee({rootContext:p,open:f?m:void 0,placement:k,middleware:ue,strategy:n,whileElementsMounted:f?void 0:(...e)=>dm(...e,me),nodeId:_,externalTree:b}),{sideX:Te,sideY:Ee}=ye.adaptiveOrigin||Kh,De=Ce?n:`fixed`,Oe=P.useMemo(()=>{let e=v?{position:De,[Te]:_e,[Ee]:ve}:{position:De,...we};return Ce||(e.opacity=0),e},[v,De,Te,_e,Ee,ve,we,Ce]),ke=P.useRef(null);Ts(()=>{if(!m)return;let e=O.current,t=typeof e==`function`?e():e,n=(Zh(t)?t.current:t)||null;n!==ke.current&&(he.setPositionReference(n),ke.current=n)},[m,he,D,O]),P.useEffect(()=>{if(!m)return;let e=O.current;typeof e!=`function`&&Zh(e)&&e.current!==ke.current&&(he.setPositionReference(e.current),ke.current=e.current)},[m,he,D,O]),P.useEffect(()=>{if(f&&m&&ge.domReference&&ge.floating)return dm(ge.domReference,ge.floating,be,me)},[f,m,ge,be,me]);let Ae=Ou(xe),je=Jh(r,Ae,ne),Me=ku(xe)||`center`,Ne=!!ye.hide?.referenceHidden;Ts(()=>{y&&m&&Ce&&S(Ae)},[y,m,Ce,Ae]);let F=P.useMemo(()=>({position:`absolute`,top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),Pe=ye.arrow?.centerOffset!==0;return P.useMemo(()=>({positionerStyles:Oe,arrowStyles:F,arrowRef:ce,arrowUncentered:Pe,side:je,align:Me,physicalSide:Ae,anchorHidden:Ne,refs:he,context:Se,isPositioned:Ce,update:be}),[Oe,F,ce,Pe,je,Me,Ae,Ne,he,Se,Ce,be])}function Zh(e){return e!=null&&`current`in e}function Qh(e){return e===`starting`?ap:qa}function $h(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),Za(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Qh(r),i],stateAttributesMapping:wf})}var eg=P.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=sp,style:g,..._}=e,v=Oh(),y=Ih(),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`),ee=Xh({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`)?qh:void 0}),D=$h(e,P.useMemo(()=>({open:b,side:ee.side,align:ee.align,anchorHidden:ee.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,ee.side,ee.align,ee.anchorHidden,S,T]),{styles:ee.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,F.jsx)(zh.Provider,{value:ee,children:D})}),tg={...wf,...Bd},ng=P.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,o=Oh(),{side:s,align:c}=Bh(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`);Hd({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}});let m=o.useState(`disabled`),h=o.useState(`closeDelay`);return Fee(p,{enabled:!m,closeDelay:h}),Za(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,o.useStateSetter(`popupElement`)],props:[f,Qh(d),a],stateAttributesMapping:tg})}),vte=P.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,o=Oh(),s=o.useState(`open`),c=o.useState(`instantType`),{arrowRef:l,side:u,align:d,arrowUncentered:f,arrowStyles:p}=Bh();return Za(`div`,e,{state:{open:s,side:u,align:d,uncentered:f,instant:c},ref:[t,l],props:[{style:p,"aria-hidden":!0},a],stateAttributesMapping:wf})}),yte=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=P.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=P.useMemo(()=>({open:t,close:n}),[t,n]);return(0,F.jsx)(jh.Provider,{value:i,children:(0,F.jsx)(Pf,{delay:a,timeoutMs:r,children:e.children})})};function bte(e){let t=(0,da.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,F.jsx)(yte,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function xte(e){let t=(0,da.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,F.jsx)(bte,{children:(0,F.jsx)(Ah,{"data-slot":`tooltip`,...n})}),t[2]=n,t[3]=r),r}function Ste(e){let t=(0,da.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,F.jsx)(Ph,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function Cte(e){let t=(0,da.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=al(`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,F.jsx)(vte,{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,F.jsxs)(ng,{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,F.jsx)(Rh,{children:(0,F.jsx)(eg,{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 wte(e){return rg.addEventListener(`change`,e),()=>rg.removeEventListener(`change`,e)}function Tte(){return rg.matches}function Ete(){return(0,P.useSyncExternalStore)(wte,Tte)}var Dte=`sidebar_state`,Ote=3600*24*7,kte=`12rem`,Ate=`16rem`,jte=`3rem`,Mte=`b`,ig=P.createContext(null);function ag(){let e=P.useContext(ig);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function Nte(e){let t=(0,da.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=Ete(),[d,f]=P.useState(!1),[p,m]=P.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=`${Dte}=${t}; path=/; max-age=${Ote}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>u?f(Fte):_(Pte),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===Mte&&(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),P.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=al(`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":kte,"--sidebar-width-icon":jte,...s},t[26]=s,t[27]=E);let ee=E,D;t[28]!==n||t[29]!==a||t[30]!==T||t[31]!==ee?(D=(0,F.jsx)(`div`,{className:T,"data-slot":`sidebar-wrapper`,style:ee,...a,children:n}),t[28]=n,t[29]=a,t[30]=T,t[31]=ee,t[32]=D):D=t[32];let O;return t[33]!==w||t[34]!==D?(O=(0,F.jsx)(ig.Provider,{value:w,children:D}),t[33]=w,t[34]=D,t[35]=O):O=t[35],O}function Pte(e){return!e}function Fte(e){return!e}function Ite(e){let t=(0,da.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}=ag();if(u===`none`){let e;t[7]===r?e=t[8]:(e=al(`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,F.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":Ate},t[13]=e):e=t[13];let r=e,a;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,F.jsxs)(pte,{className:`sr-only`,children:[(0,F.jsx)(mte,{children:`Sidebar`}),(0,F.jsx)(hte,{children:`Displays the mobile sidebar.`})]}),t[14]=a):a=t[14];let o;t[15]===n?o=t[16]:(o=(0,F.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,F.jsxs)(fte,{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,F.jsx)(lte,{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]:(_=al(`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,F.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=al(`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,F.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,F.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,F.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 Lte(e){let t=(0,da.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}=ag(),o;t[4]===n?o=t[5]:(o=al(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,F.jsx)(Lo,{}),l=(0,F.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,F.jsxs)(vl,{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 Rte(e){let t=(0,da.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}=ag(),a;t[3]===n?a=t[4]:(a=al(`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,F.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 zte(e){let t=(0,da.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=al(`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,F.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 Bte(e){let t=(0,da.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=al(`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,F.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 Vte(e){let t=(0,da.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=al(`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,F.jsx)(ff,{className:i,"data-sidebar":`separator`,"data-slot":`sidebar-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Hte(e){let t=(0,da.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=al(`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,F.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 og(e){let t=(0,da.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=al(`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,F.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 sg(e){let t=(0,da.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=ro,r=`div`,i=va({className:al(`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 cg(e){let t=(0,da.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=al(`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,F.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 lg(e){let t=(0,da.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=al(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.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 Ute=co(`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 ug(e){let t=(0,da.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}=ag(),m=va({className:al(Ute({variant:u,size:d}),s)},c),h=o?Ste: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=ro(_);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,F.jsx)(Cte,{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,F.jsxs)(xte,{children:[v,S]}),t[12]=v,t[13]=S,t[14]=C):C=t[14],C}var dg;function V(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var fg=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},pg=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(dg=globalThis).__zod_globalConfig??(dg.__zod_globalConfig={});var mg=globalThis.__zod_globalConfig;function hg(e){return e&&Object.assign(mg,e),mg}function gg(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function _g(e,t){return typeof t==`bigint`?t.toString():t}function vg(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function yg(e){return e==null}function bg(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Wte(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r){};function Dg(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Kte=vg(()=>{if(mg.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Og(e){if(Dg(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Dg(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function kg(e){return Og(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var qte=new Set([`string`,`number`,`symbol`]);function Ag(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function jg(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Mg(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Jte(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var Yte={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Xte(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return jg(e,wg(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return Cg(this,`shape`,e),e},checks:[]}))}function Zte(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return jg(e,wg(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return Cg(this,`shape`,r),r},checks:[]}))}function Qte(e,t){if(!Og(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return jg(e,wg(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Cg(this,`shape`,n),n}}))}function $te(e,t){if(!Og(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return jg(e,wg(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Cg(this,`shape`,n),n}}))}function ene(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return jg(e,wg(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Cg(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function tne(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return jg(t,wg(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return Cg(this,`shape`,i),i},checks:[]}))}function nne(e,t,n){return jg(t,wg(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return Cg(this,`shape`,i),i}}))}function Ng(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Fg(e){return typeof e==`string`?e:e?.message}function Ig(e,t,n){let r=e.message?e.message:Fg(e.inst?._zod.def?.error?.(e))??Fg(t?.error?.(e))??Fg(n.customError?.(e))??Fg(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function Lg(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Rg(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var zg=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,_g,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},Bg=V(`$ZodError`,zg),Vg=V(`$ZodError`,zg,{Parent:Error});function ine(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function ane(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new fg;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Ig(e,a,hg())));throw Eg(t,i?.callee),t}return o.value},one=Hg(Vg),Ug=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Ig(e,a,hg())));throw Eg(t,i?.callee),t}return o.value},sne=Ug(Vg),Wg=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new fg;return a.issues.length?{success:!1,error:new(e??Bg)(a.issues.map(e=>Ig(e,i,hg())))}:{success:!0,data:a.value}},cne=Wg(Vg),Gg=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Ig(e,i,hg())))}:{success:!0,data:a.value}},lne=Gg(Vg),une=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Hg(e)(t,n,i)},dne=e=>(t,n,r)=>Hg(e)(t,n,r),fne=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Ug(e)(t,n,i)},pne=e=>async(t,n,r)=>Ug(e)(t,n,r),mne=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Wg(e)(t,n,i)},hne=e=>(t,n,r)=>Wg(e)(t,n,r),gne=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Gg(e)(t,n,i)},_ne=e=>async(t,n,r)=>Gg(e)(t,n,r),vne=/^[cC][0-9a-z]{6,}$/,yne=/^[0-9a-z]+$/,bne=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,xne=/^[0-9a-vA-V]{20}$/,Sne=/^[A-Za-z0-9]{27}$/,Cne=/^[a-zA-Z0-9_-]{21}$/,wne=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Tne=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Kg=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ene=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Dne=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function One(){return new RegExp(Dne,`u`)}var kne=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ane=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,jne=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Mne=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,qg=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Jg=/^[A-Za-z0-9_-]*$/,Yg=/^https?$/,Xg=/^\+[1-9]\d{6,14}$/,Zg=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,Qg=RegExp(`^${Zg}$`);function $g(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function e_(e){return RegExp(`^${$g(e)}$`)}function t_(e){let t=$g({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Zg}T(?:${r})$`)}var n_=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},r_=/^-?\d+$/,i_=/^-?\d+(?:\.\d+)?$/,a_=/^(?:true|false)$/i,o_=/^[^A-Z]*$/,s_=/^[^a-z]*$/,c_=V(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),l_={number:`number`,bigint:`bigint`,object:`date`},u_=V(`$ZodCheckLessThan`,(e,t)=>{c_.init(e,t);let n=l_[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{c_.init(e,t);let n=l_[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),f_=V(`$ZodCheckMultipleOf`,(e,t)=>{c_.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):Wte(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),p_=V(`$ZodCheckNumberFormat`,(e,t)=>{c_.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Yte[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=r_)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),m_=V(`$ZodCheckMaxLength`,(e,t)=>{var n;c_.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!yg(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=Lg(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),h_=V(`$ZodCheckMinLength`,(e,t)=>{var n;c_.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!yg(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Lg(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),g_=V(`$ZodCheckLengthEquals`,(e,t)=>{var n;c_.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!yg(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Lg(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),__=V(`$ZodCheckStringFormat`,(e,t)=>{var n,r;c_.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),v_=V(`$ZodCheckRegex`,(e,t)=>{__.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),y_=V(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=o_,__.init(e,t)}),b_=V(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=s_,__.init(e,t)}),x_=V(`$ZodCheckIncludes`,(e,t)=>{c_.init(e,t);let n=Ag(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),S_=V(`$ZodCheckStartsWith`,(e,t)=>{c_.init(e,t);let n=RegExp(`^${Ag(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),C_=V(`$ZodCheckEndsWith`,(e,t)=>{c_.init(e,t);let n=RegExp(`.*${Ag(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),w_=V(`$ZodCheckOverwrite`,(e,t)=>{c_.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),T_=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` +`).replace(Hd,``)}function Wd(e,t){return t=Ud(t),Ud(e)===t}function Gd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Gt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Gt(e,``+r);break;case`className`:kt(e,`class`,r);break;case`tabIndex`:kt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:kt(e,n,r);break;case`style`:Jt(e,r,o);break;case`data`:if(t!==`object`){kt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Qt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Gd(e,t,`name`,a.name,a,null),Gd(e,t,`formEncType`,a.formEncType,a,null),Gd(e,t,`formMethod`,a.formMethod,a,null),Gd(e,t,`formTarget`,a.formTarget,a,null)):(Gd(e,t,`encType`,a.encType,a,null),Gd(e,t,`method`,a.method,a,null),Gd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Qt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=$t);break;case`onScroll`:r!=null&&jd(`scroll`,e);break;case`onScrollEnd`:r!=null&&jd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Qt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:jd(`beforetoggle`,e),jd(`toggle`,e),Ot(e,`popover`,r);break;case`xlinkActuate`:At(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:At(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:At(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:At(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:At(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:At(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ot(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2s)break;var u=c.transferSize,d=c.initiatorType;u&&Yd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Pf(e,t,n){var r=Nf;if(r&&typeof t==`string`&&t){var i=Rt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Of.has(i)||(Of.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),qd(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Ff(e){Af.D(e),Pf(`dns-prefetch`,e,null)}function If(e,t){Af.C(e,t),Pf(`preconnect`,e,t)}function Lf(e,t,n){Af.L(e,t,n);var r=Nf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Rt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Rt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Rt(n.imageSizes)+`"]`)):i+=`[href="`+Rt(e)+`"]`;var a=i;switch(t){case`style`:a=Uf(e);break;case`script`:a=qf(e)}Df.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Df.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Wf(a))||t===`script`&&r.querySelector(Jf(a))||(t=r.createElement(`link`),qd(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Rf(e,t){Af.m(e,t);var n=Nf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Rt(r)+`"][href="`+Rt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=qf(e)}if(!Df.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Df.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Jf(a)))return}r=n.createElement(`link`),qd(r,`link`,e),yt(r),n.head.appendChild(r)}}}function zf(e,t,n){Af.S(e,t,n);var r=Nf;if(r&&e){var i=vt(r).hoistableStyles,a=Uf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Wf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Df.get(a))&&Zf(e,n);var c=o=r.createElement(`link`);yt(c),qd(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,Xf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Bf(e,t){Af.X(e,t);var n=Nf;if(n&&e){var r=vt(n).hoistableScripts,i=qf(e),a=r.get(i);a||(a=n.querySelector(Jf(i)),a||(e=f({src:e,async:!0},t),(t=Df.get(i))&&Qf(e,t),a=n.createElement(`script`),yt(a),qd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Vf(e,t){Af.M(e,t);var n=Nf;if(n&&e){var r=vt(n).hoistableScripts,i=qf(e),a=r.get(i);a||(a=n.querySelector(Jf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Df.get(i))&&Qf(e,t),a=n.createElement(`script`),yt(a),qd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Hf(e,t,n,r){var a=(a=ue.current)?kf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Uf(n.href),n=vt(a).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=Uf(n.href);var o=vt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Wf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Df.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},Df.set(e,n),o||Kf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=qf(n),n=vt(a).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(i(444,e))}}function Uf(e){return`href="`+Rt(e)+`"`}function Wf(e){return`link[rel="stylesheet"][`+e+`]`}function Gf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Kf(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}),qd(t,`link`,n),yt(t),e.head.appendChild(t))}function qf(e){return`[src="`+Rt(e)+`"]`}function Jf(e){return`script[async]`+e}function Yf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Rt(n.href)+`"]`);if(r)return t.instance=r,yt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),yt(r),qd(r,`style`,a),Xf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Uf(n.href);var o=e.querySelector(Wf(a));if(o)return t.state.loading|=4,t.instance=o,yt(o),o;r=Gf(n),(a=Df.get(a))&&Zf(r,a),o=(e.ownerDocument||e).createElement(`link`),yt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),qd(o,`link`,r),t.state.loading|=4,Xf(o,n.precedence,e),t.instance=o;case`script`:return o=qf(n.src),(a=e.querySelector(Jf(o)))?(t.instance=a,yt(a),a):(r=n,(a=Df.get(o))&&(r=f({},n),Qf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),yt(a),qd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Xf(r,n.precedence,e));return t.instance}function Xf(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 np(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 rp(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ip(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=Uf(r.href),a=t.querySelector(Wf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=sp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,yt(a);return}a=t.ownerDocument||t,r=Gf(r),(i=Df.get(i))&&Zf(r,i),a=a.createElement(`link`),yt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),qd(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=sp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ap=0;function op(e,t){return e.stylesheets&&e.count===0&&lp(e,e.stylesheets),0ap?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function sp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var cp=null;function lp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,cp=new Map,t.forEach(up,e),cp=null,sp.call(e))}function up(e,t){if(!(t.state.loading&4)){var n=cp.get(e);if(n)var r=n.get(null);else{n=new Map,cp.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=oa()})),ca=o((e=>{var t=je().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;e.c=function(e){return t.H.useMemoCache(e)}})),la=o(((e,t)=>{t.exports=ca()})),ua=c(sa(),1),da=la(),fa=(0,P.createContext)(void 0);function pa(e,t){try{let t=localStorage.getItem(e);if(t===`light`||t===`dark`||t===`system`)return t}catch{}return t}function ma(e){let t=(0,da.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=()=>pa(o,a),t[0]=a,t[1]=o,t[2]=s):s=t[2];let[c,l]=(0,P.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,P.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,F.jsx)(fa.Provider,{value:m,children:n}),t[11]=n,t[12]=m,t[13]=h):h=t[13],h}function ha(){let e=(0,P.useContext)(fa);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}function ga(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var _a={};function va(e,t,n,r,i){if(!n&&!r&&!i&&!e)return ba(t);let a=ba(e);return t&&(a=xa(a,t)),n&&(a=xa(a,n)),r&&(a=xa(a,r)),i&&(a=xa(a,i)),a}function ya(e){if(e.length===0)return _a;if(e.length===1)return ba(e[0]);let t=ba(e[0]);for(let n=1;n=65&&i<=90&&(typeof t==`function`||t===void 0)}function Ta(e){return typeof e==`function`}function Ea(e,t){return Ta(e)?e(t):e??_a}function Da(e,t){return t?e?(...n)=>{let r=n[0];if(ja(r)){let i=r;ka(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:Oa(t):e}function Oa(e){return e&&((...t)=>{let n=t[0];return ja(n)&&ka(n),e(...t)})}function ka(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Aa(e,t){return t?e?t+` `+e:t:e}function ja(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Ma(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Na=Ma(`https://base-ui.com/production-error`,`Base UI`),Pa={};function Fa(e,t){let n=P.useRef(Pa);return n.current===Pa&&(n.current=e(t)),n}function Ia(e,t,n,r){let i=Fa(Ra).current;return za(i,e,t,n,r)&&Va(i,[e,t,n,r]),i.callback}function La(e){let t=Fa(Ra).current;return Ba(t,e)&&Va(t,e),t.callback}function Ra(){return{callback:null,cleanup:null,refs:[]}}function za(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Ba(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function Va(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e{for(let e=0;e=e}function Wa(e){if(!P.isValidElement(e))return null;let t=e,n=t.props;return(Ua(19)?n?.ref:t.ref)??null}function Ga(){}var Ka=Object.freeze([]),qa=Object.freeze({});function Ja(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function Ya(e,t){return typeof e==`function`?e(t):e}function Xa(e,t){return typeof e==`function`?e(t):e}function Za(e,t,n={}){let r=t.render,i=Qa(t,n);return n.enabled===!1?null:to(e,r,i,n.state??qa)}function Qa(e,t={}){let{className:n,style:r,render:i}=e,{state:a=qa,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?Ya(n,a):void 0,d=l?Xa(r,a):void 0,f=l?Ja(a,c):qa,p=l&&s?$a(s):void 0,m=l?ga(f,p)??{}:qa;return typeof document<`u`&&(l?Array.isArray(o)?m.ref=La([m.ref,Wa(i),...o]):m.ref=Ia(m.ref,Wa(i),o):Ia(null,null)),l?(u!==void 0&&(m.className=Aa(m.className,u)),d!==void 0&&(m.style=ga(m.style,d)),m):qa}function $a(e){return Array.isArray(e)?ya(e):va(void 0,e)}var eo=Symbol.for(`react.lazy`);function to(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=va(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===eo&&(i=P.Children.toArray(t)[0]),P.cloneElement(i,e)}if(e&&typeof e==`string`)return no(e,n);throw Error(Na(8))}function no(e,t){return e===`button`?(0,P.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,P.createElement)(`img`,{alt:``,...t,key:t.key}):P.createElement(e,t)}function ro(e){return Za(e.defaultTagName??`div`,e,e)}function io(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e==`boolean`?`${e}`:e===0?`0`:e,so=ao,co=(e,t)=>n=>{if(t?.variants==null)return so(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=oo(t)||oo(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return so(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},lo=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),uo=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),fo=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),po=e=>{let t=fo(e);return t.charAt(0).toUpperCase()+t.slice(1)},mo={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`},ho=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},go=(0,P.createContext)({}),_o=()=>(0,P.useContext)(go),vo=(0,P.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=``}=_o()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,P.createElement)(`svg`,{ref:c,...mo,width:t??l??mo.width,height:t??l??mo.height,stroke:e??f,strokeWidth:m,className:lo(`lucide`,p,i),...!a&&!ho(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,P.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),yo=(e,t)=>{let n=(0,P.forwardRef)(({className:n,...r},i)=>(0,P.createElement)(vo,{ref:i,iconNode:t,className:lo(`lucide-${uo(po(e))}`,`lucide-${e}`,n),...r}));return n.displayName=po(e),n},bo=yo(`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`}]]),xo=yo(`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`}]]),So=yo(`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`}]]),Co=yo(`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`}]]),wo=yo(`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`}]]),To=yo(`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`}]]),Eo=yo(`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`}]]),Do=yo(`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`}]]),Oo=yo(`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`}]]),ko=yo(`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`}]]),Ao=yo(`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`}]]),jo=yo(`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`}]]),Mo=yo(`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`}]]),No=yo(`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`}]]),Po=yo(`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`}]]),Fo=yo(`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`}]]),Io=yo(`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`}]]),Lo=yo(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Ro=yo(`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`}]]),zo=yo(`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`}]]),Bo=yo(`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`}]]),Vo=yo(`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`}]]),Ho=yo(`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`}]]),Uo=yo(`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`}]]),Wo=yo(`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`}]]),Go=yo(`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`}]]),Ko=yo(`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`}]]),qo=yo(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function Jo(){return typeof window<`u`}function Yo(e){return Qo(e)?(e.nodeName||``).toLowerCase():`#document`}function Xo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zo(e){return((Qo(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Qo(e){return Jo()?e instanceof Node||e instanceof Xo(e).Node:!1}function $o(e){return Jo()?e instanceof Element||e instanceof Xo(e).Element:!1}function es(e){return Jo()?e instanceof HTMLElement||e instanceof Xo(e).HTMLElement:!1}function ts(e){return!Jo()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Xo(e).ShadowRoot}function ns(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ps(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function rs(e){return/^(table|td|th)$/.test(Yo(e))}function is(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var as=/transform|translate|scale|rotate|perspective|filter/,os=/paint|layout|strict|content/,ss=e=>!!e&&e!==`none`,cs;function ls(e){let t=$o(e)?ps(e):e;return ss(t.transform)||ss(t.translate)||ss(t.scale)||ss(t.rotate)||ss(t.perspective)||!ds()&&(ss(t.backdropFilter)||ss(t.filter))||as.test(t.willChange||``)||os.test(t.contain||``)}function us(e){let t=hs(e);for(;es(t)&&!fs(t);){if(ls(t))return t;if(is(t))return null;t=hs(t)}return null}function ds(){return cs??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),cs}function fs(e){return/^(html|body|#document)$/.test(Yo(e))}function ps(e){return Xo(e).getComputedStyle(e)}function ms(e){return $o(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function hs(e){if(Yo(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ts(e)&&e.host||Zo(e);return ts(t)?t.host:t}function gs(e){let t=hs(e);return fs(t)?e.ownerDocument?e.ownerDocument.body:e.body:es(t)&&ns(t)?t:gs(t)}function _s(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=gs(e),i=r===e.ownerDocument?.body,a=Xo(r);if(i){let e=vs(a);return t.concat(a,a.visualViewport||[],ns(r)?r:[],e&&n?_s(e):[])}else return t.concat(r,_s(r,[],n))}function vs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var ys=P[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],bs=ys&&ys!==P.useLayoutEffect?ys:e=>e();function xs(e){let t=Fa(Ss).current;return t.next=e,bs(t.effect),t.trampoline}function Ss(){let e={next:void 0,callback:Cs,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Cs(){}var ws={...P},Ts=typeof document<`u`?P.useLayoutEffect:()=>{},Es=P.createContext(void 0);function Ds(e=!1){let t=P.useContext(Es);if(t===void 0&&!e)throw Error(Na(16));return t}function Os(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:P.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function ks(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=P.useRef(null),s=Ds(!0),c=a??s!==void 0,{props:l}=Os({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=P.useCallback(()=>{let e=o.current;As(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return Ts(u,[u]),{getButtonProps:P.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return va({type:i?`button`:void 0,onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(ka(e),o?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,a=e.currentTarget,s=As(a),l=!i&&js(a),u=r&&(i?s:!l),d=e.key===`Enter`,f=e.key===` `,p=a.getAttribute(`role`),m=p?.startsWith(`menuitem`)||p===`option`||p===`gridcell`;if(r&&c&&f){if(e.defaultPrevented&&m)return;e.preventDefault(),l||i&&s?(a.click(),e.preventBaseUIHandler()):u&&(n?.(e),e.preventBaseUIHandler());return}u&&(!i&&(f||d)&&e.preventDefault(),!i&&d&&n?.(e))},onKeyUp(e){if(!t){if(ka(e),a?.(e),e.target===e.currentTarget&&i&&c&&As(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!c&&e.key===` `&&n?.(e)}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?void 0:{role:`button`},l,u)},[t,l,c,i]),buttonRef:xs(e=>{o.current=e,u()})}}function As(e){return es(e)&&e.tagName===`BUTTON`}function js(e){return!!(e?.tagName===`A`&&e?.href)}var Ms=P.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=ks({disabled:i,focusableWhenDisabled:a,native:o});return Za(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),Ns=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),Fs=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Is=`-`,Ls=[],Rs=`arbitrary..`,zs=e=>{let t=Hs(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Vs(e);let n=e.split(Is);return Bs(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Ns(i,t):t:i||Ls}return n[e]||Ls}}},Bs=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Bs(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Is):e.slice(t).join(Is),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Rs+r:void 0})(),Hs=e=>{let{theme:t,classGroups:n}=e;return Us(n,t)},Us=(e,t)=>{let n=Fs();for(let r in e){let i=e[r];Ws(i,n,r,t)}return n},Ws=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){Ks(e,t,n);return}if(typeof e==`function`){qs(e,t,n,r);return}Js(e,t,n,r)},Ks=(e,t,n)=>{let r=e===``?t:Ys(t,e);r.classGroupId=n},qs=(e,t,n,r)=>{if(Xs(e)){Ws(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ps(n,e))},Js=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(Is),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,Zs=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Qs=`!`,$s=`:`,ec=[],tc=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),nc=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return tc(t,l,c,u)};if(t){let e=t+$s,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):tc(ec,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},rc=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},ic=e=>({cache:Zs(e.cacheSize),parseClassName:nc(e),sortModifiers:rc(e),postfixLookupClassGroupIds:ac(e),...zs(e)}),ac=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(oc),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Qs:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e0?` `+l:l)}return l},cc=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=ic(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=sc(e,n);return i(e,a),a};return a=o,(...e)=>a(cc(...e))},dc=[],fc=e=>{let t=t=>t[e]||dc;return t.isThemeGetter=!0,t},pc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,mc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,hc=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,gc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_c=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,yc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xc=e=>hc.test(e),Sc=e=>!!e&&!Number.isNaN(Number(e)),Cc=e=>!!e&&Number.isInteger(Number(e)),wc=e=>e.endsWith(`%`)&&Sc(e.slice(0,-1)),Tc=e=>gc.test(e),Ec=()=>!0,Dc=e=>_c.test(e)&&!vc.test(e),Oc=()=>!1,kc=e=>yc.test(e),Ac=e=>bc.test(e),jc=e=>!z(e)&&!B(e),Mc=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Nc=e=>Jc(e,Qc,Oc),z=e=>pc.test(e),Pc=e=>Jc(e,$c,Dc),Fc=e=>Jc(e,el,Sc),Ic=e=>Jc(e,nl,Ec),Lc=e=>Jc(e,tl,Oc),Rc=e=>Jc(e,Xc,Oc),zc=e=>Jc(e,Zc,Ac),Bc=e=>Jc(e,rl,kc),B=e=>mc.test(e),Vc=e=>Yc(e,$c),Hc=e=>Yc(e,tl),Uc=e=>Yc(e,Xc),Wc=e=>Yc(e,Qc),Gc=e=>Yc(e,Zc),Kc=e=>Yc(e,rl,!0),qc=e=>Yc(e,nl,!0),Jc=(e,t,n)=>{let r=pc.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Yc=(e,t,n=!1)=>{let r=mc.exec(e);return r?r[1]?t(r[1]):n:!1},Xc=e=>e===`position`||e===`percentage`,Zc=e=>e===`image`||e===`url`,Qc=e=>e===`length`||e===`size`||e===`bg-size`,$c=e=>e===`length`,el=e=>e===`number`,tl=e=>e===`family-name`,nl=e=>e===`number`||e===`weight`,rl=e=>e===`shadow`,il=uc(()=>{let e=fc(`color`),t=fc(`font`),n=fc(`text`),r=fc(`font-weight`),i=fc(`tracking`),a=fc(`leading`),o=fc(`breakpoint`),s=fc(`container`),c=fc(`spacing`),l=fc(`radius`),u=fc(`shadow`),d=fc(`inset-shadow`),f=fc(`text-shadow`),p=fc(`drop-shadow`),m=fc(`blur`),h=fc(`perspective`),g=fc(`aspect`),_=fc(`ease`),v=fc(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),B,z],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[B,z,c],T=()=>[xc,`full`,`auto`,...w()],E=()=>[Cc,`none`,`subgrid`,B,z],ee=()=>[`auto`,{span:[`full`,Cc,B,z]},Cc,B,z],D=()=>[Cc,`auto`,B,z],O=()=>[`auto`,`min`,`max`,`fr`,B,z],te=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ne=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],re=()=>[`auto`,...w()],k=()=>[xc,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],A=()=>[xc,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ie=()=>[xc,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[e,B,z],ae=()=>[...b(),Uc,Rc,{position:[B,z]}],oe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,Wc,Nc,{size:[B,z]}],ce=()=>[wc,Vc,Pc],M=()=>[``,`none`,`full`,l,B,z],le=()=>[``,Sc,Vc,Pc],ue=()=>[`solid`,`dashed`,`dotted`,`double`],N=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],de=()=>[Sc,wc,Uc,Rc],fe=()=>[``,`none`,m,B,z],pe=()=>[`none`,Sc,B,z],me=()=>[`none`,Sc,B,z],he=()=>[Sc,B,z],ge=()=>[xc,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Tc],breakpoint:[Tc],color:[Ec],container:[Tc],"drop-shadow":[Tc],ease:[`in`,`out`,`in-out`],font:[jc],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Tc],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Tc],shadow:[Tc],spacing:[`px`,Sc],text:[Tc],"text-shadow":[Tc],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,xc,z,B,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,B,z]}],"container-named":[Mc],columns:[{columns:[Sc,z,B,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Cc,`auto`,B,z]}],basis:[{basis:[xc,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Sc,xc,`auto`,`initial`,`none`,z]}],grow:[{grow:[``,Sc,B,z]}],shrink:[{shrink:[``,Sc,B,z]}],order:[{order:[Cc,`first`,`last`,`none`,B,z]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...te(),`normal`]}],"justify-items":[{"justify-items":[...ne(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ne()]}],"align-content":[{content:[`normal`,...te()]}],"align-items":[{items:[...ne(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ne(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...ne(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ne()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mbs:[{mbs:re()}],mbe:[{mbe:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:k()}],"inline-size":[{inline:[`auto`,...A()]}],"min-inline-size":[{"min-inline":[`auto`,...A()]}],"max-inline-size":[{"max-inline":[`none`,...A()]}],"block-size":[{block:[`auto`,...ie()]}],"min-block-size":[{"min-block":[`auto`,...ie()]}],"max-block-size":[{"max-block":[`none`,...ie()]}],w:[{w:[s,`screen`,...k()]}],"min-w":[{"min-w":[s,`screen`,`none`,...k()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...k()]}],h:[{h:[`screen`,`lh`,...k()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...k()]}],"max-h":[{"max-h":[`screen`,`lh`,...k()]}],"font-size":[{text:[`base`,n,Vc,Pc]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,qc,Ic]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,wc,z]}],"font-family":[{font:[Hc,Lc,t]}],"font-features":[{"font-features":[z]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,B,z]}],"line-clamp":[{"line-clamp":[Sc,`none`,B,Fc]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,B,z]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,B,z]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ue(),`wavy`]}],"text-decoration-thickness":[{decoration:[Sc,`from-font`,`auto`,B,Pc]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[Sc,`auto`,B,z]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[Cc,B,z]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,B,z]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,B,z]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Cc,B,z],radial:[``,B,z],conic:[Cc,B,z]},Gc,zc]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":le()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ue(),`hidden`,`none`]}],"divide-style":[{divide:[...ue(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...ue(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Sc,B,z]}],"outline-w":[{outline:[``,Sc,Vc,Pc]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`none`,u,Kc,Bc]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,Kc,Bc]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:le()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[Sc,Pc]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,Kc,Bc]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[Sc,B,z]}],"mix-blend":[{"mix-blend":[...N(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":N()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Sc]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[B,z]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Sc]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,B,z]}],filter:[{filter:[``,`none`,B,z]}],blur:[{blur:fe()}],brightness:[{brightness:[Sc,B,z]}],contrast:[{contrast:[Sc,B,z]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Kc,Bc]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,Sc,B,z]}],"hue-rotate":[{"hue-rotate":[Sc,B,z]}],invert:[{invert:[``,Sc,B,z]}],saturate:[{saturate:[Sc,B,z]}],sepia:[{sepia:[``,Sc,B,z]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,B,z]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[Sc,B,z]}],"backdrop-contrast":[{"backdrop-contrast":[Sc,B,z]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Sc,B,z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Sc,B,z]}],"backdrop-invert":[{"backdrop-invert":[``,Sc,B,z]}],"backdrop-opacity":[{"backdrop-opacity":[Sc,B,z]}],"backdrop-saturate":[{"backdrop-saturate":[Sc,B,z]}],"backdrop-sepia":[{"backdrop-sepia":[``,Sc,B,z]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,B,z]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Sc,`initial`,B,z]}],ease:[{ease:[`linear`,`initial`,_,B,z]}],delay:[{delay:[Sc,B,z]}],animate:[{animate:[`none`,v,B,z]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,B,z]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":[`scale-3d`],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[B,z,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ge()}],"translate-x":[{"translate-x":ge()}],"translate-y":[{"translate-y":ge()}],"translate-z":[{"translate-z":ge()}],"translate-none":[`translate-none`],zoom:[{zoom:[Cc,B,z]}],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,B,z]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,B,z]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[Sc,Vc,Pc,Fc]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function al(...e){return il(ao(e))}var ol=new Intl.DateTimeFormat(void 0,{year:`numeric`,month:`long`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`});function sl(e){return e?ol.format(new Date(e)):`Unknown`}function cl(e){return`${Math.round(e/1024)} GiB`}var ll=[`B`,`KB`,`MB`,`GB`,`TB`];function ul(e){if(e===0)return`0 B`;let t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**t).toFixed(2)} ${ll[t]}`}function dl(e){return e?.find(e=>e.Key===`Name`)?.Value}var fl=/\/$/;function pl(e){return e.replace(fl,``)}function ml(e){return e&&(e.endsWith(`/`)?e:`${e}/`)}function hl(e,t){return e.startsWith(t)?e:`${t}${e}`}function gl(e,t){return e.startsWith(t)?e.slice(t.length):e}var _l=co(`group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-[2px] focus-visible:ring-ring/30 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:bg-input/30`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,xs:`h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5`,sm:`h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,lg:`h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4`,icon:`size-7 [&_svg:not([class*='size-'])]:size-3.5`,"icon-xs":`size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5`,"icon-sm":`size-6 [&_svg:not([class*='size-'])]:size-3`,"icon-lg":`size-8 [&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`,size:`default`}});function vl(e){let t=(0,da.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,variant:i,size:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`default`:i,s=a===void 0?`default`:a,c;t[5]!==n||t[6]!==s||t[7]!==o?(c=al(_l({variant:o,size:s,className:n})),t[5]=n,t[6]=s,t[7]=o,t[8]=c):c=t[8];let l;return t[9]!==r||t[10]!==c?(l=(0,F.jsx)(Ms,{className:c,"data-slot":`button`,...r}),t[9]=r,t[10]=c,t[11]=l):l=t[11],l}var yl=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}({}),bl={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},xl={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Sl={disabled:!1,...xl},Cl={valid(e){return e===null?null:e?{[yl.valid]:``}:{[yl.invalid]:``}}},wl=P.createContext({invalid:void 0,name:void 0,validityData:{state:bl,errors:[],error:``,value:``,initialValue:null},setValidityData:Ga,disabled:void 0,touched:xl.touched,setTouched:Ga,dirty:xl.dirty,setDirty:Ga,filled:xl.filled,setFilled:Ga,focused:xl.focused,setFocused:Ga,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:Sl,markedDirtyRef:{current:!1},registerFieldControl:Ga,validation:{getValidationProps:(e=qa)=>e,getInputValidationProps:(e=qa)=>e,inputRef:{current:null},commit:async()=>{}}});function Tl(e=!0){let t=P.useContext(wl);if(t.setValidityData===Ga&&!e)throw Error(Na(28));return t}var El=0;function Dl(e,t=`mui`){let[n,r]=P.useState(e),i=e||n;return P.useEffect(()=>{n??(El+=1,r(`${t}-${El}`))},[n,t]),i}var Ol=ws.useId;function kl(e,t){if(Ol!==void 0){let n=Ol();return e??(t?`${t}-${n}`:n)}return Dl(e,t)}function Al(e){return kl(e,`base-ui`)}var jl=P.createContext({controlId:void 0,registerControlId:Ga,labelId:void 0,setLabelId:Ga,messageIds:[],setMessageIds:Ga,getDescriptionProps:e=>e});function Ml(){return P.useContext(jl)}function Nl(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=Ml(),o=Al(t),s=n?i:void 0,c=Fa(()=>Symbol(`labelable-control`)),l=P.useRef(!1),u=P.useRef(t!=null),d=xs(()=>{!l.current||a===Ga||(l.current=!1,a(c.current,void 0))});return Ts(()=>{if(a===Ga)return;let e;if(n){let n=r?.current;e=$o(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]),P.useEffect(()=>d,[d]),i??o}function Pl(e){return e?.ownerDocument||document}var Fl=typeof navigator<`u`,Il=Gl(),Ll=ql(),Rl=Kl(),zl=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),Bl=Il.platform===`MacIntel`&&Il.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Il.platform);Fl&&/firefox/i.test(Rl);var Vl=Fl&&/apple/i.test(navigator.vendor);Fl&&/Edg/i.test(Rl);var Hl=Fl&&/android/i.test(Ll)||/android/i.test(Rl),Ul=Fl&&Ll.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,Wl=Rl.includes(`jsdom/`);function Gl(){if(!Fl)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 Kl(){if(!Fl)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function ql(){if(!Fl)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var Jl=`data-base-ui-focusable`,Yl=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,Xl=`ArrowLeft`,Zl=`ArrowRight`,Ql=`ArrowUp`,$l=`ArrowDown`;function eu(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function tu(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&ts(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function nu(e){return`composedPath`in e?e.composedPath()[0]:e.target}function ru(e,t){if(!$o(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(tu(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function iu(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 au(e){return e.matches(`html,body`)}function ou(e){return es(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function su(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Yl}`)!=null}function cu(e){return e?e.getAttribute(`role`)===`combobox`&&ou(e):!1}function lu(e){if(!e||Wl)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function uu(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function du(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...du(e,t.id,n)])}function fu(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 pu(e){e.preventDefault(),e.stopPropagation()}function mu(e){return`nativeEvent`in e}function hu(e){return e.pointerType===``&&e.isTrusted?!0:Hl&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function gu(e){return Wl?!1:!Hl&&e.width===0&&e.height===0||Hl&&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 _u(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function vu(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var yu=[`top`,`right`,`bottom`,`left`],bu=Math.min,xu=Math.max,Su=Math.round,Cu=Math.floor,wu=e=>({x:e,y:e}),Tu={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Eu(e,t,n){return xu(e,bu(t,n))}function Du(e,t){return typeof e==`function`?e(t):e}function Ou(e){return e.split(`-`)[0]}function ku(e){return e.split(`-`)[1]}function Au(e){return e===`x`?`y`:`x`}function ju(e){return e===`y`?`height`:`width`}function Mu(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Nu(e){return Au(Mu(e))}function Pu(e,t,n){n===void 0&&(n=!1);let r=ku(e),i=Nu(e),a=ju(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Uu(o)),[o,Uu(o)]}function Fu(e){let t=Uu(e);return[Iu(e),t,Iu(t)]}function Iu(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Lu=[`left`,`right`],Ru=[`right`,`left`],zu=[`top`,`bottom`],Bu=[`bottom`,`top`];function Vu(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ru:Lu:t?Lu:Ru;case`left`:case`right`:return t?zu:Bu;default:return[]}}function Hu(e,t,n,r){let i=ku(e),a=Vu(Ou(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Iu)))),a}function Uu(e){let t=Ou(e);return Tu[t]+e.slice(t.length)}function Wu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gu(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Wu(e)}function Ku(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 qu(e,t,n){return Math.floor(e/t)!==n}function Ju(e,t){return t<0||t>=e.length}function Yu(e,t){return Zu(e.current,{disabledIndices:t})}function Xu(e,t){return Zu(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Zu(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&&nd(e,a,r));return a}function Qu(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(!nd(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=Cu(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(!nd(e,r,s))return r}};d&&pu(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=Zu(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=Zu(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}Ju(e,f)&&(f=u)}if(n===`both`){let n=Cu(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&pu(t),u%o===o-1?r&&(f=Zu(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Zu(e,{startingIndex:u,disabledIndices:s}),r&&qu(f,o,n)&&(f=Zu(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),qu(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&pu(t),u%o===0?r&&(f=Zu(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Zu(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&qu(f,o,n)&&(f=Zu(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),qu(f,o,n)&&(f=u));let c=Cu(l/o)===n;Ju(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:Zu(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function $u(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 ed(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 td(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function nd(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?id(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function rd(e){return e.visibility===`hidden`||e.visibility===`collapse`}function id(e,t=e?ps(e):null){return!e||!e.isConnected||!t||rd(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var ad=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function od(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return ts(n)?n.host:null}function sd(e){for(let t of Array.from(e.children))if(Yo(t)===`summary`)return t;return null}function cd(e,t){let n=sd(t);return!!n&&(e===n||tu(n,e))}function ld(e){let t=e?Yo(e):``;return e!=null&&e.matches(ad)&&(t!==`summary`||e.parentElement!=null&&Yo(e.parentElement)===`details`&&sd(e.parentElement)===e)&&(t!==`details`||sd(e)==null)&&(t!==`input`||e.type!==`hidden`)}function ud(e){if(!ld(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=od(t)){let n=t!==e,r=Yo(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Yo(t)===`details`&&!t.open&&!cd(e,t)||t.hasAttribute(`hidden`)||!r&&!dd(t,n))return!1}return!0}function dd(e,t){let n=ps(e);return t?n.display!==`none`:id(e,n)}function fd(e){let t=e.tabIndex;if(t<0){let t=Yo(e);if(t===`details`||t===`audio`||t===`video`||es(e)&&e.isContentEditable)return 0}return t}function pd(e){if(Yo(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function md(e,t){let n=pd(e);if(!n)return!0;let r=t.find(e=>{let t=pd(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=pd(e);return t?.name===n.name&&t.form===n.form})===n}function hd(e){if(es(e)&&Yo(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return es(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function gd(e,t){hd(e).forEach(e=>{ld(e)&&t.push(e),gd(e,t)})}function _d(e,t,n){hd(e).forEach(e=>{es(e)&&e.matches(t)&&n.push(e),_d(e,t,n)})}function vd(e){return ud(e)&&fd(e)>=0}function yd(e){let t=[];return gd(e,t),t.filter(ud)}function bd(e){let t=yd(e);return t.filter(e=>fd(e)>=0&&md(e,t))}function xd(e,t){let n=bd(e),r=n.length;if(r===0)return;let i=eu(Pl(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Sd(e){return xd(Pl(e).body,1)||e}function Cd(e){return xd(Pl(e).body,-1)||e}function wd(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!tu(n,r)}function Td(e){bd(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Ed(e){let t=[];_d(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 Dd=[];function Od(e){P.useEffect(e,Dd)}var kd=0,Ad=class e{static create(){return new e}currentId=kd;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=kd,t()},e)}isStarted(){return this.currentId!==kd}clear=()=>{this.currentId!==kd&&(clearTimeout(this.currentId),this.currentId=kd)};disposeEffect=()=>this.clear};function jd(){let e=Fa(Ad.create).current;return Od(e.disposeEffect),e}var Md=null;globalThis.requestAnimationFrame;var Nd=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)}},Pd=class e{static create(){return new e}static request(e){return Nd.request(e)}static cancel(e){return Nd.cancel(e)}currentId=Md;request(e){this.cancel(),this.currentId=Nd.request(()=>{this.currentId=Md,e()})}cancel=()=>{this.currentId!==Md&&(Nd.cancel(this.currentId),this.currentId=Md)};disposeEffect=()=>this.cancel};function Fd(){let e=Fa(Pd.create).current;return Od(e.disposeEffect),e}function Id(e){return e==null?e:`current`in e?e.current:e}var Ld=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),Rd={[Ld.startingStyle]:``},zd={[Ld.endingStyle]:``},Bd={transitionStatus(e){return e===`starting`?Rd:e===`ending`?zd:null}};function Vd(e,t=!1,n=!0){let r=Fd();return xs((i,a=null)=>{r.cancel();let o=Id(e);if(o==null)return;let s=o,c=()=>{hi.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=Ld.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 Hd(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=xs(i),o=Vd(r,n,!1);P.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function Ud(e,t=!1,n=!1){let[r,i]=P.useState(e&&t?`idle`:void 0),[a,o]=P.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),Ts(()=>{if(!e&&a&&r!==`ending`&&n){let e=Pd.request(()=>{i(`ending`)});return()=>{Pd.cancel(e)}}},[e,a,r,n]),Ts(()=>{if(!e||t)return;let n=Pd.request(()=>{i(void 0)});return()=>{Pd.cancel(n)}},[t,e]),Ts(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=Pd.request(()=>{i(`idle`)});return()=>{Pd.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}function Wd({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=P.useRef(e!==void 0),[a,o]=P.useState(t);return[i?e:a,P.useCallback(e=>{i||o(e)},[])]}function Gd(e,t){let{enabled:n=!0,getValue:r,id:i,value:a}=t,{registerFieldControl:o}=Tl(),s=P.useRef(null);s.current||=Symbol(),Ts(()=>{let t=s.current;if(!(!t||!n))return o(t,{controlRef:e,getValue:r,id:i,value:a}),()=>{o(t,void 0)}},[e,n,r,i,o,a])}var Kd=`none`,qd=`trigger-press`,Jd=`trigger-hover`,Yd=`trigger-focus`,Xd=`outside-press`,Zd=`item-press`,Qd=`close-press`,$d=`focus-out`,ef=`escape-key`,tf=`list-navigation`,nf=`cancel-open`,rf=`disabled`,af=`imperative-action`,of=`window-resize`;function sf(e,t,n,r){let i=!1,a=!1,o=r??qa;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}var cf=P.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}=Tl(),C=h||s,w=m??a,T={...p,disabled:C},{labelId:E}=Ml(),ee=Nl({id:i});Ts(()=>{let e=o!=null;S.inputRef.current?.value||e&&o!==``?b(!0):e&&o===``&&b(!1)},[S.inputRef,b,o]);let D=P.useRef(null);Ts(()=>{u&&D.current===eu(Pl(D.current))&&y(!0)},[u,y]);let[O]=Wd({controlled:o,default:l,name:`FieldControl`,state:`value`}),te=o!==void 0,ne=te?O:void 0,re=xs(()=>S.inputRef.current?.value);return Gd(S.inputRef,{id:ee,value:ne,getValue:re}),Za(`input`,e,{ref:[t,D],state:T,props:[{id:ee,disabled:C,name:w,ref:S.inputRef,"aria-labelledby":E,autoFocus:u,...te?{value:ne}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,sf(Kd,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:Cl})}),lf=P.forwardRef(function(e,t){return(0,F.jsx)(cf,{ref:t,...e})});function uf(e){let t=(0,da.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=al(`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 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,F.jsx)(lf,{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 df=P.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return Za(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});function ff(e){let t=(0,da.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=al(`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,F.jsx)(df,{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 pf=P.createContext(void 0);function mf(e){let t=P.useContext(pf);if(e===!1&&t===void 0)throw Error(Na(27));return t}var hf=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=Ld.startingStyle]=`startingStyle`,e[e.endingStyle=Ld.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),gf=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),_f={[gf.popupOpen]:``},vf={[gf.popupOpen]:``,[gf.pressed]:``},yf={[hf.open]:``},bf={[hf.closed]:``},xf={[hf.anchorHidden]:``},Sf={open(e){return e?_f:null}},Cf={open(e){return e?vf:null}},wf={open(e){return e?yf:bf},anchorHidden(e){return e?xf:null}},Tf={...wf,...Bd},Ef=P.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=mf(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return Za(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:Tf,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Df=P.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,style:o,...s}=e,{store:c}=mf(),l=c.useState(`open`);function u(e){l&&c.setOpen(!1,sf(Qd,e.nativeEvent))}let{getButtonProps:d,buttonRef:f}=ks({disabled:i,native:a});return Za(`button`,e,{state:{disabled:i},ref:[t,f],props:[{onClick:u},s,d]})}),Of=P.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=mf(),c=Al(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),Za(`p`,e,{ref:t,props:[{id:c},o]})});function kf(e,t){return t!=null&&!_u(t)?0:typeof e==`function`?e():e}function Af(e,t,n){let r=kf(e,n);return typeof r==`number`?r:r?.[t]}function jf(e){return typeof e==`function`?e():e}function Mf(e,t){return t||e===`click`||e===`mousedown`}var Nf=P.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Ad,currentIdRef:{current:null},currentContextRef:{current:null}});function Pf(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=P.useRef(n),a=P.useRef(n),o=P.useRef(null),s=P.useRef(null),c=jd();return(0,F.jsx)(Nf.Provider,{value:P.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function Ff(e,t={open:!1}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`floatingId`),{open:i}=t,{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=P.useContext(Nf),[f,p]=P.useState(!1);return Ts(()=>{function e(){p(!1),l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current}if(a.current&&!i&&a.current===r){if(p(!1),s){let t=r;return d.start(s,()=>{n.select(`open`)||a.current&&a.current!==t||e()}),()=>{d.clear()}}e()}},[i,r,a,o,s,c,l,d,n]),Ts(()=>{if(!i)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:n.setOpen,setIsInstantPhase:p},a.current=r,o.current={open:0,close:Af(c.current,`close`)},t!==null&&t!==r?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,sf(Kd))):(p(!1),e?.setIsInstantPhase(!1))},[i,r,n,a,o,s,c,l,d]),Ts(()=>()=>{l.current=null},[l]),P.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function If(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Lf(...e){return()=>{for(let t=0;t{t.current=t.next}};return t}var Bf={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Vf={...Bf,position:`fixed`,top:0,left:0},Hf={...Bf,position:`absolute`},Uf=P.forwardRef(function(e,t){let[n,r]=P.useState();Ts(()=>{Vl&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,F.jsx)(`span`,{...e,ref:t,style:Vf,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function Wf(e){return`data-base-ui-${e}`}var Gf=0;function Kf(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Gf);let a=()=>e?.focus({preventScroll:n});if(i)return a(),Ga;let o=requestAnimationFrame(a);return Gf=o,()=>{Gf===o&&(cancelAnimationFrame(o),Gf=0)}}var qf={inert:new WeakMap,"aria-hidden":new WeakMap},Jf=`data-base-ui-inert`,Yf={inert:new WeakSet,"aria-hidden":new WeakSet},Xf=new WeakMap,Zf=0;function Qf(e){return Yf[e]}function $f(e){return e?ts(e)?e.host:$f(e.parentNode):null}var ep=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=$f(t);return e.contains(n)?n:null}).filter(e=>e!=null),tp=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},np=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{Yo(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function rp(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=ep(t,e),u=i?ep(t,a):[],d=new Set(u),f=i?np(t,tp(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=qf[o],n=Qf(o);c=n,s=e;let r=ep(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);np(t,tp(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=(Xf.get(e)||0)+1;Xf.set(e,t),m.push(e),t===1&&e.setAttribute(Jf,``)}),Zf+=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=(Xf.get(e)||0)-1;Xf.set(e,t),t||e.removeAttribute(Jf)}),--Zf,Zf||(qf.inert=new WeakMap,qf[`aria-hidden`]=new WeakMap,Yf.inert=new WeakSet,Yf[`aria-hidden`]=new WeakSet,Xf=new WeakMap)}}function ip(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=Pl(e[0]).body;return rp(e,o,n,r,{mark:i,markerIgnoreElements:a})}var ap={style:{transition:`none`}},op={fallbackAxisSide:`none`},sp={fallbackAxisSide:`end`},cp={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},lp=P.createContext(null),up=()=>P.useContext(lp),dp=Wf(`portal`);function fp(e={}){let{ref:t,container:n,componentProps:r=qa,elementProps:i}=e,a=kl(),o=up()?.portalNode,[s,c]=P.useState(null),[l,u]=P.useState(null),d=xs(e=>{e!==null&&u(e)}),f=P.useRef(null);Ts(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(Qo(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=Za(`div`,r,{ref:[t,d],props:[{id:a,[dp]:``},i]});return{portalNode:l,portalSubtree:s&&p?hi.createPortal(p,s):null}}var pp=P.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,renderGuards:o,style:s,...c}=e,{portalNode:l,portalSubtree:u}=fp({container:r,ref:t,componentProps:e,elementProps:c}),d=P.useRef(null),f=P.useRef(null),p=P.useRef(null),m=P.useRef(null),[h,g]=P.useState(null),_=P.useRef(!1),v=h?.modal,y=h?.open,b=typeof o==`boolean`?o:!!h&&!h.modal&&h.open&&!!l;P.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&wd(e)&&(e.type===`focusin`?_.current&&=(Ed(l),!1):(Td(l),_.current=!0))}return Lf(If(l,`focusin`,e,!0),If(l,`focusout`,e,!0))},[l,v]),P.useEffect(()=>{!l||y!==!1||(Ed(l),_.current=!1)},[y,l]);let x=P.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,F.jsxs)(P.Fragment,{children:[u,(0,F.jsxs)(lp.Provider,{value:x,children:[b&&l&&(0,F.jsx)(Uf,{"data-type":`outside`,ref:d,onFocus:e=>{wd(e,l)?p.current?.focus():Cd(h?h.domReference:null)?.focus()}}),b&&l&&(0,F.jsx)(`span`,{"aria-owns":l.id,style:cp}),l&&hi.createPortal(n,l),b&&l&&(0,F.jsx)(Uf,{"data-type":`outside`,ref:f,onFocus:e=>{wd(e,l)?m.current?.focus():(Sd(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,sf(`focus-out`,e.nativeEvent)))}})]})]})});function mp(){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 hp=P.createContext(null),gp=P.createContext(null),_p=()=>P.useContext(hp)?.id||null,vp=e=>{let t=P.useContext(gp);return e??t};function yp(e,t){let n=Xo(nu(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 bp=20,xp=[];function Sp(){xp=xp.filter(e=>e.deref()?.isConnected)}function Cp(e){Sp(),e&&Yo(e)!==`body`&&(xp.push(new WeakRef(e)),xp.length>bp&&(xp=xp.slice(-bp)))}function wp(){return Sp(),xp[xp.length-1]?.deref()}function Tp(e){return e?vd(e)?e:bd(e)[0]||e:null}function Ep(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=yd(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return vd(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 Dp(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=xs(()=>b.current.floatingContext?.nodeId),S=i===!1,C=cu(_)&&S,w=P.useRef([`content`]),T=Rf(i),E=Rf(a),ee=Rf(l),D=vp(p),O=up(),te=P.useRef(!1),ne=P.useRef(!1),re=P.useRef(!1),k=P.useRef(null),A=P.useRef(``),ie=P.useRef(``),j=P.useRef(null),ae=P.useRef(null),oe=Ia(j,f,O?.beforeInsideRef),se=Ia(ae,O?.afterInsideRef),ce=jd(),M=jd(),le=Fd(),ue=O!=null,N=uu(v),de=xs((e=N)=>e?bd(e):[]),fe=xs(()=>m?.().filter(e=>e!=null)??[]);P.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&tu(N,eu(Pl(N)))&&de().length===0&&!C&&pu(e)}return If(Pl(N),`keydown`,e)},[r,_,N,s,w,C,de]),P.useEffect(()=>{if(r||!g)return;let e=Pl(N);function t(){re.current=!1}function n(e){let t=nu(e),n=fe();re.current=!(tu(v,t)||tu(_,t)||tu(O?.portalNode,t)||n.some(e=>e===t||tu(e,t))),ie.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(ne.current=!0)}function i(){ie.current=`keyboard`}return Lf(If(e,`pointerdown`,n,!0),If(e,`pointerup`,t,!0),If(e,`pointercancel`,t,!0),If(e,`keydown`,i,!0))},[r,v,_,N,g,O,fe]),P.useEffect(()=>{if(r||!c)return;let e=Pl(N);function t(){ne.current=!0,M.start(0,()=>{ne.current=!1})}function n(e){let t=nu(e);vd(t)&&(k.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=nu(t);queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=fe(),f=n?.hasAttribute(Wf(`focus-guard`))&&[j.current,ae.current,O?.beforeInsideRef.current,O?.afterInsideRef.current,O?.beforeOutsideRef.current,O?.afterOutsideRef.current,Id(d),Id(u)].includes(n),p=!(tu(_,n)||tu(v,n)||tu(n,v)||tu(O?.portalNode,n)||l.some(e=>e===n||tu(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>tu(e,n))||f||D&&(du(D.nodesRef.current,a).find(e=>tu(e.context?.elements.floating,n)||tu(e.context?.elements.domReference,n))||fu(D.nodesRef.current,a).find(e=>[e.context?.elements.floating,uu(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&N&&Ep(N,w),o&&r!==_&&!id(i)&&eu(e)===e.body){if(es(N)&&(N.focus(),o===`popup`)){le.request(()=>{N.focus()});return}let e=de(),t=k.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||N;es(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(C||!s)&&n&&p&&!ne.current&&(C||n!==wp())&&(te.current=!0,h.setOpen(!1,sf($d,t)))})}function a(){re.current||(b.current.insideReactTree=!0,ce.start(0,()=>{b.current.insideReactTree=!1}))}let l=es(_)?_:null;if(!(!v&&!l))return Lf(l&&If(l,`focusout`,i),l&&If(l,`pointerdown`,t),v&&If(v,`focusin`,n),v&&If(v,`focusout`,i),v&&O&&If(v,`focusout`,a,!0))},[r,_,v,N,s,D,O,h,c,o,de,C,x,w,b,ce,M,le,u,d,fe]),P.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(O?.portalNode?.querySelectorAll(`[${Wf(`portal`)}]`)||[]),t=(D?fu(D.nodesRef.current,x()):[]).find(e=>cu(e.context?.elements.domReference||null))?.context?.elements.domReference,n=ip([v,...e,j.current,ae.current,O?.beforeOutsideRef.current,O?.afterOutsideRef.current,...fe(),t,Id(d),Id(u),C?_:null].filter(e=>e!=null),{ariaHidden:s||C,mark:!1}),i=ip([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,w,O,C,D,x,u,d,fe]),Ts(()=>{if(!g||r||!es(N))return;let e=eu(Pl(N));queueMicrotask(()=>{let t=T.current,n=typeof t==`function`?t(ee.current||``):t;if(n===void 0||n===!1||tu(N,e))return;let r=null,i=()=>(r??=de(N),r[0]||N),a;a=n===!0||n===null?i():Id(n),a||=i(),Kf(a,{preventScroll:a===N})})},[r,g,N,S,de,T,ee]),Ts(()=>{if(r||!N)return;let e=Pl(N);Cp(eu(e));function t(e){if(e.open||(A.current=yp(e.nativeEvent,ie.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(te.current=!0),e.reason===`outside-press`)if(e.nested)te.current=!1;else if(hu(e.nativeEvent)||gu(e.nativeEvent))te.current=!1;else{let e=!1;Pl(N).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?te.current=!1:te.current=!0}}y.on(`openchange`,t);function n(){let e=E.current,t=typeof e==`function`?e(A.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`){let e=_||wp();return e&&e.isConnected?e:null}let n=_||wp();return Id(t)||n||null}return()=>{y.off(`openchange`,t);let r=eu(e),i=fe(),a=tu(v,r)||i.some(e=>e===r||tu(e,r))||D&&du(D.nodesRef.current,x(),!1).some(e=>tu(e.context?.elements.floating,r)),o=E.current,s=n();queueMicrotask(()=>{let t=Tp(s),n=typeof o!=`boolean`;o&&!te.current&&es(t)&&(!(!n&&t!==r&&r!==e.body)||a)&&t.focus({preventScroll:!0}),te.current=!1})}},[r,v,N,E,b,y,D,_,x,fe]),Ts(()=>{if(!zl||g||!v)return;let e=eu(Pl(v));!es(e)||!ou(e)||tu(v,e)&&e.blur()},[g,v]),Ts(()=>{if(!(r||!O))return O.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{O.setFocusManagerState(null)}},[r,O,s,g,h,c,_]),Ts(()=>{if(!(r||!N))return Ep(N,w),()=>{queueMicrotask(Sp)}},[r,N,w]);let pe=!r&&(s?!C:!0)&&(ue||s);return(0,F.jsxs)(P.Fragment,{children:[pe&&(0,F.jsx)(Uf,{"data-type":`inside`,ref:oe,onFocus:e=>{if(s){let e=de();Kf(e[e.length-1])}else O?.portalNode&&(te.current=!1,wd(e,O.portalNode)?Sd(_)?.focus():Id(d??O.beforeOutsideRef)?.focus())}}),n,pe&&(0,F.jsx)(Uf,{"data-type":`inside`,ref:se,onFocus:e=>{s?Kf(de()[0]):O?.portalNode&&(c&&(te.current=!0),wd(e,O.portalNode)?Cd(_)?.focus():Id(u??O.afterOutsideRef)?.focus())}})]})}function Op(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 kp(e){return e!=null&&e.clientX!=null}function Ap(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),o=n.context.dataRef,{enabled:s=!0,axis:c=`both`}=t,l=P.useRef(!1),u=P.useRef(null),[d,f]=P.useState(),[p,m]=P.useState([]),h=xs((e,t,r)=>{l.current||o.current.openEvent&&!kp(o.current.openEvent)||n.set(`positionReference`,Op(r??a,{x:e,y:t,axis:c,dataRef:o,pointerType:d}))}),g=xs(e=>{r?u.current||m([]):h(e.clientX,e.clientY,e.currentTarget)}),_=_u(d)?i:r,v=P.useCallback(()=>{if(!_||!s)return;let e=Xo(i);function t(e){tu(i,nu(e))?(u.current?.(),u.current=null):h(e.clientX,e.clientY)}if(!o.current.openEvent||kp(o.current.openEvent))return u.current=If(e,`mousemove`,t),()=>{u.current?.(),u.current=null};n.set(`positionReference`,a)},[_,s,i,o,a,n,h]);P.useEffect(()=>v(),[v,p]),P.useEffect(()=>{s&&!i&&(l.current=!1)},[s,i]),P.useEffect(()=>{!s&&r&&(l.current=!0)},[s,r]);let y=P.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:g,onMouseEnter:g}},[g]);return P.useMemo(()=>s?{reference:y,trigger:y}:{},[s,y])}var jp={intentional:`onClick`,sloppy:`onPointerDown`};function Mp(){return!1}function Np(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Pp(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),{dataRef:a}=n.context,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`sloppy`,referencePress:u=Mp,referencePressEvent:d=`sloppy`,bubbles:f,externalTree:p}=t,m=vp(p),h=xs(typeof c==`function`?c:()=>!1),g=typeof c==`function`?h:c,_=g!==!1,v=xs(()=>l),y=P.useRef(!1),b=P.useRef(!1),x=P.useRef(!1),{escapeKey:S,outsidePress:C}=Np(f),w=P.useRef(null),T=jd(),E=jd(),ee=xs(()=>{E.clear(),a.current.insideReactTree=!1}),D=P.useRef(!1),O=P.useRef(``),te=xs(u),ne=xs(e=>{if(!r||!o||!s||e.key!==`Escape`||D.current)return;let t=a.current.floatingContext?.nodeId,i=m?du(m.nodesRef.current,t):[];if(!S&&i.length>0){let e=!0;if(i.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let c=sf(ef,mu(e)?e.nativeEvent:e);n.setOpen(!1,c),!S&&!c.isPropagationAllowed&&e.stopPropagation()}),re=xs(()=>{a.current.insideReactTree=!0,E.start(0,ee)});P.useEffect(()=>{if(!r||!o)return;a.current.__escapeKeyBubbles=S,a.current.__outsidePressBubbles=C;let e=new Ad,t=new Ad;function c(){e.clear(),D.current=!0}function l(){e.start(ds()?5:0,()=>{D.current=!1})}function u(){x.current=!0,t.start(0,()=>{x.current=!1})}function d(){y.current=!1,b.current=!1}function f(){let e=O.current,t=e===`pen`||!e?`mouse`:e,n=v(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function p(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function h(e){let t=a.current.floatingContext?.nodeId,r=m&&du(m.nodesRef.current,t).some(t=>iu(e,t.context?.elements.floating));return iu(e,n.select(`floatingElement`))||iu(e,n.select(`domReferenceElement`))||r}function E(e){if(p(e)){ee();return}if(a.current.insideReactTree){ee();return}let r=nu(e),i=`[${Wf(`inert`)}]`,o=$o(r)?r.getRootNode():null,s=Array.from((ts(o)?o:Pl(n.select(`floatingElement`))).querySelectorAll(i)),c=n.context.triggerElements;if(r&&(c.hasElement(r)||c.hasMatchingElement(e=>tu(e,r))))return;let l=$o(r)?r:null;for(;l&&!fs(l);){let e=hs(l);if(fs(e)||!$o(e))break;l=e}if(s.length&&$o(r)&&!au(r)&&!tu(r,n.select(`floatingElement`))&&s.every(e=>!tu(l,e)))return;if(es(r)&&!(`touches`in e)){let t=fs(r),n=ps(r),i=/auto|scroll/,a=t||i.test(n.overflowX),o=t||i.test(n.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),d=s&&e.offsetY>r.clientHeight;if(u||d)return}if(h(e))return;if(f()===`intentional`&&x.current){t.clear(),x.current=!1;return}if(typeof g==`function`&&!g(e))return;let u=a.current.floatingContext?.nodeId,d=m?du(m.nodesRef.current,u):[];if(d.length>0){let e=!0;if(d.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}n.setOpen(!1,sf(Xd,e)),ee()}function te(e){f()!==`sloppy`||e.pointerType===`touch`||!n.select(`open`)||!o||iu(e,n.select(`floatingElement`))||iu(e,n.select(`domReferenceElement`))||E(e)}function re(e){if(f()!==`sloppy`||!n.select(`open`)||!o||iu(e,n.select(`floatingElement`))||iu(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];t&&(w.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},T.start(1e3,()=>{w.current&&(w.current.dismissOnTouchEnd=!1,w.current.dismissOnMouseDown=!1)}))}function k(e,t){let n=nu(e);if(!n)return;let r=If(n,e.type,()=>{t(e),r()})}function A(e){O.current=`touch`,k(e,re)}function ie(e){T.clear(),e.type===`pointerdown`&&(O.current=e.pointerType),!(e.type===`mousedown`&&w.current&&!w.current.dismissOnMouseDown)&&k(e,e=>{e.type===`pointerdown`?te(e):E(e)})}function j(e){if(!y.current)return;let n=b.current;if(d(),f()===`intentional`){if(e.type===`pointercancel`){n&&u();return}if(!h(e)){if(n){u();return}typeof g==`function`&&!g(e)||(t.clear(),x.current=!0,ee())}}}function ae(e){if(f()!==`sloppy`||!w.current||iu(e,n.select(`floatingElement`))||iu(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-w.current.startX),i=Math.abs(t.clientY-w.current.startY),a=Math.sqrt(r*r+i*i);a>5&&(w.current.dismissOnTouchEnd=!0),a>10&&(E(e),T.clear(),w.current=null)}function oe(e){k(e,ae)}function se(e){f()!==`sloppy`||!w.current||iu(e,n.select(`floatingElement`))||iu(e,n.select(`domReferenceElement`))||(w.current.dismissOnTouchEnd&&E(e),T.clear(),w.current=null)}function ce(e){k(e,se)}let M=Pl(i),le=Lf(s&&Lf(If(M,`keydown`,ne),If(M,`compositionstart`,c),If(M,`compositionend`,l)),_&&Lf(If(M,`click`,ie,!0),If(M,`pointerdown`,ie,!0),If(M,`pointerup`,j,!0),If(M,`pointercancel`,j,!0),If(M,`mousedown`,ie,!0),If(M,`mouseup`,j,!0),If(M,`touchstart`,A,!0),If(M,`touchmove`,oe,!0),If(M,`touchend`,ce,!0)));return()=>{le(),e.clear(),t.clear(),d(),x.current=!1}},[a,i,s,_,g,r,o,S,C,ne,ee,v,m,n,T]),P.useEffect(ee,[g,ee]);let k=P.useMemo(()=>({onKeyDown:ne,[jp[d]]:e=>{te()&&n.setOpen(!1,sf(qd,e.nativeEvent))},...d!==`intentional`&&{onClick(e){te()&&n.setOpen(!1,sf(`trigger-press`,e.nativeEvent))}}}),[ne,n,d,te]),A=xs(e=>{if(!r||!o||e.button!==0)return;let t=nu(e.nativeEvent);tu(n.select(`floatingElement`),t)&&(y.current||(y.current=!0,b.current=!1))}),ie=xs(e=>{!r||!o||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&y.current&&(b.current=!0)}),j=P.useMemo(()=>({onKeyDown:ne,onPointerDown:ie,onMouseDown:ie,onClickCapture:re,onMouseDownCapture(e){re(),A(e)},onPointerDownCapture(e){re(),A(e)},onMouseUpCapture:re,onTouchEndCapture:re,onTouchMoveCapture:re}),[ne,re,A,ie]);return P.useMemo(()=>o?{reference:k,floating:j,trigger:k}:{},[o,k,j])}function Fp(e,t,n){let{reference:r,floating:i}=e,a=Mu(t),o=Nu(t),s=ju(o),c=Ou(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(ku(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 Ip(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}=Du(t,e),p=Gu(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ku(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=Ku(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 Lp=50,Rp=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Ip},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Fp(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`&&_!==Mu(t))||T.every(e=>Mu(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=Mu(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 Bp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vp(e){return yu.some(t=>e[t]>=0)}var Hp=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Du(e,t);switch(i){case`referenceHidden`:{let e=Bp(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Vp(e)}}}case`escaped`:{let e=Bp(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Vp(e)}}}default:return{}}}}},Up=new Set([`left`,`top`]);async function Wp(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ou(n),s=ku(n),c=Mu(n)===`y`,l=Up.has(o)?-1:1,u=a&&c?-1:1,d=Du(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 Gp=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 Wp(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}}}}},Kp=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}=Du(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Mu(Ou(i)),p=Au(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=Eu(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=Eu(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}}}}}},qp=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}=Du(e,t),u={x:n,y:r},d=Mu(i),f=Au(d),p=u[f],m=u[d],h=Du(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=Up.has(Ou(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}}}},Jp=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}=Du(e,t),u=await o.detectOverflow(t,l),d=Ou(i),f=ku(i),p=Mu(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=bu(h-u[g],v),x=bu(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=xu(u.left,0),t=xu(u.right,0),n=xu(u.top,0),r=xu(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:xu(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:xu(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 Yp(e){let t=ps(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=es(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Su(n)!==a||Su(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Xp(e){return $o(e)?e:e.contextElement}function Zp(e){let t=Xp(e);if(!es(t))return wu(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Yp(t),o=(a?Su(n.width):n.width)/r,s=(a?Su(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Qp=wu(0);function $p(e){let t=Xo(e);return!ds()||!t.visualViewport?Qp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function eee(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xo(e)?!1:t}function em(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Xp(e),o=wu(1);t&&(r?$o(r)&&(o=Zp(r)):o=Zp(e));let s=eee(a,n,r)?$p(a):wu(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=Xo(a),t=r&&$o(r)?Xo(r):r,n=e,i=vs(n);for(;i&&r&&t!==n;){let e=Zp(i),t=i.getBoundingClientRect(),r=ps(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=Xo(i),i=vs(n)}}return Ku({width:u,height:d,x:c,y:l})}function tm(e,t){let n=ms(e).scrollLeft;return t?t.left+n:em(Zo(e)).left+n}function nm(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-tm(e,n),y:n.top+t.scrollTop}}function tee(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Zo(r),s=t?is(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=wu(1),u=wu(0),d=es(r);if((d||!d&&!a)&&((Yo(r)!==`body`||ns(o))&&(c=ms(r)),d)){let e=em(r);l=Zp(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?nm(o,c):wu(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 nee(e){return Array.from(e.getClientRects())}function ree(e){let t=Zo(e),n=ms(e),r=e.ownerDocument.body,i=xu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=xu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+tm(e),s=-n.scrollTop;return ps(r).direction===`rtl`&&(o+=xu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var rm=25;function iee(e,t){let n=Xo(e),r=Zo(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=ds();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=tm(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<=rm&&(a-=o)}else l<=rm&&(a+=l);return{width:a,height:o,x:s,y:c}}function im(e,t){let n=em(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=es(e)?Zp(e):wu(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function am(e,t,n){let r;if(t===`viewport`)r=iee(e,n);else if(t===`document`)r=ree(Zo(e));else if($o(t))r=im(t,n);else{let n=$p(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ku(r)}function om(e,t){let n=hs(e);return n===t||!$o(n)||fs(n)?!1:ps(n).position===`fixed`||om(n,t)}function aee(e,t){let n=t.get(e);if(n)return n;let r=_s(e,[],!1).filter(e=>$o(e)&&Yo(e)!==`body`),i=null,a=ps(e).position===`fixed`,o=a?hs(e):e;for(;$o(o)&&!fs(o);){let t=ps(o),n=ls(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||ns(o)&&!n&&om(e,o))?r=r.filter(e=>e!==o):i=t,o=hs(o)}return t.set(e,r),r}function oee(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?is(t)?[]:aee(t,this._c):[].concat(n),r],o=am(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&&!dm(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 pm(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=Xp(e),u=i||a?[...l?_s(l):[],...t?_s(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?fm(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?em(e):null;c&&g();function g(){let t=em(e);h&&!dm(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 mm=Gp,hm=Kp,gm=zp,_m=Jp,vm=Hp,ym=qp,bm=(e,t,n)=>{let r=new Map,i={platform:um,...n},a={...i.platform,_c:r};return Rp(e,t,{...i,platform:a})},xm=typeof document<`u`?P.useLayoutEffect:function(){};function Sm(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(!Sm(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)&&!Sm(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Cm(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wm(e,t){let n=Cm(e);return Math.round(t*n)/n}function Tm(e){let t=P.useRef(e);return xm(()=>{t.current=e}),t}function dee(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]=P.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=P.useState(r);Sm(f,r)||p(r);let[m,h]=P.useState(null),[g,_]=P.useState(null),v=P.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=P.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=P.useRef(null),C=P.useRef(null),w=P.useRef(u),T=c!=null,E=Tm(c),ee=Tm(i),D=Tm(l),O=P.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};ee.current&&(e.platform=ee.current),bm(S.current,C.current,e).then(e=>{let t={...e,isPositioned:D.current!==!1};te.current&&!Sm(w.current,t)&&(w.current=t,hi.flushSync(()=>{d(t)}))})},[f,t,n,ee,D]);xm(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let te=P.useRef(!1);xm(()=>(te.current=!0,()=>{te.current=!1}),[]),xm(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,O);O()}},[b,x,O,E,T]);let ne=P.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),re=P.useMemo(()=>({reference:b,floating:x}),[b,x]),k=P.useMemo(()=>{let e={position:n,left:0,top:0};if(!re.floating)return e;let t=wm(re.floating,u.x),r=wm(re.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Cm(re.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,re.floating,u.x,u.y]);return P.useMemo(()=>({...u,update:O,refs:ne,elements:re,floatingStyles:k}),[u,O,ne,re,k])}var fee=(e,t)=>{let n=mm(e);return{name:n.name,fn:n.fn,options:[e,t]}},pee=(e,t)=>{let n=hm(e);return{name:n.name,fn:n.fn,options:[e,t]}},mee=(e,t)=>({fn:ym(e).fn,options:[e,t]}),hee=(e,t)=>{let n=gm(e);return{name:n.name,fn:n.fn,options:[e,t]}},gee=(e,t)=>{let n=_m(e);return{name:n.name,fn:n.fn,options:[e,t]}},_ee=(e,t)=>{let n=vm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Em=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(Na(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},Dm=[],Om=void 0;function vee(){return Om}function yee(e){Dm.push(e)}function km(e){let t=(t,n)=>{let r=Fa(xee).current,i;try{Om=r;for(let e of Dm)e.before(r);i=e(t,n);for(let e of Dm)e.after(r);r.didInitialize=!0}finally{Om=void 0}return i};return t.displayName=e.displayName||e.name,t}function bee(e){return P.forwardRef(km(e))}function xee(){return{didInitialize:!1}}var Am=ei(),See=Ua(19)?Mm:Nm;function jm(e,t,n,r,i){return See(e,t,n,r,i)}function Cee(e,t,n,r,i){let a=P.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Am.useSyncExternalStore)(e.subscribe,a,a)}yee({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,Am.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Mm(e,t,n,r,i){let a=vee();if(!a)return Cee(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 Nm(e,t,n,r,i){return(0,ni.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Pm=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 jm(this,e,t,n,r)}},Fm=class extends Pm{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){P.useDebugValue(e),Ts(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;Ts(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;Ts(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){P.useDebugValue(e);let n=t!==void 0;Ts(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return P.useDebugValue(e),jm(this,this.selectors[e],t,n,r)}useContextCallback(e,t){P.useDebugValue(e);let n=xs(t??Ga);this.context[e]=n}useStateSetter(e){let t=P.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)}})}},Im={open:Em(e=>e.open),transitionStatus:Em(e=>e.transitionStatus),domReferenceElement:Em(e=>e.domReferenceElement),referenceElement:Em(e=>e.positionReference??e.referenceElement),floatingElement:Em(e=>e.floatingElement),floatingId:Em(e=>e.floatingId)},Lm=class extends Fm{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:mp(),nested:n,triggerElements:i},Im),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&vu(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 Rm(e,t){let n=P.useRef(null),r=P.useRef(null);return P.useCallback(i=>{if(e!==void 0){if(n.current!==null){let e=n.current,i=r.current,a=t.context.triggerElements.getById(e);i&&a===i&&t.context.triggerElements.delete(e),n.current=null,r.current=null}i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i))}},[t,e])}function zm(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=Rm(e,n),o=xs(t=>{if(a(t),!t||!n.select(`open`))return;let i=n.select(`activeTriggerId`);if(i===e){n.update({activeTriggerElement:t,...r});return}i??n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return Ts(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function Bm(e){let t=e.useState(`open`);Ts(()=>{if(t&&!e.select(`activeTriggerId`)&&e.context.triggerElements.size===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[n,r]=t.value;e.update({activeTriggerId:n,activeTriggerElement:r})}}},[t,e])}function Vm(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=Ud(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=xs(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return Hd({enabled:!t.useState(`preventUnmountingOnClose`),open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}var Hm=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 Um(){return new Lm({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Hm,floatingId:``,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Wm(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Um(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:qa,inactiveTriggerProps:qa,popupProps:qa}}var Gm=Em(e=>e.triggerIdProp??e.activeTriggerId),Km={open:Em(e=>e.openProp??e.open),mounted:Em(e=>e.mounted),transitionStatus:Em(e=>e.transitionStatus),floatingRootContext:Em(e=>e.floatingRootContext),preventUnmountingOnClose:Em(e=>e.preventUnmountingOnClose),payload:Em(e=>e.payload),activeTriggerId:Gm,activeTriggerElement:Em(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:Em((e,t)=>t!==void 0&&Gm(e)===t),isOpenedByTrigger:Em((e,t)=>t!==void 0&&Gm(e)===t&&e.open),isMountedByTrigger:Em((e,t)=>t!==void 0&&Gm(e)===t&&e.mounted),triggerProps:Em((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:Em(e=>e.popupProps),popupElement:Em(e=>e.popupElement),positionerElement:Em(e=>e.positionerElement)};function qm(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=kl(),a=_p()!=null,o=Fa(()=>new Lm({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Hm,floatingId:i,syncOnly:!1,nested:a})).current;return Ts(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=$o(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 Jm(e={}){let{nodeId:t,externalTree:n}=e,r=qm(e),i=e.rootContext||r,a={reference:i.useState(`referenceElement`),floating:i.useState(`floatingElement`),domReference:i.useState(`domReferenceElement`)},[o,s]=P.useState(null),c=P.useRef(null),l=vp(n);Ts(()=>{a.domReference&&(c.current=a.domReference)},[a.domReference]);let u=dee({...e,elements:{...a,...o&&{reference:o}}}),d=P.useCallback(e=>{let t=$o(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),u.refs.setReference(t)},[u.refs]),[f,p]=P.useState(void 0),[m,h]=P.useState(null);i.useSyncedValue(`referenceElement`,f??null);let g=$o(f)?f:null;i.useSyncedValue(`domReferenceElement`,f===void 0?a.domReference:g),i.useSyncedValue(`floatingElement`,m);let _=P.useCallback(e=>{($o(e)||e===null)&&(c.current=e,p(e)),($o(u.refs.reference.current)||u.refs.reference.current===null||e!==null&&!$o(e))&&u.refs.setReference(e)},[u.refs,p]),v=P.useCallback(e=>{h(e),u.refs.setFloating(e)},[u.refs]),y=P.useMemo(()=>({...u.refs,setReference:_,setFloating:v,setPositionReference:d,domReference:c}),[u.refs,_,v,d]),b=P.useMemo(()=>({...u.elements,domReference:a.domReference}),[u.elements,a.domReference]),x=i.useState(`open`),S=i.useState(`floatingId`),C=P.useMemo(()=>({...u,dataRef:i.context.dataRef,open:x,onOpenChange:i.setOpen,events:i.context.events,floatingId:S,refs:y,elements:b,nodeId:t,rootStore:i}),[u,y,b,t,i,x,S]);return Ts(()=>{i.context.dataRef.current.floatingContext=C;let e=l?.nodesRef.current.find(e=>e.id===t);e&&(e.context=C)}),P.useMemo(()=>({...u,context:C,refs:y,elements:b,rootStore:i}),[u,y,b,C,i])}function Ym(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,onOpenChange:r}=e,i=kl(),a=_p()!=null,o=t.useState(`open`),s=t.useState(`activeTriggerElement`),c=t.useState(n?`popupElement`:`positionerElement`),l=t.context.triggerElements,u=Fa(()=>new Lm({open:o,transitionStatus:void 0,referenceElement:s,floatingElement:c,triggerElements:l,onOpenChange:r,floatingId:i,syncOnly:!0,nested:a})).current;return Ts(()=>{let e={open:o,floatingId:i,referenceElement:s,floatingElement:c};$o(s)&&(e.domReferenceElement=s),u.state.positionReference===u.state.referenceElement&&(e.positionReference=s),u.update(e)},[o,i,s,c,u]),u.context.onOpenChange=r,u.context.nested=a,u}var Xm=Ul&&Vl;function wee(e,t={}){let n=`rootStore`in e?e.rootStore:e,{events:r,dataRef:i}=n.context,{enabled:a=!0,delay:o}=t,s=P.useRef(!1),c=P.useRef(null),l=jd(),u=P.useRef(!0);P.useEffect(()=>{let e=n.select(`domReferenceElement`);if(!a)return;let t=Xo(e);function r(){let e=n.select(`domReferenceElement`);!n.select(`open`)&&es(e)&&e===eu(Pl(e))&&(s.current=!0)}function i(){u.current=!0}function o(){u.current=!1}return Lf(If(t,`blur`,r),Xm&&If(t,`keydown`,i,!0),Xm&&If(t,`pointerdown`,o,!0))},[n,a]),P.useEffect(()=>{if(!a)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=n.select(`domReferenceElement`);$o(e)&&(c.current=e,s.current=!0)}}return r.on(`openchange`,e),()=>{r.off(`openchange`,e)}},[r,a,n]);let d=P.useMemo(()=>({onMouseLeave(){s.current=!1,c.current=null},onFocus(e){let t=e.currentTarget;if(s.current){if(c.current===t)return;s.current=!1,c.current=null}let r=nu(e.nativeEvent);if($o(r)){if(Xm&&!e.relatedTarget){if(!u.current&&!ou(r))return}else if(!lu(r))return}let i=ru(e.relatedTarget,n.context.triggerElements),{nativeEvent:a,currentTarget:d}=e,f=typeof o==`function`?o():o;if(n.select(`open`)&&i||f===0||f===void 0){n.setOpen(!0,sf(Yd,a,d));return}l.start(f,()=>{s.current||n.setOpen(!0,sf(Yd,a,d))})},onBlur(e){s.current=!1,c.current=null;let t=e.relatedTarget,r=e.nativeEvent,a=$o(t)&&t.hasAttribute(Wf(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let e=n.select(`domReferenceElement`),o=eu(Pl(e));!t&&o===e||tu(i.current.floatingContext?.refs.floating.current,o)||tu(e,o)||a||ru(t??o,n.context.triggerElements)||n.setOpen(!1,sf(Yd,r))})}}),[i,n,l,o]);return P.useMemo(()=>a?{reference:d,trigger:d}:{},[a,d])}var Tee=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 Ad,this.restTimeout=new Ad,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Zm=new WeakMap;function Qm(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Zm.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Zm.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function $m(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Zm.get(n);a&&a!==e&&Qm(a),Qm(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Zm.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function eh(e){let t=Fa(Tee.create).current,n=e.context.dataRef.current;return n.hoverInteractionState||=t,Od(n.hoverInteractionState.disposeEffect),n.hoverInteractionState}function Eee(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),{dataRef:o}=n.context,{enabled:s=!0,closeDelay:c=0,nodeId:l}=t,u=eh(n),d=vp(),f=_p(),p=xs(()=>Mf(o.current.openEvent?.type,u.interactedInside)),m=xs(()=>{let e=o.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`}),h=xs(e=>ru(e,n.context.triggerElements)),g=P.useCallback(e=>{let t=Af(c,`close`,u.pointerType),r=()=>{n.setOpen(!1,sf(Jd,e)),d?.events.emit(`floating.closed`,e)};t?u.openChangeTimeout.start(t,r):(u.openChangeTimeout.clear(),r())},[c,n,u,d]),_=xs(()=>{Qm(u)}),v=xs(e=>{let t=nu(e);if(!su(t)){u.interactedInside=!1;return}u.interactedInside=t?.closest(`[aria-haspopup]`)!=null});Ts(()=>{r||(u.pointerType=void 0,u.restTimeoutPending=!1,u.interactedInside=!1,_())},[r,u,_]),P.useEffect(()=>_,[_]),Ts(()=>{if(s&&r&&u.handleCloseOptions?.blockPointerEvents&&m()&&$o(a)&&i){let e=a,t=i,n=Pl(i),r=d?.nodesRef.current.find(e=>e.id===f)?.context?.elements.floating;return r&&(r.style.pointerEvents=``),$m(u,{scopeElement:u.handleCloseOptions?.getScope?.()??u.pointerEventsScopeElement??r??e.closest(`[data-rootownerid]`)??n.body,referenceElement:e,floatingElement:t}),()=>{_()}}},[s,r,a,i,u,m,d,f,_]);let y=jd();P.useEffect(()=>{if(!s)return;function e(){u.openChangeTimeout.clear(),y.clear(),d?.events.off(`floating.closed`,r),_()}function t(e){if(d&&f&&du(d.nodesRef.current,f).length>0){d.events.on(`floating.closed`,r);return}if(h(e.relatedTarget))return;let t=o.current.floatingContext?.nodeId??l,n=e.relatedTarget;if(!(d&&t&&$o(n)&&du(d.nodesRef.current,t,!1).some(e=>tu(e.context?.elements.floating,n)))){if(u.handler){u.handler(e);return}_(),p()||g(e)}}function r(e){!d||!f||du(d.nodesRef.current,f).length>0||y.start(0,()=>{d.events.off(`floating.closed`,r),n.setOpen(!1,sf(Jd,e)),d.events.emit(`floating.closed`,e)})}let a=i;return Lf(a&&If(a,`mouseenter`,e),a&&If(a,`mouseleave`,t),a&&If(a,`pointerdown`,v,!0),()=>{d?.events.off(`floating.closed`,r)})},[s,i,n,o,l,p,h,g,_,v,u,d,f,y])}var Dee={current:null};function Oee(e,t={}){let n=`rootStore`in e?e.rootStore:e,{dataRef:r,events:i}=n.context,{enabled:a=!0,delay:o=0,handleClose:s=null,mouseOnly:c=!1,restMs:l=0,move:u=!0,triggerElementRef:d=Dee,externalTree:f,isActiveTrigger:p=!0,getHandleCloseContext:m,isClosing:h}=t,g=vp(f),_=eh(n),v=P.useRef(!1),y=Rf(s),b=Rf(o),x=Rf(l),S=Rf(a),C=Rf(h);p&&(_.handleCloseOptions=y.current?.__options);let w=xs(()=>Mf(r.current.openEvent?.type,_.interactedInside)),T=xs(e=>ru(e,n.context.triggerElements)),E=xs((e,t,r)=>{let i=n.context.triggerElements;if(i.hasElement(t))return!e||!tu(e,t);if(!$o(r))return!1;let a=r;return i.hasMatchingElement(e=>tu(e,a))&&(!e||!tu(e,a))}),ee=xs((e,t=!0)=>{let r=Af(b.current,`close`,_.pointerType);r?_.openChangeTimeout.start(r,()=>{n.setOpen(!1,sf(Jd,e)),g?.events.emit(`floating.closed`,e)}):t&&(_.openChangeTimeout.clear(),n.setOpen(!1,sf(Jd,e)),g?.events.emit(`floating.closed`,e))}),D=xs(()=>{_.handler&&=(Pl(n.select(`domReferenceElement`)).removeEventListener(`mousemove`,_.handler),void 0)}),O=xs(()=>{Qm(_)});return P.useEffect(()=>D,[D]),P.useEffect(()=>{if(!a)return;function e(e){e.open?v.current=!1:(v.current=e.reason===Jd,D(),_.openChangeTimeout.clear(),_.restTimeout.clear(),_.blockMouseMove=!0,_.restTimeoutPending=!1)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[a,i,_,D]),P.useEffect(()=>{if(!a)return;let e=d.current??(p?n.select(`domReferenceElement`):null);if(!$o(e))return;function t(e){if(_.openChangeTimeout.clear(),_.blockMouseMove=!1,c&&!_u(_.pointerType))return;let t=jf(x.current),r=Af(b.current,`open`,_.pointerType),i=nu(e),a=e.currentTarget??null,o=n.select(`domReferenceElement`),s=a;if($o(i)&&!n.context.triggerElements.hasElement(i)){for(let e of n.context.triggerElements.elements())if(tu(e,i)){s=e;break}}$o(a)&&$o(o)&&!n.context.triggerElements.hasElement(a)&&tu(a,o)&&(s=o);let l=s==null?!1:E(o,s,i),u=n.select(`open`),d=C.current?.()??n.select(`transitionStatus`)===`ending`,f=!u&&d&&v.current,p=!l&&$o(s)&&$o(o)&&tu(o,s)&&f,m=t>0&&!r,h=l&&(u||f)||p,g=!u||l;if(h){n.setOpen(!0,sf(Jd,e,s));return}m||(r?_.openChangeTimeout.start(r,()=>{g&&n.setOpen(!0,sf(Jd,e,s))}):g&&n.setOpen(!0,sf(Jd,e,s)))}function i(e){if(w()){O();return}D();let t=Pl(n.select(`domReferenceElement`));_.restTimeout.clear(),_.restTimeoutPending=!1;let i=r.current.floatingContext??m?.();if(!T(e.relatedTarget)){if(y.current&&i){n.select(`open`)||_.openChangeTimeout.clear();let r=d.current;_.handler=y.current({...i,tree:g,x:e.clientX,y:e.clientY,onClose(){O(),D(),S.current&&!w()&&r===n.select(`domReferenceElement`)&&ee(e,!0)}}),t.addEventListener(`mousemove`,_.handler),_.handler(e);return}(_.pointerType!==`touch`||!tu(n.select(`floatingElement`),e.relatedTarget))&&ee(e)}}return u?Lf(If(e,`mousemove`,t,{once:!0}),If(e,`mouseenter`,t),If(e,`mouseleave`,i)):Lf(If(e,`mouseenter`,t),If(e,`mouseleave`,i))},[D,O,r,b,ee,n,a,y,_,p,E,w,T,c,u,x,d,g,S,m,C]),P.useMemo(()=>{if(!a)return;function e(e){_.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,r=e.currentTarget,i=n.select(`domReferenceElement`),a=n.select(`open`),o=E(i,r,e.target);if(c&&!_u(_.pointerType))return;if(a&&o&&_.handleCloseOptions?.blockPointerEvents){let e=n.select(`floatingElement`);e&&$m(_,{scopeElement:_.handleCloseOptions?.getScope?.()??r.ownerDocument.body,referenceElement:r,floatingElement:e})}let s=jf(x.current);if(a&&!o||s===0||!o&&_.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;_.restTimeout.clear();function l(){if(_.restTimeoutPending=!1,w())return;let e=n.select(`open`);!_.blockMouseMove&&(!e||o)&&n.setOpen(!0,sf(Jd,t,r))}_.pointerType===`touch`?hi.flushSync(()=>{l()}):o&&a?l():(_.restTimeoutPending=!0,_.restTimeout.start(s,l))}}},[a,_,w,E,c,n,x])}function th(e=[]){let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=e.map(e=>e?.trigger),a=P.useCallback(t=>nh(t,e,`reference`),t),o=P.useCallback(t=>nh(t,e,`floating`),n),s=P.useCallback(t=>nh(t,e,`item`),r),c=P.useCallback(t=>nh(t,e,`trigger`),i);return P.useMemo(()=>({getReferenceProps:a,getFloatingProps:o,getItemProps:s,getTriggerProps:c}),[a,o,s,c])}function nh(e,t,n){let r=new Map,i=n===`item`,a={};n===`floating`&&(a.tabIndex=-1,a[Jl]=``);for(let t in e)i&&e&&(t===`active`||t===`selected`)||(a[t]=e[t]);for(let o=0;or.get(i)?.map(t=>t(...e)).find(e=>e!==void 0))):e[i]=a)}}var kee=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function Aee(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingId`),a=n.useState(`domReferenceElement`),o=n.useState(`floatingElement`),{role:s=`dialog`}=t,c=kl(),l=a?.id||c,u=P.useMemo(()=>uu(o)?.id||i,[o,i]),d=kee.get(s)??s,f=_p()!=null,p=P.useMemo(()=>d===`tooltip`||s===`label`?qa:{"aria-haspopup":d===`alertdialog`?`dialog`:d,"aria-expanded":`false`,...d===`listbox`&&{role:`combobox`},...d===`menu`&&f&&{role:`menuitem`},...s===`select`&&{"aria-autocomplete":`none`},...s===`combobox`&&{"aria-autocomplete":`list`}},[d,f,s]),m=P.useMemo(()=>d===`tooltip`||s===`label`?{[`aria-${s===`label`?`labelledby`:`describedby`}`]:r?u:void 0}:{...p,"aria-expanded":r?`true`:`false`,"aria-controls":r?u:void 0,...d===`menu`&&{id:l}},[d,u,r,l,s,p]),h=P.useMemo(()=>{let e={id:u,...d&&{role:d}};return d===`tooltip`||s===`label`?e:{...e,...d===`menu`&&{"aria-labelledby":l}}},[d,u,l,s]),g=P.useCallback(({active:e,selected:t})=>{let n={role:`option`,...e&&{id:`${u}-fui-option`}};switch(s){case`select`:case`combobox`:return{...n,"aria-selected":t};default:}return{}},[u,s]);return P.useMemo(()=>({reference:m,floating:h,item:g,trigger:p}),[m,h,p,g])}var ih=.1,jee=ih*ih,ah=.5;function oh(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function sh(e,t,n,r,i,a,o,s,c,l){let u=!1;return oh(e,t,n,r,i,a)&&(u=!u),oh(e,t,i,a,o,s)&&(u=!u),oh(e,t,o,s,c,l)&&(u=!u),oh(e,t,c,l,n,r)&&(u=!u),u}function Mee(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function ch(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 Nee(e={}){let{blockPointerEvents:t=!1}=e,n=new Ad,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*jee;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,ee=(T?x:S).left,D=(T?x:S).right,O=(E?x:S).top,te=(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 ne=!1;switch(c){case`top`:ne=ch(d,f,ee,x.top+1,D,S.bottom-1);break;case`bottom`:ne=ch(d,f,ee,S.top+1,D,x.bottom-1);break;case`left`:ne=ch(d,f,S.right-1,te,x.left+1,O);break;case`right`:ne=ch(d,f,x.right-1,te,S.left+1,O);break;default:}if(ne)return;if(l&&!Mee(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let re=!1;switch(c){case`top`:{let n=T?ah/2:ah*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+ah+1,o=C||T?S.bottom-ah:S.top,s=C?T?S.bottom-ah:S.top:S.bottom-ah;re=sh(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?ah/2:ah*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-ah,o=C||T?S.top+ah:S.bottom,s=C?T?S.top+ah:S.bottom:S.top+ah;re=sh(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?ah/2:ah*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+ah+1,o=w||E?S.right-ah:S.left,s=w?E?S.right-ah:S.left:S.right-ah;re=sh(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?ah/2:ah*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-ah,o=w||E?S.left+ah:S.right,s=w?E?S.left+ah:S.right:S.left+ah;re=sh(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}re?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var Pee=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),Fee=function(e){return e[e.open=hf.open]=`open`,e[e.closed=hf.closed]=`closed`,e[e.startingStyle=hf.startingStyle]=`startingStyle`,e[e.endingStyle=hf.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),lh=P.createContext(void 0);function Iee(){let e=P.useContext(lh);if(e===void 0)throw Error(Na(26));return e}var uh=`ArrowUp`,dh=`ArrowDown`,fh=`ArrowLeft`,ph=`ArrowRight`,mh=`Home`,hh=new Set([fh,ph]),Lee=new Set([fh,ph,mh,`End`]),gh=new Set([uh,dh]),Ree=new Set([uh,dh,mh,`End`]),_h=new Set([...hh,...gh]),zee=new Set([..._h,mh,`End`]),vh=new Set([uh,dh,fh,ph,mh,`End`]),yh=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function bh(e){return es(e)&&e.tagName===`INPUT`}function xh(e){return!!(bh(e)&&e.selectionStart!=null||es(e)&&e.tagName===`TEXTAREA`)}function Sh(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=Ch(e,t,`top`),r=wh(e),i=wh(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 Ch(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 wh(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 Th={...wf,...Bd,nestedDialogOpen(e){return e?{[Fee.nestedDialogOpen]:``}:null}},Eh=P.forwardRef(function(e,t){let{className:n,finalFocus:r,initialFocus:i,render:a,style:o,...s}=e,{store:c}=mf(),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`);Iee(),Hd({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});function S(e){return e===`touch`?c.context.popupRef.current:!0}let C=i===void 0?S:i,w=Za(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:g>0},props:[f,{"aria-labelledby":y??void 0,"aria-describedby":l??void 0,role:x,tabIndex:-1,hidden:!m,onKeyDown(e){vh.has(e.key)&&e.stopPropagation()},style:{[Pee.nestedDialogs]:g}},s],ref:[t,c.context.popupRef,c.useStateSetter(`popupElement`)],stateAttributesMapping:Th});return(0,F.jsx)(Dp,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:r,modal:p!==!1,restoreFocus:`popup`,children:w})});function Dh(e){return Ua(19)?e:e?`true`:void 0}var Oh=P.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,F.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),kh=P.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=mf(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,F.jsx)(lh.Provider,{value:n,children:(0,F.jsxs)(pp,{ref:t,...r,children:[a&&o===!0&&(0,F.jsx)(Oh,{ref:i.context.internalBackdropRef,inert:Dh(!s)}),e.children]})}):null});function Ah(e){let t=P.useRef(!0);t.current&&(t.current=!1,e())}var jh={},Mh={},Nh=``;function Ph(e){if(typeof document>`u`)return!1;let t=Pl(e);return Xo(t).innerWidth-t.documentElement.clientWidth>0}function Fh(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Pl(e),n=t.documentElement,r=t.body,i=ns(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 Ih(e){let t=Pl(e),n=t.documentElement,r=t.body,i=ns(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 Lh(e){let t=Pl(e),n=t.documentElement,r=t.body,i=Xo(n),a=0,o=0,s=!1,c=Pd.create();if(zl&&(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,jh={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Nh=n.style.scrollBehavior,Mh={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=ns(n)?n:r;if(s=Fh(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,jh),Object.assign(r.style,Mh),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Nh)}function d(){u(),c.request(l)}l();let f=If(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Rh=new class{lockCount=0;restore=null;timeoutLock=Ad.create();timeoutUnlock=Ad.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=Pl(e).documentElement,n=Xo(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=Ga;return}let r=Bl||!Ph(e);this.restore=r?Ih(e):Lh(e)}};function zh(e=!0,t=null){Ts(()=>{if(e)return Rh.acquire(t)},[e,t])}function Bh(e){let t=P.useRef(``),n=P.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:P.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function Vh(e,t){let n=P.useRef(e),r=xs(t);Ts(()=>{n.current!==e&&r(n.current)},[e,r]),Ts(()=>{n.current=e},[e])}function Hh(e){let[t,n]=P.useState(null),r=xs((t,r)=>{e||n(r||(Bl?`touch`:``))});Vh(e,t=>{t&&!e&&n(null)});let{onClick:i,onPointerDown:a}=Bh(r);return P.useMemo(()=>({openMethod:t,triggerProps:{onClick:i,onPointerDown:a}}),[t,i,a])}function Uh(e){let{store:t,parentContext:n,actionsRef:r,isDrawer:i}=e,a=t.useState(`open`),o=t.useState(`disablePointerDismissal`),s=t.useState(`modal`),c=t.useState(`popupElement`),{openMethod:l,triggerProps:u}=Hh(a);Bm(t);let{forceUnmount:d}=Vm(a,t),f=P.useCallback(()=>{t.setOpen(!1,sf(af))},[t]);P.useImperativeHandle(r,()=>({unmount:d,close:f}),[d,f]);let p=Ym({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0}),[m,h]=P.useState(0),[g,_]=P.useState(0),v=m===0,y=Aee(p),b=Pp(p,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?`intentional`:{mouse:s===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(e){if(!t.context.outsidePressEnabledRef.current||`button`in e&&e.button!==0||`touches`in e&&e.touches.length!==1)return!1;let n=nu(e);if(v&&!o){let e=n;return s&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===e||t.context.backdropRef.current===e||tu(e,c)&&!e?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:v});zh(a&&s===!0,c);let{getReferenceProps:x,getFloatingProps:S,getTriggerProps:C}=th([y,b]);t.useContextCallback(`onNestedDialogOpen`,(e,t)=>{h(e),_(t)}),t.useContextCallback(`onNestedDialogClose`,()=>{h(0),_(0)}),P.useEffect(()=>(n?.onNestedDialogOpen&&a&&n.onNestedDialogOpen(m+1,g+ +!!i),n?.onNestedDialogClose&&!a&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&a&&n.onNestedDialogClose()}),[i,a,m,g,n]);let w=P.useMemo(()=>x(u),[x,u]),T=P.useMemo(()=>C(u),[C,u]),E=P.useMemo(()=>S(),[S]);t.useSyncedValues({openMethod:l,activeTriggerProps:w,inactiveTriggerProps:T,popupProps:E,floatingRootContext:p,nestedOpenDialogCount:m,nestedOpenDrawerCount:g})}var Wh={...Km,modal:Em(e=>e.modal),nested:Em(e=>e.nested),nestedOpenDialogCount:Em(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:Em(e=>e.nestedOpenDrawerCount),disablePointerDismissal:Em(e=>e.disablePointerDismissal),openMethod:Em(e=>e.openMethod),descriptionElementId:Em(e=>e.descriptionElementId),titleElementId:Em(e=>e.titleElementId),viewportElement:Em(e=>e.viewportElement),role:Em(e=>e.role)},Gh=class e extends Fm{constructor(e){super(Kh(e),{popupRef:P.createRef(),backdropRef:P.createRef(),internalBackdropRef:P.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new Hm,onOpenChange:void 0,onOpenChangeComplete:void 0},Wh)}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},r=t.trigger?.id??null;(r||e)&&(n.activeTriggerId=r,n.activeTriggerElement=t.trigger??null),this.update(n)};static useStore(t,n){let r=Fa(()=>new e(n)).current;return t??r}};function Kh(e={}){return{...Wm(),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}}var qh=P.createContext(!1);function Jh(e){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,disablePointerDismissal:o=!1,modal:s=!0,actionsRef:c,handle:l,triggerId:u,defaultTriggerId:d=null}=e,f=mf(!0),p=P.useContext(qh),m=!!f,h=Gh.useStore(l?.store,{open:r,openProp:n,activeTriggerId:d,triggerIdProp:u,modal:s,disablePointerDismissal:o,nested:m});Ah(()=>{n===void 0&&h.state.open===!1&&r===!0&&h.update({open:!0,activeTriggerId:d})}),h.useControlledProp(`openProp`,n),h.useControlledProp(`triggerIdProp`,u),h.useSyncedValues({disablePointerDismissal:o,nested:m,modal:s}),h.useContextCallback(`onOpenChange`,i),h.useContextCallback(`onOpenChangeComplete`,a);let g=h.useState(`payload`);Uh({store:h,actionsRef:c,parentContext:f?.store.context,isDrawer:p,onOpenChange:i,triggerIdProp:u});let _=P.useMemo(()=>({store:h}),[h]);return(0,F.jsx)(qh.Provider,{value:!1,children:(0,F.jsx)(pf.Provider,{value:_,children:typeof t==`function`?t({payload:g}):t})})}var Yh=P.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=mf(),c=Al(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),Za(`h2`,e,{ref:t,props:[{id:c},o]})});function Xh(e){let t=(0,da.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,F.jsx)(Jh,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function Bee(e){let t=(0,da.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,F.jsx)(kh,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function Vee(e){let t=(0,da.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=al(`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,F.jsx)(Ef,{className:i,"data-slot":`sheet-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Hee(e){let t=(0,da.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,F.jsx)(Vee,{}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=al(`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,F.jsxs)(Df,{"data-slot":`sheet-close`,render:(0,F.jsx)(vl,{className:`absolute top-4 right-4`,size:`icon-sm`,variant:`ghost`}),children:[(0,F.jsx)(qo,{}),(0,F.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,F.jsxs)(Bee,{children:[l,(0,F.jsxs)(Eh,{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 Uee(e){let t=(0,da.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=al(`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,F.jsx)(`div`,{className:i,"data-slot":`sheet-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Wee(e){let t=(0,da.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=al(`text-sm font-medium text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(Yh,{className:i,"data-slot":`sheet-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Gee(e){let t=(0,da.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=al(`text-xs/relaxed text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(Of,{className:i,"data-slot":`sheet-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Zh=P.createContext(void 0);function Qh(e){let t=P.useContext(Zh);if(t===void 0&&!e)throw Error(Na(72));return t}var Kee={...Km,disabled:Em(e=>e.disabled),instantType:Em(e=>e.instantType),isInstantPhase:Em(e=>e.isInstantPhase),trackCursorAxis:Em(e=>e.trackCursorAxis),disableHoverablePopup:Em(e=>e.disableHoverablePopup),lastOpenChangeReason:Em(e=>e.openChangeReason),closeOnClick:Em(e=>e.closeOnClick),closeDelay:Em(e=>e.closeDelay),hasViewport:Em(e=>e.hasViewport)},qee=class e extends Fm{constructor(e){super({...Jee(),...e},{popupRef:P.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new Hm},Kee)}setOpen=(e,t)=>{let n=t.reason,r=n===Jd,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);let o=t.trigger?.id??null;(o||e)&&(r.activeTriggerId=o,r.activeTriggerElement=t.trigger??null),this.update(r)};r?hi.flushSync(o):o()};static useStore(t,n){let r=Fa(()=>new e(n)).current,i=t??r,a=Ym({popupStore:i,onOpenChange:i.setOpen});return i.state.floatingRootContext=a,i}};function Jee(){return{...Wm(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var Yee=km(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=qee.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});Ah(()=>{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(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),Ts(()=>{m&&t&&p.setOpen(!1,sf(rf))},[m,t,p]),p.useSyncedValue(`disabled`,t),Bm(p);let{forceUnmount:v,transitionStatus:y}=Vm(h,p),b=p.select(`floatingRootContext`),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=P.useRef(null);Ts(()=>{y===`ending`&&C===`none`||y!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[y,x,C,S,p]),Ts(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let T=P.useCallback(()=>{p.setOpen(!1,sf(af))},[p]);P.useImperativeHandle(o,()=>({unmount:v,close:T}),[v,T]);let{getReferenceProps:E,getFloatingProps:ee,getTriggerProps:D}=th([Pp(b,{enabled:!t,referencePress:()=>p.select(`closeOnClick`)}),Ap(b,{enabled:!t&&a!==`none`,axis:a===`none`?void 0:a})]),O=P.useMemo(()=>E(),[E]),te=P.useMemo(()=>D(),[D]),ne=P.useMemo(()=>ee(),[ee]);return p.useSyncedValues({activeTriggerProps:O,inactiveTriggerProps:te,popupProps:ne}),(0,F.jsx)(Zh.Provider,{value:p,children:typeof f==`function`?f({payload:_}):f})}),$h=P.createContext(void 0);function Xee(){return P.useContext($h)}var Zee=function(e){return e[e.popupOpen=gf.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),Qee=bee(function(e,t){let{className:n,render:r,handle:i,payload:a,disabled:o,delay:s,closeOnClick:c=!0,closeDelay:l,id:u,style:d,...f}=e,p=Qh(!0),m=i?.store??p;if(!m)throw Error(Na(82));let h=Al(u),g=m.useState(`isTriggerActive`,h),_=m.useState(`isOpenedByTrigger`,h),v=m.useState(`floatingRootContext`),y=P.useRef(null),b=s??600,x=l??0,{registerTrigger:S,isMountedByThisTrigger:C}=zm(h,y,m,{payload:a,closeOnClick:c,closeDelay:x}),w=Xee(),{delayRef:T,isInstantPhase:E,hasProvider:ee}=Ff(v,{open:_});m.useSyncedValue(`isInstantPhase`,E);let D=m.useState(`disabled`),O=o??D,te=m.useState(`trackCursorAxis`),ne=m.useState(`disableHoverablePopup`),re=Oee(v,{enabled:!O,mouseOnly:!0,move:!1,handleClose:!ne&&te!==`both`?Nee():null,restMs(){let e=w?.delay,t=typeof T.current==`object`?T.current.open:void 0,n=b;return ee&&(n=t===0?0:s??e??b),n},delay(){let e=typeof T.current==`object`?T.current.close:void 0,t=x;return l==null&&ee&&(t=e),{close:t}},triggerElementRef:y,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`}),k=wee(v,{enabled:!O}).reference,A={open:_},ie=m.useState(`triggerProps`,C);return Za(`button`,e,{state:A,ref:[t,S,y],props:[re,k,ie,{onPointerDown(){m.set(`closeOnClick`,c)},id:h,[Zee.triggerDisabled]:O?``:void 0},f],stateAttributesMapping:Sf})}),eg=P.createContext(void 0);function $ee(){let e=P.useContext(eg);if(e===void 0)throw Error(Na(70));return e}var ete=P.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=fp({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,F.jsxs)(P.Fragment,{children:[l,c&&hi.createPortal(n,c)]})}),tte=P.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return Qh().useState(`mounted`)||n?(0,F.jsx)(eg.Provider,{value:n,children:(0,F.jsx)(ete,{ref:t,...r})}):null}),tg=P.createContext(void 0);function ng(){let e=P.useContext(tg);if(e===void 0)throw Error(Na(71));return e}var nte=P.createContext(void 0);function rg(){return P.useContext(nte)?.direction??`ltr`}var rte=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`}=Du(e,t)||{};if(l==null)return{};let f=Gu(u),p={x:n,y:r},m=Nu(i),h=ju(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,ee=Math.min(f[v],E),D=Math.min(f[y],E),O=ee,te=w-g[h]-D,ne=w/2-g[h]/2+T,re=Eu(O,ne,te),k=!c.arrow&&ku(i)!=null&&ne!==re&&a.reference[h]/2-(ne({...rte(e),options:[e,t]}),ate={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 _ee().fn(e)).data?.referenceHidden||a}}}},ig={sideX:`left`,sideY:`top`},ote={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=Xo(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:ig};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=Pl(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=Ou(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`:ig.sideX,g=f===`top`?`bottom`:ig.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function ag(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 og(e,t,n){let{rects:r,placement:i}=e;return{side:ag(t,Ou(i),n),align:ku(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function sg(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,keepMounted:f=!1,floatingRootContext:p,mounted:m,collisionAvoidance:h,shiftCrossAxis:g=!1,nodeId:_,adaptiveOrigin:v,lazyFlip:y=!1,externalTree:b}=e,[x,S]=P.useState(null);!m&&x!==null&&S(null);let C=h.side||`flip`,w=h.align||`flip`,T=h.fallbackAxisSide||`end`,E=typeof t==`function`?t:void 0,ee=xs(E),D=E?ee:t,O=Rf(t),te=Rf(m),ne=rg()===`rtl`,re=x||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":ne?`left`:`right`,"inline-start":ne?`right`:`left`}[r],k=a===`center`?re:`${re}-${a}`,A=c,ie=+(r===`bottom`),j=+(r===`top`),ae=+(r===`right`),oe=+(r===`left`);typeof A==`number`?A={top:A+ie,right:A+oe,bottom:A+j,left:A+ae}:A&&={top:(A.top||0)+ie,right:(A.right||0)+oe,bottom:(A.bottom||0)+j,left:(A.left||0)+ae};let se={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:A},ce=P.useRef(null),M=Rf(i),le=Rf(o),ue=[fee(e=>{let t=og(e,r,ne),n=typeof M.current==`function`?M.current(t):M.current,i=typeof le.current==`function`?le.current(t):le.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[typeof i==`function`?0:i,typeof o==`function`?0:o,ne,r])],N=w===`none`&&C!==`shift`,de=!N&&(l||g||C===`shift`),fe=C===`none`?null:hee({...se,padding:{top:A.top+1,right:A.right+1,bottom:A.bottom+1,left:A.left+1},mainAxis:!g&&C===`flip`,crossAxis:w===`flip`?`alignment`:!1,fallbackAxisSideDirection:T}),pe=N?null:pee(e=>{let t=Pl(e.elements.floating).documentElement;return{...se,rootBoundary:g?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:w!==`none`,crossAxis:de,limiter:l||g?void 0:mee(e=>{if(!ce.current)return{};let{width:t,height:n}=ce.current.getBoundingClientRect(),r=Mu(Ou(e.placement)),i=r===`y`?t:n,a=r===`y`?A.left+A.right:A.top+A.bottom;return{offset:i/2+a/2}})}},[se,l,g,A,w]);C===`shift`||w===`shift`||a===`center`?ue.push(pe,fe):ue.push(fe,pe),ue.push(gee({...se,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!te.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=Xo(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`)}}),ite(()=>({element:ce.current||Pl(ce.current).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=Ou(a),l=Mu(c),u=ce.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(og(e,r,ne)):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),{}}},ate,v),Ts(()=>{!m&&p&&p.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[m,p]);let me=P.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}=Jm({rootContext:p,open:f?m:void 0,placement:k,middleware:ue,strategy:n,whileElementsMounted:f?void 0:(...e)=>pm(...e,me),nodeId:_,externalTree:b}),{sideX:Te,sideY:Ee}=ye.adaptiveOrigin||ig,De=Ce?n:`fixed`,Oe=P.useMemo(()=>{let e=v?{position:De,[Te]:_e,[Ee]:ve}:{position:De,...we};return Ce||(e.opacity=0),e},[v,De,Te,_e,Ee,ve,we,Ce]),ke=P.useRef(null);Ts(()=>{if(!m)return;let e=O.current,t=typeof e==`function`?e():e,n=(cg(t)?t.current:t)||null;n!==ke.current&&(he.setPositionReference(n),ke.current=n)},[m,he,D,O]),P.useEffect(()=>{if(!m)return;let e=O.current;typeof e!=`function`&&cg(e)&&e.current!==ke.current&&(he.setPositionReference(e.current),ke.current=e.current)},[m,he,D,O]),P.useEffect(()=>{if(f&&m&&ge.domReference&&ge.floating)return pm(ge.domReference,ge.floating,be,me)},[f,m,ge,be,me]);let Ae=Ou(xe),je=ag(r,Ae,ne),Me=ku(xe)||`center`,Ne=!!ye.hide?.referenceHidden;Ts(()=>{y&&m&&Ce&&S(Ae)},[y,m,Ce,Ae]);let F=P.useMemo(()=>({position:`absolute`,top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),Pe=ye.arrow?.centerOffset!==0;return P.useMemo(()=>({positionerStyles:Oe,arrowStyles:F,arrowRef:ce,arrowUncentered:Pe,side:je,align:Me,physicalSide:Ae,anchorHidden:Ne,refs:he,context:Se,isPositioned:Ce,update:be}),[Oe,F,ce,Pe,je,Me,Ae,Ne,he,Se,Ce,be])}function cg(e){return e!=null&&`current`in e}function lg(e){return e===`starting`?ap:qa}function ug(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),Za(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},lg(r),i],stateAttributesMapping:wf})}var ste=P.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=sp,style:g,..._}=e,v=Qh(),y=$ee(),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`),ee=sg({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`)?ote:void 0}),D=ug(e,P.useMemo(()=>({open:b,side:ee.side,align:ee.align,anchorHidden:ee.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,ee.side,ee.align,ee.anchorHidden,S,T]),{styles:ee.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,F.jsx)(tg.Provider,{value:ee,children:D})}),cte={...wf,...Bd},lte=P.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,o=Qh(),{side:s,align:c}=ng(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`);Hd({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}});let m=o.useState(`disabled`),h=o.useState(`closeDelay`);return Eee(p,{enabled:!m,closeDelay:h}),Za(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,o.useStateSetter(`popupElement`)],props:[f,lg(d),a],stateAttributesMapping:cte})}),ute=P.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,o=Qh(),s=o.useState(`open`),c=o.useState(`instantType`),{arrowRef:l,side:u,align:d,arrowUncentered:f,arrowStyles:p}=ng();return Za(`div`,e,{state:{open:s,side:u,align:d,uncentered:f,instant:c},ref:[t,l],props:[{style:p,"aria-hidden":!0},a],stateAttributesMapping:wf})}),dte=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=P.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=P.useMemo(()=>({open:t,close:n}),[t,n]);return(0,F.jsx)($h.Provider,{value:i,children:(0,F.jsx)(Pf,{delay:a,timeoutMs:r,children:e.children})})};function fte(e){let t=(0,da.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,F.jsx)(dte,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function pte(e){let t=(0,da.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,F.jsx)(fte,{children:(0,F.jsx)(Yee,{"data-slot":`tooltip`,...n})}),t[2]=n,t[3]=r),r}function mte(e){let t=(0,da.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,F.jsx)(Qee,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function hte(e){let t=(0,da.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=al(`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,F.jsx)(ute,{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,F.jsxs)(lte,{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,F.jsx)(tte,{children:(0,F.jsx)(ste,{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 dg=window.matchMedia(`(max-width: 767px)`);function gte(e){return dg.addEventListener(`change`,e),()=>dg.removeEventListener(`change`,e)}function _te(){return dg.matches}function vte(){return(0,P.useSyncExternalStore)(gte,_te)}var yte=`sidebar_state`,bte=3600*24*7,xte=`12rem`,Ste=`16rem`,Cte=`3rem`,wte=`b`,fg=P.createContext(null);function pg(){let e=P.useContext(fg);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function Tte(e){let t=(0,da.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=vte(),[d,f]=P.useState(!1),[p,m]=P.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=`${yte}=${t}; path=/; max-age=${bte}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>u?f(Dte):_(Ete),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===wte&&(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),P.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=al(`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":xte,"--sidebar-width-icon":Cte,...s},t[26]=s,t[27]=E);let ee=E,D;t[28]!==n||t[29]!==a||t[30]!==T||t[31]!==ee?(D=(0,F.jsx)(`div`,{className:T,"data-slot":`sidebar-wrapper`,style:ee,...a,children:n}),t[28]=n,t[29]=a,t[30]=T,t[31]=ee,t[32]=D):D=t[32];let O;return t[33]!==w||t[34]!==D?(O=(0,F.jsx)(fg.Provider,{value:w,children:D}),t[33]=w,t[34]=D,t[35]=O):O=t[35],O}function Ete(e){return!e}function Dte(e){return!e}function Ote(e){let t=(0,da.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}=pg();if(u===`none`){let e;t[7]===r?e=t[8]:(e=al(`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,F.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":Ste},t[13]=e):e=t[13];let r=e,a;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,F.jsxs)(Uee,{className:`sr-only`,children:[(0,F.jsx)(Wee,{children:`Sidebar`}),(0,F.jsx)(Gee,{children:`Displays the mobile sidebar.`})]}),t[14]=a):a=t[14];let o;t[15]===n?o=t[16]:(o=(0,F.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,F.jsxs)(Hee,{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,F.jsx)(Xh,{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]:(_=al(`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,F.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=al(`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,F.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,F.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,F.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 kte(e){let t=(0,da.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}=pg(),o;t[4]===n?o=t[5]:(o=al(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,F.jsx)(Lo,{}),l=(0,F.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,F.jsxs)(vl,{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 Ate(e){let t=(0,da.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}=pg(),a;t[3]===n?a=t[4]:(a=al(`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,F.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 jte(e){let t=(0,da.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=al(`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,F.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 Mte(e){let t=(0,da.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=al(`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,F.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 Nte(e){let t=(0,da.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=al(`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,F.jsx)(ff,{className:i,"data-sidebar":`separator`,"data-slot":`sidebar-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Pte(e){let t=(0,da.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=al(`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,F.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 mg(e){let t=(0,da.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=al(`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,F.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 hg(e){let t=(0,da.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=ro,r=`div`,i=va({className:al(`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 gg(e){let t=(0,da.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=al(`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,F.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 _g(e){let t=(0,da.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=al(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.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 Fte=co(`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 vg(e){let t=(0,da.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}=pg(),m=va({className:al(Fte({variant:u,size:d}),s)},c),h=o?mte: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=ro(_);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,F.jsx)(hte,{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,F.jsxs)(pte,{children:[v,S]}),t[12]=v,t[13]=S,t[14]=C):C=t[14],C}var yg;function V(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var bg=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},xg=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(yg=globalThis).__zod_globalConfig??(yg.__zod_globalConfig={});var Sg=globalThis.__zod_globalConfig;function Cg(e){return e&&Object.assign(Sg,e),Sg}function wg(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Tg(e,t){return typeof t==`bigint`?t.toString():t}function Eg(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function Dg(e){return e==null}function Og(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Ite(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r){};function Fg(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Rte=Eg(()=>{if(Sg.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Ig(e){if(Fg(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Fg(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Lg(e){return Ig(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var Rg=new Set([`string`,`number`,`symbol`]);function zg(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Bg(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Vg(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Hg(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var Ug={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Wg(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Bg(e,Mg(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return jg(this,`shape`,e),e},checks:[]}))}function Gg(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Bg(e,Mg(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return jg(this,`shape`,r),r},checks:[]}))}function Kg(e,t){if(!Ig(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Bg(e,Mg(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return jg(this,`shape`,n),n}}))}function qg(e,t){if(!Ig(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Bg(e,Mg(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return jg(this,`shape`,n),n}}))}function Jg(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return Bg(e,Mg(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return jg(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Yg(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Bg(t,Mg(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return jg(this,`shape`,i),i},checks:[]}))}function Xg(e,t,n){return Bg(t,Mg(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return jg(this,`shape`,i),i}}))}function Zg(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function e_(e){return typeof e==`string`?e:e?.message}function t_(e,t,n){let r=e.message?e.message:e_(e.inst?._zod.def?.error?.(e))??e_(t?.error?.(e))??e_(n.customError?.(e))??e_(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function n_(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function r_(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var i_=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,Tg,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},a_=V(`$ZodError`,i_),o_=V(`$ZodError`,i_,{Parent:Error});function s_(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function c_(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new bg;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>t_(e,a,Cg())));throw Pg(t,i?.callee),t}return o.value},u_=l_(o_),d_=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>t_(e,a,Cg())));throw Pg(t,i?.callee),t}return o.value},f_=d_(o_),p_=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new bg;return a.issues.length?{success:!1,error:new(e??a_)(a.issues.map(e=>t_(e,i,Cg())))}:{success:!0,data:a.value}},m_=p_(o_),h_=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>t_(e,i,Cg())))}:{success:!0,data:a.value}},g_=h_(o_),__=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return l_(e)(t,n,i)},v_=e=>(t,n,r)=>l_(e)(t,n,r),y_=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return d_(e)(t,n,i)},b_=e=>async(t,n,r)=>d_(e)(t,n,r),x_=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return p_(e)(t,n,i)},S_=e=>(t,n,r)=>p_(e)(t,n,r),C_=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return h_(e)(t,n,i)},w_=e=>async(t,n,r)=>h_(e)(t,n,r),T_=/^[cC][0-9a-z]{6,}$/,E_=/^[0-9a-z]+$/,D_=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,O_=/^[0-9a-vA-V]{20}$/,k_=/^[A-Za-z0-9]{27}$/,A_=/^[a-zA-Z0-9_-]{21}$/,j_=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,M_=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,N_=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,P_=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,F_=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function I_(){return new RegExp(F_,`u`)}var L_=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,R_=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,z_=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,B_=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,V_=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,H_=/^[A-Za-z0-9_-]*$/,U_=/^https?$/,W_=/^\+[1-9]\d{6,14}$/,G_=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,K_=RegExp(`^${G_}$`);function q_(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function J_(e){return RegExp(`^${q_(e)}$`)}function Y_(e){let t=q_({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${G_}T(?:${r})$`)}var X_=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Z_=/^-?\d+$/,Q_=/^-?\d+(?:\.\d+)?$/,$_=/^(?:true|false)$/i,ev=/^[^A-Z]*$/,tv=/^[^a-z]*$/,nv=V(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),rv={number:`number`,bigint:`bigint`,object:`date`},iv=V(`$ZodCheckLessThan`,(e,t)=>{nv.init(e,t);let n=rv[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{nv.init(e,t);let n=rv[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ov=V(`$ZodCheckMultipleOf`,(e,t)=>{nv.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):Ite(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),sv=V(`$ZodCheckNumberFormat`,(e,t)=>{nv.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Ug[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Z_)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),cv=V(`$ZodCheckMaxLength`,(e,t)=>{var n;nv.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Dg(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=n_(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),lv=V(`$ZodCheckMinLength`,(e,t)=>{var n;nv.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Dg(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=n_(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),uv=V(`$ZodCheckLengthEquals`,(e,t)=>{var n;nv.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Dg(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=n_(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),dv=V(`$ZodCheckStringFormat`,(e,t)=>{var n,r;nv.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),fv=V(`$ZodCheckRegex`,(e,t)=>{dv.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),pv=V(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=ev,dv.init(e,t)}),mv=V(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=tv,dv.init(e,t)}),hv=V(`$ZodCheckIncludes`,(e,t)=>{nv.init(e,t);let n=zg(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),gv=V(`$ZodCheckStartsWith`,(e,t)=>{nv.init(e,t);let n=RegExp(`^${zg(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),_v=V(`$ZodCheckEndsWith`,(e,t)=>{nv.init(e,t);let n=RegExp(`.*${zg(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),vv=V(`$ZodCheckOverwrite`,(e,t)=>{nv.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),yv=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` -`))}},E_={major:4,minor:4,patch:3},D_=V(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=E_;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Ng(e),i;for(let a of t){if(a._zod.def.when){if(rne(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new fg;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Ng(e,t))});else{if(e.issues.length===t)continue;r||=Ng(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Ng(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new fg;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new fg;return o.then(e=>t(e,r,a))}return t(o,r,a)}}Sg(e,`~standard`,()=>({validate:t=>{try{let n=cne(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return lne(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),O_=V(`$ZodString`,(e,t)=>{D_.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??n_(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),k_=V(`$ZodStringFormat`,(e,t)=>{__.init(e,t),O_.init(e,t)}),A_=V(`$ZodGUID`,(e,t)=>{t.pattern??=Tne,k_.init(e,t)}),j_=V(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Kg(e)}else t.pattern??=Kg();k_.init(e,t)}),M_=V(`$ZodEmail`,(e,t)=>{t.pattern??=Ene,k_.init(e,t)}),N_=V(`$ZodURL`,(e,t)=>{k_.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===Yg.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),P_=V(`$ZodEmoji`,(e,t)=>{t.pattern??=One(),k_.init(e,t)}),F_=V(`$ZodNanoID`,(e,t)=>{t.pattern??=Cne,k_.init(e,t)}),I_=V(`$ZodCUID`,(e,t)=>{t.pattern??=vne,k_.init(e,t)}),L_=V(`$ZodCUID2`,(e,t)=>{t.pattern??=yne,k_.init(e,t)}),R_=V(`$ZodULID`,(e,t)=>{t.pattern??=bne,k_.init(e,t)}),z_=V(`$ZodXID`,(e,t)=>{t.pattern??=xne,k_.init(e,t)}),B_=V(`$ZodKSUID`,(e,t)=>{t.pattern??=Sne,k_.init(e,t)}),V_=V(`$ZodISODateTime`,(e,t)=>{t.pattern??=t_(t),k_.init(e,t)}),H_=V(`$ZodISODate`,(e,t)=>{t.pattern??=Qg,k_.init(e,t)}),U_=V(`$ZodISOTime`,(e,t)=>{t.pattern??=e_(t),k_.init(e,t)}),W_=V(`$ZodISODuration`,(e,t)=>{t.pattern??=wne,k_.init(e,t)}),G_=V(`$ZodIPv4`,(e,t)=>{t.pattern??=kne,k_.init(e,t),e._zod.bag.format=`ipv4`}),K_=V(`$ZodIPv6`,(e,t)=>{t.pattern??=Ane,k_.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),q_=V(`$ZodCIDRv4`,(e,t)=>{t.pattern??=jne,k_.init(e,t)}),J_=V(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Mne,k_.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function Y_(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var X_=V(`$ZodBase64`,(e,t)=>{t.pattern??=qg,k_.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Y_(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Z_(e){if(!Jg.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Y_(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Q_=V(`$ZodBase64URL`,(e,t)=>{t.pattern??=Jg,k_.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Z_(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),$_=V(`$ZodE164`,(e,t)=>{t.pattern??=Xg,k_.init(e,t)});function ev(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var tv=V(`$ZodJWT`,(e,t)=>{k_.init(e,t),e._zod.check=n=>{ev(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),nv=V(`$ZodNumber`,(e,t)=>{D_.init(e,t),e._zod.pattern=e._zod.bag.pattern??i_,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),rv=V(`$ZodNumberFormat`,(e,t)=>{p_.init(e,t),nv.init(e,t)}),iv=V(`$ZodBoolean`,(e,t)=>{D_.init(e,t),e._zod.pattern=a_,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),av=V(`$ZodUnknown`,(e,t)=>{D_.init(e,t),e._zod.parse=e=>e}),ov=V(`$ZodNever`,(e,t)=>{D_.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function sv(e,t,n){e.issues.length&&t.issues.push(...Pg(n,e.issues)),t.value[n]=e.value}var cv=V(`$ZodArray`,(e,t)=>{D_.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;esv(t,n,e))):sv(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function lv(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Pg(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function uv(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Jte(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function dv(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>lv(e,n,i,t,u,d))):lv(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var fv=V(`$ZodObject`,(e,t)=>{if(D_.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=vg(()=>uv(t));Sg(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=Dg,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>lv(n,t,e,s,r,i))):lv(a,t,e,s,r,i)}return i?dv(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),pv=V(`$ZodObjectJIT`,(e,t)=>{fv.init(e,t);let n=e._zod.parse,r=vg(()=>uv(t)),i=e=>{let t=new T_([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Tg(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=Tg(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` +`))}},bv={major:4,minor:4,patch:3},xv=V(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=bv;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Zg(e),i;for(let a of t){if(a._zod.def.when){if(Qg(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new bg;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Zg(e,t))});else{if(e.issues.length===t)continue;r||=Zg(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Zg(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new bg;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new bg;return o.then(e=>t(e,r,a))}return t(o,r,a)}}Ag(e,`~standard`,()=>({validate:t=>{try{let n=m_(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return g_(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Sv=V(`$ZodString`,(e,t)=>{xv.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??X_(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),Cv=V(`$ZodStringFormat`,(e,t)=>{dv.init(e,t),Sv.init(e,t)}),wv=V(`$ZodGUID`,(e,t)=>{t.pattern??=M_,Cv.init(e,t)}),Tv=V(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=N_(e)}else t.pattern??=N_();Cv.init(e,t)}),Ev=V(`$ZodEmail`,(e,t)=>{t.pattern??=P_,Cv.init(e,t)}),Dv=V(`$ZodURL`,(e,t)=>{Cv.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===U_.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Ov=V(`$ZodEmoji`,(e,t)=>{t.pattern??=I_(),Cv.init(e,t)}),kv=V(`$ZodNanoID`,(e,t)=>{t.pattern??=A_,Cv.init(e,t)}),Av=V(`$ZodCUID`,(e,t)=>{t.pattern??=T_,Cv.init(e,t)}),jv=V(`$ZodCUID2`,(e,t)=>{t.pattern??=E_,Cv.init(e,t)}),Mv=V(`$ZodULID`,(e,t)=>{t.pattern??=D_,Cv.init(e,t)}),Nv=V(`$ZodXID`,(e,t)=>{t.pattern??=O_,Cv.init(e,t)}),Pv=V(`$ZodKSUID`,(e,t)=>{t.pattern??=k_,Cv.init(e,t)}),Fv=V(`$ZodISODateTime`,(e,t)=>{t.pattern??=Y_(t),Cv.init(e,t)}),Iv=V(`$ZodISODate`,(e,t)=>{t.pattern??=K_,Cv.init(e,t)}),Lv=V(`$ZodISOTime`,(e,t)=>{t.pattern??=J_(t),Cv.init(e,t)}),Rv=V(`$ZodISODuration`,(e,t)=>{t.pattern??=j_,Cv.init(e,t)}),zv=V(`$ZodIPv4`,(e,t)=>{t.pattern??=L_,Cv.init(e,t),e._zod.bag.format=`ipv4`}),Bv=V(`$ZodIPv6`,(e,t)=>{t.pattern??=R_,Cv.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),Vv=V(`$ZodCIDRv4`,(e,t)=>{t.pattern??=z_,Cv.init(e,t)}),Hv=V(`$ZodCIDRv6`,(e,t)=>{t.pattern??=B_,Cv.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function Uv(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Wv=V(`$ZodBase64`,(e,t)=>{t.pattern??=V_,Cv.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Uv(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Gv(e){if(!H_.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Uv(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var zte=V(`$ZodBase64URL`,(e,t)=>{t.pattern??=H_,Cv.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Gv(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Bte=V(`$ZodE164`,(e,t)=>{t.pattern??=W_,Cv.init(e,t)});function Vte(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Hte=V(`$ZodJWT`,(e,t)=>{Cv.init(e,t),e._zod.check=n=>{Vte(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Kv=V(`$ZodNumber`,(e,t)=>{xv.init(e,t),e._zod.pattern=e._zod.bag.pattern??Q_,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Ute=V(`$ZodNumberFormat`,(e,t)=>{sv.init(e,t),Kv.init(e,t)}),Wte=V(`$ZodBoolean`,(e,t)=>{xv.init(e,t),e._zod.pattern=$_,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Gte=V(`$ZodUnknown`,(e,t)=>{xv.init(e,t),e._zod.parse=e=>e}),Kte=V(`$ZodNever`,(e,t)=>{xv.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function qv(e,t,n){e.issues.length&&t.issues.push(...$g(n,e.issues)),t.value[n]=e.value}var qte=V(`$ZodArray`,(e,t)=>{xv.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;eqv(t,n,e))):qv(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Jv(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...$g(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function Yv(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Hg(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Xv(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Jv(e,n,i,t,u,d))):Jv(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var Jte=V(`$ZodObject`,(e,t)=>{if(xv.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=Eg(()=>Yv(t));Ag(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=Fg,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>Jv(n,t,e,s,r,i))):Jv(a,t,e,s,r,i)}return i?Xv(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Yte=V(`$ZodObjectJIT`,(e,t)=>{Jte.init(e,t);let n=e._zod.parse,r=Eg(()=>Yv(t)),i=e=>{let t=new yv([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Ng(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=Ng(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` if (${n}.issues.length) { if (${o} in input) { payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ @@ -68,40 +68,40 @@ Error generating stack: `+e.message+` } } - `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Dg,s=!mg.jitless,c=s&&Kte.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?dv([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function mv(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Ng(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ig(e,r,hg())))}),t)}var hv=V(`$ZodUnion`,(e,t)=>{D_.init(e,t),Sg(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),Sg(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),Sg(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),Sg(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>bg(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>mv(t,r,e,i)):mv(o,r,e,i)}}),gv=V(`$ZodIntersection`,(e,t)=>{D_.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>vv(e,t,n)):vv(e,i,a)}});function _v(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Og(e)&&Og(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=_v(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Ng(e))return e;let o=_v(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var yv=V(`$ZodRecord`,(e,t)=>{D_.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Og(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>Ig(e,r,hg())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...Pg(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...Pg(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&i_.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>Ig(e,r,hg())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...Pg(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...Pg(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),bv=V(`$ZodEnum`,(e,t)=>{D_.init(e,t);let n=gg(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>qte.has(typeof e)).map(e=>typeof e==`string`?Ag(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),xv=V(`$ZodTransform`,(e,t)=>{D_.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new pg(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new fg;return n.value=i,n.fallback=!0,n}});function Sv(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Cv=V(`$ZodOptional`,(e,t)=>{D_.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,Sg(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Sg(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${bg(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Sv(e,r)):Sv(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),wv=V(`$ZodExactOptional`,(e,t)=>{Cv.init(e,t),Sg(e._zod,`values`,()=>t.innerType._zod.values),Sg(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Tv=V(`$ZodNullable`,(e,t)=>{D_.init(e,t),Sg(e._zod,`optin`,()=>t.innerType._zod.optin),Sg(e._zod,`optout`,()=>t.innerType._zod.optout),Sg(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${bg(e.source)}|null)$`):void 0}),Sg(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Ev=V(`$ZodDefault`,(e,t)=>{D_.init(e,t),e._zod.optin=`optional`,Sg(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Dv(e,t)):Dv(r,t)}});function Dv(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Ov=V(`$ZodPrefault`,(e,t)=>{D_.init(e,t),e._zod.optin=`optional`,Sg(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),kv=V(`$ZodNonOptional`,(e,t)=>{D_.init(e,t),Sg(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Av(t,e)):Av(i,e)}});function Av(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var jv=V(`$ZodCatch`,(e,t)=>{D_.init(e,t),e._zod.optin=`optional`,Sg(e._zod,`optout`,()=>t.innerType._zod.optout),Sg(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ig(e,n,hg()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ig(e,n,hg()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),Mv=V(`$ZodPipe`,(e,t)=>{D_.init(e,t),Sg(e._zod,`values`,()=>t.in._zod.values),Sg(e._zod,`optin`,()=>t.in._zod.optin),Sg(e._zod,`optout`,()=>t.out._zod.optout),Sg(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Nv(e,t.in,n)):Nv(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Nv(e,t.out,n)):Nv(r,t.out,n)}});function Nv(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var Pv=V(`$ZodReadonly`,(e,t)=>{D_.init(e,t),Sg(e._zod,`propValues`,()=>t.innerType._zod.propValues),Sg(e._zod,`values`,()=>t.innerType._zod.values),Sg(e._zod,`optin`,()=>t.innerType?._zod?.optin),Sg(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Fv):Fv(r)}});function Fv(e){return e.value=Object.freeze(e.value),e}var Iv=V(`$ZodCustom`,(e,t)=>{c_.init(e,t),D_.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Lv(t,n,r,e));Lv(i,n,r,e)}});function Lv(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Rg(e))}}var Rv,zv=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Bv(){return new zv}(Rv=globalThis).__zod_globalRegistry??(Rv.__zod_globalRegistry=Bv());var Vv=globalThis.__zod_globalRegistry;function Hv(e,t){return new e({type:`string`,...Mg(t)})}function Uv(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Mg(t)})}function Wv(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Mg(t)})}function Gv(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Mg(t)})}function Kv(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Mg(t)})}function qv(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Mg(t)})}function Jv(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Mg(t)})}function Yv(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Mg(t)})}function Xv(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Mg(t)})}function Zv(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Mg(t)})}function Qv(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Mg(t)})}function $v(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Mg(t)})}function ey(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Mg(t)})}function ty(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Mg(t)})}function ny(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Mg(t)})}function ry(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Mg(t)})}function iy(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Mg(t)})}function ay(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Mg(t)})}function oy(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Mg(t)})}function sy(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Mg(t)})}function cy(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Mg(t)})}function ly(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Mg(t)})}function uy(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Mg(t)})}function dy(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Mg(t)})}function fy(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Mg(t)})}function py(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Mg(t)})}function my(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Mg(t)})}function hy(e,t){return new e({type:`number`,checks:[],...Mg(t)})}function gy(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Mg(t)})}function _y(e,t){return new e({type:`boolean`,...Mg(t)})}function vy(e){return new e({type:`unknown`})}function yy(e,t){return new e({type:`never`,...Mg(t)})}function by(e,t){return new u_({check:`less_than`,...Mg(t),value:e,inclusive:!1})}function xy(e,t){return new u_({check:`less_than`,...Mg(t),value:e,inclusive:!0})}function Sy(e,t){return new d_({check:`greater_than`,...Mg(t),value:e,inclusive:!1})}function Cy(e,t){return new d_({check:`greater_than`,...Mg(t),value:e,inclusive:!0})}function wy(e,t){return new f_({check:`multiple_of`,...Mg(t),value:e})}function Ty(e,t){return new m_({check:`max_length`,...Mg(t),maximum:e})}function Ey(e,t){return new h_({check:`min_length`,...Mg(t),minimum:e})}function Dy(e,t){return new g_({check:`length_equals`,...Mg(t),length:e})}function Oy(e,t){return new v_({check:`string_format`,format:`regex`,...Mg(t),pattern:e})}function ky(e){return new y_({check:`string_format`,format:`lowercase`,...Mg(e)})}function Nne(e){return new b_({check:`string_format`,format:`uppercase`,...Mg(e)})}function Pne(e,t){return new x_({check:`string_format`,format:`includes`,...Mg(t),includes:e})}function Fne(e,t){return new S_({check:`string_format`,format:`starts_with`,...Mg(t),prefix:e})}function Ine(e,t){return new C_({check:`string_format`,format:`ends_with`,...Mg(t),suffix:e})}function Ay(e){return new w_({check:`overwrite`,tx:e})}function Lne(e){return Ay(t=>t.normalize(e))}function Rne(){return Ay(e=>e.trim())}function zne(){return Ay(e=>e.toLowerCase())}function Bne(){return Ay(e=>e.toUpperCase())}function Vne(){return Ay(e=>Gte(e))}function Hne(e,t,n){return new e({type:`array`,element:t,...Mg(n)})}function Une(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Mg(n)})}function Wne(e,t){let n=Gne(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Rg(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Rg(r))}},e(t.value,t)),t);return n}function Gne(e,t){let n=new c_({check:`custom`,...Mg(t)});return n._zod.check=e,n}function jy(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Vv,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function My(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,My(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Fy(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Ny(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ + `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Fg,s=!Sg.jitless,c=s&&Rte.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Xv([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Zv(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Zg(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>t_(e,r,Cg())))}),t)}var Xte=V(`$ZodUnion`,(e,t)=>{xv.init(e,t),Ag(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),Ag(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),Ag(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),Ag(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>Og(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Zv(t,r,e,i)):Zv(o,r,e,i)}}),Zte=V(`$ZodIntersection`,(e,t)=>{xv.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>$v(e,t,n)):$v(e,i,a)}});function Qv(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ig(e)&&Ig(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Qv(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Zg(e))return e;let o=Qv(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var Qte=V(`$ZodRecord`,(e,t)=>{xv.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Ig(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>t_(e,r,Cg())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...$g(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...$g(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&Q_.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>t_(e,r,Cg())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...$g(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...$g(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),$te=V(`$ZodEnum`,(e,t)=>{xv.init(e,t);let n=wg(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Rg.has(typeof e)).map(e=>typeof e==`string`?zg(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),ene=V(`$ZodTransform`,(e,t)=>{xv.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new xg(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new bg;return n.value=i,n.fallback=!0,n}});function ey(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var ty=V(`$ZodOptional`,(e,t)=>{xv.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,Ag(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ag(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Og(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>ey(e,r)):ey(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),tne=V(`$ZodExactOptional`,(e,t)=>{ty.init(e,t),Ag(e._zod,`values`,()=>t.innerType._zod.values),Ag(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),nne=V(`$ZodNullable`,(e,t)=>{xv.init(e,t),Ag(e._zod,`optin`,()=>t.innerType._zod.optin),Ag(e._zod,`optout`,()=>t.innerType._zod.optout),Ag(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Og(e.source)}|null)$`):void 0}),Ag(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),rne=V(`$ZodDefault`,(e,t)=>{xv.init(e,t),e._zod.optin=`optional`,Ag(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>ny(e,t)):ny(r,t)}});function ny(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var ine=V(`$ZodPrefault`,(e,t)=>{xv.init(e,t),e._zod.optin=`optional`,Ag(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),ane=V(`$ZodNonOptional`,(e,t)=>{xv.init(e,t),Ag(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>ry(t,e)):ry(i,e)}});function ry(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var one=V(`$ZodCatch`,(e,t)=>{xv.init(e,t),e._zod.optin=`optional`,Ag(e._zod,`optout`,()=>t.innerType._zod.optout),Ag(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>t_(e,n,Cg()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>t_(e,n,Cg()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),sne=V(`$ZodPipe`,(e,t)=>{xv.init(e,t),Ag(e._zod,`values`,()=>t.in._zod.values),Ag(e._zod,`optin`,()=>t.in._zod.optin),Ag(e._zod,`optout`,()=>t.out._zod.optout),Ag(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>iy(e,t.in,n)):iy(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>iy(e,t.out,n)):iy(r,t.out,n)}});function iy(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var cne=V(`$ZodReadonly`,(e,t)=>{xv.init(e,t),Ag(e._zod,`propValues`,()=>t.innerType._zod.propValues),Ag(e._zod,`values`,()=>t.innerType._zod.values),Ag(e._zod,`optin`,()=>t.innerType?._zod?.optin),Ag(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(ay):ay(r)}});function ay(e){return e.value=Object.freeze(e.value),e}var lne=V(`$ZodCustom`,(e,t)=>{nv.init(e,t),xv.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>oy(t,n,r,e));oy(i,n,r,e)}});function oy(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(r_(e))}}var sy,une=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function dne(){return new une}(sy=globalThis).__zod_globalRegistry??(sy.__zod_globalRegistry=dne());var cy=globalThis.__zod_globalRegistry;function fne(e,t){return new e({type:`string`,...Vg(t)})}function pne(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Vg(t)})}function ly(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Vg(t)})}function mne(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Vg(t)})}function hne(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Vg(t)})}function gne(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Vg(t)})}function _ne(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Vg(t)})}function vne(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Vg(t)})}function yne(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Vg(t)})}function bne(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Vg(t)})}function xne(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Vg(t)})}function Sne(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Vg(t)})}function Cne(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Vg(t)})}function wne(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Vg(t)})}function Tne(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Vg(t)})}function Ene(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Vg(t)})}function Dne(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Vg(t)})}function One(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Vg(t)})}function kne(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Vg(t)})}function Ane(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Vg(t)})}function jne(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Vg(t)})}function Mne(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Vg(t)})}function Nne(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Vg(t)})}function Pne(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Vg(t)})}function Fne(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Vg(t)})}function Ine(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Vg(t)})}function Lne(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Vg(t)})}function Rne(e,t){return new e({type:`number`,checks:[],...Vg(t)})}function zne(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Vg(t)})}function Bne(e,t){return new e({type:`boolean`,...Vg(t)})}function Vne(e){return new e({type:`unknown`})}function Hne(e,t){return new e({type:`never`,...Vg(t)})}function uy(e,t){return new iv({check:`less_than`,...Vg(t),value:e,inclusive:!1})}function dy(e,t){return new iv({check:`less_than`,...Vg(t),value:e,inclusive:!0})}function fy(e,t){return new av({check:`greater_than`,...Vg(t),value:e,inclusive:!1})}function py(e,t){return new av({check:`greater_than`,...Vg(t),value:e,inclusive:!0})}function my(e,t){return new ov({check:`multiple_of`,...Vg(t),value:e})}function hy(e,t){return new cv({check:`max_length`,...Vg(t),maximum:e})}function gy(e,t){return new lv({check:`min_length`,...Vg(t),minimum:e})}function _y(e,t){return new uv({check:`length_equals`,...Vg(t),length:e})}function Une(e,t){return new fv({check:`string_format`,format:`regex`,...Vg(t),pattern:e})}function Wne(e){return new pv({check:`string_format`,format:`lowercase`,...Vg(e)})}function Gne(e){return new mv({check:`string_format`,format:`uppercase`,...Vg(e)})}function Kne(e,t){return new hv({check:`string_format`,format:`includes`,...Vg(t),includes:e})}function qne(e,t){return new gv({check:`string_format`,format:`starts_with`,...Vg(t),prefix:e})}function Jne(e,t){return new _v({check:`string_format`,format:`ends_with`,...Vg(t),suffix:e})}function vy(e){return new vv({check:`overwrite`,tx:e})}function Yne(e){return vy(t=>t.normalize(e))}function Xne(){return vy(e=>e.trim())}function Zne(){return vy(e=>e.toLowerCase())}function Qne(){return vy(e=>e.toUpperCase())}function $ne(){return vy(e=>Lte(e))}function ere(e,t,n){return new e({type:`array`,element:t,...Vg(n)})}function tre(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Vg(n)})}function nre(e,t){let n=rre(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(r_(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(r_(r))}},e(t.value,t)),t);return n}function rre(e,t){let n=new nv({check:`custom`,...Vg(t)});return n._zod.check=e,n}function yy(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??cy,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function by(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,by(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Cy(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function xy(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Py(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:Iy(t,`input`,e.processors),output:Iy(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Fy(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Fy(r.element,n);if(r.type===`set`)return Fy(r.valueType,n);if(r.type===`lazy`)return Fy(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return Fy(r.innerType,n);if(r.type===`intersection`)return Fy(r.left,n)||Fy(r.right,n);if(r.type===`record`||r.type===`map`)return Fy(r.keyType,n)||Fy(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Fy(r.in,n)||Fy(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Fy(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Fy(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Fy(e,n))return!0;return!!(r.rest&&Fy(r.rest,n))}return!1}var Kne=(e,t={})=>n=>{let r=jy({...n,processors:t});return My(e,r),Ny(r,e),Py(r,e)},Iy=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=jy({...i??{},target:a,io:t,processors:n});return My(e,o),Ny(o,e),Py(o,e)},qne={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Jne=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=qne[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Yne=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},Xne=(e,t,n,r)=>{n.type=`boolean`},Zne=(e,t,n,r)=>{n.not={}},Qne=(e,t,n,r)=>{let i=e._zod.def,a=gg(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},$ne=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},ere=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},tre=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=My(a.element,t,{...r,path:[...r.path,`items`]})},nre=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=My(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=My(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},rre=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>My(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},ire=(e,t,n,r)=>{let i=e._zod.def,a=My(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=My(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},are=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=My(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=My(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=My(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},ore=(e,t,n,r)=>{let i=e._zod.def,a=My(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},sre=(e,t,n,r)=>{let i=e._zod.def;My(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},cre=(e,t,n,r)=>{let i=e._zod.def;My(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},lre=(e,t,n,r)=>{let i=e._zod.def;My(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},ure=(e,t,n,r)=>{let i=e._zod.def;My(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},dre=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;My(o,t,r);let s=t.seen.get(e);s.ref=o},fre=(e,t,n,r)=>{let i=e._zod.def;My(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Ly=(e,t,n,r)=>{let i=e._zod.def;My(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},pre=V(`ZodISODateTime`,(e,t)=>{V_.init(e,t),Wy.init(e,t)});function mre(e){return dy(pre,e)}var hre=V(`ZodISODate`,(e,t)=>{H_.init(e,t),Wy.init(e,t)});function gre(e){return fy(hre,e)}var _re=V(`ZodISOTime`,(e,t)=>{U_.init(e,t),Wy.init(e,t)});function vre(e){return py(_re,e)}var yre=V(`ZodISODuration`,(e,t)=>{W_.init(e,t),Wy.init(e,t)});function bre(e){return my(yre,e)}var Ry=V(`ZodError`,(e,t)=>{Bg.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>ane(e,t)},flatten:{value:t=>ine(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,_g,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,_g,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),xre=Hg(Ry),Sre=Ug(Ry),Cre=Wg(Ry),wre=Gg(Ry),Tre=une(Ry),Ere=dne(Ry),Dre=fne(Ry),Ore=pne(Ry),kre=mne(Ry),Are=hne(Ry),jre=gne(Ry),Mre=_ne(Ry),zy=new WeakMap;function By(e,t,n){let r=Object.getPrototypeOf(e),i=zy.get(r);if(i||(i=new Set,zy.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var Vy=V(`ZodType`,(e,t)=>(D_.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Iy(e,`input`),output:Iy(e,`output`)}}),e.toJSONSchema=Kne(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.parse=(t,n)=>xre(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Cre(e,t,n),e.parseAsync=async(t,n)=>Sre(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>wre(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Tre(e,t,n),e.decode=(t,n)=>Ere(e,t,n),e.encodeAsync=async(t,n)=>Dre(e,t,n),e.decodeAsync=async(t,n)=>Ore(e,t,n),e.safeEncode=(t,n)=>kre(e,t,n),e.safeDecode=(t,n)=>Are(e,t,n),e.safeEncodeAsync=async(t,n)=>jre(e,t,n),e.safeDecodeAsync=async(t,n)=>Mre(e,t,n),By(e,`ZodType`,{check(...e){let t=this.def;return this.clone(wg(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return jg(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Die(e,t))},superRefine(e,t){return this.check(Oie(e,t))},overwrite(e){return this.check(Ay(e))},optional(){return nb(this)},exactOptional(){return mie(this)},nullable(){return rb(this)},nullish(){return nb(rb(this))},nonoptional(e){return bie(this,e)},array(){return Xy(this)},or(e){return sie([this,e])},and(e){return lie(this,e)},transform(e){return ab(this,fie(e))},default(e){return _ie(this,e)},prefault(e){return yie(this,e)},catch(e){return Sie(this,e)},pipe(e){return ab(this,e)},readonly(){return Tie(this)},describe(e){let t=this.clone();return Vv.add(t,{description:e}),t},meta(...e){if(e.length===0)return Vv.get(this);let t=this.clone();return Vv.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,`description`,{get(){return Vv.get(e)?.description},configurable:!0}),e)),Hy=V(`_ZodString`,(e,t)=>{O_.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jne(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,By(e,`_ZodString`,{regex(...e){return this.check(Oy(...e))},includes(...e){return this.check(Pne(...e))},startsWith(...e){return this.check(Fne(...e))},endsWith(...e){return this.check(Ine(...e))},min(...e){return this.check(Ey(...e))},max(...e){return this.check(Ty(...e))},length(...e){return this.check(Dy(...e))},nonempty(...e){return this.check(Ey(1,...e))},lowercase(e){return this.check(ky(e))},uppercase(e){return this.check(Nne(e))},trim(){return this.check(Rne())},normalize(...e){return this.check(Lne(...e))},toLowerCase(){return this.check(zne())},toUpperCase(){return this.check(Bne())},slugify(){return this.check(Vne())}})}),Nre=V(`ZodString`,(e,t)=>{O_.init(e,t),Hy.init(e,t),e.email=t=>e.check(Uv(Pre,t)),e.url=t=>e.check(Yv(Fre,t)),e.jwt=t=>e.check(uy(Xre,t)),e.emoji=t=>e.check(Xv(Ire,t)),e.guid=t=>e.check(Wv(Gy,t)),e.uuid=t=>e.check(Gv(Ky,t)),e.uuidv4=t=>e.check(Kv(Ky,t)),e.uuidv6=t=>e.check(qv(Ky,t)),e.uuidv7=t=>e.check(Jv(Ky,t)),e.nanoid=t=>e.check(Zv(Lre,t)),e.guid=t=>e.check(Wv(Gy,t)),e.cuid=t=>e.check(Qv(Rre,t)),e.cuid2=t=>e.check($v(zre,t)),e.ulid=t=>e.check(ey(Bre,t)),e.base64=t=>e.check(sy(qre,t)),e.base64url=t=>e.check(cy(Jre,t)),e.xid=t=>e.check(ty(Vre,t)),e.ksuid=t=>e.check(ny(Hre,t)),e.ipv4=t=>e.check(ry(Ure,t)),e.ipv6=t=>e.check(iy(Wre,t)),e.cidrv4=t=>e.check(ay(Gre,t)),e.cidrv6=t=>e.check(oy(Kre,t)),e.e164=t=>e.check(ly(Yre,t)),e.datetime=t=>e.check(mre(t)),e.date=t=>e.check(gre(t)),e.time=t=>e.check(vre(t)),e.duration=t=>e.check(bre(t))});function Uy(e){return Hv(Nre,e)}var Wy=V(`ZodStringFormat`,(e,t)=>{k_.init(e,t),Hy.init(e,t)}),Pre=V(`ZodEmail`,(e,t)=>{M_.init(e,t),Wy.init(e,t)}),Gy=V(`ZodGUID`,(e,t)=>{A_.init(e,t),Wy.init(e,t)}),Ky=V(`ZodUUID`,(e,t)=>{j_.init(e,t),Wy.init(e,t)}),Fre=V(`ZodURL`,(e,t)=>{N_.init(e,t),Wy.init(e,t)}),Ire=V(`ZodEmoji`,(e,t)=>{P_.init(e,t),Wy.init(e,t)}),Lre=V(`ZodNanoID`,(e,t)=>{F_.init(e,t),Wy.init(e,t)}),Rre=V(`ZodCUID`,(e,t)=>{I_.init(e,t),Wy.init(e,t)}),zre=V(`ZodCUID2`,(e,t)=>{L_.init(e,t),Wy.init(e,t)}),Bre=V(`ZodULID`,(e,t)=>{R_.init(e,t),Wy.init(e,t)}),Vre=V(`ZodXID`,(e,t)=>{z_.init(e,t),Wy.init(e,t)}),Hre=V(`ZodKSUID`,(e,t)=>{B_.init(e,t),Wy.init(e,t)}),Ure=V(`ZodIPv4`,(e,t)=>{G_.init(e,t),Wy.init(e,t)}),Wre=V(`ZodIPv6`,(e,t)=>{K_.init(e,t),Wy.init(e,t)}),Gre=V(`ZodCIDRv4`,(e,t)=>{q_.init(e,t),Wy.init(e,t)}),Kre=V(`ZodCIDRv6`,(e,t)=>{J_.init(e,t),Wy.init(e,t)}),qre=V(`ZodBase64`,(e,t)=>{X_.init(e,t),Wy.init(e,t)}),Jre=V(`ZodBase64URL`,(e,t)=>{Q_.init(e,t),Wy.init(e,t)}),Yre=V(`ZodE164`,(e,t)=>{$_.init(e,t),Wy.init(e,t)}),Xre=V(`ZodJWT`,(e,t)=>{tv.init(e,t),Wy.init(e,t)}),qy=V(`ZodNumber`,(e,t)=>{nv.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yne(e,t,n,r),By(e,`ZodNumber`,{gt(e,t){return this.check(Sy(e,t))},gte(e,t){return this.check(Cy(e,t))},min(e,t){return this.check(Cy(e,t))},lt(e,t){return this.check(by(e,t))},lte(e,t){return this.check(xy(e,t))},max(e,t){return this.check(xy(e,t))},int(e){return this.check(Jy(e))},safe(e){return this.check(Jy(e))},positive(e){return this.check(Sy(0,e))},nonnegative(e){return this.check(Cy(0,e))},negative(e){return this.check(by(0,e))},nonpositive(e){return this.check(xy(0,e))},multipleOf(e,t){return this.check(wy(e,t))},step(e,t){return this.check(wy(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Zre(e){return hy(qy,e)}var Qre=V(`ZodNumberFormat`,(e,t)=>{rv.init(e,t),qy.init(e,t)});function Jy(e){return gy(Qre,e)}var $re=V(`ZodBoolean`,(e,t)=>{iv.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xne(e,t,n,r)});function eie(e){return _y($re,e)}var tie=V(`ZodUnknown`,(e,t)=>{av.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Yy(){return vy(tie)}var nie=V(`ZodNever`,(e,t)=>{ov.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zne(e,t,n,r)});function rie(e){return yy(nie,e)}var iie=V(`ZodArray`,(e,t)=>{cv.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tre(e,t,n,r),e.element=t.element,By(e,`ZodArray`,{min(e,t){return this.check(Ey(e,t))},nonempty(e){return this.check(Ey(1,e))},max(e,t){return this.check(Ty(e,t))},length(e,t){return this.check(Dy(e,t))},unwrap(){return this.element}})});function Xy(e,t){return Hne(iie,e,t)}var aie=V(`ZodObject`,(e,t)=>{pv.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nre(e,t,n,r),Sg(e,`shape`,()=>t.shape),By(e,`ZodObject`,{keyof(){return eb(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:Yy()})},loose(){return this.clone({...this._zod.def,catchall:Yy()})},strict(){return this.clone({...this._zod.def,catchall:rie()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Qte(this,e)},safeExtend(e){return $te(this,e)},merge(e){return ene(this,e)},pick(e){return Xte(this,e)},omit(e){return Zte(this,e)},partial(...e){return tne(tb,this,e[0])},required(...e){return nne(ib,this,e[0])}})});function Zy(e,t){return new aie({type:`object`,shape:e??{},...Mg(t)})}var oie=V(`ZodUnion`,(e,t)=>{hv.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rre(e,t,n,r),e.options=t.options});function sie(e,t){return new oie({type:`union`,options:e,...Mg(t)})}var cie=V(`ZodIntersection`,(e,t)=>{gv.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ire(e,t,n,r)});function lie(e,t){return new cie({type:`intersection`,left:e,right:t})}var Qy=V(`ZodRecord`,(e,t)=>{yv.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>are(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function uie(e,t,n){return!t||!t._zod?new Qy({type:`record`,keyType:Uy(),valueType:e,...Mg(t)}):new Qy({type:`record`,keyType:e,valueType:t,...Mg(n)})}var $y=V(`ZodEnum`,(e,t)=>{bv.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qne(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new $y({...t,checks:[],...Mg(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new $y({...t,checks:[],...Mg(r),entries:i})}});function eb(e,t){return new $y({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Mg(t)})}var die=V(`ZodTransform`,(e,t)=>{xv.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ere(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new pg(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Rg(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Rg(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function fie(e){return new die({type:`transform`,transform:e})}var tb=V(`ZodOptional`,(e,t)=>{Cv.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ly(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function nb(e){return new tb({type:`optional`,innerType:e})}var pie=V(`ZodExactOptional`,(e,t)=>{wv.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ly(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function mie(e){return new pie({type:`optional`,innerType:e})}var hie=V(`ZodNullable`,(e,t)=>{Tv.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ore(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function rb(e){return new hie({type:`nullable`,innerType:e})}var gie=V(`ZodDefault`,(e,t)=>{Ev.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cre(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function _ie(e,t){return new gie({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():kg(t)}})}var vie=V(`ZodPrefault`,(e,t)=>{Ov.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lre(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function yie(e,t){return new vie({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():kg(t)}})}var ib=V(`ZodNonOptional`,(e,t)=>{kv.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sre(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function bie(e,t){return new ib({type:`nonoptional`,innerType:e,...Mg(t)})}var xie=V(`ZodCatch`,(e,t)=>{jv.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ure(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Sie(e,t){return new xie({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Cie=V(`ZodPipe`,(e,t)=>{Mv.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dre(e,t,n,r),e.in=t.in,e.out=t.out});function ab(e,t){return new Cie({type:`pipe`,in:e,out:t})}var wie=V(`ZodReadonly`,(e,t)=>{Pv.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fre(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Tie(e){return new wie({type:`readonly`,innerType:e})}var Eie=V(`ZodCustom`,(e,t)=>{Iv.init(e,t),Vy.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$ne(e,t,n,r)});function Die(e,t={}){return Une(Eie,e,t)}function Oie(e,t){return Wne(e,t)}var ob=`spinifex:v1:aws-credentials`,sb=Zy({accessKeyId:Uy().min(16,`Access Key ID must be at least 16 characters`),secretAccessKey:Uy().min(1,`Secret Access Key is required`)}),cb;function lb(){if(cb!==void 0)return cb;try{let e=localStorage.getItem(ob);if(!e)return cb=null,null;let t=JSON.parse(e),n=sb.safeParse(t);return cb=n.success?n.data:null,cb}catch{return cb=null,null}}function kie(e){try{localStorage.setItem(ob,JSON.stringify(e)),cb=e}catch{cb=e}}function ub(){try{localStorage.removeItem(ob)}catch{}cb=null}var db=e=>new TextEncoder().encode(e),Aie=typeof Buffer<`u`&&Buffer.from?function(e){return Buffer.from(e,`utf8`)}:db;function fb(e){return e instanceof Uint8Array?e:typeof e==`string`?Aie(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function pb(e){return typeof e==`string`?e.length===0:e.byteLength===0}function mb(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}function hb(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}var Pie=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Fie=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Iie=2**53-1,Sb=function(){function e(){this.state=Int32Array.from(Fie),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error(`Attempted to update an already finished hash.`);var t=0,n=e.byteLength;if(this.bytesHashed+=n,this.bytesHashed*8>Iie)throw Error(`Cannot hash more than 2^53 - 1 bits`);for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%64>=56){for(var r=this.bufferLength;r<64;r++)t.setUint8(r,0);this.hashBuffer(),this.bufferLength=0}for(var r=this.bufferLength;r<56;r++)t.setUint8(r,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(32),r=0;r<8;r++)i[r*4]=this.state[r]>>>24&255,i[r*4+1]=this.state[r]>>>16&255,i[r*4+2]=this.state[r]>>>8&255,i[r*4+3]=this.state[r]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,n=e.state,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],d=0;d<64;d++){if(d<16)this.temp[d]=(t[d*4]&255)<<24|(t[d*4+1]&255)<<16|(t[d*4+2]&255)<<8|t[d*4+3]&255;else{var f=this.temp[d-2],p=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10;f=this.temp[d-15];var m=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(m+this.temp[d-16]|0)}var h=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&c^~s&l)|0)+(u+(Pie[d]+this.temp[d]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&a^i&a)|0;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]+=r,n[1]+=i,n[2]+=a,n[3]+=o,n[4]+=s,n[5]+=c,n[6]+=l,n[7]+=u},e}(),Lie=function(){function e(e){this.secret=e,this.hash=new Sb,this.reset()}return e.prototype.update=function(e){if(!(pb(e)||this.error))try{this.hash.update(fb(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return yb(this,void 0,void 0,function(){return bb(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new Sb,this.secret){this.outer=new Sb;var e=Rie(this.secret),t=new Uint8Array(64);t.set(e);for(var n=0;n<64;n++)e[n]^=54,t[n]^=92;this.hash.update(e),this.outer.update(t);for(var n=0;n64){var n=new Sb;n.update(t),t=n.digest()}var r=new Uint8Array(64);return r.set(t),r}var zie=[`decrypt`,`digest`,`encrypt`,`exportKey`,`generateKey`,`importKey`,`sign`,`verify`];function Cb(e){if(Bie(e)&&typeof e.crypto.subtle==`object`){var t=e.crypto.subtle;return Vie(t)}return!1}function Bie(e){return typeof e==`object`&&typeof e.crypto==`object`?typeof e.crypto.getRandomValues==`function`:!1}function Vie(e){return e&&zie.every(function(t){return typeof e[t]==`function`})}var wb=function(){function e(e){Cb(vb())?this.hash=new Nie(e):this.hash=new Lie(e)}return e.prototype.update=function(e,t){this.hash.update(fb(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),Tb=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),Eb=e=>({httpHandler:e.httpHandler()}),Db;(function(e){e.HTTP=`http`,e.HTTPS=`https`})(Db||={});var Ob;(function(e){e.MD5=`md5`,e.CRC32=`crc32`,e.CRC32C=`crc32c`,e.SHA1=`sha1`,e.SHA256=`sha256`})(Ob||={});var Hie=`__smithy_context`,kb=class e{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||`GET`,this.hostname=e.hostname||`localhost`,this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)===`:`?e.protocol:`${e.protocol}:`:`https:`,this.path=e.path?e.path.charAt(0)===`/`?e.path:`/${e.path}`:`/`,this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(t){let n=new e({...t,headers:{...t.headers}});return n.query&&=Uie(n.query),n}static isInstance(e){if(!e)return!1;let t=e;return`method`in t&&`protocol`in t&&`hostname`in t&&`path`in t&&typeof t.query==`object`&&typeof t.headers==`object`}clone(){return e.clone(this)}};function Uie(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}var Ab=class{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let t=e;return typeof t.statusCode==`number`&&typeof t.headers==`object`}},jb={},Mb={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),jb[e]=t,Mb[t]=e}function Nb(e){if(e.length%2!=0)throw Error(`Hex encoded strings must have an even number length`);let t=new Uint8Array(e.length/2);for(let n=0;nnew TextEncoder().encode(e),Ib=e=>typeof e==`string`?Fb(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),Lb=e=>{if(typeof e==`string`)return e;if(typeof e!=`object`||typeof e.byteOffset!=`number`||typeof e.byteLength!=`number`)throw Error(`@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.`);return new TextDecoder(`utf-8`).decode(e)},Wie=`X-Amz-Algorithm`,Gie=`X-Amz-Credential`,Rb=`X-Amz-Date`,Kie=`X-Amz-SignedHeaders`,qie=`X-Amz-Expires`,zb=`X-Amz-Signature`,Bb=`X-Amz-Security-Token`,Vb=`authorization`,Hb=Rb.toLowerCase(),Jie=[Vb,Hb,`date`];zb.toLowerCase();var Yie=`x-amz-content-sha256`,Xie=Bb.toLowerCase(),Zie={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Qie=/^proxy-/,$ie=/^sec-/,Ub=`AWS4-HMAC-SHA256`,eae=`AWS4-HMAC-SHA256-PAYLOAD`,tae=`UNSIGNED-PAYLOAD`,Wb=`aws4_request`,Gb={},Kb=[],qb=(e,t,n)=>`${e}/${t}/${n}/${Wb}`,nae=async(e,t,n,r,i)=>{let a=`${n}:${r}:${i}:${Pb(await Jb(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(a in Gb)return Gb[a];for(Kb.push(a);Kb.length>50;)delete Gb[Kb.shift()];let o=`AWS4${t.secretAccessKey}`;for(let t of[n,r,i,Wb])o=await Jb(e,o,t);return Gb[a]=o},Jb=(e,t,n)=>{let r=new e(t);return r.update(Ib(n)),r.digest()},Yb=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){if(e[i]==null)continue;let a=i.toLowerCase();(a in Zie||t?.has(a)||Qie.test(a)||$ie.test(a))&&(!n||n&&!n.has(a))||(r[a]=e[i].trim().replace(/\s+/g,` `))}return r},Xb=e=>typeof ArrayBuffer==`function`&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)===`[object ArrayBuffer]`,Zb=async({headers:e,body:t},n)=>{for(let t of Object.keys(e))if(t.toLowerCase()===`x-amz-content-sha256`)return e[t];if(t==null)return`e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`;if(typeof t==`string`||ArrayBuffer.isView(t)||Xb(t)){let e=new n;return e.update(Ib(t)),Pb(await e.digest())}return tae},rae=class{format(e){let t=[];for(let n of Object.keys(e)){let r=Fb(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}let n=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),r=0;for(let e of t)n.set(e,r),r+=e.byteLength;return n}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([+!e.value]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case`integer`:let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case`long`:let r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case`binary`:let i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(i.buffer);return a.set(e.value,3),a;case`string`:let o=Fb(e.value),s=new DataView(new ArrayBuffer(3+o.byteLength));s.setUint8(0,7),s.setUint16(1,o.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(o,3),c;case`timestamp`:let l=new Uint8Array(9);return l[0]=8,l.set(oae.fromNumber(e.value.valueOf()).bytes,1),l;case`uuid`:if(!aae.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let u=new Uint8Array(17);return u[0]=9,u.set(Nb(e.value.replace(/\-/g,``)),1),u}}},iae;(function(e){e[e.boolTrue=0]=`boolTrue`,e[e.boolFalse=1]=`boolFalse`,e[e.byte=2]=`byte`,e[e.short=3]=`short`,e[e.integer=4]=`integer`,e[e.long=5]=`long`,e[e.byteArray=6]=`byteArray`,e[e.string=7]=`string`,e[e.timestamp=8]=`timestamp`,e[e.uuid=9]=`uuid`})(iae||={});var aae=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,oae=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&Qb(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&Qb(e),parseInt(Pb(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function Qb(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var sae=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},cae=(e,t={})=>{let{headers:n,query:r={}}=kb.clone(e);for(let e of Object.keys(n)){let i=e.toLowerCase();(i.slice(0,6)===`x-amz-`&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i))&&(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}},$b=e=>{e=kb.clone(e);for(let t of Object.keys(e.headers))Jie.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},ex=e=>e.__smithy_context||={},tx=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},nx=e=>encodeURIComponent(e).replace(/[!'()*]/g,lae),lae=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,uae=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e)){if(r.toLowerCase()===`x-amz-signature`)continue;let i=nx(r);t.push(i);let a=e[r];typeof a==`string`?n[i]=`${i}=${nx(a)}`:Array.isArray(a)&&(n[i]=a.slice(0).reduce((e,t)=>e.concat([`${i}=${nx(t)}`]),[]).sort().join(`&`))}return t.sort().map(e=>n[e]).filter(e=>e).join(`&`)},dae=e=>fae(e).toISOString().replace(/\.\d{3}Z$/,`Z`),fae=e=>typeof e==`number`?new Date(e*1e3):typeof e==`string`?Number(e)?new Date(Number(e)*1e3):new Date(e):e,pae=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){this.service=r,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof e==`boolean`?e:!0,this.regionProvider=tx(n),this.credentialProvider=tx(t)}createCanonicalRequest(e,t,n){let r=Object.keys(t).sort();return`${e.method} +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Sy(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:wy(t,`input`,e.processors),output:wy(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Cy(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Cy(r.element,n);if(r.type===`set`)return Cy(r.valueType,n);if(r.type===`lazy`)return Cy(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return Cy(r.innerType,n);if(r.type===`intersection`)return Cy(r.left,n)||Cy(r.right,n);if(r.type===`record`||r.type===`map`)return Cy(r.keyType,n)||Cy(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Cy(r.in,n)||Cy(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Cy(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Cy(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Cy(e,n))return!0;return!!(r.rest&&Cy(r.rest,n))}return!1}var ire=(e,t={})=>n=>{let r=yy({...n,processors:t});return by(e,r),xy(r,e),Sy(r,e)},wy=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=yy({...i??{},target:a,io:t,processors:n});return by(e,o),xy(o,e),Sy(o,e)},are={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},ore=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=are[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},sre=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},cre=(e,t,n,r)=>{n.type=`boolean`},lre=(e,t,n,r)=>{n.not={}},ure=(e,t,n,r)=>{let i=e._zod.def,a=wg(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},dre=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},fre=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},pre=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=by(a.element,t,{...r,path:[...r.path,`items`]})},mre=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=by(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=by(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},hre=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>by(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},gre=(e,t,n,r)=>{let i=e._zod.def,a=by(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=by(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},_re=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=by(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=by(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=by(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},vre=(e,t,n,r)=>{let i=e._zod.def,a=by(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},yre=(e,t,n,r)=>{let i=e._zod.def;by(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},bre=(e,t,n,r)=>{let i=e._zod.def;by(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},xre=(e,t,n,r)=>{let i=e._zod.def;by(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Sre=(e,t,n,r)=>{let i=e._zod.def;by(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Cre=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;by(o,t,r);let s=t.seen.get(e);s.ref=o},wre=(e,t,n,r)=>{let i=e._zod.def;by(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Ty=(e,t,n,r)=>{let i=e._zod.def;by(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Tre=V(`ZodISODateTime`,(e,t)=>{Fv.init(e,t),My.init(e,t)});function Ere(e){return Pne(Tre,e)}var Dre=V(`ZodISODate`,(e,t)=>{Iv.init(e,t),My.init(e,t)});function Ore(e){return Fne(Dre,e)}var kre=V(`ZodISOTime`,(e,t)=>{Lv.init(e,t),My.init(e,t)});function Are(e){return Ine(kre,e)}var jre=V(`ZodISODuration`,(e,t)=>{Rv.init(e,t),My.init(e,t)});function Mre(e){return Lne(jre,e)}var Ey=V(`ZodError`,(e,t)=>{a_.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>c_(e,t)},flatten:{value:t=>s_(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Tg,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Tg,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),Nre=l_(Ey),Pre=d_(Ey),Fre=p_(Ey),Ire=h_(Ey),Lre=__(Ey),Rre=v_(Ey),zre=y_(Ey),Bre=b_(Ey),Vre=x_(Ey),Hre=S_(Ey),Ure=C_(Ey),Wre=w_(Ey),Dy=new WeakMap;function Oy(e,t,n){let r=Object.getPrototypeOf(e),i=Dy.get(r);if(i||(i=new Set,Dy.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var ky=V(`ZodType`,(e,t)=>(xv.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:wy(e,`input`),output:wy(e,`output`)}}),e.toJSONSchema=ire(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.parse=(t,n)=>Nre(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Fre(e,t,n),e.parseAsync=async(t,n)=>Pre(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Ire(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Lre(e,t,n),e.decode=(t,n)=>Rre(e,t,n),e.encodeAsync=async(t,n)=>zre(e,t,n),e.decodeAsync=async(t,n)=>Bre(e,t,n),e.safeEncode=(t,n)=>Vre(e,t,n),e.safeDecode=(t,n)=>Hre(e,t,n),e.safeEncodeAsync=async(t,n)=>Ure(e,t,n),e.safeDecodeAsync=async(t,n)=>Wre(e,t,n),Oy(e,`ZodType`,{check(...e){let t=this.def;return this.clone(Mg(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Bg(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(zie(e,t))},superRefine(e,t){return this.check(Bie(e,t))},overwrite(e){return this.check(vy(e))},optional(){return Wy(this)},exactOptional(){return Eie(this)},nullable(){return Gy(this)},nullish(){return Wy(Gy(this))},nonoptional(e){return Mie(this,e)},array(){return Ry(this)},or(e){return yie([this,e])},and(e){return xie(this,e)},transform(e){return qy(this,wie(e))},default(e){return kie(this,e)},prefault(e){return jie(this,e)},catch(e){return Pie(this,e)},pipe(e){return qy(this,e)},readonly(){return Lie(this)},describe(e){let t=this.clone();return cy.add(t,{description:e}),t},meta(...e){if(e.length===0)return cy.get(this);let t=this.clone();return cy.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,`description`,{get(){return cy.get(e)?.description},configurable:!0}),e)),Ay=V(`_ZodString`,(e,t)=>{Sv.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ore(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Oy(e,`_ZodString`,{regex(...e){return this.check(Une(...e))},includes(...e){return this.check(Kne(...e))},startsWith(...e){return this.check(qne(...e))},endsWith(...e){return this.check(Jne(...e))},min(...e){return this.check(gy(...e))},max(...e){return this.check(hy(...e))},length(...e){return this.check(_y(...e))},nonempty(...e){return this.check(gy(1,...e))},lowercase(e){return this.check(Wne(e))},uppercase(e){return this.check(Gne(e))},trim(){return this.check(Xne())},normalize(...e){return this.check(Yne(...e))},toLowerCase(){return this.check(Zne())},toUpperCase(){return this.check(Qne())},slugify(){return this.check($ne())}})}),Gre=V(`ZodString`,(e,t)=>{Sv.init(e,t),Ay.init(e,t),e.email=t=>e.check(pne(Kre,t)),e.url=t=>e.check(vne(qre,t)),e.jwt=t=>e.check(Nne(cie,t)),e.emoji=t=>e.check(yne(Jre,t)),e.guid=t=>e.check(ly(Ny,t)),e.uuid=t=>e.check(mne(Py,t)),e.uuidv4=t=>e.check(hne(Py,t)),e.uuidv6=t=>e.check(gne(Py,t)),e.uuidv7=t=>e.check(_ne(Py,t)),e.nanoid=t=>e.check(bne(Yre,t)),e.guid=t=>e.check(ly(Ny,t)),e.cuid=t=>e.check(xne(Xre,t)),e.cuid2=t=>e.check(Sne(Zre,t)),e.ulid=t=>e.check(Cne(Qre,t)),e.base64=t=>e.check(Ane(aie,t)),e.base64url=t=>e.check(jne(oie,t)),e.xid=t=>e.check(wne($re,t)),e.ksuid=t=>e.check(Tne(eie,t)),e.ipv4=t=>e.check(Ene(tie,t)),e.ipv6=t=>e.check(Dne(nie,t)),e.cidrv4=t=>e.check(One(rie,t)),e.cidrv6=t=>e.check(kne(iie,t)),e.e164=t=>e.check(Mne(sie,t)),e.datetime=t=>e.check(Ere(t)),e.date=t=>e.check(Ore(t)),e.time=t=>e.check(Are(t)),e.duration=t=>e.check(Mre(t))});function jy(e){return fne(Gre,e)}var My=V(`ZodStringFormat`,(e,t)=>{Cv.init(e,t),Ay.init(e,t)}),Kre=V(`ZodEmail`,(e,t)=>{Ev.init(e,t),My.init(e,t)}),Ny=V(`ZodGUID`,(e,t)=>{wv.init(e,t),My.init(e,t)}),Py=V(`ZodUUID`,(e,t)=>{Tv.init(e,t),My.init(e,t)}),qre=V(`ZodURL`,(e,t)=>{Dv.init(e,t),My.init(e,t)}),Jre=V(`ZodEmoji`,(e,t)=>{Ov.init(e,t),My.init(e,t)}),Yre=V(`ZodNanoID`,(e,t)=>{kv.init(e,t),My.init(e,t)}),Xre=V(`ZodCUID`,(e,t)=>{Av.init(e,t),My.init(e,t)}),Zre=V(`ZodCUID2`,(e,t)=>{jv.init(e,t),My.init(e,t)}),Qre=V(`ZodULID`,(e,t)=>{Mv.init(e,t),My.init(e,t)}),$re=V(`ZodXID`,(e,t)=>{Nv.init(e,t),My.init(e,t)}),eie=V(`ZodKSUID`,(e,t)=>{Pv.init(e,t),My.init(e,t)}),tie=V(`ZodIPv4`,(e,t)=>{zv.init(e,t),My.init(e,t)}),nie=V(`ZodIPv6`,(e,t)=>{Bv.init(e,t),My.init(e,t)}),rie=V(`ZodCIDRv4`,(e,t)=>{Vv.init(e,t),My.init(e,t)}),iie=V(`ZodCIDRv6`,(e,t)=>{Hv.init(e,t),My.init(e,t)}),aie=V(`ZodBase64`,(e,t)=>{Wv.init(e,t),My.init(e,t)}),oie=V(`ZodBase64URL`,(e,t)=>{zte.init(e,t),My.init(e,t)}),sie=V(`ZodE164`,(e,t)=>{Bte.init(e,t),My.init(e,t)}),cie=V(`ZodJWT`,(e,t)=>{Hte.init(e,t),My.init(e,t)}),Fy=V(`ZodNumber`,(e,t)=>{Kv.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sre(e,t,n,r),Oy(e,`ZodNumber`,{gt(e,t){return this.check(fy(e,t))},gte(e,t){return this.check(py(e,t))},min(e,t){return this.check(py(e,t))},lt(e,t){return this.check(uy(e,t))},lte(e,t){return this.check(dy(e,t))},max(e,t){return this.check(dy(e,t))},int(e){return this.check(Iy(e))},safe(e){return this.check(Iy(e))},positive(e){return this.check(fy(0,e))},nonnegative(e){return this.check(py(0,e))},negative(e){return this.check(uy(0,e))},nonpositive(e){return this.check(dy(0,e))},multipleOf(e,t){return this.check(my(e,t))},step(e,t){return this.check(my(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function lie(e){return Rne(Fy,e)}var uie=V(`ZodNumberFormat`,(e,t)=>{Ute.init(e,t),Fy.init(e,t)});function Iy(e){return zne(uie,e)}var die=V(`ZodBoolean`,(e,t)=>{Wte.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cre(e,t,n,r)});function fie(e){return Bne(die,e)}var pie=V(`ZodUnknown`,(e,t)=>{Gte.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Ly(){return Vne(pie)}var mie=V(`ZodNever`,(e,t)=>{Kte.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lre(e,t,n,r)});function hie(e){return Hne(mie,e)}var gie=V(`ZodArray`,(e,t)=>{qte.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pre(e,t,n,r),e.element=t.element,Oy(e,`ZodArray`,{min(e,t){return this.check(gy(e,t))},nonempty(e){return this.check(gy(1,e))},max(e,t){return this.check(hy(e,t))},length(e,t){return this.check(_y(e,t))},unwrap(){return this.element}})});function Ry(e,t){return ere(gie,e,t)}var _ie=V(`ZodObject`,(e,t)=>{Yte.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mre(e,t,n,r),Ag(e,`shape`,()=>t.shape),Oy(e,`ZodObject`,{keyof(){return Hy(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:Ly()})},loose(){return this.clone({...this._zod.def,catchall:Ly()})},strict(){return this.clone({...this._zod.def,catchall:hie()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Kg(this,e)},safeExtend(e){return qg(this,e)},merge(e){return Jg(this,e)},pick(e){return Wg(this,e)},omit(e){return Gg(this,e)},partial(...e){return Yg(Uy,this,e[0])},required(...e){return Xg(Ky,this,e[0])}})});function zy(e,t){return new _ie({type:`object`,shape:e??{},...Vg(t)})}var vie=V(`ZodUnion`,(e,t)=>{Xte.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hre(e,t,n,r),e.options=t.options});function yie(e,t){return new vie({type:`union`,options:e,...Vg(t)})}var bie=V(`ZodIntersection`,(e,t)=>{Zte.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gre(e,t,n,r)});function xie(e,t){return new bie({type:`intersection`,left:e,right:t})}var By=V(`ZodRecord`,(e,t)=>{Qte.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_re(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function Sie(e,t,n){return!t||!t._zod?new By({type:`record`,keyType:jy(),valueType:e,...Vg(t)}):new By({type:`record`,keyType:e,valueType:t,...Vg(n)})}var Vy=V(`ZodEnum`,(e,t)=>{$te.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ure(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Vy({...t,checks:[],...Vg(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Vy({...t,checks:[],...Vg(r),entries:i})}});function Hy(e,t){return new Vy({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Vg(t)})}var Cie=V(`ZodTransform`,(e,t)=>{ene.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fre(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new xg(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(r_(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(r_(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function wie(e){return new Cie({type:`transform`,transform:e})}var Uy=V(`ZodOptional`,(e,t)=>{ty.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ty(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Wy(e){return new Uy({type:`optional`,innerType:e})}var Tie=V(`ZodExactOptional`,(e,t)=>{tne.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ty(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Eie(e){return new Tie({type:`optional`,innerType:e})}var Die=V(`ZodNullable`,(e,t)=>{nne.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vre(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Gy(e){return new Die({type:`nullable`,innerType:e})}var Oie=V(`ZodDefault`,(e,t)=>{rne.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bre(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function kie(e,t){return new Oie({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Lg(t)}})}var Aie=V(`ZodPrefault`,(e,t)=>{ine.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xre(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function jie(e,t){return new Aie({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Lg(t)}})}var Ky=V(`ZodNonOptional`,(e,t)=>{ane.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yre(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Mie(e,t){return new Ky({type:`nonoptional`,innerType:e,...Vg(t)})}var Nie=V(`ZodCatch`,(e,t)=>{one.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sre(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Pie(e,t){return new Nie({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Fie=V(`ZodPipe`,(e,t)=>{sne.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cre(e,t,n,r),e.in=t.in,e.out=t.out});function qy(e,t){return new Fie({type:`pipe`,in:e,out:t})}var Iie=V(`ZodReadonly`,(e,t)=>{cne.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wre(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Lie(e){return new Iie({type:`readonly`,innerType:e})}var Rie=V(`ZodCustom`,(e,t)=>{lne.init(e,t),ky.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dre(e,t,n,r)});function zie(e,t={}){return tre(Rie,e,t)}function Bie(e,t){return nre(e,t)}var Jy=`spinifex:v1:aws-credentials`,Yy=zy({accessKeyId:jy().min(16,`Access Key ID must be at least 16 characters`),secretAccessKey:jy().min(1,`Secret Access Key is required`)}),Xy;function Zy(){if(Xy!==void 0)return Xy;try{let e=localStorage.getItem(Jy);if(!e)return Xy=null,null;let t=JSON.parse(e),n=Yy.safeParse(t);return Xy=n.success?n.data:null,Xy}catch{return Xy=null,null}}function Vie(e){try{localStorage.setItem(Jy,JSON.stringify(e)),Xy=e}catch{Xy=e}}function Qy(){try{localStorage.removeItem(Jy)}catch{}Xy=null}var $y=e=>new TextEncoder().encode(e),Hie=typeof Buffer<`u`&&Buffer.from?function(e){return Buffer.from(e,`utf8`)}:$y;function eb(e){return e instanceof Uint8Array?e:typeof e==`string`?Hie(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function tb(e){return typeof e==`string`?e.length===0:e.byteLength===0}function nb(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}function rb(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}var Kie=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),qie=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Jie=2**53-1,ub=function(){function e(){this.state=Int32Array.from(qie),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error(`Attempted to update an already finished hash.`);var t=0,n=e.byteLength;if(this.bytesHashed+=n,this.bytesHashed*8>Jie)throw Error(`Cannot hash more than 2^53 - 1 bits`);for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%64>=56){for(var r=this.bufferLength;r<64;r++)t.setUint8(r,0);this.hashBuffer(),this.bufferLength=0}for(var r=this.bufferLength;r<56;r++)t.setUint8(r,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(32),r=0;r<8;r++)i[r*4]=this.state[r]>>>24&255,i[r*4+1]=this.state[r]>>>16&255,i[r*4+2]=this.state[r]>>>8&255,i[r*4+3]=this.state[r]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,n=e.state,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],d=0;d<64;d++){if(d<16)this.temp[d]=(t[d*4]&255)<<24|(t[d*4+1]&255)<<16|(t[d*4+2]&255)<<8|t[d*4+3]&255;else{var f=this.temp[d-2],p=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10;f=this.temp[d-15];var m=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(m+this.temp[d-16]|0)}var h=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&c^~s&l)|0)+(u+(Kie[d]+this.temp[d]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&a^i&a)|0;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]+=r,n[1]+=i,n[2]+=a,n[3]+=o,n[4]+=s,n[5]+=c,n[6]+=l,n[7]+=u},e}(),Yie=function(){function e(e){this.secret=e,this.hash=new ub,this.reset()}return e.prototype.update=function(e){if(!(tb(e)||this.error))try{this.hash.update(eb(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return sb(this,void 0,void 0,function(){return cb(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new ub,this.secret){this.outer=new ub;var e=Xie(this.secret),t=new Uint8Array(64);t.set(e);for(var n=0;n<64;n++)e[n]^=54,t[n]^=92;this.hash.update(e),this.outer.update(t);for(var n=0;n64){var n=new ub;n.update(t),t=n.digest()}var r=new Uint8Array(64);return r.set(t),r}var Zie=[`decrypt`,`digest`,`encrypt`,`exportKey`,`generateKey`,`importKey`,`sign`,`verify`];function db(e){if(Qie(e)&&typeof e.crypto.subtle==`object`){var t=e.crypto.subtle;return $ie(t)}return!1}function Qie(e){return typeof e==`object`&&typeof e.crypto==`object`?typeof e.crypto.getRandomValues==`function`:!1}function $ie(e){return e&&Zie.every(function(t){return typeof e[t]==`function`})}var fb=function(){function e(e){db(ob())?this.hash=new Gie(e):this.hash=new Yie(e)}return e.prototype.update=function(e,t){this.hash.update(eb(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),pb=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),mb=e=>({httpHandler:e.httpHandler()}),hb;(function(e){e.HTTP=`http`,e.HTTPS=`https`})(hb||={});var gb;(function(e){e.MD5=`md5`,e.CRC32=`crc32`,e.CRC32C=`crc32c`,e.SHA1=`sha1`,e.SHA256=`sha256`})(gb||={});var eae=`__smithy_context`,_b=class e{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||`GET`,this.hostname=e.hostname||`localhost`,this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)===`:`?e.protocol:`${e.protocol}:`:`https:`,this.path=e.path?e.path.charAt(0)===`/`?e.path:`/${e.path}`:`/`,this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(t){let n=new e({...t,headers:{...t.headers}});return n.query&&=tae(n.query),n}static isInstance(e){if(!e)return!1;let t=e;return`method`in t&&`protocol`in t&&`hostname`in t&&`path`in t&&typeof t.query==`object`&&typeof t.headers==`object`}clone(){return e.clone(this)}};function tae(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}var vb=class{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let t=e;return typeof t.statusCode==`number`&&typeof t.headers==`object`}},yb={},bb={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),yb[e]=t,bb[t]=e}function xb(e){if(e.length%2!=0)throw Error(`Hex encoded strings must have an even number length`);let t=new Uint8Array(e.length/2);for(let n=0;nnew TextEncoder().encode(e),wb=e=>typeof e==`string`?Cb(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),Tb=e=>{if(typeof e==`string`)return e;if(typeof e!=`object`||typeof e.byteOffset!=`number`||typeof e.byteLength!=`number`)throw Error(`@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.`);return new TextDecoder(`utf-8`).decode(e)},nae=`X-Amz-Algorithm`,rae=`X-Amz-Credential`,Eb=`X-Amz-Date`,iae=`X-Amz-SignedHeaders`,aae=`X-Amz-Expires`,Db=`X-Amz-Signature`,Ob=`X-Amz-Security-Token`,kb=`authorization`,Ab=Eb.toLowerCase(),oae=[kb,Ab,`date`];Db.toLowerCase();var jb=`x-amz-content-sha256`,Mb=Ob.toLowerCase(),Nb={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Pb=/^proxy-/,Fb=/^sec-/,Ib=`AWS4-HMAC-SHA256`,Lb=`AWS4-HMAC-SHA256-PAYLOAD`,Rb=`UNSIGNED-PAYLOAD`,zb=`aws4_request`,Bb={},Vb=[],Hb=(e,t,n)=>`${e}/${t}/${n}/${zb}`,Ub=async(e,t,n,r,i)=>{let a=`${n}:${r}:${i}:${Sb(await Wb(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(a in Bb)return Bb[a];for(Vb.push(a);Vb.length>50;)delete Bb[Vb.shift()];let o=`AWS4${t.secretAccessKey}`;for(let t of[n,r,i,zb])o=await Wb(e,o,t);return Bb[a]=o},Wb=(e,t,n)=>{let r=new e(t);return r.update(wb(n)),r.digest()},Gb=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){if(e[i]==null)continue;let a=i.toLowerCase();(a in Nb||t?.has(a)||Pb.test(a)||Fb.test(a))&&(!n||n&&!n.has(a))||(r[a]=e[i].trim().replace(/\s+/g,` `))}return r},Kb=e=>typeof ArrayBuffer==`function`&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)===`[object ArrayBuffer]`,qb=async({headers:e,body:t},n)=>{for(let t of Object.keys(e))if(t.toLowerCase()===`x-amz-content-sha256`)return e[t];if(t==null)return`e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`;if(typeof t==`string`||ArrayBuffer.isView(t)||Kb(t)){let e=new n;return e.update(wb(t)),Sb(await e.digest())}return Rb},Jb=class{format(e){let t=[];for(let n of Object.keys(e)){let r=Cb(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}let n=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),r=0;for(let e of t)n.set(e,r),r+=e.byteLength;return n}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([+!e.value]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case`integer`:let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case`long`:let r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case`binary`:let i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(i.buffer);return a.set(e.value,3),a;case`string`:let o=Cb(e.value),s=new DataView(new ArrayBuffer(3+o.byteLength));s.setUint8(0,7),s.setUint16(1,o.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(o,3),c;case`timestamp`:let l=new Uint8Array(9);return l[0]=8,l.set(Zb.fromNumber(e.value.valueOf()).bytes,1),l;case`uuid`:if(!Xb.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let u=new Uint8Array(17);return u[0]=9,u.set(xb(e.value.replace(/\-/g,``)),1),u}}},Yb;(function(e){e[e.boolTrue=0]=`boolTrue`,e[e.boolFalse=1]=`boolFalse`,e[e.byte=2]=`byte`,e[e.short=3]=`short`,e[e.integer=4]=`integer`,e[e.long=5]=`long`,e[e.byteArray=6]=`byteArray`,e[e.string=7]=`string`,e[e.timestamp=8]=`timestamp`,e[e.uuid=9]=`uuid`})(Yb||={});var Xb=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,Zb=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&Qb(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&Qb(e),parseInt(Sb(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function Qb(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var $b=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},ex=(e,t={})=>{let{headers:n,query:r={}}=_b.clone(e);for(let e of Object.keys(n)){let i=e.toLowerCase();(i.slice(0,6)===`x-amz-`&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i))&&(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}},tx=e=>{e=_b.clone(e);for(let t of Object.keys(e.headers))oae.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},nx=e=>e.__smithy_context||={},rx=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},ix=e=>encodeURIComponent(e).replace(/[!'()*]/g,ax),ax=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,ox=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e)){if(r.toLowerCase()===`x-amz-signature`)continue;let i=ix(r);t.push(i);let a=e[r];typeof a==`string`?n[i]=`${i}=${ix(a)}`:Array.isArray(a)&&(n[i]=a.slice(0).reduce((e,t)=>e.concat([`${i}=${ix(t)}`]),[]).sort().join(`&`))}return t.sort().map(e=>n[e]).filter(e=>e).join(`&`)},sx=e=>cx(e).toISOString().replace(/\.\d{3}Z$/,`Z`),cx=e=>typeof e==`number`?new Date(e*1e3):typeof e==`string`?Number(e)?new Date(Number(e)*1e3):new Date(e):e,lx=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){this.service=r,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof e==`boolean`?e:!0,this.regionProvider=rx(n),this.credentialProvider=rx(t)}createCanonicalRequest(e,t,n){let r=Object.keys(t).sort();return`${e.method} ${this.getCanonicalPath(e)} -${uae(e)} +${ox(e)} ${r.map(e=>`${e}:${t[e]}`).join(` `)} ${r.join(`;`)} -${n}`}async createStringToSign(e,t,n,r){let i=new this.sha256;return i.update(Ib(n)),`${r} +${n}`}async createStringToSign(e,t,n,r){let i=new this.sha256;return i.update(wb(n)),`${r} ${e} ${t} -${Pb(await i.digest())}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let n of e.split(`/`))n?.length!==0&&n!==`.`&&(n===`..`?t.pop():t.push(n));return nx(`${e?.startsWith(`/`)?`/`:``}${t.join(`/`)}${t.length>0&&e?.endsWith(`/`)?`/`:``}`).replace(/%2F/g,`/`)}return e}validateResolvedCredentials(e){if(typeof e!=`object`||typeof e.accessKeyId!=`string`||typeof e.secretAccessKey!=`string`)throw Error(`Resolved credential object is not valid`)}formatDate(e){let t=dae(e).replace(/[\-:]/g,``);return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(`;`)}},rx=class extends pae{headerFormatter=new rae;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a})}async presign(e,t={}){let{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:o,hoistableHeaders:s,signingRegion:c,signingService:l}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);let d=c??await this.regionProvider(),{longDate:f,shortDate:p}=this.formatDate(n);if(r>604800)return Promise.reject(`Signature version 4 presigned URLs must have an expiration date less than one week in the future`);let m=qb(p,d,l??this.service),h=cae($b(e),{unhoistableHeaders:a,hoistableHeaders:s});u.sessionToken&&(h.query[Bb]=u.sessionToken),h.query[Wie]=Ub,h.query[Gie]=`${u.accessKeyId}/${m}`,h.query[Rb]=f,h.query[qie]=r.toString(10);let g=Yb(h,i,o);return h.query[Kie]=this.getCanonicalHeaderList(g),h.query[zb]=await this.getSignature(f,m,this.getSigningKey(u,d,p,l),this.createCanonicalRequest(h,g,await Zb(e,this.sha256))),h}async sign(e,t){return typeof e==`string`?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:r,signingRegion:i,signingService:a,eventStreamCredentials:o}){let s=i??await this.regionProvider(),{shortDate:c,longDate:l}=this.formatDate(n),u=qb(c,s,a??this.service),d=await Zb({headers:{},body:t},this.sha256),f=new this.sha256;f.update(e);let p=[eae,l,u,r,Pb(await f.digest()),d].join(` -`);return this.signString(p,{signingDate:n,signingRegion:s,signingService:a,eventStreamCredentials:o})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature,eventStreamCredentials:i}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}={}){let a=i??await this.credentialProvider();this.validateResolvedCredentials(a);let o=n??await this.regionProvider(),{shortDate:s}=this.formatDate(t),c=new this.sha256(await this.getSigningKey(a,o,s,r));return c.update(Ib(e)),Pb(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:i,signingService:a}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let s=i??await this.regionProvider(),c=$b(e),{longDate:l,shortDate:u}=this.formatDate(t),d=qb(u,s,a??this.service);c.headers[Hb]=l,o.sessionToken&&(c.headers[Xie]=o.sessionToken);let f=await Zb(c,this.sha256);!sae(`x-amz-content-sha256`,c.headers)&&this.applyChecksum&&(c.headers[Yie]=f);let p=Yb(c,r,n),m=await this.getSignature(l,d,this.getSigningKey(o,s,u,a),this.createCanonicalRequest(c,p,f));return c.headers[Vb]=`${Ub} Credential=${o.accessKeyId}/${d}, SignedHeaders=${this.getCanonicalHeaderList(p)}, Signature=${m}`,c}async getSignature(e,t,n,r){let i=await this.createStringToSign(e,t,r,Ub),a=new this.sha256(await n);return a.update(Ib(i)),Pb(await a.digest())}getSigningKey(e,t,n,r){return nae(this.sha256,e,n,t,r||this.service)}},ix={SignatureV4a:null},mae=`ap-southeast-2`,ax=9999,hae=class extends Error{status;constructor(e,t,n){super(e),this.name=t,this.status=n}};function ox(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 sx({action:e,credentials:t,service:n=`spinifex`}){let r=window.location.protocol.replace(`:`,``),i=`Action=${e}`,a=new kb({method:`POST`,protocol:r,hostname:`localhost`,port:ax,path:`/`,headers:{host:`localhost:${ax}`,"content-type":`application/x-www-form-urlencoded`},body:i}),o=await new rx({credentials:{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey},region:mae,service:n,sha256:wb}).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=ox(t,`Code`),r=ox(t,`Message`)??t;throw new hae(`${e} failed: ${l.status}${r?` - ${r}`:``}`,n??`SignedFetchError`,l.status)}return await l.json()}var gae=`000000000001`,cx=(0,P.createContext)(void 0);function _ae({children:e}){let[t,n]=(0,P.useState)({isAdmin:!1,accountId:null,userName:null,version:null,license:null,loading:!0});return(0,P.useEffect)(()=>{async function e(){let e=lb();if(!e){n(e=>({...e,loading:!1}));return}try{let t=await sx({action:`GetCallerIdentity`,credentials:e}),r=t.account_id===gae,i=null;if(r)try{i=await sx({action:`GetVersion`,credentials:e})}catch{}n({isAdmin:r,accountId:t.account_id,userName:t.user_name,version:i,license:i?.license??null,loading:!1})}catch{n(e=>({...e,loading:!1}))}}e()},[]),(0,F.jsx)(cx,{value:t,children:e})}function lx(){let e=(0,P.useContext)(cx);if(e===void 0)throw Error(`useAdmin must be used within an AdminProvider`);return e}var vae=new Set([`InvalidClientTokenId`,`SignatureDoesNotMatch`,`AuthFailure`,`MissingAuthenticationToken`,`IncompleteSignature`,`UnrecognizedClientException`,`ExpiredToken`,`ExpiredTokenException`,`InvalidAccessKeyId`]);function yae(e){if(typeof e!=`object`||!e||!(`name`in e))return!1;let{name:t}=e;return typeof t==`string`&&vae.has(t)}function bae(e,t,n){return e.$source||={},e.$source[t]=n,e}var xae=e=>e?.body instanceof ReadableStream,ux=(e,t)=>{let n=[];if(e&&n.push(e),t)for(let e of t)n.push(e);return n},dx=(e,t)=>`${e||`anonymous`}${t&&t.length>0?` (a.k.a. ${t.join(`,`)})`:``}`,fx=()=>{let e=[],t=[],n=!1,r=new Set,i=e=>e.sort((e,t)=>px[t.step]-px[e.step]||mx[t.priority||`normal`]-mx[e.priority||`normal`]),a=n=>{let i=!1,a=e=>{let t=ux(e.name,e.aliases);if(t.includes(n)){i=!0;for(let e of t)r.delete(e);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},o=n=>{let i=!1,a=e=>{if(e.middleware===n){i=!0;for(let t of ux(e.name,e.aliases))r.delete(t);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},s=n=>(e.forEach(e=>{n.add(e.middleware,{...e})}),t.forEach(e=>{n.addRelativeTo(e.middleware,{...e})}),n.identifyOnResolve?.(u.identifyOnResolve()),n),c=e=>{let t=[];return e.before.forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t.push(e),e.after.reverse().forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t},l=(n=!1)=>{let r=[],a=[],o={};return e.forEach(e=>{let t={...e,before:[],after:[]};for(let e of ux(t.name,t.aliases))o[e]=t;r.push(t)}),t.forEach(e=>{let t={...e,before:[],after:[]};for(let e of ux(t.name,t.aliases))o[e]=t;a.push(t)}),a.forEach(e=>{if(e.toMiddleware){let t=o[e.toMiddleware];if(t===void 0){if(n)return;throw Error(`${e.toMiddleware} is not found when adding ${dx(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}e.relation===`after`&&t.after.push(e),e.relation===`before`&&t.before.push(e)}}),i(r).map(c).reduce((e,t)=>(e.push(...t),e),[])},u={add:(t,n={})=>{let{name:i,override:a,aliases:o}=n,s={step:`initialize`,priority:`normal`,middleware:t,...n},c=ux(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${dx(i,o)}'`);for(let t of c){let n=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(n===-1)continue;let r=e[n];if(r.step!==s.step||s.priority!==r.priority)throw Error(`"${dx(r.name,r.aliases)}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by "${dx(i,o)}" middleware with ${s.priority} priority in ${s.step} step.`);e.splice(n,1)}}for(let e of c)r.add(e)}e.push(s)},addRelativeTo:(e,n)=>{let{name:i,override:a,aliases:o}=n,s={middleware:e,...n},c=ux(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${dx(i,o)}'`);for(let e of c){let n=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(n===-1)continue;let r=t[n];if(r.toMiddleware!==s.toMiddleware||r.relation!==s.relation)throw Error(`"${dx(r.name,r.aliases)}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by "${dx(i,o)}" middleware ${s.relation} "${s.toMiddleware}" middleware.`);t.splice(n,1)}}for(let e of c)r.add(e)}t.push(s)},clone:()=>s(fx()),use:e=>{e.applyToStack(u)},remove:e=>typeof e==`string`?a(e):o(e),removeByTag:n=>{let i=!1,a=e=>{let{tags:t,name:a,aliases:o}=e;if(t&&t.includes(n)){let e=ux(a,o);for(let t of e)r.delete(t);return i=!0,!1}return!0};return e=e.filter(a),t=t.filter(a),i},concat:e=>{let t=s(fx());return t.use(e),t.identifyOnResolve(n||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:s,identify:()=>l(!0).map(e=>{let t=e.step??e.relation+` `+e.toMiddleware;return dx(e.name,e.aliases)+` - `+t}),identifyOnResolve(e){return typeof e==`boolean`&&(n=e),n},resolve:(e,t)=>{for(let n of l().map(e=>e.middleware).reverse())e=n(e,t);return n&&console.log(u.identify()),e}};return u},px={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},mx={high:3,normal:2,low:1},hx;(function(e){e.HTTP=`http`,e.HTTPS=`https`})(hx||={});var gx;(function(e){e.MD5=`md5`,e.CRC32=`crc32`,e.CRC32C=`crc32c`,e.SHA1=`sha1`,e.SHA256=`sha256`})(gx||={});var Sae=`__smithy_context`,_x=e=>e.__smithy_context||={},vx=class e{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||`GET`,this.hostname=e.hostname||`localhost`,this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)===`:`?e.protocol:`${e.protocol}:`:`https:`,this.path=e.path?e.path.charAt(0)===`/`?e.path:`/${e.path}`:`/`,this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(t){let n=new e({...t,headers:{...t.headers}});return n.query&&=Cae(n.query),n}static isInstance(e){if(!e)return!1;let t=e;return`method`in t&&`protocol`in t&&`hostname`in t&&`path`in t&&typeof t.query==`object`&&typeof t.headers==`object`}clone(){return e.clone(this)}};function Cae(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}var yx=class{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let t=e;return typeof t.statusCode==`number`&&typeof t.headers==`object`}},wae=RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`),bx=(e,t=!1)=>{if(!t)return wae.test(e);let n=e.split(`.`);for(let e of n)if(!bx(e))return!1;return!0},xx=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t};function Tae(e){let t={};if(e=e.replace(/^\?/,``),e)for(let n of e.split(`&`)){let[e,r=null]=n.split(`=`);e=decodeURIComponent(e),r&&=decodeURIComponent(r),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}var Sx=e=>{if(typeof e==`string`)return Sx(new URL(e));let{hostname:t,pathname:n,port:r,protocol:i,search:a}=e,o;return a&&(o=Tae(a)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}},Cx=e=>{if(typeof e==`object`){if(`url`in e){let t=Sx(e.url);if(e.headers){t.headers={};for(let n in e.headers)t.headers[n.toLowerCase()]=e.headers[n].join(`, `)}return t}return e}return Sx(e)},Eae=e=>()=>Promise.reject(e),Dae=class{config;middlewareStack=fx();initConfig;handlers;constructor(e){this.config=e;let{protocol:t,protocolSettings:n}=e;n&&typeof t==`function`&&(e.protocol=new t(n))}send(e,t,n){let r=typeof t==`function`?void 0:t,i=typeof t==`function`?t:n,a=r===void 0&&this.config.cacheMiddleware===!0,o;if(a){this.handlers||=new WeakMap;let t=this.handlers;t.has(e.constructor)?o=t.get(e.constructor):(o=e.resolveMiddleware(this.middlewareStack,this.config,r),t.set(e.constructor,o))}else delete this.handlers,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(i)o(e).then(e=>i(null,e.output),e=>i(e)).catch(()=>{});else return o(e).then(e=>e.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}},wx=e=>typeof e==`function`?e():e,Tx=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i}),Oae=e=>(t,n)=>async r=>{let{response:i}=await t(r),{operationSchema:a}=_x(n),[,o,s,c,l,u]=a??[];try{return{response:i,output:await e.protocol.deserializeResponse(Tx(o,s,c,l,u),{...e,...n},i)}}catch(e){if(Object.defineProperty(e,`$response`,{value:i,enumerable:!1,writable:!1,configurable:!1}),!(`$metadata`in e)){let t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+=` - `+t}catch{!n.logger||n.logger?.constructor?.name===`NoOpLogger`?console.warn(t):n.logger?.warn?.(t)}e.$responseBodyText!==void 0&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(yx.isInstance(i)){let{headers:t={},statusCode:n}=i,r=Object.entries(t);e.$metadata={httpStatusCode:n,requestId:Ex(/^x-[\w-]+-request-?id$/,r),extendedRequestId:Ex(/^x-[\w-]+-id-2$/,r),cfId:Ex(/^x-[\w-]+-cf-id$/,r)}}}catch{}}throw e}},Ex=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1],kae=e=>(t,n)=>async r=>{let{operationSchema:i}=_x(n),[,a,o,s,c,l]=i??[],u=n.endpointV2?async()=>Cx(n.endpointV2):e.endpoint,d=await e.protocol.serializeRequest(Tx(a,o,s,c,l),r.input,{...e,...n,endpoint:u});return t({...r,request:d})},Aae={name:`deserializerMiddleware`,step:`deserialize`,tags:[`DESERIALIZER`],override:!0},jae={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0};function Mae(e){return{applyToStack:t=>{t.add(kae(e),jae),t.add(Oae(e),Aae),e.protocol.setSerdeContext(e)}}}var Dx=[];function Ox(e){if(typeof e==`object`)return e;if(e|=0,Dx[e])return Dx[e];let t={},n=0;for(let r of[`httpLabel`,`idempotent`,`idempotencyToken`,`sensitive`,`httpPayload`,`httpResponseCode`,`httpQueryParams`])(e>>n++&1)==1&&(t[r]=1);return Dx[e]=t}var kx={it:Symbol.for(`@smithy/nor-struct-it`),ns:Symbol.for(`@smithy/ns`)},Ax=[],jx={},Mx=class e{ref;memberName;static symbol=Symbol.for(`@smithy/nor`);symbol=e.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;let r=[],i=t,a=t;for(this._isMemberSchema=!1;Px(i);)r.push(i[1]),i=i[0],a=wx(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){let t=r[e];Object.assign(this.memberTraits,Ox(t))}}else this.memberTraits=0;if(a instanceof e){let e=this.memberTraits;Object.assign(this,a),this.memberTraits=Object.assign({},e,a.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??a.memberName;return}if(this.schema=wx(a),Nae(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(a),this.traits=0),this._isMemberSchema&&!n)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return!t&&typeof e==`object`&&e?e.symbol===this.symbol:t}static of(t){let n=typeof t==`function`||typeof t==`object`&&!!t;if(typeof t==`number`){if(Ax[t])return Ax[t]}else if(typeof t==`string`){if(jx[t])return jx[t]}else if(n&&t[kx.ns])return t[kx.ns];let r=wx(t);if(r instanceof e)return r;if(Px(r)){let[n,i]=r;if(n instanceof e)return Object.assign(n.getMergedTraits(),Ox(i)),n;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let i=new e(r);return n?t[kx.ns]=i:typeof r==`string`?jx[r]=i:typeof r==`number`?Ax[r]=i:i}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:t}=this;return!e&&t&&t.includes(`#`)?t.split(`#`)[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e==`number`?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e==`number`?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!=`object`)return!1;let t=e[0];return t===3||t===-3||t===4}isUnionSchema(){let e=this.getSchema();return typeof e==`object`?e[0]===4:!1}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e==`number`&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()===`unit`}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??={...this.getOwnTraits(),...this.getMemberTraits()}}getMemberTraits(){return Ox(this.memberTraits)}getOwnTraits(){return Ox(this.traits)}getKeySchema(){let[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema();return Nx([e?15:n[4]??0,0],`key`)}getValueSchema(){let e=this.getSchema(),[t,n,r]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i=typeof e==`number`?63&e:e&&typeof e==`object`&&(n||r)?e[3+e[0]]:t?15:void 0;if(i!=null)return Nx([i,0],n?`value`:`member`);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){let n=t[4].indexOf(e),r=t[5][n];return Nx(Px(r)?r:[r,0],e)}if(this.isDocumentSchema())return Nx([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[t,n]of this.structIterator())e[t]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e}return``}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error(`@smithy/core/schema - cannot iterate non-struct schema.`);let e=this.getSchema(),t=e[4].length,n=e[kx.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let r=0;rArray.isArray(e)&&e.length===2,Nae=e=>Array.isArray(e)&&e.length>=5,Fx=class e{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e,this.schemas=t,this.exceptions=n}static for(t){return e.registries.has(t)||e.registries.set(t,new e(t)),e.registries.get(t)}copyFrom(e){let{schemas:t,exceptions:n}=this;for(let[n,r]of e.schemas)t.has(n)||t.set(n,r);for(let[t,r]of e.exceptions)n.has(t)||n.set(t,r)}register(t,n){let r=this.normalizeShapeId(t);for(let t of[this,e.for(r.split(`#`)[0])])t.schemas.set(r,n)}getSchema(e){let t=this.normalizeShapeId(e);if(!this.schemas.has(t)){if(!e.includes(`#`)){let t=`#`+e,n=[];for(let[e,r]of this.schemas.entries())e.endsWith(t)&&n.push(r);if(n.length===1)return n[0]}throw Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(t,n){let r=t,i=r[1];for(let t of[this,e.for(i)])t.schemas.set(i+`#`+r[2],r),t.exceptions.set(r,n)}getErrorCtor(t){let n=t;return this.exceptions.has(n)?this.exceptions.get(n):e.for(n[1]).exceptions.get(n)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,t,n]=e,r=t+`#`+n;if(r.startsWith(`smithy.ts.sdk.synthetic.`)&&r.endsWith(`ServiceException`))return e}}find(e){for(let t of this.schemas.values())if(e(t))return t}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes(`#`)?e:this.namespace+`#`+e}},Ix=`***SensitiveInformation***`;function Lx(e,t){if(t==null)return t;let n=Mx.of(e);if(n.getMergedTraits().sensitive)return Ix;if(n.isListSchema()){if(n.getValueSchema().getMergedTraits().sensitive)return Ix}else if(n.isMapSchema()){if(n.getKeySchema().getMergedTraits().sensitive||n.getValueSchema().getMergedTraits().sensitive)return Ix}else if(n.isStructSchema()&&typeof t==`object`){let e=t,r={};for(let[t,i]of n.structIterator())e[t]!=null&&(r[t]=Lx(i,e[t]));return r}return t}var Rx=class{middlewareStack=fx();schema;static classBuilder(){return new Pae}resolveMiddlewareWithContext(e,t,n,{middlewareFn:r,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,smithyContext:c,additionalContext:l,CommandCtor:u}){for(let i of r.bind(this)(u,e,t,n))this.middlewareStack.use(i);let d=e.concat(this.middlewareStack),{logger:f}=t,p={logger:f,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,[Sae]:{commandInstance:this,...c},...l},{requestHandler:m}=t,h=n??{};return c.eventStream&&(h={isEventStream:!0,...h}),d.resolve(e=>m.handle(e.request,h),p)}},Pae=class{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName=``;_clientName=``;_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,n={}){return this._smithyContext={service:e,operation:t,...n},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,t;return t=class extends Rx{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,r,i){let a=e._operationSchema,o=a?.[4]??a?.input,s=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,r,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?Lx.bind(null,o):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?Lx.bind(null,s):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}},Fae=class e extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(t){if(!t)return!1;let n=t;return e.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault===`client`||n.$fault===`server`)}static[Symbol.hasInstance](t){if(!t)return!1;let n=t;return this===e?e.isInstance(t):e.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}},zx=(e,t={})=>(Object.entries(t).filter(([,e])=>e!==void 0).forEach(([t,n])=>{(e[t]==null||e[t]===``)&&(e[t]=n)}),e.message=e.message||e.Message||`UnknownError`,delete e.Message,e),Iae=e=>{switch(e){case`standard`:return{retryMode:`standard`,connectionTimeout:3100};case`in-region`:return{retryMode:`standard`,connectionTimeout:1100};case`cross-region`:return{retryMode:`standard`,connectionTimeout:3100};case`mobile`:return{retryMode:`standard`,connectionTimeout:3e4};default:return{}}},Bx=Object.values(gx),Lae=e=>{let t=[];for(let n in gx){let r=gx[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}for(let[n,r]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>n,checksumConstructor:()=>r});return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};let r=n.algorithmId(),i=n.checksumConstructor();Bx.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=i:e.checksumAlgorithms[r]=i,t.push(n)},checksumAlgorithms(){return t}}},Rae=e=>{let t={};return e.checksumAlgorithms().forEach(e=>{let n=e.algorithmId();Bx.includes(n)&&(t[n]=e.checksumConstructor())}),t},zae=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),Bae=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t},Vae=e=>Object.assign(Lae(e),zae(e)),Hae=e=>Object.assign(Rae(e),Bae(e)),Vx=class{trace(){}debug(){}info(){}warn(){}error(){}},Hx=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Ux=Object.entries(Hx).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),Uae=Hx.split(``),Wx=e=>{let t=e.length/4*3;e.slice(-2)===`==`?t-=2:e.slice(-1)===`=`&&t--;let n=new ArrayBuffer(t),r=new DataView(n);for(let t=0;t>=6;let a=t/4*3;n>>=i%8;let o=Math.floor(i/8);for(let e=0;e>t)}}return new Uint8Array(n)},Gx=e=>new TextEncoder().encode(e);function Kx(e){let t;t=typeof e==`string`?Gx(e):e;let n=typeof t==`object`&&typeof t.length==`number`,r=typeof t==`object`&&typeof t.byteOffset==`number`&&typeof t.byteLength==`number`;if(!n&&!r)throw Error(`@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.`);let i=``;for(let e=0;e>t]}i+=`==`.slice(0,4-a)}return i}function Wae(e,t,n,r){return class i extends Uint8Array{static fromString(e,n=`utf-8`){if(typeof e==`string`)return n===`base64`?i.mutate(r(e)):i.mutate(t(e));throw Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,i.prototype),e}transformToString(t=`utf-8`){return t===`base64`?n(this):e(this)}}}var qx=e=>{if(typeof e==`string`)return e;if(typeof e!=`object`||typeof e.byteOffset!=`number`||typeof e.byteLength!=`number`)throw Error(`@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.`);return new TextDecoder(`utf-8`).decode(e)},Jx=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function Gae(e){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?()=>crypto.randomUUID():()=>{let t=new Uint8Array(16);return e(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128,Jx[t[0]]+Jx[t[1]]+Jx[t[2]]+Jx[t[3]]+`-`+Jx[t[4]]+Jx[t[5]]+`-`+Jx[t[6]]+Jx[t[7]]+`-`+Jx[t[8]]+Jx[t[9]]+`-`+Jx[t[10]]+Jx[t[11]]+Jx[t[12]]+Jx[t[13]]+Jx[t[14]]+Jx[t[15]]}}var Yx=e=>{if(e!=null){if(typeof e==`string`){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&roe.warn(noe(`Expected number but observed string: ${e}`)),t}if(typeof e==`number`)return e;throw TypeError(`Expected number, got ${typeof e}: ${e}`)}},Kae=Math.ceil(2**127*(2-2**-23)),qae=e=>{let t=Yx(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>Kae)throw TypeError(`Expected 32-bit float, got ${e}`);return t},Jae=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw TypeError(`Expected integer, got ${typeof e}: ${e}`)}},Yae=e=>Xx(e,16),Xae=e=>Xx(e,8),Xx=(e,t)=>{let n=Jae(e);if(n!==void 0&&Zae(n,t)!==n)throw TypeError(`Expected ${t}-bit integer, got ${e}`);return n},Zae=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},Qae=e=>Yx(typeof e==`string`?Zx(e):e),$ae=e=>qae(typeof e==`string`?Zx(e):e),eoe=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Zx=e=>{let t=e.match(eoe);if(t===null||t[0].length!==e.length)throw TypeError(`Expected real number, got implicit NaN`);return parseFloat(e)},Qx=e=>Yae(typeof e==`string`?Zx(e):e),toe=e=>Xae(typeof e==`string`?Zx(e):e),noe=e=>String(TypeError(e).stack||e).split(` +${Sb(await i.digest())}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let n of e.split(`/`))n?.length!==0&&n!==`.`&&(n===`..`?t.pop():t.push(n));return ix(`${e?.startsWith(`/`)?`/`:``}${t.join(`/`)}${t.length>0&&e?.endsWith(`/`)?`/`:``}`).replace(/%2F/g,`/`)}return e}validateResolvedCredentials(e){if(typeof e!=`object`||typeof e.accessKeyId!=`string`||typeof e.secretAccessKey!=`string`)throw Error(`Resolved credential object is not valid`)}formatDate(e){let t=sx(e).replace(/[\-:]/g,``);return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(`;`)}},ux=class extends lx{headerFormatter=new Jb;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a})}async presign(e,t={}){let{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:o,hoistableHeaders:s,signingRegion:c,signingService:l}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);let d=c??await this.regionProvider(),{longDate:f,shortDate:p}=this.formatDate(n);if(r>604800)return Promise.reject(`Signature version 4 presigned URLs must have an expiration date less than one week in the future`);let m=Hb(p,d,l??this.service),h=ex(tx(e),{unhoistableHeaders:a,hoistableHeaders:s});u.sessionToken&&(h.query[Ob]=u.sessionToken),h.query[nae]=Ib,h.query[rae]=`${u.accessKeyId}/${m}`,h.query[Eb]=f,h.query[aae]=r.toString(10);let g=Gb(h,i,o);return h.query[iae]=this.getCanonicalHeaderList(g),h.query[Db]=await this.getSignature(f,m,this.getSigningKey(u,d,p,l),this.createCanonicalRequest(h,g,await qb(e,this.sha256))),h}async sign(e,t){return typeof e==`string`?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:r,signingRegion:i,signingService:a,eventStreamCredentials:o}){let s=i??await this.regionProvider(),{shortDate:c,longDate:l}=this.formatDate(n),u=Hb(c,s,a??this.service),d=await qb({headers:{},body:t},this.sha256),f=new this.sha256;f.update(e);let p=[Lb,l,u,r,Sb(await f.digest()),d].join(` +`);return this.signString(p,{signingDate:n,signingRegion:s,signingService:a,eventStreamCredentials:o})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature,eventStreamCredentials:i}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}={}){let a=i??await this.credentialProvider();this.validateResolvedCredentials(a);let o=n??await this.regionProvider(),{shortDate:s}=this.formatDate(t),c=new this.sha256(await this.getSigningKey(a,o,s,r));return c.update(wb(e)),Sb(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:i,signingService:a}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let s=i??await this.regionProvider(),c=tx(e),{longDate:l,shortDate:u}=this.formatDate(t),d=Hb(u,s,a??this.service);c.headers[Ab]=l,o.sessionToken&&(c.headers[Mb]=o.sessionToken);let f=await qb(c,this.sha256);!$b(`x-amz-content-sha256`,c.headers)&&this.applyChecksum&&(c.headers[jb]=f);let p=Gb(c,r,n),m=await this.getSignature(l,d,this.getSigningKey(o,s,u,a),this.createCanonicalRequest(c,p,f));return c.headers[kb]=`${Ib} Credential=${o.accessKeyId}/${d}, SignedHeaders=${this.getCanonicalHeaderList(p)}, Signature=${m}`,c}async getSignature(e,t,n,r){let i=await this.createStringToSign(e,t,r,Ib),a=new this.sha256(await n);return a.update(wb(i)),Sb(await a.digest())}getSigningKey(e,t,n,r){return Ub(this.sha256,e,n,t,r||this.service)}},dx={SignatureV4a:null},fx=`ap-southeast-2`,px=9999,mx=class extends Error{status;constructor(e,t,n){super(e),this.name=t,this.status=n}};function hx(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 gx({action:e,credentials:t,service:n=`spinifex`}){let r=window.location.protocol.replace(`:`,``),i=`Action=${e}`,a=new _b({method:`POST`,protocol:r,hostname:`localhost`,port:px,path:`/`,headers:{host:`localhost:${px}`,"content-type":`application/x-www-form-urlencoded`},body:i}),o=await new ux({credentials:{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey},region:fx,service:n,sha256:fb}).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=hx(t,`Code`),r=hx(t,`Message`)??t;throw new mx(`${e} failed: ${l.status}${r?` - ${r}`:``}`,n??`SignedFetchError`,l.status)}return await l.json()}var _x=`000000000001`,vx=(0,P.createContext)(void 0);function yx({children:e}){let[t,n]=(0,P.useState)({isAdmin:!1,accountId:null,userName:null,version:null,license:null,loading:!0});return(0,P.useEffect)(()=>{async function e(){let e=Zy();if(!e){n(e=>({...e,loading:!1}));return}try{let t=await gx({action:`GetCallerIdentity`,credentials:e}),r=t.account_id===_x,i=null;if(r)try{i=await gx({action:`GetVersion`,credentials:e})}catch{}n({isAdmin:r,accountId:t.account_id,userName:t.user_name,version:i,license:i?.license??null,loading:!1})}catch{n(e=>({...e,loading:!1}))}}e()},[]),(0,F.jsx)(vx,{value:t,children:e})}function bx(){let e=(0,P.useContext)(vx);if(e===void 0)throw Error(`useAdmin must be used within an AdminProvider`);return e}var xx=new Set([`InvalidClientTokenId`,`SignatureDoesNotMatch`,`AuthFailure`,`MissingAuthenticationToken`,`IncompleteSignature`,`UnrecognizedClientException`,`ExpiredToken`,`ExpiredTokenException`,`InvalidAccessKeyId`]);function Sx(e){if(typeof e!=`object`||!e||!(`name`in e))return!1;let{name:t}=e;return typeof t==`string`&&xx.has(t)}function Cx(e,t,n){return e.$source||={},e.$source[t]=n,e}var wx=e=>e?.body instanceof ReadableStream,Tx=(e,t)=>{let n=[];if(e&&n.push(e),t)for(let e of t)n.push(e);return n},Ex=(e,t)=>`${e||`anonymous`}${t&&t.length>0?` (a.k.a. ${t.join(`,`)})`:``}`,Dx=()=>{let e=[],t=[],n=!1,r=new Set,i=e=>e.sort((e,t)=>Ox[t.step]-Ox[e.step]||kx[t.priority||`normal`]-kx[e.priority||`normal`]),a=n=>{let i=!1,a=e=>{let t=Tx(e.name,e.aliases);if(t.includes(n)){i=!0;for(let e of t)r.delete(e);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},o=n=>{let i=!1,a=e=>{if(e.middleware===n){i=!0;for(let t of Tx(e.name,e.aliases))r.delete(t);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},s=n=>(e.forEach(e=>{n.add(e.middleware,{...e})}),t.forEach(e=>{n.addRelativeTo(e.middleware,{...e})}),n.identifyOnResolve?.(u.identifyOnResolve()),n),c=e=>{let t=[];return e.before.forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t.push(e),e.after.reverse().forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t},l=(n=!1)=>{let r=[],a=[],o={};return e.forEach(e=>{let t={...e,before:[],after:[]};for(let e of Tx(t.name,t.aliases))o[e]=t;r.push(t)}),t.forEach(e=>{let t={...e,before:[],after:[]};for(let e of Tx(t.name,t.aliases))o[e]=t;a.push(t)}),a.forEach(e=>{if(e.toMiddleware){let t=o[e.toMiddleware];if(t===void 0){if(n)return;throw Error(`${e.toMiddleware} is not found when adding ${Ex(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}e.relation===`after`&&t.after.push(e),e.relation===`before`&&t.before.push(e)}}),i(r).map(c).reduce((e,t)=>(e.push(...t),e),[])},u={add:(t,n={})=>{let{name:i,override:a,aliases:o}=n,s={step:`initialize`,priority:`normal`,middleware:t,...n},c=Tx(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${Ex(i,o)}'`);for(let t of c){let n=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(n===-1)continue;let r=e[n];if(r.step!==s.step||s.priority!==r.priority)throw Error(`"${Ex(r.name,r.aliases)}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by "${Ex(i,o)}" middleware with ${s.priority} priority in ${s.step} step.`);e.splice(n,1)}}for(let e of c)r.add(e)}e.push(s)},addRelativeTo:(e,n)=>{let{name:i,override:a,aliases:o}=n,s={middleware:e,...n},c=Tx(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${Ex(i,o)}'`);for(let e of c){let n=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(n===-1)continue;let r=t[n];if(r.toMiddleware!==s.toMiddleware||r.relation!==s.relation)throw Error(`"${Ex(r.name,r.aliases)}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by "${Ex(i,o)}" middleware ${s.relation} "${s.toMiddleware}" middleware.`);t.splice(n,1)}}for(let e of c)r.add(e)}t.push(s)},clone:()=>s(Dx()),use:e=>{e.applyToStack(u)},remove:e=>typeof e==`string`?a(e):o(e),removeByTag:n=>{let i=!1,a=e=>{let{tags:t,name:a,aliases:o}=e;if(t&&t.includes(n)){let e=Tx(a,o);for(let t of e)r.delete(t);return i=!0,!1}return!0};return e=e.filter(a),t=t.filter(a),i},concat:e=>{let t=s(Dx());return t.use(e),t.identifyOnResolve(n||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:s,identify:()=>l(!0).map(e=>{let t=e.step??e.relation+` `+e.toMiddleware;return Ex(e.name,e.aliases)+` - `+t}),identifyOnResolve(e){return typeof e==`boolean`&&(n=e),n},resolve:(e,t)=>{for(let n of l().map(e=>e.middleware).reverse())e=n(e,t);return n&&console.log(u.identify()),e}};return u},Ox={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},kx={high:3,normal:2,low:1},Ax;(function(e){e.HTTP=`http`,e.HTTPS=`https`})(Ax||={});var jx;(function(e){e.MD5=`md5`,e.CRC32=`crc32`,e.CRC32C=`crc32c`,e.SHA1=`sha1`,e.SHA256=`sha256`})(jx||={});var Mx=`__smithy_context`,Nx=e=>e.__smithy_context||={},Px=class e{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||`GET`,this.hostname=e.hostname||`localhost`,this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)===`:`?e.protocol:`${e.protocol}:`:`https:`,this.path=e.path?e.path.charAt(0)===`/`?e.path:`/${e.path}`:`/`,this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(t){let n=new e({...t,headers:{...t.headers}});return n.query&&=Fx(n.query),n}static isInstance(e){if(!e)return!1;let t=e;return`method`in t&&`protocol`in t&&`hostname`in t&&`path`in t&&typeof t.query==`object`&&typeof t.headers==`object`}clone(){return e.clone(this)}};function Fx(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}var Ix=class{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let t=e;return typeof t.statusCode==`number`&&typeof t.headers==`object`}},Lx=RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`),Rx=(e,t=!1)=>{if(!t)return Lx.test(e);let n=e.split(`.`);for(let e of n)if(!Rx(e))return!1;return!0},zx=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t};function Bx(e){let t={};if(e=e.replace(/^\?/,``),e)for(let n of e.split(`&`)){let[e,r=null]=n.split(`=`);e=decodeURIComponent(e),r&&=decodeURIComponent(r),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}var Vx=e=>{if(typeof e==`string`)return Vx(new URL(e));let{hostname:t,pathname:n,port:r,protocol:i,search:a}=e,o;return a&&(o=Bx(a)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}},Hx=e=>{if(typeof e==`object`){if(`url`in e){let t=Vx(e.url);if(e.headers){t.headers={};for(let n in e.headers)t.headers[n.toLowerCase()]=e.headers[n].join(`, `)}return t}return e}return Vx(e)},Ux=e=>()=>Promise.reject(e),Wx=class{config;middlewareStack=Dx();initConfig;handlers;constructor(e){this.config=e;let{protocol:t,protocolSettings:n}=e;n&&typeof t==`function`&&(e.protocol=new t(n))}send(e,t,n){let r=typeof t==`function`?void 0:t,i=typeof t==`function`?t:n,a=r===void 0&&this.config.cacheMiddleware===!0,o;if(a){this.handlers||=new WeakMap;let t=this.handlers;t.has(e.constructor)?o=t.get(e.constructor):(o=e.resolveMiddleware(this.middlewareStack,this.config,r),t.set(e.constructor,o))}else delete this.handlers,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(i)o(e).then(e=>i(null,e.output),e=>i(e)).catch(()=>{});else return o(e).then(e=>e.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}},Gx=e=>typeof e==`function`?e():e,Kx=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i}),qx=e=>(t,n)=>async r=>{let{response:i}=await t(r),{operationSchema:a}=Nx(n),[,o,s,c,l,u]=a??[];try{return{response:i,output:await e.protocol.deserializeResponse(Kx(o,s,c,l,u),{...e,...n},i)}}catch(e){if(Object.defineProperty(e,`$response`,{value:i,enumerable:!1,writable:!1,configurable:!1}),!(`$metadata`in e)){let t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+=` + `+t}catch{!n.logger||n.logger?.constructor?.name===`NoOpLogger`?console.warn(t):n.logger?.warn?.(t)}e.$responseBodyText!==void 0&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(Ix.isInstance(i)){let{headers:t={},statusCode:n}=i,r=Object.entries(t);e.$metadata={httpStatusCode:n,requestId:Jx(/^x-[\w-]+-request-?id$/,r),extendedRequestId:Jx(/^x-[\w-]+-id-2$/,r),cfId:Jx(/^x-[\w-]+-cf-id$/,r)}}}catch{}}throw e}},Jx=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1],Yx=e=>(t,n)=>async r=>{let{operationSchema:i}=Nx(n),[,a,o,s,c,l]=i??[],u=n.endpointV2?async()=>Hx(n.endpointV2):e.endpoint,d=await e.protocol.serializeRequest(Kx(a,o,s,c,l),r.input,{...e,...n,endpoint:u});return t({...r,request:d})},Xx={name:`deserializerMiddleware`,step:`deserialize`,tags:[`DESERIALIZER`],override:!0},Zx={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0};function Qx(e){return{applyToStack:t=>{t.add(Yx(e),Zx),t.add(qx(e),Xx),e.protocol.setSerdeContext(e)}}}var $x=[];function eS(e){if(typeof e==`object`)return e;if(e|=0,$x[e])return $x[e];let t={},n=0;for(let r of[`httpLabel`,`idempotent`,`idempotencyToken`,`sensitive`,`httpPayload`,`httpResponseCode`,`httpQueryParams`])(e>>n++&1)==1&&(t[r]=1);return $x[e]=t}var tS={it:Symbol.for(`@smithy/nor-struct-it`),ns:Symbol.for(`@smithy/ns`)},nS=[],rS={},iS=class e{ref;memberName;static symbol=Symbol.for(`@smithy/nor`);symbol=e.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;let r=[],i=t,a=t;for(this._isMemberSchema=!1;oS(i);)r.push(i[1]),i=i[0],a=Gx(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){let t=r[e];Object.assign(this.memberTraits,eS(t))}}else this.memberTraits=0;if(a instanceof e){let e=this.memberTraits;Object.assign(this,a),this.memberTraits=Object.assign({},e,a.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??a.memberName;return}if(this.schema=Gx(a),sS(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(a),this.traits=0),this._isMemberSchema&&!n)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return!t&&typeof e==`object`&&e?e.symbol===this.symbol:t}static of(t){let n=typeof t==`function`||typeof t==`object`&&!!t;if(typeof t==`number`){if(nS[t])return nS[t]}else if(typeof t==`string`){if(rS[t])return rS[t]}else if(n&&t[tS.ns])return t[tS.ns];let r=Gx(t);if(r instanceof e)return r;if(oS(r)){let[n,i]=r;if(n instanceof e)return Object.assign(n.getMergedTraits(),eS(i)),n;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let i=new e(r);return n?t[tS.ns]=i:typeof r==`string`?rS[r]=i:typeof r==`number`?nS[r]=i:i}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:t}=this;return!e&&t&&t.includes(`#`)?t.split(`#`)[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e==`number`?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e==`number`?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!=`object`)return!1;let t=e[0];return t===3||t===-3||t===4}isUnionSchema(){let e=this.getSchema();return typeof e==`object`?e[0]===4:!1}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e==`number`&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()===`unit`}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??={...this.getOwnTraits(),...this.getMemberTraits()}}getMemberTraits(){return eS(this.memberTraits)}getOwnTraits(){return eS(this.traits)}getKeySchema(){let[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema();return aS([e?15:n[4]??0,0],`key`)}getValueSchema(){let e=this.getSchema(),[t,n,r]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i=typeof e==`number`?63&e:e&&typeof e==`object`&&(n||r)?e[3+e[0]]:t?15:void 0;if(i!=null)return aS([i,0],n?`value`:`member`);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){let n=t[4].indexOf(e),r=t[5][n];return aS(oS(r)?r:[r,0],e)}if(this.isDocumentSchema())return aS([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[t,n]of this.structIterator())e[t]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e}return``}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error(`@smithy/core/schema - cannot iterate non-struct schema.`);let e=this.getSchema(),t=e[4].length,n=e[tS.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let r=0;rArray.isArray(e)&&e.length===2,sS=e=>Array.isArray(e)&&e.length>=5,cS=class e{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e,this.schemas=t,this.exceptions=n}static for(t){return e.registries.has(t)||e.registries.set(t,new e(t)),e.registries.get(t)}copyFrom(e){let{schemas:t,exceptions:n}=this;for(let[n,r]of e.schemas)t.has(n)||t.set(n,r);for(let[t,r]of e.exceptions)n.has(t)||n.set(t,r)}register(t,n){let r=this.normalizeShapeId(t);for(let t of[this,e.for(r.split(`#`)[0])])t.schemas.set(r,n)}getSchema(e){let t=this.normalizeShapeId(e);if(!this.schemas.has(t)){if(!e.includes(`#`)){let t=`#`+e,n=[];for(let[e,r]of this.schemas.entries())e.endsWith(t)&&n.push(r);if(n.length===1)return n[0]}throw Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(t,n){let r=t,i=r[1];for(let t of[this,e.for(i)])t.schemas.set(i+`#`+r[2],r),t.exceptions.set(r,n)}getErrorCtor(t){let n=t;return this.exceptions.has(n)?this.exceptions.get(n):e.for(n[1]).exceptions.get(n)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,t,n]=e,r=t+`#`+n;if(r.startsWith(`smithy.ts.sdk.synthetic.`)&&r.endsWith(`ServiceException`))return e}}find(e){for(let t of this.schemas.values())if(e(t))return t}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes(`#`)?e:this.namespace+`#`+e}},lS=`***SensitiveInformation***`;function uS(e,t){if(t==null)return t;let n=iS.of(e);if(n.getMergedTraits().sensitive)return lS;if(n.isListSchema()){if(n.getValueSchema().getMergedTraits().sensitive)return lS}else if(n.isMapSchema()){if(n.getKeySchema().getMergedTraits().sensitive||n.getValueSchema().getMergedTraits().sensitive)return lS}else if(n.isStructSchema()&&typeof t==`object`){let e=t,r={};for(let[t,i]of n.structIterator())e[t]!=null&&(r[t]=uS(i,e[t]));return r}return t}var dS=class{middlewareStack=Dx();schema;static classBuilder(){return new fS}resolveMiddlewareWithContext(e,t,n,{middlewareFn:r,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,smithyContext:c,additionalContext:l,CommandCtor:u}){for(let i of r.bind(this)(u,e,t,n))this.middlewareStack.use(i);let d=e.concat(this.middlewareStack),{logger:f}=t,p={logger:f,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,[Mx]:{commandInstance:this,...c},...l},{requestHandler:m}=t,h=n??{};return c.eventStream&&(h={isEventStream:!0,...h}),d.resolve(e=>m.handle(e.request,h),p)}},fS=class{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName=``;_clientName=``;_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,n={}){return this._smithyContext={service:e,operation:t,...n},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,t;return t=class extends dS{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,r,i){let a=e._operationSchema,o=a?.[4]??a?.input,s=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,r,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?uS.bind(null,o):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?uS.bind(null,s):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}},pS=class e extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(t){if(!t)return!1;let n=t;return e.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault===`client`||n.$fault===`server`)}static[Symbol.hasInstance](t){if(!t)return!1;let n=t;return this===e?e.isInstance(t):e.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}},mS=(e,t={})=>(Object.entries(t).filter(([,e])=>e!==void 0).forEach(([t,n])=>{(e[t]==null||e[t]===``)&&(e[t]=n)}),e.message=e.message||e.Message||`UnknownError`,delete e.Message,e),hS=e=>{switch(e){case`standard`:return{retryMode:`standard`,connectionTimeout:3100};case`in-region`:return{retryMode:`standard`,connectionTimeout:1100};case`cross-region`:return{retryMode:`standard`,connectionTimeout:3100};case`mobile`:return{retryMode:`standard`,connectionTimeout:3e4};default:return{}}},gS=Object.values(jx),_S=e=>{let t=[];for(let n in jx){let r=jx[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}for(let[n,r]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>n,checksumConstructor:()=>r});return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};let r=n.algorithmId(),i=n.checksumConstructor();gS.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=i:e.checksumAlgorithms[r]=i,t.push(n)},checksumAlgorithms(){return t}}},vS=e=>{let t={};return e.checksumAlgorithms().forEach(e=>{let n=e.algorithmId();gS.includes(n)&&(t[n]=e.checksumConstructor())}),t},yS=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),bS=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t},xS=e=>Object.assign(_S(e),yS(e)),SS=e=>Object.assign(vS(e),bS(e)),CS=class{trace(){}debug(){}info(){}warn(){}error(){}},wS=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,TS=Object.entries(wS).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),ES=wS.split(``),DS=e=>{let t=e.length/4*3;e.slice(-2)===`==`?t-=2:e.slice(-1)===`=`&&t--;let n=new ArrayBuffer(t),r=new DataView(n);for(let t=0;t>=6;let a=t/4*3;n>>=i%8;let o=Math.floor(i/8);for(let e=0;e>t)}}return new Uint8Array(n)},OS=e=>new TextEncoder().encode(e);function kS(e){let t;t=typeof e==`string`?OS(e):e;let n=typeof t==`object`&&typeof t.length==`number`,r=typeof t==`object`&&typeof t.byteOffset==`number`&&typeof t.byteLength==`number`;if(!n&&!r)throw Error(`@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.`);let i=``;for(let e=0;e>t]}i+=`==`.slice(0,4-a)}return i}function AS(e,t,n,r){return class i extends Uint8Array{static fromString(e,n=`utf-8`){if(typeof e==`string`)return n===`base64`?i.mutate(r(e)):i.mutate(t(e));throw Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,i.prototype),e}transformToString(t=`utf-8`){return t===`base64`?n(this):e(this)}}}var jS=e=>{if(typeof e==`string`)return e;if(typeof e!=`object`||typeof e.byteOffset!=`number`||typeof e.byteLength!=`number`)throw Error(`@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.`);return new TextDecoder(`utf-8`).decode(e)},MS=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function NS(e){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?()=>crypto.randomUUID():()=>{let t=new Uint8Array(16);return e(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128,MS[t[0]]+MS[t[1]]+MS[t[2]]+MS[t[3]]+`-`+MS[t[4]]+MS[t[5]]+`-`+MS[t[6]]+MS[t[7]]+`-`+MS[t[8]]+MS[t[9]]+`-`+MS[t[10]]+MS[t[11]]+MS[t[12]]+MS[t[13]]+MS[t[14]]+MS[t[15]]}}var PS=e=>{if(e!=null){if(typeof e==`string`){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&YS.warn(JS(`Expected number but observed string: ${e}`)),t}if(typeof e==`number`)return e;throw TypeError(`Expected number, got ${typeof e}: ${e}`)}},FS=Math.ceil(2**127*(2-2**-23)),IS=e=>{let t=PS(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>FS)throw TypeError(`Expected 32-bit float, got ${e}`);return t},LS=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw TypeError(`Expected integer, got ${typeof e}: ${e}`)}},RS=e=>BS(e,16),zS=e=>BS(e,8),BS=(e,t)=>{let n=LS(e);if(n!==void 0&&VS(n,t)!==n)throw TypeError(`Expected ${t}-bit integer, got ${e}`);return n},VS=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},HS=e=>PS(typeof e==`string`?GS(e):e),US=e=>IS(typeof e==`string`?GS(e):e),WS=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,GS=e=>{let t=e.match(WS);if(t===null||t[0].length!==e.length)throw TypeError(`Expected real number, got implicit NaN`);return parseFloat(e)},KS=e=>RS(typeof e==`string`?GS(e):e),qS=e=>zS(typeof e==`string`?GS(e):e),JS=e=>String(TypeError(e).stack||e).split(` `).slice(0,5).filter(e=>!e.includes(`stackTraceWarning`)).join(` -`),roe={warn:console.warn},ioe=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],$x=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function aoe(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),a=e.getUTCHours(),o=e.getUTCMinutes(),s=e.getUTCSeconds(),c=i<10?`0${i}`:`${i}`,l=a<10?`0${a}`:`${a}`,u=o<10?`0${o}`:`${o}`,d=s<10?`0${s}`:`${s}`;return`${ioe[r]}, ${c} ${$x[n]} ${t} ${l}:${u}:${d} GMT`}var ooe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),soe=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC-3339 date-times must be expressed as strings`);let t=ooe.exec(e);if(!t)throw TypeError(`Invalid RFC-3339 date-time value`);let[n,r,i,a,o,s,c,l,u]=t,d=tS(Qx(iS(r)),rS(i,`month`,1,12),rS(a,`day`,1,31),{hours:o,minutes:s,seconds:c,fractionalMilliseconds:l});return u.toUpperCase()!=`Z`&&d.setTime(d.getTime()-yoe(u)),d},coe=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),loe=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),uoe=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),eS=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC-7231 date-times must be expressed as strings`);let t=coe.exec(e);if(t){let[e,n,r,i,a,o,s,c]=t;return tS(Qx(iS(i)),nS(r),rS(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c})}if(t=loe.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return moe(tS(foe(i),nS(r),rS(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c}))}if(t=uoe.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return tS(Qx(iS(c)),nS(n),rS(r.trimLeft(),`day`,1,31),{hours:i,minutes:a,seconds:o,fractionalMilliseconds:s})}throw TypeError(`Invalid RFC-7231 date-time value`)},doe=e=>{if(e==null)return;let t;if(typeof e==`number`)t=e;else if(typeof e==`string`)t=Qae(e);else if(typeof e==`object`&&e.tag===1)t=e.value;else throw TypeError(`Epoch timestamps must be expressed as floating point numbers or their string representation`);if(Number.isNaN(t)||t===1/0||t===-1/0)throw TypeError(`Epoch timestamps must be valid, non-Infinite, non-NaN numerics`);return new Date(Math.round(t*1e3))},tS=(e,t,n,r)=>{let i=t-1;return goe(e,i,n),new Date(Date.UTC(e,i,n,rS(r.hours,`hour`,0,23),rS(r.minutes,`minute`,0,59),rS(r.seconds,`seconds`,0,60),voe(r.fractionalMilliseconds)))},foe=e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+Qx(iS(e));return ne.getTime()-new Date().getTime()>poe?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,nS=e=>{let t=$x.indexOf(e);if(t<0)throw TypeError(`Invalid month: ${e}`);return t+1},hoe=[31,28,31,30,31,30,31,31,30,31,30,31],goe=(e,t,n)=>{let r=hoe[t];if(t===1&&_oe(e)&&(r=29),n>r)throw TypeError(`Invalid day for ${$x[t]} in ${e}: ${n}`)},_oe=e=>e%4==0&&(e%100!=0||e%400==0),rS=(e,t,n,r)=>{let i=toe(iS(e));if(ir)throw TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},voe=e=>e==null?0:$ae(`0.`+e)*1e3,yoe=e=>{let t=e[0],n=1;if(t==`+`)n=1;else if(t==`-`)n=-1;else throw TypeError(`Offset direction, ${t}, must be "+" or "-"`);let r=Number(e.substring(1,3)),i=Number(e.substring(4,6));return n*(r*60+i)*60*1e3},iS=e=>{let t=0;for(;te&&typeof e==`object`&&(e instanceof aS||`deserializeJSON`in e)?e:typeof e==`string`||Object.getPrototypeOf(e)===String.prototype?aS(String(e)):aS(JSON.stringify(e)),aS.fromObject=aS.from;var oS=/^-?\d*(\.\d+)?$/,sS=class e{string;type;constructor(e,t){if(this.string=e,this.type=t,!oS.test(e))throw Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`)}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!=`object`)return!1;let n=t;return e.prototype.isPrototypeOf(t)||n.type===`bigDecimal`&&oS.test(n.string)}},cS={},lS={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),cS[e]=t,lS[t]=e}function boe(e){if(e.length%2!=0)throw Error(`Hex encoded strings must have an even number length`);let t=new Uint8Array(e.length/2);for(let n=0;n{if(typeof e==`string`){if(dS)return dS.encode(e).byteLength;let t=e.length;for(let n=t-1;n>=0;n--){let r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}else if(typeof e.byteLength==`number`)return e.byteLength;else if(typeof e.size==`number`)return e.size;throw Error(`Body Length computation failed for ${e}`)},fS=e=>typeof e==`string`?Gx(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),Soe=e=>typeof ArrayBuffer==`function`&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)===`[object ArrayBuffer]`,pS=async e=>void 0,Coe=async e=>{let t=e?.Bucket||``;if(typeof e.Bucket==`string`&&(e.Bucket=t.replace(/#/g,`%23`).replace(/\?/g,`%3F`)),Ooe(t)){if(e.ForcePathStyle===!0)throw Error(`Path-style addressing cannot be used with ARN buckets`)}else (!Doe(t)||t.indexOf(`.`)!==-1&&!String(e.Endpoint).startsWith(`http:`)||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},woe=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Toe=/(\d+\.){3}\d+/,Eoe=/\.\./,Doe=e=>woe.test(e)&&!Toe.test(e)&&!Eoe.test(e),Ooe=e=>{let[t,n,r,,,i]=e.split(`:`),a=t===`arn`&&e.split(`:`).length>=6,o=!!(a&&n&&r&&i);if(a&&!o)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return o},koe=(e,t,n,r=!1)=>{let i=async()=>{let i;return i=r?n.clientContextParams?.[e]??n[e]??n[t]:n[e]??n[t],typeof i==`function`?i():i};return e===`credentialScope`||t===`CredentialScope`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:e===`accountId`||t===`AccountId`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:e===`endpoint`||t===`endpoint`?async()=>{if(n.isCustomEndpoint===!1)return;let e=await i();if(e&&typeof e==`object`){if(`url`in e)return e.url.href;if(`hostname`in e){let{protocol:t,hostname:n,port:r,path:i}=e;return`${t}//${n}${r?`:`+r:``}${i}`}}return e}:i};function Aoe(e){return async(t,n,r,i)=>{if(!r.isCustomEndpoint){let t;t=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await e(r.serviceId),t&&(r.endpoint=()=>Promise.resolve(Cx(t)),r.isCustomEndpoint=!0)}let a=await joe(t,n,r);if(typeof r.endpointProvider!=`function`)throw Error(`config.endpointProvider is not set.`);let o=r.endpointProvider(a,i);if(r.isCustomEndpoint&&r.endpoint){let e=await r.endpoint();if(e?.headers){o.headers??={};for(let[t,n]of Object.entries(e.headers))o.headers[t]=Array.isArray(n)?n:[n]}}return o}}var joe=async(e,t,n)=>{let r={},i=t?.getEndpointParameterInstructions?.()||{};for(let[t,a]of Object.entries(i))switch(a.type){case`staticContextParams`:r[t]=a.value;break;case`contextParams`:r[t]=e[a.name];break;case`clientContextParams`:case`builtInParams`:r[t]=await koe(a.name,t,n,a.type!==`builtInParams`)();break;case`operationContextParams`:r[t]=a.get(e);break;default:throw Error(`Unrecognized endpoint parameter instruction: `+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()===`s3`&&await Coe(r),r};function Moe(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}function mS(e){let t=Aoe(e);return({config:e,instructions:n})=>(r,i)=>async a=>{e.isCustomEndpoint&&Moe(i,`ENDPOINT_OVERRIDE`,`N`);let o=await t(a.input,{getEndpointParameterInstructions(){return n}},{...e},i);i.endpointV2=o,i.authSchemes=o.properties?.authSchemes;let s=i.authSchemes?.[0];if(s){i.signing_region=s.signingRegion,i.signing_service=s.signingName;let e=_x(i)?.selectedHttpAuthScheme?.httpAuthOption;e&&(e.signingProperties=Object.assign(e.signingProperties||{},{signing_region:s.signingRegion,signingRegion:s.signingRegion,signing_service:s.signingName,signingName:s.signingName,signingRegionSet:s.signingRegionSet},s.properties))}return r({...a})}}var Noe={step:`serialize`,tags:[`ENDPOINT_PARAMETERS`,`ENDPOINT_V2`,`ENDPOINT`],name:`endpointV2Middleware`,override:!0,relation:`before`,toMiddleware:{name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0}.name};function Poe(e){let t=mS(e);return(e,n)=>({applyToStack:r=>{r.addRelativeTo(t({config:e,instructions:n}),Noe)}})}function Foe(e){return t=>{let n=t.tls??!0,{endpoint:r,useDualstackEndpoint:i,useFipsEndpoint:a}=t,o=Object.assign(t,{endpoint:r==null?void 0:async()=>Cx(await xx(r)()),tls:n,isCustomEndpoint:!!r,useDualstackEndpoint:xx(i??!1),useFipsEndpoint:xx(a??!1)}),s;return o.serviceConfiguredEndpoint=async()=>(t.serviceId&&!s&&(s=e(t.serviceId)),s),o}}var Ioe=class e{nodes;root;conditions;results;constructor(e,t,n,r){this.nodes=e,this.root=t,this.conditions=n,this.results=r}static from(t,n,r,i){return new e(t,n,r,i)}},Loe=class{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){let n=this.hash(e);if(n===!1)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let e=this.data.keys(),t=0;for(;;){let{value:n,done:r}=e.next();if(this.data.delete(n),r||++t>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t=``,{parameters:n}=this;if(n.length===0)return!1;for(let r of n){let n=String(e[r]??``);if(n.includes(`|;`))return!1;t+=n+`|;`}return t}},hS=class extends Error{constructor(e){super(e),this.name=`EndpointError`}},Roe=`endpoints`;function gS(e){return typeof e!=`object`||!e?e:`ref`in e?`$${gS(e.ref)}`:`fn`in e?`${e.fn}(${(e.argv||[]).map(gS).join(`, `)})`:JSON.stringify(e,null,2)}var _S={},zoe=(e,t)=>e===t;function Boe(...e){for(let t of e)if(t!=null)return t}var Voe=e=>{let t=e.split(`.`),n=[];for(let r of t){let t=r.indexOf(`[`);if(t!==-1){if(r.indexOf(`]`)!==r.length-1)throw new hS(`Path: '${e}' does not end with ']'`);let i=r.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new hS(`Invalid array index: '${i}' in path: '${e}'`);t!==0&&n.push(r.slice(0,t)),n.push(i)}else n.push(r)}return n},vS=(e,t)=>Voe(t).reduce((n,r)=>{if(typeof n!=`object`)throw new hS(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(n)){let e=parseInt(r);return n[e<0?n.length+e:e]}return n[r]},e),Hoe=e=>e!=null;function Uoe(e,t,n){return e?t:n}var Woe=e=>!e,Goe=RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`),yS=e=>Goe.test(e)||e.startsWith(`[`)&&e.endsWith(`]`),bS={[hx.HTTP]:80,[hx.HTTPS]:443},Koe=e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e==`object`&&`hostname`in e){let{hostname:t,port:n,protocol:r=``,path:i=``,query:a={}}=e,o=new URL(`${r}//${t}${n?`:${n}`:``}${i}`);return o.search=Object.entries(a).map(([e,t])=>`${e}=${t}`).join(`&`),o}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let n=t.href,{host:r,hostname:i,pathname:a,protocol:o,search:s}=t;if(s)return null;let c=o.slice(0,-1);if(!Object.values(hx).includes(c))return null;let l=yS(i);return{scheme:c,authority:`${r}${n.includes(`${r}:${bS[c]}`)||typeof e==`string`&&e.includes(`${r}:${bS[c]}`)?`:${bS[c]}`:``}`,path:a,normalizedPath:a.endsWith(`/`)?a:`${a}/`,isIp:l}};function qoe(e,t,n){if(n===1)return[e];if(e===``)return[``];let r=e.split(t);return n===0?r:r.slice(0,n-1).concat(r.slice(1).join(t))}var Joe={booleanEquals:zoe,coalesce:Boe,getAttr:vS,isSet:Hoe,isValidHostLabel:bx,ite:Uoe,not:Woe,parseURL:Koe,split:qoe,stringEquals:(e,t)=>e===t,substring:(e,t,n,r)=>e==null||t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},xS=(e,t)=>{let n=[],{referenceRecord:r,endpointParams:i}=t,a=0;for(;at.referenceRecord[e]??t.endpointParams[e],SS=(e,t,n)=>{if(typeof e==`string`)return xS(e,n);if(e.fn)return wS.callFunction(e,n);if(e.ref)return Yoe(e,n);throw new hS(`'${t}': ${String(e)} is not a string, function or reference.`)},CS=({fn:e,argv:t},n)=>{let r=Array(t.length);for(let e=0;e{let{assign:n}=e;if(n&&n in t.referenceRecord)throw new hS(`'${n}' is already defined in Reference Record.`);let r=CS(e,t);t.logger?.debug?.(`${Roe} evaluateCondition: ${gS(e)} = ${gS(r)}`);let i=r===``?!0:!!r;return n==null?{result:i}:{result:i,toAssign:{name:n,value:r}}},Zoe=(e,t)=>Object.entries(e??{}).reduce((e,[n,r])=>(e[n]=r.map(e=>{let r=SS(e,`Header value entry`,t);if(typeof r!=`string`)throw new hS(`Header '${n}' value '${r}' is not a string`);return r}),e),{}),TS=(e,t)=>Object.entries(e).reduce((e,[n,r])=>(e[n]=DS.getEndpointProperty(r,t),e),{}),ES=(e,t)=>{if(Array.isArray(e))return e.map(e=>ES(e,t));switch(typeof e){case`string`:return xS(e,t);case`object`:if(e===null)throw new hS(`Unexpected endpoint property: ${e}`);return DS.getEndpointProperties(e,t);case`boolean`:return e;default:throw new hS(`Unexpected endpoint property type: ${typeof e}`)}},DS={getEndpointProperty:ES,getEndpointProperties:TS},Qoe=(e,t)=>{let n=SS(e,`Endpoint URL`,t);if(typeof n==`string`)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new hS(`Endpoint URL must be a string, got ${typeof n}`)},OS=1e8,$oe=(e,t)=>{let{nodes:n,root:r,results:i,conditions:a}=e,o=r,s={},c={referenceRecord:s,endpointParams:t.endpointParams,logger:t.logger};for(;o!==1&&o!==-1&&o=0===f.result?r:i}if(o>=OS){let e=i[o-OS];if(e[0]===-1){let[,t]=e;throw new hS(SS(t,`Error`,c))}let[t,n,r]=e;return{url:Qoe(t,c),properties:TS(n,c),headers:Zoe(r??{},c)}}throw new hS(`No matching endpoint.`)},ese=Foe(pS);mS(pS);var kS=Poe(pS),AS=class extends Wae(qx,Gx,Kx,Wx){},jS=Gae(e=>crypto.getRandomValues(e)),tse=jS,MS=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return AS.mutate(e);if(!e)return AS.mutate(new Uint8Array);let n=t.streamCollector(e);return AS.mutate(await n)},nse=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},rse=`modulepreload`,ise=function(e){return`/`+e},NS={},H=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=ise(t,n),t in NS)return;NS[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:rse,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ase=class extends nse{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=Fx.for(e.defaultNamespace);for(let t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return vx}getResponseType(){return yx}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if(`url`in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||={};for(let[n,r]of t.url.searchParams.entries())e.query[n]=r;if(t.headers)for(let n in t.headers)e.headers[n]=t.headers[n].join(`, `);return e}else{if(e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},t.headers)for(let n in t.headers)e.headers[n]=t.headers[n];return e}}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix)return;let r=Mx.of(t.input),i=Ox(t.traits??{});if(i.endpoint){let t=i.endpoint?.[0];if(typeof t==`string`){for(let[e,i]of r.structIterator()){if(!i.getMergedTraits().hostLabel)continue;let r=n[e];if(typeof r!=`string`)throw Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,r)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers[`x-amzn-requestid`]??e.headers[`x-amzn-request-id`]??e.headers[`x-amz-request-id`],extendedRequestId:e.headers[`x-amz-id-2`],cfId:e.headers[`x-amz-cf-id`]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e}=await H(async()=>{let{EventStreamSerde:e}=await import(`./index.browser.js`);return{EventStreamSerde:e}},[]);return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,r,i){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw Error(`@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.`);return e.eventStreamMarshaller}},ose=class extends ase{async serializeRequest(e,t,n){let r=this.serializer,i={},a={},o=await n.endpoint(),s=Mx.of(e?.input),c=s.getSchema(),l,u=t&&typeof t==`object`?t:{},d=new vx({protocol:``,hostname:``,port:void 0,path:`/`,fragment:void 0,query:i,headers:a,body:void 0});if(o&&(this.updateServiceEndpoint(d,o),this.setHostPrefix(d,e,u)),u){let e=s.getEventStreamMember();if(e){if(u[e]){let t={};for(let[n,i]of s.structIterator())n!==e&&u[n]&&(r.write(i,u[n]),t[n]=r.flush());l=await this.serializeEventStream({eventStream:u[e],requestSchema:s,initialRequest:t})}}else r.write(c,u),l=r.flush()}return d.headers=Object.assign(d.headers,a),d.query=i,d.body=l,d.method=`POST`,d}async deserializeResponse(e,t,n){let r=this.deserializer,i=Mx.of(e.output),a={};if(n.statusCode>=300){let i=await MS(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 - RPC 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=i.getEventStreamMember();if(o)a[o]=await this.deserializeEventStream({response:n,responseSchema:i,initialResponseContainer:a});else{let e=await MS(n.body,t);e.byteLength>0&&Object.assign(a,await r.read(i,e))}return a.$metadata=this.deserializeMetadata(n),a}};function PS(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();let{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:a}=e.getMergedTraits();return(t.httpBindings?typeof r==`string`||i?6:a||n?5:void 0:void 0)??t.timestampFormat.default}var sse=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),cse=e=>({httpHandler:e.httpHandler()}),FS=`content-length`;function lse(e){return t=>async n=>{let r=n.request;if(vx.isInstance(r)){let{body:t,headers:n}=r;if(t&&Object.keys(n).map(e=>e.toLowerCase()).indexOf(FS)===-1)try{let n=e(t);r.headers={...r.headers,[FS]:String(n)}}catch{}}return t({...n,request:r})}}var use={step:`build`,tags:[`SET_CONTENT_LENGTH`,`CONTENT_LENGTH`],name:`contentLengthMiddleware`,override:!0},dse=e=>({applyToStack:t=>{t.add(lse(e.bodyLengthChecker),use)}}),IS=e=>encodeURIComponent(e).replace(/[!'()*]/g,fse),fse=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function pse(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=IS(n),Array.isArray(r))for(let e=0,i=r.length;ee?.$retryable!==void 0,LS=e=>e.$metadata?.clockSkewCorrected,RS=e=>{let t=new Set([`Failed to fetch`,`NetworkError when attempting to fetch resource`,`The Internet connection appears to be offline`,`Load failed`,`Network request failed`]);return e&&e instanceof TypeError?t.has(e.message):!1},zS=e=>e.$metadata?.httpStatusCode===429||mse.includes(e.name)||e.$retryable?.throttling==1,BS=(e,t=0)=>yse(e)||LS(e)||e.name===`InvalidSignatureException`&&e.message?.includes(`Signature expired`)||hse.includes(e.name)||_se.includes(e?.code||``)||vse.includes(e?.code||``)||gse.includes(e.$metadata?.httpStatusCode||0)||RS(e)||xse(e)||e.cause!==void 0&&t<=10&&BS(e.cause,t+1),bse=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!BS(e)}return!1};function xse(e){return e.code===`ERR_HTTP2_STREAM_ERROR`&&e.message.includes(`NGHTTP2_REFUSED_STREAM`)}var VS=20*1e3,Sse=`amz-sdk-invocation-id`,Cse=`amz-sdk-request`;function wse(e,t){if(yx.isInstance(e))for(let n of Object.keys(e.headers)){let r=n.toLowerCase();if(r===`retry-after`){let r=e.headers[n],i=NaN;if(r.endsWith(`GMT`))try{i=(eS(r).getTime()-Date.now())/1e3}catch(e){t?.trace?.(`Failed to parse retry-after header`),t?.trace?.(e)}else r.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?i=Number(r.match(/ GMT, ([\d.]+)$/)?.[1]):r.match(/^((\d+)|(\d+\.\d+))$/)?i=Number(r):Date.parse(r)>=Date.now()&&(i=(Date.parse(r)-Date.now())/1e3);return isNaN(i)?void 0:new Date(Date.now()+i*1e3)}else if(r===`x-amz-retry-after`){let r=e.headers[n],i=Number(r);if(isNaN(i)){t?.trace?.(`Failed to parse x-amz-retry-after=${r}`);return}return new Date(Date.now()+i)}}}var Tse=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):Error(typeof e==`string`?e:`AWS SDK error wrapper for ${e}`);function Ese(e){return t=>(n,r)=>async i=>{let a=await t.retryStrategy(),o=await t.maxAttempts();if(Dse(a)){a=a;let s=await a.acquireInitialRetryToken((r.partition_id??``)+(r.__retryLongPoll?`:longpoll`:``)),c=Error(),l=0,u=0,{request:d}=i,f=vx.isInstance(d);for(f&&(d.headers[Sse]=jS());;)try{f&&(d.headers[Cse]=`attempt=${l+1}; max=${o}`);let{response:e,output:t}=await n(i);return a.recordSuccess(s),t.$metadata.attempts=l+1,t.$metadata.totalRetryDelay=u,{response:e,output:t}}catch(n){let i=Ose(n,t.logger);if(c=Tse(n),f&&e(d))throw(r.logger instanceof Vx?console:r.logger)?.warn(`An error was encountered in a non-retryable streaming request.`),c;try{s=await a.refreshRetryTokenForRetry(s,i)}catch(e){throw typeof e.$backoff==`number`&&await HS(e.$backoff),c.$metadata||={},c.$metadata.attempts=l+1,c.$metadata.totalRetryDelay=u,c}l=s.getRetryCount();let o=s.getRetryDelay();u+=o,await HS(o)}}else return a=a,a?.mode&&(r.userAgent=[...r.userAgent||[],[`cfg/retry-mode`,a.mode]]),a.retry(n,i)}}var HS=e=>new Promise(t=>setTimeout(t,e)),Dse=e=>e.acquireInitialRetryToken!==void 0&&e.refreshRetryTokenForRetry!==void 0&&e.recordSuccess!==void 0,Ose=(e,t)=>{let n={error:e,errorType:kse(e)},r=wse(e.$response,t);return r&&(n.retryAfterHint=r),n},kse=e=>zS(e)?`THROTTLING`:BS(e)?`TRANSIENT`:bse(e)?`SERVER_ERROR`:`CLIENT_ERROR`,Ase={name:`retryMiddleware`,tags:[`RETRY`],step:`finalizeRequest`,priority:`high`,override:!0};function jse(e){let t=Ese(e);return e=>({applyToStack:n=>{n.add(t(e),Ase)}})}var Mse=class e{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let t;this.updateMeasuredRate();let n=e;if(n?.errorType===`THROTTLING`||zS(n?.error??e)){let e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(this.enabled){for(this.refillTokenBucket();t>this.availableTokens;){let n=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(t=>e.setTimeoutFn(t,n)),this.refillTokenBucket()}this.availableTokens-=t}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+t),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise((this.lastMaxRate*(1-this.beta)/this.scaleConstant)**(1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*(e-this.lastThrottleTime-this.timeWindow)**3+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),t=Math.floor(e*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}},US=class e{static v2026=typeof process<`u`&&{}?.SMITHY_NEW_RETRIES_2026===`true`;static delay(){return e.v2026?50:100}static throttlingDelay(){return e.v2026?1e3:500}static cost(){return e.v2026?14:5}static throttlingCost(){return e.v2026?5:10}static modifiedCostType(){return e.v2026?`THROTTLING`:`TRANSIENT`}},Nse=class{x=US.delay();computeNextBackoffDelay(e){let t=Math.random()*Math.min(this.x*2**e,VS);return Math.floor(t)}setDelayBase(e){this.x=e}},WS=class{delay;count;cost;longPoll;constructor(e,t,n,r){this.delay=e,this.count=t,this.cost=n,this.longPoll=r}getRetryCount(){return this.count}getRetryDelay(){return Math.min(VS,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}},GS;(function(e){e.STANDARD=`standard`,e.ADAPTIVE=`adaptive`})(GS||={});var Pse=GS.STANDARD,KS={incompatible:1,attempts:2,capacity:3},qS=class{mode=GS.STANDARD;capacity=500;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(e){typeof e==`number`?this.maxAttemptsProvider=async()=>e:typeof e==`function`?this.maxAttemptsProvider=e:e&&typeof e==`object`&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>3,this.baseDelay??=US.delay(),this.retryBackoffStrategy??=new Nse}async acquireInitialRetryToken(e){return new WS(US.delay(),0,void 0,US.v2026&&e.includes(`:longpoll`))}async refreshRetryTokenForRetry(e,t){let n=await this.getMaxAttempts(),r=this.retryCode(e,t,n),i=r===0,a=e.isLongPoll?.();if(i||a){let n=t.errorType;this.retryBackoffStrategy.setDelayBase(n===`THROTTLING`?US.throttlingDelay():this.baseDelay);let o=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),s=o;if(t.retryAfterHint instanceof Date&&(s=Math.max(o,Math.min(t.retryAfterHint.getTime()-Date.now(),o+5e3))),i){let t=this.getCapacityCost(n);return this.capacity-=t,new WS(s,e.getRetryCount()+1,t,e.isLongPoll?.()??!1)}else throw Object.assign(Error(`No retry token available`),{$backoff:US.v2026&&r===KS.capacity&&a?s:0})}throw Error(`No retry token available`)}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of 3`),3}}retryCode(e,t,n){let r=e.getRetryCount()+1,i=this.isRetryableError(t.errorType)?0:KS.incompatible,a=r=this.getCapacityCost(t.errorType)?0:KS.capacity;return i||a||o}getCapacityCost(e){return e===US.modifiedCostType()?US.throttlingCost():US.cost()}isRetryableError(e){return e===`THROTTLING`||e===`TRANSIENT`}},Fse=class{mode=GS.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){let{rateLimiter:n}=t??{};this.rateLimiter=n??new Mse,this.standardRetryStrategy=t?new qS({maxAttempts:typeof e==`number`?e:3,...t}):new qS(e)}async acquireInitialRetryToken(e){let t=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),t}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,t);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}},Ise=e=>{let{retryStrategy:t,retryMode:n}=e,r=xx(e.maxAttempts??3),i=t?Promise.resolve(t):void 0,a=async()=>await xx(n)()===GS.ADAPTIVE?new Fse(r):new qS(r);return Object.assign(e,{maxAttempts:r,retryStrategy:()=>i??=a()})},Lse=jse(xae);US.v2026||=typeof process==`object`&&{}?.AWS_NEW_RETRIES_2026===`true`;function JS(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}function Rse(e){return e}var zse=e=>t=>async n=>{if(!vx.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:i=``}=e.requestHandler.metadata||{};if(i.indexOf(`h2`)>=0&&!r.headers[`:authority`])delete r.headers.host,r.headers[`:authority`]=r.hostname+(r.port?`:`+r.port:``);else if(!r.headers.host){let e=r.hostname;r.port!=null&&(e+=`:${r.port}`),r.headers.host=e}return t(n)},Bse={name:`hostHeaderMiddleware`,step:`build`,priority:`low`,tags:[`HOST`],override:!0},YS=e=>({applyToStack:t=>{t.add(zse(e),Bse)}}),XS=()=>(e,t)=>async n=>{try{let r=await e(n),{clientName:i,commandName:a,logger:o,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=s,u=c??t.inputFilterSensitiveLog,d=l??t.outputFilterSensitiveLog,{$metadata:f,...p}=r.output;return o?.info?.({clientName:i,commandName:a,input:u(n.input),output:d(p),metadata:f}),r}catch(e){let{clientName:r,commandName:i,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:s}=o,c=s??t.inputFilterSensitiveLog;throw a?.error?.({clientName:r,commandName:i,input:c(n.input),error:e,metadata:e.$metadata}),e}},ZS={name:`loggerMiddleware`,tags:[`LOGGER`],step:`initialize`,override:!0},QS=e=>({applyToStack:e=>{e.add(XS(),ZS)}}),$S=e=>({applyToStack:e=>{}}),eC=(e,t)=>{if(!t||t.length===0)return e;let n=[];for(let r of t)for(let t of e)t.schemeId.split(`#`)[1]===r&&n.push(t);for(let t of e)n.find(({schemeId:e})=>e===t.schemeId)||n.push(t);return n};function tC(e){let t=new Map;for(let n of e)t.set(n.schemeId,n);return t}var nC=(e,t)=>(n,r)=>async i=>{let a=eC(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),o=tC(e.httpAuthSchemes),s=_x(r),c=[];for(let n of a){let i=o.get(n.schemeId);if(!i){c.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}let a=i.identityProvider(await t.identityProviderConfigProvider(e));if(!a){c.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:l={},signingProperties:u={}}=n.propertiesExtractor?.(e,r)||{};n.identityProperties=Object.assign(n.identityProperties||{},l),n.signingProperties=Object.assign(n.signingProperties||{},u),s.selectedHttpAuthScheme={httpAuthOption:n,identity:await a(n.identityProperties),signer:i.signer};break}if(!s.selectedHttpAuthScheme)throw Error(c.join(` -`));return n(i)},rC={step:`serialize`,tags:[`HTTP_AUTH_SCHEME`],name:`httpAuthSchemeMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`},iC=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(nC(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),rC)}}),aC=e=>e=>{throw e},oC=(e,t)=>{},sC=e=>(e,t)=>async n=>{if(!vx.isInstance(n.request))return e(n);let r=_x(t).selectedHttpAuthScheme;if(!r)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:i={}},identity:a,signer:o}=r,s=await e({...n,request:await o.sign(n.request,a,i)}).catch((o.errorHandler||aC)(i));return(o.successHandler||oC)(s.response,i),s},cC={step:`finalizeRequest`,tags:[`HTTP_SIGNING`],name:`httpSigningMiddleware`,aliases:[`apiKeyMiddleware`,`tokenMiddleware`,`awsAuthMiddleware`],override:!0,relation:`after`,toMiddleware:`retryMiddleware`},lC=e=>({applyToStack:t=>{t.addRelativeTo(sC(e),cC)}}),uC=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},dC=class{authSchemes=new Map;constructor(e){for(let t in e){let n=e[t];n!==void 0&&this.authSchemes.set(t,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}},fC=(e=>function(t){return pC(t)&&t.expiration.getTime()-Date.now()e.expiration!==void 0,mC=(e,t,n)=>{if(e===void 0)return;let r=typeof e==`function`?e:async()=>Promise.resolve(e),i,a,o,s=!1,c=async e=>{a||=r(e);try{i=await a,o=!0,s=!1}finally{a=void 0}return i};return t===void 0?async e=>((!o||e?.forceRefresh)&&(i=await c(e)),i):async e=>((!o||e?.forceRefresh)&&(i=await c(e)),s?i:n(i)?(t(i)&&await c(e),i):(s=!0,i))};function hC(e){return e===void 0?!0:typeof e==`string`&&e.length<=50}function gC(e){let t=uC(e.userAgentAppId??void 0),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==`string`?[[n]]:n,userAgentAppId:async()=>{let n=await t();if(!hC(n)){let t=e.logger?.constructor?.name===`NoOpLogger`||!e.logger?console:e.logger;typeof n==`string`?n.length>50&&t?.warn(`The provided userAgentAppId exceeds the maximum length of 50 characters.`):t?.warn(`userAgentAppId must be a string or undefined.`)}return n}})}var _C={partitions:[{id:`aws`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-east-1`,name:`aws`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$`,regions:{"af-south-1":{description:`Africa (Cape Town)`},"ap-east-1":{description:`Asia Pacific (Hong Kong)`},"ap-east-2":{description:`Asia Pacific (Taipei)`},"ap-northeast-1":{description:`Asia Pacific (Tokyo)`},"ap-northeast-2":{description:`Asia Pacific (Seoul)`},"ap-northeast-3":{description:`Asia Pacific (Osaka)`},"ap-south-1":{description:`Asia Pacific (Mumbai)`},"ap-south-2":{description:`Asia Pacific (Hyderabad)`},"ap-southeast-1":{description:`Asia Pacific (Singapore)`},"ap-southeast-2":{description:`Asia Pacific (Sydney)`},"ap-southeast-3":{description:`Asia Pacific (Jakarta)`},"ap-southeast-4":{description:`Asia Pacific (Melbourne)`},"ap-southeast-5":{description:`Asia Pacific (Malaysia)`},"ap-southeast-6":{description:`Asia Pacific (New Zealand)`},"ap-southeast-7":{description:`Asia Pacific (Thailand)`},"aws-global":{description:`aws global region`},"ca-central-1":{description:`Canada (Central)`},"ca-west-1":{description:`Canada West (Calgary)`},"eu-central-1":{description:`Europe (Frankfurt)`},"eu-central-2":{description:`Europe (Zurich)`},"eu-north-1":{description:`Europe (Stockholm)`},"eu-south-1":{description:`Europe (Milan)`},"eu-south-2":{description:`Europe (Spain)`},"eu-west-1":{description:`Europe (Ireland)`},"eu-west-2":{description:`Europe (London)`},"eu-west-3":{description:`Europe (Paris)`},"il-central-1":{description:`Israel (Tel Aviv)`},"me-central-1":{description:`Middle East (UAE)`},"me-south-1":{description:`Middle East (Bahrain)`},"mx-central-1":{description:`Mexico (Central)`},"sa-east-1":{description:`South America (Sao Paulo)`},"us-east-1":{description:`US East (N. Virginia)`},"us-east-2":{description:`US East (Ohio)`},"us-west-1":{description:`US West (N. California)`},"us-west-2":{description:`US West (Oregon)`}}},{id:`aws-cn`,outputs:{dnsSuffix:`amazonaws.com.cn`,dualStackDnsSuffix:`api.amazonwebservices.com.cn`,implicitGlobalRegion:`cn-northwest-1`,name:`aws-cn`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^cn\\-\\w+\\-\\d+$`,regions:{"aws-cn-global":{description:`aws-cn global region`},"cn-north-1":{description:`China (Beijing)`},"cn-northwest-1":{description:`China (Ningxia)`}}},{id:`aws-eusc`,outputs:{dnsSuffix:`amazonaws.eu`,dualStackDnsSuffix:`api.amazonwebservices.eu`,implicitGlobalRegion:`eusc-de-east-1`,name:`aws-eusc`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eusc\\-(de)\\-\\w+\\-\\d+$`,regions:{"eusc-de-east-1":{description:`AWS European Sovereign Cloud (Germany)`}}},{id:`aws-iso`,outputs:{dnsSuffix:`c2s.ic.gov`,dualStackDnsSuffix:`api.aws.ic.gov`,implicitGlobalRegion:`us-iso-east-1`,name:`aws-iso`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-iso\\-\\w+\\-\\d+$`,regions:{"aws-iso-global":{description:`aws-iso global region`},"us-iso-east-1":{description:`US ISO East`},"us-iso-west-1":{description:`US ISO WEST`}}},{id:`aws-iso-b`,outputs:{dnsSuffix:`sc2s.sgov.gov`,dualStackDnsSuffix:`api.aws.scloud`,implicitGlobalRegion:`us-isob-east-1`,name:`aws-iso-b`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isob\\-\\w+\\-\\d+$`,regions:{"aws-iso-b-global":{description:`aws-iso-b global region`},"us-isob-east-1":{description:`US ISOB East (Ohio)`},"us-isob-west-1":{description:`US ISOB West`}}},{id:`aws-iso-e`,outputs:{dnsSuffix:`cloud.adc-e.uk`,dualStackDnsSuffix:`api.cloud-aws.adc-e.uk`,implicitGlobalRegion:`eu-isoe-west-1`,name:`aws-iso-e`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eu\\-isoe\\-\\w+\\-\\d+$`,regions:{"aws-iso-e-global":{description:`aws-iso-e global region`},"eu-isoe-west-1":{description:`EU ISOE West`}}},{id:`aws-iso-f`,outputs:{dnsSuffix:`csp.hci.ic.gov`,dualStackDnsSuffix:`api.aws.hci.ic.gov`,implicitGlobalRegion:`us-isof-south-1`,name:`aws-iso-f`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isof\\-\\w+\\-\\d+$`,regions:{"aws-iso-f-global":{description:`aws-iso-f global region`},"us-isof-east-1":{description:`US ISOF EAST`},"us-isof-south-1":{description:`US ISOF SOUTH`}}},{id:`aws-us-gov`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-gov-west-1`,name:`aws-us-gov`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-gov\\-\\w+\\-\\d+$`,regions:{"aws-us-gov-global":{description:`aws-us-gov global region`},"us-gov-east-1":{description:`AWS GovCloud (US-East)`},"us-gov-west-1":{description:`AWS GovCloud (US-West)`}}}],version:`1.1`},vC=``,yC=e=>{let{partitions:t}=_C;for(let n of t){let{regions:t,outputs:r}=n;for(let[n,i]of Object.entries(t))if(n===e)return{...r,...i}}for(let n of t){let{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}let n=t.find(e=>e.id===`aws`);if(!n)throw Error(`Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.`);return{...n.outputs}},bC=()=>vC,xC=/\d{12}\.ddb/;async function SC(e,t,n){if(n.request?.headers?.[`smithy-protocol`]===`rpc-v2-cbor`&&JS(e,`PROTOCOL_RPC_V2_CBOR`,`M`),typeof t.retryStrategy==`function`){let n=await t.retryStrategy();if(typeof n.mode==`string`)switch(n.mode){case GS.ADAPTIVE:JS(e,`RETRY_MODE_ADAPTIVE`,`F`);break;case GS.STANDARD:JS(e,`RETRY_MODE_STANDARD`,`E`);break}}if(typeof t.accountIdEndpointMode==`function`){let n=e.endpointV2;switch(String(n?.url?.hostname).match(xC)&&JS(e,`ACCOUNT_ID_ENDPOINT`,`O`),await t.accountIdEndpointMode?.()){case`disabled`:JS(e,`ACCOUNT_ID_MODE_DISABLED`,`Q`);break;case`preferred`:JS(e,`ACCOUNT_ID_MODE_PREFERRED`,`P`);break;case`required`:JS(e,`ACCOUNT_ID_MODE_REQUIRED`,`R`);break}}let r=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(r?.$source){let t=r;t.accountId&&JS(e,`RESOLVED_ACCOUNT_ID`,`T`);for(let[n,r]of Object.entries(t.$source??{}))JS(e,n,r)}}var CC=`user-agent`,wC=`x-amz-user-agent`,Vse=/[^!$%&'*+\-.^_`|~\w]/g,Hse=/[^!$%&'*+\-.^_`|~\w#]/g,Use=1024;function Wse(e){let t=``;for(let n in e){let r=e[n];if(t.length+r.length+1<=Use){t.length?t+=`,`+r:t+=r;continue}break}return t}var Gse=e=>(t,n)=>async r=>{let{request:i}=r;if(!vx.isInstance(i))return t(r);let{headers:a}=i,o=n?.userAgent?.map(TC)||[],s=(await e.defaultUserAgentProvider()).map(TC);await SC(n,e,r);let c=n;s.push(`m/${Wse(Object.assign({},n.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let l=e?.customUserAgent?.map(TC)||[],u=await e.userAgentAppId();u&&s.push(TC([`app`,`${u}`]));let d=bC(),f=(d?[d]:[]).concat([...s,...o,...l]).join(` `),p=[...s.filter(e=>e.startsWith(`aws-sdk-`)),...l].join(` `);return e.runtime===`browser`?a[wC]=f:(p&&(a[wC]=a[`x-amz-user-agent`]?`${a[CC]} ${p}`:p),a[CC]=f),t({...r,request:i})},TC=e=>{let t=e[0].split(`/`).map(e=>e.replace(Vse,`-`)).join(`/`),n=e[1]?.replace(Hse,`-`),r=t.indexOf(`/`),i=t.substring(0,r),a=t.substring(r+1);return i===`api`&&(a=a.toLowerCase()),[i,a,n].filter(e=>e&&e.length>0).reduce((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},``)},Kse={name:`getUserAgentMiddleware`,step:`build`,priority:`low`,tags:[`SET_USER_AGENT`,`USER_AGENT`],override:!0},qse=e=>({applyToStack:t=>{t.add(Gse(e),Kse)}}),Jse=({serviceId:e,clientVersion:t})=>async n=>{let r=typeof window<`u`?window.navigator:void 0,i=r?.userAgent??``,a=r?.userAgentData?.platform??EC.os(i)??`other`,o=r?.userAgentData?.brands??[],s=o[o.length-1],c=s?.brand??EC.browser(i)??`unknown`,l=s?.version??`unknown`,u=[[`aws-sdk-js`,t],[`ua`,`2.1`],[`os/${a}`,void 0],[`lang/js`],[`md/browser`,`${c}_${l}`]];e&&u.push([`api/${e}`,t]);let d=await n?.userAgentAppId?.();return d&&u.push([`app/${d}`]),u},EC={os(e){if(/iPhone|iPad|iPod/.test(e))return`iOS`;if(/Macintosh|Mac OS X/.test(e))return`macOS`;if(/Windows NT/.test(e))return`Windows`;if(/Android/.test(e))return`Android`;if(/Linux/.test(e))return`Linux`},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return`Microsoft Edge`;if(/Firefox\//.test(e))return`Firefox`;if(/Chrome\//.test(e))return`Chrome`;if(/Safari\//.test(e))return`Safari`}},DC=(e,t=!1)=>{if(t){for(let t of e.split(`.`))if(!DC(t))return!1;return!0}return!(!bx(e)||e.length<3||e.length>63||e!==e.toLowerCase()||yS(e))},OC=`:`,Yse=`/`,kC={isVirtualHostableS3Bucket:DC,parseArn:e=>{let t=e.split(OC);if(t.length<6)return null;let[n,r,i,a,o,...s]=t;return n!==`arn`||r===``||i===``||s.join(OC)===``?null:{partition:r,service:i,region:a,accountId:o,resourceId:s.map(e=>e.split(Yse)).flat()}},partition:yC};_S.aws=kC;var Xse=(e,t,n)=>{let r,i,a,o=!1,s=async()=>{i||=e();try{r=await i,a=!0,o=!1}finally{i=void 0}return r};return t===void 0?async e=>((!a||e?.forceRefresh)&&(r=await s()),r):async e=>((!a||e?.forceRefresh)&&(r=await s()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await s(),r))},AC=new Set,Zse=(e,t=bx)=>{if(!AC.has(e)&&!t(e))if(e===`*`)console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);else throw Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else AC.add(e)},jC=e=>typeof e==`string`&&(e.startsWith(`fips-`)||e.endsWith(`-fips`)),Qse=e=>jC(e)?[`fips-aws-global`,`aws-fips`].includes(e)?`us-east-1`:e.replace(/fips-(dkr-|prod-)?|-fips/,``):e,$se=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw Error(`Region is missing`);return Object.assign(e,{region:async()=>{let e=Qse(typeof t==`function`?await t():t);return Zse(e),e},useFipsEndpoint:async()=>jC(typeof t==`string`?t:await t())?!0:typeof n==`function`?n():Promise.resolve(!!n)})},ece=[`in-region`,`cross-region`,`mobile`,`standard`,`legacy`],tce=({defaultsMode:e}={})=>Xse(async()=>{let t=typeof e==`function`?await e():e;switch(t?.toLowerCase()){case`auto`:return Promise.resolve(nce()?`mobile`:`standard`);case`mobile`:case`in-region`:case`cross-region`:case`standard`:case`legacy`:return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve(`legacy`);default:throw Error(`Invalid parameter for "defaultsMode", expect ${ece.join(`, `)}, got ${t}`)}}),nce=()=>{let e=window?.navigator;if(e?.connection){let{effectiveType:t,rtt:n,downlink:r}=e?.connection;if(typeof t==`string`&&t!==`4g`||Number(n)>100||Number(r)<10)return!0}return e?.userAgentData?.mobile||typeof e?.maxTouchPoints==`number`&&e?.maxTouchPoints>1},rce=e=>({setRegion(t){e.region=t},region(){return e.region}}),ice=e=>({region:e.region()}),MC=e=>yx.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,NC=e=>new Date(Date.now()+e),ace=(e,t)=>Math.abs(NC(t).getTime()-e)>=3e5,PC=(e,t)=>{let n=Date.parse(e);return ace(n,t)?n-Date.now():t},FC=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},oce=async e=>{let t=FC(`context`,e.context),n=FC(`config`,e.config),r=t.endpointV2?.properties?.authSchemes?.[0];return{config:n,signer:await FC(`signer`,n.signer)(r),signingRegion:e?.signingRegion,signingRegionSet:e?.signingRegionSet,signingName:e?.signingName}},sce=class{async sign(e,t,n){if(!vx.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let r=await oce(n),{config:i,signer:a}=r,{signingRegion:o,signingName:s}=r,c=n.context;if(c?.authSchemes?.length??!1){let[e,t]=c.authSchemes;e?.name===`sigv4a`&&t?.name===`sigv4`&&(o=t?.signingRegion??o,s=t?.signingName??s)}return await a.sign(e,{signingDate:NC(i.systemClockOffset),signingRegion:o,signingService:s})}errorHandler(e){return t=>{let n=t.ServerTime??MC(t.$response);if(n){let r=FC(`config`,e.config),i=r.systemClockOffset;r.systemClockOffset=PC(n,r.systemClockOffset),r.systemClockOffset!==i&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let n=MC(e);if(n){let e=FC(`config`,t.config);e.systemClockOffset=PC(n,e.systemClockOffset)}}},cce=class{format(e){let t=[];for(let n of Object.keys(e)){let r=Gx(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}let n=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),r=0;for(let e of t)n.set(e,r),r+=e.byteLength;return n}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([+!e.value]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case`integer`:let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case`long`:let r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case`binary`:let i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(i.buffer);return a.set(e.value,3),a;case`string`:let o=Gx(e.value),s=new DataView(new ArrayBuffer(3+o.byteLength));s.setUint8(0,7),s.setUint16(1,o.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(o,3),c;case`timestamp`:let l=new Uint8Array(9);return l[0]=8,l.set(dce.fromNumber(e.value.valueOf()).bytes,1),l;case`uuid`:if(!uce.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let u=new Uint8Array(17);return u[0]=9,u.set(boe(e.value.replace(/\-/g,``)),1),u}}},lce;(function(e){e[e.boolTrue=0]=`boolTrue`,e[e.boolFalse=1]=`boolFalse`,e[e.byte=2]=`byte`,e[e.short=3]=`short`,e[e.integer=4]=`integer`,e[e.long=5]=`long`,e[e.byteArray=6]=`byteArray`,e[e.string=7]=`string`,e[e.timestamp=8]=`timestamp`,e[e.uuid=9]=`uuid`})(lce||={});var uce=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,dce=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&IC(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&IC(e),parseInt(uS(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function IC(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var fce=`X-Amz-Algorithm`,pce=`X-Amz-Credential`,LC=`X-Amz-Date`,mce=`X-Amz-SignedHeaders`,hce=`X-Amz-Expires`,RC=`X-Amz-Signature`,zC=`X-Amz-Security-Token`,BC=`authorization`,VC=LC.toLowerCase(),gce=[BC,VC,`date`];RC.toLowerCase();var _ce=`x-amz-content-sha256`,vce=zC.toLowerCase(),yce={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},bce=/^proxy-/,xce=/^sec-/,HC=`AWS4-HMAC-SHA256`,Sce=`AWS4-HMAC-SHA256-PAYLOAD`,Cce=`UNSIGNED-PAYLOAD`,UC=`aws4_request`,wce=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e)){if(r.toLowerCase()===`x-amz-signature`)continue;let i=IS(r);t.push(i);let a=e[r];typeof a==`string`?n[i]=`${i}=${IS(a)}`:Array.isArray(a)&&(n[i]=a.slice(0).reduce((e,t)=>e.concat([`${i}=${IS(t)}`]),[]).sort().join(`&`))}return t.sort().map(e=>n[e]).filter(e=>e).join(`&`)},Tce=e=>Ece(e).toISOString().replace(/\.\d{3}Z$/,`Z`),Ece=e=>typeof e==`number`?new Date(e*1e3):typeof e==`string`?Number(e)?new Date(Number(e)*1e3):new Date(e):e,Dce=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){this.service=r,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof e==`boolean`?e:!0,this.regionProvider=xx(n),this.credentialProvider=xx(t)}createCanonicalRequest(e,t,n){let r=Object.keys(t).sort();return`${e.method} +`),YS={warn:console.warn},XS=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],ZS=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function QS(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),a=e.getUTCHours(),o=e.getUTCMinutes(),s=e.getUTCSeconds(),c=i<10?`0${i}`:`${i}`,l=a<10?`0${a}`:`${a}`,u=o<10?`0${o}`:`${o}`,d=s<10?`0${s}`:`${s}`;return`${XS[r]}, ${c} ${ZS[n]} ${t} ${l}:${u}:${d} GMT`}var $S=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),eC=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC-3339 date-times must be expressed as strings`);let t=$S.exec(e);if(!t)throw TypeError(`Invalid RFC-3339 date-time value`);let[n,r,i,a,o,s,c,l,u]=t,d=oC(KS(_C(r)),mC(i,`month`,1,12),mC(a,`day`,1,31),{hours:o,minutes:s,seconds:c,fractionalMilliseconds:l});return u.toUpperCase()!=`Z`&&d.setTime(d.getTime()-gC(u)),d},tC=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),nC=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),rC=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),iC=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC-7231 date-times must be expressed as strings`);let t=tC.exec(e);if(t){let[e,n,r,i,a,o,s,c]=t;return oC(KS(_C(i)),uC(r),mC(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c})}if(t=nC.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return lC(oC(sC(i),uC(r),mC(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c}))}if(t=rC.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return oC(KS(_C(c)),uC(n),mC(r.trimLeft(),`day`,1,31),{hours:i,minutes:a,seconds:o,fractionalMilliseconds:s})}throw TypeError(`Invalid RFC-7231 date-time value`)},aC=e=>{if(e==null)return;let t;if(typeof e==`number`)t=e;else if(typeof e==`string`)t=HS(e);else if(typeof e==`object`&&e.tag===1)t=e.value;else throw TypeError(`Epoch timestamps must be expressed as floating point numbers or their string representation`);if(Number.isNaN(t)||t===1/0||t===-1/0)throw TypeError(`Epoch timestamps must be valid, non-Infinite, non-NaN numerics`);return new Date(Math.round(t*1e3))},oC=(e,t,n,r)=>{let i=t-1;return fC(e,i,n),new Date(Date.UTC(e,i,n,mC(r.hours,`hour`,0,23),mC(r.minutes,`minute`,0,59),mC(r.seconds,`seconds`,0,60),hC(r.fractionalMilliseconds)))},sC=e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+KS(_C(e));return ne.getTime()-new Date().getTime()>cC?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,uC=e=>{let t=ZS.indexOf(e);if(t<0)throw TypeError(`Invalid month: ${e}`);return t+1},dC=[31,28,31,30,31,30,31,31,30,31,30,31],fC=(e,t,n)=>{let r=dC[t];if(t===1&&pC(e)&&(r=29),n>r)throw TypeError(`Invalid day for ${ZS[t]} in ${e}: ${n}`)},pC=e=>e%4==0&&(e%100!=0||e%400==0),mC=(e,t,n,r)=>{let i=qS(_C(e));if(ir)throw TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},hC=e=>e==null?0:US(`0.`+e)*1e3,gC=e=>{let t=e[0],n=1;if(t==`+`)n=1;else if(t==`-`)n=-1;else throw TypeError(`Offset direction, ${t}, must be "+" or "-"`);let r=Number(e.substring(1,3)),i=Number(e.substring(4,6));return n*(r*60+i)*60*1e3},_C=e=>{let t=0;for(;te&&typeof e==`object`&&(e instanceof vC||`deserializeJSON`in e)?e:typeof e==`string`||Object.getPrototypeOf(e)===String.prototype?vC(String(e)):vC(JSON.stringify(e)),vC.fromObject=vC.from;var yC=/^-?\d*(\.\d+)?$/,bC=class e{string;type;constructor(e,t){if(this.string=e,this.type=t,!yC.test(e))throw Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`)}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!=`object`)return!1;let n=t;return e.prototype.isPrototypeOf(t)||n.type===`bigDecimal`&&yC.test(n.string)}},xC={},SC={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),xC[e]=t,SC[t]=e}function CC(e){if(e.length%2!=0)throw Error(`Hex encoded strings must have an even number length`);let t=new Uint8Array(e.length/2);for(let n=0;n{if(typeof e==`string`){if(TC)return TC.encode(e).byteLength;let t=e.length;for(let n=t-1;n>=0;n--){let r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}else if(typeof e.byteLength==`number`)return e.byteLength;else if(typeof e.size==`number`)return e.size;throw Error(`Body Length computation failed for ${e}`)},DC=e=>typeof e==`string`?OS(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),OC=e=>typeof ArrayBuffer==`function`&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)===`[object ArrayBuffer]`,kC=async e=>void 0,AC=async e=>{let t=e?.Bucket||``;if(typeof e.Bucket==`string`&&(e.Bucket=t.replace(/#/g,`%23`).replace(/\?/g,`%3F`)),FC(t)){if(e.ForcePathStyle===!0)throw Error(`Path-style addressing cannot be used with ARN buckets`)}else (!PC(t)||t.indexOf(`.`)!==-1&&!String(e.Endpoint).startsWith(`http:`)||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},jC=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,MC=/(\d+\.){3}\d+/,NC=/\.\./,PC=e=>jC.test(e)&&!MC.test(e)&&!NC.test(e),FC=e=>{let[t,n,r,,,i]=e.split(`:`),a=t===`arn`&&e.split(`:`).length>=6,o=!!(a&&n&&r&&i);if(a&&!o)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return o},IC=(e,t,n,r=!1)=>{let i=async()=>{let i;return i=r?n.clientContextParams?.[e]??n[e]??n[t]:n[e]??n[t],typeof i==`function`?i():i};return e===`credentialScope`||t===`CredentialScope`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:e===`accountId`||t===`AccountId`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:e===`endpoint`||t===`endpoint`?async()=>{if(n.isCustomEndpoint===!1)return;let e=await i();if(e&&typeof e==`object`){if(`url`in e)return e.url.href;if(`hostname`in e){let{protocol:t,hostname:n,port:r,path:i}=e;return`${t}//${n}${r?`:`+r:``}${i}`}}return e}:i};function LC(e){return async(t,n,r,i)=>{if(!r.isCustomEndpoint){let t;t=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await e(r.serviceId),t&&(r.endpoint=()=>Promise.resolve(Hx(t)),r.isCustomEndpoint=!0)}let a=await RC(t,n,r);if(typeof r.endpointProvider!=`function`)throw Error(`config.endpointProvider is not set.`);let o=r.endpointProvider(a,i);if(r.isCustomEndpoint&&r.endpoint){let e=await r.endpoint();if(e?.headers){o.headers??={};for(let[t,n]of Object.entries(e.headers))o.headers[t]=Array.isArray(n)?n:[n]}}return o}}var RC=async(e,t,n)=>{let r={},i=t?.getEndpointParameterInstructions?.()||{};for(let[t,a]of Object.entries(i))switch(a.type){case`staticContextParams`:r[t]=a.value;break;case`contextParams`:r[t]=e[a.name];break;case`clientContextParams`:case`builtInParams`:r[t]=await IC(a.name,t,n,a.type!==`builtInParams`)();break;case`operationContextParams`:r[t]=a.get(e);break;default:throw Error(`Unrecognized endpoint parameter instruction: `+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()===`s3`&&await AC(r),r};function zC(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}function BC(e){let t=LC(e);return({config:e,instructions:n})=>(r,i)=>async a=>{e.isCustomEndpoint&&zC(i,`ENDPOINT_OVERRIDE`,`N`);let o=await t(a.input,{getEndpointParameterInstructions(){return n}},{...e},i);i.endpointV2=o,i.authSchemes=o.properties?.authSchemes;let s=i.authSchemes?.[0];if(s){i.signing_region=s.signingRegion,i.signing_service=s.signingName;let e=Nx(i)?.selectedHttpAuthScheme?.httpAuthOption;e&&(e.signingProperties=Object.assign(e.signingProperties||{},{signing_region:s.signingRegion,signingRegion:s.signingRegion,signing_service:s.signingName,signingName:s.signingName,signingRegionSet:s.signingRegionSet},s.properties))}return r({...a})}}var VC={step:`serialize`,tags:[`ENDPOINT_PARAMETERS`,`ENDPOINT_V2`,`ENDPOINT`],name:`endpointV2Middleware`,override:!0,relation:`before`,toMiddleware:{name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0}.name};function HC(e){let t=BC(e);return(e,n)=>({applyToStack:r=>{r.addRelativeTo(t({config:e,instructions:n}),VC)}})}function UC(e){return t=>{let n=t.tls??!0,{endpoint:r,useDualstackEndpoint:i,useFipsEndpoint:a}=t,o=Object.assign(t,{endpoint:r==null?void 0:async()=>Hx(await zx(r)()),tls:n,isCustomEndpoint:!!r,useDualstackEndpoint:zx(i??!1),useFipsEndpoint:zx(a??!1)}),s;return o.serviceConfiguredEndpoint=async()=>(t.serviceId&&!s&&(s=e(t.serviceId)),s),o}}var WC=class e{nodes;root;conditions;results;constructor(e,t,n,r){this.nodes=e,this.root=t,this.conditions=n,this.results=r}static from(t,n,r,i){return new e(t,n,r,i)}},GC=class{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){let n=this.hash(e);if(n===!1)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let e=this.data.keys(),t=0;for(;;){let{value:n,done:r}=e.next();if(this.data.delete(n),r||++t>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t=``,{parameters:n}=this;if(n.length===0)return!1;for(let r of n){let n=String(e[r]??``);if(n.includes(`|;`))return!1;t+=n+`|;`}return t}},KC=class extends Error{constructor(e){super(e),this.name=`EndpointError`}},qC=`endpoints`;function JC(e){return typeof e!=`object`||!e?e:`ref`in e?`$${JC(e.ref)}`:`fn`in e?`${e.fn}(${(e.argv||[]).map(JC).join(`, `)})`:JSON.stringify(e,null,2)}var YC={},XC=(e,t)=>e===t;function ZC(...e){for(let t of e)if(t!=null)return t}var QC=e=>{let t=e.split(`.`),n=[];for(let r of t){let t=r.indexOf(`[`);if(t!==-1){if(r.indexOf(`]`)!==r.length-1)throw new KC(`Path: '${e}' does not end with ']'`);let i=r.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new KC(`Invalid array index: '${i}' in path: '${e}'`);t!==0&&n.push(r.slice(0,t)),n.push(i)}else n.push(r)}return n},$C=(e,t)=>QC(t).reduce((n,r)=>{if(typeof n!=`object`)throw new KC(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(n)){let e=parseInt(r);return n[e<0?n.length+e:e]}return n[r]},e),ew=e=>e!=null;function tw(e,t,n){return e?t:n}var nw=e=>!e,rw=RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`),iw=e=>rw.test(e)||e.startsWith(`[`)&&e.endsWith(`]`),aw={[Ax.HTTP]:80,[Ax.HTTPS]:443},ow=e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e==`object`&&`hostname`in e){let{hostname:t,port:n,protocol:r=``,path:i=``,query:a={}}=e,o=new URL(`${r}//${t}${n?`:${n}`:``}${i}`);return o.search=Object.entries(a).map(([e,t])=>`${e}=${t}`).join(`&`),o}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let n=t.href,{host:r,hostname:i,pathname:a,protocol:o,search:s}=t;if(s)return null;let c=o.slice(0,-1);if(!Object.values(Ax).includes(c))return null;let l=iw(i);return{scheme:c,authority:`${r}${n.includes(`${r}:${aw[c]}`)||typeof e==`string`&&e.includes(`${r}:${aw[c]}`)?`:${aw[c]}`:``}`,path:a,normalizedPath:a.endsWith(`/`)?a:`${a}/`,isIp:l}};function sw(e,t,n){if(n===1)return[e];if(e===``)return[``];let r=e.split(t);return n===0?r:r.slice(0,n-1).concat(r.slice(1).join(t))}var cw={booleanEquals:XC,coalesce:ZC,getAttr:$C,isSet:ew,isValidHostLabel:Rx,ite:tw,not:nw,parseURL:ow,split:sw,stringEquals:(e,t)=>e===t,substring:(e,t,n,r)=>e==null||t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},lw=(e,t)=>{let n=[],{referenceRecord:r,endpointParams:i}=t,a=0;for(;at.referenceRecord[e]??t.endpointParams[e],dw=(e,t,n)=>{if(typeof e==`string`)return lw(e,n);if(e.fn)return pw.callFunction(e,n);if(e.ref)return uw(e,n);throw new KC(`'${t}': ${String(e)} is not a string, function or reference.`)},fw=({fn:e,argv:t},n)=>{let r=Array(t.length);for(let e=0;e{let{assign:n}=e;if(n&&n in t.referenceRecord)throw new KC(`'${n}' is already defined in Reference Record.`);let r=fw(e,t);t.logger?.debug?.(`${qC} evaluateCondition: ${JC(e)} = ${JC(r)}`);let i=r===``?!0:!!r;return n==null?{result:i}:{result:i,toAssign:{name:n,value:r}}},hw=(e,t)=>Object.entries(e??{}).reduce((e,[n,r])=>(e[n]=r.map(e=>{let r=dw(e,`Header value entry`,t);if(typeof r!=`string`)throw new KC(`Header '${n}' value '${r}' is not a string`);return r}),e),{}),gw=(e,t)=>Object.entries(e).reduce((e,[n,r])=>(e[n]=vw.getEndpointProperty(r,t),e),{}),_w=(e,t)=>{if(Array.isArray(e))return e.map(e=>_w(e,t));switch(typeof e){case`string`:return lw(e,t);case`object`:if(e===null)throw new KC(`Unexpected endpoint property: ${e}`);return vw.getEndpointProperties(e,t);case`boolean`:return e;default:throw new KC(`Unexpected endpoint property type: ${typeof e}`)}},vw={getEndpointProperty:_w,getEndpointProperties:gw},yw=(e,t)=>{let n=dw(e,`Endpoint URL`,t);if(typeof n==`string`)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new KC(`Endpoint URL must be a string, got ${typeof n}`)},bw=1e8,xw=(e,t)=>{let{nodes:n,root:r,results:i,conditions:a}=e,o=r,s={},c={referenceRecord:s,endpointParams:t.endpointParams,logger:t.logger};for(;o!==1&&o!==-1&&o=0===f.result?r:i}if(o>=bw){let e=i[o-bw];if(e[0]===-1){let[,t]=e;throw new KC(dw(t,`Error`,c))}let[t,n,r]=e;return{url:yw(t,c),properties:gw(n,c),headers:hw(r??{},c)}}throw new KC(`No matching endpoint.`)},Sw=UC(kC);BC(kC);var Cw=HC(kC),ww=class extends AS(jS,OS,kS,DS){},Tw=NS(e=>crypto.getRandomValues(e)),Ew=Tw,Dw=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return ww.mutate(e);if(!e)return ww.mutate(new Uint8Array);let n=t.streamCollector(e);return ww.mutate(await n)},Ow=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},kw=`modulepreload`,Aw=function(e){return`/`+e},jw={},H=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Aw(t,n),t in jw)return;jw[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:kw,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Mw=class extends Ow{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=cS.for(e.defaultNamespace);for(let t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return Px}getResponseType(){return Ix}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if(`url`in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||={};for(let[n,r]of t.url.searchParams.entries())e.query[n]=r;if(t.headers)for(let n in t.headers)e.headers[n]=t.headers[n].join(`, `);return e}else{if(e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},t.headers)for(let n in t.headers)e.headers[n]=t.headers[n];return e}}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix)return;let r=iS.of(t.input),i=eS(t.traits??{});if(i.endpoint){let t=i.endpoint?.[0];if(typeof t==`string`){for(let[e,i]of r.structIterator()){if(!i.getMergedTraits().hostLabel)continue;let r=n[e];if(typeof r!=`string`)throw Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,r)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers[`x-amzn-requestid`]??e.headers[`x-amzn-request-id`]??e.headers[`x-amz-request-id`],extendedRequestId:e.headers[`x-amz-id-2`],cfId:e.headers[`x-amz-cf-id`]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e}=await H(async()=>{let{EventStreamSerde:e}=await import(`./index.browser.js`);return{EventStreamSerde:e}},[]);return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,r,i){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw Error(`@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.`);return e.eventStreamMarshaller}},Nw=class extends Mw{async serializeRequest(e,t,n){let r=this.serializer,i={},a={},o=await n.endpoint(),s=iS.of(e?.input),c=s.getSchema(),l,u=t&&typeof t==`object`?t:{},d=new Px({protocol:``,hostname:``,port:void 0,path:`/`,fragment:void 0,query:i,headers:a,body:void 0});if(o&&(this.updateServiceEndpoint(d,o),this.setHostPrefix(d,e,u)),u){let e=s.getEventStreamMember();if(e){if(u[e]){let t={};for(let[n,i]of s.structIterator())n!==e&&u[n]&&(r.write(i,u[n]),t[n]=r.flush());l=await this.serializeEventStream({eventStream:u[e],requestSchema:s,initialRequest:t})}}else r.write(c,u),l=r.flush()}return d.headers=Object.assign(d.headers,a),d.query=i,d.body=l,d.method=`POST`,d}async deserializeResponse(e,t,n){let r=this.deserializer,i=iS.of(e.output),a={};if(n.statusCode>=300){let i=await Dw(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 - RPC 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=i.getEventStreamMember();if(o)a[o]=await this.deserializeEventStream({response:n,responseSchema:i,initialResponseContainer:a});else{let e=await Dw(n.body,t);e.byteLength>0&&Object.assign(a,await r.read(i,e))}return a.$metadata=this.deserializeMetadata(n),a}};function Pw(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();let{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:a}=e.getMergedTraits();return(t.httpBindings?typeof r==`string`||i?6:a||n?5:void 0:void 0)??t.timestampFormat.default}var Fw=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),Iw=e=>({httpHandler:e.httpHandler()}),Lw=`content-length`;function Rw(e){return t=>async n=>{let r=n.request;if(Px.isInstance(r)){let{body:t,headers:n}=r;if(t&&Object.keys(n).map(e=>e.toLowerCase()).indexOf(Lw)===-1)try{let n=e(t);r.headers={...r.headers,[Lw]:String(n)}}catch{}}return t({...n,request:r})}}var zw={step:`build`,tags:[`SET_CONTENT_LENGTH`,`CONTENT_LENGTH`],name:`contentLengthMiddleware`,override:!0},Bw=e=>({applyToStack:t=>{t.add(Rw(e.bodyLengthChecker),zw)}}),Vw=e=>encodeURIComponent(e).replace(/[!'()*]/g,Hw),Hw=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function Uw(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=Vw(n),Array.isArray(r))for(let e=0,i=r.length;ee?.$retryable!==void 0,Xw=e=>e.$metadata?.clockSkewCorrected,Zw=e=>{let t=new Set([`Failed to fetch`,`NetworkError when attempting to fetch resource`,`The Internet connection appears to be offline`,`Load failed`,`Network request failed`]);return e&&e instanceof TypeError?t.has(e.message):!1},Qw=e=>e.$metadata?.httpStatusCode===429||Ww.includes(e.name)||e.$retryable?.throttling==1,$w=(e,t=0)=>Yw(e)||Xw(e)||e.name===`InvalidSignatureException`&&e.message?.includes(`Signature expired`)||Gw.includes(e.name)||qw.includes(e?.code||``)||Jw.includes(e?.code||``)||Kw.includes(e.$metadata?.httpStatusCode||0)||Zw(e)||tT(e)||e.cause!==void 0&&t<=10&&$w(e.cause,t+1),eT=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!$w(e)}return!1};function tT(e){return e.code===`ERR_HTTP2_STREAM_ERROR`&&e.message.includes(`NGHTTP2_REFUSED_STREAM`)}var nT=20*1e3,rT=`amz-sdk-invocation-id`,iT=`amz-sdk-request`;function aT(e,t){if(Ix.isInstance(e))for(let n of Object.keys(e.headers)){let r=n.toLowerCase();if(r===`retry-after`){let r=e.headers[n],i=NaN;if(r.endsWith(`GMT`))try{i=(iC(r).getTime()-Date.now())/1e3}catch(e){t?.trace?.(`Failed to parse retry-after header`),t?.trace?.(e)}else r.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?i=Number(r.match(/ GMT, ([\d.]+)$/)?.[1]):r.match(/^((\d+)|(\d+\.\d+))$/)?i=Number(r):Date.parse(r)>=Date.now()&&(i=(Date.parse(r)-Date.now())/1e3);return isNaN(i)?void 0:new Date(Date.now()+i*1e3)}else if(r===`x-amz-retry-after`){let r=e.headers[n],i=Number(r);if(isNaN(i)){t?.trace?.(`Failed to parse x-amz-retry-after=${r}`);return}return new Date(Date.now()+i)}}}var oT=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):Error(typeof e==`string`?e:`AWS SDK error wrapper for ${e}`);function sT(e){return t=>(n,r)=>async i=>{let a=await t.retryStrategy(),o=await t.maxAttempts();if(lT(a)){a=a;let s=await a.acquireInitialRetryToken((r.partition_id??``)+(r.__retryLongPoll?`:longpoll`:``)),c=Error(),l=0,u=0,{request:d}=i,f=Px.isInstance(d);for(f&&(d.headers[rT]=Tw());;)try{f&&(d.headers[iT]=`attempt=${l+1}; max=${o}`);let{response:e,output:t}=await n(i);return a.recordSuccess(s),t.$metadata.attempts=l+1,t.$metadata.totalRetryDelay=u,{response:e,output:t}}catch(n){let i=uT(n,t.logger);if(c=oT(n),f&&e(d))throw(r.logger instanceof CS?console:r.logger)?.warn(`An error was encountered in a non-retryable streaming request.`),c;try{s=await a.refreshRetryTokenForRetry(s,i)}catch(e){throw typeof e.$backoff==`number`&&await cT(e.$backoff),c.$metadata||={},c.$metadata.attempts=l+1,c.$metadata.totalRetryDelay=u,c}l=s.getRetryCount();let o=s.getRetryDelay();u+=o,await cT(o)}}else return a=a,a?.mode&&(r.userAgent=[...r.userAgent||[],[`cfg/retry-mode`,a.mode]]),a.retry(n,i)}}var cT=e=>new Promise(t=>setTimeout(t,e)),lT=e=>e.acquireInitialRetryToken!==void 0&&e.refreshRetryTokenForRetry!==void 0&&e.recordSuccess!==void 0,uT=(e,t)=>{let n={error:e,errorType:dT(e)},r=aT(e.$response,t);return r&&(n.retryAfterHint=r),n},dT=e=>Qw(e)?`THROTTLING`:$w(e)?`TRANSIENT`:eT(e)?`SERVER_ERROR`:`CLIENT_ERROR`,fT={name:`retryMiddleware`,tags:[`RETRY`],step:`finalizeRequest`,priority:`high`,override:!0};function pT(e){let t=sT(e);return e=>({applyToStack:n=>{n.add(t(e),fT)}})}var mT=class e{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let t;this.updateMeasuredRate();let n=e;if(n?.errorType===`THROTTLING`||Qw(n?.error??e)){let e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(this.enabled){for(this.refillTokenBucket();t>this.availableTokens;){let n=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(t=>e.setTimeoutFn(t,n)),this.refillTokenBucket()}this.availableTokens-=t}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+t),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise((this.lastMaxRate*(1-this.beta)/this.scaleConstant)**(1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*(e-this.lastThrottleTime-this.timeWindow)**3+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),t=Math.floor(e*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}},hT=class e{static v2026=typeof process<`u`&&{}?.SMITHY_NEW_RETRIES_2026===`true`;static delay(){return e.v2026?50:100}static throttlingDelay(){return e.v2026?1e3:500}static cost(){return e.v2026?14:5}static throttlingCost(){return e.v2026?5:10}static modifiedCostType(){return e.v2026?`THROTTLING`:`TRANSIENT`}},gT=class{x=hT.delay();computeNextBackoffDelay(e){let t=Math.random()*Math.min(this.x*2**e,nT);return Math.floor(t)}setDelayBase(e){this.x=e}},_T=class{delay;count;cost;longPoll;constructor(e,t,n,r){this.delay=e,this.count=t,this.cost=n,this.longPoll=r}getRetryCount(){return this.count}getRetryDelay(){return Math.min(nT,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}},vT;(function(e){e.STANDARD=`standard`,e.ADAPTIVE=`adaptive`})(vT||={});var yT=vT.STANDARD,bT={incompatible:1,attempts:2,capacity:3},xT=class{mode=vT.STANDARD;capacity=500;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(e){typeof e==`number`?this.maxAttemptsProvider=async()=>e:typeof e==`function`?this.maxAttemptsProvider=e:e&&typeof e==`object`&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>3,this.baseDelay??=hT.delay(),this.retryBackoffStrategy??=new gT}async acquireInitialRetryToken(e){return new _T(hT.delay(),0,void 0,hT.v2026&&e.includes(`:longpoll`))}async refreshRetryTokenForRetry(e,t){let n=await this.getMaxAttempts(),r=this.retryCode(e,t,n),i=r===0,a=e.isLongPoll?.();if(i||a){let n=t.errorType;this.retryBackoffStrategy.setDelayBase(n===`THROTTLING`?hT.throttlingDelay():this.baseDelay);let o=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),s=o;if(t.retryAfterHint instanceof Date&&(s=Math.max(o,Math.min(t.retryAfterHint.getTime()-Date.now(),o+5e3))),i){let t=this.getCapacityCost(n);return this.capacity-=t,new _T(s,e.getRetryCount()+1,t,e.isLongPoll?.()??!1)}else throw Object.assign(Error(`No retry token available`),{$backoff:hT.v2026&&r===bT.capacity&&a?s:0})}throw Error(`No retry token available`)}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of 3`),3}}retryCode(e,t,n){let r=e.getRetryCount()+1,i=this.isRetryableError(t.errorType)?0:bT.incompatible,a=r=this.getCapacityCost(t.errorType)?0:bT.capacity;return i||a||o}getCapacityCost(e){return e===hT.modifiedCostType()?hT.throttlingCost():hT.cost()}isRetryableError(e){return e===`THROTTLING`||e===`TRANSIENT`}},ST=class{mode=vT.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){let{rateLimiter:n}=t??{};this.rateLimiter=n??new mT,this.standardRetryStrategy=t?new xT({maxAttempts:typeof e==`number`?e:3,...t}):new xT(e)}async acquireInitialRetryToken(e){let t=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),t}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,t);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}},CT=e=>{let{retryStrategy:t,retryMode:n}=e,r=zx(e.maxAttempts??3),i=t?Promise.resolve(t):void 0,a=async()=>await zx(n)()===vT.ADAPTIVE?new ST(r):new xT(r);return Object.assign(e,{maxAttempts:r,retryStrategy:()=>i??=a()})},wT=pT(wx);hT.v2026||=typeof process==`object`&&{}?.AWS_NEW_RETRIES_2026===`true`;function TT(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}function ET(e){return e}var DT=e=>t=>async n=>{if(!Px.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:i=``}=e.requestHandler.metadata||{};if(i.indexOf(`h2`)>=0&&!r.headers[`:authority`])delete r.headers.host,r.headers[`:authority`]=r.hostname+(r.port?`:`+r.port:``);else if(!r.headers.host){let e=r.hostname;r.port!=null&&(e+=`:${r.port}`),r.headers.host=e}return t(n)},OT={name:`hostHeaderMiddleware`,step:`build`,priority:`low`,tags:[`HOST`],override:!0},kT=e=>({applyToStack:t=>{t.add(DT(e),OT)}}),AT=()=>(e,t)=>async n=>{try{let r=await e(n),{clientName:i,commandName:a,logger:o,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=s,u=c??t.inputFilterSensitiveLog,d=l??t.outputFilterSensitiveLog,{$metadata:f,...p}=r.output;return o?.info?.({clientName:i,commandName:a,input:u(n.input),output:d(p),metadata:f}),r}catch(e){let{clientName:r,commandName:i,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:s}=o,c=s??t.inputFilterSensitiveLog;throw a?.error?.({clientName:r,commandName:i,input:c(n.input),error:e,metadata:e.$metadata}),e}},jT={name:`loggerMiddleware`,tags:[`LOGGER`],step:`initialize`,override:!0},MT=e=>({applyToStack:e=>{e.add(AT(),jT)}}),NT=e=>({applyToStack:e=>{}}),PT=(e,t)=>{if(!t||t.length===0)return e;let n=[];for(let r of t)for(let t of e)t.schemeId.split(`#`)[1]===r&&n.push(t);for(let t of e)n.find(({schemeId:e})=>e===t.schemeId)||n.push(t);return n};function FT(e){let t=new Map;for(let n of e)t.set(n.schemeId,n);return t}var IT=(e,t)=>(n,r)=>async i=>{let a=PT(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),o=FT(e.httpAuthSchemes),s=Nx(r),c=[];for(let n of a){let i=o.get(n.schemeId);if(!i){c.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}let a=i.identityProvider(await t.identityProviderConfigProvider(e));if(!a){c.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:l={},signingProperties:u={}}=n.propertiesExtractor?.(e,r)||{};n.identityProperties=Object.assign(n.identityProperties||{},l),n.signingProperties=Object.assign(n.signingProperties||{},u),s.selectedHttpAuthScheme={httpAuthOption:n,identity:await a(n.identityProperties),signer:i.signer};break}if(!s.selectedHttpAuthScheme)throw Error(c.join(` +`));return n(i)},LT={step:`serialize`,tags:[`HTTP_AUTH_SCHEME`],name:`httpAuthSchemeMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`},RT=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(IT(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),LT)}}),zT=e=>e=>{throw e},BT=(e,t)=>{},VT=e=>(e,t)=>async n=>{if(!Px.isInstance(n.request))return e(n);let r=Nx(t).selectedHttpAuthScheme;if(!r)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:i={}},identity:a,signer:o}=r,s=await e({...n,request:await o.sign(n.request,a,i)}).catch((o.errorHandler||zT)(i));return(o.successHandler||BT)(s.response,i),s},HT={step:`finalizeRequest`,tags:[`HTTP_SIGNING`],name:`httpSigningMiddleware`,aliases:[`apiKeyMiddleware`,`tokenMiddleware`,`awsAuthMiddleware`],override:!0,relation:`after`,toMiddleware:`retryMiddleware`},UT=e=>({applyToStack:t=>{t.addRelativeTo(VT(e),HT)}}),WT=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},GT=class{authSchemes=new Map;constructor(e){for(let t in e){let n=e[t];n!==void 0&&this.authSchemes.set(t,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}},KT=(e=>function(t){return qT(t)&&t.expiration.getTime()-Date.now()e.expiration!==void 0,JT=(e,t,n)=>{if(e===void 0)return;let r=typeof e==`function`?e:async()=>Promise.resolve(e),i,a,o,s=!1,c=async e=>{a||=r(e);try{i=await a,o=!0,s=!1}finally{a=void 0}return i};return t===void 0?async e=>((!o||e?.forceRefresh)&&(i=await c(e)),i):async e=>((!o||e?.forceRefresh)&&(i=await c(e)),s?i:n(i)?(t(i)&&await c(e),i):(s=!0,i))};function YT(e){return e===void 0?!0:typeof e==`string`&&e.length<=50}function XT(e){let t=WT(e.userAgentAppId??void 0),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==`string`?[[n]]:n,userAgentAppId:async()=>{let n=await t();if(!YT(n)){let t=e.logger?.constructor?.name===`NoOpLogger`||!e.logger?console:e.logger;typeof n==`string`?n.length>50&&t?.warn(`The provided userAgentAppId exceeds the maximum length of 50 characters.`):t?.warn(`userAgentAppId must be a string or undefined.`)}return n}})}var ZT={partitions:[{id:`aws`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-east-1`,name:`aws`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$`,regions:{"af-south-1":{description:`Africa (Cape Town)`},"ap-east-1":{description:`Asia Pacific (Hong Kong)`},"ap-east-2":{description:`Asia Pacific (Taipei)`},"ap-northeast-1":{description:`Asia Pacific (Tokyo)`},"ap-northeast-2":{description:`Asia Pacific (Seoul)`},"ap-northeast-3":{description:`Asia Pacific (Osaka)`},"ap-south-1":{description:`Asia Pacific (Mumbai)`},"ap-south-2":{description:`Asia Pacific (Hyderabad)`},"ap-southeast-1":{description:`Asia Pacific (Singapore)`},"ap-southeast-2":{description:`Asia Pacific (Sydney)`},"ap-southeast-3":{description:`Asia Pacific (Jakarta)`},"ap-southeast-4":{description:`Asia Pacific (Melbourne)`},"ap-southeast-5":{description:`Asia Pacific (Malaysia)`},"ap-southeast-6":{description:`Asia Pacific (New Zealand)`},"ap-southeast-7":{description:`Asia Pacific (Thailand)`},"aws-global":{description:`aws global region`},"ca-central-1":{description:`Canada (Central)`},"ca-west-1":{description:`Canada West (Calgary)`},"eu-central-1":{description:`Europe (Frankfurt)`},"eu-central-2":{description:`Europe (Zurich)`},"eu-north-1":{description:`Europe (Stockholm)`},"eu-south-1":{description:`Europe (Milan)`},"eu-south-2":{description:`Europe (Spain)`},"eu-west-1":{description:`Europe (Ireland)`},"eu-west-2":{description:`Europe (London)`},"eu-west-3":{description:`Europe (Paris)`},"il-central-1":{description:`Israel (Tel Aviv)`},"me-central-1":{description:`Middle East (UAE)`},"me-south-1":{description:`Middle East (Bahrain)`},"mx-central-1":{description:`Mexico (Central)`},"sa-east-1":{description:`South America (Sao Paulo)`},"us-east-1":{description:`US East (N. Virginia)`},"us-east-2":{description:`US East (Ohio)`},"us-west-1":{description:`US West (N. California)`},"us-west-2":{description:`US West (Oregon)`}}},{id:`aws-cn`,outputs:{dnsSuffix:`amazonaws.com.cn`,dualStackDnsSuffix:`api.amazonwebservices.com.cn`,implicitGlobalRegion:`cn-northwest-1`,name:`aws-cn`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^cn\\-\\w+\\-\\d+$`,regions:{"aws-cn-global":{description:`aws-cn global region`},"cn-north-1":{description:`China (Beijing)`},"cn-northwest-1":{description:`China (Ningxia)`}}},{id:`aws-eusc`,outputs:{dnsSuffix:`amazonaws.eu`,dualStackDnsSuffix:`api.amazonwebservices.eu`,implicitGlobalRegion:`eusc-de-east-1`,name:`aws-eusc`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eusc\\-(de)\\-\\w+\\-\\d+$`,regions:{"eusc-de-east-1":{description:`AWS European Sovereign Cloud (Germany)`}}},{id:`aws-iso`,outputs:{dnsSuffix:`c2s.ic.gov`,dualStackDnsSuffix:`api.aws.ic.gov`,implicitGlobalRegion:`us-iso-east-1`,name:`aws-iso`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-iso\\-\\w+\\-\\d+$`,regions:{"aws-iso-global":{description:`aws-iso global region`},"us-iso-east-1":{description:`US ISO East`},"us-iso-west-1":{description:`US ISO WEST`}}},{id:`aws-iso-b`,outputs:{dnsSuffix:`sc2s.sgov.gov`,dualStackDnsSuffix:`api.aws.scloud`,implicitGlobalRegion:`us-isob-east-1`,name:`aws-iso-b`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isob\\-\\w+\\-\\d+$`,regions:{"aws-iso-b-global":{description:`aws-iso-b global region`},"us-isob-east-1":{description:`US ISOB East (Ohio)`},"us-isob-west-1":{description:`US ISOB West`}}},{id:`aws-iso-e`,outputs:{dnsSuffix:`cloud.adc-e.uk`,dualStackDnsSuffix:`api.cloud-aws.adc-e.uk`,implicitGlobalRegion:`eu-isoe-west-1`,name:`aws-iso-e`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eu\\-isoe\\-\\w+\\-\\d+$`,regions:{"aws-iso-e-global":{description:`aws-iso-e global region`},"eu-isoe-west-1":{description:`EU ISOE West`}}},{id:`aws-iso-f`,outputs:{dnsSuffix:`csp.hci.ic.gov`,dualStackDnsSuffix:`api.aws.hci.ic.gov`,implicitGlobalRegion:`us-isof-south-1`,name:`aws-iso-f`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isof\\-\\w+\\-\\d+$`,regions:{"aws-iso-f-global":{description:`aws-iso-f global region`},"us-isof-east-1":{description:`US ISOF EAST`},"us-isof-south-1":{description:`US ISOF SOUTH`}}},{id:`aws-us-gov`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-gov-west-1`,name:`aws-us-gov`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-gov\\-\\w+\\-\\d+$`,regions:{"aws-us-gov-global":{description:`aws-us-gov global region`},"us-gov-east-1":{description:`AWS GovCloud (US-East)`},"us-gov-west-1":{description:`AWS GovCloud (US-West)`}}}],version:`1.1`},QT=``,$T=e=>{let{partitions:t}=ZT;for(let n of t){let{regions:t,outputs:r}=n;for(let[n,i]of Object.entries(t))if(n===e)return{...r,...i}}for(let n of t){let{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}let n=t.find(e=>e.id===`aws`);if(!n)throw Error(`Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.`);return{...n.outputs}},eE=()=>QT,tE=/\d{12}\.ddb/;async function nE(e,t,n){if(n.request?.headers?.[`smithy-protocol`]===`rpc-v2-cbor`&&TT(e,`PROTOCOL_RPC_V2_CBOR`,`M`),typeof t.retryStrategy==`function`){let n=await t.retryStrategy();if(typeof n.mode==`string`)switch(n.mode){case vT.ADAPTIVE:TT(e,`RETRY_MODE_ADAPTIVE`,`F`);break;case vT.STANDARD:TT(e,`RETRY_MODE_STANDARD`,`E`);break}}if(typeof t.accountIdEndpointMode==`function`){let n=e.endpointV2;switch(String(n?.url?.hostname).match(tE)&&TT(e,`ACCOUNT_ID_ENDPOINT`,`O`),await t.accountIdEndpointMode?.()){case`disabled`:TT(e,`ACCOUNT_ID_MODE_DISABLED`,`Q`);break;case`preferred`:TT(e,`ACCOUNT_ID_MODE_PREFERRED`,`P`);break;case`required`:TT(e,`ACCOUNT_ID_MODE_REQUIRED`,`R`);break}}let r=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(r?.$source){let t=r;t.accountId&&TT(e,`RESOLVED_ACCOUNT_ID`,`T`);for(let[n,r]of Object.entries(t.$source??{}))TT(e,n,r)}}var rE=`user-agent`,iE=`x-amz-user-agent`,aE=/[^!$%&'*+\-.^_`|~\w]/g,oE=/[^!$%&'*+\-.^_`|~\w#]/g,sE=1024;function cE(e){let t=``;for(let n in e){let r=e[n];if(t.length+r.length+1<=sE){t.length?t+=`,`+r:t+=r;continue}break}return t}var lE=e=>(t,n)=>async r=>{let{request:i}=r;if(!Px.isInstance(i))return t(r);let{headers:a}=i,o=n?.userAgent?.map(uE)||[],s=(await e.defaultUserAgentProvider()).map(uE);await nE(n,e,r);let c=n;s.push(`m/${cE(Object.assign({},n.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let l=e?.customUserAgent?.map(uE)||[],u=await e.userAgentAppId();u&&s.push(uE([`app`,`${u}`]));let d=eE(),f=(d?[d]:[]).concat([...s,...o,...l]).join(` `),p=[...s.filter(e=>e.startsWith(`aws-sdk-`)),...l].join(` `);return e.runtime===`browser`?a[iE]=f:(p&&(a[iE]=a[`x-amz-user-agent`]?`${a[rE]} ${p}`:p),a[rE]=f),t({...r,request:i})},uE=e=>{let t=e[0].split(`/`).map(e=>e.replace(aE,`-`)).join(`/`),n=e[1]?.replace(oE,`-`),r=t.indexOf(`/`),i=t.substring(0,r),a=t.substring(r+1);return i===`api`&&(a=a.toLowerCase()),[i,a,n].filter(e=>e&&e.length>0).reduce((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},``)},sae={name:`getUserAgentMiddleware`,step:`build`,priority:`low`,tags:[`SET_USER_AGENT`,`USER_AGENT`],override:!0},cae=e=>({applyToStack:t=>{t.add(lE(e),sae)}}),lae=({serviceId:e,clientVersion:t})=>async n=>{let r=typeof window<`u`?window.navigator:void 0,i=r?.userAgent??``,a=r?.userAgentData?.platform??dE.os(i)??`other`,o=r?.userAgentData?.brands??[],s=o[o.length-1],c=s?.brand??dE.browser(i)??`unknown`,l=s?.version??`unknown`,u=[[`aws-sdk-js`,t],[`ua`,`2.1`],[`os/${a}`,void 0],[`lang/js`],[`md/browser`,`${c}_${l}`]];e&&u.push([`api/${e}`,t]);let d=await n?.userAgentAppId?.();return d&&u.push([`app/${d}`]),u},dE={os(e){if(/iPhone|iPad|iPod/.test(e))return`iOS`;if(/Macintosh|Mac OS X/.test(e))return`macOS`;if(/Windows NT/.test(e))return`Windows`;if(/Android/.test(e))return`Android`;if(/Linux/.test(e))return`Linux`},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return`Microsoft Edge`;if(/Firefox\//.test(e))return`Firefox`;if(/Chrome\//.test(e))return`Chrome`;if(/Safari\//.test(e))return`Safari`}},fE=(e,t=!1)=>{if(t){for(let t of e.split(`.`))if(!fE(t))return!1;return!0}return!(!Rx(e)||e.length<3||e.length>63||e!==e.toLowerCase()||iw(e))},pE=`:`,uae=`/`,mE={isVirtualHostableS3Bucket:fE,parseArn:e=>{let t=e.split(pE);if(t.length<6)return null;let[n,r,i,a,o,...s]=t;return n!==`arn`||r===``||i===``||s.join(pE)===``?null:{partition:r,service:i,region:a,accountId:o,resourceId:s.map(e=>e.split(uae)).flat()}},partition:$T};YC.aws=mE;var dae=(e,t,n)=>{let r,i,a,o=!1,s=async()=>{i||=e();try{r=await i,a=!0,o=!1}finally{i=void 0}return r};return t===void 0?async e=>((!a||e?.forceRefresh)&&(r=await s()),r):async e=>((!a||e?.forceRefresh)&&(r=await s()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await s(),r))},hE=new Set,fae=(e,t=Rx)=>{if(!hE.has(e)&&!t(e))if(e===`*`)console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);else throw Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else hE.add(e)},gE=e=>typeof e==`string`&&(e.startsWith(`fips-`)||e.endsWith(`-fips`)),pae=e=>gE(e)?[`fips-aws-global`,`aws-fips`].includes(e)?`us-east-1`:e.replace(/fips-(dkr-|prod-)?|-fips/,``):e,mae=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw Error(`Region is missing`);return Object.assign(e,{region:async()=>{let e=pae(typeof t==`function`?await t():t);return fae(e),e},useFipsEndpoint:async()=>gE(typeof t==`string`?t:await t())?!0:typeof n==`function`?n():Promise.resolve(!!n)})},hae=[`in-region`,`cross-region`,`mobile`,`standard`,`legacy`],gae=({defaultsMode:e}={})=>dae(async()=>{let t=typeof e==`function`?await e():e;switch(t?.toLowerCase()){case`auto`:return Promise.resolve(_ae()?`mobile`:`standard`);case`mobile`:case`in-region`:case`cross-region`:case`standard`:case`legacy`:return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve(`legacy`);default:throw Error(`Invalid parameter for "defaultsMode", expect ${hae.join(`, `)}, got ${t}`)}}),_ae=()=>{let e=window?.navigator;if(e?.connection){let{effectiveType:t,rtt:n,downlink:r}=e?.connection;if(typeof t==`string`&&t!==`4g`||Number(n)>100||Number(r)<10)return!0}return e?.userAgentData?.mobile||typeof e?.maxTouchPoints==`number`&&e?.maxTouchPoints>1},vae=e=>({setRegion(t){e.region=t},region(){return e.region}}),yae=e=>({region:e.region()}),_E=e=>Ix.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,vE=e=>new Date(Date.now()+e),bae=(e,t)=>Math.abs(vE(t).getTime()-e)>=3e5,yE=(e,t)=>{let n=Date.parse(e);return bae(n,t)?n-Date.now():t},bE=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},xae=async e=>{let t=bE(`context`,e.context),n=bE(`config`,e.config),r=t.endpointV2?.properties?.authSchemes?.[0];return{config:n,signer:await bE(`signer`,n.signer)(r),signingRegion:e?.signingRegion,signingRegionSet:e?.signingRegionSet,signingName:e?.signingName}},Sae=class{async sign(e,t,n){if(!Px.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let r=await xae(n),{config:i,signer:a}=r,{signingRegion:o,signingName:s}=r,c=n.context;if(c?.authSchemes?.length??!1){let[e,t]=c.authSchemes;e?.name===`sigv4a`&&t?.name===`sigv4`&&(o=t?.signingRegion??o,s=t?.signingName??s)}return await a.sign(e,{signingDate:vE(i.systemClockOffset),signingRegion:o,signingService:s})}errorHandler(e){return t=>{let n=t.ServerTime??_E(t.$response);if(n){let r=bE(`config`,e.config),i=r.systemClockOffset;r.systemClockOffset=yE(n,r.systemClockOffset),r.systemClockOffset!==i&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let n=_E(e);if(n){let e=bE(`config`,t.config);e.systemClockOffset=yE(n,e.systemClockOffset)}}},Cae=class{format(e){let t=[];for(let n of Object.keys(e)){let r=OS(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}let n=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),r=0;for(let e of t)n.set(e,r),r+=e.byteLength;return n}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([+!e.value]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case`integer`:let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case`long`:let r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case`binary`:let i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(i.buffer);return a.set(e.value,3),a;case`string`:let o=OS(e.value),s=new DataView(new ArrayBuffer(3+o.byteLength));s.setUint8(0,7),s.setUint16(1,o.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(o,3),c;case`timestamp`:let l=new Uint8Array(9);return l[0]=8,l.set(Eae.fromNumber(e.value.valueOf()).bytes,1),l;case`uuid`:if(!Tae.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let u=new Uint8Array(17);return u[0]=9,u.set(CC(e.value.replace(/\-/g,``)),1),u}}},wae;(function(e){e[e.boolTrue=0]=`boolTrue`,e[e.boolFalse=1]=`boolFalse`,e[e.byte=2]=`byte`,e[e.short=3]=`short`,e[e.integer=4]=`integer`,e[e.long=5]=`long`,e[e.byteArray=6]=`byteArray`,e[e.string=7]=`string`,e[e.timestamp=8]=`timestamp`,e[e.uuid=9]=`uuid`})(wae||={});var Tae=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,Eae=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&xE(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&xE(e),parseInt(wC(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function xE(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var Dae=`X-Amz-Algorithm`,Oae=`X-Amz-Credential`,SE=`X-Amz-Date`,kae=`X-Amz-SignedHeaders`,Aae=`X-Amz-Expires`,CE=`X-Amz-Signature`,wE=`X-Amz-Security-Token`,TE=`authorization`,EE=SE.toLowerCase(),jae=[TE,EE,`date`];CE.toLowerCase();var Mae=`x-amz-content-sha256`,Nae=wE.toLowerCase(),Pae={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Fae=/^proxy-/,Iae=/^sec-/,DE=`AWS4-HMAC-SHA256`,Lae=`AWS4-HMAC-SHA256-PAYLOAD`,Rae=`UNSIGNED-PAYLOAD`,OE=`aws4_request`,zae=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e)){if(r.toLowerCase()===`x-amz-signature`)continue;let i=Vw(r);t.push(i);let a=e[r];typeof a==`string`?n[i]=`${i}=${Vw(a)}`:Array.isArray(a)&&(n[i]=a.slice(0).reduce((e,t)=>e.concat([`${i}=${Vw(t)}`]),[]).sort().join(`&`))}return t.sort().map(e=>n[e]).filter(e=>e).join(`&`)},Bae=e=>Vae(e).toISOString().replace(/\.\d{3}Z$/,`Z`),Vae=e=>typeof e==`number`?new Date(e*1e3):typeof e==`string`?Number(e)?new Date(Number(e)*1e3):new Date(e):e,Hae=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){this.service=r,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof e==`boolean`?e:!0,this.regionProvider=zx(n),this.credentialProvider=zx(t)}createCanonicalRequest(e,t,n){let r=Object.keys(t).sort();return`${e.method} ${this.getCanonicalPath(e)} -${wce(e)} +${zae(e)} ${r.map(e=>`${e}:${t[e]}`).join(` `)} ${r.join(`;`)} -${n}`}async createStringToSign(e,t,n,r){let i=new this.sha256;return i.update(fS(n)),`${r} +${n}`}async createStringToSign(e,t,n,r){let i=new this.sha256;return i.update(DC(n)),`${r} ${e} ${t} -${uS(await i.digest())}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let n of e.split(`/`))n?.length!==0&&n!==`.`&&(n===`..`?t.pop():t.push(n));return IS(`${e?.startsWith(`/`)?`/`:``}${t.join(`/`)}${t.length>0&&e?.endsWith(`/`)?`/`:``}`).replace(/%2F/g,`/`)}return e}validateResolvedCredentials(e){if(typeof e!=`object`||typeof e.accessKeyId!=`string`||typeof e.secretAccessKey!=`string`)throw Error(`Resolved credential object is not valid`)}formatDate(e){let t=Tce(e).replace(/[\-:]/g,``);return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(`;`)}},WC={},GC=[],KC=(e,t,n)=>`${e}/${t}/${n}/${UC}`,Oce=async(e,t,n,r,i)=>{let a=`${n}:${r}:${i}:${uS(await qC(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(a in WC)return WC[a];for(GC.push(a);GC.length>50;)delete WC[GC.shift()];let o=`AWS4${t.secretAccessKey}`;for(let t of[n,r,i,UC])o=await qC(e,o,t);return WC[a]=o},qC=(e,t,n)=>{let r=new e(t);return r.update(fS(n)),r.digest()},JC=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){if(e[i]==null)continue;let a=i.toLowerCase();(a in yce||t?.has(a)||bce.test(a)||xce.test(a))&&(!n||n&&!n.has(a))||(r[a]=e[i].trim().replace(/\s+/g,` `))}return r},YC=async({headers:e,body:t},n)=>{for(let t of Object.keys(e))if(t.toLowerCase()===`x-amz-content-sha256`)return e[t];if(t==null)return`e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`;if(typeof t==`string`||ArrayBuffer.isView(t)||Soe(t)){let e=new n;return e.update(fS(t)),uS(await e.digest())}return Cce},kce=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},Ace=(e,t={})=>{let{headers:n,query:r={}}=vx.clone(e);for(let e of Object.keys(n)){let i=e.toLowerCase();(i.slice(0,6)===`x-amz-`&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i))&&(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}},XC=e=>{e=vx.clone(e);for(let t of Object.keys(e.headers))gce.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},ZC=class extends Dce{headerFormatter=new cce;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a})}async presign(e,t={}){let{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:o,hoistableHeaders:s,signingRegion:c,signingService:l}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);let d=c??await this.regionProvider(),{longDate:f,shortDate:p}=this.formatDate(n);if(r>604800)return Promise.reject(`Signature version 4 presigned URLs must have an expiration date less than one week in the future`);let m=KC(p,d,l??this.service),h=Ace(XC(e),{unhoistableHeaders:a,hoistableHeaders:s});u.sessionToken&&(h.query[zC]=u.sessionToken),h.query[fce]=HC,h.query[pce]=`${u.accessKeyId}/${m}`,h.query[LC]=f,h.query[hce]=r.toString(10);let g=JC(h,i,o);return h.query[mce]=this.getCanonicalHeaderList(g),h.query[RC]=await this.getSignature(f,m,this.getSigningKey(u,d,p,l),this.createCanonicalRequest(h,g,await YC(e,this.sha256))),h}async sign(e,t){return typeof e==`string`?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:r,signingRegion:i,signingService:a,eventStreamCredentials:o}){let s=i??await this.regionProvider(),{shortDate:c,longDate:l}=this.formatDate(n),u=KC(c,s,a??this.service),d=await YC({headers:{},body:t},this.sha256),f=new this.sha256;f.update(e);let p=[Sce,l,u,r,uS(await f.digest()),d].join(` -`);return this.signString(p,{signingDate:n,signingRegion:s,signingService:a,eventStreamCredentials:o})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature,eventStreamCredentials:i}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}={}){let a=i??await this.credentialProvider();this.validateResolvedCredentials(a);let o=n??await this.regionProvider(),{shortDate:s}=this.formatDate(t),c=new this.sha256(await this.getSigningKey(a,o,s,r));return c.update(fS(e)),uS(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:i,signingService:a}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let s=i??await this.regionProvider(),c=XC(e),{longDate:l,shortDate:u}=this.formatDate(t),d=KC(u,s,a??this.service);c.headers[VC]=l,o.sessionToken&&(c.headers[vce]=o.sessionToken);let f=await YC(c,this.sha256);!kce(`x-amz-content-sha256`,c.headers)&&this.applyChecksum&&(c.headers[_ce]=f);let p=JC(c,r,n),m=await this.getSignature(l,d,this.getSigningKey(o,s,u,a),this.createCanonicalRequest(c,p,f));return c.headers[BC]=`${HC} Credential=${o.accessKeyId}/${d}, SignedHeaders=${this.getCanonicalHeaderList(p)}, Signature=${m}`,c}async getSignature(e,t,n,r){let i=await this.createStringToSign(e,t,r,HC),a=new this.sha256(await n);return a.update(fS(i)),uS(await a.digest())}getSigningKey(e,t,n,r){return Oce(this.sha256,e,n,t,r||this.service)}},jce=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,`credentials`,{set(i){i&&i!==t&&i!==r&&(n=!0),t=i;let a=Nce(e,Mce(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}));if(n&&!a.attributed){let e=typeof t==`object`&&!!t;r=async t=>{let n=await a(t);return e&&(!n.$source||Object.keys(n.$source).length===0)?bae(n,`CREDENTIALS_CODE`,`e`):n},r.memoized=a.memoized,r.configBound=a.configBound,r.attributed=!0}else r=a},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;let{signingEscapePath:i=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:o}=e,s;return s=e.signer?uC(e.signer):e.regionInfoProvider?()=>uC(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,n])=>{let{signingRegion:r,signingService:a}=t;e.signingRegion=e.signingRegion||r||n,e.signingName=e.signingName||a||e.serviceId;let s={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||ZC)(s)}):async t=>{t=Object.assign({},{name:`sigv4`,signingName:e.signingName||e.defaultSigningName,signingRegion:await uC(e.region)(),properties:{}},t);let n=t.signingRegion,r=t.signingName;e.signingRegion=e.signingRegion||n,e.signingName=e.signingName||r||e.serviceId;let a={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||ZC)(a)},Object.assign(e,{systemClockOffset:a,signingEscapePath:i,signer:s})};function Mce(e,{credentials:t,credentialDefaultProvider:n}){let r;return r=t?t?.memoized?t:mC(t,fC,pC):n?uC(n(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function Nce(e,t){if(t.configBound)return t;let n=async n=>t({...n,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}var Pce=async(e,t,n)=>({operation:_x(t).operation,region:await xx(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Fce(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`acm`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Ice=e=>{let t=[];switch(e.operation){default:t.push(Fce(e))}return t},Lce=e=>{let t=jce(e);return Object.assign(t,{authSchemePreference:xx(e.authSchemePreference??[])})},Rce=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`acm`}),QC={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},zce={name:`@aws-sdk/client-acm`,description:`AWS SDK for JavaScript Acm Client for Node.js, Browser and React Native`,version:`3.1057.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-acm`,"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.15`,"@aws-sdk/credential-provider-node":`^3.972.47`,"@aws-sdk/types":`^3.973.9`,"@smithy/core":`^3.24.5`,"@smithy/fetch-http-handler":`^5.4.5`,"@smithy/node-http-handler":`^4.7.5`,"@smithy/types":`^4.14.2`,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/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`}};function $C(e,t){return new Request(e,t)}function Bce(e=0){return new Promise((t,n)=>{e&&setTimeout(()=>{let t=Error(`Request did not complete within ${e} ms`);t.name=`TimeoutError`,n(t)},e)})}var ew={supported:void 0},Vce=class e{config;configProvider;static create(t){return typeof t?.handle==`function`?t:new e(t)}constructor(e){typeof e==`function`?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),ew.supported===void 0&&(ew.supported=typeof Request<`u`&&`keepalive`in $C(`https://[::1]`))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:n}={}){this.config||=await this.configProvider;let r=n??this.config.requestTimeout,i=this.config.keepAlive===!0,a=this.config.credentials;if(t?.aborted){let e=tw(t);return Promise.reject(e)}let o=e.path,s=pse(e.query||{});s&&(o+=`?${s}`),e.fragment&&(o+=`#${e.fragment}`);let c=``;(e.username!=null||e.password!=null)&&(c=`${e.username??``}:${e.password??``}@`);let{port:l,method:u}=e,d=`${e.protocol}//${c}${e.hostname}${l?`:${l}`:``}${o}`,f=u===`GET`||u===`HEAD`?void 0:e.body,p={body:f,headers:new Headers(e.headers),method:u,credentials:a};this.config?.cache&&(p.cache=this.config.cache),f&&(p.duplex=`half`),typeof AbortController<`u`&&(p.signal=t),ew.supported&&(p.keepalive=i),typeof this.config.requestInit==`function`&&Object.assign(p,this.config.requestInit(e));let m=()=>{},h=$C(d,p),g=[fetch(h).then(e=>{let t=e.headers,n={};for(let e of t.entries())n[e[0]]=e[1];return e.body==null?e.blob().then(t=>({response:new yx({headers:n,reason:e.statusText,statusCode:e.status,body:t})})):{response:new yx({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}}),Bce(r)];return t&&g.push(new Promise((e,n)=>{let r=()=>{n(tw(t))};if(typeof t.addEventListener==`function`){let e=t;e.addEventListener(`abort`,r,{once:!0}),m=()=>e.removeEventListener(`abort`,r)}else t.onabort=r})),Promise.race(g).finally(m)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=t,n))}httpHandlerConfigs(){return this.config??{}}};function tw(e){let t=e&&typeof e==`object`&&`reason`in e?e.reason:void 0;if(t){if(t instanceof Error){let e=Error(`Request aborted`);return e.name=`AbortError`,e.cause=t,e}let e=Error(String(t));return e.name=`AbortError`,e}let n=Error(`Request aborted`);return n.name=`AbortError`,n}var Hce=async e=>typeof Blob==`function`&&e instanceof Blob||e.constructor?.name===`Blob`?Blob.prototype.arrayBuffer===void 0?Uce(e):new Uint8Array(await e.arrayBuffer()):Wce(e);async function Uce(e){let t=Wx(await Gce(e));return new Uint8Array(t)}async function Wce(e){let t=[],n=e.getReader(),r=!1,i=0;for(;!r;){let{done:e,value:a}=await n.read();a&&(t.push(a),i+=a.length),r=e}let a=new Uint8Array(i),o=0;for(let e of t)a.set(e,o),o+=e.length;return a}function Gce(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(Error(`Reader aborted too early`));let e=r.result??``,i=e.indexOf(`,`),a=i>-1?i+1:e.length;t(e.substring(a))},r.onabort=()=>n(Error(`Read aborted`)),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}var Kce=class{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){let n=t.getMemberSchemas(),r=Object.values(n).find(e=>!!e.getMergedTraits().httpPayload);if(r)return r.getMergedTraits().mediaType||(r.isStringSchema()?`text/plain`:r.isBlobSchema()?`application/octet-stream`:e);if(!t.isUnitSchema()&&Object.values(n).find(e=>{let{httpQuery:t,httpQueryParams:n,httpHeader:r,httpLabel:i,httpPrefixHeaders:a}=e.getMergedTraits();return!t&&!n&&!r&&!i&&a===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,t,n,r,i,a){let o=e;e.includes(`#`)&&([,o]=e.split(`#`));let s={$metadata:i,$fault:n.statusCode<500?`client`:`server`};if(!this.errorRegistry)throw Error(`@aws-sdk/core/protocols - error handler not initialized.`);try{return{errorSchema:a?.(this.errorRegistry,o)??this.errorRegistry.getSchema(e),errorMetadata:s}}catch{r.message=r.message??r.Message??`UnknownError`;let e=this.errorRegistry,t=e.getBaseException();if(t){let n=e.getErrorCtor(t)??Error;throw this.decorateServiceException(Object.assign(new n({name:o}),s),r)}let n=r,i=n?.message??n?.Message??n?.Error?.Message??n?.Error?.message;throw this.decorateServiceException(Object.assign(Error(i),{name:o},s),r)}}compose(e,t,n){let r=n;t.includes(`#`)&&([r]=t.split(`#`));let i=Fx.for(r),a=Fx.for(`smithy.ts.sdk.synthetic.`+n);e.copyFrom(i),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){let n=e.Message??t.Message,r=zx(e,t);n&&(r.message=n);let i=r.Error??{};i.Type=r.Error?.Type,i.Code=r.Error?.Code,i.Message=r.Error?.message??r.Error?.Message??n,r.Error=i;let a=r.$metadata.requestId;return a&&(r.RequestId=a),r}return zx(e,t)}setQueryCompatError(e,t){let n=t.headers?.[`x-amzn-query-error`];if(e!==void 0&&n!=null){let[t,r]=n.split(`;`),i=Object.keys(e),a={Code:t,Type:r};e.Code=t,e.Type=r;for(let t=0;tMx.of(e).getMergedTraits().awsQueryError?.[0]===t)}}},nw=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},qce=class{from;to;keys;constructor(e,t){this.from=e,this.to=t;let n=Object.keys(this.from),r=new Set(n);r.delete(`__type`),this.keys=r}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}};function Jce(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 sS(e,`bigDecimal`):BigInt(e)}return t}var Yce=(e,t)=>MS(e,t).then(e=>(t?.utf8Encoder??qx)(e)),Xce=(e,t)=>Yce(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{}}),rw=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),iw=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},Zce=(e,t,n=!1)=>Qce(e,t,n?[`code`,`header`,`type`]:[`type`,`code`,`header`]),Qce=({headers:e},t,n)=>{for(;n.length>0;)switch(n.shift()){case`header`:let n=rw(e??{},`x-amzn-errortype`);if(n!==void 0)return iw(e[n]);break;case`code`:let r=rw(t??{},`code`);if(r&&t[r]!==void 0)return iw(t[r]);break;case`type`:if(t?.__type!==void 0)return iw(t.__type);break}},$ce=class extends nw{settings;constructor(e){super(),this.settings=e}async read(e,t){return this._read(e,typeof t==`string`?JSON.parse(t,Jce):await Xce(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){let n=typeof t==`object`&&!!t,r=Mx.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 qce(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 Wx(t);let i=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof t==`string`&&i)return i===`application/json`||i.endsWith(`+json`)?aS.from(t):t;if(r.isTimestampSchema()&&t!=null)switch(PS(r,this.settings)){case 5:return soe(t);case 6:return eS(t);case 7:return doe(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 sS)return t;let e=t;return e.type===`bigDecimal`&&`string`in e?new sS(e.string,e.type):new sS(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 sS?e[n]=i:e[n]=this._read(r,i)}return e}else return structuredClone(t);return t}},aw=`Ν`,ele=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 sS){let e=`${aw+`nv`+ this.counter++}_`+t.string;return this.values.set(`"${e}"`,t.string),e}if(typeof t==`bigint`){let e=t.toString(),n=`${aw+`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}},tle=class extends nw{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=Mx.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 ele;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=Mx.of(e).getName(!0))}_write(e,t,n){let r=typeof t==`object`&&!!t,i=Mx.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??Kx)(t);if(t instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema()))switch(PS(i,this.settings)){case 5:return t.toISOString().replace(`.000Z`,`Z`);case 6:return aoe(t);case 7:return t.getTime()/1e3;default:return console.warn(`Missing timestamp format, using epoch seconds`,t),t.getTime()/1e3}t instanceof sS&&(this.useReplacer=!0)}if(!(t===null&&n?.isStructSchema())){if(i.isStringSchema()){if(t===void 0&&i.isIdempotencyToken())return tse();let e=i.getMergedTraits().mediaType;return t!=null&&e&&(e===`application/json`||e.endsWith(`+json`))?aS.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??Kx)(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 sS?(this.useReplacer=!0,e[n]=r):e[n]=this._write(i,r)}return e}else return structuredClone(t);return t}}},nle=class extends nw{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new tle(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new $ce(this.settings);return e.setSerdeContext(this.serdeContext),e}},rle=class extends ose{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 nle({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!r,this.mixin=new Kce(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`),(wx(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=Zce(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=Mx.of(s),u=r.message??r.Message??`UnknownError`,d=new((this.compositeErrorRegistry.getErrorCtor(s))??Error)({}),f={},p=this.codec.createDeserializer();for(let[e,t]of l.structIterator())r[e]!=null&&(f[e]=p.readObject(t,r[e]));throw a&&this.mixin.queryCompatOutput(r,f),this.mixin.decorateServiceException(Object.assign(d,c,{$fault:l.getMergedTraits().error,message:u},f),r)}},ile=class extends rle{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`}},ow=`ref`,sw=-1,cw=!0,lw=`isSet`,uw=`PartitionResult`,dw=`booleanEquals`,fw=`getAttr`,pw={[ow]:`Endpoint`},mw={[ow]:uw},hw={},gw=[{[ow]:`Region`}],_w={conditions:[[lw,[pw]],[lw,gw],[`aws.partition`,gw,uw],[dw,[{[ow]:`UseFIPS`},cw]],[dw,[{[ow]:`UseDualStack`},cw]],[dw,[{fn:fw,argv:[mw,`supportsDualStack`]},cw]],[dw,[{fn:fw,argv:[mw,`supportsFIPS`]},cw]],[`stringEquals`,[{fn:fw,argv:[mw,`name`]},`aws-us-gov`]]],results:[[sw],[sw,`Invalid Configuration: FIPS and custom endpoint are not supported`],[sw,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[pw,hw],[`https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,hw],[sw,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://acm.{Region}.amazonaws.com`,hw],[`https://acm-fips.{Region}.{PartitionResult#dnsSuffix}`,hw],[sw,`FIPS is enabled but this partition does not support FIPS`],[`https://acm.{Region}.{PartitionResult#dualStackDnsSuffix}`,hw],[sw,`DualStack is enabled but this partition does not support DualStack`],[`https://acm.{Region}.{PartitionResult#dnsSuffix}`,hw],[sw,`Invalid Configuration: Missing Region`]]},vw=2,yw=1e8,bw=new Int32Array([-1,1,-1,0,13,3,1,4,yw+12,2,5,yw+12,3,8,6,4,7,yw+11,5,yw+9,yw+10,4,11,9,6,10,yw+8,7,yw+6,yw+7,5,12,yw+5,6,yw+4,yw+5,3,yw+1,14,4,yw+2,yw+3]),xw=Ioe.from(bw,vw,_w.conditions,_w.results),Sw=new Loe({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Cw=(e,t={})=>Sw.get(e,()=>$oe(xw,{endpointParams:e,logger:t.logger}));_S.aws=kC;var ww=class e extends Fae{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Tw=class e extends ww{name=`AccessDeniedException`;$fault=`client`;Message;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Ew=class e extends ww{name=`InvalidArnException`;$fault=`client`;constructor(t){super({name:`InvalidArnException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Dw=class e extends ww{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ow=class e extends ww{name=`InvalidTagException`;$fault=`client`;constructor(t){super({name:`InvalidTagException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},kw=class e extends ww{name=`ResourceNotFoundException`;$fault=`client`;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Aw=class e extends ww{name=`TagPolicyException`;$fault=`client`;constructor(t){super({name:`TagPolicyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},jw=class e extends ww{name=`ThrottlingException`;$fault=`client`;throttlingReasons;constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.throttlingReasons=t.throttlingReasons}},Mw=class e extends ww{name=`TooManyTagsException`;$fault=`client`;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Nw=class e extends ww{name=`ConflictException`;$fault=`client`;constructor(t){super({name:`ConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Pw=class e extends ww{name=`ResourceInUseException`;$fault=`client`;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Fw=class e extends ww{name=`RequestInProgressException`;$fault=`client`;constructor(t){super({name:`RequestInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Iw=class e extends ww{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Lw=class e extends ww{name=`InvalidArgsException`;$fault=`client`;constructor(t){super({name:`InvalidArgsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Rw=class e extends ww{name=`ValidationException`;$fault=`client`;constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},zw=class e extends ww{name=`InvalidDomainValidationOptionsException`;$fault=`client`;constructor(t){super({name:`InvalidDomainValidationOptionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Bw=class e extends ww{name=`InvalidStateException`;$fault=`client`;constructor(t){super({name:`InvalidStateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Vw=`AccessDeniedException`,Hw=`Certificate`,Uw=`CreatedAt`,Ww=`CertificateArn`,Gw=`CertificateChain`,Kw=`ConflictException`,qw=`CertificateSummary`,Jw=`CertificateSummaryList`,Yw=`CertificateStatuses`,Xw=`DomainName`,Zw=`Exported`,Qw=`ExtendedKeyUsages`,$w=`ExportOption`,eT=`Filters`,tT=`HasAdditionalSubjectAlternativeNames`,nT=`ImportedAt`,rT=`InvalidArgsException`,iT=`InvalidArnException`,aT=`IssuedAt`,oT=`ImportCertificate`,sT=`ImportCertificateRequest`,cT=`ImportCertificateResponse`,lT=`InvalidDomainValidationOptionsException`,uT=`InvalidParameterException`,dT=`InvalidStateException`,fT=`InvalidTagException`,pT=`InUse`,mT=`Includes`,hT=`Key`,gT=`KeyAlgorithm`,_T=`KeyUsages`,vT=`ListCertificates`,yT=`ListCertificatesRequest`,bT=`ListCertificatesResponse`,xT=`LimitExceededException`,ST=`Message`,CT=`ManagedBy`,wT=`MaxItems`,TT=`NotAfter`,ET=`NotBefore`,DT=`NextToken`,OT=`PrivateKey`,kT=`PrivateKeyBlob`,AT=`RevokedAt`,jT=`RenewalEligibility`,MT=`RequestInProgressException`,NT=`ResourceInUseException`,PT=`ResourceNotFoundException`,FT=`Status`,IT=`SubjectAlternativeNameSummaries`,LT=`SortBy`,RT=`SortOrder`,zT=`Type`,BT=`ThrottlingException`,VT=`TagList`,HT=`TooManyTagsException`,UT=`TagPolicyException`,WT=`ThrottlingReason`,GT=`ThrottlingReasonList`,KT=`Tags`,qT=`Tag`,JT=`Value`,YT=`ValidationException`,XT=`awsQueryError`,ZT=`client`,QT=`error`,$T=`extendedKeyUsage`,eE=`exportOption`,tE=`httpError`,nE=`keyTypes`,rE=`keyUsage`,iE=`message`,aE=`managedBy`,oE=`reason`,sE=`resource`,cE=`smithy.ts.sdk.synthetic.com.amazonaws.acm`,lE=`throttlingReasons`,uE=`com.amazonaws.acm`,dE=Fx.for(cE),fE=[-3,cE,`ACMServiceException`,0,[],[]];dE.registerError(fE,ww);var pE=Fx.for(uE),mE=[-3,uE,Vw,{[XT]:[`AccessDenied`,403],[QT]:ZT,[tE]:403},[ST],[0]];pE.registerError(mE,Tw);var hE=[-3,uE,Kw,{[QT]:ZT},[iE],[0]];pE.registerError(hE,Nw);var gE=[-3,uE,rT,{[QT]:ZT},[iE],[0]];pE.registerError(gE,Lw);var _E=[-3,uE,iT,{[QT]:ZT},[iE],[0]];pE.registerError(_E,Ew);var vE=[-3,uE,lT,{[QT]:ZT},[iE],[0]];pE.registerError(vE,zw);var yE=[-3,uE,uT,{[QT]:ZT},[iE],[0]];pE.registerError(yE,Dw);var bE=[-3,uE,dT,{[QT]:ZT},[iE],[0]];pE.registerError(bE,Bw);var xE=[-3,uE,fT,{[QT]:ZT},[iE],[0]];pE.registerError(xE,Ow);var SE=[-3,uE,xT,{[QT]:ZT},[iE],[0]];pE.registerError(SE,Iw);var CE=[-3,uE,MT,{[QT]:ZT},[iE],[0]];pE.registerError(CE,Fw);var wE=[-3,uE,NT,{[QT]:ZT},[iE],[0]];pE.registerError(wE,Pw);var TE=[-3,uE,PT,{[QT]:ZT},[iE],[0]];pE.registerError(TE,kw);var EE=[-3,uE,UT,{[QT]:ZT},[iE],[0]];pE.registerError(EE,Aw);var DE=[-3,uE,BT,{[XT]:[`Throttling`,400],[QT]:ZT,[tE]:400},[iE,lE],[0,()=>HE]];pE.registerError(DE,jw);var OE=[-3,uE,HT,{[QT]:ZT},[iE],[0]];pE.registerError(OE,Mw);var kE=[-3,uE,YT,{[XT]:[`ValidationError`,400],[QT]:ZT,[tE]:400},[iE],[0]];pE.registerError(kE,Rw);var AE=[dE,pE],jE=[0,uE,kT,8,21],ME=[3,uE,qw,0,[Ww,Xw,IT,tT,FT,zT,gT,_T,Qw,$w,pT,Zw,jT,ET,TT,Uw,aT,nT,AT,CT],[0,0,64,2,0,0,0,64,64,0,2,2,0,4,4,4,4,4,4,0]],NE=[3,uE,eT,0,[$T,rE,nE,eE,aE],[64,64,64,0,0]],PE=[3,uE,sT,0,[Hw,OT,Ww,Gw,KT],[21,[()=>jE,0],0,21,()=>VE],2],FE=[3,uE,cT,0,[Ww],[0]],IE=[3,uE,yT,0,[Yw,mT,DT,wT,LT,RT],[64,()=>NE,0,1,0,0]],LE=[3,uE,bT,0,[DT,Jw],[0,()=>BE]],RE=[3,uE,qT,0,[hT,JT],[0,0],1],zE=[3,uE,WT,0,[oE,sE],[0,0]],BE=[1,uE,Jw,0,()=>ME],VE=[1,uE,VT,0,()=>RE],HE=[1,uE,GT,0,()=>zE],UE=[9,uE,oT,0,()=>PE,()=>FE],WE=[9,uE,vT,0,()=>IE,()=>LE],GE=e=>({apiVersion:`2015-12-08`,base64Decoder:e?.base64Decoder??Wx,base64Encoder:e?.base64Encoder??Kx,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Cw,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Ice,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new sce}],logger:e?.logger??new Vx,protocol:e?.protocol??ile,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.acm`,errorTypeRegistries:AE,version:`2015-12-08`,serviceTarget:`CertificateManager`},serviceId:e?.serviceId??`ACM`,urlParser:e?.urlParser??Sx,utf8Decoder:e?.utf8Decoder??Gx,utf8Encoder:e?.utf8Encoder??qx}),KE=e=>{let t=tce(e),n=()=>t().then(Iae),r=GE(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??xoe,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Jse({serviceId:r.serviceId,clientVersion:zce.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??Eae(`Region is missing`),requestHandler:Vce.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Pse),sha256:e?.sha256??wb,streamCollector:e?.streamCollector??Hce,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},qE=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}}},JE=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),YE=(e,t)=>{let n=Object.assign(rce(e),Vae(e),sse(e),qE(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ice(n),Hae(n),cse(n),JE(n))},XE=class extends Dae{config;constructor(...[e]){let t=KE(e||{});super(t),this.initConfig=t;let n=YE(Lce(ese(Rse($se(Ise(gC(Rce(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(Mae(this.config)),this.middlewareStack.use(qse(this.config)),this.middlewareStack.use(Lse(this.config)),this.middlewareStack.use(dse(this.config)),this.middlewareStack.use(YS(this.config)),this.middlewareStack.use(QS(this.config)),this.middlewareStack.use($S(this.config)),this.middlewareStack.use(iC(this.config,{httpAuthSchemeParametersProvider:Pce,identityProviderConfigProvider:async e=>new dC({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(lC(this.config))}destroy(){super.destroy()}},ZE=class extends Rx.classBuilder().ep(QC).m(function(e,t,n,r){return[kS(n,e.getEndpointParameterInstructions())]}).s(`CertificateManager`,`ListCertificates`,{}).n(`ACMClient`,`ListCertificatesCommand`).sc(WE).build(){};function QE(e){return e}var $E=e=>t=>async n=>{if(!kb.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:i=``}=e.requestHandler.metadata||{};if(i.indexOf(`h2`)>=0&&!r.headers[`:authority`])delete r.headers.host,r.headers[`:authority`]=r.hostname+(r.port?`:`+r.port:``);else if(!r.headers.host){let e=r.hostname;r.port!=null&&(e+=`:${r.port}`),r.headers.host=e}return t(n)},eD={name:`hostHeaderMiddleware`,step:`build`,priority:`low`,tags:[`HOST`],override:!0},tD=e=>({applyToStack:t=>{t.add($E(e),eD)}}),nD=()=>(e,t)=>async n=>{try{let r=await e(n),{clientName:i,commandName:a,logger:o,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=s,u=c??t.inputFilterSensitiveLog,d=l??t.outputFilterSensitiveLog,{$metadata:f,...p}=r.output;return o?.info?.({clientName:i,commandName:a,input:u(n.input),output:d(p),metadata:f}),r}catch(e){let{clientName:r,commandName:i,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:s}=o,c=s??t.inputFilterSensitiveLog;throw a?.error?.({clientName:r,commandName:i,input:c(n.input),error:e,metadata:e.$metadata}),e}},rD={name:`loggerMiddleware`,tags:[`LOGGER`],step:`initialize`,override:!0},iD=e=>({applyToStack:e=>{e.add(nD(),rD)}}),aD={step:`build`,tags:[`RECURSION_DETECTION`],name:`recursionDetectionMiddleware`,override:!0,priority:`low`},oD=()=>e=>async t=>e(t),sD=e=>({applyToStack:e=>{e.add(oD(),aD)}}),cD=(e,t)=>{if(!t||t.length===0)return e;let n=[];for(let r of t)for(let t of e)t.schemeId.split(`#`)[1]===r&&n.push(t);for(let t of e)n.find(({schemeId:e})=>e===t.schemeId)||n.push(t);return n};function lD(e){let t=new Map;for(let n of e)t.set(n.schemeId,n);return t}var uD=(e,t)=>(n,r)=>async i=>{let a=cD(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),o=lD(e.httpAuthSchemes),s=ex(r),c=[];for(let n of a){let i=o.get(n.schemeId);if(!i){c.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}let a=i.identityProvider(await t.identityProviderConfigProvider(e));if(!a){c.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:l={},signingProperties:u={}}=n.propertiesExtractor?.(e,r)||{};n.identityProperties=Object.assign(n.identityProperties||{},l),n.signingProperties=Object.assign(n.signingProperties||{},u),s.selectedHttpAuthScheme={httpAuthOption:n,identity:await a(n.identityProperties),signer:i.signer};break}if(!s.selectedHttpAuthScheme)throw Error(c.join(` -`));return n(i)},dD={step:`serialize`,tags:[`HTTP_AUTH_SCHEME`],name:`httpAuthSchemeMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`},fD=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(uD(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),dD)}}),pD=e=>e=>{throw e},mD=(e,t)=>{},hD=e=>(e,t)=>async n=>{if(!kb.isInstance(n.request))return e(n);let r=ex(t).selectedHttpAuthScheme;if(!r)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:i={}},identity:a,signer:o}=r,s=await e({...n,request:await o.sign(n.request,a,i)}).catch((o.errorHandler||pD)(i));return(o.successHandler||mD)(s.response,i),s},gD={step:`finalizeRequest`,tags:[`HTTP_SIGNING`],name:`httpSigningMiddleware`,aliases:[`apiKeyMiddleware`,`tokenMiddleware`,`awsAuthMiddleware`],override:!0,relation:`after`,toMiddleware:`retryMiddleware`},_D=e=>({applyToStack:t=>{t.addRelativeTo(hD(e),gD)}}),vD=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},yD=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,bD=Object.entries(yD).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),xD=yD.split(``),SD=e=>{let t=e.length/4*3;e.slice(-2)===`==`?t-=2:e.slice(-1)===`=`&&t--;let n=new ArrayBuffer(t),r=new DataView(n);for(let t=0;t>=6;let a=t/4*3;n>>=i%8;let o=Math.floor(i/8);for(let e=0;e>t)}}return new Uint8Array(n)};function CD(e){let t;t=typeof e==`string`?Fb(e):e;let n=typeof t==`object`&&typeof t.length==`number`,r=typeof t==`object`&&typeof t.byteOffset==`number`&&typeof t.byteLength==`number`;if(!n&&!r)throw Error(`@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.`);let i=``;for(let e=0;e>t]}i+=`==`.slice(0,4-a)}return i}var wD=class e extends Uint8Array{static fromString(t,n=`utf-8`){if(typeof t==`string`)return n===`base64`?e.mutate(SD(t)):e.mutate(Fb(t));throw Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){return Object.setPrototypeOf(t,e.prototype),t}transformToString(e=`utf-8`){return e===`base64`?CD(this):Lb(this)}},TD=e=>typeof ReadableStream==`function`&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),ED=(e,t)=>{let{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:i,checksumLocationName:a,streamHasher:o}=t,s=n!==void 0&&r!==void 0&&i!==void 0&&a!==void 0&&o!==void 0,c=s?o(i,e):void 0,l=e.getReader();return new ReadableStream({async pull(e){let{value:t,done:i}=await l.read();if(i){if(e.enqueue(`0\r +${wC(await i.digest())}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let n of e.split(`/`))n?.length!==0&&n!==`.`&&(n===`..`?t.pop():t.push(n));return Vw(`${e?.startsWith(`/`)?`/`:``}${t.join(`/`)}${t.length>0&&e?.endsWith(`/`)?`/`:``}`).replace(/%2F/g,`/`)}return e}validateResolvedCredentials(e){if(typeof e!=`object`||typeof e.accessKeyId!=`string`||typeof e.secretAccessKey!=`string`)throw Error(`Resolved credential object is not valid`)}formatDate(e){let t=Bae(e).replace(/[\-:]/g,``);return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(`;`)}},kE={},AE=[],jE=(e,t,n)=>`${e}/${t}/${n}/${OE}`,Uae=async(e,t,n,r,i)=>{let a=`${n}:${r}:${i}:${wC(await ME(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(a in kE)return kE[a];for(AE.push(a);AE.length>50;)delete kE[AE.shift()];let o=`AWS4${t.secretAccessKey}`;for(let t of[n,r,i,OE])o=await ME(e,o,t);return kE[a]=o},ME=(e,t,n)=>{let r=new e(t);return r.update(DC(n)),r.digest()},NE=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){if(e[i]==null)continue;let a=i.toLowerCase();(a in Pae||t?.has(a)||Fae.test(a)||Iae.test(a))&&(!n||n&&!n.has(a))||(r[a]=e[i].trim().replace(/\s+/g,` `))}return r},PE=async({headers:e,body:t},n)=>{for(let t of Object.keys(e))if(t.toLowerCase()===`x-amz-content-sha256`)return e[t];if(t==null)return`e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`;if(typeof t==`string`||ArrayBuffer.isView(t)||OC(t)){let e=new n;return e.update(DC(t)),wC(await e.digest())}return Rae},Wae=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},Gae=(e,t={})=>{let{headers:n,query:r={}}=Px.clone(e);for(let e of Object.keys(n)){let i=e.toLowerCase();(i.slice(0,6)===`x-amz-`&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i))&&(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}},FE=e=>{e=Px.clone(e);for(let t of Object.keys(e.headers))jae.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},IE=class extends Hae{headerFormatter=new Cae;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a})}async presign(e,t={}){let{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:o,hoistableHeaders:s,signingRegion:c,signingService:l}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);let d=c??await this.regionProvider(),{longDate:f,shortDate:p}=this.formatDate(n);if(r>604800)return Promise.reject(`Signature version 4 presigned URLs must have an expiration date less than one week in the future`);let m=jE(p,d,l??this.service),h=Gae(FE(e),{unhoistableHeaders:a,hoistableHeaders:s});u.sessionToken&&(h.query[wE]=u.sessionToken),h.query[Dae]=DE,h.query[Oae]=`${u.accessKeyId}/${m}`,h.query[SE]=f,h.query[Aae]=r.toString(10);let g=NE(h,i,o);return h.query[kae]=this.getCanonicalHeaderList(g),h.query[CE]=await this.getSignature(f,m,this.getSigningKey(u,d,p,l),this.createCanonicalRequest(h,g,await PE(e,this.sha256))),h}async sign(e,t){return typeof e==`string`?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:r,signingRegion:i,signingService:a,eventStreamCredentials:o}){let s=i??await this.regionProvider(),{shortDate:c,longDate:l}=this.formatDate(n),u=jE(c,s,a??this.service),d=await PE({headers:{},body:t},this.sha256),f=new this.sha256;f.update(e);let p=[Lae,l,u,r,wC(await f.digest()),d].join(` +`);return this.signString(p,{signingDate:n,signingRegion:s,signingService:a,eventStreamCredentials:o})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature,eventStreamCredentials:i}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}={}){let a=i??await this.credentialProvider();this.validateResolvedCredentials(a);let o=n??await this.regionProvider(),{shortDate:s}=this.formatDate(t),c=new this.sha256(await this.getSigningKey(a,o,s,r));return c.update(DC(e)),wC(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:i,signingService:a}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let s=i??await this.regionProvider(),c=FE(e),{longDate:l,shortDate:u}=this.formatDate(t),d=jE(u,s,a??this.service);c.headers[EE]=l,o.sessionToken&&(c.headers[Nae]=o.sessionToken);let f=await PE(c,this.sha256);!Wae(`x-amz-content-sha256`,c.headers)&&this.applyChecksum&&(c.headers[Mae]=f);let p=NE(c,r,n),m=await this.getSignature(l,d,this.getSigningKey(o,s,u,a),this.createCanonicalRequest(c,p,f));return c.headers[TE]=`${DE} Credential=${o.accessKeyId}/${d}, SignedHeaders=${this.getCanonicalHeaderList(p)}, Signature=${m}`,c}async getSignature(e,t,n,r){let i=await this.createStringToSign(e,t,r,DE),a=new this.sha256(await n);return a.update(DC(i)),wC(await a.digest())}getSigningKey(e,t,n,r){return Uae(this.sha256,e,n,t,r||this.service)}},Kae=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,`credentials`,{set(i){i&&i!==t&&i!==r&&(n=!0),t=i;let a=Jae(e,qae(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}));if(n&&!a.attributed){let e=typeof t==`object`&&!!t;r=async t=>{let n=await a(t);return e&&(!n.$source||Object.keys(n.$source).length===0)?Cx(n,`CREDENTIALS_CODE`,`e`):n},r.memoized=a.memoized,r.configBound=a.configBound,r.attributed=!0}else r=a},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;let{signingEscapePath:i=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:o}=e,s;return s=e.signer?WT(e.signer):e.regionInfoProvider?()=>WT(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,n])=>{let{signingRegion:r,signingService:a}=t;e.signingRegion=e.signingRegion||r||n,e.signingName=e.signingName||a||e.serviceId;let s={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||IE)(s)}):async t=>{t=Object.assign({},{name:`sigv4`,signingName:e.signingName||e.defaultSigningName,signingRegion:await WT(e.region)(),properties:{}},t);let n=t.signingRegion,r=t.signingName;e.signingRegion=e.signingRegion||n,e.signingName=e.signingName||r||e.serviceId;let a={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||IE)(a)},Object.assign(e,{systemClockOffset:a,signingEscapePath:i,signer:s})};function qae(e,{credentials:t,credentialDefaultProvider:n}){let r;return r=t?t?.memoized?t:JT(t,KT,qT):n?WT(n(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function Jae(e,t){if(t.configBound)return t;let n=async n=>t({...n,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}var Yae=async(e,t,n)=>({operation:Nx(t).operation,region:await zx(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Xae(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`acm`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Zae=e=>{let t=[];switch(e.operation){default:t.push(Xae(e))}return t},Qae=e=>{let t=Kae(e);return Object.assign(t,{authSchemePreference:zx(e.authSchemePreference??[])})},$ae=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`acm`}),LE={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},eoe={name:`@aws-sdk/client-acm`,description:`AWS SDK for JavaScript Acm Client for Node.js, Browser and React Native`,version:`3.1057.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-acm`,"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.15`,"@aws-sdk/credential-provider-node":`^3.972.47`,"@aws-sdk/types":`^3.973.9`,"@smithy/core":`^3.24.5`,"@smithy/fetch-http-handler":`^5.4.5`,"@smithy/node-http-handler":`^4.7.5`,"@smithy/types":`^4.14.2`,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/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`}};function RE(e,t){return new Request(e,t)}function toe(e=0){return new Promise((t,n)=>{e&&setTimeout(()=>{let t=Error(`Request did not complete within ${e} ms`);t.name=`TimeoutError`,n(t)},e)})}var zE={supported:void 0},noe=class e{config;configProvider;static create(t){return typeof t?.handle==`function`?t:new e(t)}constructor(e){typeof e==`function`?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),zE.supported===void 0&&(zE.supported=typeof Request<`u`&&`keepalive`in RE(`https://[::1]`))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:n}={}){this.config||=await this.configProvider;let r=n??this.config.requestTimeout,i=this.config.keepAlive===!0,a=this.config.credentials;if(t?.aborted){let e=BE(t);return Promise.reject(e)}let o=e.path,s=Uw(e.query||{});s&&(o+=`?${s}`),e.fragment&&(o+=`#${e.fragment}`);let c=``;(e.username!=null||e.password!=null)&&(c=`${e.username??``}:${e.password??``}@`);let{port:l,method:u}=e,d=`${e.protocol}//${c}${e.hostname}${l?`:${l}`:``}${o}`,f=u===`GET`||u===`HEAD`?void 0:e.body,p={body:f,headers:new Headers(e.headers),method:u,credentials:a};this.config?.cache&&(p.cache=this.config.cache),f&&(p.duplex=`half`),typeof AbortController<`u`&&(p.signal=t),zE.supported&&(p.keepalive=i),typeof this.config.requestInit==`function`&&Object.assign(p,this.config.requestInit(e));let m=()=>{},h=RE(d,p),g=[fetch(h).then(e=>{let t=e.headers,n={};for(let e of t.entries())n[e[0]]=e[1];return e.body==null?e.blob().then(t=>({response:new Ix({headers:n,reason:e.statusText,statusCode:e.status,body:t})})):{response:new Ix({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}}),toe(r)];return t&&g.push(new Promise((e,n)=>{let r=()=>{n(BE(t))};if(typeof t.addEventListener==`function`){let e=t;e.addEventListener(`abort`,r,{once:!0}),m=()=>e.removeEventListener(`abort`,r)}else t.onabort=r})),Promise.race(g).finally(m)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=t,n))}httpHandlerConfigs(){return this.config??{}}};function BE(e){let t=e&&typeof e==`object`&&`reason`in e?e.reason:void 0;if(t){if(t instanceof Error){let e=Error(`Request aborted`);return e.name=`AbortError`,e.cause=t,e}let e=Error(String(t));return e.name=`AbortError`,e}let n=Error(`Request aborted`);return n.name=`AbortError`,n}var roe=async e=>typeof Blob==`function`&&e instanceof Blob||e.constructor?.name===`Blob`?Blob.prototype.arrayBuffer===void 0?ioe(e):new Uint8Array(await e.arrayBuffer()):aoe(e);async function ioe(e){let t=DS(await ooe(e));return new Uint8Array(t)}async function aoe(e){let t=[],n=e.getReader(),r=!1,i=0;for(;!r;){let{done:e,value:a}=await n.read();a&&(t.push(a),i+=a.length),r=e}let a=new Uint8Array(i),o=0;for(let e of t)a.set(e,o),o+=e.length;return a}function ooe(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(Error(`Reader aborted too early`));let e=r.result??``,i=e.indexOf(`,`),a=i>-1?i+1:e.length;t(e.substring(a))},r.onabort=()=>n(Error(`Read aborted`)),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}var soe=class{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){let n=t.getMemberSchemas(),r=Object.values(n).find(e=>!!e.getMergedTraits().httpPayload);if(r)return r.getMergedTraits().mediaType||(r.isStringSchema()?`text/plain`:r.isBlobSchema()?`application/octet-stream`:e);if(!t.isUnitSchema()&&Object.values(n).find(e=>{let{httpQuery:t,httpQueryParams:n,httpHeader:r,httpLabel:i,httpPrefixHeaders:a}=e.getMergedTraits();return!t&&!n&&!r&&!i&&a===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,t,n,r,i,a){let o=e;e.includes(`#`)&&([,o]=e.split(`#`));let s={$metadata:i,$fault:n.statusCode<500?`client`:`server`};if(!this.errorRegistry)throw Error(`@aws-sdk/core/protocols - error handler not initialized.`);try{return{errorSchema:a?.(this.errorRegistry,o)??this.errorRegistry.getSchema(e),errorMetadata:s}}catch{r.message=r.message??r.Message??`UnknownError`;let e=this.errorRegistry,t=e.getBaseException();if(t){let n=e.getErrorCtor(t)??Error;throw this.decorateServiceException(Object.assign(new n({name:o}),s),r)}let n=r,i=n?.message??n?.Message??n?.Error?.Message??n?.Error?.message;throw this.decorateServiceException(Object.assign(Error(i),{name:o},s),r)}}compose(e,t,n){let r=n;t.includes(`#`)&&([r]=t.split(`#`));let i=cS.for(r),a=cS.for(`smithy.ts.sdk.synthetic.`+n);e.copyFrom(i),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){let n=e.Message??t.Message,r=mS(e,t);n&&(r.message=n);let i=r.Error??{};i.Type=r.Error?.Type,i.Code=r.Error?.Code,i.Message=r.Error?.message??r.Error?.Message??n,r.Error=i;let a=r.$metadata.requestId;return a&&(r.RequestId=a),r}return mS(e,t)}setQueryCompatError(e,t){let n=t.headers?.[`x-amzn-query-error`];if(e!==void 0&&n!=null){let[t,r]=n.split(`;`),i=Object.keys(e),a={Code:t,Type:r};e.Code=t,e.Type=r;for(let t=0;tiS.of(e).getMergedTraits().awsQueryError?.[0]===t)}}},VE=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},coe=class{from;to;keys;constructor(e,t){this.from=e,this.to=t;let n=Object.keys(this.from),r=new Set(n);r.delete(`__type`),this.keys=r}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}};function loe(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 bC(e,`bigDecimal`):BigInt(e)}return t}var uoe=(e,t)=>Dw(e,t).then(e=>(t?.utf8Encoder??jS)(e)),doe=(e,t)=>uoe(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{}}),HE=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),UE=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},foe=(e,t,n=!1)=>poe(e,t,n?[`code`,`header`,`type`]:[`type`,`code`,`header`]),poe=({headers:e},t,n)=>{for(;n.length>0;)switch(n.shift()){case`header`:let n=HE(e??{},`x-amzn-errortype`);if(n!==void 0)return UE(e[n]);break;case`code`:let r=HE(t??{},`code`);if(r&&t[r]!==void 0)return UE(t[r]);break;case`type`:if(t?.__type!==void 0)return UE(t.__type);break}},moe=class extends VE{settings;constructor(e){super(),this.settings=e}async read(e,t){return this._read(e,typeof t==`string`?JSON.parse(t,loe):await doe(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){let n=typeof t==`object`&&!!t,r=iS.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 coe(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 DS(t);let i=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof t==`string`&&i)return i===`application/json`||i.endsWith(`+json`)?vC.from(t):t;if(r.isTimestampSchema()&&t!=null)switch(Pw(r,this.settings)){case 5:return eC(t);case 6:return iC(t);case 7:return aC(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 bC)return t;let e=t;return e.type===`bigDecimal`&&`string`in e?new bC(e.string,e.type):new bC(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 bC?e[n]=i:e[n]=this._read(r,i)}return e}else return structuredClone(t);return t}},WE=`Ν`,hoe=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 bC){let e=`${WE+`nv`+ this.counter++}_`+t.string;return this.values.set(`"${e}"`,t.string),e}if(typeof t==`bigint`){let e=t.toString(),n=`${WE+`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}},goe=class extends VE{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=iS.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 hoe;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=iS.of(e).getName(!0))}_write(e,t,n){let r=typeof t==`object`&&!!t,i=iS.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??kS)(t);if(t instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema()))switch(Pw(i,this.settings)){case 5:return t.toISOString().replace(`.000Z`,`Z`);case 6:return QS(t);case 7:return t.getTime()/1e3;default:return console.warn(`Missing timestamp format, using epoch seconds`,t),t.getTime()/1e3}t instanceof bC&&(this.useReplacer=!0)}if(!(t===null&&n?.isStructSchema())){if(i.isStringSchema()){if(t===void 0&&i.isIdempotencyToken())return Ew();let e=i.getMergedTraits().mediaType;return t!=null&&e&&(e===`application/json`||e.endsWith(`+json`))?vC.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??kS)(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 bC?(this.useReplacer=!0,e[n]=r):e[n]=this._write(i,r)}return e}else return structuredClone(t);return t}}},_oe=class extends VE{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new goe(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new moe(this.settings);return e.setSerdeContext(this.serdeContext),e}},voe=class extends Nw{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 _oe({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!r,this.mixin=new soe(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`),(Gx(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=foe(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=iS.of(s),u=r.message??r.Message??`UnknownError`,d=new((this.compositeErrorRegistry.getErrorCtor(s))??Error)({}),f={},p=this.codec.createDeserializer();for(let[e,t]of l.structIterator())r[e]!=null&&(f[e]=p.readObject(t,r[e]));throw a&&this.mixin.queryCompatOutput(r,f),this.mixin.decorateServiceException(Object.assign(d,c,{$fault:l.getMergedTraits().error,message:u},f),r)}},yoe=class extends voe{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`}},GE=`ref`,KE=-1,qE=!0,JE=`isSet`,YE=`PartitionResult`,XE=`booleanEquals`,ZE=`getAttr`,QE={[GE]:`Endpoint`},$E={[GE]:YE},eD={},tD=[{[GE]:`Region`}],nD={conditions:[[JE,[QE]],[JE,tD],[`aws.partition`,tD,YE],[XE,[{[GE]:`UseFIPS`},qE]],[XE,[{[GE]:`UseDualStack`},qE]],[XE,[{fn:ZE,argv:[$E,`supportsDualStack`]},qE]],[XE,[{fn:ZE,argv:[$E,`supportsFIPS`]},qE]],[`stringEquals`,[{fn:ZE,argv:[$E,`name`]},`aws-us-gov`]]],results:[[KE],[KE,`Invalid Configuration: FIPS and custom endpoint are not supported`],[KE,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[QE,eD],[`https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,eD],[KE,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://acm.{Region}.amazonaws.com`,eD],[`https://acm-fips.{Region}.{PartitionResult#dnsSuffix}`,eD],[KE,`FIPS is enabled but this partition does not support FIPS`],[`https://acm.{Region}.{PartitionResult#dualStackDnsSuffix}`,eD],[KE,`DualStack is enabled but this partition does not support DualStack`],[`https://acm.{Region}.{PartitionResult#dnsSuffix}`,eD],[KE,`Invalid Configuration: Missing Region`]]},boe=2,rD=1e8,xoe=new Int32Array([-1,1,-1,0,13,3,1,4,rD+12,2,5,rD+12,3,8,6,4,7,rD+11,5,rD+9,rD+10,4,11,9,6,10,rD+8,7,rD+6,rD+7,5,12,rD+5,6,rD+4,rD+5,3,rD+1,14,4,rD+2,rD+3]),Soe=WC.from(xoe,boe,nD.conditions,nD.results),Coe=new GC({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),woe=(e,t={})=>Coe.get(e,()=>xw(Soe,{endpointParams:e,logger:t.logger}));YC.aws=mE;var iD=class e extends pS{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Toe=class e extends iD{name=`AccessDeniedException`;$fault=`client`;Message;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Eoe=class e extends iD{name=`InvalidArnException`;$fault=`client`;constructor(t){super({name:`InvalidArnException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Doe=class e extends iD{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ooe=class e extends iD{name=`InvalidTagException`;$fault=`client`;constructor(t){super({name:`InvalidTagException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},koe=class e extends iD{name=`ResourceNotFoundException`;$fault=`client`;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Aoe=class e extends iD{name=`TagPolicyException`;$fault=`client`;constructor(t){super({name:`TagPolicyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},joe=class e extends iD{name=`ThrottlingException`;$fault=`client`;throttlingReasons;constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.throttlingReasons=t.throttlingReasons}},Moe=class e extends iD{name=`TooManyTagsException`;$fault=`client`;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Noe=class e extends iD{name=`ConflictException`;$fault=`client`;constructor(t){super({name:`ConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Poe=class e extends iD{name=`ResourceInUseException`;$fault=`client`;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Foe=class e extends iD{name=`RequestInProgressException`;$fault=`client`;constructor(t){super({name:`RequestInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ioe=class e extends iD{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Loe=class e extends iD{name=`InvalidArgsException`;$fault=`client`;constructor(t){super({name:`InvalidArgsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Roe=class e extends iD{name=`ValidationException`;$fault=`client`;constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},zoe=class e extends iD{name=`InvalidDomainValidationOptionsException`;$fault=`client`;constructor(t){super({name:`InvalidDomainValidationOptionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Boe=class e extends iD{name=`InvalidStateException`;$fault=`client`;constructor(t){super({name:`InvalidStateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Voe=`AccessDeniedException`,Hoe=`Certificate`,Uoe=`CreatedAt`,aD=`CertificateArn`,Woe=`CertificateChain`,Goe=`ConflictException`,Koe=`CertificateSummary`,oD=`CertificateSummaryList`,qoe=`CertificateStatuses`,Joe=`DomainName`,Yoe=`Exported`,Xoe=`ExtendedKeyUsages`,Zoe=`ExportOption`,Qoe=`Filters`,$oe=`HasAdditionalSubjectAlternativeNames`,ese=`ImportedAt`,tse=`InvalidArgsException`,nse=`InvalidArnException`,rse=`IssuedAt`,ise=`ImportCertificate`,ase=`ImportCertificateRequest`,ose=`ImportCertificateResponse`,sse=`InvalidDomainValidationOptionsException`,cse=`InvalidParameterException`,lse=`InvalidStateException`,use=`InvalidTagException`,dse=`InUse`,fse=`Includes`,pse=`Key`,mse=`KeyAlgorithm`,hse=`KeyUsages`,gse=`ListCertificates`,_se=`ListCertificatesRequest`,vse=`ListCertificatesResponse`,yse=`LimitExceededException`,bse=`Message`,xse=`ManagedBy`,Sse=`MaxItems`,Cse=`NotAfter`,wse=`NotBefore`,sD=`NextToken`,Tse=`PrivateKey`,Ese=`PrivateKeyBlob`,Dse=`RevokedAt`,Ose=`RenewalEligibility`,kse=`RequestInProgressException`,Ase=`ResourceInUseException`,jse=`ResourceNotFoundException`,Mse=`Status`,Nse=`SubjectAlternativeNameSummaries`,Pse=`SortBy`,Fse=`SortOrder`,Ise=`Type`,Lse=`ThrottlingException`,Rse=`TagList`,zse=`TooManyTagsException`,Bse=`TagPolicyException`,Vse=`ThrottlingReason`,Hse=`ThrottlingReasonList`,Use=`Tags`,Wse=`Tag`,Gse=`Value`,Kse=`ValidationException`,cD=`awsQueryError`,lD=`client`,uD=`error`,qse=`extendedKeyUsage`,Jse=`exportOption`,dD=`httpError`,Yse=`keyTypes`,Xse=`keyUsage`,fD=`message`,Zse=`managedBy`,Qse=`reason`,$se=`resource`,pD=`smithy.ts.sdk.synthetic.com.amazonaws.acm`,ece=`throttlingReasons`,mD=`com.amazonaws.acm`,hD=cS.for(pD),tce=[-3,pD,`ACMServiceException`,0,[],[]];hD.registerError(tce,iD);var gD=cS.for(mD),nce=[-3,mD,Voe,{[cD]:[`AccessDenied`,403],[uD]:lD,[dD]:403},[bse],[0]];gD.registerError(nce,Toe);var rce=[-3,mD,Goe,{[uD]:lD},[fD],[0]];gD.registerError(rce,Noe);var ice=[-3,mD,tse,{[uD]:lD},[fD],[0]];gD.registerError(ice,Loe);var ace=[-3,mD,nse,{[uD]:lD},[fD],[0]];gD.registerError(ace,Eoe);var oce=[-3,mD,sse,{[uD]:lD},[fD],[0]];gD.registerError(oce,zoe);var sce=[-3,mD,cse,{[uD]:lD},[fD],[0]];gD.registerError(sce,Doe);var cce=[-3,mD,lse,{[uD]:lD},[fD],[0]];gD.registerError(cce,Boe);var lce=[-3,mD,use,{[uD]:lD},[fD],[0]];gD.registerError(lce,Ooe);var uce=[-3,mD,yse,{[uD]:lD},[fD],[0]];gD.registerError(uce,Ioe);var dce=[-3,mD,kse,{[uD]:lD},[fD],[0]];gD.registerError(dce,Foe);var fce=[-3,mD,Ase,{[uD]:lD},[fD],[0]];gD.registerError(fce,Poe);var pce=[-3,mD,jse,{[uD]:lD},[fD],[0]];gD.registerError(pce,koe);var mce=[-3,mD,Bse,{[uD]:lD},[fD],[0]];gD.registerError(mce,Aoe);var hce=[-3,mD,Lse,{[cD]:[`Throttling`,400],[uD]:lD,[dD]:400},[fD,ece],[0,()=>Ace]];gD.registerError(hce,joe);var gce=[-3,mD,zse,{[uD]:lD},[fD],[0]];gD.registerError(gce,Moe);var _ce=[-3,mD,Kse,{[cD]:[`ValidationError`,400],[uD]:lD,[dD]:400},[fD],[0]];gD.registerError(_ce,Roe);var vce=[hD,gD],yce=[0,mD,Ese,8,21],bce=[3,mD,Koe,0,[aD,Joe,Nse,$oe,Mse,Ise,mse,hse,Xoe,Zoe,dse,Yoe,Ose,wse,Cse,Uoe,rse,ese,Dse,xse],[0,0,64,2,0,0,0,64,64,0,2,2,0,4,4,4,4,4,4,0]],xce=[3,mD,Qoe,0,[qse,Xse,Yse,Jse,Zse],[64,64,64,0,0]],Sce=[3,mD,ase,0,[Hoe,Tse,aD,Woe,Use],[21,[()=>yce,0],0,21,()=>kce],2],Cce=[3,mD,ose,0,[aD],[0]],wce=[3,mD,_se,0,[qoe,fse,sD,Sse,Pse,Fse],[64,()=>xce,0,1,0,0]],Tce=[3,mD,vse,0,[sD,oD],[0,()=>Oce]],Ece=[3,mD,Wse,0,[pse,Gse],[0,0],1],Dce=[3,mD,Vse,0,[Qse,$se],[0,0]],Oce=[1,mD,oD,0,()=>bce],kce=[1,mD,Rse,0,()=>Ece],Ace=[1,mD,Hse,0,()=>Dce],jce=[9,mD,ise,0,()=>Sce,()=>Cce],Mce=[9,mD,gse,0,()=>wce,()=>Tce],Nce=e=>({apiVersion:`2015-12-08`,base64Decoder:e?.base64Decoder??DS,base64Encoder:e?.base64Encoder??kS,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??woe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Zae,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Sae}],logger:e?.logger??new CS,protocol:e?.protocol??yoe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.acm`,errorTypeRegistries:vce,version:`2015-12-08`,serviceTarget:`CertificateManager`},serviceId:e?.serviceId??`ACM`,urlParser:e?.urlParser??Vx,utf8Decoder:e?.utf8Decoder??OS,utf8Encoder:e?.utf8Encoder??jS}),Pce=e=>{let t=gae(e),n=()=>t().then(hS),r=Nce(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??EC,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??lae({serviceId:r.serviceId,clientVersion:eoe.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??Ux(`Region is missing`),requestHandler:noe.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||yT),sha256:e?.sha256??fb,streamCollector:e?.streamCollector??roe,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Fce=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}}},Ice=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Lce=(e,t)=>{let n=Object.assign(vae(e),xS(e),Fw(e),Fce(e));return t.forEach(e=>e.configure(n)),Object.assign(e,yae(n),SS(n),Iw(n),Ice(n))},Rce=class extends Wx{config;constructor(...[e]){let t=Pce(e||{});super(t),this.initConfig=t;let n=Lce(Qae(Sw(ET(mae(CT(XT($ae(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(Qx(this.config)),this.middlewareStack.use(cae(this.config)),this.middlewareStack.use(wT(this.config)),this.middlewareStack.use(Bw(this.config)),this.middlewareStack.use(kT(this.config)),this.middlewareStack.use(MT(this.config)),this.middlewareStack.use(NT(this.config)),this.middlewareStack.use(RT(this.config,{httpAuthSchemeParametersProvider:Yae,identityProviderConfigProvider:async e=>new GT({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(UT(this.config))}destroy(){super.destroy()}},zce=class extends dS.classBuilder().ep(LE).m(function(e,t,n,r){return[Cw(n,e.getEndpointParameterInstructions())]}).s(`CertificateManager`,`ListCertificates`,{}).n(`ACMClient`,`ListCertificatesCommand`).sc(Mce).build(){};function _D(e){return e}var Bce=e=>t=>async n=>{if(!_b.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:i=``}=e.requestHandler.metadata||{};if(i.indexOf(`h2`)>=0&&!r.headers[`:authority`])delete r.headers.host,r.headers[`:authority`]=r.hostname+(r.port?`:`+r.port:``);else if(!r.headers.host){let e=r.hostname;r.port!=null&&(e+=`:${r.port}`),r.headers.host=e}return t(n)},Vce={name:`hostHeaderMiddleware`,step:`build`,priority:`low`,tags:[`HOST`],override:!0},vD=e=>({applyToStack:t=>{t.add(Bce(e),Vce)}}),Hce=()=>(e,t)=>async n=>{try{let r=await e(n),{clientName:i,commandName:a,logger:o,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=s,u=c??t.inputFilterSensitiveLog,d=l??t.outputFilterSensitiveLog,{$metadata:f,...p}=r.output;return o?.info?.({clientName:i,commandName:a,input:u(n.input),output:d(p),metadata:f}),r}catch(e){let{clientName:r,commandName:i,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:s}=o,c=s??t.inputFilterSensitiveLog;throw a?.error?.({clientName:r,commandName:i,input:c(n.input),error:e,metadata:e.$metadata}),e}},Uce={name:`loggerMiddleware`,tags:[`LOGGER`],step:`initialize`,override:!0},yD=e=>({applyToStack:e=>{e.add(Hce(),Uce)}}),Wce={step:`build`,tags:[`RECURSION_DETECTION`],name:`recursionDetectionMiddleware`,override:!0,priority:`low`},Gce=()=>e=>async t=>e(t),bD=e=>({applyToStack:e=>{e.add(Gce(),Wce)}}),Kce=(e,t)=>{if(!t||t.length===0)return e;let n=[];for(let r of t)for(let t of e)t.schemeId.split(`#`)[1]===r&&n.push(t);for(let t of e)n.find(({schemeId:e})=>e===t.schemeId)||n.push(t);return n};function qce(e){let t=new Map;for(let n of e)t.set(n.schemeId,n);return t}var Jce=(e,t)=>(n,r)=>async i=>{let a=Kce(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),o=qce(e.httpAuthSchemes),s=nx(r),c=[];for(let n of a){let i=o.get(n.schemeId);if(!i){c.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}let a=i.identityProvider(await t.identityProviderConfigProvider(e));if(!a){c.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:l={},signingProperties:u={}}=n.propertiesExtractor?.(e,r)||{};n.identityProperties=Object.assign(n.identityProperties||{},l),n.signingProperties=Object.assign(n.signingProperties||{},u),s.selectedHttpAuthScheme={httpAuthOption:n,identity:await a(n.identityProperties),signer:i.signer};break}if(!s.selectedHttpAuthScheme)throw Error(c.join(` +`));return n(i)},Yce={step:`serialize`,tags:[`HTTP_AUTH_SCHEME`],name:`httpAuthSchemeMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`},xD=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(Jce(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),Yce)}}),Xce=e=>e=>{throw e},Zce=(e,t)=>{},Qce=e=>(e,t)=>async n=>{if(!_b.isInstance(n.request))return e(n);let r=nx(t).selectedHttpAuthScheme;if(!r)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:i={}},identity:a,signer:o}=r,s=await e({...n,request:await o.sign(n.request,a,i)}).catch((o.errorHandler||Xce)(i));return(o.successHandler||Zce)(s.response,i),s},SD={step:`finalizeRequest`,tags:[`HTTP_SIGNING`],name:`httpSigningMiddleware`,aliases:[`apiKeyMiddleware`,`tokenMiddleware`,`awsAuthMiddleware`],override:!0,relation:`after`,toMiddleware:`retryMiddleware`},CD=e=>({applyToStack:t=>{t.addRelativeTo(Qce(e),SD)}}),wD=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},TD=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,ED=Object.entries(TD).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),$ce=TD.split(``),DD=e=>{let t=e.length/4*3;e.slice(-2)===`==`?t-=2:e.slice(-1)===`=`&&t--;let n=new ArrayBuffer(t),r=new DataView(n);for(let t=0;t>=6;let a=t/4*3;n>>=i%8;let o=Math.floor(i/8);for(let e=0;e>t)}}return new Uint8Array(n)};function OD(e){let t;t=typeof e==`string`?Cb(e):e;let n=typeof t==`object`&&typeof t.length==`number`,r=typeof t==`object`&&typeof t.byteOffset==`number`&&typeof t.byteLength==`number`;if(!n&&!r)throw Error(`@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.`);let i=``;for(let e=0;e>t]}i+=`==`.slice(0,4-a)}return i}var kD=class e extends Uint8Array{static fromString(t,n=`utf-8`){if(typeof t==`string`)return n===`base64`?e.mutate(DD(t)):e.mutate(Cb(t));throw Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){return Object.setPrototypeOf(t,e.prototype),t}transformToString(e=`utf-8`){return e===`base64`?OD(this):Tb(this)}},AD=e=>typeof ReadableStream==`function`&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),ele=(e,t)=>{let{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:i,checksumLocationName:a,streamHasher:o}=t,s=n!==void 0&&r!==void 0&&i!==void 0&&a!==void 0&&o!==void 0,c=s?o(i,e):void 0,l=e.getReader();return new ReadableStream({async pull(e){let{value:t,done:i}=await l.read();if(i){if(e.enqueue(`0\r `),s){let t=n(await c);e.enqueue(`${a}:${t}\r\n`),e.enqueue(`\r -`)}e.close()}else e.enqueue(`${(r(t)||0).toString(16)}\r\n${t}\r\n`)}})};function DD(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=nx(n),Array.isArray(r))for(let e=0,i=r.length;e{e&&setTimeout(()=>{let t=Error(`Request did not complete within ${e} ms`);t.name=`TimeoutError`,n(t)},e)})}var AD={supported:void 0},jD=class e{config;configProvider;static create(t){return typeof t?.handle==`function`?t:new e(t)}constructor(e){typeof e==`function`?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),AD.supported===void 0&&(AD.supported=typeof Request<`u`&&`keepalive`in OD(`https://[::1]`))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:n}={}){this.config||=await this.configProvider;let r=n??this.config.requestTimeout,i=this.config.keepAlive===!0,a=this.config.credentials;if(t?.aborted){let e=MD(t);return Promise.reject(e)}let o=e.path,s=DD(e.query||{});s&&(o+=`?${s}`),e.fragment&&(o+=`#${e.fragment}`);let c=``;(e.username!=null||e.password!=null)&&(c=`${e.username??``}:${e.password??``}@`);let{port:l,method:u}=e,d=`${e.protocol}//${c}${e.hostname}${l?`:${l}`:``}${o}`,f=u===`GET`||u===`HEAD`?void 0:e.body,p={body:f,headers:new Headers(e.headers),method:u,credentials:a};this.config?.cache&&(p.cache=this.config.cache),f&&(p.duplex=`half`),typeof AbortController<`u`&&(p.signal=t),AD.supported&&(p.keepalive=i),typeof this.config.requestInit==`function`&&Object.assign(p,this.config.requestInit(e));let m=()=>{},h=OD(d,p),g=[fetch(h).then(e=>{let t=e.headers,n={};for(let e of t.entries())n[e[0]]=e[1];return e.body==null?e.blob().then(t=>({response:new Ab({headers:n,reason:e.statusText,statusCode:e.status,body:t})})):{response:new Ab({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}}),kD(r)];return t&&g.push(new Promise((e,n)=>{let r=()=>{n(MD(t))};if(typeof t.addEventListener==`function`){let e=t;e.addEventListener(`abort`,r,{once:!0}),m=()=>e.removeEventListener(`abort`,r)}else t.onabort=r})),Promise.race(g).finally(m)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=t,n))}httpHandlerConfigs(){return this.config??{}}};function MD(e){let t=e&&typeof e==`object`&&`reason`in e?e.reason:void 0;if(t){if(t instanceof Error){let e=Error(`Request aborted`);return e.name=`AbortError`,e.cause=t,e}let e=Error(String(t));return e.name=`AbortError`,e}let n=Error(`Request aborted`);return n.name=`AbortError`,n}var ND=async e=>typeof Blob==`function`&&e instanceof Blob||e.constructor?.name===`Blob`?Blob.prototype.arrayBuffer===void 0?PD(e):new Uint8Array(await e.arrayBuffer()):FD(e);async function PD(e){let t=SD(await ID(e));return new Uint8Array(t)}async function FD(e){let t=[],n=e.getReader(),r=!1,i=0;for(;!r;){let{done:e,value:a}=await n.read();a&&(t.push(a),i+=a.length),r=e}let a=new Uint8Array(i),o=0;for(let e of t)a.set(e,o),o+=e.length;return a}function ID(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(Error(`Reader aborted too early`));let e=r.result??``,i=e.indexOf(`,`),a=i>-1?i+1:e.length;t(e.substring(a))},r.onabort=()=>n(Error(`Read aborted`)),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}var LD=`The stream has already been transformed.`,RD=e=>{if(!zD(e)&&!TD(e)){let t=e?.__proto__?.constructor?.name||e;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${t}`)}let t=!1,n=async()=>{if(t)throw Error(LD);return t=!0,await ND(e)},r=e=>{if(typeof e.stream!=`function`)throw Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. -If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return e.stream()};return Object.assign(e,{transformToByteArray:n,transformToString:async e=>{let t=await n();if(e===`base64`)return CD(t);if(e===`hex`)return Pb(t);if(e===void 0||e===`utf8`||e===`utf-8`)return Lb(t);if(typeof TextDecoder==`function`)return new TextDecoder(e).decode(t);throw Error(`TextDecoder is not available, please make sure polyfill is provided.`)},transformToWebStream:()=>{if(t)throw Error(LD);if(t=!0,zD(e))return r(e);if(TD(e))return e;throw Error(`Cannot transform payload to web stream, got ${e}`)}})},zD=e=>typeof Blob==`function`&&e instanceof Blob,BD=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return wD.mutate(e);if(!e)return wD.mutate(new Uint8Array);let n=t.streamCollector(e);return wD.mutate(await n)};function VD(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}var HD=e=>typeof e==`function`?e():e,UD=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i}),ale=e=>(t,n)=>async r=>{let{response:i}=await t(r),{operationSchema:a}=ex(n),[,o,s,c,l,u]=a??[];try{return{response:i,output:await e.protocol.deserializeResponse(UD(o,s,c,l,u),{...e,...n},i)}}catch(e){if(Object.defineProperty(e,`$response`,{value:i,enumerable:!1,writable:!1,configurable:!1}),!(`$metadata`in e)){let t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+=` - `+t}catch{!n.logger||n.logger?.constructor?.name===`NoOpLogger`?console.warn(t):n.logger?.warn?.(t)}e.$responseBodyText!==void 0&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(Ab.isInstance(i)){let{headers:t={}}=i,n=Object.entries(t);e.$metadata={httpStatusCode:i.statusCode,requestId:WD(/^x-[\w-]+-request-?id$/,n),extendedRequestId:WD(/^x-[\w-]+-id-2$/,n),cfId:WD(/^x-[\w-]+-cf-id$/,n)}}}catch{}}throw e}},WD=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1];function ole(e){let t={};if(e=e.replace(/^\?/,``),e)for(let n of e.split(`&`)){let[e,r=null]=n.split(`=`);e=decodeURIComponent(e),r&&=decodeURIComponent(r),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}var GD=e=>{if(typeof e==`string`)return GD(new URL(e));let{hostname:t,pathname:n,port:r,protocol:i,search:a}=e,o;return a&&(o=ole(a)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}},sle=e=>{if(typeof e==`object`){if(`url`in e){let t=GD(e.url);if(e.headers){t.headers={};for(let n in e.headers)t.headers[n.toLowerCase()]=e.headers[n].join(`, `)}return t}return e}return GD(e)},cle=e=>(t,n)=>async r=>{let{operationSchema:i}=ex(n),[,a,o,s,c,l]=i??[],u=n.endpointV2?async()=>sle(n.endpointV2):e.endpoint,d=await e.protocol.serializeRequest(UD(a,o,s,c,l),r.input,{...e,...n,endpoint:u});return t({...r,request:d})},lle={name:`deserializerMiddleware`,step:`deserialize`,tags:[`DESERIALIZER`],override:!0},ule={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0};function KD(e){return{applyToStack:t=>{t.add(cle(e),ule),t.add(ale(e),lle),e.protocol.setSerdeContext(e)}}}var qD=[];function JD(e){if(typeof e==`object`)return e;if(e|=0,qD[e])return qD[e];let t={},n=0;for(let r of[`httpLabel`,`idempotent`,`idempotencyToken`,`sensitive`,`httpPayload`,`httpResponseCode`,`httpQueryParams`])(e>>n++&1)==1&&(t[r]=1);return qD[e]=t}var YD={it:Symbol.for(`@smithy/nor-struct-it`),ns:Symbol.for(`@smithy/ns`)},XD=[],ZD={},QD=class e{ref;memberName;static symbol=Symbol.for(`@smithy/nor`);symbol=e.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;let r=[],i=t,a=t;for(this._isMemberSchema=!1;eO(i);)r.push(i[1]),i=i[0],a=HD(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){let t=r[e];Object.assign(this.memberTraits,JD(t))}}else this.memberTraits=0;if(a instanceof e){let e=this.memberTraits;Object.assign(this,a),this.memberTraits=Object.assign({},e,a.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??a.memberName;return}if(this.schema=HD(a),dle(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(a),this.traits=0),this._isMemberSchema&&!n)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return!t&&typeof e==`object`&&e?e.symbol===this.symbol:t}static of(t){let n=typeof t==`function`||typeof t==`object`&&!!t;if(typeof t==`number`){if(XD[t])return XD[t]}else if(typeof t==`string`){if(ZD[t])return ZD[t]}else if(n&&t[YD.ns])return t[YD.ns];let r=HD(t);if(r instanceof e)return r;if(eO(r)){let[n,i]=r;if(n instanceof e)return Object.assign(n.getMergedTraits(),JD(i)),n;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let i=new e(r);return n?t[YD.ns]=i:typeof r==`string`?ZD[r]=i:typeof r==`number`?XD[r]=i:i}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:t}=this;return!e&&t&&t.includes(`#`)?t.split(`#`)[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e==`number`?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e==`number`?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!=`object`)return!1;let t=e[0];return t===3||t===-3||t===4}isUnionSchema(){let e=this.getSchema();return typeof e==`object`?e[0]===4:!1}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e==`number`&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()===`unit`}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??={...this.getOwnTraits(),...this.getMemberTraits()}}getMemberTraits(){return JD(this.memberTraits)}getOwnTraits(){return JD(this.traits)}getKeySchema(){let[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema();return $D([e?15:n[4]??0,0],`key`)}getValueSchema(){let e=this.getSchema(),[t,n,r]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i=typeof e==`number`?63&e:e&&typeof e==`object`&&(n||r)?e[3+e[0]]:t?15:void 0;if(i!=null)return $D([i,0],n?`value`:`member`);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){let n=t[4].indexOf(e),r=t[5][n];return $D(eO(r)?r:[r,0],e)}if(this.isDocumentSchema())return $D([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[t,n]of this.structIterator())e[t]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e}return``}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error(`@smithy/core/schema - cannot iterate non-struct schema.`);let e=this.getSchema(),t=e[4].length,n=e[YD.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let r=0;rArray.isArray(e)&&e.length===2,dle=e=>Array.isArray(e)&&e.length>=5,tO=class e{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e,this.schemas=t,this.exceptions=n}static for(t){return e.registries.has(t)||e.registries.set(t,new e(t)),e.registries.get(t)}copyFrom(e){let{schemas:t,exceptions:n}=this;for(let[n,r]of e.schemas)t.has(n)||t.set(n,r);for(let[t,r]of e.exceptions)n.has(t)||n.set(t,r)}register(t,n){let r=this.normalizeShapeId(t);for(let t of[this,e.for(r.split(`#`)[0])])t.schemas.set(r,n)}getSchema(e){let t=this.normalizeShapeId(e);if(!this.schemas.has(t))throw Error(`@smithy/core/schema - schema not found for ${t}`);return this.schemas.get(t)}registerError(t,n){let r=t,i=r[1];for(let t of[this,e.for(i)])t.schemas.set(i+`#`+r[2],r),t.exceptions.set(r,n)}getErrorCtor(t){let n=t;return this.exceptions.has(n)?this.exceptions.get(n):e.for(n[1]).exceptions.get(n)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,t,n]=e,r=t+`#`+n;if(r.startsWith(`smithy.ts.sdk.synthetic.`)&&r.endsWith(`ServiceException`))return e}}find(e){for(let t of this.schemas.values())if(e(t))return t}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes(`#`)?e:this.namespace+`#`+e}},fle=e=>{if(e!=null){if(typeof e==`string`){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&Cle.warn(Sle(`Expected number but observed string: ${e}`)),t}if(typeof e==`number`)return e;throw TypeError(`Expected number, got ${typeof e}: ${e}`)}},ple=Math.ceil(2**127*(2-2**-23)),mle=e=>{let t=fle(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>ple)throw TypeError(`Expected 32-bit float, got ${e}`);return t},hle=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw TypeError(`Expected integer, got ${typeof e}: ${e}`)}},gle=e=>nO(e,16),_le=e=>nO(e,8),nO=(e,t)=>{let n=hle(e);if(n!==void 0&&vle(n,t)!==n)throw TypeError(`Expected ${t}-bit integer, got ${e}`);return n},vle=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},yle=e=>mle(typeof e==`string`?rO(e):e),ble=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,rO=e=>{let t=e.match(ble);if(t===null||t[0].length!==e.length)throw TypeError(`Expected real number, got implicit NaN`);return parseFloat(e)},iO=e=>gle(typeof e==`string`?rO(e):e),xle=e=>_le(typeof e==`string`?rO(e):e),Sle=e=>String(TypeError(e).stack||e).split(` +`)}e.close()}else e.enqueue(`${(r(t)||0).toString(16)}\r\n${t}\r\n`)}})};function jD(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=ix(n),Array.isArray(r))for(let e=0,i=r.length;e{e&&setTimeout(()=>{let t=Error(`Request did not complete within ${e} ms`);t.name=`TimeoutError`,n(t)},e)})}var ND={supported:void 0},PD=class e{config;configProvider;static create(t){return typeof t?.handle==`function`?t:new e(t)}constructor(e){typeof e==`function`?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),ND.supported===void 0&&(ND.supported=typeof Request<`u`&&`keepalive`in MD(`https://[::1]`))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:n}={}){this.config||=await this.configProvider;let r=n??this.config.requestTimeout,i=this.config.keepAlive===!0,a=this.config.credentials;if(t?.aborted){let e=FD(t);return Promise.reject(e)}let o=e.path,s=jD(e.query||{});s&&(o+=`?${s}`),e.fragment&&(o+=`#${e.fragment}`);let c=``;(e.username!=null||e.password!=null)&&(c=`${e.username??``}:${e.password??``}@`);let{port:l,method:u}=e,d=`${e.protocol}//${c}${e.hostname}${l?`:${l}`:``}${o}`,f=u===`GET`||u===`HEAD`?void 0:e.body,p={body:f,headers:new Headers(e.headers),method:u,credentials:a};this.config?.cache&&(p.cache=this.config.cache),f&&(p.duplex=`half`),typeof AbortController<`u`&&(p.signal=t),ND.supported&&(p.keepalive=i),typeof this.config.requestInit==`function`&&Object.assign(p,this.config.requestInit(e));let m=()=>{},h=MD(d,p),g=[fetch(h).then(e=>{let t=e.headers,n={};for(let e of t.entries())n[e[0]]=e[1];return e.body==null?e.blob().then(t=>({response:new vb({headers:n,reason:e.statusText,statusCode:e.status,body:t})})):{response:new vb({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}}),tle(r)];return t&&g.push(new Promise((e,n)=>{let r=()=>{n(FD(t))};if(typeof t.addEventListener==`function`){let e=t;e.addEventListener(`abort`,r,{once:!0}),m=()=>e.removeEventListener(`abort`,r)}else t.onabort=r})),Promise.race(g).finally(m)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=t,n))}httpHandlerConfigs(){return this.config??{}}};function FD(e){let t=e&&typeof e==`object`&&`reason`in e?e.reason:void 0;if(t){if(t instanceof Error){let e=Error(`Request aborted`);return e.name=`AbortError`,e.cause=t,e}let e=Error(String(t));return e.name=`AbortError`,e}let n=Error(`Request aborted`);return n.name=`AbortError`,n}var ID=async e=>typeof Blob==`function`&&e instanceof Blob||e.constructor?.name===`Blob`?Blob.prototype.arrayBuffer===void 0?nle(e):new Uint8Array(await e.arrayBuffer()):rle(e);async function nle(e){let t=DD(await ile(e));return new Uint8Array(t)}async function rle(e){let t=[],n=e.getReader(),r=!1,i=0;for(;!r;){let{done:e,value:a}=await n.read();a&&(t.push(a),i+=a.length),r=e}let a=new Uint8Array(i),o=0;for(let e of t)a.set(e,o),o+=e.length;return a}function ile(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(Error(`Reader aborted too early`));let e=r.result??``,i=e.indexOf(`,`),a=i>-1?i+1:e.length;t(e.substring(a))},r.onabort=()=>n(Error(`Read aborted`)),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}var LD=`The stream has already been transformed.`,RD=e=>{if(!zD(e)&&!AD(e)){let t=e?.__proto__?.constructor?.name||e;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${t}`)}let t=!1,n=async()=>{if(t)throw Error(LD);return t=!0,await ID(e)},r=e=>{if(typeof e.stream!=`function`)throw Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. +If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return e.stream()};return Object.assign(e,{transformToByteArray:n,transformToString:async e=>{let t=await n();if(e===`base64`)return OD(t);if(e===`hex`)return Sb(t);if(e===void 0||e===`utf8`||e===`utf-8`)return Tb(t);if(typeof TextDecoder==`function`)return new TextDecoder(e).decode(t);throw Error(`TextDecoder is not available, please make sure polyfill is provided.`)},transformToWebStream:()=>{if(t)throw Error(LD);if(t=!0,zD(e))return r(e);if(AD(e))return e;throw Error(`Cannot transform payload to web stream, got ${e}`)}})},zD=e=>typeof Blob==`function`&&e instanceof Blob,BD=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return kD.mutate(e);if(!e)return kD.mutate(new Uint8Array);let n=t.streamCollector(e);return kD.mutate(await n)};function VD(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}var HD=e=>typeof e==`function`?e():e,UD=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i}),ale=e=>(t,n)=>async r=>{let{response:i}=await t(r),{operationSchema:a}=nx(n),[,o,s,c,l,u]=a??[];try{return{response:i,output:await e.protocol.deserializeResponse(UD(o,s,c,l,u),{...e,...n},i)}}catch(e){if(Object.defineProperty(e,`$response`,{value:i,enumerable:!1,writable:!1,configurable:!1}),!(`$metadata`in e)){let t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+=` + `+t}catch{!n.logger||n.logger?.constructor?.name===`NoOpLogger`?console.warn(t):n.logger?.warn?.(t)}e.$responseBodyText!==void 0&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(vb.isInstance(i)){let{headers:t={}}=i,n=Object.entries(t);e.$metadata={httpStatusCode:i.statusCode,requestId:WD(/^x-[\w-]+-request-?id$/,n),extendedRequestId:WD(/^x-[\w-]+-id-2$/,n),cfId:WD(/^x-[\w-]+-cf-id$/,n)}}}catch{}}throw e}},WD=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1];function ole(e){let t={};if(e=e.replace(/^\?/,``),e)for(let n of e.split(`&`)){let[e,r=null]=n.split(`=`);e=decodeURIComponent(e),r&&=decodeURIComponent(r),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}var GD=e=>{if(typeof e==`string`)return GD(new URL(e));let{hostname:t,pathname:n,port:r,protocol:i,search:a}=e,o;return a&&(o=ole(a)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}},sle=e=>{if(typeof e==`object`){if(`url`in e){let t=GD(e.url);if(e.headers){t.headers={};for(let n in e.headers)t.headers[n.toLowerCase()]=e.headers[n].join(`, `)}return t}return e}return GD(e)},cle=e=>(t,n)=>async r=>{let{operationSchema:i}=nx(n),[,a,o,s,c,l]=i??[],u=n.endpointV2?async()=>sle(n.endpointV2):e.endpoint,d=await e.protocol.serializeRequest(UD(a,o,s,c,l),r.input,{...e,...n,endpoint:u});return t({...r,request:d})},lle={name:`deserializerMiddleware`,step:`deserialize`,tags:[`DESERIALIZER`],override:!0},ule={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0};function KD(e){return{applyToStack:t=>{t.add(cle(e),ule),t.add(ale(e),lle),e.protocol.setSerdeContext(e)}}}var qD=[];function JD(e){if(typeof e==`object`)return e;if(e|=0,qD[e])return qD[e];let t={},n=0;for(let r of[`httpLabel`,`idempotent`,`idempotencyToken`,`sensitive`,`httpPayload`,`httpResponseCode`,`httpQueryParams`])(e>>n++&1)==1&&(t[r]=1);return qD[e]=t}var YD={it:Symbol.for(`@smithy/nor-struct-it`),ns:Symbol.for(`@smithy/ns`)},XD=[],ZD={},QD=class e{ref;memberName;static symbol=Symbol.for(`@smithy/nor`);symbol=e.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;let r=[],i=t,a=t;for(this._isMemberSchema=!1;eO(i);)r.push(i[1]),i=i[0],a=HD(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){let t=r[e];Object.assign(this.memberTraits,JD(t))}}else this.memberTraits=0;if(a instanceof e){let e=this.memberTraits;Object.assign(this,a),this.memberTraits=Object.assign({},e,a.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??a.memberName;return}if(this.schema=HD(a),dle(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(a),this.traits=0),this._isMemberSchema&&!n)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return!t&&typeof e==`object`&&e?e.symbol===this.symbol:t}static of(t){let n=typeof t==`function`||typeof t==`object`&&!!t;if(typeof t==`number`){if(XD[t])return XD[t]}else if(typeof t==`string`){if(ZD[t])return ZD[t]}else if(n&&t[YD.ns])return t[YD.ns];let r=HD(t);if(r instanceof e)return r;if(eO(r)){let[n,i]=r;if(n instanceof e)return Object.assign(n.getMergedTraits(),JD(i)),n;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let i=new e(r);return n?t[YD.ns]=i:typeof r==`string`?ZD[r]=i:typeof r==`number`?XD[r]=i:i}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:t}=this;return!e&&t&&t.includes(`#`)?t.split(`#`)[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e==`number`?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e==`number`?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!=`object`)return!1;let t=e[0];return t===3||t===-3||t===4}isUnionSchema(){let e=this.getSchema();return typeof e==`object`?e[0]===4:!1}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e==`number`&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()===`unit`}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??={...this.getOwnTraits(),...this.getMemberTraits()}}getMemberTraits(){return JD(this.memberTraits)}getOwnTraits(){return JD(this.traits)}getKeySchema(){let[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema();return $D([e?15:n[4]??0,0],`key`)}getValueSchema(){let e=this.getSchema(),[t,n,r]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i=typeof e==`number`?63&e:e&&typeof e==`object`&&(n||r)?e[3+e[0]]:t?15:void 0;if(i!=null)return $D([i,0],n?`value`:`member`);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){let n=t[4].indexOf(e),r=t[5][n];return $D(eO(r)?r:[r,0],e)}if(this.isDocumentSchema())return $D([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[t,n]of this.structIterator())e[t]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e}return``}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error(`@smithy/core/schema - cannot iterate non-struct schema.`);let e=this.getSchema(),t=e[4].length,n=e[YD.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let r=0;rArray.isArray(e)&&e.length===2,dle=e=>Array.isArray(e)&&e.length>=5,tO=class e{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e,this.schemas=t,this.exceptions=n}static for(t){return e.registries.has(t)||e.registries.set(t,new e(t)),e.registries.get(t)}copyFrom(e){let{schemas:t,exceptions:n}=this;for(let[n,r]of e.schemas)t.has(n)||t.set(n,r);for(let[t,r]of e.exceptions)n.has(t)||n.set(t,r)}register(t,n){let r=this.normalizeShapeId(t);for(let t of[this,e.for(r.split(`#`)[0])])t.schemas.set(r,n)}getSchema(e){let t=this.normalizeShapeId(e);if(!this.schemas.has(t))throw Error(`@smithy/core/schema - schema not found for ${t}`);return this.schemas.get(t)}registerError(t,n){let r=t,i=r[1];for(let t of[this,e.for(i)])t.schemas.set(i+`#`+r[2],r),t.exceptions.set(r,n)}getErrorCtor(t){let n=t;return this.exceptions.has(n)?this.exceptions.get(n):e.for(n[1]).exceptions.get(n)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,t,n]=e,r=t+`#`+n;if(r.startsWith(`smithy.ts.sdk.synthetic.`)&&r.endsWith(`ServiceException`))return e}}find(e){for(let t of this.schemas.values())if(e(t))return t}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes(`#`)?e:this.namespace+`#`+e}},fle=e=>{if(e!=null){if(typeof e==`string`){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&Cle.warn(Sle(`Expected number but observed string: ${e}`)),t}if(typeof e==`number`)return e;throw TypeError(`Expected number, got ${typeof e}: ${e}`)}},ple=Math.ceil(2**127*(2-2**-23)),mle=e=>{let t=fle(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>ple)throw TypeError(`Expected 32-bit float, got ${e}`);return t},hle=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw TypeError(`Expected integer, got ${typeof e}: ${e}`)}},gle=e=>nO(e,16),_le=e=>nO(e,8),nO=(e,t)=>{let n=hle(e);if(n!==void 0&&vle(n,t)!==n)throw TypeError(`Expected ${t}-bit integer, got ${e}`);return n},vle=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},yle=e=>mle(typeof e==`string`?rO(e):e),ble=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,rO=e=>{let t=e.match(ble);if(t===null||t[0].length!==e.length)throw TypeError(`Expected real number, got implicit NaN`);return parseFloat(e)},iO=e=>gle(typeof e==`string`?rO(e):e),xle=e=>_le(typeof e==`string`?rO(e):e),Sle=e=>String(TypeError(e).stack||e).split(` `).slice(0,5).filter(e=>!e.includes(`stackTraceWarning`)).join(` -`),Cle={warn:console.warn},wle=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],aO=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function oO(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),a=e.getUTCHours(),o=e.getUTCMinutes(),s=e.getUTCSeconds(),c=i<10?`0${i}`:`${i}`,l=a<10?`0${a}`:`${a}`,u=o<10?`0${o}`:`${o}`,d=s<10?`0${s}`:`${s}`;return`${wle[r]}, ${c} ${aO[n]} ${t} ${l}:${u}:${d} GMT`}var Tle=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Ele=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Dle=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),sO=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC-7231 date-times must be expressed as strings`);let t=Tle.exec(e);if(t){let[e,n,r,i,a,o,s,c]=t;return cO(iO(dO(i)),lO(r),uO(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c})}if(t=Ele.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return Ale(cO(Ole(i),lO(r),uO(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c}))}if(t=Dle.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return cO(iO(dO(c)),lO(n),uO(r.trimLeft(),`day`,1,31),{hours:i,minutes:a,seconds:o,fractionalMilliseconds:s})}throw TypeError(`Invalid RFC-7231 date-time value`)},cO=(e,t,n,r)=>{let i=t-1;return Mle(e,i,n),new Date(Date.UTC(e,i,n,uO(r.hours,`hour`,0,23),uO(r.minutes,`minute`,0,59),uO(r.seconds,`seconds`,0,60),Ple(r.fractionalMilliseconds)))},Ole=e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+iO(dO(e));return ne.getTime()-new Date().getTime()>kle?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,lO=e=>{let t=aO.indexOf(e);if(t<0)throw TypeError(`Invalid month: ${e}`);return t+1},jle=[31,28,31,30,31,30,31,31,30,31,30,31],Mle=(e,t,n)=>{let r=jle[t];if(t===1&&Nle(e)&&(r=29),n>r)throw TypeError(`Invalid day for ${aO[t]} in ${e}: ${n}`)},Nle=e=>e%4==0&&(e%100!=0||e%400==0),uO=(e,t,n,r)=>{let i=xle(dO(e));if(ir)throw TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},Ple=e=>e==null?0:yle(`0.`+e)*1e3,dO=e=>{let t=0;for(;tt.toString(16).padStart(2,`0`)),mO=()=>{if(fO)return fO();let e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,pO[e[0]]+pO[e[1]]+pO[e[2]]+pO[e[3]]+`-`+pO[e[4]]+pO[e[5]]+`-`+pO[e[6]]+pO[e[7]]+`-`+pO[e[8]]+pO[e[9]]+`-`+pO[e[10]]+pO[e[11]]+pO[e[12]]+pO[e[13]]+pO[e[14]]+pO[e[15]]},hO=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})};hO.from=e=>e&&typeof e==`object`&&(e instanceof hO||`deserializeJSON`in e)?e:typeof e==`string`||Object.getPrototypeOf(e)===String.prototype?hO(String(e)):hO(JSON.stringify(e)),hO.fromObject=hO.from;function Fle(e){return(e.includes(`,`)||e.includes(`"`))&&(e=`"${e.replace(/"/g,`\\"`)}"`),e}var gO=`(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`,_O=`(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`,vO=`(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`,yO=`(\\d?\\d)`,bO=`(\\d{4})`,Ile=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),Lle=RegExp(`^${gO}, ${yO} ${_O} ${bO} ${vO} GMT$`),Rle=RegExp(`^${gO}, ${yO}-${_O}-(\\d\\d) ${vO} GMT$`),zle=RegExp(`^${gO} ${_O} ( [1-9]|\\d\\d) ${vO} ${bO}$`),Ble=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],Vle=e=>{if(e==null)return;let t=NaN;if(typeof e==`number`)t=e;else if(typeof e==`string`){if(!/^-?\d*\.?\d+$/.test(e))throw TypeError(`parseEpochTimestamp - numeric string invalid.`);t=Number.parseFloat(e)}else typeof e==`object`&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw TypeError(`Epoch timestamps must be valid finite numbers.`);return new Date(Math.round(t*1e3))},Hle=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC3339 timestamps must be strings`);let t=Ile.exec(e);if(!t)throw TypeError(`Invalid RFC3339 timestamp format ${e}`);let[,n,r,i,a,o,s,,c,l]=t;xO(r,1,12),xO(i,1,31),xO(a,0,23),xO(o,0,59),xO(s,0,60);let u=new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(a),Number(o),Number(s),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(u.setUTCFullYear(Number(n)),l.toUpperCase()!=`Z`){let[,e,t,n]=/([+-])(\d\d):(\d\d)/.exec(l)||[void 0,`+`,0,0],r=e===`-`?1:-1;u.setTime(u.getTime()+r*(Number(t)*60*60*1e3+Number(n)*60*1e3))}return u},Ule=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC7231 timestamps must be strings.`);let t,n,r,i,a,o,s,c;if((c=Lle.exec(e))?[,t,n,r,i,a,o,s]=c:(c=Rle.exec(e))?([,t,n,r,i,a,o,s]=c,r=(Number(r)+1900).toString()):(c=zle.exec(e))&&([,n,t,i,a,o,s,r]=c),r&&o){let e=Date.UTC(Number(r),Ble.indexOf(n),Number(t),Number(i),Number(a),Number(o),s?Math.round(parseFloat(`0.${s}`)*1e3):0);xO(t,1,31),xO(i,0,23),xO(a,0,59),xO(o,0,60);let c=new Date(e);return c.setUTCFullYear(Number(r)),c}throw TypeError(`Invalid RFC7231 date-time value ${e}.`)};function xO(e,t,n){let r=Number(e);if(rn)throw Error(`Value ${r} out of range [${t}, ${n}]`)}function Wle(e,t,n){if(n<=0||!Number.isInteger(n))throw Error(`Invalid number of delimiters (`+n+`) for splitEvery.`);let r=e.split(t);if(n===1)return r;let i=[],a=``;for(let e=0;e{let t=e.length,n=[],r=!1,i,a=0;for(let o=0;o{e=e.trim();let t=e.length;return t<2?e:(e[0]===`"`&&e[t-1]===`"`&&(e=e.slice(1,t-1)),e.replace(/\\"/g,`"`))})},CO=/^-?\d*(\.\d+)?$/,wO=class e{string;type;constructor(e,t){if(this.string=e,this.type=t,!CO.test(e))throw Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`)}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!=`object`)return!1;let n=t;return e.prototype.isPrototypeOf(t)||n.type===`bigDecimal`&&CO.test(n.string)}},TO=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},EO=class extends TO{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=tO.for(e.defaultNamespace);for(let t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return kb}getResponseType(){return Ab}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if(`url`in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||={};for(let[n,r]of t.url.searchParams.entries())e.query[n]=r;if(t.headers)for(let n in t.headers)e.headers[n]=t.headers[n].join(`, `);return e}else{if(e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},t.headers)for(let n in t.headers)e.headers[n]=t.headers[n];return e}}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix)return;let r=QD.of(t.input),i=JD(t.traits??{});if(i.endpoint){let t=i.endpoint?.[0];if(typeof t==`string`){for(let[e,i]of r.structIterator()){if(!i.getMergedTraits().hostLabel)continue;let r=n[e];if(typeof r!=`string`)throw Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,r)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers[`x-amzn-requestid`]??e.headers[`x-amzn-request-id`]??e.headers[`x-amz-request-id`],extendedRequestId:e.headers[`x-amz-id-2`],cfId:e.headers[`x-amz-cf-id`]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e}=await H(async()=>{let{EventStreamSerde:e}=await import(`./event-streams.js`);return{EventStreamSerde:e}},[]);return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,r,i){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw Error(`@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.`);return e.eventStreamMarshaller}},Gle=class extends EO{async serializeRequest(e,t,n){let r=t&&typeof t==`object`?t:{},i=this.serializer,a={},o={},s=await n.endpoint(),c=QD.of(e?.input),l=[],u=[],d=!1,f,p=new kb({protocol:``,hostname:``,port:void 0,path:``,fragment:void 0,query:a,headers:o,body:void 0});if(s){this.updateServiceEndpoint(p,s),this.setHostPrefix(p,e,r);let t=JD(e.traits);if(t.http){p.method=t.http[0];let[e,n]=t.http[1].split(`?`);p.path==`/`?p.path=e:p.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&&(p.path.includes(`{${e}+}`)||p.path.includes(`{${e}}`)))throw Error(`No value provided for input HTTP label: ${e}.`);continue}if(n.httpPayload)t.isStreaming()?t.isStructSchema()?r[e]&&(f=await this.serializeEventStream({eventStream:r[e],requestSchema:c})):f=s:(i.write(t,s),f=i.flush());else if(n.httpLabel){i.write(t,s);let n=i.flush();p.path.includes(`{${e}+}`)?p.path=p.path.replace(`{${e}+}`,n.split(`/`).map(VD).join(`/`)):p.path.includes(`{${e}}`)&&(p.path=p.path.replace(`{${e}}`,VD(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):(d=!0,l.push(e),u.push(t))}if(d&&r){let[e,t]=(c.getName(!0)??`#Unknown`).split(`#`),n=c.getSchema()[6],a=[3,e,t,c.getMergedTraits(),l,u,void 0];n?a[6]=n:a.pop(),i.write(a,r),f=i.flush()}return p.headers=o,p.query=a,p.body=f,p}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=QD.of(e.output),a={};if(n.statusCode>=300){let i=await BD(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 BD(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 BD(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=QD.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]=RD(n.body);else if(n.body){let i=await BD(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?Wle(o,`,`,2):SO(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}},Kle=class extends EO{async serializeRequest(e,t,n){let r=this.serializer,i={},a={},o=await n.endpoint(),s=QD.of(e?.input),c=s.getSchema(),l,u=t&&typeof t==`object`?t:{},d=new kb({protocol:``,hostname:``,port:void 0,path:`/`,fragment:void 0,query:i,headers:a,body:void 0});if(o&&(this.updateServiceEndpoint(d,o),this.setHostPrefix(d,e,u)),u){let e=s.getEventStreamMember();if(e){if(u[e]){let t={};for(let[n,i]of s.structIterator())n!==e&&u[n]&&(r.write(i,u[n]),t[n]=r.flush());l=await this.serializeEventStream({eventStream:u[e],requestSchema:s,initialRequest:t})}}else r.write(c,u),l=r.flush()}return d.headers=Object.assign(d.headers,a),d.query=i,d.body=l,d.method=`POST`,d}async deserializeResponse(e,t,n){let r=this.deserializer,i=QD.of(e.output),a={};if(n.statusCode>=300){let i=await BD(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 - RPC 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=i.getEventStreamMember();if(o)a[o]=await this.deserializeEventStream({response:n,responseSchema:i,initialResponseContainer:a});else{let e=await BD(n.body,t);e.byteLength>0&&Object.assign(a,await r.read(i,e))}return a.$metadata=this.deserializeMetadata(n),a}};function DO(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();let{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:a}=e.getMergedTraits();return(t.httpBindings?typeof r==`string`||i?6:a||n?5:void 0:void 0)??t.timestampFormat.default}var OO=class extends TO{settings;constructor(e){super(),this.settings=e}read(e,t){let n=QD.of(e);if(n.isListSchema())return SO(t).map(e=>this.read(n.getValueSchema(),e));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??SD)(t);if(n.isTimestampSchema())switch(DO(n,this.settings)){case 5:return Hle(t);case 6:return Ule(t);case 7:return Vle(t);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,t),new Date(t)}if(n.isStringSchema()){let e=n.getMergedTraits().mediaType,r=t;if(e)return n.getMergedTraits().httpHeader&&(r=this.base64ToUtf8(r)),(e===`application/json`||e.endsWith(`+json`))&&(r=hO.from(r)),r}return n.isNumericSchema()?Number(t):n.isBigIntegerSchema()?BigInt(t):n.isBigDecimalSchema()?new wO(t,`bigDecimal`):n.isBooleanSchema()?String(t).toLowerCase()===`true`:t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??Lb)((this.serdeContext?.base64Decoder??SD)(e))}},qle=class extends TO{codecDeserializer;stringDeserializer;constructor(e,t){super(),this.codecDeserializer=e,this.stringDeserializer=new OO(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){let n=QD.of(e),r=n.getMergedTraits(),i=this.serdeContext?.utf8Encoder??Lb;if(r.httpHeader||r.httpResponseCode)return this.stringDeserializer.read(n,i(t));if(r.httpPayload){if(n.isBlobSchema()){let e=this.serdeContext?.utf8Decoder??Fb;return typeof t==`string`?e(t):t}else if(n.isStringSchema())return`byteLength`in t?i(t):t}return this.codecDeserializer.read(n,t)}},Jle=class extends TO{settings;stringBuffer=``;constructor(e){super(),this.settings=e}write(e,t){let n=QD.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(DO(n,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(`.000Z`,`Z`);break;case 6:this.stringBuffer=oO(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??CD)(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:Fle(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=hO.from(r)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??CD)(r.toString());return}this.stringBuffer=t;break;default:n.isIdempotencyToken()?this.stringBuffer=mO():this.stringBuffer=String(t)}}flush(){let e=this.stringBuffer;return this.stringBuffer=``,e}},Yle=class{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new Jle(t)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){let n=QD.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 Xle(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}var kO=class{authSchemes=new Map;constructor(e){for(let t in e){let n=e[t];n!==void 0&&this.authSchemes.set(t,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}},Zle=(e=>function(t){return AO(t)&&t.expiration.getTime()-Date.now()e.expiration!==void 0,Qle=(e,t,n)=>{if(e===void 0)return;let r=typeof e==`function`?e:async()=>Promise.resolve(e),i,a,o,s=!1,c=async e=>{a||=r(e);try{i=await a,o=!0,s=!1}finally{a=void 0}return i};return t===void 0?async e=>((!o||e?.forceRefresh)&&(i=await c(e)),i):async e=>((!o||e?.forceRefresh)&&(i=await c(e)),s?i:n(i)?(t(i)&&await c(e),i):(s=!0,i))};function $le(e){return e===void 0?!0:typeof e==`string`&&e.length<=50}function jO(e){let t=vD(e.userAgentAppId??void 0),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==`string`?[[n]]:n,userAgentAppId:async()=>{let n=await t();if(!$le(n)){let t=e.logger?.constructor?.name===`NoOpLogger`||!e.logger?console:e.logger;typeof n==`string`?n.length>50&&t?.warn(`The provided userAgentAppId exceeds the maximum length of 50 characters.`):t?.warn(`userAgentAppId must be a string or undefined.`)}return n}})}var MO=class e{nodes;root;conditions;results;constructor(e,t,n,r){this.nodes=e,this.root=t,this.conditions=n,this.results=r}static from(t,n,r,i){return new e(t,n,r,i)}},NO=class{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){let n=this.hash(e);if(n===!1)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let e=this.data.keys(),t=0;for(;;){let{value:n,done:r}=e.next();if(this.data.delete(n),r||++t>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t=``,{parameters:n}=this;if(n.length===0)return!1;for(let r of n){let n=String(e[r]??``);if(n.includes(`|;`))return!1;t+=n+`|;`}return t}},PO=class extends Error{constructor(e){super(e),this.name=`EndpointError`}},eue=`endpoints`;function FO(e){return typeof e!=`object`||!e?e:`ref`in e?`$${FO(e.ref)}`:`fn`in e?`${e.fn}(${(e.argv||[]).map(FO).join(`, `)})`:JSON.stringify(e,null,2)}var IO={},tue=(e,t)=>e===t;function nue(...e){for(let t of e)if(t!=null)return t}var rue=e=>{let t=e.split(`.`),n=[];for(let r of t){let t=r.indexOf(`[`);if(t!==-1){if(r.indexOf(`]`)!==r.length-1)throw new PO(`Path: '${e}' does not end with ']'`);let i=r.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new PO(`Invalid array index: '${i}' in path: '${e}'`);t!==0&&n.push(r.slice(0,t)),n.push(i)}else n.push(r)}return n},LO=(e,t)=>rue(t).reduce((n,r)=>{if(typeof n!=`object`)throw new PO(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(n)){let e=parseInt(r);return n[e<0?n.length+e:e]}return n[r]},e),iue=e=>e!=null,aue=RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`),RO=(e,t=!1)=>{if(!t)return aue.test(e);let n=e.split(`.`);for(let e of n)if(!RO(e))return!1;return!0};function oue(e,t,n){return e?t:n}var sue=e=>!e,cue=RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`),zO=e=>cue.test(e)||e.startsWith(`[`)&&e.endsWith(`]`),BO={[Db.HTTP]:80,[Db.HTTPS]:443},lue=e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e==`object`&&`hostname`in e){let{hostname:t,port:n,protocol:r=``,path:i=``,query:a={}}=e,o=new URL(`${r}//${t}${n?`:${n}`:``}${i}`);return o.search=Object.entries(a).map(([e,t])=>`${e}=${t}`).join(`&`),o}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let n=t.href,{host:r,hostname:i,pathname:a,protocol:o,search:s}=t;if(s)return null;let c=o.slice(0,-1);if(!Object.values(Db).includes(c))return null;let l=zO(i);return{scheme:c,authority:`${r}${n.includes(`${r}:${BO[c]}`)||typeof e==`string`&&e.includes(`${r}:${BO[c]}`)?`:${BO[c]}`:``}`,path:a,normalizedPath:a.endsWith(`/`)?a:`${a}/`,isIp:l}};function uue(e,t,n){if(n===1)return[e];if(e===``)return[``];let r=e.split(t);return n===0?r:r.slice(0,n-1).concat(r.slice(1).join(t))}var due={booleanEquals:tue,coalesce:nue,getAttr:LO,isSet:iue,isValidHostLabel:RO,ite:oue,not:sue,parseURL:lue,split:uue,stringEquals:(e,t)=>e===t,substring:(e,t,n,r)=>e==null||t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},VO=(e,t)=>{let n=[],{referenceRecord:r,endpointParams:i}=t,a=0;for(;at.referenceRecord[e]??t.endpointParams[e],HO=(e,t,n)=>{if(typeof e==`string`)return VO(e,n);if(e.fn)return WO.callFunction(e,n);if(e.ref)return fue(e,n);throw new PO(`'${t}': ${String(e)} is not a string, function or reference.`)},UO=({fn:e,argv:t},n)=>{let r=Array(t.length);for(let e=0;e{let{assign:n}=e;if(n&&n in t.referenceRecord)throw new PO(`'${n}' is already defined in Reference Record.`);let r=UO(e,t);t.logger?.debug?.(`${eue} evaluateCondition: ${FO(e)} = ${FO(r)}`);let i=r===``?!0:!!r;return n==null?{result:i}:{result:i,toAssign:{name:n,value:r}}},mue=(e,t)=>Object.entries(e??{}).reduce((e,[n,r])=>(e[n]=r.map(e=>{let r=HO(e,`Header value entry`,t);if(typeof r!=`string`)throw new PO(`Header '${n}' value '${r}' is not a string`);return r}),e),{}),GO=(e,t)=>Object.entries(e).reduce((e,[n,r])=>(e[n]=qO.getEndpointProperty(r,t),e),{}),KO=(e,t)=>{if(Array.isArray(e))return e.map(e=>KO(e,t));switch(typeof e){case`string`:return VO(e,t);case`object`:if(e===null)throw new PO(`Unexpected endpoint property: ${e}`);return qO.getEndpointProperties(e,t);case`boolean`:return e;default:throw new PO(`Unexpected endpoint property type: ${typeof e}`)}},qO={getEndpointProperty:KO,getEndpointProperties:GO},hue=(e,t)=>{let n=HO(e,`Endpoint URL`,t);if(typeof n==`string`)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new PO(`Endpoint URL must be a string, got ${typeof n}`)},JO=1e8,YO=(e,t)=>{let{nodes:n,root:r,results:i,conditions:a}=e,o=r,s={},c={referenceRecord:s,endpointParams:t.endpointParams,logger:t.logger};for(;o!==1&&o!==-1&&o=0===f.result?r:i}if(o>=JO){let e=i[o-JO];if(e[0]===-1){let[,t]=e;throw new PO(HO(t,`Error`,c))}let[t,n,r]=e;return{url:hue(t,c),properties:GO(n,c),headers:mue(r??{},c)}}throw new PO(`No matching endpoint.`)},XO=(e,t=!1)=>{if(t){for(let t of e.split(`.`))if(!XO(t))return!1;return!0}return!(!RO(e)||e.length<3||e.length>63||e!==e.toLowerCase()||zO(e))},ZO=`:`,gue=`/`,_ue=e=>{let t=e.split(ZO);if(t.length<6)return null;let[n,r,i,a,o,...s]=t;return n!==`arn`||r===``||i===``||s.join(ZO)===``?null:{partition:r,service:i,region:a,accountId:o,resourceId:s.map(e=>e.split(gue)).flat()}},vue={partitions:[{id:`aws`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-east-1`,name:`aws`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$`,regions:{"af-south-1":{description:`Africa (Cape Town)`},"ap-east-1":{description:`Asia Pacific (Hong Kong)`},"ap-east-2":{description:`Asia Pacific (Taipei)`},"ap-northeast-1":{description:`Asia Pacific (Tokyo)`},"ap-northeast-2":{description:`Asia Pacific (Seoul)`},"ap-northeast-3":{description:`Asia Pacific (Osaka)`},"ap-south-1":{description:`Asia Pacific (Mumbai)`},"ap-south-2":{description:`Asia Pacific (Hyderabad)`},"ap-southeast-1":{description:`Asia Pacific (Singapore)`},"ap-southeast-2":{description:`Asia Pacific (Sydney)`},"ap-southeast-3":{description:`Asia Pacific (Jakarta)`},"ap-southeast-4":{description:`Asia Pacific (Melbourne)`},"ap-southeast-5":{description:`Asia Pacific (Malaysia)`},"ap-southeast-6":{description:`Asia Pacific (New Zealand)`},"ap-southeast-7":{description:`Asia Pacific (Thailand)`},"aws-global":{description:`aws global region`},"ca-central-1":{description:`Canada (Central)`},"ca-west-1":{description:`Canada West (Calgary)`},"eu-central-1":{description:`Europe (Frankfurt)`},"eu-central-2":{description:`Europe (Zurich)`},"eu-north-1":{description:`Europe (Stockholm)`},"eu-south-1":{description:`Europe (Milan)`},"eu-south-2":{description:`Europe (Spain)`},"eu-west-1":{description:`Europe (Ireland)`},"eu-west-2":{description:`Europe (London)`},"eu-west-3":{description:`Europe (Paris)`},"il-central-1":{description:`Israel (Tel Aviv)`},"me-central-1":{description:`Middle East (UAE)`},"me-south-1":{description:`Middle East (Bahrain)`},"mx-central-1":{description:`Mexico (Central)`},"sa-east-1":{description:`South America (Sao Paulo)`},"us-east-1":{description:`US East (N. Virginia)`},"us-east-2":{description:`US East (Ohio)`},"us-west-1":{description:`US West (N. California)`},"us-west-2":{description:`US West (Oregon)`}}},{id:`aws-cn`,outputs:{dnsSuffix:`amazonaws.com.cn`,dualStackDnsSuffix:`api.amazonwebservices.com.cn`,implicitGlobalRegion:`cn-northwest-1`,name:`aws-cn`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^cn\\-\\w+\\-\\d+$`,regions:{"aws-cn-global":{description:`aws-cn global region`},"cn-north-1":{description:`China (Beijing)`},"cn-northwest-1":{description:`China (Ningxia)`}}},{id:`aws-eusc`,outputs:{dnsSuffix:`amazonaws.eu`,dualStackDnsSuffix:`api.amazonwebservices.eu`,implicitGlobalRegion:`eusc-de-east-1`,name:`aws-eusc`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eusc\\-(de)\\-\\w+\\-\\d+$`,regions:{"eusc-de-east-1":{description:`AWS European Sovereign Cloud (Germany)`}}},{id:`aws-iso`,outputs:{dnsSuffix:`c2s.ic.gov`,dualStackDnsSuffix:`api.aws.ic.gov`,implicitGlobalRegion:`us-iso-east-1`,name:`aws-iso`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-iso\\-\\w+\\-\\d+$`,regions:{"aws-iso-global":{description:`aws-iso global region`},"us-iso-east-1":{description:`US ISO East`},"us-iso-west-1":{description:`US ISO WEST`}}},{id:`aws-iso-b`,outputs:{dnsSuffix:`sc2s.sgov.gov`,dualStackDnsSuffix:`api.aws.scloud`,implicitGlobalRegion:`us-isob-east-1`,name:`aws-iso-b`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isob\\-\\w+\\-\\d+$`,regions:{"aws-iso-b-global":{description:`aws-iso-b global region`},"us-isob-east-1":{description:`US ISOB East (Ohio)`},"us-isob-west-1":{description:`US ISOB West`}}},{id:`aws-iso-e`,outputs:{dnsSuffix:`cloud.adc-e.uk`,dualStackDnsSuffix:`api.cloud-aws.adc-e.uk`,implicitGlobalRegion:`eu-isoe-west-1`,name:`aws-iso-e`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eu\\-isoe\\-\\w+\\-\\d+$`,regions:{"aws-iso-e-global":{description:`aws-iso-e global region`},"eu-isoe-west-1":{description:`EU ISOE West`}}},{id:`aws-iso-f`,outputs:{dnsSuffix:`csp.hci.ic.gov`,dualStackDnsSuffix:`api.aws.hci.ic.gov`,implicitGlobalRegion:`us-isof-south-1`,name:`aws-iso-f`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isof\\-\\w+\\-\\d+$`,regions:{"aws-iso-f-global":{description:`aws-iso-f global region`},"us-isof-east-1":{description:`US ISOF EAST`},"us-isof-south-1":{description:`US ISOF SOUTH`}}},{id:`aws-us-gov`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-gov-west-1`,name:`aws-us-gov`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-gov\\-\\w+\\-\\d+$`,regions:{"aws-us-gov-global":{description:`aws-us-gov global region`},"us-gov-east-1":{description:`AWS GovCloud (US-East)`},"us-gov-west-1":{description:`AWS GovCloud (US-West)`}}}],version:`1.1`},yue=``,bue=e=>{let{partitions:t}=vue;for(let n of t){let{regions:t,outputs:r}=n;for(let[n,i]of Object.entries(t))if(n===e)return{...r,...i}}for(let n of t){let{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}let n=t.find(e=>e.id===`aws`);if(!n)throw Error(`Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.`);return{...n.outputs}},xue=()=>yue,QO={isVirtualHostableS3Bucket:XO,parseArn:_ue,partition:bue};IO.aws=QO;function Sue(e,t,n){return e.$source||={},e.$source[t]=n,e}var $O;(function(e){e.STANDARD=`standard`,e.ADAPTIVE=`adaptive`})($O||={});var ek=$O.STANDARD,Cue=[`BandwidthLimitExceeded`,`EC2ThrottledException`,`LimitExceededException`,`PriorRequestNotComplete`,`ProvisionedThroughputExceededException`,`RequestLimitExceeded`,`RequestThrottled`,`RequestThrottledException`,`SlowDown`,`ThrottledException`,`Throttling`,`ThrottlingException`,`TooManyRequestsException`,`TransactionInProgressException`],wue=[`TimeoutError`,`RequestTimeout`,`RequestTimeoutException`],Tue=[500,502,503,504],Eue=[`ECONNRESET`,`ECONNREFUSED`,`EPIPE`,`ETIMEDOUT`],Due=[`EHOSTUNREACH`,`ENETUNREACH`,`ENOTFOUND`],Oue=e=>e?.$retryable!==void 0,kue=e=>e.$metadata?.clockSkewCorrected,Aue=e=>{let t=new Set([`Failed to fetch`,`NetworkError when attempting to fetch resource`,`The Internet connection appears to be offline`,`Load failed`,`Network request failed`]);return e&&e instanceof TypeError?t.has(e.message):!1},tk=e=>e.$metadata?.httpStatusCode===429||Cue.includes(e.name)||e.$retryable?.throttling==1,nk=(e,t=0)=>Oue(e)||kue(e)||e.name===`InvalidSignatureException`&&e.message?.includes(`Signature expired`)||wue.includes(e.name)||Eue.includes(e?.code||``)||Due.includes(e?.code||``)||Tue.includes(e.$metadata?.httpStatusCode||0)||Aue(e)||Mue(e)||e.cause!==void 0&&t<=10&&nk(e.cause,t+1),jue=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!nk(e)}return!1};function Mue(e){return e.code===`ERR_HTTP2_STREAM_ERROR`&&e.message.includes(`NGHTTP2_REFUSED_STREAM`)}var Nue=class e{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let t;this.updateMeasuredRate();let n=e;if(n?.errorType===`THROTTLING`||tk(n?.error??e)){let e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(this.enabled){for(this.refillTokenBucket();t>this.availableTokens;){let n=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(t=>e.setTimeoutFn(t,n)),this.refillTokenBucket()}this.availableTokens-=t}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+t),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise((this.lastMaxRate*(1-this.beta)/this.scaleConstant)**(1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*(e-this.lastThrottleTime-this.timeWindow)**3+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),t=Math.floor(e*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}},rk=20*1e3,Pue=`amz-sdk-invocation-id`,Fue=`amz-sdk-request`,ik=class e{static v2026=typeof process<`u`&&{}?.SMITHY_NEW_RETRIES_2026===`true`;static delay(){return e.v2026?50:100}static throttlingDelay(){return e.v2026?1e3:500}static cost(){return e.v2026?14:5}static throttlingCost(){return e.v2026?5:10}static modifiedCostType(){return e.v2026?`THROTTLING`:`TRANSIENT`}},Iue=class{x=ik.delay();computeNextBackoffDelay(e){let t=Math.random()*Math.min(this.x*2**e,rk);return Math.floor(t)}setDelayBase(e){this.x=e}},ak=class{delay;count;cost;longPoll;constructor(e,t,n,r){this.delay=e,this.count=t,this.cost=n,this.longPoll=r}getRetryCount(){return this.count}getRetryDelay(){return Math.min(rk,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}},ok={incompatible:1,attempts:2,capacity:3},sk=class{mode=$O.STANDARD;capacity=500;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(e){typeof e==`number`?this.maxAttemptsProvider=async()=>e:typeof e==`function`?this.maxAttemptsProvider=e:e&&typeof e==`object`&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>3,this.baseDelay??=ik.delay(),this.retryBackoffStrategy??=new Iue}async acquireInitialRetryToken(e){return new ak(ik.delay(),0,void 0,ik.v2026&&e.includes(`:longpoll`))}async refreshRetryTokenForRetry(e,t){let n=await this.getMaxAttempts(),r=this.retryCode(e,t,n),i=r===0,a=e.isLongPoll?.();if(i||a){let n=t.errorType;this.retryBackoffStrategy.setDelayBase(n===`THROTTLING`?ik.throttlingDelay():this.baseDelay);let o=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),s=o;if(t.retryAfterHint instanceof Date&&(s=Math.max(o,Math.min(t.retryAfterHint.getTime()-Date.now(),o+5e3))),i){let t=this.getCapacityCost(n);return this.capacity-=t,new ak(s,e.getRetryCount()+1,t,e.isLongPoll?.()??!1)}else throw Object.assign(Error(`No retry token available`),{$backoff:ik.v2026&&r===ok.capacity&&a?s:0})}throw Error(`No retry token available`)}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of 3`),3}}retryCode(e,t,n){let r=e.getRetryCount()+1,i=this.isRetryableError(t.errorType)?0:ok.incompatible,a=r=this.getCapacityCost(t.errorType)?0:ok.capacity;return i||a||o}getCapacityCost(e){return e===ik.modifiedCostType()?ik.throttlingCost():ik.cost()}isRetryableError(e){return e===`THROTTLING`||e===`TRANSIENT`}},Lue=class{mode=$O.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){let{rateLimiter:n}=t??{};this.rateLimiter=n??new Nue,this.standardRetryStrategy=t?new sk({maxAttempts:typeof e==`number`?e:3,...t}):new sk(e)}async acquireInitialRetryToken(e){let t=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),t}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,t);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};ik.v2026||=typeof process==`object`&&{}?.AWS_NEW_RETRIES_2026===`true`;function ck(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}var Rue=/\d{12}\.ddb/;async function zue(e,t,n){if(n.request?.headers?.[`smithy-protocol`]===`rpc-v2-cbor`&&ck(e,`PROTOCOL_RPC_V2_CBOR`,`M`),typeof t.retryStrategy==`function`){let n=await t.retryStrategy();if(typeof n.mode==`string`)switch(n.mode){case $O.ADAPTIVE:ck(e,`RETRY_MODE_ADAPTIVE`,`F`);break;case $O.STANDARD:ck(e,`RETRY_MODE_STANDARD`,`E`);break}}if(typeof t.accountIdEndpointMode==`function`){let n=e.endpointV2;switch(String(n?.url?.hostname).match(Rue)&&ck(e,`ACCOUNT_ID_ENDPOINT`,`O`),await t.accountIdEndpointMode?.()){case`disabled`:ck(e,`ACCOUNT_ID_MODE_DISABLED`,`Q`);break;case`preferred`:ck(e,`ACCOUNT_ID_MODE_PREFERRED`,`P`);break;case`required`:ck(e,`ACCOUNT_ID_MODE_REQUIRED`,`R`);break}}let r=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(r?.$source){let t=r;t.accountId&&ck(e,`RESOLVED_ACCOUNT_ID`,`T`);for(let[n,r]of Object.entries(t.$source??{}))ck(e,n,r)}}var lk=`user-agent`,uk=`x-amz-user-agent`,Bue=/[^!$%&'*+\-.^_`|~\w]/g,Vue=/[^!$%&'*+\-.^_`|~\w#]/g,Hue=1024;function Uue(e){let t=``;for(let n in e){let r=e[n];if(t.length+r.length+1<=Hue){t.length?t+=`,`+r:t+=r;continue}break}return t}var Wue=e=>(t,n)=>async r=>{let{request:i}=r;if(!kb.isInstance(i))return t(r);let{headers:a}=i,o=n?.userAgent?.map(dk)||[],s=(await e.defaultUserAgentProvider()).map(dk);await zue(n,e,r);let c=n;s.push(`m/${Uue(Object.assign({},n.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let l=e?.customUserAgent?.map(dk)||[],u=await e.userAgentAppId();u&&s.push(dk([`app`,`${u}`]));let d=xue(),f=(d?[d]:[]).concat([...s,...o,...l]).join(` `),p=[...s.filter(e=>e.startsWith(`aws-sdk-`)),...l].join(` `);return e.runtime===`browser`?a[uk]=f:(p&&(a[uk]=a[`x-amz-user-agent`]?`${a[lk]} ${p}`:p),a[lk]=f),t({...r,request:i})},dk=e=>{let t=e[0].split(`/`).map(e=>e.replace(Bue,`-`)).join(`/`),n=e[1]?.replace(Vue,`-`),r=t.indexOf(`/`),i=t.substring(0,r),a=t.substring(r+1);return i===`api`&&(a=a.toLowerCase()),[i,a,n].filter(e=>e&&e.length>0).reduce((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},``)},Gue={name:`getUserAgentMiddleware`,step:`build`,priority:`low`,tags:[`SET_USER_AGENT`,`USER_AGENT`],override:!0},fk=e=>({applyToStack:t=>{t.add(Wue(e),Gue)}}),pk=new Set,Kue=(e,t=RO)=>{if(!pk.has(e)&&!t(e))if(e===`*`)console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);else throw Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else pk.add(e)},mk=e=>typeof e==`string`&&(e.startsWith(`fips-`)||e.endsWith(`-fips`)),que=e=>mk(e)?[`fips-aws-global`,`aws-fips`].includes(e)?`us-east-1`:e.replace(/fips-(dkr-|prod-)?|-fips/,``):e,hk=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw Error(`Region is missing`);return Object.assign(e,{region:async()=>{let e=que(typeof t==`function`?await t():t);return Kue(e),e},useFipsEndpoint:async()=>mk(typeof t==`string`?t:await t())?!0:typeof n==`function`?n():Promise.resolve(!!n)})},gk=`content-length`;function Jue(e){return t=>async n=>{let r=n.request;if(kb.isInstance(r)){let{body:t,headers:n}=r;if(t&&Object.keys(n).map(e=>e.toLowerCase()).indexOf(gk)===-1)try{let n=e(t);r.headers={...r.headers,[gk]:String(n)}}catch{}}return t({...n,request:r})}}var Yue={step:`build`,tags:[`SET_CONTENT_LENGTH`,`CONTENT_LENGTH`],name:`contentLengthMiddleware`,override:!0},_k=e=>({applyToStack:t=>{t.add(Jue(e.bodyLengthChecker),Yue)}}),Xue=async e=>{let t=e?.Bucket||``;if(typeof e.Bucket==`string`&&(e.Bucket=t.replace(/#/g,`%23`).replace(/\?/g,`%3F`)),tde(t)){if(e.ForcePathStyle===!0)throw Error(`Path-style addressing cannot be used with ARN buckets`)}else (!ede(t)||t.indexOf(`.`)!==-1&&!String(e.Endpoint).startsWith(`http:`)||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},Zue=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Que=/(\d+\.){3}\d+/,$ue=/\.\./,ede=e=>Zue.test(e)&&!Que.test(e)&&!$ue.test(e),tde=e=>{let[t,n,r,,,i]=e.split(`:`),a=t===`arn`&&e.split(`:`).length>=6,o=!!(a&&n&&r&&i);if(a&&!o)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return o},nde=(e,t,n,r=!1)=>{let i=async()=>{let i;return i=r?n.clientContextParams?.[e]??n[e]??n[t]:n[e]??n[t],typeof i==`function`?i():i};return e===`credentialScope`||t===`CredentialScope`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:e===`accountId`||t===`AccountId`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:e===`endpoint`||t===`endpoint`?async()=>{if(n.isCustomEndpoint===!1)return;let e=await i();if(e&&typeof e==`object`){if(`url`in e)return e.url.href;if(`hostname`in e){let{protocol:t,hostname:n,port:r,path:i}=e;return`${t}//${n}${r?`:`+r:``}${i}`}}return e}:i},vk=async e=>void 0,yk=e=>{if(typeof e==`object`){if(`url`in e){let t=GD(e.url);if(e.headers){t.headers={};for(let[n,r]of Object.entries(e.headers))t.headers[n.toLowerCase()]=r.join(`, `)}return t}return e}return GD(e)},bk=async(e,t,n,r)=>{if(!n.isCustomEndpoint){let e;e=n.serviceConfiguredEndpoint?await n.serviceConfiguredEndpoint():await vk(n.serviceId),e&&(n.endpoint=()=>Promise.resolve(yk(e)),n.isCustomEndpoint=!0)}let i=await xk(e,t,n);if(typeof n.endpointProvider!=`function`)throw Error(`config.endpointProvider is not set.`);let a=n.endpointProvider(i,r);if(n.isCustomEndpoint&&n.endpoint){let e=await n.endpoint();if(e?.headers){a.headers??={};for(let[t,n]of Object.entries(e.headers))a.headers[t]=Array.isArray(n)?n:[n]}}return a},xk=async(e,t,n)=>{let r={},i=t?.getEndpointParameterInstructions?.()||{};for(let[t,a]of Object.entries(i))switch(a.type){case`staticContextParams`:r[t]=a.value;break;case`contextParams`:r[t]=e[a.name];break;case`clientContextParams`:case`builtInParams`:r[t]=await nde(a.name,t,n,a.type!==`builtInParams`)();break;case`operationContextParams`:r[t]=a.get(e);break;default:throw Error(`Unrecognized endpoint parameter instruction: `+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()===`s3`&&await Xue(r),r},rde=({config:e,instructions:t})=>(n,r)=>async i=>{e.isCustomEndpoint&&Xle(r,`ENDPOINT_OVERRIDE`,`N`);let a=await bk(i.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=a,r.authSchemes=a.properties?.authSchemes;let o=r.authSchemes?.[0];if(o){r.signing_region=o.signingRegion,r.signing_service=o.signingName;let e=ex(r)?.selectedHttpAuthScheme?.httpAuthOption;e&&(e.signingProperties=Object.assign(e.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return n({...i})},ide={step:`serialize`,tags:[`ENDPOINT_PARAMETERS`,`ENDPOINT_V2`,`ENDPOINT`],name:`endpointV2Middleware`,override:!0,relation:`before`,toMiddleware:{name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0}.name},Sk=(e,t)=>({applyToStack:n=>{n.addRelativeTo(rde({config:e,instructions:t}),ide)}}),Ck=e=>{let t=e.tls??!0,{endpoint:n,useDualstackEndpoint:r,useFipsEndpoint:i}=e,a=Object.assign(e,{endpoint:n==null?void 0:async()=>yk(await tx(n)()),tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:tx(r??!1),useFipsEndpoint:tx(i??!1)}),o;return a.serviceConfiguredEndpoint=async()=>(e.serviceId&&!o&&(o=vk(e.serviceId)),o),a},ade=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):Error(typeof e==`string`?e:`AWS SDK error wrapper for ${e}`),wk=e=>{let{retryStrategy:t,retryMode:n}=e,r=tx(e.maxAttempts??3),i=t?Promise.resolve(t):void 0,a=async()=>await tx(n)()===$O.ADAPTIVE?new Lue(r):new sk(r);return Object.assign(e,{maxAttempts:r,retryStrategy:()=>i??=a()})},Tk=(e,t)=>{let n=[];if(e&&n.push(e),t)for(let e of t)n.push(e);return n},Ek=(e,t)=>`${e||`anonymous`}${t&&t.length>0?` (a.k.a. ${t.join(`,`)})`:``}`,Dk=()=>{let e=[],t=[],n=!1,r=new Set,i=e=>e.sort((e,t)=>Ok[t.step]-Ok[e.step]||kk[t.priority||`normal`]-kk[e.priority||`normal`]),a=n=>{let i=!1,a=e=>{let t=Tk(e.name,e.aliases);if(t.includes(n)){i=!0;for(let e of t)r.delete(e);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},o=n=>{let i=!1,a=e=>{if(e.middleware===n){i=!0;for(let t of Tk(e.name,e.aliases))r.delete(t);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},s=n=>(e.forEach(e=>{n.add(e.middleware,{...e})}),t.forEach(e=>{n.addRelativeTo(e.middleware,{...e})}),n.identifyOnResolve?.(u.identifyOnResolve()),n),c=e=>{let t=[];return e.before.forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t.push(e),e.after.reverse().forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t},l=(n=!1)=>{let r=[],a=[],o={};return e.forEach(e=>{let t={...e,before:[],after:[]};for(let e of Tk(t.name,t.aliases))o[e]=t;r.push(t)}),t.forEach(e=>{let t={...e,before:[],after:[]};for(let e of Tk(t.name,t.aliases))o[e]=t;a.push(t)}),a.forEach(e=>{if(e.toMiddleware){let t=o[e.toMiddleware];if(t===void 0){if(n)return;throw Error(`${e.toMiddleware} is not found when adding ${Ek(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}e.relation===`after`&&t.after.push(e),e.relation===`before`&&t.before.push(e)}}),i(r).map(c).reduce((e,t)=>(e.push(...t),e),[])},u={add:(t,n={})=>{let{name:i,override:a,aliases:o}=n,s={step:`initialize`,priority:`normal`,middleware:t,...n},c=Tk(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${Ek(i,o)}'`);for(let t of c){let n=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(n===-1)continue;let r=e[n];if(r.step!==s.step||s.priority!==r.priority)throw Error(`"${Ek(r.name,r.aliases)}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by "${Ek(i,o)}" middleware with ${s.priority} priority in ${s.step} step.`);e.splice(n,1)}}for(let e of c)r.add(e)}e.push(s)},addRelativeTo:(e,n)=>{let{name:i,override:a,aliases:o}=n,s={middleware:e,...n},c=Tk(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${Ek(i,o)}'`);for(let e of c){let n=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(n===-1)continue;let r=t[n];if(r.toMiddleware!==s.toMiddleware||r.relation!==s.relation)throw Error(`"${Ek(r.name,r.aliases)}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by "${Ek(i,o)}" middleware ${s.relation} "${s.toMiddleware}" middleware.`);t.splice(n,1)}}for(let e of c)r.add(e)}t.push(s)},clone:()=>s(Dk()),use:e=>{e.applyToStack(u)},remove:e=>typeof e==`string`?a(e):o(e),removeByTag:n=>{let i=!1,a=e=>{let{tags:t,name:a,aliases:o}=e;if(t&&t.includes(n)){let e=Tk(a,o);for(let t of e)r.delete(t);return i=!0,!1}return!0};return e=e.filter(a),t=t.filter(a),i},concat:e=>{let t=s(Dk());return t.use(e),t.identifyOnResolve(n||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:s,identify:()=>l(!0).map(e=>{let t=e.step??e.relation+` `+e.toMiddleware;return Ek(e.name,e.aliases)+` - `+t}),identifyOnResolve(e){return typeof e==`boolean`&&(n=e),n},resolve:(e,t)=>{for(let n of l().map(e=>e.middleware).reverse())e=n(e,t);return n&&console.log(u.identify()),e}};return u},Ok={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},kk={high:3,normal:2,low:1},Ak=class{config;middlewareStack=Dk();initConfig;handlers;constructor(e){this.config=e;let{protocol:t,protocolSettings:n}=e;n&&typeof t==`function`&&(e.protocol=new t(n))}send(e,t,n){let r=typeof t==`function`?void 0:t,i=typeof t==`function`?t:n,a=r===void 0&&this.config.cacheMiddleware===!0,o;if(a){this.handlers||=new WeakMap;let t=this.handlers;t.has(e.constructor)?o=t.get(e.constructor):(o=e.resolveMiddleware(this.middlewareStack,this.config,r),t.set(e.constructor,o))}else delete this.handlers,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(i)o(e).then(e=>i(null,e.output),e=>i(e)).catch(()=>{});else return o(e).then(e=>e.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}},jk=`***SensitiveInformation***`;function Mk(e,t){if(t==null)return t;let n=QD.of(e);if(n.getMergedTraits().sensitive)return jk;if(n.isListSchema()){if(n.getValueSchema().getMergedTraits().sensitive)return jk}else if(n.isMapSchema()){if(n.getKeySchema().getMergedTraits().sensitive||n.getValueSchema().getMergedTraits().sensitive)return jk}else if(n.isStructSchema()&&typeof t==`object`){let e=t,r={};for(let[t,i]of n.structIterator())e[t]!=null&&(r[t]=Mk(i,e[t]));return r}return t}var Nk=class{middlewareStack=Dk();schema;static classBuilder(){return new ode}resolveMiddlewareWithContext(e,t,n,{middlewareFn:r,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,smithyContext:c,additionalContext:l,CommandCtor:u}){for(let i of r.bind(this)(u,e,t,n))this.middlewareStack.use(i);let d=e.concat(this.middlewareStack),{logger:f}=t,p={logger:f,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,[Hie]:{commandInstance:this,...c},...l},{requestHandler:m}=t,h=n??{};return c.eventStream&&(h={isEventStream:!0,...h}),d.resolve(e=>m.handle(e.request,h),p)}},ode=class{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName=``;_clientName=``;_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,n={}){return this._smithyContext={service:e,operation:t,...n},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,t;return t=class extends Nk{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,r,i){let a=e._operationSchema,o=a?.[4]??a?.input,s=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,r,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?Mk.bind(null,o):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?Mk.bind(null,s):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}},Pk=class e extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(t){if(!t)return!1;let n=t;return e.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault===`client`||n.$fault===`server`)}static[Symbol.hasInstance](t){if(!t)return!1;let n=t;return this===e?e.isInstance(t):e.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}},Fk=(e,t={})=>(Object.entries(t).filter(([,e])=>e!==void 0).forEach(([t,n])=>{(e[t]==null||e[t]===``)&&(e[t]=n)}),e.message=e.message||e.Message||`UnknownError`,delete e.Message,e),Ik=e=>{switch(e){case`standard`:return{retryMode:`standard`,connectionTimeout:3100};case`in-region`:return{retryMode:`standard`,connectionTimeout:1100};case`cross-region`:return{retryMode:`standard`,connectionTimeout:3100};case`mobile`:return{retryMode:`standard`,connectionTimeout:3e4};default:return{}}},Lk=Object.values(Ob),sde=e=>{let t=[];for(let n in Ob){let r=Ob[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}for(let[n,r]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>n,checksumConstructor:()=>r});return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};let r=n.algorithmId(),i=n.checksumConstructor();Lk.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=i:e.checksumAlgorithms[r]=i,t.push(n)},checksumAlgorithms(){return t}}},cde=e=>{let t={};return e.checksumAlgorithms().forEach(e=>{let n=e.algorithmId();Lk.includes(n)&&(t[n]=e.checksumConstructor())}),t},lde=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),ude=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t},Rk=e=>Object.assign(sde(e),lde(e)),zk=e=>Object.assign(cde(e),ude(e)),Bk=e=>{let t=`#text`;for(let n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]==`object`&&e[n]!==null&&(e[n]=Bk(e[n]));return e},Vk=class{trace(){}debug(){}info(){}warn(){}error(){}},dde=e=>e?.body instanceof ReadableStream;function fde(e,t){if(Ab.isInstance(e))for(let n of Object.keys(e.headers)){let r=n.toLowerCase();if(r===`retry-after`){let r=e.headers[n],i=NaN;if(r.endsWith(`GMT`))try{i=(sO(r).getTime()-Date.now())/1e3}catch(e){t?.trace?.(`Failed to parse retry-after header`),t?.trace?.(e)}else r.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?i=Number(r.match(/ GMT, ([\d.]+)$/)?.[1]):r.match(/^((\d+)|(\d+\.\d+))$/)?i=Number(r):Date.parse(r)>=Date.now()&&(i=(Date.parse(r)-Date.now())/1e3);return isNaN(i)?void 0:new Date(Date.now()+i*1e3)}else if(r===`x-amz-retry-after`){let r=e.headers[n],i=Number(r);if(isNaN(i)){t?.trace?.(`Failed to parse x-amz-retry-after=${r}`);return}return new Date(Date.now()+i)}}}var pde=e=>(t,n)=>async r=>{let i=await e.retryStrategy(),a=await e.maxAttempts();if(mde(i)){i=i;let o=await i.acquireInitialRetryToken((n.partition_id??``)+(n.__retryLongPoll?`:longpoll`:``)),s=Error(),c=0,l=0,{request:u}=r,d=kb.isInstance(u);for(d&&(u.headers[Pue]=mO());;)try{d&&(u.headers[Fue]=`attempt=${c+1}; max=${a}`);let{response:e,output:n}=await t(r);return i.recordSuccess(o),n.$metadata.attempts=c+1,n.$metadata.totalRetryDelay=l,{response:e,output:n}}catch(t){let r=hde(t,e.logger);if(s=ade(t),d&&dde(u))throw(n.logger instanceof Vk?console:n.logger)?.warn(`An error was encountered in a non-retryable streaming request.`),s;try{o=await i.refreshRetryTokenForRetry(o,r)}catch(e){throw typeof e.$backoff==`number`&&await Hk(e.$backoff),s.$metadata||={},s.$metadata.attempts=c+1,s.$metadata.totalRetryDelay=l,s}c=o.getRetryCount();let a=o.getRetryDelay();l+=a,await Hk(a)}}else return i=i,i?.mode&&(n.userAgent=[...n.userAgent||[],[`cfg/retry-mode`,i.mode]]),i.retry(t,r)},Hk=e=>new Promise(t=>setTimeout(t,e)),mde=e=>e.acquireInitialRetryToken!==void 0&&e.refreshRetryTokenForRetry!==void 0&&e.recordSuccess!==void 0,hde=(e,t)=>{let n={error:e,errorType:gde(e)},r=fde(e.$response,t);return r&&(n.retryAfterHint=r),n},gde=e=>tk(e)?`THROTTLING`:nk(e)?`TRANSIENT`:jue(e)?`SERVER_ERROR`:`CLIENT_ERROR`,_de={name:`retryMiddleware`,tags:[`RETRY`],step:`finalizeRequest`,priority:`high`,override:!0},Uk=e=>({applyToStack:t=>{t.add(pde(e),_de)}}),Wk=e=>Ab.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Gk=e=>new Date(Date.now()+e),vde=(e,t)=>Math.abs(Gk(t).getTime()-e)>=3e5,Kk=(e,t)=>{let n=Date.parse(e);return vde(n,t)?n-Date.now():t},qk=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},Jk=async e=>{let t=qk(`context`,e.context),n=qk(`config`,e.config),r=t.endpointV2?.properties?.authSchemes?.[0];return{config:n,signer:await qk(`signer`,n.signer)(r),signingRegion:e?.signingRegion,signingRegionSet:e?.signingRegionSet,signingName:e?.signingName}},Yk=class{async sign(e,t,n){if(!kb.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let r=await Jk(n),{config:i,signer:a}=r,{signingRegion:o,signingName:s}=r,c=n.context;if(c?.authSchemes?.length??!1){let[e,t]=c.authSchemes;e?.name===`sigv4a`&&t?.name===`sigv4`&&(o=t?.signingRegion??o,s=t?.signingName??s)}return await a.sign(e,{signingDate:Gk(i.systemClockOffset),signingRegion:o,signingService:s})}errorHandler(e){return t=>{let n=t.ServerTime??Wk(t.$response);if(n){let r=qk(`config`,e.config),i=r.systemClockOffset;r.systemClockOffset=Kk(n,r.systemClockOffset),r.systemClockOffset!==i&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let n=Wk(e);if(n){let e=qk(`config`,t.config);e.systemClockOffset=Kk(n,e.systemClockOffset)}}},yde=class extends Yk{async sign(e,t,n){if(!kb.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:r,signer:i,signingRegion:a,signingRegionSet:o,signingName:s}=await Jk(n),c=(await r.sigv4aSigningRegionSet?.()??o??[a]).join(`,`);return await i.sign(e,{signingDate:Gk(r.systemClockOffset),signingRegion:c,signingService:s})}},bde=(e,t,n)=>{let r,i,a,o=!1,s=async()=>{i||=e();try{r=await i,a=!0,o=!1}finally{i=void 0}return r};return t===void 0?async e=>((!a||e?.forceRefresh)&&(r=await s()),r):async e=>((!a||e?.forceRefresh)&&(r=await s()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await s(),r))},xde=e=>(e.sigv4aSigningRegionSet=vD(e.sigv4aSigningRegionSet),e),Xk=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,`credentials`,{set(i){i&&i!==t&&i!==r&&(n=!0),t=i;let a=Cde(e,Sde(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}));if(n&&!a.attributed){let e=typeof t==`object`&&!!t;r=async t=>{let n=await a(t);return e&&(!n.$source||Object.keys(n.$source).length===0)?Sue(n,`CREDENTIALS_CODE`,`e`):n},r.memoized=a.memoized,r.configBound=a.configBound,r.attributed=!0}else r=a},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;let{signingEscapePath:i=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:o}=e,s;return s=e.signer?vD(e.signer):e.regionInfoProvider?()=>vD(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,n])=>{let{signingRegion:r,signingService:a}=t;e.signingRegion=e.signingRegion||r||n,e.signingName=e.signingName||a||e.serviceId;let s={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||rx)(s)}):async t=>{t=Object.assign({},{name:`sigv4`,signingName:e.signingName||e.defaultSigningName,signingRegion:await vD(e.region)(),properties:{}},t);let n=t.signingRegion,r=t.signingName;e.signingRegion=e.signingRegion||n,e.signingName=e.signingName||r||e.serviceId;let a={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||rx)(a)},Object.assign(e,{systemClockOffset:a,signingEscapePath:i,signer:s})};function Sde(e,{credentials:t,credentialDefaultProvider:n}){let r;return r=t?t?.memoized?t:Qle(t,Zle,AO):n?vD(n(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function Cde(e,t){if(t.configBound)return t;let n=async n=>t({...n,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}var wde=async(e,t,n)=>({operation:ex(t).operation,region:await tx(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Tde(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ec2`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Ede=e=>{let t=[];switch(e.operation){default:t.push(Tde(e))}return t},Dde=e=>{let t=Xk(e);return Object.assign(t,{authSchemePreference:tx(e.authSchemePreference??[])})},Ode=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ec2`}),Zk={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},kde={name:`@aws-sdk/client-ec2`,description:`AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native`,version:`3.1045.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-ec2`,"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: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.8`,"@aws-sdk/credential-provider-node":`^3.972.39`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-sdk-ec2":`^3.972.22`,"@aws-sdk/middleware-user-agent":`^3.972.38`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.24`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.7`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.6`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.3.0`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.0.8`,"@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/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`}},Qk=({serviceId:e,clientVersion:t})=>async n=>{let r=typeof window<`u`?window.navigator:void 0,i=r?.userAgent??``,a=r?.userAgentData?.platform??$k.os(i)??`other`,o=r?.userAgentData?.brands??[],s=o[o.length-1],c=s?.brand??$k.browser(i)??`unknown`,l=s?.version??`unknown`,u=[[`aws-sdk-js`,t],[`ua`,`2.1`],[`os/${a}`,void 0],[`lang/js`],[`md/browser`,`${c}_${l}`]];e&&u.push([`api/${e}`,t]);let d=await n?.userAgentAppId?.();return d&&u.push([`app/${d}`]),u},$k={os(e){if(/iPhone|iPad|iPod/.test(e))return`iOS`;if(/Macintosh|Mac OS X/.test(e))return`macOS`;if(/Windows NT/.test(e))return`Windows`;if(/Android/.test(e))return`Android`;if(/Linux/.test(e))return`Linux`},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return`Microsoft Edge`;if(/Firefox\//.test(e))return`Firefox`;if(/Chrome\//.test(e))return`Chrome`;if(/Safari\//.test(e))return`Safari`}},eA=e=>()=>Promise.reject(e),tA=typeof TextEncoder==`function`?new TextEncoder:null,nA=e=>{if(typeof e==`string`){if(tA)return tA.encode(e).byteLength;let t=e.length;for(let n=t-1;n>=0;n--){let r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}else if(typeof e.byteLength==`number`)return e.byteLength;else if(typeof e.size==`number`)return e.size;throw Error(`Body Length computation failed for ${e}`)},Ade=[`in-region`,`cross-region`,`mobile`,`standard`,`legacy`],rA=({defaultsMode:e}={})=>bde(async()=>{let t=typeof e==`function`?await e():e;switch(t?.toLowerCase()){case`auto`:return Promise.resolve(jde()?`mobile`:`standard`);case`mobile`:case`in-region`:case`cross-region`:case`standard`:case`legacy`:return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve(`legacy`);default:throw Error(`Invalid parameter for "defaultsMode", expect ${Ade.join(`, `)}, got ${t}`)}}),jde=()=>{let e=window?.navigator;if(e?.connection){let{effectiveType:t,rtt:n,downlink:r}=e?.connection;if(typeof t==`string`&&t!==`4g`||Number(n)>100||Number(r)<10)return!0}return e?.userAgentData?.mobile||typeof e?.maxTouchPoints==`number`&&e?.maxTouchPoints>1},iA=class{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){let n=t.getMemberSchemas(),r=Object.values(n).find(e=>!!e.getMergedTraits().httpPayload);if(r)return r.getMergedTraits().mediaType||(r.isStringSchema()?`text/plain`:r.isBlobSchema()?`application/octet-stream`:e);if(!t.isUnitSchema()&&Object.values(n).find(e=>{let{httpQuery:t,httpQueryParams:n,httpHeader:r,httpLabel:i,httpPrefixHeaders:a}=e.getMergedTraits();return!t&&!n&&!r&&!i&&a===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,t,n,r,i,a){let o=e;e.includes(`#`)&&([,o]=e.split(`#`));let s={$metadata:i,$fault:n.statusCode<500?`client`:`server`};if(!this.errorRegistry)throw Error(`@aws-sdk/core/protocols - error handler not initialized.`);try{return{errorSchema:a?.(this.errorRegistry,o)??this.errorRegistry.getSchema(e),errorMetadata:s}}catch{r.message=r.message??r.Message??`UnknownError`;let e=this.errorRegistry,t=e.getBaseException();if(t){let n=e.getErrorCtor(t)??Error;throw this.decorateServiceException(Object.assign(new n({name:o}),s),r)}let n=r,i=n?.message??n?.Message??n?.Error?.Message??n?.Error?.message;throw this.decorateServiceException(Object.assign(Error(i),{name:o},s),r)}}compose(e,t,n){let r=n;t.includes(`#`)&&([r]=t.split(`#`));let i=tO.for(r),a=tO.for(`smithy.ts.sdk.synthetic.`+n);e.copyFrom(i),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){let n=e.Message??t.Message,r=Fk(e,t);n&&(r.message=n);let i=r.Error??{};i.Type=r.Error?.Type,i.Code=r.Error?.Code,i.Message=r.Error?.message??r.Error?.Message??n,r.Error=i;let a=r.$metadata.requestId;return a&&(r.RequestId=a),r}return Fk(e,t)}setQueryCompatError(e,t){let n=t.headers?.[`x-amzn-query-error`];if(e!==void 0&&n!=null){let[t,r]=n.split(`;`),i=Object.keys(e),a={Code:t,Type:r};e.Code=t,e.Type=r;for(let t=0;tQD.of(e).getMergedTraits().awsQueryError?.[0]===t)}}},aA=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},Mde=class{from;to;keys;constructor(e,t){this.from=e,this.to=t;let n=Object.keys(this.from),r=new Set(n);r.delete(`__type`),this.keys=r}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}},Nde=/[&<>"]/g,Pde={"&":`&`,"<":`<`,">":`>`,'"':`"`};function Fde(e){return e.replace(Nde,e=>Pde[e])}var Ide=/[&"'<>\r\n\u0085\u2028]/g,Lde={"&":`&`,'"':`"`,"'":`'`,"<":`<`,">":`>`,"\r":` `,"\n":` `,"…":`…`,"\u2028":`
`};function Rde(e){return e.replace(Ide,e=>Lde[e])}var oA=class{value;constructor(e){this.value=e}toString(){return Rde(``+this.value)}},sA=class e{name;children;attributes={};static of(t,n,r){let i=new e(t);return n!==void 0&&i.addChildNode(new oA(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}="${Fde(``+r)}"`)}return t+=e?`>${this.children.map(e=>e.toString()).join(``)}`:`/>`}},cA;function zde(e){cA||=new DOMParser;let t=cA.parseFromString(e,`application/xml`);if(t.getElementsByTagName(`parsererror`).length>0)throw Error(`DOMParser XML parsing error.`);let n=e=>{if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim())return e.textContent;if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.attributes.length===0&&t.childNodes.length===0)return``;let r={},i=Array.from(t.attributes);for(let e of i)r[`${e.name}`]=e.value;let a=Array.from(t.childNodes);for(let e of a){let o=n(e);if(o!=null){let t=e.nodeName;if(a.length===1&&i.length===0&&t===`#text`)return o;r[t]?Array.isArray(r[t])?r[t].push(o):r[t]=[r[t],o]:r[t]=o}else if(a.length===1&&i.length===0)return t.textContent}return r}return null};return{[t.documentElement.nodeName]:n(t.documentElement)}}var lA=class extends aA{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new OO(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,n){let r=QD.of(e),i=r.getMemberSchemas();if(r.isStructSchema()&&r.isMemberSchema()&&Object.values(i).find(e=>!!e.getMemberTraits().eventPayload)){let e={},n=Object.keys(i)[0];return i[n].isBlobSchema()?e[n]=t:e[n]=this.read(i[n],t),e}let a=(this.serdeContext?.utf8Encoder??Lb)(t),o=this.parseXml(a);return this.readSchema(e,n?o[n]:o)}readSchema(e,t){let n=QD.of(e);if(n.isUnitSchema())return;let r=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t))return this.readSchema(n,[t]);if(t==null)return t;if(typeof t==`object`){let e=!!r.xmlFlattened;if(n.isListSchema()){let r=n.getValueSchema(),i=[],a=r.getMergedTraits().xmlName??`member`,o=e?t:(t[0]??t)[a];if(o==null)return i;let s=Array.isArray(o)?o:[o];for(let e of s)i.push(this.readSchema(r,e));return i}let i={};if(n.isMapSchema()){let r=n.getKeySchema(),a=n.getValueSchema(),o;o=e?Array.isArray(t)?t:[t]:Array.isArray(t.entry)?t.entry:[t.entry];let s=r.getMergedTraits().xmlName??`key`,c=a.getMergedTraits().xmlName??`value`;for(let e of o){let t=e[s],n=e[c];i[t]=this.readSchema(a,n)}return i}if(n.isStructSchema()){let e=n.isUnionSchema(),r;e&&(r=new Mde(t,i));for(let[a,o]of n.structIterator()){let n=o.getMergedTraits(),s=n.httpPayload?n.xmlName??o.getName():o.getMemberTraits().xmlName??a;e&&r.mark(s),t[s]!=null&&(i[a]=this.readSchema(o,t[s]))}return e&&r.writeUnknown(),i}if(n.isDocumentSchema())return t;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=zde(e)}catch(t){throw t&&typeof t==`object`&&Object.defineProperty(t,`$responseBodyText`,{value:e}),t}let n=`#text`,r=Object.keys(t)[0],i=t[r];return i[n]&&(i[r]=i[n],delete i[n]),Bk(i)}return{}}},Bde=class extends aA{settings;buffer;constructor(e){super(),this.settings=e}write(e,t,n=``){this.buffer===void 0&&(this.buffer=``);let r=QD.of(e);if(n&&!n.endsWith(`.`)&&(n+=`.`),r.isBlobSchema())(typeof t==`string`||t instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??CD)(t)));else if(r.isBooleanSchema()||r.isNumericSchema()||r.isStringSchema())t==null?r.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(mO())):(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigIntegerSchema())t!=null&&(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigDecimalSchema())t!=null&&(this.writeKey(n),this.writeValue(t instanceof wO?t.string:String(t)));else if(r.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(n),DO(r,this.settings)){case 5:this.writeValue(t.toISOString().replace(`.000Z`,`Z`));break;case 6:this.writeValue(oO(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}else if(r.isDocumentSchema())Array.isArray(t)?this.write(79,t,n):t instanceof Date?this.write(4,t,n):t instanceof Uint8Array?this.write(21,t,n):t&&typeof t==`object`?this.write(143,t,n):(this.writeKey(n),this.writeValue(String(t)));else if(r.isListSchema()){if(Array.isArray(t))if(t.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(``));else{let e=r.getValueSchema(),i=this.settings.flattenLists||r.getMergedTraits().xmlFlattened,a=1;for(let r of t){if(r==null)continue;let t=e.getMergedTraits(),o=this.getKey(`member`,t.xmlName,t.ec2QueryName),s=i?`${n}${a}`:`${n}${o}.${a}`;this.write(e,r,s),++a}}}else if(r.isMapSchema()){if(t&&typeof t==`object`){let e=r.getKeySchema(),i=r.getValueSchema(),a=r.getMergedTraits().xmlFlattened,o=1;for(let r in t){let s=t[r];if(s==null)continue;let c=e.getMergedTraits(),l=this.getKey(`key`,c.xmlName,c.ec2QueryName),u=a?`${n}${o}.${l}`:`${n}entry.${o}.${l}`,d=i.getMergedTraits(),f=this.getKey(`value`,d.xmlName,d.ec2QueryName),p=a?`${n}${o}.${f}`:`${n}entry.${o}.${f}`;this.write(e,r,u),this.write(i,s,p),++o}}}else if(r.isStructSchema()){if(t&&typeof t==`object`){let e=!1;for(let[i,a]of r.structIterator()){if(t[i]==null&&!a.isIdempotencyToken())continue;let r=a.getMergedTraits(),o=this.getKey(i,r.xmlName,r.ec2QueryName,`struct`),s=`${n}${o}`;this.write(a,t[i],s),e=!0}if(!e&&r.isUnionSchema()){let{$unknown:e}=t;if(Array.isArray(e)){let[t,r]=e,i=`${n}${t}`;this.write(15,r,i)}}}}else if(!r.isUnitSchema())throw Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${r.getName(!0)}`)}flush(){if(this.buffer===void 0)throw Error(`@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.`);let e=this.buffer;return delete this.buffer,e}getKey(e,t,n,r){let{ec2:i,capitalizeKeys:a}=this.settings;if(i&&n)return n;let o=t??e;return a&&r===`struct`?o[0].toUpperCase()+o.slice(1):o}writeKey(e){e.endsWith(`.`)&&(e=e.slice(0,e.length-1)),this.buffer+=`&${VD(e)}=`}writeValue(e){this.buffer+=VD(e)}},uA=class extends Kle{options;serializer;deserializer;mixin=new iA;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new Bde(t),this.deserializer=new lA(t)}getShapeId(){return`aws.protocols#awsQuery`}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw Error(`AWSQuery protocol has no payload codec.`)}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-www-form-urlencoded`,(HD(e.input)===`unit`||!r.body)&&(r.body=``),r.body=`Action=${e.name.split(`#`)[1]??e.name}&Version=${this.options.version}`+r.body,r.body.endsWith(`&`)&&(r.body=r.body.slice(-1)),r}async deserializeResponse(e,t,n){let r=this.deserializer,i=QD.of(e.output),a={};if(n.statusCode>=300){let i=await BD(n.body,t);i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n))}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=e.name.split(`#`)[1]??e.name,s=i.isStructSchema()&&this.useNestedResult()?o+`Result`:void 0,c=await BD(n.body,t);return c.byteLength>0&&Object.assign(a,await r.read(i,c,s)),a.$metadata=this.deserializeMetadata(n),a}useNestedResult(){return!0}async handleError(e,t,n,r,i){let a=this.loadQueryErrorCode(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let o=this.loadQueryError(r)??{},s=this.loadQueryErrorMessage(r);o.message=s,o.Error={Type:o.Type,Code:o.Code,Message:s};let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,i,this.mixin.findQueryCompatibleError),u=QD.of(c),d=new((this.compositeErrorRegistry.getErrorCtor(c))??Error)(s),f={Type:o.Error.Type,Code:o.Error.Code,Error:o.Error};for(let[e,t]of u.structIterator()){let n=t.getMergedTraits().xmlName??e,i=o[n]??r[n];f[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(d,l,{$fault:u.getMergedTraits().error,message:s},f),r)}loadQueryErrorCode(e,t){let n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return`NotFound`}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??`Unknown`}getDefaultContentType(){return`application/x-www-form-urlencoded`}},Vde=class extends uA{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}},Hde=(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`},Ude=class extends aA{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,t){let n=QD.of(e);if(n.isStringSchema()&&typeof t==`string`)this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer=`byteLength`in t?t:(this.serdeContext?.base64Decoder??SD)(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=sA.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=sA.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=sA.of(e);if(typeof n!=`string`)if(t instanceof sA||t instanceof oA)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,u]=this.getXmlnsAttribute(e,r),d=(t,n)=>{if(a.isListSchema())this.writeList(a,Array.isArray(n)?n:[n],t,u);else if(a.isMapSchema())this.writeMap(a,n,t,u);else if(a.isStructSchema()){let r=this.writeStruct(a,n,u);t.addChildNode(r.withName(c?i.xmlName??e.getMemberName():o.xmlName??`member`))}else{let r=sA.of(c?i.xmlName??e.getMemberName():o.xmlName??`member`);this.writeSimpleInto(a,n,r,u),t.addChildNode(r)}};if(c)for(let e of t)(s||e!=null)&&d(n,e);else{let r=sA.of(i.xmlName??e.getMemberName());u&&r.addAttribute(l,u);for(let e of t)(s||e!=null)&&d(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(),u=l.xmlName??`value`,d=!!l.sparse,f=!!a.xmlFlattened,[p,m]=this.getXmlnsAttribute(e,r),h=(e,t,n)=>{let r=sA.of(s,t),[i,a]=this.getXmlnsAttribute(o,m);a&&r.addAttribute(i,a),e.addChildNode(r);let l=sA.of(u);c.isListSchema()?this.writeList(c,n,l,m):c.isMapSchema()?this.writeMap(c,n,l,m,!0):c.isStructSchema()?l=this.writeStruct(c,n,m):this.writeSimpleInto(c,n,l,m),e.addChildNode(l)};if(f)for(let r in t){let i=t[r];if(d||i!=null){let t=sA.of(a.xmlName??e.getMemberName());h(t,r,i),n.addChildNode(t)}}else{let r;i||(r=sA.of(a.xmlName??e.getMemberName()),m&&r.addAttribute(p,m),n.addChildNode(r));for(let e in t){let a=t[e];if(d||a!=null){let t=sA.of(`entry`);h(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=QD.of(e),r=null;if(t&&typeof t==`object`)if(n.isBlobSchema())r=(this.serdeContext?.base64Encoder??CD)(t);else if(n.isTimestampSchema()&&t instanceof Date)switch(DO(n,this.settings)){case 5:r=t.toISOString().replace(`.000Z`,`Z`);break;case 6:r=oO(t);break;case 7:r=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using http date`,t),r=oO(t);break}else if(n.isBigDecimalSchema()&&t)return t instanceof wO?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()?mO():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=QD.of(e),o=new oA(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]}},Wde=class extends aA{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Ude(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new lA(this.settings);return e.setSerdeContext(this.serdeContext),e}},Gde=class extends Gle{codec;serializer;deserializer;mixin=new iA;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Wde(t),this.serializer=new Yle(this.codec.createSerializer(),t),this.deserializer=new qle(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=QD.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=Hde(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=QD.of(o),l=r.Error?.message??r.Error?.Message??r.message??r.Message??`UnknownError`,u=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)(l);await this.deserializeHttpMessage(o,t,n,r);let d={},f=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().xmlName??e,i=r.Error?.[n]??r[n];d[e]=f.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(u,s,{$fault:c.getMergedTraits().error,message:l},d),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}},dA=`ref`,fA=-1,pA=!0,mA=`isSet`,hA=`PartitionResult`,gA=`booleanEquals`,_A=`getAttr`,vA={[dA]:`Endpoint`},yA={[dA]:hA},bA={},xA=[{[dA]:`Region`}],SA={conditions:[[mA,[vA]],[mA,xA],[`aws.partition`,xA,hA],[gA,[{[dA]:`UseFIPS`},pA]],[gA,[{[dA]:`UseDualStack`},pA]],[gA,[{fn:_A,argv:[yA,`supportsDualStack`]},pA]],[gA,[{fn:_A,argv:[yA,`supportsFIPS`]},pA]],[`stringEquals`,[{fn:_A,argv:[yA,`name`]},`aws-us-gov`]]],results:[[fA],[fA,`Invalid Configuration: FIPS and custom endpoint are not supported`],[fA,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[vA,bA],[`https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,bA],[fA,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://ec2.{Region}.amazonaws.com`,bA],[`https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}`,bA],[fA,`FIPS is enabled but this partition does not support FIPS`],[`https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}`,bA],[fA,`DualStack is enabled but this partition does not support DualStack`],[`https://ec2.{Region}.{PartitionResult#dnsSuffix}`,bA],[fA,`Invalid Configuration: Missing Region`]]},Kde=2,CA=1e8,qde=new Int32Array([-1,1,-1,0,13,3,1,4,CA+12,2,5,CA+12,3,8,6,4,7,CA+11,5,CA+9,CA+10,4,11,9,6,10,CA+8,7,CA+6,CA+7,5,12,CA+5,6,CA+4,CA+5,3,CA+1,14,4,CA+2,CA+3]),Jde=MO.from(qde,Kde,SA.conditions,SA.results),Yde=new NO({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Xde=(e,t={})=>Yde.get(e,()=>YO(Jde,{endpointParams:e,logger:t.logger}));IO.aws=QO;var Zde=class e extends Pk{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},wA=`Address`,Qde=`AllocateAddressRequest`,$de=`AllocateAddressResult`,efe=`AssociateAddressRequest`,tfe=`AssociateAddressResult`,nfe=`AllAvailabilityZones`,rfe=`AllocateAddress`,ife=`ApplianceArn`,afe=`AssociateAddress`,ofe=`AttachedAppliances`,sfe=`AttributeBooleanValue`,cfe=`AssociateCarrierIpAddress`,lfe=`AdditionalFlexibleNetworkInterfaces`,ufe=`AvailableIpAddressCount`,TA=`AssignIpv6AddressOnCreation`,dfe=`AttachInternetGateway`,ffe=`AttachInternetGatewayRequest`,pfe=`AssociateIamInstanceProfile`,mfe=`AssociateIamInstanceProfileRequest`,hfe=`AssociateIamInstanceProfileResult`,gfe=`AllocationIdList`,_fe=`AssociationIdList`,EA=`AdditionalInfo`,DA=`AllocationId`,OA=`AllocationIds`,kA=`AssociationId`,vfe=`AssociationIds`,AA=`AttachmentId`,yfe=`AmiLaunchIndex`,bfe=`AttachmentLimitType`,xfe=`AddressList`,jA=`AvailabilityMode`,Sfe=`AssociatePublicIpAddress`,Cfe=`AmazonProvidedIpv6CidrBlock`,wfe=`AutoProvisionZones`,Tfe=`AutoRecoverySupported`,Efe=`AssociateRouteTableRequest`,Dfe=`AssociateRouteTableResult`,Ofe=`AssociateRouteTable`,kfe=`AllowReassociation`,Afe=`AllRegions`,MA=`AssociatedResource`,NA=`AutoRecovery`,PA=`AssociationState`,jfe=`AuthorizeSecurityGroupEgress`,Mfe=`AuthorizeSecurityGroupEgressRequest`,Nfe=`AuthorizeSecurityGroupEgressResult`,Pfe=`AuthorizeSecurityGroupIngressRequest`,Ffe=`AuthorizeSecurityGroupIngressResult`,Ife=`AuthorizeSecurityGroupIngress`,Lfe=`AutoScalingIps`,FA=`AmdSevSnp`,Rfe=`AttachmentState`,zfe=`ArchitectureTypeList`,IA=`AttachTime`,Bfe=`AttachVolumeRequest`,Vfe=`AttributeValue`,Hfe=`AttachVolume`,LA=`AvailabilityZone`,RA=`AvailabilityZoneAddress`,zA=`AvailabilityZoneAddresses`,Ufe=`AvailabilityZoneGeography`,Wfe=`AvailabilityZoneGeographyList`,BA=`AvailabilityZoneId`,Gfe=`AvailabilityZoneList`,Kfe=`AvailabilityZoneMessage`,qfe=`AvailabilityZoneMessageList`,Jfe=`AvailabilityZoneSubGeography`,Yfe=`AvailabilityZoneSubGeographyList`,Xfe=`AvailabilityZones`,VA=`Accelerators`,Zfe=`Addresses`,Qfe=`Affinity`,HA=`Arn`,UA=`Architecture`,$fe=`Associations`,WA=`Association`,epe=`Attribute`,GA=`Attachment`,KA=`Attachments`,tpe=`BlobAttributeValue`,npe=`BaselineBandwidthInGbps`,qA=`BaselineBandwidthInMbps`,JA=`BlockDeviceMapping`,rpe=`BlockDeviceMappingList`,ipe=`BlockDeviceMappingRequestList`,YA=`BlockDeviceMappings`,ape=`BlockDurationMinutes`,XA=`BaselineIops`,ZA=`BootMode`,ope=`BootModeTypeList`,spe=`BareMetal`,QA=`BlockPublicAccessStates`,cpe=`BurstablePerformanceSupported`,$A=`BaselineThroughputInMBps`,ej=`BandwidthWeighting`,lpe=`BandwidthWeightingTypeList`,upe=`BandwidthWeightings`,tj=`CidrBlock`,dpe=`CidrBlockAssociationSet`,fpe=`CapacityBlockId`,ppe=`CidrBlockState`,mpe=`CoreCountList`,nj=`CoreCount`,hpe=`CpuCredits`,rj=`CompletionDurationMinutes`,gpe=`CreationDate`,ij=`CarrierGatewayId`,_pe=`CurrentGeneration`,aj=`CarrierIp`,vpe=`CurrentInstanceBootMode`,ype=`CreateInternetGateway`,bpe=`CreateInternetGatewayRequest`,xpe=`CreateInternetGatewayResult`,Spe=`CreateImageRequest`,Cpe=`CreateImageResult`,oj=`CidrIp`,sj=`CidrIpv6`,cj=`CidrIpv4`,wpe=`CoreInfo`,Tpe=`CreateImage`,Epe=`CreateKeyPair`,Dpe=`CreateKeyPairRequest`,lj=`CoreNetworkArn`,Ope=`CreateNatGateway`,kpe=`CreateNatGatewayRequest`,Ape=`CreateNatGatewayResult`,uj=`CpuOptions`,dj=`CustomerOwnedIp`,fj=`CustomerOwnedIpv4Pool`,jpe=`CpuOptionsRequest`,Mpe=`CreatePlacementGroup`,Npe=`CreatePlacementGroupRequest`,Ppe=`CreatePlacementGroupResult`,pj=`CapacityReservationId`,mj=`CapacityReservationPreference`,Fpe=`CreateRouteRequest`,hj=`CapacityReservationResourceGroupArn`,Ipe=`CreateRouteResult`,Lpe=`CapacityReservationSpecificationResponse`,gj=`CapacityReservationSpecification`,_j=`CapacityReservationTarget`,Rpe=`CapacityReservationTargetResponse`,zpe=`CreateRouteTableRequest`,Bpe=`CreateRouteTableResult`,Vpe=`CreateRouteTable`,Hpe=`CreateRoute`,Upe=`CreateSecurityGroup`,Wpe=`CreateSecurityGroupRequest`,Gpe=`CreateSecurityGroupResult`,Kpe=`CopySnapshotRequest`,qpe=`CopySnapshotRequestPSU`,Jpe=`CopySnapshotResult`,Ype=`CreateSnapshotRequest`,vj=`CreateSubnetRequest`,yj=`CreateSubnetResult`,bj=`CreditSpecificationRequest`,xj=`CopySnapshot`,Sj=`CreditSpecification`,Cj=`CreateSnapshot`,wj=`CreateSubnet`,Tj=`CurrentState`,Ej=`ClientToken`,Dj=`ConnectionTrackingConfiguration`,Oj=`ConnectionTrackingSpecification`,kj=`ConnectionTrackingSpecificationRequest`,Aj=`ConnectionTrackingSpecificationResponse`,jj=`CompletionTime`,Mj=`ConnectivityType`,Nj=`CreateTime`,Pj=`CreateVolumeRequest`,Fj=`CreateVpcRequest`,Ij=`CreateVpcResult`,Lj=`CreateVolume`,Rj=`CreateVpc`,zj=`Code`,Bj=`Configured`,Vj=`Count`,Hj=`DescribeAddressesRequest`,Uj=`DescribeAddressesResult`,Wj=`DisassociateAddressRequest`,Gj=`DisableApiStop`,Kj=`DisableApiTermination`,qj=`DestinationAvailabilityZone`,Jj=`DescribeAvailabilityZonesRequest`,Yj=`DescribeAvailabilityZonesResult`,Xj=`DescribeAvailabilityZones`,Zj=`DescribeAddresses`,Qj=`DisassociateAddress`,$j=`DestinationCidrBlock`,eM=`DefaultConnectionTrackingConfiguration`,tM=`DefaultCores`,nM=`DataEncryptionKeyId`,rM=`DefaultEnaQueueCountPerInterface`,iM=`DefaultForAz`,aM=`DedicatedHostsSupported`,oM=`DeviceIndex`,sM=`DestinationIpv6CidrBlock`,cM=`DeleteInternetGateway`,lM=`DeleteInternetGatewayRequest`,uM=`DescribeInternetGatewaysRequest`,dM=`DescribeInternetGatewaysResult`,fM=`DetachInternetGatewayRequest`,pM=`DescribeInternetGateways`,mM=`DetachInternetGateway`,hM=`DisassociateIamInstanceProfile`,gM=`DescribeIamInstanceProfileAssociations`,_M=`DescribeIamInstanceProfileAssociationsRequest`,vM=`DescribeIamInstanceProfileAssociationsResult`,yM=`DisassociateIamInstanceProfileRequest`,bM=`DisassociateIamInstanceProfileResult`,xM=`DiskInfoList`,SM=`DescribeImagesRequest`,CM=`DescribeImagesResult`,wM=`DescribeInstancesRequest`,TM=`DescribeInstancesResult`,EM=`DescribeInstanceTypesRequest`,DM=`DescribeInstanceTypesResult`,OM=`DescribeInstanceTypes`,kM=`DescribeImages`,AM=`DescribeInstances`,jM=`DiskInfo`,MM=`DeleteKeyPair`,NM=`DeleteKeyPairRequest`,PM=`DeleteKeyPairResult`,FM=`DescribeKeyPairsRequest`,IM=`DescribeKeyPairsResult`,LM=`DescribeKeyPairs`,RM=`DisableLniAtDeviceIndex`,zM=`DeviceName`,BM=`DefaultNetworkCardIndex`,VM=`DeleteNatGateway`,HM=`DeleteNatGatewayRequest`,UM=`DeleteNatGatewayResult`,WM=`DescribeNatGatewaysRequest`,GM=`DescribeNatGatewaysResult`,KM=`DescribeNatGateways`,qM=`DestinationOutpostArn`,JM=`DhcpOptionsId`,YM=`DeleteOnTermination`,XM=`DeletePlacementGroup`,ZM=`DeletePlacementGroupRequest`,QM=`DescribePlacementGroupsRequest`,$M=`DescribePlacementGroupsResult`,eN=`DescribePlacementGroups`,tN=`DestinationPrefixListId`,nN=`DeregistrationProtection`,U=`DryRun`,rN=`DeleteRouteRequest`,iN=`DescribeRegionsRequest`,aN=`DescribeRegionsResult`,oN=`DeleteRouteTable`,sN=`DeleteRouteTableRequest`,cN=`DescribeRouteTablesRequest`,lN=`DescribeRouteTablesResult`,uN=`DisassociateRouteTableRequest`,dN=`DescribeRouteTables`,fN=`DisassociateRouteTable`,pN=`DestinationRegion`,mN=`DeleteRoute`,hN=`DescribeRegions`,gN=`DeleteSecurityGroup`,_N=`DeleteSecurityGroupRequest`,vN=`DeleteSecurityGroupResult`,yN=`DescribeSecurityGroupsRequest`,bN=`DescribeSecurityGroupsResult`,xN=`DescribeSecurityGroups`,SN=`DeleteSnapshotRequest`,CN=`DeleteSubnetRequest`,wN=`DescribeSnapshotsRequest`,TN=`DescribeSnapshotsResult`,EN=`DescribeSubnetsRequest`,DN=`DescribeSubnetsResult`,ON=`DeleteSnapshot`,kN=`DeleteSubnet`,AN=`DescribeSnapshots`,jN=`DescribeSubnets`,MN=`DefaultTcpEstablishedTimeout`,NN=`DefaultThreadsPerCore`,PN=`DeprecationTime`,FN=`DeleteTime`,IN=`DefaultUdpStreamTimeout`,LN=`DefaultUdpTimeout`,RN=`DefaultVCpus`,zN=`DeleteVolumeRequest`,BN=`DeleteVpcRequest`,VN=`DescribeVolumesRequest`,HN=`DescribeVolumesResult`,UN=`DescribeVpcsRequest`,WN=`DescribeVpcsResult`,GN=`DetachVolumeRequest`,KN=`DeleteVolume`,qN=`DeleteVpc`,JN=`DescribeVolumes`,YN=`DescribeVpcs`,XN=`DetachVolume`,ZN=`Description`,QN=`Device`,$N=`Disks`,eP=`Domain`,tP=`EbsBlockDevice`,nP=`ExecutableByStringList`,rP=`ExecutableBy`,iP=`EbsCardIndex`,aP=`EbsCardInfoList`,oP=`EbsCardInfo`,sP=`EbsCards`,cP=`EncryptionControl`,lP=`EnableDns64`,uP=`ElasticFileSystem`,dP=`ElasticFileSystemExclusion`,fP=`ElasticGpuAssociation`,pP=`ElasticGpuAssociationId`,mP=`ElasticGpuAssociationList`,hP=`ElasticGpuAssociationState`,gP=`ElasticGpuAssociationTime`,_P=`ElasticGpuAssociations`,vP=`ElasticGpuId`,yP=`ElasticGpuSpecification`,bP=`ElasticGpuSpecifications`,xP=`ElasticInferenceAccelerator`,SP=`ElasticInferenceAcceleratorAssociation`,CP=`ElasticInferenceAcceleratorAssociationId`,wP=`ElasticInferenceAcceleratorAssociationList`,TP=`ElasticInferenceAcceleratorAssociationState`,EP=`ElasticInferenceAcceleratorAssociationTime`,DP=`ElasticInferenceAcceleratorArn`,OP=`ElasticInferenceAcceleratorAssociations`,kP=`ElasticInferenceAccelerators`,AP=`EbsInstanceBlockDevice`,jP=`EbsInstanceBlockDeviceSpecification`,MP=`EncryptionInTransitSupported`,NP=`EbsInfo`,PP=`EfaInfo`,FP=`EnableLniAtDeviceIndex`,IP=`EbsOptimized`,LP=`EbsOptimizedInfo`,RP=`EgressOnlyInternetGateway`,zP=`EgressOnlyInternetGatewayExclusion`,BP=`EgressOnlyInternetGatewayId`,VP=`EnclaveOptionsRequest`,HP=`EbsOptimizedSupport`,UP=`EnclaveOptions`,WP=`EnablePrimaryIpv6`,GP=`EnaQueueCount`,KP=`EnableResourceNameDnsAAAARecord`,qP=`EnableResourceNameDnsAAAARecordOnLaunch`,JP=`EnableResourceNameDnsARecord`,YP=`EnableResourceNameDnsARecordOnLaunch`,XP=`EnaSrdEnabled`,ZP=`EnaSrdSpecification`,QP=`EnaSrdSpecificationRequest`,$P=`EnaSrdSupported`,eF=`EnaSrdUdpEnabled`,tF=`EnaSrdUdpSpecification`,nF=`EnaSrdUdpSpecificationRequest`,rF=`EfaSupported`,iF=`EncryptionSupport`,aF=`EnaSupport`,oF=`EndTime`,sF=`ExecutableUsers`,cF=`Ebs`,lF=`Enabled`,uF=`Encrypted`,dF=`Endpoint`,fF=`Force`,pF=`FailureCode`,mF=`FpgaDeviceInfo`,hF=`FpgaDeviceInfoList`,gF=`FpgaDeviceMemoryInfo`,_F=`FlexibleEnaQueuesSupport`,vF=`FpgaInfo`,yF=`FilterList`,bF=`FailureMessage`,xF=`FromPort`,SF=`FastRestored`,CF=`FullSnapshotSizeInBytes`,wF=`FreeTierEligible`,TF=`Filters`,EF=`Filter`,DF=`Fpgas`,OF=`Groups`,kF=`GroupArn`,AF=`GetConsoleOutput`,jF=`GetConsoleOutputRequest`,MF=`GetConsoleOutputResult`,NF=`GroupDescription`,PF=`GpuDeviceInfo`,FF=`GpuDeviceInfoList`,IF=`GpuDeviceMemoryInfo`,LF=`GatewayId`,RF=`GroupIdentifierList`,zF=`GroupIdStringList`,BF=`GpuInfo`,VF=`GroupId`,HF=`GroupIds`,UF=`GroupIdentifier`,WF=`GroupLongName`,GF=`GroupName`,KF=`GroupNameStringList`,qF=`GroupNames`,JF=`GroupOwnerId`,YF=`GpuPartitionSize`,XF=`Geography`,ZF=`Gpus`,QF=`HiddenByDefault`,$F=`HttpEndpoint`,eI=`HostId`,tI=`HibernationOptions`,nI=`HibernationOptionsRequest`,rI=`HttpProtocolIpv6`,iI=`HttpPutResponseHopLimit`,aI=`HostResourceGroupArn`,oI=`HibernationSupported`,sI=`HttpTokens`,cI=`HostnameType`,lI=`Hibernate`,uI=`Hypervisor`,dI=`Id`,fI=`Ipv6Addresses`,pI=`Ipv6AddressAttribute`,mI=`Ipv6AddressCount`,hI=`InstanceAttachmentEnaSrdSpecification`,gI=`InstanceAttachmentEnaSrdUdpSpecification`,_I=`InferenceAcceleratorInfo`,vI=`Ipv4AddressesPerInterface`,yI=`Ipv6AddressesPerInterface`,bI=`Ipv4AddressesPerSecondaryInterface`,xI=`ImageAllowed`,SI=`IpAddress`,CI=`Ipv6Address`,wI=`InstanceBlockDeviceMapping`,TI=`InstanceBlockDeviceMappingList`,EI=`InstanceBlockDeviceMappingSpecification`,DI=`InstanceBlockDeviceMappingSpecificationList`,OI=`Ipv6CidrBlock`,kI=`Ipv6CidrBlockAssociationSet`,AI=`Ipv6CidrBlockNetworkBorderGroup`,jI=`Ipv6CidrBlockState`,MI=`IncludeDeprecated`,NI=`InferenceDeviceInfo`,PI=`InferenceDeviceInfoList`,FI=`InferenceDeviceMemoryInfo`,II=`IncludeDisabled`,LI=`IsDefault`,RI=`IsEgress`,zI=`InternetGateway`,BI=`InternetGatewayAttachment`,VI=`InternetGatewayAttachmentList`,HI=`InternetGatewayBlockMode`,UI=`InternetGatewayExclusion`,WI=`InternetGatewayId`,GI=`InternetGatewayIdList`,KI=`InternetGatewayIds`,qI=`InternetGatewayList`,JI=`InternetGateways`,YI=`InstanceId`,XI=`InstanceIpv6Address`,ZI=`InstanceIpv6AddressList`,QI=`InstanceInterruptionBehavior`,$I=`IamInstanceProfile`,eL=`IamInstanceProfileAssociation`,tL=`IamInstanceProfileAssociationSet`,nL=`IamInstanceProfileAssociations`,rL=`Ipv6IpamPoolId`,iL=`Ipv4IpamPoolId`,aL=`InstanceIpv4PrefixList`,oL=`InstanceIpv6PrefixList`,sL=`IamInstanceProfileSpecification`,cL=`InstanceIpv4Prefix`,lL=`InstanceIpv6Prefix`,uL=`InstanceInitiatedShutdownBehavior`,dL=`ImageIdStringList`,fL=`InstanceIdStringList`,pL=`ImageId`,mL=`ImageIds`,hL=`InstanceIds`,gL=`ImportKeyPair`,_L=`ImportKeyPairRequest`,vL=`ImportKeyPairResult`,yL=`ImageLocation`,bL=`ImageList`,xL=`InstanceLifecycle`,SL=`InstanceList`,CL=`IpList`,wL=`InstanceMaintenanceOptions`,TL=`InstanceMaintenanceOptionsRequest`,EL=`InstanceMarketOptionsRequest`,DL=`InstanceMetadataOptionsRequest`,OL=`InstanceMetadataOptionsResponse`,kL=`InstanceMarketOptions`,AL=`IncludeManagedResources`,jL=`InstanceMetadataTags`,ML=`Ipv6Native`,NL=`InstanceNetworkInterface`,PL=`InstanceNetworkInterfaceAssociation`,FL=`InstanceNetworkInterfaceAttachment`,IL=`InstanceNetworkInterfaceList`,LL=`InstanceNetworkInterfaceSpecification`,RL=`InstanceNetworkInterfaceSpecificationList`,zL=`Ipv6NetmaskLength`,BL=`Ipv4NetmaskLength`,VL=`InstanceNetworkPerformanceOptions`,HL=`InstanceNetworkPerformanceOptionsRequest`,UL=`ImageOwnerAlias`,WL=`IpOwnerId`,GL=`InstanceOwnerId`,KL=`InstanceOwningService`,qL=`Ipv6PrefixCount`,JL=`Ipv4PrefixCount`,YL=`IpPermissionsEgress`,XL=`IpamPoolId`,ZL=`InstancePrivateIpAddress`,QL=`InstancePrivateIpAddressList`,$L=`IsPrimaryIpv6`,eR=`IncludePublicKey`,tR=`IpPermissionList`,nR=`Ipv4PrefixList`,rR=`Ipv6PrefixList`,iR=`Ipv4PrefixSpecificationRequest`,aR=`Ipv6PrefixSpecificationRequest`,oR=`Ipv6Prefixes`,sR=`IpPermissions`,cR=`IpPermission`,lR=`IpProtocol`,uR=`Ipv6Prefix`,dR=`Ipv6Pool`,fR=`Ipv4Prefixes`,pR=`Ipv4Prefix`,mR=`IsPrimary`,hR=`IpRangeList`,gR=`Ipv6RangeList`,_R=`IpRanges`,vR=`IpRange`,yR=`Ipv6Ranges`,bR=`Ipv6Range`,xR=`InstanceStateChange`,SR=`InstanceStateChangeList`,CR=`InstanceSecondaryInterfaceAttachment`,wR=`InstanceSecondaryInterfaceList`,TR=`InstanceSecondaryInterfacePrivateIpAddress`,ER=`InstanceSecondaryInterfacePrivateIpAddressList`,DR=`InstanceSecondaryInterfacePrivateIpAddressListRequest`,OR=`InstanceSecondaryInterfacePrivateIpAddressRequest`,kR=`InstanceSecondaryInterfaceSpecificationListRequest`,AR=`InstanceSecondaryInterfaceSpecificationRequest`,jR=`InstanceSecondaryInterface`,MR=`InstanceStorageInfo`,NR=`InstanceStorageSupported`,PR=`ImdsSupport`,FR=`InstanceState`,IR=`IpSource`,LR=`Ipv6Supported`,RR=`InstanceType`,zR=`InstanceTypeInfoList`,BR=`InstanceTypeInfo`,VR=`ImageType`,HR=`InstanceTenancy`,UR=`InstanceTypes`,WR=`InterfaceType`,GR=`IncludeUnsupportedInRegion`,KR=`Images`,qR=`Image`,JR=`Instance`,YR=`Instances`,XR=`Iops`,ZR=`Key`,QR=`KeyFormat`,$R=`KeyFingerprint`,ez=`KernelId`,tz=`KmsKeyId`,nz=`KeyMaterial`,rz=`KeyName`,iz=`KeyNameStringList`,az=`KeyNames`,oz=`KeyPairs`,sz=`KeyPairId`,cz=`KeyPairIdStringList`,lz=`KeyPairIds`,uz=`KeyPairInfo`,dz=`KeyPairList`,fz=`KeyPair`,pz=`KeyType`,mz=`Kernel`,hz=`LicenseConfigurationArn`,gz=`LicenseConfigurationRequest`,_z=`LicenseConfiguration`,vz=`LambdaExclusion`,yz=`LogicalGpuCount`,bz=`LocalGatewayId`,xz=`LinkedGroupId`,Sz=`LicenseList`,Cz=`LastLaunchedTime`,wz=`LicenseSpecifications`,Tz=`LicenseSpecificationListRequest`,Ez=`LicenseSpecification`,Dz=`LaunchTemplate`,Oz=`LaunchTemplateId`,kz=`LaunchTemplateName`,Az=`LaunchTemplateSpecification`,jz=`LaunchTime`,Mz=`Latest`,Nz=`Lambda`,Pz=`Licenses`,Fz=`Location`,Iz=`MultiAttachEnabled`,Lz=`MediaAcceleratorInfo`,Rz=`MacAddress`,zz=`MaximumBandwidthInMbps`,Bz=`MapCustomerOwnedIpOnLaunch`,Vz=`MaxCount`,Hz=`MinCount`,Uz=`MediaDeviceInfo`,Wz=`MediaDeviceInfoList`,Gz=`MediaDeviceMemoryInfo`,Kz=`MaximumEbsAttachments`,qz=`MaximumEbsCards`,Jz=`MaximumEfaInterfaces`,Yz=`MaximumEnaQueueCount`,Xz=`MaximumEnaQueueCountPerInterface`,Zz=`MaximumIops`,Qz=`ModifyInstanceAttributeRequest`,$z=`ModifyInstanceAttributeValue`,eB=`ModifyInstanceAttribute`,tB=`MemoryInfo`,nB=`MaximumNetworkCards`,rB=`MaximumNetworkInterfaces`,iB=`MetadataOptions`,aB=`MaintenanceOptions`,oB=`MapPublicIpOnLaunch`,sB=`MaxPrice`,cB=`MaxResults`,lB=`ModifySubnetAttributeRequest`,uB=`ModifySubnetAttribute`,dB=`MaximumSecondaryNetworkInterfaces`,fB=`ModificationState`,pB=`MarketType`,mB=`MaximumThroughputInMBps`,hB=`ModifyVolumeRequest`,gB=`ModifyVolumeResult`,_B=`ModifyVolume`,vB=`Main`,yB=`Manufacturer`,bB=`Managed`,xB=`Message`,SB=`Messages`,CB=`Mode`,wB=`Monitoring`,TB=`Name`,EB=`NetworkBorderGroup`,DB=`NetworkCards`,OB=`NetworkCardIndex`,kB=`NetworkCardInfoList`,AB=`NetworkCardInfo`,jB=`NoDevice`,MB=`NeuronDeviceCoreInfo`,NB=`NeuronDeviceInfo`,PB=`NeuronDeviceInfoList`,FB=`NeuronDeviceMemoryInfo`,IB=`NeuronDevices`,LB=`NitroEnclavesSupport`,RB=`NatGateway`,zB=`NatGatewayAddresses`,BB=`NatGatewayAttachedAppliance`,VB=`NatGatewayAttachedApplianceList`,HB=`NatGatewayAddressList`,UB=`NatGatewayAddress`,WB=`NatGatewayExclusion`,GB=`NatGatewayId`,KB=`NatGatewayIdStringList`,qB=`NatGatewayIds`,JB=`NatGatewayList`,YB=`NatGateways`,XB=`NetworkInterfaceId`,ZB=`NetworkInterfaceOwnerId`,QB=`NetworkInterfaces`,$B=`NetworkInfo`,eV=`NeuronInfo`,tV=`NetworkPerformanceOptions`,nV=`NetworkPerformance`,rV=`NoReboot`,iV=`NvmeSupport`,aV=`NitroTpmInfo`,oV=`NitroTpmSupport`,sV=`NitroTpmSupportedVersionsList`,cV=`NextToken`,lV=`NestedVirtualization`,uV=`Origin`,dV=`OutpostArn`,fV=`OwnerAlias`,pV=`OwnerId`,mV=`OptInStatus`,hV=`OriginalIops`,gV=`OwnerIds`,_V=`OriginalMultiAttachEnabled`,vV=`OdbNetworkArn`,yV=`OperatorRequest`,bV=`OperatorResponse`,xV=`OwnerStringList`,SV=`OriginalSize`,CV=`OriginalThroughput`,wV=`OriginalVolumeType`,TV=`Operator`,EV=`Output`,DV=`Owners`,OV=`Owner`,kV=`Principal`,AV=`ProvisionedBandwidth`,jV=`PeakBandwidthInGbps`,MV=`ProductCodeId`,NV=`ProductCodeList`,PV=`ProductCodeType`,FV=`PartitionCount`,IV=`ProductCode`,LV=`ProductCodes`,RV=`PrivateDnsHostnameTypeOnLaunch`,zV=`PrivateDnsName`,BV=`PrivateDnsNameOptions`,VV=`PrivateDnsNameOptionsOnLaunch`,HV=`PrivateDnsNameOptionsRequest`,UV=`PrivateDnsNameOptionsResponse`,WV=`PublicDnsName`,GV=`PlatformDetails`,KV=`PlacementGroup`,qV=`PlacementGroupInfo`,JV=`PlacementGroupIdStringList`,YV=`PlacementGroupList`,XV=`PlacementGroupStrategyList`,ZV=`PlacementGroups`,QV=`PublicIp`,$V=`PrivateIpAddressCount`,eH=`PrivateIpAddressSpecification`,tH=`PrivateIpAddressSpecificationList`,nH=`PrivateIpAddress`,rH=`PrivateIpAddresses`,iH=`PublicIpAddress`,aH=`PublicIpv4Pool`,oH=`PublicIpStringList`,sH=`PrimaryIpv6`,cH=`PrivateIp`,lH=`ProcessorInfo`,uH=`PublicIps`,dH=`PublicKey`,fH=`PublicKeyMaterial`,pH=`PrefixListId`,mH=`PrefixListIdList`,hH=`PrefixListIds`,gH=`PartitionNumber`,_H=`PeeringStatus`,vH=`PhcSupport`,yH=`PreviousState`,bH=`ProvisionTime`,xH=`PresignedUrl`,SH=`PropagatingVgw`,CH=`PropagatingVgwList`,wH=`PropagatingVgws`,TH=`ParentZoneId`,EH=`ParentZoneName`,DH=`Platform`,OH=`Placement`,kH=`Primary`,AH=`Progress`,jH=`Provisioned`,MH=`Public`,NH=`Return`,PH=`ReleaseAddressRequest`,FH=`ReleaseAddress`,IH=`RestorableByUserIds`,LH=`RestorableBy`,RH=`RootDeviceName`,zH=`RootDeviceType`,BH=`RootDeviceTypeList`,VH=`RestoreExpiryTime`,HH=`ResourceExclusions`,UH=`RegionGeography`,WH=`ReferencedGroupId`,GH=`ReferencedGroupInfo`,KH=`RegionGeographyList`,qH=`RunInstancesMonitoringEnabled`,JH=`RebootInstancesRequest`,YH=`RunInstancesRequest`,XH=`RunInstancesUserData`,ZH=`RamdiskId`,QH=`ReservationId`,$H=`RebootInstances`,eU=`RequesterId`,tU=`RunInstances`,nU=`RegionList`,rU=`ReservationList`,iU=`RouteList`,aU=`RebootMigrationSupport`,oU=`RebootMigration`,sU=`RegionName`,cU=`RegionNameStringList`,lU=`RegionNames`,uU=`ReferencedSecurityGroup`,dU=`RevokeSecurityGroupEgress`,fU=`RevokeSecurityGroupEgressRequest`,pU=`RevokeSecurityGroupEgressResult`,mU=`RevokeSecurityGroupIngressRequest`,hU=`RevokeSecurityGroupIngressResult`,gU=`RevokeSecurityGroupIngress`,_U=`RevokedSecurityGroupRule`,vU=`RevokedSecurityGroupRuleList`,yU=`RevokedSecurityGroupRules`,bU=`RouteTableAssociation`,xU=`RouteTableAssociationId`,SU=`RouteTableAssociationList`,CU=`RouteTableAssociationState`,wU=`RouteTableId`,TU=`RouteTableIdStringList`,EU=`RouteTableIds`,DU=`RouteTableList`,OU=`ResourceType`,kU=`RequestTime`,AU=`RouteTable`,jU=`RouteTables`,MU=`Ramdisk`,NU=`Regions`,PU=`Region`,FU=`Requested`,IU=`Reservations`,LU=`Reservation`,RU=`Route`,zU=`Routes`,BU=`SecondaryAllocationIds`,VU=`SecondaryAllocationId`,HU=`SupportedAdditionalProcessorFeatureList`,UU=`SubnetArn`,WU=`SupportedArchitectures`,GU=`SupportedBootModes`,KU=`SubnetCidrBlockState`,qU=`SustainedClockSpeedInGhz`,JU=`SourceDestCheck`,YU=`SpreadDomain`,XU=`SupportedFeatures`,ZU=`SubGeography`,QU=`SecurityGroupArn`,$U=`SecurityGroupId`,eW=`SecurityGroupIdStringList`,tW=`SecurityGroupIds`,nW=`SecurityGroupList`,rW=`SecurityGroupRules`,iW=`SecurityGroupRuleArn`,aW=`SecurityGroupRuleIds`,oW=`SecurityGroupRuleIdList`,sW=`SecurityGroupRuleId`,cW=`SecurityGroupRuleList`,lW=`SecurityGroupRule`,uW=`SecurityGroupStringList`,dW=`SecurityGroups`,fW=`SecurityGroup`,pW=`SubnetIds`,mW=`SubnetIpv6CidrBlockAssociation`,hW=`SubnetIpv6CidrBlockAssociationSet`,gW=`SizeInGB`,_W=`SourceImageId`,vW=`SecondaryInterfaceId`,yW=`SourceInstanceId`,bW=`SizeInMiB`,xW=`SpotInstanceRequestId`,SW=`SourceImageRegion`,CW=`StartInstancesRequest`,wW=`StartInstancesResult`,TW=`StopInstancesRequest`,EW=`StopInstancesResult`,DW=`SupportedInRegion`,OW=`SnapshotIdStringList`,kW=`SubnetIdStringList`,AW=`SpotInstanceType`,jW=`SecondaryInterfaces`,MW=`SecondaryInterface`,NW=`SnapshotId`,PW=`SnapshotIds`,FW=`StartingInstances`,IW=`StartInstances`,LW=`StoppingInstances`,RW=`StopInstances`,zW=`SubnetId`,BW=`SnapshotLocation`,VW=`SnapshotList`,HW=`SpreadLevel`,UW=`SubnetList`,WW=`ServiceManaged`,GW=`SpotMarketOptions`,KW=`StatusMessage`,qW=`StateMessage`,JW=`SecondaryNetworkId`,YW=`SriovNetSupport`,XW=`SecondaryNetworkSupported`,ZW=`SpotOptions`,QW=`SkipOsShutdown`,$W=`SecondaryPrivateIpAddresses`,eG=`SecondaryPrivateIpAddressCount`,tG=`SecondaryPrivateIpAddress`,nG=`SupportedRootDeviceTypes`,rG=`SourceRegion`,iG=`StateReason`,aG=`SourceSecurityGroupName`,oG=`SourceSecurityGroupOwnerId`,sG=`SourceSnapshotId`,cG=`SecondarySubnetId`,lG=`SupportedStrategies`,uG=`StartTime`,dG=`StateTransitionReason`,fG=`SseType`,pG=`StorageTier`,mG=`SupportedUsageClasses`,hG=`SensitiveUserData`,gG=`SourceVolumeId`,_G=`SupportedVirtualizationTypes`,vG=`SupportedVersions`,yG=`Size`,bG=`Snapshots`,xG=`Snapshot`,SG=`State`,CG=`Status`,wG=`Strategy`,TG=`Subnet`,EG=`Subnets`,DG=`Tags`,OG=`TcpEstablishedTimeout`,kG=`TotalFpgaMemoryInMiB`,AG=`TransitGatewayId`,jG=`TotalGpuMemoryInMiB`,MG=`TerminateInstances`,NG=`TotalInferenceMemoryInMiB`,PG=`TerminateInstancesRequest`,FG=`TerminateInstancesResult`,IG=`TargetIops`,LG=`TerminatingInstances`,RG=`TagList`,zG=`TargetMultiAttachEnabled`,BG=`TotalMediaMemoryInMiB`,VG=`TotalNeuronDeviceMemoryInMiB`,HG=`ToPort`,UG=`ThreadsPerCore`,WG=`ThreadsPerCoreList`,GG=`TagSpecifications`,KG=`TotalSizeInGB`,qG=`TagSpecificationList`,JG=`TagSpecification`,YG=`TargetSize`,XG=`TpmSupport`,ZG=`TargetThroughput`,QG=`TransferType`,$G=`TargetVolumeType`,eK=`Tag`,tK=`Tenancy`,nK=`Throughput`,rK=`Timestamp`,iK=`Type`,aK=`UsageClassTypeList`,oK=`UserData`,sK=`UserId`,cK=`UserIdGroupPairs`,lK=`UserIdGroupPairList`,uK=`UserIdGroupPair`,dK=`UnknownIpPermissions`,fK=`UsageOperation`,pK=`UsageOperationUpdateTime`,mK=`UdpStreamTimeout`,hK=`UdpTimeout`,gK=`Value`,_K=`VolumeAttachmentList`,vK=`VolumeAttachment`,yK=`VpcCidrBlockAssociation`,bK=`VpcCidrBlockAssociationSet`,xK=`VpcCidrBlockState`,SK=`VCpuInfo`,CK=`ValidCores`,wK=`VpcEncryptionControl`,TK=`VpcEncryptionControlConfiguration`,EK=`VpcEncryptionControlExclusion`,DK=`VpcEncryptionControlExclusions`,OK=`VpcEncryptionControlId`,kK=`VpcEndpointId`,AK=`VpcId`,jK=`VpcIpv6CidrBlockAssociation`,MK=`VpcIpv6CidrBlockAssociationSet`,NK=`VolumeInitializationRate`,PK=`VolumeIdStringList`,FK=`VpcIdStringList`,IK=`VolumeId`,LK=`VolumeIds`,RK=`VpcIds`,zK=`VpcLattice`,BK=`VpcLatticeExclusion`,VK=`VolumeList`,HK=`VpcList`,UK=`VolumeModification`,WK=`VirtualName`,GK=`VolumeOwnerId`,KK=`VpcPeeringConnectionId`,qK=`VpcPeeringExclusion`,JK=`VirtualPrivateGateway`,YK=`VirtualPrivateGatewayExclusion`,XK=`VpcPeering`,ZK=`ValueStringList`,QK=`VolumeSize`,$K=`VolumeType`,eq=`VirtualizationTypeList`,tq=`ValidThreadsPerCore`,nq=`VirtualizationType`,rq=`ValidUntil`,iq=`Values`,aq=`Version`,oq=`Volumes`,sq=`Volume`,cq=`Vpc`,lq=`Vpcs`,uq=`WorkloadsList`,dq=`Workloads`,fq=`ZoneId`,pq=`ZoneIdStringList`,mq=`ZoneIds`,hq=`ZoneName`,gq=`ZoneNameStringList`,_q=`ZoneNames`,vq=`ZoneType`,yq=`attachedApplianceSet`,bq=`applianceArn`,xq=`additionalFlexibleNetworkInterfaces`,Sq=`allocationId`,Cq=`availableIpAddressCount`,wq=`assignIpv6AddressOnCreation`,Tq=`additionalInfo`,Eq=`associationId`,Dq=`attachmentId`,Oq=`amiLaunchIndex`,kq=`attachmentLimitType`,Aq=`availabilityMode`,jq=`associatePublicIpAddress`,Mq=`amazonProvidedIpv6CidrBlock`,Nq=`autoProvisionZones`,Pq=`autoRecoverySupported`,Fq=`allowReassociation`,Iq=`associatedResource`,Lq=`autoRecovery`,Rq=`associationState`,zq=`autoScalingIps`,Bq=`amdSevSnp`,Vq=`addressesSet`,Hq=`associationSet`,Uq=`attachmentSet`,Wq=`attachmentState`,Gq=`attachTime`,Kq=`availabilityZone`,qq=`availabilityZoneId`,Jq=`availabilityZoneInfo`,Yq=`accelerators`,Xq=`affinity`,Zq=`arn`,Qq=`architecture`,$q=`association`,eJ=`attachment`,tJ=`attribute`,nJ=`baselineBandwidthInGbps`,rJ=`baselineBandwidthInMbps`,iJ=`blockDeviceMapping`,aJ=`baselineIops`,oJ=`bootMode`,sJ=`bareMetal`,cJ=`blockPublicAccessStates`,lJ=`burstablePerformanceSupported`,uJ=`baselineThroughputInMBps`,dJ=`bandwidthWeighting`,fJ=`bandwidthWeightings`,pJ=`cidrBlock`,mJ=`cidrBlockAssociationSet`,hJ=`capacityBlockId`,gJ=`cidrBlockState`,_J=`coreCount`,vJ=`completionDurationMinutes`,yJ=`creationDate`,bJ=`carrierGatewayId`,xJ=`currentGeneration`,SJ=`carrierIp`,CJ=`currentInstanceBootMode`,wJ=`cidrIp`,TJ=`cidrIpv6`,EJ=`cidrIpv4`,DJ=`coreInfo`,OJ=`coreNetworkArn`,kJ=`cpuOptions`,AJ=`customerOwnedIp`,jJ=`customerOwnedIpv4Pool`,MJ=`capacityReservationId`,NJ=`capacityReservationPreference`,PJ=`capacityReservationResourceGroupArn`,FJ=`capacityReservationSpecification`,IJ=`capacityReservationTarget`,LJ=`currentState`,RJ=`clientToken`,zJ=`connectionTrackingConfiguration`,BJ=`completionTime`,VJ=`connectivityType`,HJ=`createTime`,UJ=`code`,WJ=`configured`,GJ=`count`,KJ=`disableApiTermination`,qJ=`destinationCidrBlock`,JJ=`defaultCores`,YJ=`dataEncryptionKeyId`,XJ=`defaultEnaQueueCountPerInterface`,ZJ=`defaultForAz`,QJ=`dedicatedHostsSupported`,$J=`deviceIndex`,eY=`destinationIpv6CidrBlock`,tY=`deviceName`,nY=`defaultNetworkCardIndex`,rY=`dnsName`,iY=`dhcpOptionsId`,aY=`deleteOnTermination`,oY=`destinationPrefixListId`,sY=`deregistrationProtection`,cY=`dryRun`,lY=`destinationRegion`,uY=`defaultTcpEstablishedTimeout`,dY=`defaultThreadsPerCore`,fY=`deprecationTime`,pY=`deleteTime`,mY=`defaultUdpStreamTimeout`,hY=`defaultUdpTimeout`,gY=`defaultVCpus`,_Y=`description`,vY=`device`,yY=`disks`,bY=`domain`,xY=`ebsCardIndex`,SY=`ebsCardSet`,CY=`encryptionControl`,wY=`enableDns64`,TY=`elasticFileSystem`,EY=`elasticGpuAssociationId`,DY=`elasticGpuAssociationState`,OY=`elasticGpuAssociationSet`,kY=`elasticGpuAssociationTime`,AY=`elasticGpuId`,jY=`elasticInferenceAcceleratorArn`,MY=`elasticInferenceAcceleratorAssociationId`,NY=`elasticInferenceAcceleratorAssociationState`,PY=`elasticInferenceAcceleratorAssociationSet`,FY=`elasticInferenceAcceleratorAssociationTime`,IY=`encryptionInTransitSupported`,LY=`ebsInfo`,RY=`efaInfo`,zY=`enableLniAtDeviceIndex`,BY=`ebsOptimized`,VY=`ebsOptimizedInfo`,HY=`egressOnlyInternetGateway`,UY=`egressOnlyInternetGatewayId`,WY=`ebsOptimizedSupport`,GY=`enclaveOptions`,KY=`enaQueueCount`,W=`ec2QueryName`,qY=`enableResourceNameDnsAAAARecord`,JY=`enableResourceNameDnsARecord`,YY=`enaSrdEnabled`,XY=`enaSrdSpecification`,ZY=`enaSrdSupported`,QY=`enaSrdUdpEnabled`,$Y=`enaSrdUdpSpecification`,eX=`efaSupported`,tX=`encryptionSupport`,nX=`enaSupport`,rX=`endTime`,iX=`ebs`,aX=`enabled`,oX=`encrypted`,sX=`failureCode`,cX=`flexibleEnaQueuesSupport`,lX=`fpgaInfo`,uX=`failureMessage`,dX=`fromPort`,fX=`fastRestored`,pX=`fullSnapshotSizeInBytes`,mX=`freeTierEligible`,Xpe=`force`,Zpe=`fpgas`,Qpe=`groupArn`,$pe=`groupDescription`,hX=`gatewayId`,eme=`gpuInfo`,gX=`groupId`,tme=`groupLongName`,_X=`groupName`,nme=`groupOwnerId`,rme=`gpuPartitionSize`,vX=`geographySet`,yX=`groupSet`,ime=`gpus`,ame=`groups`,bX=`hypervisor`,ome=`hiddenByDefault`,sme=`httpEndpoint`,cme=`hostId`,lme=`hibernationOptions`,ume=`httpProtocolIpv6`,dme=`httpPutResponseHopLimit`,fme=`hostResourceGroupArn`,pme=`hibernationSupported`,mme=`httpTokens`,xX=`hostnameType`,hme=`id`,SX=`ipv6AddressAttribute`,gme=`ipv6AddressCount`,_me=`inferenceAcceleratorInfo`,vme=`ipv4AddressesPerInterface`,yme=`ipv6AddressesPerInterface`,bme=`ipv4AddressesPerSecondaryInterface`,CX=`ipv6AddressesSet`,xme=`imageAllowed`,wX=`ipAddress`,TX=`ipv6Address`,EX=`ipv6CidrBlock`,DX=`ipv6CidrBlockAssociationSet`,OX=`ipv6CidrBlockState`,Sme=`isDefault`,kX=`isEgress`,AX=`internetGateway`,Cme=`internetGatewayBlockMode`,jX=`internetGatewayId`,wme=`internetGatewaySet`,MX=`instanceId`,NX=`iamInstanceProfile`,PX=`iamInstanceProfileAssociation`,Tme=`iamInstanceProfileAssociationSet`,FX=`instanceInitiatedShutdownBehavior`,IX=`imageId`,Eme=`imageLocation`,Dme=`instanceLifecycle`,Ome=`instanceMetadataTags`,kme=`ipv6Native`,Ame=`imageOwnerAlias`,jme=`imageOwnerId`,Mme=`instanceOwnerId`,Nme=`ipOwnerId`,Pme=`instanceOwningService`,Fme=`ipPermissionsEgress`,Ime=`isPrimaryIpv6`,Lme=`ipv4PrefixSet`,Rme=`ipv6PrefixSet`,LX=`ipProtocol`,RX=`ipPermissions`,zme=`ipv4Prefix`,Bme=`ipv6Pool`,Vme=`ipv6Prefix`,Hme=`isPublic`,Ume=`isPrimary`,Wme=`ipRanges`,Gme=`ipv6Ranges`,Kme=`instanceStorageInfo`,qme=`instanceStorageSupported`,Jme=`imagesSet`,Yme=`imageState`,Xme=`imdsSupport`,zX=`instancesSet`,Zme=`instanceState`,BX=`ipSource`,Qme=`ipv6Supported`,VX=`instanceType`,$me=`instanceTypeSet`,ehe=`idempotencyToken`,the=`imageType`,HX=`instanceTenancy`,UX=`interfaceType`,WX=`iops`,G=`item`,nhe=`key`,GX=`keyFingerprint`,KX=`kernelId`,qX=`kmsKeyId`,rhe=`keyMaterial`,JX=`keyName`,YX=`keyPairId`,ihe=`keySet`,ahe=`keyType`,ohe=`kernel`,she=`licenseConfigurationArn`,che=`logicalGpuCount`,lhe=`localGatewayId`,uhe=`linkedGroupId`,dhe=`lastLaunchedTime`,fhe=`licenseSet`,phe=`launchTime`,mhe=`lambda`,hhe=`multiAttachEnabled`,ghe=`mediaAcceleratorInfo`,XX=`macAddress`,ZX=`maximumBandwidthInMbps`,_he=`mapCustomerOwnedIpOnLaunch`,vhe=`maximumEbsAttachments`,yhe=`maximumEbsCards`,bhe=`maximumEfaInterfaces`,xhe=`maximumEnaQueueCount`,She=`maximumEnaQueueCountPerInterface`,QX=`maximumIops`,$X=`memoryInfo`,Che=`maximumNetworkCards`,eZ=`maximumNetworkInterfaces`,whe=`metadataOptions`,The=`maintenanceOptions`,Ehe=`mapPublicIpOnLaunch`,tZ=`maxResults`,Dhe=`messageSet`,Ohe=`maximumSecondaryNetworkInterfaces`,nZ=`modificationState`,rZ=`maximumThroughputInMBps`,khe=`main`,iZ=`manufacturer`,Ahe=`managed`,aZ=`message`,jhe=`monitoring`,Mhe=`mode`,oZ=`name`,sZ=`networkBorderGroup`,Nhe=`networkCards`,cZ=`networkCardIndex`,lZ=`noDevice`,Phe=`neuronDevices`,Fhe=`nitroEnclavesSupport`,uZ=`natGateway`,Ihe=`natGatewayAddressSet`,dZ=`natGatewayId`,Lhe=`natGatewaySet`,fZ=`networkInterfaceId`,Rhe=`networkInterfaceOwnerId`,zhe=`networkInterfaceSet`,Bhe=`networkInterface`,Vhe=`networkInfo`,Hhe=`neuronInfo`,Uhe=`networkPerformanceOptions`,pZ=`networkPerformance`,Whe=`noReboot`,mZ=`nvmeSupport`,Ghe=`nitroTpmInfo`,Khe=`nitroTpmSupport`,hZ=`nextToken`,qhe=`nestedVirtualization`,Jhe=`origin`,gZ=`outpostArn`,Yhe=`ownerAlias`,_Z=`ownerId`,vZ=`optInStatus`,Xhe=`originalIops`,Zhe=`originalMultiAttachEnabled`,Qhe=`odbNetworkArn`,$he=`originalSize`,ege=`originalThroughput`,tge=`originalVolumeType`,yZ=`operator`,nge=`output`,rge=`principal`,ige=`provisionedBandwidth`,age=`peakBandwidthInGbps`,bZ=`productCodes`,oge=`partitionCount`,sge=`productCode`,cge=`privateDnsNameOptions`,lge=`privateDnsNameOptionsOnLaunch`,xZ=`privateDnsName`,uge=`publicDnsName`,SZ=`platformDetails`,dge=`placementGroup`,fge=`placementGroupInfo`,pge=`placementGroupSet`,CZ=`publicIp`,wZ=`privateIpAddressesSet`,mge=`privateIpAddressSet`,TZ=`privateIpAddress`,EZ=`publicIpv4Pool`,hge=`processorInfo`,gge=`privateIp`,_ge=`publicKey`,vge=`publicKeyMaterial`,DZ=`prefixListId`,yge=`prefixListIds`,bge=`partitionNumber`,OZ=`peeringStatus`,xge=`phcSupport`,Sge=`previousState`,Cge=`provisionTime`,wge=`presignedUrl`,Tge=`propagatingVgwSet`,Ege=`parentZoneId`,Dge=`parentZoneName`,kZ=`platform`,Oge=`placement`,AZ=`primary`,jZ=`progress`,kge=`provisioned`,MZ=`return`,NZ=`rootDeviceName`,PZ=`rootDeviceType`,Age=`restoreExpiryTime`,jge=`regionEndpoint`,Mge=`resourceExclusions`,Nge=`referencedGroupId`,Pge=`referencedGroupInfo`,Fge=`reservationId`,FZ=`ramdiskId`,Ige=`regionInfo`,Lge=`requesterId`,Rge=`rebootMigrationSupport`,zge=`rebootMigration`,IZ=`regionName`,LZ=`revokedSecurityGroupRuleSet`,Bge=`reservationSet`,Vge=`routeSet`,Hge=`routeTableAssociationId`,RZ=`routeTableId`,Uge=`routeTableSet`,Wge=`resourceType`,Gge=`requestTime`,Kge=`routeTable`,qge=`ramdisk`,Jge=`reason`,Yge=`requested`,zZ=`smithy.ts.sdk.synthetic.com.amazonaws.ec2`,Xge=`supportedArchitectures`,Zge=`subnetArn`,Qge=`supportedBootModes`,$ge=`sustainedClockSpeedInGhz`,BZ=`sourceDestCheck`,e_e=`spreadDomain`,t_e=`supportedFeatures`,VZ=`securityGroupArn`,n_e=`securityGroupInfo`,r_e=`securityGroupRuleArn`,HZ=`securityGroupRuleId`,UZ=`securityGroupRuleSet`,i_e=`subGeographySet`,a_e=`sizeInGB`,o_e=`sourceInstanceId`,s_e=`secondaryInterfaceId`,c_e=`sourceImageId`,WZ=`sizeInMiB`,l_e=`sourceImageRegion`,u_e=`spotInstanceRequestId`,d_e=`supportedInRegion`,f_e=`secondaryInterfaceSet`,GZ=`snapshotId`,KZ=`subnetId`,p_e=`spreadLevel`,m_e=`serviceManaged`,qZ=`statusMessage`,JZ=`stateMessage`,h_e=`secondaryNetworkId`,g_e=`secondaryNetworkSupported`,YZ=`sriovNetSupport`,__e=`secondaryPrivateIpAddressCount`,v_e=`supportedRootDeviceTypes`,XZ=`stateReason`,ZZ=`sourceSecurityGroupName`,QZ=`sourceSecurityGroupOwnerId`,y_e=`secondarySubnetId`,b_e=`snapshotSet`,x_e=`subnetSet`,S_e=`supportedStrategies`,$Z=`startTime`,eQ=`sseType`,C_e=`storageTier`,w_e=`supportedUsageClasses`,T_e=`sourceVolumeId`,E_e=`supportedVirtualizationTypes`,D_e=`supportedVersions`,O_e=`size`,tQ=`state`,nQ=`status`,rQ=`strategy`,k_e=`subnet`,A_e=`tenancy`,j_e=`tcpEstablishedTimeout`,M_e=`totalFpgaMemoryInMiB`,N_e=`transitGatewayId`,P_e=`totalGpuMemoryInMiB`,F_e=`totalInferenceMemoryInMiB`,I_e=`targetIops`,L_e=`targetMultiAttachEnabled`,R_e=`totalMediaMemoryInMiB`,z_e=`totalNeuronDeviceMemoryInMiB`,iQ=`toPort`,B_e=`threadsPerCore`,aQ=`tagSet`,V_e=`totalSizeInGB`,H_e=`targetSize`,oQ=`tpmSupport`,U_e=`targetThroughput`,W_e=`transferType`,G_e=`targetVolumeType`,sQ=`throughput`,cQ=`timestamp`,lQ=`type`,K_e=`userData`,uQ=`userId`,dQ=`unknownIpPermissionSet`,fQ=`usageOperation`,q_e=`usageOperationUpdateTime`,J_e=`udpStreamTimeout`,Y_e=`udpTimeout`,pQ=`value`,X_e=`vCpuInfo`,Z_e=`validCores`,Q_e=`vpcEncryptionControlId`,$_e=`vpcEndpointId`,mQ=`vpcId`,eve=`volumeInitializationRate`,hQ=`volumeId`,tve=`vpcLattice`,nve=`volumeModification`,gQ=`virtualName`,rve=`volumeOwnerId`,_Q=`vpcPeeringConnectionId`,ive=`virtualPrivateGateway`,ave=`vpcPeering`,ove=`volumeSet`,vQ=`volumeSize`,sve=`vpcSet`,yQ=`volumeType`,cve=`validThreadsPerCore`,bQ=`virtualizationType`,lve=`version`,uve=`vpc`,dve=`workloadSet`,K=`xmlName`,fve=`zoneId`,pve=`zoneName`,mve=`zoneState`,hve=`zoneType`,q=`com.amazonaws.ec2`,xQ=tO.for(zZ),gve=[-3,zZ,`EC2ServiceException`,0,[],[]];xQ.registerError(gve,Zde);var _ve=[xQ],vve=[0,q,qpe,8,0],yve=[0,q,$z,8,0],bve=[0,q,XH,8,0],xve=[0,q,hG,8,0],Sve=[3,q,wA,0,[DA,kA,eP,XB,ZB,nH,DG,aH,EB,dj,fj,aj,zW,WW,YI,QV],[[0,{[W]:`AllocationId`,[K]:Sq}],[0,{[W]:`AssociationId`,[K]:Eq}],[0,{[W]:`Domain`,[K]:bY}],[0,{[W]:`NetworkInterfaceId`,[K]:fZ}],[0,{[W]:`NetworkInterfaceOwnerId`,[K]:Rhe}],[0,{[W]:`PrivateIpAddress`,[K]:TZ}],[()=>u$,{[W]:`TagSet`,[K]:aQ}],[0,{[W]:`PublicIpv4Pool`,[K]:EZ}],[0,{[W]:`NetworkBorderGroup`,[K]:sZ}],[0,{[W]:`CustomerOwnedIp`,[K]:AJ}],[0,{[W]:`CustomerOwnedIpv4Pool`,[K]:jJ}],[0,{[W]:`CarrierIp`,[K]:SJ}],[0,{[W]:`SubnetId`,[K]:KZ}],[0,{[W]:`ServiceManaged`,[K]:m_e}],[0,{[W]:`InstanceId`,[K]:MX}],[0,{[W]:`PublicIp`,[K]:CZ}]]],Cve=[3,q,Qde,0,[eP,wA,aH,EB,fj,GG,XL,U],[0,0,0,0,0,[()=>d$,{[K]:JG}],0,[2,{[W]:`DryRun`,[K]:cY}]]],wve=[3,q,$de,0,[DA,aH,EB,eP,dj,fj,aj,QV],[[0,{[W]:`AllocationId`,[K]:Sq}],[0,{[W]:`PublicIpv4Pool`,[K]:EZ}],[0,{[W]:`NetworkBorderGroup`,[K]:sZ}],[0,{[W]:`Domain`,[K]:bY}],[0,{[W]:`CustomerOwnedIp`,[K]:AJ}],[0,{[W]:`CustomerOwnedIpv4Pool`,[K]:jJ}],[0,{[W]:`CarrierIp`,[K]:SJ}],[0,{[W]:`PublicIp`,[K]:CZ}]]],Tve=[3,q,efe,0,[DA,YI,QV,U,XB,nH,kfe],[0,0,0,[2,{[W]:`DryRun`,[K]:cY}],[0,{[W]:`NetworkInterfaceId`,[K]:fZ}],[0,{[W]:`PrivateIpAddress`,[K]:TZ}],[2,{[W]:`AllowReassociation`,[K]:Fq}]]],Eve=[3,q,tfe,0,[kA],[[0,{[W]:`AssociationId`,[K]:Eq}]]],Dve=[3,q,mfe,0,[$I,YI],[[()=>OQ,0],0],2],Ove=[3,q,hfe,0,[eL],[[()=>DQ,{[W]:`IamInstanceProfileAssociation`,[K]:PX}]]],kve=[3,q,Efe,0,[wU,LF,aH,U,zW],[[0,{[W]:`RouteTableId`,[K]:RZ}],0,0,[2,{[W]:`DryRun`,[K]:cY}],[0,{[W]:`SubnetId`,[K]:KZ}]],1],Ave=[3,q,Dfe,0,[kA,PA],[[0,{[W]:`AssociationId`,[K]:Eq}],[()=>zQ,{[W]:`AssociationState`,[K]:Rq}]]],jve=[3,q,ffe,0,[WI,AK,U],[[0,{[W]:`InternetGatewayId`,[K]:jX}],[0,{[W]:`VpcId`,[K]:mQ}],[2,{[W]:`DryRun`,[K]:cY}]],2],Mve=[3,q,Bfe,0,[QN,YI,IK,iP,U],[0,0,0,1,[2,{[W]:`DryRun`,[K]:cY}]],3],SQ=[3,q,sfe,0,[gK],[[2,{[W]:`Value`,[K]:pQ}]]],CQ=[3,q,Vfe,0,[gK],[[0,{[W]:`Value`,[K]:pQ}]]],Nve=[3,q,Mfe,0,[VF,GG,U,aG,oG,lR,xF,HG,oj,sR],[[0,{[W]:`GroupId`,[K]:gX}],[()=>d$,{[K]:JG}],[2,{[W]:`DryRun`,[K]:cY}],[0,{[W]:`SourceSecurityGroupName`,[K]:ZZ}],[0,{[W]:`SourceSecurityGroupOwnerId`,[K]:QZ}],[0,{[W]:`IpProtocol`,[K]:LX}],[1,{[W]:`FromPort`,[K]:dX}],[1,{[W]:`ToPort`,[K]:iQ}],[0,{[W]:`CidrIp`,[K]:wJ}],[()=>r$,{[W]:`IpPermissions`,[K]:RX}]],1],Pve=[3,q,Nfe,0,[NH,rW],[[2,{[W]:`Return`,[K]:MZ}],[()=>l$,{[W]:`SecurityGroupRuleSet`,[K]:UZ}]]],Fve=[3,q,Pfe,0,[oj,xF,VF,GF,sR,lR,aG,oG,HG,GG,U],[0,1,0,0,[()=>r$,0],0,0,0,1,[()=>d$,{[K]:JG}],[2,{[W]:`DryRun`,[K]:cY}]]],Ive=[3,q,Ffe,0,[NH,rW],[[2,{[W]:`Return`,[K]:MZ}],[()=>l$,{[W]:`SecurityGroupRuleSet`,[K]:UZ}]]],Lve=[3,q,LA,0,[mV,SB,sU,hq,fq,GF,EB,vq,EH,TH,WF,XF,ZU,SG],[[0,{[W]:`OptInStatus`,[K]:vZ}],[()=>tCe,{[W]:`MessageSet`,[K]:Dhe}],[0,{[W]:`RegionName`,[K]:IZ}],[0,{[W]:`ZoneName`,[K]:pve}],[0,{[W]:`ZoneId`,[K]:fve}],[0,{[W]:`GroupName`,[K]:_X}],[0,{[W]:`NetworkBorderGroup`,[K]:sZ}],[0,{[W]:`ZoneType`,[K]:hve}],[0,{[W]:`ParentZoneName`,[K]:Dge}],[0,{[W]:`ParentZoneId`,[K]:Ege}],[0,{[W]:`GroupLongName`,[K]:tme}],[()=>$Se,{[W]:`GeographySet`,[K]:vX}],[()=>nCe,{[W]:`SubGeographySet`,[K]:i_e}],[0,{[W]:`ZoneState`,[K]:mve}]]],Rve=[3,q,RA,0,[LA,BA,OA],[0,0,[()=>YQ,{[K]:DA}]]],zve=[3,q,Ufe,0,[TB],[[0,{[W]:`Name`,[K]:oZ}]]],Bve=[3,q,Kfe,0,[xB],[[0,{[W]:`Message`,[K]:aZ}]]],Vve=[3,q,Jfe,0,[TB],[[0,{[W]:`Name`,[K]:oZ}]]],Hve=[3,q,tpe,0,[gK],[[21,{[W]:`Value`,[K]:pQ}]]],wQ=[3,q,JA,0,[cF,jB,zM,WK],[[()=>Cbe,{[W]:`Ebs`,[K]:iX}],[0,{[W]:`NoDevice`,[K]:lZ}],[0,{[W]:`DeviceName`,[K]:tY}],[0,{[W]:`VirtualName`,[K]:gQ}]]],TQ=[3,q,QA,0,[HI],[[0,{[W]:`InternetGatewayBlockMode`,[K]:Cme}]]],Uve=[3,q,gj,0,[mj,_j],[0,()=>Gve]],Wve=[3,q,Lpe,0,[mj,_j],[[0,{[W]:`CapacityReservationPreference`,[K]:NJ}],[()=>Kve,{[W]:`CapacityReservationTarget`,[K]:IJ}]]],Gve=[3,q,_j,0,[pj,hj],[0,0]],Kve=[3,q,Rpe,0,[pj,hj],[[0,{[W]:`CapacityReservationId`,[K]:MJ}],[0,{[W]:`CapacityReservationResourceGroupArn`,[K]:PJ}]]],qve=[3,q,kj,0,[OG,mK,hK],[1,1,1]],Jve=[3,q,Aj,0,[OG,mK,hK],[[1,{[W]:`TcpEstablishedTimeout`,[K]:j_e}],[1,{[W]:`UdpStreamTimeout`,[K]:J_e}],[1,{[W]:`UdpTimeout`,[K]:Y_e}]]],Yve=[3,q,Kpe,0,[rG,sG,ZN,qM,pN,uF,tz,xH,GG,rj,qj,U],[0,0,0,0,[0,{[W]:`DestinationRegion`,[K]:lY}],[2,{[W]:`Encrypted`,[K]:oX}],[0,{[W]:`KmsKeyId`,[K]:qX}],[()=>vve,{[W]:`PresignedUrl`,[K]:wge}],[()=>d$,{[K]:JG}],1,0,[2,{[W]:`DryRun`,[K]:cY}]],2],Xve=[3,q,Jpe,0,[DG,NW],[[()=>u$,{[W]:`TagSet`,[K]:aQ}],[0,{[W]:`SnapshotId`,[K]:GZ}]]],Zve=[3,q,uj,0,[nj,UG,FA,lV],[[1,{[W]:`CoreCount`,[K]:_J}],[1,{[W]:`ThreadsPerCore`,[K]:B_e}],[0,{[W]:`AmdSevSnp`,[K]:Bq}],[0,{[W]:`NestedVirtualization`,[K]:qhe}]]],Qve=[3,q,jpe,0,[nj,UG,FA,lV],[1,1,0,0]],$ve=[3,q,Spe,0,[YI,TB,GG,BW,U,ZN,rV,YA],[[0,{[W]:`InstanceId`,[K]:MX}],[0,{[W]:`Name`,[K]:oZ}],[()=>d$,{[K]:JG}],0,[2,{[W]:`DryRun`,[K]:cY}],[0,{[W]:`Description`,[K]:_Y}],[2,{[W]:`NoReboot`,[K]:Whe}],[()=>XQ,{[W]:`BlockDeviceMapping`,[K]:iJ}]],2],eye=[3,q,Cpe,0,[pL],[[0,{[W]:`ImageId`,[K]:IX}]]],tye=[3,q,bpe,0,[GG,U],[[()=>d$,{[K]:JG}],[2,{[W]:`DryRun`,[K]:cY}]]],nye=[3,q,xpe,0,[zI],[[()=>jQ,{[W]:`InternetGateway`,[K]:AX}]]],rye=[3,q,Dpe,0,[rz,pz,GG,QR,U],[0,0,[()=>d$,{[K]:JG}],0,[2,{[W]:`DryRun`,[K]:cY}]],1],iye=[3,q,kpe,0,[jA,DA,Ej,U,zW,AK,zA,GG,Mj,nH,BU,$W,eG],[0,0,[0,4],2,0,0,[()=>QSe,{[K]:RA}],[()=>d$,{[K]:JG}],0,0,[()=>YQ,{[K]:VU}],[()=>LCe,{[K]:tG}],1]],aye=[3,q,Ape,0,[Ej,RB],[[0,{[W]:`ClientToken`,[K]:RJ}],[()=>MQ,{[W]:`NatGateway`,[K]:uZ}]]],oye=[3,q,Npe,0,[FV,GG,HW,xz,TV,U,GF,wG],[1,[()=>d$,{[K]:JG}],0,0,()=>NQ,[2,{[W]:`DryRun`,[K]:cY}],[0,{[W]:`GroupName`,[K]:_X}],[0,{[W]:`Strategy`,[K]:rQ}]]],sye=[3,q,Ppe,0,[KV],[[()=>IQ,{[W]:`PlacementGroup`,[K]:dge}]]],cye=[3,q,Fpe,0,[wU,tN,kK,AG,bz,ij,lj,vV,U,$j,LF,sM,BP,YI,XB,KK,GB],[[0,{[W]:`RouteTableId`,[K]:RZ}],0,0,0,0,0,0,0,[2,{[W]:`DryRun`,[K]:cY}],[0,{[W]:`DestinationCidrBlock`,[K]:qJ}],[0,{[W]:`GatewayId`,[K]:hX}],[0,{[W]:`DestinationIpv6CidrBlock`,[K]:eY}],[0,{[W]:`EgressOnlyInternetGatewayId`,[K]:UY}],[0,{[W]:`InstanceId`,[K]:MX}],[0,{[W]:`NetworkInterfaceId`,[K]:fZ}],[0,{[W]:`VpcPeeringConnectionId`,[K]:_Q}],[0,{[W]:`NatGatewayId`,[K]:dZ}]],1],lye=[3,q,Ipe,0,[NH],[[2,{[W]:`Return`,[K]:MZ}]]],uye=[3,q,zpe,0,[AK,GG,Ej,U],[[0,{[W]:`VpcId`,[K]:mQ}],[()=>d$,{[K]:JG}],[0,4],[2,{[W]:`DryRun`,[K]:cY}]],1],dye=[3,q,Bpe,0,[AU,Ej],[[()=>RQ,{[W]:`RouteTable`,[K]:Kge}],[0,{[W]:`ClientToken`,[K]:RJ}]]],fye=[3,q,Wpe,0,[ZN,GF,AK,GG,U],[[0,{[K]:NF}],0,0,[()=>d$,{[K]:JG}],[2,{[W]:`DryRun`,[K]:cY}]],2],pye=[3,q,Gpe,0,[VF,DG,QU],[[0,{[W]:`GroupId`,[K]:gX}],[()=>u$,{[W]:`TagSet`,[K]:aQ}],[0,{[W]:`SecurityGroupArn`,[K]:VZ}]]],mye=[3,q,Ype,0,[IK,ZN,dV,GG,Fz,U],[0,0,0,[()=>d$,{[K]:JG}],0,[2,{[W]:`DryRun`,[K]:cY}]],1],hye=[3,q,vj,0,[AK,GG,LA,BA,tj,OI,dV,ML,iL,BL,rL,zL,U],[0,[()=>d$,{[K]:JG}],0,0,0,0,0,2,0,1,0,1,[2,{[W]:`DryRun`,[K]:cY}]],1],gye=[3,q,yj,0,[TG],[[()=>HQ,{[W]:`Subnet`,[K]:k_e}]]],_ye=[3,q,Pj,0,[LA,BA,uF,XR,tz,dV,yG,NW,$K,GG,Iz,nK,Ej,NK,TV,U],[0,0,[2,{[W]:`Encrypted`,[K]:oX}],1,0,0,1,0,0,[()=>d$,{[K]:JG}],2,1,[0,4],1,()=>NQ,[2,{[W]:`DryRun`,[K]:cY}]]],vye=[3,q,Fj,0,[tj,dR,OI,iL,BL,rL,zL,AI,wK,GG,U,HR,Cfe],[0,0,0,0,1,0,1,0,()=>KSe,[()=>d$,{[K]:JG}],[2,{[W]:`DryRun`,[K]:cY}],[0,{[W]:`InstanceTenancy`,[K]:HX}],[2,{[W]:`AmazonProvidedIpv6CidrBlock`,[K]:Mq}]]],yye=[3,q,Ij,0,[cq],[[()=>GQ,{[W]:`Vpc`,[K]:uve}]]],bye=[3,q,bj,0,[hpe],[0],1],xye=[3,q,eM,0,[MN,LN,IN],[[1,{[W]:`DefaultTcpEstablishedTimeout`,[K]:uY}],[1,{[W]:`DefaultUdpTimeout`,[K]:hY}],[1,{[W]:`DefaultUdpStreamTimeout`,[K]:mY}]]],Sye=[3,q,lM,0,[WI,U],[[0,{[W]:`InternetGatewayId`,[K]:jX}],[2,{[W]:`DryRun`,[K]:cY}]],1],Cye=[3,q,NM,0,[rz,sz,U],[0,0,[2,{[W]:`DryRun`,[K]:cY}]]],wye=[3,q,PM,0,[NH,sz],[[2,{[W]:`Return`,[K]:MZ}],[0,{[W]:`KeyPairId`,[K]:YX}]]],Tye=[3,q,HM,0,[GB,U],[[0,{[K]:GB}],2],1],Eye=[3,q,UM,0,[GB],[[0,{[W]:`NatGatewayId`,[K]:dZ}]]],Dye=[3,q,ZM,0,[GF,U],[[0,{[W]:`GroupName`,[K]:_X}],[2,{[W]:`DryRun`,[K]:cY}]],1],Oye=[3,q,rN,0,[wU,tN,U,$j,sM],[[0,{[W]:`RouteTableId`,[K]:RZ}],0,[2,{[W]:`DryRun`,[K]:cY}],[0,{[W]:`DestinationCidrBlock`,[K]:qJ}],[0,{[W]:`DestinationIpv6CidrBlock`,[K]:eY}]],1],kye=[3,q,sN,0,[wU,U],[[0,{[W]:`RouteTableId`,[K]:RZ}],[2,{[W]:`DryRun`,[K]:cY}]],1],Aye=[3,q,_N,0,[VF,GF,U],[0,0,[2,{[W]:`DryRun`,[K]:cY}]]],jye=[3,q,vN,0,[NH,VF],[[2,{[W]:`Return`,[K]:MZ}],[0,{[W]:`GroupId`,[K]:gX}]]],Mye=[3,q,SN,0,[NW,U],[0,[2,{[W]:`DryRun`,[K]:cY}]],1],Nye=[3,q,CN,0,[zW,U],[0,[2,{[W]:`DryRun`,[K]:cY}]],1],Pye=[3,q,zN,0,[IK,U],[0,[2,{[W]:`DryRun`,[K]:cY}]],1],Fye=[3,q,BN,0,[AK,U],[0,[2,{[W]:`DryRun`,[K]:cY}]],1],Iye=[3,q,Hj,0,[uH,U,TF,OA],[[()=>swe,{[K]:QV}],[2,{[W]:`DryRun`,[K]:cY}],[()=>ZQ,{[K]:EF}],[()=>YQ,{[K]:DA}]]],Lye=[3,q,Uj,0,[Zfe],[[()=>YSe,{[W]:`AddressesSet`,[K]:Vq}]]],Rye=[3,q,Jj,0,[_q,mq,nfe,U,TF],[[()=>zwe,{[K]:hq}],[()=>Rwe,{[K]:fq}],2,[2,{[W]:`DryRun`,[K]:cY}],[()=>ZQ,{[K]:EF}]]],zye=[3,q,Yj,0,[Xfe],[[()=>eCe,{[W]:`AvailabilityZoneInfo`,[K]:Jq}]]],Bye=[3,q,_M,0,[vfe,TF,cB,cV],[[()=>ZSe,{[K]:kA}],[()=>ZQ,{[K]:EF}],1,0]],Vye=[3,q,vM,0,[nL,cV],[[()=>_Ce,{[W]:`IamInstanceProfileAssociationSet`,[K]:Tme}],[0,{[W]:`NextToken`,[K]:hZ}]]],Hye=[3,q,SM,0,[sF,mL,DV,MI,II,cB,cV,U,TF],[[()=>pCe,{[K]:rP}],[()=>vCe,{[K]:pL}],[()=>i$,{[K]:OV}],2,2,1,0,[2,{[W]:`DryRun`,[K]:cY}],[()=>ZQ,{[K]:EF}]]],Uye=[3,q,CM,0,[cV,KR],[[0,{[W]:`NextToken`,[K]:hZ}],[()=>yCe,{[W]:`ImagesSet`,[K]:Jme}]]],Wye=[3,q,wM,0,[hL,AL,U,TF,cV,cB],[[()=>e$,{[K]:YI}],2,[2,{[W]:`DryRun`,[K]:cY}],[()=>ZQ,{[K]:EF}],[0,{[W]:`NextToken`,[K]:hZ}],[1,{[W]:`MaxResults`,[K]:tZ}]]],Gye=[3,q,TM,0,[cV,IU],[[0,{[W]:`NextToken`,[K]:hZ}],[()=>dwe,{[W]:`ReservationSet`,[K]:Bge}]]],Kye=[3,q,EM,0,[U,UR,TF,cB,cV,GR],[2,[64,{[K]:RR}],[()=>ZQ,{[K]:EF}],1,0,2]],qye=[3,q,DM,0,[UR,cV],[[()=>NCe,{[W]:`InstanceTypeSet`,[K]:$me}],[0,{[W]:`NextToken`,[K]:hZ}]]],Jye=[3,q,uM,0,[cV,cB,U,KI,TF],[0,1,[2,{[W]:`DryRun`,[K]:cY}],[()=>FCe,{[W]:`InternetGatewayId`,[K]:jX}],[()=>ZQ,{[K]:EF}]]],Yye=[3,q,dM,0,[JI,cV],[[()=>ICe,{[W]:`InternetGatewaySet`,[K]:wme}],[0,{[W]:`NextToken`,[K]:hZ}]]],Xye=[3,q,FM,0,[az,lz,eR,U,TF],[[()=>HCe,{[K]:rz}],[()=>UCe,{[K]:sz}],2,[2,{[W]:`DryRun`,[K]:cY}],[()=>ZQ,{[K]:EF}]]],Zye=[3,q,IM,0,[oz],[[()=>WCe,{[W]:`KeySet`,[K]:ihe}]]],Qye=[3,q,WM,0,[U,EF,cB,qB,cV],[2,[()=>ZQ,0],1,[()=>XCe,{[K]:GB}],0]],$ye=[3,q,GM,0,[YB,cV],[[()=>ZCe,{[W]:`NatGatewaySet`,[K]:Lhe}],[0,{[W]:`NextToken`,[K]:hZ}]]],ebe=[3,q,QM,0,[HF,U,qF,TF],[[()=>twe,{[K]:VF}],[2,{[W]:`DryRun`,[K]:cY}],[64,{[W]:`GroupName`,[K]:_X}],[()=>ZQ,{[K]:EF}]]],tbe=[3,q,$M,0,[ZV],[[()=>nwe,{[W]:`PlacementGroupSet`,[K]:pge}]]],nbe=[3,q,iN,0,[lU,Afe,U,TF],[[()=>uwe,{[K]:sU}],2,[2,{[W]:`DryRun`,[K]:cY}],[()=>ZQ,{[K]:EF}]]],rbe=[3,q,aN,0,[NU],[[()=>lwe,{[W]:`RegionInfo`,[K]:Ige}]]],ibe=[3,q,cN,0,[cV,cB,U,EU,TF],[0,1,[2,{[W]:`DryRun`,[K]:cY}],[()=>hwe,{[K]:wU}],[()=>ZQ,{[K]:EF}]]],abe=[3,q,lN,0,[jU,cV],[[()=>gwe,{[W]:`RouteTableSet`,[K]:Uge}],[0,{[W]:`NextToken`,[K]:hZ}]]],obe=[3,q,yN,0,[HF,qF,cV,cB,U,TF],[[()=>$Q,{[K]:VF}],[()=>gCe,{[K]:GF}],0,1,[2,{[W]:`DryRun`,[K]:cY}],[()=>ZQ,{[K]:EF}]]],sbe=[3,q,bN,0,[cV,dW],[[0,{[W]:`NextToken`,[K]:hZ}],[()=>_we,{[W]:`SecurityGroupInfo`,[K]:n_e}]]],cbe=[3,q,wN,0,[cB,cV,gV,IH,PW,U,TF],[1,0,[()=>i$,{[K]:OV}],[64,{[K]:LH}],[()=>ywe,{[K]:NW}],[2,{[W]:`DryRun`,[K]:cY}],[()=>ZQ,{[K]:EF}]]],lbe=[3,q,TN,0,[cV,bG],[[0,{[W]:`NextToken`,[K]:hZ}],[()=>bwe,{[W]:`SnapshotSet`,[K]:b_e}]]],ube=[3,q,EN,0,[TF,pW,cV,cB,U],[[()=>ZQ,{[K]:EF}],[()=>xwe,{[K]:zW}],0,1,[2,{[W]:`DryRun`,[K]:cY}]]],dbe=[3,q,DN,0,[cV,EG],[[0,{[W]:`NextToken`,[K]:hZ}],[()=>Cwe,{[W]:`SubnetSet`,[K]:x_e}]]],fbe=[3,q,VN,0,[LK,AL,U,TF,cV,cB],[[()=>jwe,{[K]:IK}],2,[2,{[W]:`DryRun`,[K]:cY}],[()=>ZQ,{[K]:EF}],[0,{[W]:`NextToken`,[K]:hZ}],[1,{[W]:`MaxResults`,[K]:tZ}]]],pbe=[3,q,HN,0,[cV,oq],[[0,{[W]:`NextToken`,[K]:hZ}],[()=>Mwe,{[W]:`VolumeSet`,[K]:ove}]]],mbe=[3,q,UN,0,[TF,RK,cV,cB,U],[[()=>ZQ,{[K]:EF}],[()=>Pwe,{[K]:AK}],0,1,[2,{[W]:`DryRun`,[K]:cY}]]],hbe=[3,q,WN,0,[cV,lq],[[0,{[W]:`NextToken`,[K]:hZ}],[()=>Iwe,{[W]:`VpcSet`,[K]:sve}]]],gbe=[3,q,fM,0,[WI,AK,U],[[0,{[W]:`InternetGatewayId`,[K]:jX}],[0,{[W]:`VpcId`,[K]:mQ}],[2,{[W]:`DryRun`,[K]:cY}]],2],_be=[3,q,GN,0,[IK,QN,fF,YI,U],[0,0,2,0,[2,{[W]:`DryRun`,[K]:cY}]],1],vbe=[3,q,Wj,0,[kA,QV,U],[0,0,[2,{[W]:`DryRun`,[K]:cY}]]],ybe=[3,q,yM,0,[kA],[0],1],bbe=[3,q,bM,0,[eL],[[()=>DQ,{[W]:`IamInstanceProfileAssociation`,[K]:PX}]]],xbe=[3,q,uN,0,[kA,U],[[0,{[W]:`AssociationId`,[K]:Eq}],[2,{[W]:`DryRun`,[K]:cY}]],1],Sbe=[3,q,jM,0,[gW,Vj,iK],[[1,{[W]:`SizeInGB`,[K]:a_e}],[1,{[W]:`Count`,[K]:GJ}],[0,{[W]:`Type`,[K]:lQ}]]],Cbe=[3,q,tP,0,[YM,XR,NW,QK,$K,tz,nK,dV,LA,uF,NK,BA,iP],[[2,{[W]:`DeleteOnTermination`,[K]:aY}],[1,{[W]:`Iops`,[K]:WX}],[0,{[W]:`SnapshotId`,[K]:GZ}],[1,{[W]:`VolumeSize`,[K]:vQ}],[0,{[W]:`VolumeType`,[K]:yQ}],[0,{[W]:`KmsKeyId`,[K]:qX}],[1,{[W]:`Throughput`,[K]:sQ}],[0,{[W]:`OutpostArn`,[K]:gZ}],[0,{[W]:`AvailabilityZone`,[K]:Kq}],[2,{[W]:`Encrypted`,[K]:oX}],1,0,1]],wbe=[3,q,oP,0,[iP,qA,$A,XA,zz,mB,Zz],[[1,{[W]:`EbsCardIndex`,[K]:xY}],[1,{[W]:`BaselineBandwidthInMbps`,[K]:rJ}],[1,{[W]:`BaselineThroughputInMBps`,[K]:uJ}],[1,{[W]:`BaselineIops`,[K]:aJ}],[1,{[W]:`MaximumBandwidthInMbps`,[K]:ZX}],[1,{[W]:`MaximumThroughputInMBps`,[K]:rZ}],[1,{[W]:`MaximumIops`,[K]:QX}]]],Tbe=[3,q,NP,0,[HP,iF,LP,iV,Kz,bfe,qz,sP],[[0,{[W]:`EbsOptimizedSupport`,[K]:WY}],[0,{[W]:`EncryptionSupport`,[K]:tX}],[()=>Obe,{[W]:`EbsOptimizedInfo`,[K]:VY}],[0,{[W]:`NvmeSupport`,[K]:mZ}],[1,{[W]:`MaximumEbsAttachments`,[K]:vhe}],[0,{[W]:`AttachmentLimitType`,[K]:kq}],[1,{[W]:`MaximumEbsCards`,[K]:yhe}],[()=>cCe,{[W]:`EbsCardSet`,[K]:SY}]]],Ebe=[3,q,AP,0,[IA,YM,CG,IK,MA,GK,TV,iP],[[4,{[W]:`AttachTime`,[K]:Gq}],[2,{[W]:`DeleteOnTermination`,[K]:aY}],[0,{[W]:`Status`,[K]:nQ}],[0,{[W]:`VolumeId`,[K]:hQ}],[0,{[W]:`AssociatedResource`,[K]:Iq}],[0,{[W]:`VolumeOwnerId`,[K]:rve}],[()=>PQ,{[W]:`Operator`,[K]:yZ}],[1,{[W]:`EbsCardIndex`,[K]:xY}]]],Dbe=[3,q,jP,0,[IK,YM],[[0,{[W]:`VolumeId`,[K]:hQ}],[2,{[W]:`DeleteOnTermination`,[K]:aY}]]],Obe=[3,q,LP,0,[qA,$A,XA,zz,mB,Zz],[[1,{[W]:`BaselineBandwidthInMbps`,[K]:rJ}],[1,{[W]:`BaselineThroughputInMBps`,[K]:uJ}],[1,{[W]:`BaselineIops`,[K]:aJ}],[1,{[W]:`MaximumBandwidthInMbps`,[K]:ZX}],[1,{[W]:`MaximumThroughputInMBps`,[K]:rZ}],[1,{[W]:`MaximumIops`,[K]:QX}]]],kbe=[3,q,PP,0,[Jz],[[1,{[W]:`MaximumEfaInterfaces`,[K]:bhe}]]],Abe=[3,q,fP,0,[vP,pP,hP,gP],[[0,{[W]:`ElasticGpuId`,[K]:AY}],[0,{[W]:`ElasticGpuAssociationId`,[K]:EY}],[0,{[W]:`ElasticGpuAssociationState`,[K]:DY}],[0,{[W]:`ElasticGpuAssociationTime`,[K]:kY}]]],jbe=[3,q,yP,0,[iK],[0],1],Mbe=[3,q,xP,0,[iK,Vj],[0,1],1],Nbe=[3,q,SP,0,[DP,CP,TP,EP],[[0,{[W]:`ElasticInferenceAcceleratorArn`,[K]:jY}],[0,{[W]:`ElasticInferenceAcceleratorAssociationId`,[K]:MY}],[0,{[W]:`ElasticInferenceAcceleratorAssociationState`,[K]:NY}],[4,{[W]:`ElasticInferenceAcceleratorAssociationTime`,[K]:FY}]]],Pbe=[3,q,QP,0,[XP,tF],[2,()=>Fbe]],Fbe=[3,q,nF,0,[eF],[2]],Ibe=[3,q,UP,0,[lF],[[2,{[W]:`Enabled`,[K]:aX}]]],Lbe=[3,q,VP,0,[lF],[2]],Rbe=[3,q,EF,0,[TB,iq],[0,[()=>Owe,{[K]:gK}]]],zbe=[3,q,mF,0,[TB,yB,Vj,tB],[[0,{[W]:`Name`,[K]:oZ}],[0,{[W]:`Manufacturer`,[K]:iZ}],[1,{[W]:`Count`,[K]:GJ}],[()=>Bbe,{[W]:`MemoryInfo`,[K]:$X}]]],Bbe=[3,q,gF,0,[bW],[[1,{[W]:`SizeInMiB`,[K]:WZ}]]],Vbe=[3,q,vF,0,[DF,kG],[[()=>mCe,{[W]:`Fpgas`,[K]:Zpe}],[1,{[W]:`TotalFpgaMemoryInMiB`,[K]:M_e}]]],Hbe=[3,q,jF,0,[YI,Mz,U],[0,2,[2,{[W]:`DryRun`,[K]:cY}]],1],Ube=[3,q,MF,0,[YI,rK,EV],[[0,{[W]:`InstanceId`,[K]:MX}],[4,{[W]:`Timestamp`,[K]:cQ}],[0,{[W]:`Output`,[K]:nge}]]],Wbe=[3,q,PF,0,[TB,yB,Vj,yz,YF,dq,tB],[[0,{[W]:`Name`,[K]:oZ}],[0,{[W]:`Manufacturer`,[K]:iZ}],[1,{[W]:`Count`,[K]:GJ}],[1,{[W]:`LogicalGpuCount`,[K]:che}],[1,{[W]:`GpuPartitionSize`,[K]:rme}],[()=>Lwe,{[W]:`WorkloadSet`,[K]:dve}],[()=>Gbe,{[W]:`MemoryInfo`,[K]:$X}]]],Gbe=[3,q,IF,0,[bW],[[1,{[W]:`SizeInMiB`,[K]:WZ}]]],Kbe=[3,q,BF,0,[ZF,jG],[[()=>hCe,{[W]:`Gpus`,[K]:ime}],[1,{[W]:`TotalGpuMemoryInMiB`,[K]:P_e}]]],qbe=[3,q,UF,0,[VF,GF],[[0,{[W]:`GroupId`,[K]:gX}],[0,{[W]:`GroupName`,[K]:_X}]]],Jbe=[3,q,tI,0,[Bj],[[2,{[W]:`Configured`,[K]:WJ}]]],Ybe=[3,q,nI,0,[Bj],[2]],EQ=[3,q,$I,0,[HA,dI],[[0,{[W]:`Arn`,[K]:Zq}],[0,{[W]:`Id`,[K]:hme}]]],DQ=[3,q,eL,0,[kA,YI,$I,SG,rK],[[0,{[W]:`AssociationId`,[K]:Eq}],[0,{[W]:`InstanceId`,[K]:MX}],[()=>EQ,{[W]:`IamInstanceProfile`,[K]:NX}],[0,{[W]:`State`,[K]:tQ}],[4,{[W]:`Timestamp`,[K]:cQ}]]],OQ=[3,q,sL,0,[HA,TB],[[0,{[W]:`Arn`,[K]:Zq}],[0,{[W]:`Name`,[K]:oZ}]]],Xbe=[3,q,qR,0,[GV,fK,YA,ZN,aF,uI,UL,TB,RH,zH,YW,iG,DG,nq,ZA,XG,PN,PR,yW,nN,Cz,xI,_W,SW,wF,pL,yL,SG,pV,gpe,MH,LV,UA,VR,ez,ZH,DH],[[0,{[W]:`PlatformDetails`,[K]:SZ}],[0,{[W]:`UsageOperation`,[K]:fQ}],[()=>iCe,{[W]:`BlockDeviceMapping`,[K]:iJ}],[0,{[W]:`Description`,[K]:_Y}],[2,{[W]:`EnaSupport`,[K]:nX}],[0,{[W]:`Hypervisor`,[K]:bX}],[0,{[W]:`ImageOwnerAlias`,[K]:Ame}],[0,{[W]:`Name`,[K]:oZ}],[0,{[W]:`RootDeviceName`,[K]:NZ}],[0,{[W]:`RootDeviceType`,[K]:PZ}],[0,{[W]:`SriovNetSupport`,[K]:YZ}],[()=>VQ,{[W]:`StateReason`,[K]:XZ}],[()=>u$,{[W]:`TagSet`,[K]:aQ}],[0,{[W]:`VirtualizationType`,[K]:bQ}],[0,{[W]:`BootMode`,[K]:oJ}],[0,{[W]:`TpmSupport`,[K]:oQ}],[0,{[W]:`DeprecationTime`,[K]:fY}],[0,{[W]:`ImdsSupport`,[K]:Xme}],[0,{[W]:`SourceInstanceId`,[K]:o_e}],[0,{[W]:`DeregistrationProtection`,[K]:sY}],[0,{[W]:`LastLaunchedTime`,[K]:dhe}],[2,{[W]:`ImageAllowed`,[K]:xme}],[0,{[W]:`SourceImageId`,[K]:c_e}],[0,{[W]:`SourceImageRegion`,[K]:l_e}],[2,{[W]:`FreeTierEligible`,[K]:mX}],[0,{[W]:`ImageId`,[K]:IX}],[0,{[W]:`ImageLocation`,[K]:Eme}],[0,{[W]:`ImageState`,[K]:Yme}],[0,{[W]:`ImageOwnerId`,[K]:jme}],[0,{[W]:`CreationDate`,[K]:yJ}],[2,{[W]:`IsPublic`,[K]:Hme}],[()=>a$,{[W]:`ProductCodes`,[K]:bZ}],[0,{[W]:`Architecture`,[K]:Qq}],[0,{[W]:`ImageType`,[K]:the}],[0,{[W]:`KernelId`,[K]:KX}],[0,{[W]:`RamdiskId`,[K]:FZ}],[0,{[W]:`Platform`,[K]:kZ}]]],Zbe=[3,q,_L,0,[rz,fH,GG,U],[[0,{[W]:`KeyName`,[K]:JX}],[21,{[W]:`PublicKeyMaterial`,[K]:vge}],[()=>d$,{[K]:JG}],[2,{[W]:`DryRun`,[K]:cY}]],2],Qbe=[3,q,vL,0,[$R,rz,sz,DG],[[0,{[W]:`KeyFingerprint`,[K]:GX}],[0,{[W]:`KeyName`,[K]:JX}],[0,{[W]:`KeyPairId`,[K]:YX}],[()=>u$,{[W]:`TagSet`,[K]:aQ}]]],$be=[3,q,_I,0,[VA,NG],[[()=>bCe,{[W]:`Accelerators`,[K]:Yq}],[1,{[W]:`TotalInferenceMemoryInMiB`,[K]:F_e}]]],exe=[3,q,NI,0,[Vj,TB,yB,tB],[[1,{[W]:`Count`,[K]:GJ}],[0,{[W]:`Name`,[K]:oZ}],[0,{[W]:`Manufacturer`,[K]:iZ}],[()=>txe,{[W]:`MemoryInfo`,[K]:$X}]]],txe=[3,q,FI,0,[bW],[[1,{[W]:`SizeInMiB`,[K]:WZ}]]],nxe=[3,q,JR,0,[UA,YA,Ej,IP,aF,uI,$I,xL,_P,OP,QB,dV,RH,zH,dW,JU,xW,YW,iG,DG,nq,uj,fpe,pj,gj,tI,Pz,iB,UP,ZA,GV,fK,pK,BV,CI,XG,aB,vpe,tV,TV,jW,YI,pL,SG,zV,WV,dG,rz,yfe,LV,RR,jz,OH,ez,ZH,DH,wB,zW,AK,nH,iH],[[0,{[W]:`Architecture`,[K]:Qq}],[()=>xCe,{[W]:`BlockDeviceMapping`,[K]:iJ}],[0,{[W]:`ClientToken`,[K]:RJ}],[2,{[W]:`EbsOptimized`,[K]:BY}],[2,{[W]:`EnaSupport`,[K]:nX}],[0,{[W]:`Hypervisor`,[K]:bX}],[()=>EQ,{[W]:`IamInstanceProfile`,[K]:NX}],[0,{[W]:`InstanceLifecycle`,[K]:Dme}],[()=>lCe,{[W]:`ElasticGpuAssociationSet`,[K]:OY}],[()=>dCe,{[W]:`ElasticInferenceAcceleratorAssociationSet`,[K]:PY}],[()=>ECe,{[W]:`NetworkInterfaceSet`,[K]:zhe}],[0,{[W]:`OutpostArn`,[K]:gZ}],[0,{[W]:`RootDeviceName`,[K]:NZ}],[0,{[W]:`RootDeviceType`,[K]:PZ}],[()=>QQ,{[W]:`GroupSet`,[K]:yX}],[2,{[W]:`SourceDestCheck`,[K]:BZ}],[0,{[W]:`SpotInstanceRequestId`,[K]:u_e}],[0,{[W]:`SriovNetSupport`,[K]:YZ}],[()=>VQ,{[W]:`StateReason`,[K]:XZ}],[()=>u$,{[W]:`TagSet`,[K]:aQ}],[0,{[W]:`VirtualizationType`,[K]:bQ}],[()=>Zve,{[W]:`CpuOptions`,[K]:kJ}],[0,{[W]:`CapacityBlockId`,[K]:hJ}],[0,{[W]:`CapacityReservationId`,[K]:MJ}],[()=>Wve,{[W]:`CapacityReservationSpecification`,[K]:FJ}],[()=>Jbe,{[W]:`HibernationOptions`,[K]:lme}],[()=>GCe,{[W]:`LicenseSet`,[K]:fhe}],[()=>mxe,{[W]:`MetadataOptions`,[K]:whe}],[()=>Ibe,{[W]:`EnclaveOptions`,[K]:GY}],[0,{[W]:`BootMode`,[K]:oJ}],[0,{[W]:`PlatformDetails`,[K]:SZ}],[0,{[W]:`UsageOperation`,[K]:fQ}],[4,{[W]:`UsageOperationUpdateTime`,[K]:q_e}],[()=>cSe,{[W]:`PrivateDnsNameOptions`,[K]:cge}],[0,{[W]:`Ipv6Address`,[K]:TX}],[0,{[W]:`TpmSupport`,[K]:oQ}],[()=>uxe,{[W]:`MaintenanceOptions`,[K]:The}],[0,{[W]:`CurrentInstanceBootMode`,[K]:CJ}],[()=>vxe,{[W]:`NetworkPerformanceOptions`,[K]:Uhe}],[()=>PQ,{[W]:`Operator`,[K]:yZ}],[()=>kCe,{[W]:`SecondaryInterfaceSet`,[K]:f_e}],[0,{[W]:`InstanceId`,[K]:MX}],[0,{[W]:`ImageId`,[K]:IX}],[()=>AQ,{[W]:`InstanceState`,[K]:Zme}],[0,{[W]:`PrivateDnsName`,[K]:xZ}],[0,{[W]:`DnsName`,[K]:rY}],[0,{[W]:`Reason`,[K]:Jge}],[0,{[W]:`KeyName`,[K]:JX}],[1,{[W]:`AmiLaunchIndex`,[K]:Oq}],[()=>a$,{[W]:`ProductCodes`,[K]:bZ}],[0,{[W]:`InstanceType`,[K]:VX}],[4,{[W]:`LaunchTime`,[K]:phe}],[()=>FQ,{[W]:`Placement`,[K]:Oge}],[0,{[W]:`KernelId`,[K]:KX}],[0,{[W]:`RamdiskId`,[K]:FZ}],[0,{[W]:`Platform`,[K]:kZ}],[()=>Jxe,{[W]:`Monitoring`,[K]:jhe}],[0,{[W]:`SubnetId`,[K]:KZ}],[0,{[W]:`VpcId`,[K]:mQ}],[0,{[W]:`PrivateIpAddress`,[K]:TZ}],[0,{[W]:`IpAddress`,[K]:wX}]]],rxe=[3,q,hI,0,[XP,tF],[[2,{[W]:`EnaSrdEnabled`,[K]:YY}],[()=>ixe,{[W]:`EnaSrdUdpSpecification`,[K]:$Y}]]],ixe=[3,q,gI,0,[eF],[[2,{[W]:`EnaSrdUdpEnabled`,[K]:QY}]]],axe=[3,q,wI,0,[zM,cF],[[0,{[W]:`DeviceName`,[K]:tY}],[()=>Ebe,{[W]:`Ebs`,[K]:iX}]]],oxe=[3,q,EI,0,[zM,cF,WK,jB],[[0,{[W]:`DeviceName`,[K]:tY}],[()=>Dbe,{[W]:`Ebs`,[K]:iX}],[0,{[W]:`VirtualName`,[K]:gQ}],[0,{[W]:`NoDevice`,[K]:lZ}]]],sxe=[3,q,cL,0,[pR],[[0,{[W]:`Ipv4Prefix`,[K]:zme}]]],cxe=[3,q,XI,0,[CI,$L],[[0,{[W]:`Ipv6Address`,[K]:TX}],[2,{[W]:`IsPrimaryIpv6`,[K]:Ime}]]],lxe=[3,q,lL,0,[uR],[[0,{[W]:`Ipv6Prefix`,[K]:Vme}]]],uxe=[3,q,wL,0,[NA,oU],[[0,{[W]:`AutoRecovery`,[K]:Lq}],[0,{[W]:`RebootMigration`,[K]:zge}]]],dxe=[3,q,TL,0,[NA],[0]],fxe=[3,q,EL,0,[pB,ZW],[0,()=>ASe]],pxe=[3,q,DL,0,[sI,iI,$F,rI,jL],[0,1,0,0,0]],mxe=[3,q,OL,0,[SG,sI,iI,$F,rI,jL],[[0,{[W]:`State`,[K]:tQ}],[0,{[W]:`HttpTokens`,[K]:mme}],[1,{[W]:`HttpPutResponseHopLimit`,[K]:dme}],[0,{[W]:`HttpEndpoint`,[K]:sme}],[0,{[W]:`HttpProtocolIpv6`,[K]:ume}],[0,{[W]:`InstanceMetadataTags`,[K]:Ome}]]],hxe=[3,q,NL,0,[WA,GA,ZN,OF,fI,Rz,XB,pV,zV,nH,rH,JU,CG,zW,AK,WR,fR,oR,Dj,TV],[[()=>kQ,{[W]:`Association`,[K]:$q}],[()=>gxe,{[W]:`Attachment`,[K]:eJ}],[0,{[W]:`Description`,[K]:_Y}],[()=>QQ,{[W]:`GroupSet`,[K]:yX}],[()=>t$,{[W]:`Ipv6AddressesSet`,[K]:CX}],[0,{[W]:`MacAddress`,[K]:XX}],[0,{[W]:`NetworkInterfaceId`,[K]:fZ}],[0,{[W]:`OwnerId`,[K]:_Z}],[0,{[W]:`PrivateDnsName`,[K]:xZ}],[0,{[W]:`PrivateIpAddress`,[K]:TZ}],[()=>OCe,{[W]:`PrivateIpAddressesSet`,[K]:wZ}],[2,{[W]:`SourceDestCheck`,[K]:BZ}],[0,{[W]:`Status`,[K]:nQ}],[0,{[W]:`SubnetId`,[K]:KZ}],[0,{[W]:`VpcId`,[K]:mQ}],[0,{[W]:`InterfaceType`,[K]:UX}],[()=>CCe,{[W]:`Ipv4PrefixSet`,[K]:Lme}],[()=>wCe,{[W]:`Ipv6PrefixSet`,[K]:Rme}],[()=>Jve,{[W]:`ConnectionTrackingConfiguration`,[K]:zJ}],[()=>PQ,{[W]:`Operator`,[K]:yZ}]]],kQ=[3,q,PL,0,[aj,dj,WL,WV,QV],[[0,{[W]:`CarrierIp`,[K]:SJ}],[0,{[W]:`CustomerOwnedIp`,[K]:AJ}],[0,{[W]:`IpOwnerId`,[K]:Nme}],[0,{[W]:`PublicDnsName`,[K]:uge}],[0,{[W]:`PublicIp`,[K]:CZ}]]],gxe=[3,q,FL,0,[IA,AA,YM,oM,CG,OB,ZP,GP],[[4,{[W]:`AttachTime`,[K]:Gq}],[0,{[W]:`AttachmentId`,[K]:Dq}],[2,{[W]:`DeleteOnTermination`,[K]:aY}],[1,{[W]:`DeviceIndex`,[K]:$J}],[0,{[W]:`Status`,[K]:nQ}],[1,{[W]:`NetworkCardIndex`,[K]:cZ}],[()=>rxe,{[W]:`EnaSrdSpecification`,[K]:XY}],[1,{[W]:`EnaQueueCount`,[K]:KY}]]],_xe=[3,q,LL,0,[Sfe,YM,ZN,oM,OF,mI,fI,XB,nH,rH,eG,zW,cfe,WR,OB,fR,JL,oR,qL,sH,ZP,Oj,GP],[[2,{[W]:`AssociatePublicIpAddress`,[K]:jq}],[2,{[W]:`DeleteOnTermination`,[K]:aY}],[0,{[W]:`Description`,[K]:_Y}],[1,{[W]:`DeviceIndex`,[K]:$J}],[()=>s$,{[K]:$U}],[1,{[W]:`Ipv6AddressCount`,[K]:gme}],[()=>t$,{[W]:`Ipv6Addresses`,[K]:CX}],[0,{[W]:`NetworkInterfaceId`,[K]:fZ}],[0,{[W]:`PrivateIpAddress`,[K]:TZ}],[()=>awe,{[W]:`PrivateIpAddresses`,[K]:wZ}],[1,{[W]:`SecondaryPrivateIpAddressCount`,[K]:__e}],[0,{[W]:`SubnetId`,[K]:KZ}],2,0,1,[()=>zCe,{[K]:pR}],1,[()=>BCe,{[K]:uR}],1,2,()=>Pbe,()=>qve,1]],vxe=[3,q,VL,0,[ej],[[0,{[W]:`BandwidthWeighting`,[K]:dJ}]]],yxe=[3,q,HL,0,[ej],[0]],bxe=[3,q,ZL,0,[WA,kH,zV,nH],[[()=>kQ,{[W]:`Association`,[K]:$q}],[2,{[W]:`Primary`,[K]:AZ}],[0,{[W]:`PrivateDnsName`,[K]:xZ}],[0,{[W]:`PrivateIpAddress`,[K]:TZ}]]],xxe=[3,q,jR,0,[GA,Rz,vW,pV,rH,JU,CG,cG,JW,WR],[[()=>Sxe,{[W]:`Attachment`,[K]:eJ}],[0,{[W]:`MacAddress`,[K]:XX}],[0,{[W]:`SecondaryInterfaceId`,[K]:s_e}],[0,{[W]:`OwnerId`,[K]:_Z}],[()=>ACe,{[W]:`PrivateIpAddressSet`,[K]:mge}],[2,{[W]:`SourceDestCheck`,[K]:BZ}],[0,{[W]:`Status`,[K]:nQ}],[0,{[W]:`SecondarySubnetId`,[K]:y_e}],[0,{[W]:`SecondaryNetworkId`,[K]:h_e}],[0,{[W]:`InterfaceType`,[K]:UX}]]],Sxe=[3,q,CR,0,[IA,AA,YM,oM,CG,OB],[[4,{[W]:`AttachTime`,[K]:Gq}],[0,{[W]:`AttachmentId`,[K]:Dq}],[2,{[W]:`DeleteOnTermination`,[K]:aY}],[1,{[W]:`DeviceIndex`,[K]:$J}],[0,{[W]:`Status`,[K]:nQ}],[1,{[W]:`NetworkCardIndex`,[K]:cZ}]]],Cxe=[3,q,TR,0,[nH],[[0,{[W]:`PrivateIpAddress`,[K]:TZ}]]],wxe=[3,q,OR,0,[nH],[0],1],Txe=[3,q,AR,0,[YM,oM,rH,$V,cG,WR,OB],[2,1,[()=>jCe,{[K]:nH}],1,0,0,1]],AQ=[3,q,FR,0,[zj,TB],[[1,{[W]:`Code`,[K]:UJ}],[0,{[W]:`Name`,[K]:oZ}]]],Exe=[3,q,xR,0,[YI,Tj,yH],[[0,{[W]:`InstanceId`,[K]:MX}],[()=>AQ,{[W]:`CurrentState`,[K]:LJ}],[()=>AQ,{[W]:`PreviousState`,[K]:Sge}]]],Dxe=[3,q,MR,0,[KG,$N,iV,iF],[[1,{[W]:`TotalSizeInGB`,[K]:V_e}],[()=>sCe,{[W]:`Disks`,[K]:yY}],[0,{[W]:`NvmeSupport`,[K]:mZ}],[0,{[W]:`EncryptionSupport`,[K]:tX}]]],Oxe=[3,q,BR,0,[RR,_pe,wF,mG,nG,_G,spe,uI,lH,SK,tB,NR,MR,NP,$B,BF,vF,qV,_I,oI,cpe,aM,Tfe,GU,LB,oV,aV,Lz,eV,vH,aU,DW],[[0,{[W]:`InstanceType`,[K]:VX}],[2,{[W]:`CurrentGeneration`,[K]:xJ}],[2,{[W]:`FreeTierEligible`,[K]:mX}],[()=>Ewe,{[W]:`SupportedUsageClasses`,[K]:w_e}],[()=>fwe,{[W]:`SupportedRootDeviceTypes`,[K]:v_e}],[()=>kwe,{[W]:`SupportedVirtualizationTypes`,[K]:E_e}],[2,{[W]:`BareMetal`,[K]:sJ}],[0,{[W]:`Hypervisor`,[K]:bX}],[()=>uSe,{[W]:`ProcessorInfo`,[K]:hge}],[()=>HSe,{[W]:`VCpuInfo`,[K]:X_e}],[()=>Uxe,{[W]:`MemoryInfo`,[K]:$X}],[2,{[W]:`InstanceStorageSupported`,[K]:qme}],[()=>Dxe,{[W]:`InstanceStorageInfo`,[K]:Kme}],[()=>Tbe,{[W]:`EbsInfo`,[K]:LY}],[()=>Qxe,{[W]:`NetworkInfo`,[K]:Vhe}],[()=>Kbe,{[W]:`GpuInfo`,[K]:eme}],[()=>Vbe,{[W]:`FpgaInfo`,[K]:lX}],[()=>iSe,{[W]:`PlacementGroupInfo`,[K]:fge}],[()=>$be,{[W]:`InferenceAcceleratorInfo`,[K]:_me}],[2,{[W]:`HibernationSupported`,[K]:pme}],[2,{[W]:`BurstablePerformanceSupported`,[K]:lJ}],[2,{[W]:`DedicatedHostsSupported`,[K]:QJ}],[2,{[W]:`AutoRecoverySupported`,[K]:Pq}],[()=>aCe,{[W]:`SupportedBootModes`,[K]:Qge}],[0,{[W]:`NitroEnclavesSupport`,[K]:Fhe}],[0,{[W]:`NitroTpmSupport`,[K]:Khe}],[()=>rSe,{[W]:`NitroTpmInfo`,[K]:Ghe}],[()=>Bxe,{[W]:`MediaAcceleratorInfo`,[K]:ghe}],[()=>nSe,{[W]:`NeuronInfo`,[K]:Hhe}],[0,{[W]:`PhcSupport`,[K]:xge}],[0,{[W]:`RebootMigrationSupport`,[K]:Rge}],[2,{[W]:`SupportedInRegion`,[K]:d_e}]]],jQ=[3,q,zI,0,[KA,WI,pV,DG],[[()=>PCe,{[W]:`AttachmentSet`,[K]:Uq}],[0,{[W]:`InternetGatewayId`,[K]:jX}],[0,{[W]:`OwnerId`,[K]:_Z}],[()=>u$,{[W]:`TagSet`,[K]:aQ}]]],kxe=[3,q,BI,0,[SG,AK],[[0,{[W]:`State`,[K]:tQ}],[0,{[W]:`VpcId`,[K]:mQ}]]],Axe=[3,q,cR,0,[lR,xF,HG,cK,_R,yR,hH],[[0,{[W]:`IpProtocol`,[K]:LX}],[1,{[W]:`FromPort`,[K]:dX}],[1,{[W]:`ToPort`,[K]:iQ}],[()=>Dwe,{[W]:`Groups`,[K]:ame}],[()=>RCe,{[W]:`IpRanges`,[K]:Wme}],[()=>VCe,{[W]:`Ipv6Ranges`,[K]:Gme}],[()=>iwe,{[W]:`PrefixListIds`,[K]:yge}]]],jxe=[3,q,vR,0,[ZN,oj],[[0,{[W]:`Description`,[K]:_Y}],[0,{[W]:`CidrIp`,[K]:wJ}]]],Mxe=[3,q,iR,0,[pR],[0]],Nxe=[3,q,aR,0,[uR],[0]],Pxe=[3,q,bR,0,[ZN,sj],[[0,{[W]:`Description`,[K]:_Y}],[0,{[W]:`CidrIpv6`,[K]:TJ}]]],Fxe=[3,q,fz,0,[sz,DG,rz,$R,nz],[[0,{[W]:`KeyPairId`,[K]:YX}],[()=>u$,{[W]:`TagSet`,[K]:aQ}],[0,{[W]:`KeyName`,[K]:JX}],[0,{[W]:`KeyFingerprint`,[K]:GX}],[()=>xve,{[W]:`KeyMaterial`,[K]:rhe}]]],Ixe=[3,q,uz,0,[sz,pz,DG,dH,Nj,rz,$R],[[0,{[W]:`KeyPairId`,[K]:YX}],[0,{[W]:`KeyType`,[K]:ahe}],[()=>u$,{[W]:`TagSet`,[K]:aQ}],[0,{[W]:`PublicKey`,[K]:_ge}],[4,{[W]:`CreateTime`,[K]:HJ}],[0,{[W]:`KeyName`,[K]:JX}],[0,{[W]:`KeyFingerprint`,[K]:GX}]]],Lxe=[3,q,Az,0,[Oz,kz,aq],[0,0,0]],Rxe=[3,q,_z,0,[hz],[[0,{[W]:`LicenseConfigurationArn`,[K]:she}]]],zxe=[3,q,gz,0,[hz],[0]],Bxe=[3,q,Lz,0,[VA,BG],[[()=>qCe,{[W]:`Accelerators`,[K]:Yq}],[1,{[W]:`TotalMediaMemoryInMiB`,[K]:R_e}]]],Vxe=[3,q,Uz,0,[Vj,TB,yB,tB],[[1,{[W]:`Count`,[K]:GJ}],[0,{[W]:`Name`,[K]:oZ}],[0,{[W]:`Manufacturer`,[K]:iZ}],[()=>Hxe,{[W]:`MemoryInfo`,[K]:$X}]]],Hxe=[3,q,Gz,0,[bW],[[1,{[W]:`SizeInMiB`,[K]:WZ}]]],Uxe=[3,q,tB,0,[bW],[[1,{[W]:`SizeInMiB`,[K]:WZ}]]],Wxe=[3,q,Qz,0,[YI,JU,Gj,U,epe,gK,YA,Kj,RR,mz,MU,oK,uL,OF,IP,YW,aF],[[0,{[W]:`InstanceId`,[K]:MX}],[()=>SQ,0],[()=>SQ,0],[2,{[W]:`DryRun`,[K]:cY}],[0,{[W]:`Attribute`,[K]:tJ}],[()=>yve,{[W]:`Value`,[K]:pQ}],[()=>SCe,{[W]:`BlockDeviceMapping`,[K]:iJ}],[()=>SQ,{[W]:`DisableApiTermination`,[K]:KJ}],[()=>CQ,{[W]:`InstanceType`,[K]:VX}],[()=>CQ,{[W]:`Kernel`,[K]:ohe}],[()=>CQ,{[W]:`Ramdisk`,[K]:qge}],[()=>Hve,{[W]:`UserData`,[K]:K_e}],[()=>CQ,{[W]:`InstanceInitiatedShutdownBehavior`,[K]:FX}],[()=>$Q,{[K]:VF}],[()=>SQ,{[W]:`EbsOptimized`,[K]:BY}],[()=>CQ,{[W]:`SriovNetSupport`,[K]:YZ}],[()=>SQ,{[W]:`EnaSupport`,[K]:nX}]],1],Gxe=[3,q,lB,0,[zW,TA,oB,Bz,fj,lP,RV,YP,qP,FP,RM],[[0,{[W]:`SubnetId`,[K]:KZ}],[()=>SQ,0],[()=>SQ,0],[()=>SQ,0],0,[()=>SQ,0],0,[()=>SQ,0],[()=>SQ,0],1,[()=>SQ,0]],1],Kxe=[3,q,hB,0,[IK,U,yG,$K,XR,nK,Iz],[0,2,1,0,1,1,2],1],qxe=[3,q,gB,0,[UK],[[()=>USe,{[W]:`VolumeModification`,[K]:nve}]]],Jxe=[3,q,wB,0,[SG],[[0,{[W]:`State`,[K]:tQ}]]],MQ=[3,q,RB,0,[Nj,FN,pF,bF,zB,GB,AV,SG,zW,AK,DG,Mj,jA,Lfe,wfe,ofe,wU],[[4,{[W]:`CreateTime`,[K]:HJ}],[4,{[W]:`DeleteTime`,[K]:pY}],[0,{[W]:`FailureCode`,[K]:sX}],[0,{[W]:`FailureMessage`,[K]:uX}],[()=>JCe,{[W]:`NatGatewayAddressSet`,[K]:Ihe}],[0,{[W]:`NatGatewayId`,[K]:dZ}],[()=>pSe,{[W]:`ProvisionedBandwidth`,[K]:ige}],[0,{[W]:`State`,[K]:tQ}],[0,{[W]:`SubnetId`,[K]:KZ}],[0,{[W]:`VpcId`,[K]:mQ}],[()=>u$,{[W]:`TagSet`,[K]:aQ}],[0,{[W]:`ConnectivityType`,[K]:VJ}],[0,{[W]:`AvailabilityMode`,[K]:Aq}],[0,{[W]:`AutoScalingIps`,[K]:zq}],[0,{[W]:`AutoProvisionZones`,[K]:Nq}],[()=>YCe,{[W]:`AttachedApplianceSet`,[K]:yq}],[0,{[W]:`RouteTableId`,[K]:RZ}]]],Yxe=[3,q,UB,0,[DA,XB,cH,QV,kA,mR,bF,CG,LA,BA],[[0,{[W]:`AllocationId`,[K]:Sq}],[0,{[W]:`NetworkInterfaceId`,[K]:fZ}],[0,{[W]:`PrivateIp`,[K]:gge}],[0,{[W]:`PublicIp`,[K]:CZ}],[0,{[W]:`AssociationId`,[K]:Eq}],[2,{[W]:`IsPrimary`,[K]:Ume}],[0,{[W]:`FailureMessage`,[K]:uX}],[0,{[W]:`Status`,[K]:nQ}],[0,{[W]:`AvailabilityZone`,[K]:Kq}],[0,{[W]:`AvailabilityZoneId`,[K]:qq}]]],Xxe=[3,q,BB,0,[iK,ife,kK,Rfe,fB,pF,bF],[[0,{[W]:`Type`,[K]:lQ}],[0,{[W]:`ApplianceArn`,[K]:bq}],[0,{[W]:`VpcEndpointId`,[K]:$_e}],[0,{[W]:`AttachmentState`,[K]:Wq}],[0,{[W]:`ModificationState`,[K]:nZ}],[0,{[W]:`FailureCode`,[K]:sX}],[0,{[W]:`FailureMessage`,[K]:uX}]]],Zxe=[3,q,AB,0,[OB,nV,rB,lfe,npe,jV,rM,Yz,Xz],[[1,{[W]:`NetworkCardIndex`,[K]:cZ}],[0,{[W]:`NetworkPerformance`,[K]:pZ}],[1,{[W]:`MaximumNetworkInterfaces`,[K]:eZ}],[1,{[W]:`AdditionalFlexibleNetworkInterfaces`,[K]:xq}],[1,{[W]:`BaselineBandwidthInGbps`,[K]:nJ}],[1,{[W]:`PeakBandwidthInGbps`,[K]:age}],[1,{[W]:`DefaultEnaQueueCountPerInterface`,[K]:XJ}],[1,{[W]:`MaximumEnaQueueCount`,[K]:xhe}],[1,{[W]:`MaximumEnaQueueCountPerInterface`,[K]:She}]]],Qxe=[3,q,$B,0,[nV,rB,nB,BM,DB,vI,yI,LR,aF,rF,PP,MP,$P,upe,_F,Dj,XW,dB,bI],[[0,{[W]:`NetworkPerformance`,[K]:pZ}],[1,{[W]:`MaximumNetworkInterfaces`,[K]:eZ}],[1,{[W]:`MaximumNetworkCards`,[K]:Che}],[1,{[W]:`DefaultNetworkCardIndex`,[K]:nY}],[()=>QCe,{[W]:`NetworkCards`,[K]:Nhe}],[1,{[W]:`Ipv4AddressesPerInterface`,[K]:vme}],[1,{[W]:`Ipv6AddressesPerInterface`,[K]:yme}],[2,{[W]:`Ipv6Supported`,[K]:Qme}],[0,{[W]:`EnaSupport`,[K]:nX}],[2,{[W]:`EfaSupported`,[K]:eX}],[()=>kbe,{[W]:`EfaInfo`,[K]:RY}],[2,{[W]:`EncryptionInTransitSupported`,[K]:IY}],[2,{[W]:`EnaSrdSupported`,[K]:ZY}],[()=>rCe,{[W]:`BandwidthWeightings`,[K]:fJ}],[0,{[W]:`FlexibleEnaQueuesSupport`,[K]:cX}],[()=>xye,{[W]:`ConnectionTrackingConfiguration`,[K]:zJ}],[2,{[W]:`SecondaryNetworkSupported`,[K]:g_e}],[1,{[W]:`MaximumSecondaryNetworkInterfaces`,[K]:Ohe}],[1,{[W]:`Ipv4AddressesPerSecondaryInterface`,[K]:bme}]]],$xe=[3,q,MB,0,[Vj,aq],[[1,{[W]:`Count`,[K]:GJ}],[1,{[W]:`Version`,[K]:lve}]]],eSe=[3,q,NB,0,[Vj,TB,wpe,tB],[[1,{[W]:`Count`,[K]:GJ}],[0,{[W]:`Name`,[K]:oZ}],[()=>$xe,{[W]:`CoreInfo`,[K]:DJ}],[()=>tSe,{[W]:`MemoryInfo`,[K]:$X}]]],tSe=[3,q,FB,0,[bW],[[1,{[W]:`SizeInMiB`,[K]:WZ}]]],nSe=[3,q,eV,0,[IB,VG],[[()=>$Ce,{[W]:`NeuronDevices`,[K]:Phe}],[1,{[W]:`TotalNeuronDeviceMemoryInMiB`,[K]:z_e}]]],rSe=[3,q,aV,0,[vG],[[()=>ewe,{[W]:`SupportedVersions`,[K]:D_e}]]],NQ=[3,q,yV,0,[kV],[0]],PQ=[3,q,bV,0,[bB,kV,QF],[[2,{[W]:`Managed`,[K]:Ahe}],[0,{[W]:`Principal`,[K]:rge}],[2,{[W]:`HiddenByDefault`,[K]:ome}]]],FQ=[3,q,OH,0,[BA,Qfe,GF,gH,eI,tK,YU,aI,VF,LA],[[0,{[W]:`AvailabilityZoneId`,[K]:qq}],[0,{[W]:`Affinity`,[K]:Xq}],[0,{[W]:`GroupName`,[K]:_X}],[1,{[W]:`PartitionNumber`,[K]:bge}],[0,{[W]:`HostId`,[K]:cme}],[0,{[W]:`Tenancy`,[K]:A_e}],[0,{[W]:`SpreadDomain`,[K]:e_e}],[0,{[W]:`HostResourceGroupArn`,[K]:fme}],[0,{[W]:`GroupId`,[K]:gX}],[0,{[W]:`AvailabilityZone`,[K]:Kq}]]],IQ=[3,q,KV,0,[GF,SG,wG,FV,VF,DG,kF,HW,xz,TV],[[0,{[W]:`GroupName`,[K]:_X}],[0,{[W]:`State`,[K]:tQ}],[0,{[W]:`Strategy`,[K]:rQ}],[1,{[W]:`PartitionCount`,[K]:oge}],[0,{[W]:`GroupId`,[K]:gX}],[()=>u$,{[W]:`TagSet`,[K]:aQ}],[0,{[W]:`GroupArn`,[K]:Qpe}],[0,{[W]:`SpreadLevel`,[K]:p_e}],[0,{[W]:`LinkedGroupId`,[K]:uhe}],[()=>PQ,{[W]:`Operator`,[K]:yZ}]]],iSe=[3,q,qV,0,[lG],[[()=>rwe,{[W]:`SupportedStrategies`,[K]:S_e}]]],aSe=[3,q,pH,0,[ZN,pH],[[0,{[W]:`Description`,[K]:_Y}],[0,{[W]:`PrefixListId`,[K]:DZ}]]],oSe=[3,q,VV,0,[cI,JP,KP],[[0,{[W]:`HostnameType`,[K]:xX}],[2,{[W]:`EnableResourceNameDnsARecord`,[K]:JY}],[2,{[W]:`EnableResourceNameDnsAAAARecord`,[K]:qY}]]],sSe=[3,q,HV,0,[cI,JP,KP],[0,2,2]],cSe=[3,q,UV,0,[cI,JP,KP],[[0,{[W]:`HostnameType`,[K]:xX}],[2,{[W]:`EnableResourceNameDnsARecord`,[K]:JY}],[2,{[W]:`EnableResourceNameDnsAAAARecord`,[K]:qY}]]],lSe=[3,q,eH,0,[kH,nH],[[2,{[W]:`Primary`,[K]:AZ}],[0,{[W]:`PrivateIpAddress`,[K]:TZ}]]],uSe=[3,q,lH,0,[WU,qU,XU,yB],[[()=>XSe,{[W]:`SupportedArchitectures`,[K]:Xge}],[1,{[W]:`SustainedClockSpeedInGhz`,[K]:$ge}],[()=>wwe,{[W]:`SupportedFeatures`,[K]:t_e}],[0,{[W]:`Manufacturer`,[K]:iZ}]]],dSe=[3,q,IV,0,[MV,PV],[[0,{[W]:`ProductCode`,[K]:sge}],[0,{[W]:`Type`,[K]:lQ}]]],fSe=[3,q,SH,0,[LF],[[0,{[W]:`GatewayId`,[K]:hX}]]],pSe=[3,q,AV,0,[bH,jH,kU,FU,CG],[[4,{[W]:`ProvisionTime`,[K]:Cge}],[0,{[W]:`Provisioned`,[K]:kge}],[4,{[W]:`RequestTime`,[K]:Gge}],[0,{[W]:`Requested`,[K]:Yge}],[0,{[W]:`Status`,[K]:nQ}]]],mSe=[3,q,JH,0,[hL,U],[[()=>e$,{[K]:YI}],[2,{[W]:`DryRun`,[K]:cY}]],1],hSe=[3,q,uU,0,[VF,_H,sK,AK,KK],[[0,{[W]:`GroupId`,[K]:gX}],[0,{[W]:`PeeringStatus`,[K]:OZ}],[0,{[W]:`UserId`,[K]:uQ}],[0,{[W]:`VpcId`,[K]:mQ}],[0,{[W]:`VpcPeeringConnectionId`,[K]:_Q}]]],gSe=[3,q,PU,0,[mV,XF,sU,dF],[[0,{[W]:`OptInStatus`,[K]:vZ}],[()=>cwe,{[W]:`GeographySet`,[K]:vX}],[0,{[W]:`RegionName`,[K]:IZ}],[0,{[W]:`RegionEndpoint`,[K]:jge}]]],_Se=[3,q,UH,0,[TB],[[0,{[W]:`Name`,[K]:oZ}]]],vSe=[3,q,PH,0,[DA,QV,EB,U],[0,0,0,[2,{[W]:`DryRun`,[K]:cY}]]],LQ=[3,q,LU,0,[QH,pV,eU,OF,YR],[[0,{[W]:`ReservationId`,[K]:Fge}],[0,{[W]:`OwnerId`,[K]:_Z}],[0,{[W]:`RequesterId`,[K]:Lge}],[()=>QQ,{[W]:`GroupSet`,[K]:yX}],[()=>TCe,{[W]:`InstancesSet`,[K]:zX}]]],ySe=[3,q,_U,0,[sW,VF,RI,lR,xF,HG,cj,sj,pH,WH,ZN],[[0,{[W]:`SecurityGroupRuleId`,[K]:HZ}],[0,{[W]:`GroupId`,[K]:gX}],[2,{[W]:`IsEgress`,[K]:kX}],[0,{[W]:`IpProtocol`,[K]:LX}],[1,{[W]:`FromPort`,[K]:dX}],[1,{[W]:`ToPort`,[K]:iQ}],[0,{[W]:`CidrIpv4`,[K]:EJ}],[0,{[W]:`CidrIpv6`,[K]:TJ}],[0,{[W]:`PrefixListId`,[K]:DZ}],[0,{[W]:`ReferencedGroupId`,[K]:Nge}],[0,{[W]:`Description`,[K]:_Y}]]],bSe=[3,q,fU,0,[VF,aW,U,aG,oG,lR,xF,HG,oj,sR],[[0,{[W]:`GroupId`,[K]:gX}],[()=>c$,{[K]:sW}],[2,{[W]:`DryRun`,[K]:cY}],[0,{[W]:`SourceSecurityGroupName`,[K]:ZZ}],[0,{[W]:`SourceSecurityGroupOwnerId`,[K]:QZ}],[0,{[W]:`IpProtocol`,[K]:LX}],[1,{[W]:`FromPort`,[K]:dX}],[1,{[W]:`ToPort`,[K]:iQ}],[0,{[W]:`CidrIp`,[K]:wJ}],[()=>r$,{[W]:`IpPermissions`,[K]:RX}]],1],xSe=[3,q,pU,0,[NH,dK,yU],[[2,{[W]:`Return`,[K]:MZ}],[()=>r$,{[W]:`UnknownIpPermissionSet`,[K]:dQ}],[()=>o$,{[W]:`RevokedSecurityGroupRuleSet`,[K]:LZ}]]],SSe=[3,q,mU,0,[oj,xF,VF,GF,sR,lR,aG,oG,HG,aW,U],[0,1,0,0,[()=>r$,0],0,0,0,1,[()=>c$,{[K]:sW}],[2,{[W]:`DryRun`,[K]:cY}]]],CSe=[3,q,hU,0,[NH,dK,yU],[[2,{[W]:`Return`,[K]:MZ}],[()=>r$,{[W]:`UnknownIpPermissionSet`,[K]:dQ}],[()=>o$,{[W]:`RevokedSecurityGroupRuleSet`,[K]:LZ}]]],wSe=[3,q,RU,0,[$j,sM,tN,BP,LF,YI,GL,GB,AG,bz,ij,XB,uV,SG,KK,lj,vV,SI],[[0,{[W]:`DestinationCidrBlock`,[K]:qJ}],[0,{[W]:`DestinationIpv6CidrBlock`,[K]:eY}],[0,{[W]:`DestinationPrefixListId`,[K]:oY}],[0,{[W]:`EgressOnlyInternetGatewayId`,[K]:UY}],[0,{[W]:`GatewayId`,[K]:hX}],[0,{[W]:`InstanceId`,[K]:MX}],[0,{[W]:`InstanceOwnerId`,[K]:Mme}],[0,{[W]:`NatGatewayId`,[K]:dZ}],[0,{[W]:`TransitGatewayId`,[K]:N_e}],[0,{[W]:`LocalGatewayId`,[K]:lhe}],[0,{[W]:`CarrierGatewayId`,[K]:bJ}],[0,{[W]:`NetworkInterfaceId`,[K]:fZ}],[0,{[W]:`Origin`,[K]:Jhe}],[0,{[W]:`State`,[K]:tQ}],[0,{[W]:`VpcPeeringConnectionId`,[K]:_Q}],[0,{[W]:`CoreNetworkArn`,[K]:OJ}],[0,{[W]:`OdbNetworkArn`,[K]:Qhe}],[0,{[W]:`IpAddress`,[K]:wX}]]],RQ=[3,q,AU,0,[$fe,wH,wU,zU,DG,AK,pV],[[()=>mwe,{[W]:`AssociationSet`,[K]:Hq}],[()=>owe,{[W]:`PropagatingVgwSet`,[K]:Tge}],[0,{[W]:`RouteTableId`,[K]:RZ}],[()=>pwe,{[W]:`RouteSet`,[K]:Vge}],[()=>u$,{[W]:`TagSet`,[K]:aQ}],[0,{[W]:`VpcId`,[K]:mQ}],[0,{[W]:`OwnerId`,[K]:_Z}]]],TSe=[3,q,bU,0,[vB,xU,wU,zW,LF,aH,PA],[[2,{[W]:`Main`,[K]:khe}],[0,{[W]:`RouteTableAssociationId`,[K]:Hge}],[0,{[W]:`RouteTableId`,[K]:RZ}],[0,{[W]:`SubnetId`,[K]:KZ}],[0,{[W]:`GatewayId`,[K]:hX}],[0,{[W]:`PublicIpv4Pool`,[K]:EZ}],[()=>zQ,{[W]:`AssociationState`,[K]:Rq}]]],zQ=[3,q,CU,0,[SG,KW],[[0,{[W]:`State`,[K]:tQ}],[0,{[W]:`StatusMessage`,[K]:qZ}]]],ESe=[3,q,qH,0,[lF],[[2,{[W]:`Enabled`,[K]:aX}]],1],DSe=[3,q,YH,0,[Vz,Hz,YA,pL,RR,mI,fI,ez,rz,wB,OH,ZH,tW,dW,zW,oK,yP,kP,GG,Dz,kL,Sj,uj,gj,tI,wz,iB,UP,BV,aB,Gj,WP,tV,TV,jW,U,Kj,uL,nH,Ej,EA,QB,$I,IP],[1,1,[()=>XQ,{[K]:JA}],0,0,1,[()=>t$,{[K]:CI}],0,0,[()=>ESe,0],[()=>FQ,0],0,[()=>s$,{[K]:$U}],[()=>vwe,{[K]:fW}],0,[()=>bve,0],[()=>uCe,0],[()=>fCe,{[K]:xP}],[()=>d$,{[K]:JG}],()=>Lxe,()=>fxe,()=>bye,()=>Qve,()=>Uve,()=>Ybe,[()=>KCe,{[K]:Ez}],()=>pxe,()=>Lbe,()=>sSe,()=>dxe,2,2,()=>yxe,()=>NQ,[()=>MCe,{[K]:MW}],[2,{[W]:`DryRun`,[K]:cY}],[2,{[W]:`DisableApiTermination`,[K]:KJ}],[0,{[W]:`InstanceInitiatedShutdownBehavior`,[K]:FX}],[0,{[W]:`PrivateIpAddress`,[K]:TZ}],[0,{[W]:`ClientToken`,[ehe]:1,[K]:RJ}],[0,{[W]:`AdditionalInfo`,[K]:Tq}],[()=>DCe,{[W]:`NetworkInterface`,[K]:Bhe}],[()=>OQ,{[W]:`IamInstanceProfile`,[K]:NX}],[2,{[W]:`EbsOptimized`,[K]:BY}]],2],OSe=[3,q,fW,0,[VF,YL,DG,AK,QU,pV,GF,ZN,sR],[[0,{[W]:`GroupId`,[K]:gX}],[()=>r$,{[W]:`IpPermissionsEgress`,[K]:Fme}],[()=>u$,{[W]:`TagSet`,[K]:aQ}],[0,{[W]:`VpcId`,[K]:mQ}],[0,{[W]:`SecurityGroupArn`,[K]:VZ}],[0,{[W]:`OwnerId`,[K]:_Z}],[0,{[W]:`GroupName`,[K]:_X}],[0,{[W]:`GroupDescription`,[K]:$pe}],[()=>r$,{[W]:`IpPermissions`,[K]:RX}]]],kSe=[3,q,lW,0,[sW,VF,JF,RI,lR,xF,HG,cj,sj,pH,GH,ZN,DG,iW],[[0,{[W]:`SecurityGroupRuleId`,[K]:HZ}],[0,{[W]:`GroupId`,[K]:gX}],[0,{[W]:`GroupOwnerId`,[K]:nme}],[2,{[W]:`IsEgress`,[K]:kX}],[0,{[W]:`IpProtocol`,[K]:LX}],[1,{[W]:`FromPort`,[K]:dX}],[1,{[W]:`ToPort`,[K]:iQ}],[0,{[W]:`CidrIpv4`,[K]:EJ}],[0,{[W]:`CidrIpv6`,[K]:TJ}],[0,{[W]:`PrefixListId`,[K]:DZ}],[()=>hSe,{[W]:`ReferencedGroupInfo`,[K]:Pge}],[0,{[W]:`Description`,[K]:_Y}],[()=>u$,{[W]:`TagSet`,[K]:aQ}],[0,{[W]:`SecurityGroupRuleArn`,[K]:r_e}]]],BQ=[3,q,xG,0,[fV,dV,DG,pG,VH,fG,LA,QG,rj,jj,CF,NW,IK,SG,qW,uG,AH,pV,ZN,QK,uF,tz,nM],[[0,{[W]:`OwnerAlias`,[K]:Yhe}],[0,{[W]:`OutpostArn`,[K]:gZ}],[()=>u$,{[W]:`TagSet`,[K]:aQ}],[0,{[W]:`StorageTier`,[K]:C_e}],[4,{[W]:`RestoreExpiryTime`,[K]:Age}],[0,{[W]:`SseType`,[K]:eQ}],[0,{[W]:`AvailabilityZone`,[K]:Kq}],[0,{[W]:`TransferType`,[K]:W_e}],[1,{[W]:`CompletionDurationMinutes`,[K]:vJ}],[4,{[W]:`CompletionTime`,[K]:BJ}],[1,{[W]:`FullSnapshotSizeInBytes`,[K]:pX}],[0,{[W]:`SnapshotId`,[K]:GZ}],[0,{[W]:`VolumeId`,[K]:hQ}],[0,{[W]:`Status`,[K]:nQ}],[0,{[W]:`StatusMessage`,[K]:qZ}],[4,{[W]:`StartTime`,[K]:$Z}],[0,{[W]:`Progress`,[K]:jZ}],[0,{[W]:`OwnerId`,[K]:_Z}],[0,{[W]:`Description`,[K]:_Y}],[1,{[W]:`VolumeSize`,[K]:vQ}],[2,{[W]:`Encrypted`,[K]:oX}],[0,{[W]:`KmsKeyId`,[K]:qX}],[0,{[W]:`DataEncryptionKeyId`,[K]:YJ}]]],ASe=[3,q,GW,0,[sB,AW,ape,rq,QI],[0,0,1,4,0]],jSe=[3,q,CW,0,[hL,EA,U],[[()=>e$,{[K]:YI}],[0,{[W]:`AdditionalInfo`,[K]:Tq}],[2,{[W]:`DryRun`,[K]:cY}]],1],MSe=[3,q,wW,0,[FW],[[()=>n$,{[W]:`InstancesSet`,[K]:zX}]]],VQ=[3,q,iG,0,[zj,xB],[[0,{[W]:`Code`,[K]:UJ}],[0,{[W]:`Message`,[K]:aZ}]]],NSe=[3,q,TW,0,[hL,lI,QW,U,fF],[[()=>e$,{[K]:YI}],2,2,[2,{[W]:`DryRun`,[K]:cY}],[2,{[W]:`Force`,[K]:Xpe}]],1],PSe=[3,q,EW,0,[LW],[[()=>n$,{[W]:`InstancesSet`,[K]:zX}]]],HQ=[3,q,TG,0,[BA,FP,Bz,fj,pV,TA,kI,DG,UU,dV,lP,ML,VV,QA,iK,zW,SG,AK,tj,ufe,LA,iM,oB],[[0,{[W]:`AvailabilityZoneId`,[K]:qq}],[1,{[W]:`EnableLniAtDeviceIndex`,[K]:zY}],[2,{[W]:`MapCustomerOwnedIpOnLaunch`,[K]:_he}],[0,{[W]:`CustomerOwnedIpv4Pool`,[K]:jJ}],[0,{[W]:`OwnerId`,[K]:_Z}],[2,{[W]:`AssignIpv6AddressOnCreation`,[K]:wq}],[()=>Swe,{[W]:`Ipv6CidrBlockAssociationSet`,[K]:DX}],[()=>u$,{[W]:`TagSet`,[K]:aQ}],[0,{[W]:`SubnetArn`,[K]:Zge}],[0,{[W]:`OutpostArn`,[K]:gZ}],[2,{[W]:`EnableDns64`,[K]:wY}],[2,{[W]:`Ipv6Native`,[K]:kme}],[()=>oSe,{[W]:`PrivateDnsNameOptionsOnLaunch`,[K]:lge}],[()=>TQ,{[W]:`BlockPublicAccessStates`,[K]:cJ}],[0,{[W]:`Type`,[K]:lQ}],[0,{[W]:`SubnetId`,[K]:KZ}],[0,{[W]:`State`,[K]:tQ}],[0,{[W]:`VpcId`,[K]:mQ}],[0,{[W]:`CidrBlock`,[K]:pJ}],[1,{[W]:`AvailableIpAddressCount`,[K]:Cq}],[0,{[W]:`AvailabilityZone`,[K]:Kq}],[2,{[W]:`DefaultForAz`,[K]:ZJ}],[2,{[W]:`MapPublicIpOnLaunch`,[K]:Ehe}]]],FSe=[3,q,KU,0,[SG,KW],[[0,{[W]:`State`,[K]:tQ}],[0,{[W]:`StatusMessage`,[K]:qZ}]]],ISe=[3,q,mW,0,[kA,OI,jI,pI,IR],[[0,{[W]:`AssociationId`,[K]:Eq}],[0,{[W]:`Ipv6CidrBlock`,[K]:EX}],[()=>FSe,{[W]:`Ipv6CidrBlockState`,[K]:OX}],[0,{[W]:`Ipv6AddressAttribute`,[K]:SX}],[0,{[W]:`IpSource`,[K]:BX}]]],LSe=[3,q,eK,0,[ZR,gK],[[0,{[W]:`Key`,[K]:nhe}],[0,{[W]:`Value`,[K]:pQ}]]],RSe=[3,q,JG,0,[OU,DG],[[0,{[W]:`ResourceType`,[K]:Wge}],[()=>u$,{[K]:eK}]]],zSe=[3,q,PG,0,[hL,fF,QW,U],[[()=>e$,{[K]:YI}],2,2,[2,{[W]:`DryRun`,[K]:cY}]],1],BSe=[3,q,FG,0,[LG],[[()=>n$,{[W]:`InstancesSet`,[K]:zX}]]],VSe=[3,q,uK,0,[ZN,sK,GF,VF,AK,KK,_H],[[0,{[W]:`Description`,[K]:_Y}],[0,{[W]:`UserId`,[K]:uQ}],[0,{[W]:`GroupName`,[K]:_X}],[0,{[W]:`GroupId`,[K]:gX}],[0,{[W]:`VpcId`,[K]:mQ}],[0,{[W]:`VpcPeeringConnectionId`,[K]:_Q}],[0,{[W]:`PeeringStatus`,[K]:OZ}]]],HSe=[3,q,SK,0,[RN,tM,NN,CK,tq],[[1,{[W]:`DefaultVCpus`,[K]:gY}],[1,{[W]:`DefaultCores`,[K]:JJ}],[1,{[W]:`DefaultThreadsPerCore`,[K]:dY}],[()=>oCe,{[W]:`ValidCores`,[K]:Z_e}],[()=>Twe,{[W]:`ValidThreadsPerCore`,[K]:cve}]]],UQ=[3,q,sq,0,[BA,dV,gG,XR,DG,$K,SF,Iz,nK,fG,TV,NK,IK,yG,NW,LA,SG,Nj,KA,uF,tz],[[0,{[W]:`AvailabilityZoneId`,[K]:qq}],[0,{[W]:`OutpostArn`,[K]:gZ}],[0,{[W]:`SourceVolumeId`,[K]:T_e}],[1,{[W]:`Iops`,[K]:WX}],[()=>u$,{[W]:`TagSet`,[K]:aQ}],[0,{[W]:`VolumeType`,[K]:yQ}],[2,{[W]:`FastRestored`,[K]:fX}],[2,{[W]:`MultiAttachEnabled`,[K]:hhe}],[1,{[W]:`Throughput`,[K]:sQ}],[0,{[W]:`SseType`,[K]:eQ}],[()=>PQ,{[W]:`Operator`,[K]:yZ}],[1,{[W]:`VolumeInitializationRate`,[K]:eve}],[0,{[W]:`VolumeId`,[K]:hQ}],[1,{[W]:`Size`,[K]:O_e}],[0,{[W]:`SnapshotId`,[K]:GZ}],[0,{[W]:`AvailabilityZone`,[K]:Kq}],[0,{[W]:`Status`,[K]:nQ}],[4,{[W]:`CreateTime`,[K]:HJ}],[()=>Awe,{[W]:`AttachmentSet`,[K]:Uq}],[2,{[W]:`Encrypted`,[K]:oX}],[0,{[W]:`KmsKeyId`,[K]:qX}]]],WQ=[3,q,vK,0,[YM,MA,KL,iP,IK,YI,QN,SG,IA],[[2,{[W]:`DeleteOnTermination`,[K]:aY}],[0,{[W]:`AssociatedResource`,[K]:Iq}],[0,{[W]:`InstanceOwningService`,[K]:Pme}],[1,{[W]:`EbsCardIndex`,[K]:xY}],[0,{[W]:`VolumeId`,[K]:hQ}],[0,{[W]:`InstanceId`,[K]:MX}],[0,{[W]:`Device`,[K]:vY}],[0,{[W]:`Status`,[K]:nQ}],[4,{[W]:`AttachTime`,[K]:Gq}]]],USe=[3,q,UK,0,[IK,fB,KW,YG,IG,$G,ZG,zG,SV,hV,wV,CV,_V,AH,uG,oF,TV],[[0,{[W]:`VolumeId`,[K]:hQ}],[0,{[W]:`ModificationState`,[K]:nZ}],[0,{[W]:`StatusMessage`,[K]:qZ}],[1,{[W]:`TargetSize`,[K]:H_e}],[1,{[W]:`TargetIops`,[K]:I_e}],[0,{[W]:`TargetVolumeType`,[K]:G_e}],[1,{[W]:`TargetThroughput`,[K]:U_e}],[2,{[W]:`TargetMultiAttachEnabled`,[K]:L_e}],[1,{[W]:`OriginalSize`,[K]:$he}],[1,{[W]:`OriginalIops`,[K]:Xhe}],[0,{[W]:`OriginalVolumeType`,[K]:tge}],[1,{[W]:`OriginalThroughput`,[K]:ege}],[2,{[W]:`OriginalMultiAttachEnabled`,[K]:Zhe}],[1,{[W]:`Progress`,[K]:jZ}],[4,{[W]:`StartTime`,[K]:$Z}],[4,{[W]:`EndTime`,[K]:rX}],[()=>PQ,{[W]:`Operator`,[K]:yZ}]]],GQ=[3,q,cq,0,[pV,HR,kI,dpe,LI,cP,DG,QA,AK,SG,tj,JM],[[0,{[W]:`OwnerId`,[K]:_Z}],[0,{[W]:`InstanceTenancy`,[K]:HX}],[()=>Fwe,{[W]:`Ipv6CidrBlockAssociationSet`,[K]:DX}],[()=>Nwe,{[W]:`CidrBlockAssociationSet`,[K]:mJ}],[2,{[W]:`IsDefault`,[K]:Sme}],[()=>GSe,{[W]:`EncryptionControl`,[K]:CY}],[()=>u$,{[W]:`TagSet`,[K]:aQ}],[()=>TQ,{[W]:`BlockPublicAccessStates`,[K]:cJ}],[0,{[W]:`VpcId`,[K]:mQ}],[0,{[W]:`State`,[K]:tQ}],[0,{[W]:`CidrBlock`,[K]:pJ}],[0,{[W]:`DhcpOptionsId`,[K]:iY}]]],WSe=[3,q,yK,0,[kA,tj,ppe],[[0,{[W]:`AssociationId`,[K]:Eq}],[0,{[W]:`CidrBlock`,[K]:pJ}],[()=>KQ,{[W]:`CidrBlockState`,[K]:gJ}]]],KQ=[3,q,xK,0,[SG,KW],[[0,{[W]:`State`,[K]:tQ}],[0,{[W]:`StatusMessage`,[K]:qZ}]]],GSe=[3,q,wK,0,[AK,OK,CB,SG,qW,HH,DG],[[0,{[W]:`VpcId`,[K]:mQ}],[0,{[W]:`VpcEncryptionControlId`,[K]:Q_e}],[0,{[W]:`Mode`,[K]:Mhe}],[0,{[W]:`State`,[K]:tQ}],[0,{[W]:`StateMessage`,[K]:JZ}],[()=>qSe,{[W]:`ResourceExclusions`,[K]:Mge}],[()=>u$,{[W]:`TagSet`,[K]:aQ}]]],KSe=[3,q,TK,0,[CB,UI,zP,WB,YK,qK,vz,BK,dP],[0,0,0,0,0,0,0,0,0],1],qQ=[3,q,EK,0,[SG,qW],[[0,{[W]:`State`,[K]:tQ}],[0,{[W]:`StateMessage`,[K]:JZ}]]],qSe=[3,q,DK,0,[zI,RP,RB,JK,XK,Nz,zK,uP],[[()=>qQ,{[W]:`InternetGateway`,[K]:AX}],[()=>qQ,{[W]:`EgressOnlyInternetGateway`,[K]:HY}],[()=>qQ,{[W]:`NatGateway`,[K]:uZ}],[()=>qQ,{[W]:`VirtualPrivateGateway`,[K]:ive}],[()=>qQ,{[W]:`VpcPeering`,[K]:ave}],[()=>qQ,{[W]:`Lambda`,[K]:mhe}],[()=>qQ,{[W]:`VpcLattice`,[K]:tve}],[()=>qQ,{[W]:`ElasticFileSystem`,[K]:TY}]]],JSe=[3,q,jK,0,[kA,OI,jI,EB,dR,pI,IR],[[0,{[W]:`AssociationId`,[K]:Eq}],[0,{[W]:`Ipv6CidrBlock`,[K]:EX}],[()=>KQ,{[W]:`Ipv6CidrBlockState`,[K]:OX}],[0,{[W]:`NetworkBorderGroup`,[K]:sZ}],[0,{[W]:`Ipv6Pool`,[K]:Bme}],[0,{[W]:`Ipv6AddressAttribute`,[K]:SX}],[0,{[W]:`IpSource`,[K]:BX}]]],JQ=`unit`,YSe=[1,q,xfe,0,[()=>Sve,{[K]:G}]],YQ=[1,q,gfe,0,[0,{[K]:DA}]],XSe=[1,q,zfe,0,[0,{[K]:G}]],ZSe=[1,q,_fe,0,[0,{[K]:kA}]],QSe=[1,q,zA,0,[()=>Rve,{[K]:RA}]],$Se=[1,q,Wfe,0,[()=>zve,{[K]:G}]],eCe=[1,q,Gfe,0,[()=>Lve,{[K]:G}]],tCe=[1,q,qfe,0,[()=>Bve,{[K]:G}]],nCe=[1,q,Yfe,0,[()=>Vve,{[K]:G}]],rCe=[1,q,lpe,0,[0,{[K]:G}]],iCe=[1,q,rpe,0,[()=>wQ,{[K]:G}]],XQ=[1,q,ipe,0,[()=>wQ,{[K]:JA}]],aCe=[1,q,ope,0,[0,{[K]:G}]],oCe=[1,q,mpe,0,[1,{[K]:G}]],sCe=[1,q,xM,0,[()=>Sbe,{[K]:G}]],cCe=[1,q,aP,0,[()=>wbe,{[K]:G}]],lCe=[1,q,mP,0,[()=>Abe,{[K]:G}]],uCe=[1,q,bP,0,[()=>jbe,{[K]:G}]],dCe=[1,q,wP,0,[()=>Nbe,{[K]:G}]],fCe=[1,q,kP,0,[()=>Mbe,{[K]:G}]],pCe=[1,q,nP,0,[0,{[K]:rP}]],ZQ=[1,q,yF,0,[()=>Rbe,{[K]:EF}]],mCe=[1,q,hF,0,[()=>zbe,{[K]:G}]],hCe=[1,q,FF,0,[()=>Wbe,{[K]:G}]],QQ=[1,q,RF,0,[()=>qbe,{[K]:G}]],$Q=[1,q,zF,0,[0,{[K]:gX}]],gCe=[1,q,KF,0,[0,{[K]:GF}]],_Ce=[1,q,tL,0,[()=>DQ,{[K]:G}]],vCe=[1,q,dL,0,[0,{[K]:pL}]],yCe=[1,q,bL,0,[()=>Xbe,{[K]:G}]],bCe=[1,q,PI,0,[()=>exe,0]],xCe=[1,q,TI,0,[()=>axe,{[K]:G}]],SCe=[1,q,DI,0,[()=>oxe,{[K]:G}]],e$=[1,q,fL,0,[0,{[K]:YI}]],CCe=[1,q,aL,0,[()=>sxe,{[K]:G}]],t$=[1,q,ZI,0,[()=>cxe,{[K]:G}]],wCe=[1,q,oL,0,[()=>lxe,{[K]:G}]],TCe=[1,q,SL,0,[()=>nxe,{[K]:G}]],ECe=[1,q,IL,0,[()=>hxe,{[K]:G}]],DCe=[1,q,RL,0,[()=>_xe,{[K]:G}]],OCe=[1,q,QL,0,[()=>bxe,{[K]:G}]],kCe=[1,q,wR,0,[()=>xxe,{[K]:G}]],ACe=[1,q,ER,0,[()=>Cxe,{[K]:G}]],jCe=[1,q,DR,0,[()=>wxe,{[K]:G}]],MCe=[1,q,kR,0,[()=>Txe,{[K]:G}]],n$=[1,q,SR,0,[()=>Exe,{[K]:G}]],NCe=[1,q,zR,0,[()=>Oxe,{[K]:G}]],PCe=[1,q,VI,0,[()=>kxe,{[K]:G}]],FCe=[1,q,GI,0,[0,{[K]:G}]],ICe=[1,q,qI,0,[()=>jQ,{[K]:G}]],LCe=[1,q,CL,0,[0,{[K]:G}]],r$=[1,q,tR,0,[()=>Axe,{[K]:G}]],RCe=[1,q,hR,0,[()=>jxe,{[K]:G}]],zCe=[1,q,nR,0,[()=>Mxe,{[K]:G}]],BCe=[1,q,rR,0,[()=>Nxe,{[K]:G}]],VCe=[1,q,gR,0,[()=>Pxe,{[K]:G}]],HCe=[1,q,iz,0,[0,{[K]:rz}]],UCe=[1,q,cz,0,[0,{[K]:sz}]],WCe=[1,q,dz,0,[()=>Ixe,{[K]:G}]],GCe=[1,q,Sz,0,[()=>Rxe,{[K]:G}]],KCe=[1,q,Tz,0,[()=>zxe,{[K]:G}]],qCe=[1,q,Wz,0,[()=>Vxe,{[K]:G}]],JCe=[1,q,HB,0,[()=>Yxe,{[K]:G}]],YCe=[1,q,VB,0,[()=>Xxe,{[K]:G}]],XCe=[1,q,KB,0,[0,{[K]:G}]],ZCe=[1,q,JB,0,[()=>MQ,{[K]:G}]],QCe=[1,q,kB,0,[()=>Zxe,{[K]:G}]],$Ce=[1,q,PB,0,[()=>eSe,{[K]:G}]],ewe=[1,q,sV,0,[0,{[K]:G}]],i$=[1,q,xV,0,[0,{[K]:OV}]],twe=[1,q,JV,0,[0,{[K]:VF}]],nwe=[1,q,YV,0,[()=>IQ,{[K]:G}]],rwe=[1,q,XV,0,[0,{[K]:G}]],iwe=[1,q,mH,0,[()=>aSe,{[K]:G}]],awe=[1,q,tH,0,[()=>lSe,{[K]:G}]],a$=[1,q,NV,0,[()=>dSe,{[K]:G}]],owe=[1,q,CH,0,[()=>fSe,{[K]:G}]],swe=[1,q,oH,0,[0,{[K]:QV}]],cwe=[1,q,KH,0,[()=>_Se,{[K]:G}]],lwe=[1,q,nU,0,[()=>gSe,{[K]:G}]],uwe=[1,q,cU,0,[0,{[K]:sU}]],dwe=[1,q,rU,0,[()=>LQ,{[K]:G}]],o$=[1,q,vU,0,[()=>ySe,{[K]:G}]],fwe=[1,q,BH,0,[0,{[K]:G}]],pwe=[1,q,iU,0,[()=>wSe,{[K]:G}]],mwe=[1,q,SU,0,[()=>TSe,{[K]:G}]],hwe=[1,q,TU,0,[0,{[K]:G}]],gwe=[1,q,DU,0,[()=>RQ,{[K]:G}]],s$=[1,q,eW,0,[0,{[K]:$U}]],_we=[1,q,nW,0,[()=>OSe,{[K]:G}]],c$=[1,q,oW,0,[0,{[K]:G}]],l$=[1,q,cW,0,[()=>kSe,{[K]:G}]],vwe=[1,q,uW,0,[0,{[K]:fW}]],ywe=[1,q,OW,0,[0,{[K]:NW}]],bwe=[1,q,VW,0,[()=>BQ,{[K]:G}]],xwe=[1,q,kW,0,[0,{[K]:zW}]],Swe=[1,q,hW,0,[()=>ISe,{[K]:G}]],Cwe=[1,q,UW,0,[()=>HQ,{[K]:G}]],wwe=[1,q,HU,0,[0,{[K]:G}]],u$=[1,q,RG,0,[()=>LSe,{[K]:G}]],d$=[1,q,qG,0,[()=>RSe,{[K]:G}]],Twe=[1,q,WG,0,[1,{[K]:G}]],Ewe=[1,q,aK,0,[0,{[K]:G}]],Dwe=[1,q,lK,0,[()=>VSe,{[K]:G}]],Owe=[1,q,ZK,0,[0,{[K]:G}]],kwe=[1,q,eq,0,[0,{[K]:G}]],Awe=[1,q,_K,0,[()=>WQ,{[K]:G}]],jwe=[1,q,PK,0,[0,{[K]:IK}]],Mwe=[1,q,VK,0,[()=>UQ,{[K]:G}]],Nwe=[1,q,bK,0,[()=>WSe,{[K]:G}]],Pwe=[1,q,FK,0,[0,{[K]:AK}]],Fwe=[1,q,MK,0,[()=>JSe,{[K]:G}]],Iwe=[1,q,HK,0,[()=>GQ,{[K]:G}]],Lwe=[1,q,uq,0,[0,{[K]:G}]],Rwe=[1,q,pq,0,[0,{[K]:fq}]],zwe=[1,q,gq,0,[0,{[K]:hq}]],Bwe=[9,q,rfe,0,()=>Cve,()=>wve],Vwe=[9,q,afe,0,()=>Tve,()=>Eve],Hwe=[9,q,pfe,0,()=>Dve,()=>Ove],Uwe=[9,q,Ofe,0,()=>kve,()=>Ave],Wwe=[9,q,dfe,0,()=>jve,()=>JQ],Gwe=[9,q,Hfe,0,()=>Mve,()=>WQ],Kwe=[9,q,jfe,0,()=>Nve,()=>Pve],qwe=[9,q,Ife,0,()=>Fve,()=>Ive],Jwe=[9,q,xj,0,()=>Yve,()=>Xve],Ywe=[9,q,Tpe,0,()=>$ve,()=>eye],f$=[9,q,ype,0,()=>tye,()=>nye],Xwe=[9,q,Epe,0,()=>rye,()=>Fxe],Zwe=[9,q,Ope,0,()=>iye,()=>aye],Qwe=[9,q,Mpe,0,()=>oye,()=>sye],$we=[9,q,Hpe,0,()=>cye,()=>lye],eTe=[9,q,Vpe,0,()=>uye,()=>dye],tTe=[9,q,Upe,0,()=>fye,()=>pye],nTe=[9,q,Cj,0,()=>mye,()=>BQ],rTe=[9,q,wj,0,()=>hye,()=>gye],iTe=[9,q,Lj,0,()=>_ye,()=>UQ],aTe=[9,q,Rj,0,()=>vye,()=>yye],oTe=[9,q,cM,0,()=>Sye,()=>JQ],sTe=[9,q,MM,0,()=>Cye,()=>wye],cTe=[9,q,VM,0,()=>Tye,()=>Eye],lTe=[9,q,XM,0,()=>Dye,()=>JQ],uTe=[9,q,mN,0,()=>Oye,()=>JQ],dTe=[9,q,oN,0,()=>kye,()=>JQ],fTe=[9,q,gN,0,()=>Aye,()=>jye],pTe=[9,q,ON,0,()=>Mye,()=>JQ],mTe=[9,q,kN,0,()=>Nye,()=>JQ],hTe=[9,q,KN,0,()=>Pye,()=>JQ],gTe=[9,q,qN,0,()=>Fye,()=>JQ],_Te=[9,q,Zj,0,()=>Iye,()=>Lye],vTe=[9,q,Xj,0,()=>Rye,()=>zye],yTe=[9,q,gM,0,()=>Bye,()=>Vye],bTe=[9,q,kM,0,()=>Hye,()=>Uye],xTe=[9,q,AM,0,()=>Wye,()=>Gye],STe=[9,q,OM,0,()=>Kye,()=>qye],CTe=[9,q,pM,0,()=>Jye,()=>Yye],wTe=[9,q,LM,0,()=>Xye,()=>Zye],TTe=[9,q,KM,0,()=>Qye,()=>$ye],ETe=[9,q,eN,0,()=>ebe,()=>tbe],DTe=[9,q,hN,0,()=>nbe,()=>rbe],OTe=[9,q,dN,0,()=>ibe,()=>abe],kTe=[9,q,xN,0,()=>obe,()=>sbe],ATe=[9,q,AN,0,()=>cbe,()=>lbe],jTe=[9,q,jN,0,()=>ube,()=>dbe],MTe=[9,q,JN,0,()=>fbe,()=>pbe],NTe=[9,q,YN,0,()=>mbe,()=>hbe],PTe=[9,q,mM,0,()=>gbe,()=>JQ],FTe=[9,q,XN,0,()=>_be,()=>WQ],ITe=[9,q,Qj,0,()=>vbe,()=>JQ],LTe=[9,q,hM,0,()=>ybe,()=>bbe],RTe=[9,q,fN,0,()=>xbe,()=>JQ],zTe=[9,q,AF,0,()=>Hbe,()=>Ube],BTe=[9,q,gL,0,()=>Zbe,()=>Qbe],VTe=[9,q,eB,0,()=>Wxe,()=>JQ],HTe=[9,q,uB,0,()=>Gxe,()=>JQ],UTe=[9,q,_B,0,()=>Kxe,()=>qxe],WTe=[9,q,$H,0,()=>mSe,()=>JQ],GTe=[9,q,FH,0,()=>vSe,()=>JQ],KTe=[9,q,dU,0,()=>bSe,()=>xSe],qTe=[9,q,gU,0,()=>SSe,()=>CSe],JTe=[9,q,tU,0,()=>DSe,()=>LQ],YTe=[9,q,IW,0,()=>jSe,()=>MSe],XTe=[9,q,RW,0,()=>NSe,()=>PSe],ZTe=[9,q,MG,0,()=>zSe,()=>BSe],QTe=e=>({apiVersion:`2016-11-15`,base64Decoder:e?.base64Decoder??SD,base64Encoder:e?.base64Encoder??CD,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Xde,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Ede,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Yk}],logger:e?.logger??new Vk,protocol:e?.protocol??Vde,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ec2`,errorTypeRegistries:_ve,xmlNamespace:`http://ec2.amazonaws.com/doc/2016-11-15`,version:`2016-11-15`,serviceTarget:`AmazonEC2`},serviceId:e?.serviceId??`EC2`,urlParser:e?.urlParser??GD,utf8Decoder:e?.utf8Decoder??Fb,utf8Encoder:e?.utf8Encoder??Lb}),$Te=e=>{let t=rA(e),n=()=>t().then(Ik),r=QTe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??nA,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Qk({serviceId:r.serviceId,clientVersion:kde.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??eA(`Region is missing`),requestHandler:jD.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||ek),sha256:e?.sha256??wb,streamCollector:e?.streamCollector??ND,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},p$=e=>({setRegion(t){e.region=t},region(){return e.region}}),m$=e=>({region:e.region()}),eEe=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}}},tEe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),nEe=(e,t)=>{let n=Object.assign(p$(e),Rk(e),Tb(e),eEe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,m$(n),zk(n),Eb(n),tEe(n))},rEe=class extends Ak{config;constructor(...[e]){let t=$Te(e||{});super(t),this.initConfig=t;let n=nEe(Dde(Ck(QE(hk(wk(jO(Ode(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(KD(this.config)),this.middlewareStack.use(fk(this.config)),this.middlewareStack.use(Uk(this.config)),this.middlewareStack.use(_k(this.config)),this.middlewareStack.use(tD(this.config)),this.middlewareStack.use(iD(this.config)),this.middlewareStack.use(sD(this.config)),this.middlewareStack.use(fD(this.config,{httpAuthSchemeParametersProvider:wde,identityProviderConfigProvider:async e=>new kO({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(_D(this.config))}destroy(){super.destroy()}},h$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAddresses`,{}).n(`EC2Client`,`DescribeAddressesCommand`).sc(_Te).build(){},iEe=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAvailabilityZones`,{}).n(`EC2Client`,`DescribeAvailabilityZonesCommand`).sc(vTe).build(){},aEe=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeIamInstanceProfileAssociations`,{}).n(`EC2Client`,`DescribeIamInstanceProfileAssociationsCommand`).sc(yTe).build(){},g$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeImages`,{}).n(`EC2Client`,`DescribeImagesCommand`).sc(bTe).build(){},_$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstances`,{}).n(`EC2Client`,`DescribeInstancesCommand`).sc(xTe).build(){},oEe=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstanceTypes`,{}).n(`EC2Client`,`DescribeInstanceTypesCommand`).sc(STe).build(){},v$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInternetGateways`,{}).n(`EC2Client`,`DescribeInternetGatewaysCommand`).sc(CTe).build(){},y$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeKeyPairs`,{}).n(`EC2Client`,`DescribeKeyPairsCommand`).sc(wTe).build(){},b$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeNatGateways`,{}).n(`EC2Client`,`DescribeNatGatewaysCommand`).sc(TTe).build(){},x$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribePlacementGroups`,{}).n(`EC2Client`,`DescribePlacementGroupsCommand`).sc(ETe).build(){},sEe=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRegions`,{}).n(`EC2Client`,`DescribeRegionsCommand`).sc(DTe).build(){},S$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRouteTables`,{}).n(`EC2Client`,`DescribeRouteTablesCommand`).sc(OTe).build(){},C$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSecurityGroups`,{}).n(`EC2Client`,`DescribeSecurityGroupsCommand`).sc(kTe).build(){},w$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSnapshots`,{}).n(`EC2Client`,`DescribeSnapshotsCommand`).sc(ATe).build(){},T$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSubnets`,{}).n(`EC2Client`,`DescribeSubnetsCommand`).sc(jTe).build(){},E$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVolumes`,{}).n(`EC2Client`,`DescribeVolumesCommand`).sc(MTe).build(){},D$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVpcs`,{}).n(`EC2Client`,`DescribeVpcsCommand`).sc(NTe).build(){},cEe=async(e,t,n)=>({operation:ex(t).operation,region:await tx(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function lEe(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`elasticloadbalancing`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var uEe=e=>{let t=[];switch(e.operation){default:t.push(lEe(e))}return t},dEe=e=>{let t=Xk(e);return Object.assign(t,{authSchemePreference:tx(e.authSchemePreference??[])})},fEe=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`elasticloadbalancing`}),O$={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},pEe={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.1045.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-elastic-load-balancing-v2`,"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.8`,"@aws-sdk/credential-provider-node":`^3.972.39`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-user-agent":`^3.972.38`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.24`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.7`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.6`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.3.0`,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/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`}},k$=`ref`,A$=-1,j$=!0,M$=`isSet`,N$=`PartitionResult`,P$=`booleanEquals`,F$=`getAttr`,I$={[k$]:`Endpoint`},L$={[k$]:N$},R$={},z$=[{[k$]:`Region`}],B$={conditions:[[M$,[I$]],[M$,z$],[`aws.partition`,z$,N$],[P$,[{[k$]:`UseFIPS`},j$]],[P$,[{[k$]:`UseDualStack`},j$]],[P$,[{fn:F$,argv:[L$,`supportsDualStack`]},j$]],[P$,[{fn:F$,argv:[L$,`supportsFIPS`]},j$]],[`stringEquals`,[{fn:F$,argv:[L$,`name`]},`aws-us-gov`]]],results:[[A$],[A$,`Invalid Configuration: FIPS and custom endpoint are not supported`],[A$,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[I$,R$],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,R$],[A$,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://elasticloadbalancing.{Region}.amazonaws.com`,R$],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}`,R$],[A$,`FIPS is enabled but this partition does not support FIPS`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}`,R$],[A$,`DualStack is enabled but this partition does not support DualStack`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}`,R$],[A$,`Invalid Configuration: Missing Region`]]},mEe=2,V$=1e8,hEe=new Int32Array([-1,1,-1,0,13,3,1,4,V$+12,2,5,V$+12,3,8,6,4,7,V$+11,5,V$+9,V$+10,4,11,9,6,10,V$+8,7,V$+6,V$+7,5,12,V$+5,6,V$+4,V$+5,3,V$+1,14,4,V$+2,V$+3]),gEe=MO.from(hEe,mEe,B$.conditions,B$.results),_Ee=new NO({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),vEe=(e,t={})=>_Ee.get(e,()=>YO(gEe,{endpointParams:e,logger:t.logger}));IO.aws=QO;var H$=class e extends Pk{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},yEe=class e extends H${name=`CertificateNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CertificateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},bEe=class e extends H${name=`ListenerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ListenerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},xEe=class e extends H${name=`TooManyCertificatesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyCertificatesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},SEe=class e extends H${name=`DuplicateTagKeysException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTagKeysException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},CEe=class e extends H${name=`LoadBalancerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`LoadBalancerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},wEe=class e extends H${name=`RuleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},TEe=class e extends H${name=`TargetGroupNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},EEe=class e extends H${name=`TooManyTagsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},DEe=class e extends H${name=`TrustStoreNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},OEe=class e extends H${name=`InvalidRevocationContentException`;$fault=`client`;Message;constructor(t){super({name:`InvalidRevocationContentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},kEe=class e extends H${name=`RevocationContentNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationContentNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},AEe=class e extends H${name=`TooManyTrustStoreRevocationEntriesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoreRevocationEntriesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},jEe=class e extends H${name=`AllocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`AllocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},MEe=class e extends H${name=`ALPNPolicyNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`ALPNPolicyNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},NEe=class e extends H${name=`AvailabilityZoneNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`AvailabilityZoneNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},PEe=class e extends H${name=`CaCertificatesBundleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CaCertificatesBundleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},FEe=class e extends H${name=`CapacityDecreaseRequestsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityDecreaseRequestsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},IEe=class e extends H${name=`CapacityReservationPendingException`;$fault=`client`;Message;constructor(t){super({name:`CapacityReservationPendingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},LEe=class e extends H${name=`CapacityUnitsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityUnitsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},REe=class e extends H${name=`DuplicateListenerException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateListenerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},zEe=class e extends H${name=`IncompatibleProtocolsException`;$fault=`client`;Message;constructor(t){super({name:`IncompatibleProtocolsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},BEe=class e extends H${name=`InvalidConfigurationRequestException`;$fault=`client`;Message;constructor(t){super({name:`InvalidConfigurationRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},VEe=class e extends H${name=`InvalidLoadBalancerActionException`;$fault=`client`;Message;constructor(t){super({name:`InvalidLoadBalancerActionException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},HEe=class e extends H${name=`SSLPolicyNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SSLPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},UEe=class e extends H${name=`TargetGroupAssociationLimitException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupAssociationLimitException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},WEe=class e extends H${name=`TooManyActionsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyActionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},GEe=class e extends H${name=`TooManyListenersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyListenersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},KEe=class e extends H${name=`TooManyRegistrationsForTargetIdException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRegistrationsForTargetIdException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},qEe=class e extends H${name=`TooManyTargetsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},JEe=class e extends H${name=`TooManyUniqueTargetGroupsPerLoadBalancerException`;$fault=`client`;Message;constructor(t){super({name:`TooManyUniqueTargetGroupsPerLoadBalancerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},YEe=class e extends H${name=`TrustStoreNotReadyException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},XEe=class e extends H${name=`UnsupportedProtocolException`;$fault=`client`;Message;constructor(t){super({name:`UnsupportedProtocolException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ZEe=class e extends H${name=`DuplicateLoadBalancerNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateLoadBalancerNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},QEe=class e extends H${name=`InvalidSchemeException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSchemeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},$Ee=class e extends H${name=`InvalidSecurityGroupException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSecurityGroupException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},eDe=class e extends H${name=`InvalidSubnetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSubnetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},tDe=class e extends H${name=`OperationNotPermittedException`;$fault=`client`;Message;constructor(t){super({name:`OperationNotPermittedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},nDe=class e extends H${name=`ResourceInUseException`;$fault=`client`;Message;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},rDe=class e extends H${name=`SubnetNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SubnetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},iDe=class e extends H${name=`TooManyLoadBalancersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyLoadBalancersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},aDe=class e extends H${name=`PriorityInUseException`;$fault=`client`;Message;constructor(t){super({name:`PriorityInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},oDe=class e extends H${name=`TooManyRulesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRulesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},sDe=class e extends H${name=`TooManyTargetGroupsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetGroupsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},cDe=class e extends H${name=`DuplicateTargetGroupNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTargetGroupNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},lDe=class e extends H${name=`DuplicateTrustStoreNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTrustStoreNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},uDe=class e extends H${name=`InvalidCaCertificatesBundleException`;$fault=`client`;Message;constructor(t){super({name:`InvalidCaCertificatesBundleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},dDe=class e extends H${name=`TooManyTrustStoresException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoresException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},fDe=class e extends H${name=`DeleteAssociationSameAccountException`;$fault=`client`;Message;constructor(t){super({name:`DeleteAssociationSameAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},pDe=class e extends H${name=`TrustStoreAssociationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreAssociationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},mDe=class e extends H${name=`TrustStoreInUseException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},hDe=class e extends H${name=`InvalidTargetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidTargetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},gDe=class e extends H${name=`HealthUnavailableException`;$fault=`server`;Message;constructor(t){super({name:`HealthUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},_De=class e extends H${name=`RevocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},vDe=class e extends H${name=`ResourceNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},yDe=class e extends H${name=`InsufficientCapacityException`;$fault=`server`;Message;constructor(t){super({name:`InsufficientCapacityException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},bDe=class e extends H${name=`PriorRequestNotCompleteException`;$fault=`client`;Message;constructor(t){super({name:`PriorRequestNotCompleteException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},xDe=`Action`,SDe=`AdditionalClaims`,CDe=`AuthenticateCognitoActionConfig`,wDe=`AuthenticateCognitoConfig`,U$=`AnomalyDetection`,TDe=`AuthorizationEndpoint`,W$=`AllocationId`,EDe=`AllocationIdNotFoundException`,DDe=`ALPNPolicyNotSupportedException`,G$=`AdministrativeOverride`,ODe=`AuthenticateOidcActionConfig`,kDe=`AuthenticateOidcConfig`,K$=`AlpnPolicy`,q$=`AuthenticationRequestExtraParams`,ADe=`AddTags`,jDe=`AddTagsInput`,MDe=`AddTagsOutput`,NDe=`AdvertiseTrustStoreCaNames`,J$=`AvailabilityZone`,PDe=`AvailabilityZoneNotSupportedException`,Y$=`AvailabilityZones`,X$=`Actions`,Z$=`Attributes`,Q$=`Certificates`,FDe=`CertificateArn`,IDe=`CaCertificatesBundleNotFoundException`,LDe=`CapacityDecreaseRequestsLimitExceededException`,RDe=`CanonicalHostedZoneId`,zDe=`ClientId`,BDe=`CertificateList`,VDe=`CreateLoadBalancer`,HDe=`CreateLoadBalancerInput`,UDe=`CreateLoadBalancerOutput`,WDe=`CreateListenerInput`,GDe=`CreateListenerOutput`,KDe=`CreateListener`,qDe=`CertificateNotFoundException`,$$=`CustomerOwnedIpv4Pool`,JDe=`CreateRule`,YDe=`CreateRuleInput`,XDe=`CreateRuleOutput`,ZDe=`CapacityReservationPendingException`,QDe=`ClientSecret`,$De=`ContentType`,eOe=`CreateTargetGroup`,tOe=`CreateTargetGroupInput`,nOe=`CreateTargetGroupOutput`,rOe=`CreatedTime`,iOe=`CapacityUnitsLimitExceededException`,aOe=`Certificate`,oOe=`Cipher`,e1=`Ciphers`,sOe=`Code`,t1=`Conditions`,n1=`Description`,r1=`DefaultActions`,cOe=`DeleteAssociationSameAccountException`,lOe=`DeleteListener`,uOe=`DeleteLoadBalancer`,dOe=`DescribeLoadBalancerAttributes`,fOe=`DescribeLoadBalancerAttributesInput`,pOe=`DescribeLoadBalancerAttributesOutput`,mOe=`DeleteLoadBalancerInput`,hOe=`DescribeLoadBalancersInput`,gOe=`DuplicateLoadBalancerNameException`,_Oe=`DeleteLoadBalancerOutput`,vOe=`DescribeLoadBalancersOutput`,yOe=`DescribeLoadBalancers`,bOe=`DuplicateListenerException`,xOe=`DeleteListenerInput`,SOe=`DescribeListenersInput`,COe=`DeleteListenerOutput`,wOe=`DescribeListenersOutput`,TOe=`DescribeListeners`,EOe=`DNSName`,DOe=`DeleteRule`,OOe=`DeleteRuleInput`,kOe=`DescribeRulesInput`,AOe=`DeleteRuleOutput`,jOe=`DescribeRulesOutput`,MOe=`DescribeRules`,NOe=`DurationSeconds`,POe=`DescribeSSLPolicies`,FOe=`DescribeSSLPoliciesInput`,IOe=`DescribeSSLPoliciesOutput`,LOe=`DeregisterTargets`,ROe=`DeleteTargetGroup`,zOe=`DescribeTargetGroupAttributes`,BOe=`DescribeTargetGroupAttributesInput`,VOe=`DescribeTargetGroupAttributesOutput`,HOe=`DeleteTargetGroupInput`,UOe=`DescribeTargetGroupsInput`,WOe=`DuplicateTargetGroupNameException`,GOe=`DeleteTargetGroupOutput`,KOe=`DescribeTargetGroupsOutput`,qOe=`DescribeTargetGroups`,JOe=`DescribeTargetHealth`,YOe=`DescribeTargetHealthInput`,XOe=`DescribeTargetHealthOutput`,ZOe=`DeregisterTargetsInput`,QOe=`DescribeTagsInput`,$Oe=`DuplicateTagKeysException`,eke=`DeregisterTargetsOutput`,tke=`DescribeTagsOutput`,nke=`DuplicateTrustStoreNameException`,rke=`DescribeTags`,ike=`Enabled`,i1=`EnablePrefixForIpv6SourceNat`,a1=`EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic`,ake=`Format`,oke=`ForwardActionConfig`,ske=`ForwardConfig`,cke=`FixedResponseActionConfig`,lke=`FixedResponseConfig`,uke=`Field`,dke=`GrpcCode`,fke=`Host`,pke=`HttpCode`,o1=`HealthCheckEnabled`,s1=`HealthCheckIntervalSeconds`,c1=`HealthCheckProtocol`,l1=`HealthCheckPort`,u1=`HealthCheckPath`,d1=`HealthCheckTimeoutSeconds`,mke=`HostHeaderConfig`,hke=`HostHeaderConditionConfig`,gke=`HttpHeaderConditionConfig`,_ke=`HttpHeaderConfig`,vke=`HttpHeaderName`,f1=`HostHeaderRewriteConfig`,yke=`HttpRequestMethodConfig`,bke=`HttpRequestMethodConditionConfig`,p1=`HealthyThresholdCount`,xke=`HealthUnavailableException`,m1=`Issuer`,Ske=`IpAddress`,h1=`IpAddressType`,Cke=`InvalidCaCertificatesBundleException`,wke=`IgnoreClientCertificateExpiry`,Tke=`InsufficientCapacityException`,Eke=`InvalidConfigurationRequestException`,g1=`IsDefault`,Dke=`Ipv4IpamPoolId`,Oke=`InvalidLoadBalancerActionException`,_1=`IpamPools`,v1=`IPv6Address`,kke=`IncompatibleProtocolsException`,Ake=`InvalidRevocationContentException`,jke=`InvalidSchemeException`,Mke=`InvalidSubnetException`,Nke=`InvalidSecurityGroupException`,Pke=`InvalidTargetException`,Fke=`Id`,Ike=`Include`,Lke=`JwksEndpoint`,Rke=`JwtValidationActionAdditionalClaim`,zke=`JwtValidationActionAdditionalClaims`,Bke=`JwtValidationActionConfig`,Vke=`JwtValidationConfig`,y1=`Key`,b1=`Listeners`,x1=`ListenerArn`,Hke=`ListenerArns`,S1=`LoadBalancers`,C1=`LoadBalancerAddresses`,w1=`LoadBalancerArn`,T1=`LoadBalancerArns`,Uke=`LoadBalancerAddress`,Wke=`LoadBalancerAttribute`,Gke=`LoadBalancerAttributes`,Kke=`LoadBalancerName`,qke=`LoadBalancerNotFoundException`,Jke=`LoadBalancerState`,Yke=`LoadBalancerType`,Xke=`LoadBalancer`,Zke=`ListenerNotFoundException`,Qke=`Listener`,E1=`Message`,D1=`MutualAuthentication`,$ke=`MutualAuthenticationAttributes`,eAe=`MessageBody`,tAe=`MitigationInEffect`,nAe=`ModifyListener`,rAe=`ModifyLoadBalancerAttributes`,iAe=`ModifyLoadBalancerAttributesInput`,aAe=`ModifyLoadBalancerAttributesOutput`,oAe=`ModifyListenerInput`,sAe=`ModifyListenerOutput`,cAe=`ModifyRule`,lAe=`ModifyRuleInput`,uAe=`ModifyRuleOutput`,dAe=`ModifyTargetGroupAttributes`,fAe=`ModifyTargetGroupAttributesInput`,pAe=`ModifyTargetGroupAttributesOutput`,O1=`Matcher`,k1=`Marker`,mAe=`Mode`,A1=`Name`,j1=`NextMarker`,M1=`Names`,hAe=`Order`,gAe=`OutpostId`,_Ae=`OperationNotPermittedException`,N1=`OnUnauthenticatedRequest`,P1=`Priority`,F1=`PrivateIPv4Address`,vAe=`PriorityInUseException`,yAe=`PathPatternConfig`,bAe=`PathPatternConditionConfig`,xAe=`PriorRequestNotCompleteException`,I1=`PageSize`,L1=`ProtocolVersion`,SAe=`Path`,R1=`Port`,z1=`Protocol`,CAe=`Query`,wAe=`QueryStringConfig`,TAe=`QueryStringConditionConfig`,EAe=`QuicServerId`,DAe=`QueryStringKeyValuePair`,OAe=`QueryStringKeyValuePairList`,B1=`Reason`,V1=`ResourceArns`,kAe=`RedirectActionConfig`,AAe=`ResourceArn`,H1=`RuleArn`,jAe=`RuleArns`,MAe=`RedirectConfig`,NAe=`RewriteConfigList`,PAe=`RuleConditionList`,FAe=`RevocationContentNotFoundException`,IAe=`RewriteConfig`,LAe=`RuleCondition`,RAe=`RevocationIdNotFoundException`,zAe=`ResourceInUseException`,BAe=`ResourceNotFoundException`,VAe=`RuleNotFoundException`,HAe=`RegisterTargetsInput`,UAe=`RemoveTagsInput`,WAe=`RuleTransformList`,GAe=`RegisterTargetsOutput`,KAe=`RemoveTagsOutput`,qAe=`ResetTransforms`,JAe=`RegisterTargets`,YAe=`RemoveTags`,XAe=`RuleTransform`,U1=`RegexValues`,ZAe=`Result`,QAe=`Regex`,$Ae=`Replace`,W1=`Rewrites`,G1=`Rules`,eje=`Rule`,K1=`State`,q1=`StatusCode`,J1=`SessionCookieName`,Y1=`SecurityGroups`,tje=`SecurityGroupIds`,X1=`SubnetId`,nje=`SourceIpConfig`,rje=`SourceIpConditionConfig`,ije=`SupportedLoadBalancerTypes`,Z1=`SubnetMappings`,aje=`SubnetMapping`,oje=`SubnetNotFoundException`,sje=`SourceNatIpv6Prefixes`,cje=`SourceNatIpv6Prefix`,Q1=`SslPolicy`,$1=`SslPolicies`,lje=`SslProtocols`,uje=`SetSecurityGroups`,dje=`SetSecurityGroupsInput`,fje=`SetSecurityGroupsOutput`,pje=`SSLPolicyNotFoundException`,e0=`SessionTimeout`,t0=`Scope`,n0=`Scheme`,mje=`Subnets`,r0=`Type`,i0=`TargetControlPort`,a0=`TagDescriptions`,hje=`TagDescription`,gje=`TargetDescription`,_je=`TargetDescriptions`,vje=`TokenEndpoint`,o0=`TargetGroups`,s0=`TargetGroupArn`,yje=`TargetGroupAssociationLimitException`,bje=`TargetGroupArns`,xje=`TargetGroupAttribute`,Sje=`TargetGroupAttributes`,Cje=`TargetGroupList`,wje=`TargetGroupName`,Tje=`TargetGroupNotFoundException`,c0=`TargetGroupStickinessConfig`,Eje=`TargetGroupTuple`,Dje=`TargetGroup`,l0=`TargetHealth`,u0=`TargetHealthDescriptions`,Oje=`TargetHealthDescription`,kje=`TagKeys`,Aje=`TagList`,jje=`TooManyActionsException`,Mje=`TooManyCertificatesException`,Nje=`TooManyLoadBalancersException`,Pje=`TooManyListenersException`,Fje=`TooManyRulesException`,Ije=`TooManyRegistrationsForTargetIdException`,Lje=`TooManyTagsException`,Rje=`TooManyTargetsException`,zje=`TooManyTargetGroupsException`,Bje=`TooManyTrustStoresException`,Vje=`TooManyTrustStoreRevocationEntriesException`,Hje=`TooManyUniqueTargetGroupsPerLoadBalancerException`,Uje=`TrustStoreArn`,Wje=`TrustStoreAssociationNotFoundException`,Gje=`TrustStoreAssociationStatus`,Kje=`TrustStoreInUseException`,qje=`TrustStoreNotFoundException`,Jje=`TrustStoreNotReadyException`,d0=`TargetType`,f0=`Tags`,Yje=`Tag`,p0=`Targets`,Xje=`Target`,m0=`Transforms`,Zje=`UseExistingClientSecret`,Qje=`UserInfoEndpoint`,$je=`UserPoolArn`,eMe=`UserPoolClientId`,tMe=`UserPoolDomain`,nMe=`UnsupportedProtocolException`,h0=`UrlRewriteConfig`,g0=`UnhealthyThresholdCount`,_0=`Values`,v0=`VpcId`,y0=`Value`,rMe=`Weight`,iMe=`ZoneName`,b0=`awsQueryError`,x0=`client`,S0=`error`,C0=`httpError`,w0=`smithy.ts.sdk.synthetic.com.amazonaws.elasticloadbalancingv2`,T0=`server`,J=`com.amazonaws.elasticloadbalancingv2`,E0=tO.for(w0),aMe=[-3,w0,`ElasticLoadBalancingV2ServiceException`,0,[],[]];E0.registerError(aMe,H$);var D0=tO.for(J),oMe=[-3,J,EDe,{[b0]:[`AllocationIdNotFound`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(oMe,jEe);var sMe=[-3,J,DDe,{[b0]:[`ALPNPolicyNotFound`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(sMe,MEe);var cMe=[-3,J,PDe,{[b0]:[`AvailabilityZoneNotSupported`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(cMe,NEe);var lMe=[-3,J,IDe,{[b0]:[`CaCertificatesBundleNotFound`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(lMe,PEe);var uMe=[-3,J,LDe,{[b0]:[`CapacityDecreaseRequestLimitExceeded`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(uMe,FEe);var dMe=[-3,J,ZDe,{[b0]:[`CapacityReservationPending`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(dMe,IEe);var fMe=[-3,J,iOe,{[b0]:[`CapacityUnitsLimitExceeded`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(fMe,LEe);var pMe=[-3,J,qDe,{[b0]:[`CertificateNotFound`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(pMe,yEe);var mMe=[-3,J,cOe,{[b0]:[`DeleteAssociationSameAccount`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(mMe,fDe);var hMe=[-3,J,bOe,{[b0]:[`DuplicateListener`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(hMe,REe);var gMe=[-3,J,gOe,{[b0]:[`DuplicateLoadBalancerName`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(gMe,ZEe);var _Me=[-3,J,$Oe,{[b0]:[`DuplicateTagKeys`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(_Me,SEe);var vMe=[-3,J,WOe,{[b0]:[`DuplicateTargetGroupName`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(vMe,cDe);var yMe=[-3,J,nke,{[b0]:[`DuplicateTrustStoreName`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(yMe,lDe);var bMe=[-3,J,xke,{[b0]:[`HealthUnavailable`,500],[S0]:T0,[C0]:500},[E1],[0]];D0.registerError(bMe,gDe);var xMe=[-3,J,kke,{[b0]:[`IncompatibleProtocols`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(xMe,zEe);var SMe=[-3,J,Tke,{[b0]:[`InsufficientCapacity`,500],[S0]:T0,[C0]:500},[E1],[0]];D0.registerError(SMe,yDe);var CMe=[-3,J,Cke,{[b0]:[`InvalidCaCertificatesBundle`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(CMe,uDe);var wMe=[-3,J,Eke,{[b0]:[`InvalidConfigurationRequest`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(wMe,BEe);var TMe=[-3,J,Oke,{[b0]:[`InvalidLoadBalancerAction`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(TMe,VEe);var EMe=[-3,J,Ake,{[b0]:[`InvalidRevocationContent`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(EMe,OEe);var DMe=[-3,J,jke,{[b0]:[`InvalidScheme`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(DMe,QEe);var OMe=[-3,J,Nke,{[b0]:[`InvalidSecurityGroup`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(OMe,$Ee);var kMe=[-3,J,Mke,{[b0]:[`InvalidSubnet`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(kMe,eDe);var AMe=[-3,J,Pke,{[b0]:[`InvalidTarget`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(AMe,hDe);var jMe=[-3,J,Zke,{[b0]:[`ListenerNotFound`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(jMe,bEe);var MMe=[-3,J,qke,{[b0]:[`LoadBalancerNotFound`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(MMe,CEe);var NMe=[-3,J,_Ae,{[b0]:[`OperationNotPermitted`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(NMe,tDe);var PMe=[-3,J,vAe,{[b0]:[`PriorityInUse`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(PMe,aDe);var FMe=[-3,J,xAe,{[b0]:[`PriorRequestNotComplete`,429],[S0]:x0,[C0]:429},[E1],[0]];D0.registerError(FMe,bDe);var IMe=[-3,J,zAe,{[b0]:[`ResourceInUse`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(IMe,nDe);var LMe=[-3,J,BAe,{[b0]:[`ResourceNotFound`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(LMe,vDe);var RMe=[-3,J,FAe,{[b0]:[`RevocationContentNotFound`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(RMe,kEe);var zMe=[-3,J,RAe,{[b0]:[`RevocationIdNotFound`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(zMe,_De);var BMe=[-3,J,VAe,{[b0]:[`RuleNotFound`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(BMe,wEe);var VMe=[-3,J,pje,{[b0]:[`SSLPolicyNotFound`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(VMe,HEe);var HMe=[-3,J,oje,{[b0]:[`SubnetNotFound`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(HMe,rDe);var UMe=[-3,J,yje,{[b0]:[`TargetGroupAssociationLimit`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(UMe,UEe);var WMe=[-3,J,Tje,{[b0]:[`TargetGroupNotFound`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(WMe,TEe);var GMe=[-3,J,jje,{[b0]:[`TooManyActions`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(GMe,WEe);var KMe=[-3,J,Mje,{[b0]:[`TooManyCertificates`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(KMe,xEe);var qMe=[-3,J,Pje,{[b0]:[`TooManyListeners`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(qMe,GEe);var JMe=[-3,J,Nje,{[b0]:[`TooManyLoadBalancers`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(JMe,iDe);var YMe=[-3,J,Ije,{[b0]:[`TooManyRegistrationsForTargetId`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(YMe,KEe);var XMe=[-3,J,Fje,{[b0]:[`TooManyRules`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(XMe,oDe);var ZMe=[-3,J,Lje,{[b0]:[`TooManyTags`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(ZMe,EEe);var QMe=[-3,J,zje,{[b0]:[`TooManyTargetGroups`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(QMe,sDe);var $Me=[-3,J,Rje,{[b0]:[`TooManyTargets`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError($Me,qEe);var eNe=[-3,J,Vje,{[b0]:[`TooManyTrustStoreRevocationEntries`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(eNe,AEe);var tNe=[-3,J,Bje,{[b0]:[`TooManyTrustStores`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(tNe,dDe);var nNe=[-3,J,Hje,{[b0]:[`TooManyUniqueTargetGroupsPerLoadBalancer`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(nNe,JEe);var rNe=[-3,J,Wje,{[b0]:[`AssociationNotFound`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(rNe,pDe);var iNe=[-3,J,Kje,{[b0]:[`TrustStoreInUse`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(iNe,mDe);var aNe=[-3,J,qje,{[b0]:[`TrustStoreNotFound`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(aNe,DEe);var oNe=[-3,J,Jje,{[b0]:[`TrustStoreNotReady`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(oNe,YEe);var sNe=[-3,J,nMe,{[b0]:[`UnsupportedProtocol`,400],[S0]:x0,[C0]:400},[E1],[0]];D0.registerError(sNe,XEe);var cNe=[E0,D0],lNe=[3,J,xDe,0,[r0,s0,kDe,wDe,hAe,MAe,lke,ske,Vke],[0,0,()=>hNe,()=>mNe,1,()=>TPe,()=>tPe,()=>nPe,()=>cPe],1],uNe=[3,J,jDe,0,[V1,f0],[64,()=>V0],2],dNe=[3,J,MDe,0,[],[]],fNe=[3,J,G$,0,[K1,B1,n1],[0,0,0]],pNe=[3,J,U$,0,[ZAe,tAe],[0,0]],mNe=[3,J,CDe,0,[$je,eMe,tMe,J1,t0,e0,q$,N1],[0,0,0,0,0,1,128,0],3],hNe=[3,J,ODe,0,[m1,TDe,vje,Qje,zDe,QDe,J1,t0,e0,q$,N1,Zje],[0,0,0,0,0,0,0,0,1,128,0,2],5],gNe=[3,J,J$,0,[iMe,X1,gAe,C1,sje],[0,0,0,()=>ZPe,64]],_Ne=[3,J,aOe,0,[FDe,g1],[0,2]],vNe=[3,J,oOe,0,[A1,P1],[0,1]],yNe=[3,J,WDe,0,[w1,r1,z1,R1,Q1,Q$,K$,f0,D1],[0,()=>M0,0,1,0,()=>N0,64,()=>V0,()=>A0],2],bNe=[3,J,GDe,0,[b1],[()=>P0]],xNe=[3,J,HDe,0,[A1,mje,Z1,Y1,n0,f0,r0,h1,$$,i1,_1],[0,64,()=>eFe,64,0,()=>V0,0,0,0,0,()=>O0],1],SNe=[3,J,UDe,0,[S1],[()=>I0]],CNe=[3,J,YDe,0,[x1,t1,P1,X$,f0,m0],[0,()=>R0,1,()=>M0,()=>V0,()=>B0],4],wNe=[3,J,XDe,0,[G1],[()=>z0]],TNe=[3,J,tOe,0,[A1,z1,L1,R1,v0,c1,l1,o1,u1,s1,d1,p1,g0,O1,d0,f0,h1,i0],[0,0,0,1,0,0,0,2,0,1,1,1,1,()=>k0,0,()=>V0,0,1],1],ENe=[3,J,nOe,0,[o0],[()=>W0]],DNe=[3,J,xOe,0,[x1],[0],1],ONe=[3,J,COe,0,[],[]],kNe=[3,J,mOe,0,[w1],[0],1],ANe=[3,J,_Oe,0,[],[]],jNe=[3,J,OOe,0,[H1],[0],1],MNe=[3,J,AOe,0,[],[]],NNe=[3,J,HOe,0,[s0],[0],1],PNe=[3,J,GOe,0,[],[]],FNe=[3,J,ZOe,0,[s0,p0],[0,()=>H0],2],INe=[3,J,eke,0,[],[]],LNe=[3,J,SOe,0,[w1,Hke,k1,I1],[0,64,0,1]],RNe=[3,J,wOe,0,[b1,j1],[()=>P0,0]],zNe=[3,J,fOe,0,[w1],[0],1],BNe=[3,J,pOe,0,[Z$],[()=>F0]],VNe=[3,J,hOe,0,[T1,M1,k1,I1],[64,64,0,1]],HNe=[3,J,vOe,0,[S1,j1],[()=>I0,0]],UNe=[3,J,kOe,0,[x1,jAe,k1,I1],[0,64,0,1]],WNe=[3,J,jOe,0,[G1,j1],[()=>z0,0]],GNe=[3,J,FOe,0,[M1,k1,I1,Yke],[64,0,1,0]],KNe=[3,J,IOe,0,[$1,j1],[()=>$Pe,0]],qNe=[3,J,QOe,0,[V1],[64],1],JNe=[3,J,tke,0,[a0],[()=>tFe]],YNe=[3,J,BOe,0,[s0],[0],1],XNe=[3,J,VOe,0,[Z$],[()=>U0]],ZNe=[3,J,UOe,0,[w1,bje,M1,k1,I1],[0,64,64,0,1]],QNe=[3,J,KOe,0,[o0,j1],[()=>W0,0]],$Ne=[3,J,YOe,0,[s0,p0,Ike],[0,()=>H0,64],1],ePe=[3,J,XOe,0,[u0],[()=>rFe]],tPe=[3,J,cke,0,[q1,eAe,$De],[0,0,0],1],nPe=[3,J,oke,0,[o0,c0],[()=>nFe,()=>UPe]],rPe=[3,J,hke,0,[_0,U1],[64,64]],iPe=[3,J,f1,0,[W1],[()=>L0]],aPe=[3,J,gke,0,[vke,_0,U1],[0,64,64]],oPe=[3,J,bke,0,[_0],[64]],O0=[3,J,_1,0,[Dke],[0]],sPe=[3,J,Rke,0,[ake,A1,_0],[0,0,64],3],cPe=[3,J,Bke,0,[Lke,m1,SDe],[0,0,()=>XPe],2],lPe=[3,J,Qke,0,[x1,w1,R1,z1,Q$,Q1,r1,K$,D1],[0,0,1,0,()=>N0,0,()=>M0,64,()=>A0]],uPe=[3,J,Xke,0,[w1,EOe,RDe,rOe,Kke,n0,v0,K1,r0,Y$,Y1,h1,$$,a1,i1,_1],[0,0,0,4,0,0,0,()=>pPe,0,()=>JPe,64,0,0,0,0,()=>O0]],dPe=[3,J,Uke,0,[Ske,W$,F1,v1],[0,0,0,0]],fPe=[3,J,Wke,0,[y1,y0],[0,0]],pPe=[3,J,Jke,0,[sOe,B1],[0,0]],k0=[3,J,O1,0,[pke,dke],[0,0]],mPe=[3,J,oAe,0,[x1,R1,z1,Q1,Q$,r1,K$,D1],[0,1,0,0,()=>N0,()=>M0,64,()=>A0],1],hPe=[3,J,sAe,0,[b1],[()=>P0]],gPe=[3,J,iAe,0,[w1,Z$],[0,()=>F0],2],_Pe=[3,J,aAe,0,[Z$],[()=>F0]],vPe=[3,J,lAe,0,[H1,t1,X$,m0,qAe],[0,()=>R0,()=>M0,()=>B0,2],1],yPe=[3,J,uAe,0,[G1],[()=>z0]],bPe=[3,J,fAe,0,[s0,Z$],[0,()=>U0],2],xPe=[3,J,pAe,0,[Z$],[()=>U0]],A0=[3,J,$ke,0,[mAe,Uje,wke,Gje,NDe],[0,0,2,0,0]],SPe=[3,J,bAe,0,[_0,U1],[64,64]],CPe=[3,J,TAe,0,[_0],[()=>QPe]],wPe=[3,J,DAe,0,[y1,y0],[0,0]],TPe=[3,J,kAe,0,[q1,z1,R1,fke,SAe,CAe],[0,0,0,0,0,0],1],EPe=[3,J,HAe,0,[s0,p0],[0,()=>H0],2],DPe=[3,J,GAe,0,[],[]],OPe=[3,J,UAe,0,[V1,kje],[64,64],2],kPe=[3,J,KAe,0,[],[]],APe=[3,J,IAe,0,[QAe,$Ae],[0,0],2],jPe=[3,J,eje,0,[H1,P1,t1,X$,g1,m0],[0,0,()=>R0,()=>M0,2,()=>B0]],MPe=[3,J,LAe,0,[uke,_0,mke,yAe,_ke,wAe,yke,nje,U1],[0,64,()=>rPe,()=>SPe,()=>aPe,()=>CPe,()=>oPe,()=>IPe,64]],NPe=[3,J,XAe,0,[r0,f1,h0],[0,()=>iPe,()=>qPe],1],PPe=[3,J,dje,0,[w1,Y1,a1],[0,64,0],2],FPe=[3,J,fje,0,[tje,a1],[64,0]],IPe=[3,J,rje,0,[_0],[64]],LPe=[3,J,Q1,0,[lje,e1,A1,ije],[64,()=>YPe,0,64]],RPe=[3,J,aje,0,[X1,W$,F1,v1,cje],[0,0,0,0,0]],zPe=[3,J,Yje,0,[y1,y0],[0,0],1],BPe=[3,J,hje,0,[AAe,f0],[0,()=>V0]],j0=[3,J,gje,0,[Fke,R1,J$,EAe],[0,1,0,0],1],VPe=[3,J,Dje,0,[s0,wje,z1,R1,v0,c1,l1,o1,s1,d1,p1,g0,u1,O1,T1,d0,L1,h1,i0],[0,0,0,1,0,0,0,2,1,1,1,1,0,()=>k0,64,0,0,0,1]],HPe=[3,J,xje,0,[y1,y0],[0,0]],UPe=[3,J,c0,0,[ike,NOe],[2,1]],WPe=[3,J,Eje,0,[s0,rMe],[0,1]],GPe=[3,J,l0,0,[K1,B1,n1],[0,0,0]],KPe=[3,J,Oje,0,[Xje,l1,l0,U$,G$],[()=>j0,0,()=>GPe,()=>pNe,()=>fNe]],qPe=[3,J,h0,0,[W1],[()=>L0]],M0=[1,J,X$,0,()=>lNe],JPe=[1,J,Y$,0,()=>gNe],N0=[1,J,BDe,0,()=>_Ne],YPe=[1,J,e1,0,()=>vNe],XPe=[1,J,zke,0,()=>sPe],P0=[1,J,b1,0,()=>lPe],ZPe=[1,J,C1,0,()=>dPe],F0=[1,J,Gke,0,()=>fPe],I0=[1,J,S1,0,()=>uPe],QPe=[1,J,OAe,0,()=>wPe],L0=[1,J,NAe,0,()=>APe],R0=[1,J,PAe,0,()=>MPe],z0=[1,J,G1,0,()=>jPe],B0=[1,J,WAe,0,()=>NPe],$Pe=[1,J,$1,0,()=>LPe],eFe=[1,J,Z1,0,()=>RPe],tFe=[1,J,a0,0,()=>BPe],V0=[1,J,Aje,0,()=>zPe],H0=[1,J,_je,0,()=>j0],U0=[1,J,Sje,0,()=>HPe],nFe=[1,J,Cje,0,()=>WPe],W0=[1,J,o0,0,()=>VPe],rFe=[1,J,u0,0,()=>KPe],iFe=[9,J,ADe,0,()=>uNe,()=>dNe],aFe=[9,J,KDe,0,()=>yNe,()=>bNe],oFe=[9,J,VDe,0,()=>xNe,()=>SNe],sFe=[9,J,JDe,0,()=>CNe,()=>wNe],cFe=[9,J,eOe,0,()=>TNe,()=>ENe],lFe=[9,J,lOe,0,()=>DNe,()=>ONe],uFe=[9,J,uOe,0,()=>kNe,()=>ANe],dFe=[9,J,DOe,0,()=>jNe,()=>MNe],fFe=[9,J,ROe,0,()=>NNe,()=>PNe],pFe=[9,J,LOe,0,()=>FNe,()=>INe],mFe=[9,J,TOe,0,()=>LNe,()=>RNe],hFe=[9,J,dOe,0,()=>zNe,()=>BNe],gFe=[9,J,yOe,0,()=>VNe,()=>HNe],_Fe=[9,J,MOe,0,()=>UNe,()=>WNe],vFe=[9,J,POe,0,()=>GNe,()=>KNe],yFe=[9,J,rke,0,()=>qNe,()=>JNe],bFe=[9,J,zOe,0,()=>YNe,()=>XNe],xFe=[9,J,qOe,0,()=>ZNe,()=>QNe],SFe=[9,J,JOe,0,()=>$Ne,()=>ePe],CFe=[9,J,nAe,0,()=>mPe,()=>hPe],wFe=[9,J,rAe,0,()=>gPe,()=>_Pe],TFe=[9,J,cAe,0,()=>vPe,()=>yPe],EFe=[9,J,dAe,0,()=>bPe,()=>xPe],DFe=[9,J,JAe,0,()=>EPe,()=>DPe],OFe=[9,J,YAe,0,()=>OPe,()=>kPe],kFe=[9,J,uje,0,()=>PPe,()=>FPe],AFe=e=>({apiVersion:`2015-12-01`,base64Decoder:e?.base64Decoder??SD,base64Encoder:e?.base64Encoder??CD,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??vEe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??uEe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Yk}],logger:e?.logger??new Vk,protocol:e?.protocol??uA,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.elasticloadbalancingv2`,errorTypeRegistries:cNe,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??GD,utf8Decoder:e?.utf8Decoder??Fb,utf8Encoder:e?.utf8Encoder??Lb}),jFe=e=>{let t=rA(e),n=()=>t().then(Ik),r=AFe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??nA,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Qk({serviceId:r.serviceId,clientVersion:pEe.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??eA(`Region is missing`),requestHandler:jD.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||ek),sha256:e?.sha256??wb,streamCollector:e?.streamCollector??ND,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},MFe=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}}},NFe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),PFe=(e,t)=>{let n=Object.assign(p$(e),Rk(e),Tb(e),MFe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,m$(n),zk(n),Eb(n),NFe(n))},FFe=class extends Ak{config;constructor(...[e]){let t=jFe(e||{});super(t),this.initConfig=t;let n=PFe(dEe(Ck(QE(hk(wk(jO(fEe(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(KD(this.config)),this.middlewareStack.use(fk(this.config)),this.middlewareStack.use(Uk(this.config)),this.middlewareStack.use(_k(this.config)),this.middlewareStack.use(tD(this.config)),this.middlewareStack.use(iD(this.config)),this.middlewareStack.use(sD(this.config)),this.middlewareStack.use(fD(this.config,{httpAuthSchemeParametersProvider:cEe,identityProviderConfigProvider:async e=>new kO({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(_D(this.config))}destroy(){super.destroy()}},IFe=class extends Nk.classBuilder().ep(O$).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeListeners`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeListenersCommand`).sc(mFe).build(){},LFe=class extends Nk.classBuilder().ep(O$).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancerAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancerAttributesCommand`).sc(hFe).build(){},G0=class extends Nk.classBuilder().ep(O$).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancers`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancersCommand`).sc(gFe).build(){},RFe=class extends Nk.classBuilder().ep(O$).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeRules`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeRulesCommand`).sc(_Fe).build(){},zFe=class extends Nk.classBuilder().ep(O$).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeSSLPolicies`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeSSLPoliciesCommand`).sc(vFe).build(){},BFe=class extends Nk.classBuilder().ep(O$).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTags`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTagsCommand`).sc(yFe).build(){},VFe=class extends Nk.classBuilder().ep(O$).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroupAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupAttributesCommand`).sc(bFe).build(){},K0=class extends Nk.classBuilder().ep(O$).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroups`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupsCommand`).sc(xFe).build(){},HFe=class extends Nk.classBuilder().ep(O$).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetHealth`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetHealthCommand`).sc(SFe).build(){},UFe=async(e,t,n)=>({operation:ex(t).operation,region:await tx(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function WFe(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`iam`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var GFe=e=>{let t=[];switch(e.operation){default:t.push(WFe(e))}return t},KFe=e=>{let t=Xk(e);return Object.assign(t,{authSchemePreference:tx(e.authSchemePreference??[])})},qFe=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`iam`}),q0={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},JFe={name:`@aws-sdk/client-iam`,description:`AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native`,version:`3.1045.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-iam`,"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.8`,"@aws-sdk/credential-provider-node":`^3.972.39`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-user-agent":`^3.972.38`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.24`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.7`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.6`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.3.0`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.0.8`,"@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/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`}},J0=`ref`,Y0=`authSchemes`,X0=`name`,Z0=`signingRegion`,Q0=-1,$0=!0,e2=`isSet`,t2=`PartitionResult`,n2=`booleanEquals`,r2=`stringEquals`,i2=`getAttr`,a2=`sigv4`,o2={[J0]:`Endpoint`},s2={fn:i2,argv:[{[J0]:t2},`name`]},c2={[J0]:t2},l2={[Y0]:[{[X0]:a2,[Z0]:`us-east-1`}]},u2={[Y0]:[{[X0]:a2,[Z0]:`cn-north-1`}]},d2={[Y0]:[{[X0]:a2,[Z0]:`us-gov-west-1`}]},f2={[Y0]:[{[X0]:a2,[Z0]:`us-iso-east-1`}]},p2={[Y0]:[{[X0]:a2,[Z0]:`us-isob-east-1`}]},m2={[Y0]:[{[X0]:a2,[Z0]:`{PartitionResult#implicitGlobalRegion}`}]},h2=[{[J0]:`Region`}],g2={conditions:[[e2,[o2]],[e2,h2],[`aws.partition`,h2,t2],[n2,[{[J0]:`UseFIPS`},$0]],[n2,[{[J0]:`UseDualStack`},$0]],[r2,[s2,`aws`]],[r2,[s2,`aws-cn`]],[r2,[s2,`aws-us-gov`]],[n2,[{fn:i2,argv:[c2,`supportsDualStack`]},$0]],[r2,[s2,`aws-iso`]],[r2,[s2,`aws-iso-b`]],[n2,[{fn:i2,argv:[c2,`supportsFIPS`]},$0]],[r2,[s2,`aws-iso-e`]],[r2,[s2,`aws-iso-f`]],[r2,[s2,`aws-eusc`]]],results:[[Q0],[Q0,`Invalid Configuration: FIPS and custom endpoint are not supported`],[Q0,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[o2,{}],[`https://iam.global.api.aws`,l2],[`https://iam-fips.global.api.aws`,l2],[`https://iam.global.api.amazonwebservices.com.cn`,u2],[`https://iam.cn-north-1.amazonaws.com.cn`,u2],[`https://iam.us-gov.api.aws`,d2],[`https://iam.us-gov.amazonaws.com`,d2],[`https://iam.us-iso-east-1.c2s.ic.gov`,f2],[`https://iam-fips.us-iso-east-1.c2s.ic.gov`,f2],[`https://iam.us-isob-east-1.sc2s.sgov.gov`,p2],[`https://iam-fips.us-isob-east-1.sc2s.sgov.gov`,p2],[`https://iam.eu-isoe-west-1.cloud.adc-e.uk`,{[Y0]:[{[X0]:a2,[Z0]:`eu-isoe-west-1`}]}],[`https://iam.us-isof-south-1.csp.hci.ic.gov`,{[Y0]:[{[X0]:a2,[Z0]:`us-isof-south-1`}]}],[`https://iam.eusc-de-east-1.amazonaws.eu`,{[Y0]:[{[X0]:a2,[Z0]:`eusc-de-east-1`}]}],[`https://iam-fips.{PartitionResult#dualStackDnsSuffix}`,m2],[Q0,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://iam-fips.{PartitionResult#dnsSuffix}`,m2],[Q0,`FIPS is enabled but this partition does not support FIPS`],[`https://iam.{PartitionResult#dualStackDnsSuffix}`,m2],[Q0,`DualStack is enabled but this partition does not support DualStack`],[`https://iam.{PartitionResult#dnsSuffix}`,m2],[Q0,`Invalid Configuration: Missing Region`]]},YFe=2,_2=1e8,XFe=new Int32Array([-1,1,-1,0,27,3,1,4,_2+24,2,5,_2+24,3,18,6,4,14,7,6,_2+7,8,7,_2+9,9,9,_2+10,10,10,_2+12,11,12,_2+14,12,13,_2+15,13,14,_2+16,_2+23,5,_2+4,15,6,_2+6,16,7,_2+8,17,8,_2+21,_2+22,4,23,19,7,_2+9,20,9,_2+11,21,10,_2+13,22,11,_2+19,_2+20,5,_2+5,24,7,_2+8,25,8,26,_2+18,11,_2+17,_2+18,3,_2+1,28,4,_2+2,_2+3]),ZFe=MO.from(XFe,YFe,g2.conditions,g2.results),QFe=new NO({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),$Fe=(e,t={})=>QFe.get(e,()=>YO(ZFe,{endpointParams:e,logger:t.logger}));IO.aws=QO;var v2=class e extends Pk{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},eIe=class e extends v2{name=`ConcurrentModificationException`;$fault=`client`;constructor(t){super({name:`ConcurrentModificationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tIe=class e extends v2{name=`NoSuchEntityException`;$fault=`client`;constructor(t){super({name:`NoSuchEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nIe=class e extends v2{name=`ServiceFailureException`;$fault=`server`;constructor(t){super({name:`ServiceFailureException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},rIe=class e extends v2{name=`AccountNotManagementOrDelegatedAdministratorException`;$fault=`client`;Message;constructor(t){super({name:`AccountNotManagementOrDelegatedAdministratorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},iIe=class e extends v2{name=`InvalidInputException`;$fault=`client`;constructor(t){super({name:`InvalidInputException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},aIe=class e extends v2{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},oIe=class e extends v2{name=`EntityAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`EntityAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sIe=class e extends v2{name=`UnmodifiableEntityException`;$fault=`client`;constructor(t){super({name:`UnmodifiableEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cIe=class e extends v2{name=`PolicyNotAttachableException`;$fault=`client`;constructor(t){super({name:`PolicyNotAttachableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lIe=class e extends v2{name=`EntityTemporarilyUnmodifiableException`;$fault=`client`;constructor(t){super({name:`EntityTemporarilyUnmodifiableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uIe=class e extends v2{name=`InvalidUserTypeException`;$fault=`client`;constructor(t){super({name:`InvalidUserTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dIe=class e extends v2{name=`PasswordPolicyViolationException`;$fault=`client`;constructor(t){super({name:`PasswordPolicyViolationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fIe=class e extends v2{name=`OpenIdIdpCommunicationErrorException`;$fault=`client`;constructor(t){super({name:`OpenIdIdpCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pIe=class e extends v2{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mIe=class e extends v2{name=`ServiceNotSupportedException`;$fault=`client`;constructor(t){super({name:`ServiceNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hIe=class e extends v2{name=`DeleteConflictException`;$fault=`client`;constructor(t){super({name:`DeleteConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gIe=class e extends v2{name=`OrganizationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},_Ie=class e extends v2{name=`OrganizationNotInAllFeaturesModeException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotInAllFeaturesModeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},vIe=class e extends v2{name=`ServiceAccessNotEnabledException`;$fault=`client`;Message;constructor(t){super({name:`ServiceAccessNotEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},yIe=class e extends v2{name=`FeatureDisabledException`;$fault=`client`;constructor(t){super({name:`FeatureDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bIe=class e extends v2{name=`InvalidAuthenticationCodeException`;$fault=`client`;constructor(t){super({name:`InvalidAuthenticationCodeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xIe=class e extends v2{name=`CallerIsNotManagementAccountException`;$fault=`client`;Message;constructor(t){super({name:`CallerIsNotManagementAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},SIe=class e extends v2{name=`FeatureEnabledException`;$fault=`client`;constructor(t){super({name:`FeatureEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},CIe=class e extends v2{name=`ReportGenerationLimitExceededException`;$fault=`client`;constructor(t){super({name:`ReportGenerationLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},wIe=class e extends v2{name=`CredentialReportExpiredException`;$fault=`client`;constructor(t){super({name:`CredentialReportExpiredException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},TIe=class e extends v2{name=`CredentialReportNotPresentException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotPresentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},EIe=class e extends v2{name=`CredentialReportNotReadyException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},DIe=class e extends v2{name=`UnrecognizedPublicKeyEncodingException`;$fault=`client`;constructor(t){super({name:`UnrecognizedPublicKeyEncodingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},OIe=class e extends v2{name=`PolicyEvaluationException`;$fault=`server`;constructor(t){super({name:`PolicyEvaluationException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},kIe=class e extends v2{name=`KeyPairMismatchException`;$fault=`client`;constructor(t){super({name:`KeyPairMismatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},AIe=class e extends v2{name=`MalformedCertificateException`;$fault=`client`;constructor(t){super({name:`MalformedCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},jIe=class e extends v2{name=`DuplicateCertificateException`;$fault=`client`;constructor(t){super({name:`DuplicateCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},MIe=class e extends v2{name=`InvalidCertificateException`;$fault=`client`;constructor(t){super({name:`InvalidCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},NIe=class e extends v2{name=`DuplicateSSHPublicKeyException`;$fault=`client`;constructor(t){super({name:`DuplicateSSHPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},PIe=class e extends v2{name=`InvalidPublicKeyException`;$fault=`client`;constructor(t){super({name:`InvalidPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},y2=`Arn`,FIe=`AttachmentCount`,b2=`AccessKey`,x2=`AccessKeyId`,S2=`AccessKeyMetadata`,IIe=`AccountNotManagementOrDelegatedAdministratorException`,LIe=`AttachedPolicy`,RIe=`AttachedPermissionsBoundary`,C2=`AttachedPolicies`,zIe=`AttachRolePolicy`,w2=`AssumeRolePolicyDocument`,BIe=`AttachRolePolicyRequest`,VIe=`AddRoleToInstanceProfile`,HIe=`AddRoleToInstanceProfileRequest`,UIe=`AttachUserPolicy`,WIe=`AttachUserPolicyRequest`,GIe=`CreateAccessKey`,KIe=`CreateAccessKeyRequest`,qIe=`CreateAccessKeyResponse`,T2=`CreateDate`,JIe=`CallerIsNotManagementAccountException`,YIe=`CreateInstanceProfile`,XIe=`CreateInstanceProfileRequest`,ZIe=`CreateInstanceProfileResponse`,QIe=`ConcurrentModificationException`,$Ie=`CreatePolicyRequest`,eLe=`CreatePolicyResponse`,tLe=`CreatePolicy`,nLe=`CreateRole`,rLe=`CredentialReportExpiredException`,iLe=`CredentialReportNotPresentException`,aLe=`CredentialReportNotReadyException`,oLe=`CreateRoleRequest`,sLe=`CreateRoleResponse`,cLe=`CreateUser`,lLe=`CreateUserRequest`,uLe=`CreateUserResponse`,E2=`Description`,dLe=`DeleteAccessKey`,fLe=`DeleteAccessKeyRequest`,pLe=`DeleteConflictException`,mLe=`DuplicateCertificateException`,hLe=`DeleteInstanceProfile`,gLe=`DeleteInstanceProfileRequest`,_Le=`DeletePolicyRequest`,vLe=`DeletePolicy`,yLe=`DetachRolePolicyRequest`,bLe=`DetachRolePolicy`,xLe=`DeleteRoleRequest`,SLe=`DeleteRole`,CLe=`DuplicateSSHPublicKeyException`,wLe=`DeleteUser`,TLe=`DetachUserPolicyRequest`,ELe=`DetachUserPolicy`,DLe=`DeleteUserRequest`,OLe=`DefaultVersionId`,kLe=`Document`,ALe=`EntityAlreadyExistsException`,jLe=`EntityTemporarilyUnmodifiableException`,MLe=`FeatureDisabledException`,NLe=`FeatureEnabledException`,PLe=`GetInstanceProfile`,FLe=`GetInstanceProfileRequest`,ILe=`GetInstanceProfileResponse`,LLe=`GetPolicy`,RLe=`GetPolicyRequest`,zLe=`GetPolicyResponse`,BLe=`GetPolicyVersion`,VLe=`GetPolicyVersionRequest`,HLe=`GetPolicyVersionResponse`,ULe=`GetRole`,WLe=`GetRoleRequest`,GLe=`GetRoleResponse`,KLe=`GetUser`,qLe=`GetUserRequest`,JLe=`GetUserResponse`,YLe=`IsAttachable`,XLe=`InvalidAuthenticationCodeException`,ZLe=`InvalidCertificateException`,QLe=`IsDefaultVersion`,$Le=`InvalidInputException`,D2=`InstanceProfile`,eRe=`InstanceProfileId`,tRe=`InvalidPublicKeyException`,O2=`InstanceProfileName`,k2=`InstanceProfiles`,A2=`IsTruncated`,nRe=`InvalidUserTypeException`,rRe=`Key`,iRe=`KeyPairMismatchException`,aRe=`ListAccessKeys`,oRe=`ListAccessKeysRequest`,sRe=`ListAccessKeysResponse`,cRe=`ListAttachedRolePolicies`,lRe=`ListAttachedRolePoliciesRequest`,uRe=`ListAttachedRolePoliciesResponse`,dRe=`ListAttachedUserPolicies`,fRe=`ListAttachedUserPoliciesRequest`,pRe=`ListAttachedUserPoliciesResponse`,mRe=`LimitExceededException`,hRe=`ListInstanceProfiles`,gRe=`ListInstanceProfilesForRole`,_Re=`ListInstanceProfilesForRoleRequest`,vRe=`ListInstanceProfilesForRoleResponse`,yRe=`ListInstanceProfilesRequest`,bRe=`ListInstanceProfilesResponse`,xRe=`ListPoliciesRequest`,SRe=`ListPoliciesResponse`,CRe=`ListPolicies`,wRe=`ListRoles`,TRe=`ListRolesRequest`,ERe=`ListRolesResponse`,DRe=`ListUsers`,ORe=`LastUsedDate`,kRe=`ListUsersRequest`,ARe=`ListUsersResponse`,j2=`Message`,jRe=`MalformedCertificateException`,M2=`MaxItems`,MRe=`MalformedPolicyDocumentException`,N2=`MaxSessionDuration`,P2=`Marker`,NRe=`NoSuchEntityException`,PRe=`OnlyAttached`,FRe=`OpenIdIdpCommunicationErrorException`,IRe=`OrganizationNotFoundException`,LRe=`OrganizationNotInAllFeaturesModeException`,F2=`PolicyArn`,I2=`PermissionsBoundary`,RRe=`PermissionsBoundaryArn`,zRe=`PermissionsBoundaryType`,BRe=`PermissionsBoundaryUsageCount`,VRe=`PolicyDocument`,HRe=`PolicyEvaluationException`,URe=`PolicyId`,WRe=`PasswordLastUsed`,L2=`PolicyName`,GRe=`PolicyNotAttachableException`,KRe=`PasswordPolicyViolationException`,R2=`PathPrefix`,qRe=`PolicyUsageFilter`,z2=`PolicyVersion`,B2=`Path`,V2=`Policy`,JRe=`Policies`,YRe=`Region`,XRe=`ReportGenerationLimitExceededException`,ZRe=`RoleId`,H2=`RoleLastUsed`,U2=`RoleName`,QRe=`RemoveRoleFromInstanceProfile`,$Re=`RemoveRoleFromInstanceProfileRequest`,W2=`Role`,G2=`Roles`,K2=`Status`,eze=`SecretAccessKey`,tze=`ServiceAccessNotEnabledException`,nze=`ServiceFailureException`,rze=`ServiceNotSupportedException`,ize=`Scope`,q2=`Tags`,aze=`Tag`,oze=`UpdateAccessKey`,sze=`UpdateAccessKeyRequest`,cze=`UpdateDate`,lze=`UnmodifiableEntityException`,uze=`UserId`,J2=`UserName`,dze=`UnrecognizedPublicKeyEncodingException`,Y2=`User`,fze=`Users`,X2=`VersionId`,pze=`Value`,mze=`accessKeyMetadataListType`,hze=`accessKeySecretType`,gze=`attachedPoliciesListType`,Z2=`awsQueryError`,Q2=`client`,$2=`error`,e4=`httpError`,_ze=`instanceProfileListType`,t4=`message`,vze=`policyListType`,yze=`roleListType`,n4=`smithy.ts.sdk.synthetic.com.amazonaws.iam`,r4=`server`,bze=`tagListType`,xze=`userListType`,Y=`com.amazonaws.iam`,i4=tO.for(n4),Sze=[-3,n4,`IAMServiceException`,0,[],[]];i4.registerError(Sze,v2);var a4=tO.for(Y),Cze=[-3,Y,IIe,{[$2]:Q2,[e4]:400},[j2],[0]];a4.registerError(Cze,rIe);var wze=[-3,Y,JIe,{[$2]:Q2,[e4]:400},[j2],[0]];a4.registerError(wze,xIe);var Tze=[-3,Y,QIe,{[Z2]:[`ConcurrentModification`,409],[$2]:Q2,[e4]:409},[t4],[0]];a4.registerError(Tze,eIe);var Eze=[-3,Y,rLe,{[Z2]:[`ReportExpired`,410],[$2]:Q2,[e4]:410},[t4],[0]];a4.registerError(Eze,wIe);var Dze=[-3,Y,iLe,{[Z2]:[`ReportNotPresent`,410],[$2]:Q2,[e4]:410},[t4],[0]];a4.registerError(Dze,TIe);var Oze=[-3,Y,aLe,{[Z2]:[`ReportInProgress`,404],[$2]:Q2,[e4]:404},[t4],[0]];a4.registerError(Oze,EIe);var kze=[-3,Y,pLe,{[Z2]:[`DeleteConflict`,409],[$2]:Q2,[e4]:409},[t4],[0]];a4.registerError(kze,hIe);var Aze=[-3,Y,mLe,{[Z2]:[`DuplicateCertificate`,409],[$2]:Q2,[e4]:409},[t4],[0]];a4.registerError(Aze,jIe);var jze=[-3,Y,CLe,{[Z2]:[`DuplicateSSHPublicKey`,400],[$2]:Q2,[e4]:400},[t4],[0]];a4.registerError(jze,NIe);var Mze=[-3,Y,ALe,{[Z2]:[`EntityAlreadyExists`,409],[$2]:Q2,[e4]:409},[t4],[0]];a4.registerError(Mze,oIe);var Nze=[-3,Y,jLe,{[Z2]:[`EntityTemporarilyUnmodifiable`,409],[$2]:Q2,[e4]:409},[t4],[0]];a4.registerError(Nze,lIe);var Pze=[-3,Y,MLe,{[Z2]:[`FeatureDisabled`,404],[$2]:Q2,[e4]:404},[t4],[0]];a4.registerError(Pze,yIe);var Fze=[-3,Y,NLe,{[Z2]:[`FeatureEnabled`,409],[$2]:Q2,[e4]:409},[t4],[0]];a4.registerError(Fze,SIe);var Ize=[-3,Y,XLe,{[Z2]:[`InvalidAuthenticationCode`,403],[$2]:Q2,[e4]:403},[t4],[0]];a4.registerError(Ize,bIe);var Lze=[-3,Y,ZLe,{[Z2]:[`InvalidCertificate`,400],[$2]:Q2,[e4]:400},[t4],[0]];a4.registerError(Lze,MIe);var Rze=[-3,Y,$Le,{[Z2]:[`InvalidInput`,400],[$2]:Q2,[e4]:400},[t4],[0]];a4.registerError(Rze,iIe);var zze=[-3,Y,tRe,{[Z2]:[`InvalidPublicKey`,400],[$2]:Q2,[e4]:400},[t4],[0]];a4.registerError(zze,PIe);var Bze=[-3,Y,nRe,{[Z2]:[`InvalidUserType`,400],[$2]:Q2,[e4]:400},[t4],[0]];a4.registerError(Bze,uIe);var Vze=[-3,Y,iRe,{[Z2]:[`KeyPairMismatch`,400],[$2]:Q2,[e4]:400},[t4],[0]];a4.registerError(Vze,kIe);var Hze=[-3,Y,mRe,{[Z2]:[`LimitExceeded`,409],[$2]:Q2,[e4]:409},[t4],[0]];a4.registerError(Hze,aIe);var Uze=[-3,Y,jRe,{[Z2]:[`MalformedCertificate`,400],[$2]:Q2,[e4]:400},[t4],[0]];a4.registerError(Uze,AIe);var Wze=[-3,Y,MRe,{[Z2]:[`MalformedPolicyDocument`,400],[$2]:Q2,[e4]:400},[t4],[0]];a4.registerError(Wze,pIe);var Gze=[-3,Y,NRe,{[Z2]:[`NoSuchEntity`,404],[$2]:Q2,[e4]:404},[t4],[0]];a4.registerError(Gze,tIe);var Kze=[-3,Y,FRe,{[Z2]:[`OpenIdIdpCommunicationError`,400],[$2]:Q2,[e4]:400},[t4],[0]];a4.registerError(Kze,fIe);var qze=[-3,Y,IRe,{[$2]:Q2,[e4]:400},[j2],[0]];a4.registerError(qze,gIe);var Jze=[-3,Y,LRe,{[$2]:Q2,[e4]:400},[j2],[0]];a4.registerError(Jze,_Ie);var Yze=[-3,Y,KRe,{[Z2]:[`PasswordPolicyViolation`,400],[$2]:Q2,[e4]:400},[t4],[0]];a4.registerError(Yze,dIe);var Xze=[-3,Y,HRe,{[Z2]:[`PolicyEvaluation`,500],[$2]:r4,[e4]:500},[t4],[0]];a4.registerError(Xze,OIe);var Zze=[-3,Y,GRe,{[Z2]:[`PolicyNotAttachable`,400],[$2]:Q2,[e4]:400},[t4],[0]];a4.registerError(Zze,cIe);var Qze=[-3,Y,XRe,{[Z2]:[`ReportGenerationLimitExceeded`,409],[$2]:Q2,[e4]:409},[t4],[0]];a4.registerError(Qze,CIe);var $ze=[-3,Y,tze,{[$2]:Q2,[e4]:400},[j2],[0]];a4.registerError($ze,vIe);var eBe=[-3,Y,nze,{[Z2]:[`ServiceFailure`,500],[$2]:r4,[e4]:500},[t4],[0]];a4.registerError(eBe,nIe);var tBe=[-3,Y,rze,{[Z2]:[`NotSupportedService`,404],[$2]:Q2,[e4]:404},[t4],[0]];a4.registerError(tBe,mIe);var nBe=[-3,Y,lze,{[Z2]:[`UnmodifiableEntity`,400],[$2]:Q2,[e4]:400},[t4],[0]];a4.registerError(nBe,sIe);var rBe=[-3,Y,dze,{[Z2]:[`UnrecognizedPublicKeyEncoding`,400],[$2]:Q2,[e4]:400},[t4],[0]];a4.registerError(rBe,DIe);var iBe=[i4,a4],aBe=[0,Y,hze,8,0],oBe=[3,Y,b2,0,[J2,x2,K2,eze,T2],[0,0,0,[()=>aBe,0],4],4],sBe=[3,Y,S2,0,[J2,x2,K2,T2],[0,0,0,4]],cBe=[3,Y,HIe,0,[O2,U2],[0,0],2],o4=[3,Y,RIe,0,[zRe,RRe],[0,0]],lBe=[3,Y,LIe,0,[L2,F2],[0,0]],uBe=[3,Y,BIe,0,[U2,F2],[0,0],2],dBe=[3,Y,WIe,0,[J2,F2],[0,0],2],fBe=[3,Y,KIe,0,[J2],[0]],pBe=[3,Y,qIe,0,[b2],[[()=>oBe,0]],1],mBe=[3,Y,XIe,0,[O2,B2,q2],[0,0,()=>h4],1],hBe=[3,Y,ZIe,0,[D2],[()=>s4],1],gBe=[3,Y,$Ie,0,[L2,VRe,B2,E2,q2],[0,0,0,0,()=>h4],2],_Be=[3,Y,eLe,0,[V2],[()=>c4]],vBe=[3,Y,oLe,0,[U2,w2,B2,E2,N2,I2,q2],[0,0,0,0,1,0,()=>h4],2],yBe=[3,Y,sLe,0,[W2],[()=>l4],1],bBe=[3,Y,lLe,0,[J2,B2,I2,q2],[0,0,0,()=>h4],1],xBe=[3,Y,uLe,0,[Y2],[()=>u4]],SBe=[3,Y,fLe,0,[x2,J2],[0,0],1],CBe=[3,Y,gLe,0,[O2],[0],1],wBe=[3,Y,_Le,0,[F2],[0],1],TBe=[3,Y,xLe,0,[U2],[0],1],EBe=[3,Y,DLe,0,[J2],[0],1],DBe=[3,Y,yLe,0,[U2,F2],[0,0],2],OBe=[3,Y,TLe,0,[J2,F2],[0,0],2],kBe=[3,Y,FLe,0,[O2],[0],1],ABe=[3,Y,ILe,0,[D2],[()=>s4],1],jBe=[3,Y,RLe,0,[F2],[0],1],MBe=[3,Y,zLe,0,[V2],[()=>c4]],NBe=[3,Y,VLe,0,[F2,X2],[0,0],2],PBe=[3,Y,HLe,0,[z2],[()=>tVe]],FBe=[3,Y,WLe,0,[U2],[0],1],IBe=[3,Y,GLe,0,[W2],[()=>l4],1],LBe=[3,Y,qLe,0,[J2],[0]],RBe=[3,Y,JLe,0,[Y2],[()=>u4],1],s4=[3,Y,D2,0,[B2,O2,eRe,y2,T2,G2,q2],[0,0,0,0,4,()=>m4,()=>h4],6],zBe=[3,Y,oRe,0,[J2,P2,M2],[0,0,1]],BBe=[3,Y,sRe,0,[S2,A2,P2],[()=>oVe,2,0],1],VBe=[3,Y,lRe,0,[U2,R2,P2,M2],[0,0,0,1],1],HBe=[3,Y,uRe,0,[C2,A2,P2],[()=>f4,2,0]],UBe=[3,Y,fRe,0,[J2,R2,P2,M2],[0,0,0,1],1],WBe=[3,Y,pRe,0,[C2,A2,P2],[()=>f4,2,0]],GBe=[3,Y,_Re,0,[U2,P2,M2],[0,0,1],1],KBe=[3,Y,vRe,0,[k2,A2,P2],[()=>p4,2,0],1],qBe=[3,Y,yRe,0,[R2,P2,M2],[0,0,1]],JBe=[3,Y,bRe,0,[k2,A2,P2],[()=>p4,2,0],1],YBe=[3,Y,xRe,0,[ize,PRe,R2,qRe,P2,M2],[0,2,0,0,0,1]],XBe=[3,Y,SRe,0,[JRe,A2,P2],[()=>sVe,2,0]],ZBe=[3,Y,TRe,0,[R2,P2,M2],[0,0,1]],QBe=[3,Y,ERe,0,[G2,A2,P2],[()=>m4,2,0],1],$Be=[3,Y,kRe,0,[R2,P2,M2],[0,0,1]],eVe=[3,Y,ARe,0,[fze,A2,P2],[()=>cVe,2,0],1],c4=[3,Y,V2,0,[L2,URe,y2,B2,OLe,FIe,BRe,YLe,E2,T2,cze,q2],[0,0,0,0,0,1,1,2,0,4,4,()=>h4]],tVe=[3,Y,z2,0,[kLe,X2,QLe,T2],[0,0,2,4]],nVe=[3,Y,$Re,0,[O2,U2],[0,0],2],l4=[3,Y,W2,0,[B2,U2,ZRe,y2,T2,w2,E2,N2,I2,q2,H2],[0,0,0,0,4,0,0,1,()=>o4,()=>h4,()=>rVe],5],rVe=[3,Y,H2,0,[ORe,YRe],[4,0]],iVe=[3,Y,aze,0,[rRe,pze],[0,0],2],aVe=[3,Y,sze,0,[x2,K2,J2],[0,0,0],2],u4=[3,Y,Y2,0,[B2,J2,uze,y2,T2,WRe,I2,q2],[0,0,0,0,4,4,()=>o4,()=>h4],5],d4=`unit`,oVe=[1,Y,mze,0,()=>sBe],f4=[1,Y,gze,0,()=>lBe],p4=[1,Y,_ze,0,()=>s4],sVe=[1,Y,vze,0,()=>c4],m4=[1,Y,yze,0,()=>l4],h4=[1,Y,bze,0,()=>iVe],cVe=[1,Y,xze,0,()=>u4],lVe=[9,Y,VIe,0,()=>cBe,()=>d4],uVe=[9,Y,zIe,0,()=>uBe,()=>d4],dVe=[9,Y,UIe,0,()=>dBe,()=>d4],fVe=[9,Y,GIe,0,()=>fBe,()=>pBe],pVe=[9,Y,YIe,0,()=>mBe,()=>hBe],mVe=[9,Y,tLe,0,()=>gBe,()=>_Be],hVe=[9,Y,nLe,0,()=>vBe,()=>yBe],gVe=[9,Y,cLe,0,()=>bBe,()=>xBe],_Ve=[9,Y,dLe,0,()=>SBe,()=>d4],vVe=[9,Y,hLe,0,()=>CBe,()=>d4],yVe=[9,Y,vLe,0,()=>wBe,()=>d4],bVe=[9,Y,SLe,0,()=>TBe,()=>d4],xVe=[9,Y,wLe,0,()=>EBe,()=>d4],SVe=[9,Y,bLe,0,()=>DBe,()=>d4],CVe=[9,Y,ELe,0,()=>OBe,()=>d4],wVe=[9,Y,PLe,0,()=>kBe,()=>ABe],TVe=[9,Y,LLe,0,()=>jBe,()=>MBe],EVe=[9,Y,BLe,0,()=>NBe,()=>PBe],DVe=[9,Y,ULe,0,()=>FBe,()=>IBe],OVe=[9,Y,KLe,0,()=>LBe,()=>RBe],kVe=[9,Y,aRe,0,()=>zBe,()=>BBe],AVe=[9,Y,cRe,0,()=>VBe,()=>HBe],jVe=[9,Y,dRe,0,()=>UBe,()=>WBe],MVe=[9,Y,hRe,0,()=>qBe,()=>JBe],NVe=[9,Y,gRe,0,()=>GBe,()=>KBe],PVe=[9,Y,CRe,0,()=>YBe,()=>XBe],FVe=[9,Y,wRe,0,()=>ZBe,()=>QBe],IVe=[9,Y,DRe,0,()=>$Be,()=>eVe],LVe=[9,Y,QRe,0,()=>nVe,()=>d4],RVe=[9,Y,oze,0,()=>aVe,()=>d4],zVe=e=>({apiVersion:`2010-05-08`,base64Decoder:e?.base64Decoder??SD,base64Encoder:e?.base64Encoder??CD,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??$Fe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??GFe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Yk}],logger:e?.logger??new Vk,protocol:e?.protocol??uA,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.iam`,errorTypeRegistries:iBe,xmlNamespace:`https://iam.amazonaws.com/doc/2010-05-08/`,version:`2010-05-08`,serviceTarget:`AWSIdentityManagementV20100508`},serviceId:e?.serviceId??`IAM`,urlParser:e?.urlParser??GD,utf8Decoder:e?.utf8Decoder??Fb,utf8Encoder:e?.utf8Encoder??Lb}),BVe=e=>{let t=rA(e),n=()=>t().then(Ik),r=zVe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??nA,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Qk({serviceId:r.serviceId,clientVersion:JFe.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??eA(`Region is missing`),requestHandler:jD.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||ek),sha256:e?.sha256??wb,streamCollector:e?.streamCollector??ND,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},VVe=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}}},HVe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),UVe=(e,t)=>{let n=Object.assign(p$(e),Rk(e),Tb(e),VVe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,m$(n),zk(n),Eb(n),HVe(n))},WVe=class extends Ak{config;constructor(...[e]){let t=BVe(e||{});super(t),this.initConfig=t;let n=UVe(KFe(Ck(QE(hk(wk(jO(qFe(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(KD(this.config)),this.middlewareStack.use(fk(this.config)),this.middlewareStack.use(Uk(this.config)),this.middlewareStack.use(_k(this.config)),this.middlewareStack.use(tD(this.config)),this.middlewareStack.use(iD(this.config)),this.middlewareStack.use(sD(this.config)),this.middlewareStack.use(fD(this.config,{httpAuthSchemeParametersProvider:UFe,identityProviderConfigProvider:async e=>new kO({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(_D(this.config))}destroy(){super.destroy()}},GVe=class extends Nk.classBuilder().ep(q0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetInstanceProfile`,{}).n(`IAMClient`,`GetInstanceProfileCommand`).sc(wVe).build(){},KVe=class extends Nk.classBuilder().ep(q0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicy`,{}).n(`IAMClient`,`GetPolicyCommand`).sc(TVe).build(){},qVe=class extends Nk.classBuilder().ep(q0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicyVersion`,{}).n(`IAMClient`,`GetPolicyVersionCommand`).sc(EVe).build(){},JVe=class extends Nk.classBuilder().ep(q0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetRole`,{}).n(`IAMClient`,`GetRoleCommand`).sc(DVe).build(){},YVe=class extends Nk.classBuilder().ep(q0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetUser`,{}).n(`IAMClient`,`GetUserCommand`).sc(OVe).build(){},XVe=class extends Nk.classBuilder().ep(q0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAccessKeys`,{}).n(`IAMClient`,`ListAccessKeysCommand`).sc(kVe).build(){},ZVe=class extends Nk.classBuilder().ep(q0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedRolePolicies`,{}).n(`IAMClient`,`ListAttachedRolePoliciesCommand`).sc(AVe).build(){},QVe=class extends Nk.classBuilder().ep(q0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedUserPolicies`,{}).n(`IAMClient`,`ListAttachedUserPoliciesCommand`).sc(jVe).build(){},$Ve=class extends Nk.classBuilder().ep(q0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListInstanceProfiles`,{}).n(`IAMClient`,`ListInstanceProfilesCommand`).sc(MVe).build(){},eHe=class extends Nk.classBuilder().ep(q0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListInstanceProfilesForRole`,{}).n(`IAMClient`,`ListInstanceProfilesForRoleCommand`).sc(NVe).build(){},tHe=class extends Nk.classBuilder().ep(q0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListPolicies`,{}).n(`IAMClient`,`ListPoliciesCommand`).sc(PVe).build(){},nHe=class extends Nk.classBuilder().ep(q0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListRoles`,{}).n(`IAMClient`,`ListRolesCommand`).sc(FVe).build(){},rHe=class extends Nk.classBuilder().ep(q0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListUsers`,{}).n(`IAMClient`,`ListUsersCommand`).sc(IVe).build(){};function iHe(e){return t=>async n=>{let{request:r}=n;if(e.expectContinueHeader!==!1&&kb.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 aHe={step:`build`,tags:[`SET_EXPECT_HEADER`,`EXPECT_HEADER`],name:`addExpectContinueMiddleware`,override:!0},oHe=e=>({applyToStack:t=>{t.add(iHe(e),aHe)}}),g4={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},sHe=g4.WHEN_SUPPORTED,cHe={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},lHe=g4.WHEN_SUPPORTED,_4;(function(e){e.MD5=`MD5`,e.CRC32=`CRC32`,e.CRC32C=`CRC32C`,e.CRC64NVME=`CRC64NVME`,e.SHA1=`SHA1`,e.SHA256=`SHA256`})(_4||={});var uHe;(function(e){e.HEADER=`header`,e.TRAILER=`trailer`})(uHe||={});var dHe=_4.CRC32,fHe=function(){function e(){this.crc32=new v4}return e.prototype.update=function(e){pb(e)||this.crc32.update(fb(e))},e.prototype.digest=function(){return yb(this,void 0,void 0,function(){return bb(this,function(e){return[2,mb(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new v4},e}(),v4=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var r=xb(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.checksum=this.checksum>>>8^pHe[(this.checksum^a)&255]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}(),pHe=hb([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),mHe=e=>{let{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:tx(t??sHe),responseChecksumValidation:tx(n??lHe),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})},hHe=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}},gHe={tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectEndpointMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`};function _He(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 vHe={step:`initialize`,tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectMiddleware`,override:!0},yHe=e=>({applyToStack:t=>{t.add(_He(e),vHe),t.addRelativeTo(hHe(e),gHe)}}),bHe=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 y4(Promise.resolve(e)))})),t)):i.set(r,new y4(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}}},SHe=`sigv4-s3express`,b4=`X-Amz-S3session-Token`,x4=b4.toLowerCase(),CHe=class extends rx{async signWithCredentials(e,t,n){let r=S4(t);e.headers[x4]=t.sessionToken;let i=this;return C4(i,r),i.signRequest(e,n??{})}async presignWithCredentials(e,t,n){let r=S4(t);return delete e.headers[x4],e.headers[b4]=t.sessionToken,e.query=e.query??{},e.query[b4]=t.sessionToken,C4(this,r),this.presign(e,n)}};function S4(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function C4(e,t){let n=setTimeout(()=>{throw Error(`SignatureV4S3Express credential override was created but not called.`)},10),r=e.credentialProvider;e.credentialProvider=()=>(clearTimeout(n),e.credentialProvider=r,Promise.resolve(t))}var wHe=e=>(t,n)=>async r=>{if(n.endpointV2){let t=n.endpointV2,i=t.properties?.authSchemes?.[0]?.name===SHe;if((t.properties?.backend===`S3Express`||t.properties?.bucketType===`Directory`)&&(ck(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,kb.isInstance(r.request)&&i.sessionToken&&(r.request.headers[x4]=i.sessionToken)}}}return t(r)},THe={name:`s3ExpressMiddleware`,step:`build`,tags:[`S3`,`S3_EXPRESS`],override:!0},EHe=e=>({applyToStack:t=>{t.add(wHe(e),THe)}}),DHe=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},OHe=e=>e=>{throw e},kHe=(e,t)=>{},AHe=e=>(t,n)=>async r=>{if(!kb.isInstance(r.request))return t(r);let i=ex(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 DHe(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||OHe)(a));return(s.successHandler||kHe)(l.response,a),l},jHe=e=>({applyToStack:t=>{t.addRelativeTo(AHe(e),gD)}}),MHe=(e,{session:t})=>{let[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:a,disableMultiregionAccessPoints:o,followRegionRedirects:s,s3ExpressIdentityProvider:c,bucketEndpoint:l,expectContinueHeader:u}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:a??!1,disableMultiregionAccessPoints:o??!1,followRegionRedirects:s??!1,s3ExpressIdentityProvider:c??new xHe(async e=>n().send(new r({Bucket:e}))),bucketEndpoint:l??!1,expectContinueHeader:u??2097152})};function NHe(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}var PHe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},FHe=e=>(t,n)=>async r=>{let i=await t(r),{response:a}=i;if(!Ab.isInstance(a))return i;let{statusCode:o,body:s}=a;if(o<200||o>=300)return i;let c=await IHe(s,e);if(a.body=NHe(c),c.length===0&&PHe[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},IHe=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),LHe={relation:`after`,toMiddleware:`deserializerMiddleware`,tags:[`THROW_200_EXCEPTIONS`,`S3`],name:`throw200ExceptionsMiddleware`,override:!0},w4=e=>({applyToStack:t=>{t.addRelativeTo(FHe(e),LHe)}}),RHe=e=>typeof e==`string`&&e.indexOf(`arn:`)===0&&e.split(`:`).length>=6;function zHe(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 BHe={name:`bucketEndpointMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`};function VHe({bucketEndpoint:e}){return t=>async n=>{let{input:{Bucket:r}}=n;if(!e&&typeof r==`string`&&!RHe(r)&&r.indexOf(`/`)>=0){let e=Error(`Bucket name shouldn't contain '/', received '${r}'`);throw e.name=`InvalidBucketName`,e}return t({...n})}}var HHe={step:`initialize`,tags:[`VALIDATE_BUCKET_NAME`],name:`validateBucketNameMiddleware`,override:!0},UHe=e=>({applyToStack:t=>{t.add(VHe(e),HHe),t.addRelativeTo(zHe(e),BHe)}}),WHe=class extends Gde{async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=QD.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}},GHe=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),T4={CrtSignerV4:null},E4=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof T4.CrtSignerV4==`function`?`crt`:typeof ix.SignatureV4a==`function`?`js`:`none`}constructor(e){this.sigv4Signer=new CHe(e),this.signerOptions=e}async sign(e,t={}){return t.signingRegion===`*`?this.getSigv4aSigner().sign(e,t):this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,n={}){if(n.signingRegion===`*`){let r=this.getSigv4aSigner(),i=T4.CrtSignerV4;if(i&&r instanceof i)return r.signWithCredentials(e,t,n);throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,n)}async presign(e,t={}){if(t.signingRegion===`*`){let n=this.getSigv4aSigner(),r=T4.CrtSignerV4;if(r&&n instanceof r)return n.presign(e,t);throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,n={}){if(n.signingRegion===`*`)throw Error(`Method presignWithCredentials is not supported for [signingRegion=*].`);return this.sigv4Signer.presignWithCredentials(e,t,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=T4.CrtSignerV4,t=ix.SignatureV4a;if(this.signerOptions.runtime===`node`){if(!e&&!t)throw Error(`Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);if(e&&typeof e==`function`)this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==`function`)this.sigv4aSigner=new t({...this.signerOptions});else throw Error(`Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}else{if(!t||typeof t!=`function`)throw Error(`JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a`);this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}},D4=`ref`,O4=`argv`,k4=`backend`,A4=`authSchemes`,j4=`disableDoubleEncoding`,M4=`signingName`,N4=`signingRegion`,P4=`signingRegionSet`,F4=-1,I4=!0,L4=!1,R4=`isSet`,z4=`booleanEquals`,B4=`stringEquals`,V4=`coalesce`,H4=`substring`,U4=``,W4=`aws.partition`,G4=`partitionResult`,K4=`accessPointSuffix`,q4=`regionPrefix`,J4=e=>`outpostId_ssa_`+e+U4,Y4=`hardwareType`,X4=`ite`,Z4=`isValidHostLabel`,Q4=`sigv4`,$4=`aws.isVirtualHostableS3Bucket`,e3=`url`,t3=`getAttr`,n3=`bucketArn`,r3=`--`,i3=`arnType`,a3=`accesspoint`,o3=e=>`accessPointName_ssa_`+e+U4,s3=`s3-object-lambda`,c3=`s3-outposts`,l3=`bucketPartition`,u3=`us-east-1`,d3=`outpostType`,f3=`name`,p3=`s3`,m3=`{url#scheme}://{Bucket}.{url#authority}{url#path}`,h3=`{url#scheme}://{url#authority}{url#path}`,g3=`{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}`,_3=`https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}`,v3=`https://{Bucket}.s3.{partitionResult#dnsSuffix}`,y3=e=>`{url#scheme}://{accessPointName_ssa_`+e+`}-{bucketArn#accountId}.{url#authority}{url#path}`,b3=e=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+e+"}`",x3=`sigv4a`,S3=`{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}`,C3=`https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,w3=`https://s3.{partitionResult#dnsSuffix}`,T3={[D4]:`UseFIPS`},E3={[D4]:`UseDualStack`},D3={[D4]:`Bucket`},O3={fn:t3,[O4]:[{[D4]:G4},f3]},k3={[D4]:e3},A3={[D4]:`Region`},j3={[D4]:n3},M3={[D4]:i3},N3={[D4]:`accessPointName_ssa_1`},P3={fn:t3,[O4]:[j3,`region`]},F3={[D4]:Y4},I3={fn:t3,[O4]:[j3,`service`]},L3={fn:t3,[O4]:[j3,`accountId`]},R3={[k4]:`S3Express`,[A4]:[{[j4]:!0,[f3]:`{_s3e_auth}`,[M4]:`s3express`,[N4]:`{Region}`}]},z3={[k4]:`S3Express`,[A4]:[{[j4]:!0,[f3]:Q4,[M4]:`s3express`,[N4]:`{Region}`}]},B3={[A4]:[{[j4]:!0,[f3]:x3,[M4]:c3,[P4]:[`*`]},{[j4]:!0,[f3]:Q4,[M4]:c3,[N4]:`{Region}`}]},V3={[A4]:[{[j4]:!0,[f3]:Q4,[M4]:p3,[N4]:u3}]},H3={[A4]:[{[j4]:!0,[f3]:Q4,[M4]:p3,[N4]:`{Region}`}]},U3={[A4]:[{[j4]:!0,[f3]:Q4,[M4]:s3,[N4]:`{bucketArn#region}`}]},W3={[A4]:[{[j4]:!0,[f3]:Q4,[M4]:p3,[N4]:`{bucketArn#region}`}]},G3={[A4]:[{[j4]:!0,[f3]:x3,[M4]:c3,[P4]:[`*`]},{[j4]:!0,[f3]:Q4,[M4]:c3,[N4]:`{bucketArn#region}`}]},K3={[A4]:[{[j4]:!0,[f3]:Q4,[M4]:s3,[N4]:`{Region}`}]},q3=[A3],J3=[{[D4]:`Endpoint`}],Y3=[D3],X3=[D3,0,7,!0],Z3=[j3,`resourceId[1]`],KHe=[`*`],Q3={conditions:[[R4,q3],[z4,[{[D4]:`Accelerate`},I4]],[z4,[T3,I4]],[z4,[E3,I4]],[R4,J3],[R4,Y3],[B4,[{fn:V4,[O4]:[{fn:H4,[O4]:[D3,0,6,I4]},U4]},`--x-s3`]],[B4,[{fn:V4,[O4]:[{fn:H4,[O4]:X3},U4]},`--xa-s3`]],[W4,q3,G4],[H4,X3,K4],[B4,[{[D4]:K4},`--op-s3`]],[H4,[D3,8,12,I4],q4],[H4,[D3,32,49,I4],J4(2)],[H4,[D3,49,50,I4],Y4],[z4,[{[D4]:`ForcePathStyle`},I4]],[B4,[O3,`aws-cn`]],[X4,[E3,`.dualstack`,U4],`_s3e_ds`],[Z4,[{[D4]:J4(2)},L4]],[X4,[T3,`-fips`,U4],`_s3e_fips`],[X4,[{fn:V4,[O4]:[{[D4]:`DisableS3ExpressSessionAuth`},L4]},Q4,`sigv4-s3express`],`_s3e_auth`],[$4,[D3,L4]],[`parseURL`,J3,e3],[z4,[{fn:V4,[O4]:[{[D4]:`UseS3ExpressControlEndpoint`},L4]},I4]],[$4,[D3,I4]],[B4,[{fn:t3,[O4]:[k3,`scheme`]},`http`]],[Z4,[A3,L4]],[`aws.parseArn`,Y3,n3],[t3,[{fn:`split`,[O4]:[D3,r3,0]},`[-2]`],`s3expressAvailabilityZoneId`],[B4,[{fn:V4,[O4]:[{fn:H4,[O4]:[D3,0,4,L4]},U4]},`arn:`]],[B4,[{fn:V4,[O4]:[{fn:H4,[O4]:[D3,16,18,I4]},U4]},r3]],[z4,[{fn:t3,[O4]:[k3,`isIp`]},I4]],[B4,[{fn:V4,[O4]:[{fn:H4,[O4]:[D3,21,23,I4]},U4]},r3]],[B4,[{fn:V4,[O4]:[{fn:H4,[O4]:[D3,27,29,I4]},U4]},r3]],[B4,[{[D4]:q4},`beta`]],[`uriEncode`,Y3,`uri_encoded_bucket`],[Z4,[A3,I4]],[z4,[{fn:V4,[O4]:[{[D4]:`UseObjectLambdaEndpoint`},L4]},I4]],[t3,[j3,`resourceId[0]`],i3],[B4,[M3,U4]],[B4,[M3,a3]],[t3,Z3,o3(1)],[B4,[N3,U4]],[B4,[P3,U4]],[B4,[{fn:V4,[O4]:[{fn:H4,[O4]:[D3,14,16,I4]},U4]},r3]],[B4,[F3,`e`]],[B4,[F3,`o`]],[B4,[A3,`aws-global`]],[B4,[{fn:V4,[O4]:[{fn:H4,[O4]:[D3,19,21,I4]},U4]},r3]],[B4,[I3,s3]],[z4,[{fn:V4,[O4]:[{[D4]:`DisableAccessPoints`},L4]},I4]],[B4,[I3,c3]],[W4,[P3],l3],[Z4,[N3,I4]],[B4,[{fn:V4,[O4]:[{fn:H4,[O4]:[D3,26,28,I4]},U4]},r3]],[B4,[{fn:V4,[O4]:[{fn:H4,[O4]:[D3,15,17,I4]},U4]},r3]],[t3,[j3,`resourceId[4]`]],[B4,[{fn:V4,[O4]:[{fn:H4,[O4]:[D3,20,22,I4]},U4]},r3]],[z4,[{[D4]:`UseGlobalEndpoint`},I4]],[B4,[A3,u3]],[t3,Z3,J4(1)],[z4,[{fn:V4,[O4]:[{[D4]:`UseArnRegion`},I4]},I4]],[Z4,[{[D4]:J4(1)},L4]],[t3,[j3,`resourceId[2]`],d3],[B4,[A3,P3]],[B4,[{fn:t3,[O4]:[{[D4]:l3},f3]},O3]],[z4,[{[D4]:`DisableMultiRegionAccessPoints`},I4]],[Z4,[P3,I4]],[B4,[{fn:t3,[O4]:[j3,`partition`]},O3]],[B4,[L3,U4]],[B4,[I3,p3]],[Z4,[L3,L4]],[t3,[j3,`resourceId[3]`],o3(2)],[Z4,[N3,L4]],[B4,[{[D4]:d3},a3]],[Z4,[{[D4]:o3(2)},L4]]],results:[[F4],[F4,`Accelerate cannot be used with FIPS`],[F4,`Cannot set dual-stack in combination with a custom endpoint.`],[F4,`A custom endpoint cannot be combined with FIPS`],[F4,`A custom endpoint cannot be combined with S3 Accelerate`],[F4,`Partition does not support FIPS`],[F4,`S3Express does not support S3 Accelerate.`],[`{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}`,R3],[m3,R3],[F4,`S3Express bucket name is not a valid virtual hostable name.`],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,z3],[`https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,R3],[F4,`Unrecognized S3Express bucket name format.`],[h3,R3],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,z3],[F4,`Expected a endpoint to be specified but no endpoint was found`],[`https://{Bucket}.ec2.{url#authority}`,B3],[`https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,B3],[`https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}`,B3],[`https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,B3],[F4,`Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"`],[F4,`Invalid Outposts Bucket alias - it must be a valid bucket name.`],[F4,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[F4,"Custom endpoint `{Endpoint}` was not a valid URI"],[F4,`S3 Accelerate cannot be used in this region`],[`https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,V3],[`https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,H3],[`https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}`,V3],[`https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}`,H3],[`https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}`,V3],[`https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}`,H3],[`https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,V3],[`https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,H3],[g3,V3],[m3,V3],[g3,H3],[m3,H3],[_3,V3],[_3,H3],[v3,V3],[v3,H3],[`https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}`,H3],[F4,`Invalid region: region was not a valid DNS name.`],[F4,`S3 Object Lambda does not support Dual-stack`],[F4,`S3 Object Lambda does not support S3 Accelerate`],[F4,`Access points are not supported for this operation`],[F4,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[F4,`Invalid ARN: Missing account id`],[y3(1),U3],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,U3],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}`,U3],[F4,b3(1)],[F4,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[F4,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[F4,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[F4,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[F4,`Invalid ARN: bucket ARN is missing a region`],[F4,"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided"],[F4,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[F4,`Access Points do not support S3 Accelerate`],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,W3],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,W3],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,W3],[y3(1),W3],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}`,W3],[F4,`Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}`],[F4,`S3 MRAP does not support dual-stack`],[F4,`S3 MRAP does not support FIPS`],[F4,`S3 MRAP does not support S3 Accelerate`],[F4,`Invalid configuration: Multi-Region Access Point ARNs are disabled.`],[`https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}`,{[A4]:[{[j4]:I4,name:x3,[M4]:p3,[P4]:KHe}]}],[F4,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[F4,`Invalid Access Point Name`],[F4,`S3 Outposts does not support Dual-stack`],[F4,`S3 Outposts does not support FIPS`],[F4,`S3 Outposts does not support S3 Accelerate`],[F4,`Invalid Arn: Outpost Access Point ARN contains sub resources`],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}`,G3],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}`,G3],[F4,b3(2)],[F4,"Expected an outpost type `accesspoint`, found {outpostType}"],[F4,`Invalid ARN: expected an access point name`],[F4,`Invalid ARN: Expected a 4-component resource`],[F4,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[F4,`Invalid ARN: The Outpost Id was not set`],[F4,`Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})`],[F4,`Invalid ARN: No ARN type specified`],[F4,"Invalid ARN: `{Bucket}` was not a valid ARN"],[F4,`Path-style addressing cannot be used with ARN buckets`],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,V3],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,H3],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,V3],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,H3],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,V3],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,H3],[S3,V3],[S3,H3],[C3,V3],[C3,H3],[`https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,H3],[F4,`Path-style addressing cannot be used with S3 Accelerate`],[h3,K3],[`https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}`,K3],[`https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}`,K3],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,V3],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,H3],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}`,V3],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}`,H3],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,V3],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,H3],[h3,V3],[h3,H3],[w3,V3],[w3,H3],[`https://s3.{Region}.{partitionResult#dnsSuffix}`,H3],[F4,`A region must be set when sending requests to S3.`]]},qHe=2,X=1e8,JHe=new Int32Array([-1,1,-1,0,3,X+115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,X+115,16,10,13,18,11,13,19,12,13,22,X+14,13,35,14,X+42,36,X+103,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,X+86,38,X+86,29,39,47,30,48,X+58,31,50,32,X+85,51,33,136,55,X+76,34,59,35,X+84,60,39,36,61,37,X+83,62,38,146,63,41,X+46,61,40,X+83,62,41,150,64,42,X+54,66,43,X+53,70,44,X+52,71,45,X+81,73,46,X+80,74,X+78,X+79,40,48,X+57,41,X+57,49,42,185,50,48,62,51,49,X+45,52,51,53,526,60,56,54,62,X+55,55,63,57,X+46,62,X+55,57,64,58,X+54,66,59,X+53,69,60,X+65,70,61,X+52,72,X+64,X+51,49,X+45,63,51,64,526,60,67,65,62,X+55,66,63,68,X+46,62,X+55,68,64,69,X+54,66,70,X+53,68,X+47,71,70,72,X+52,72,X+50,X+51,25,74,X+42,46,X+39,75,57,76,X+41,58,X+40,X+41,26,X+88,78,28,X+87,79,34,82,80,35,81,545,36,X+103,X+115,46,X+97,83,57,84,X+99,58,X+98,X+99,5,101,86,8,87,X+115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,X+14,95,35,96,X+42,36,X+103,X+42,22,X+13,98,35,99,X+42,36,X+101,100,46,X+110,X+111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,X+23,26,107,502,37,108,X+86,38,X+86,109,39,112,110,48,X+58,111,50,136,X+85,40,113,X+57,41,X+57,114,42,115,500,48,X+56,116,52,117,X+72,65,X+69,X+72,21,501,X+23,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,X+23,23,128,129,24,189,129,26,130,197,37,131,X+86,38,X+86,132,39,159,133,48,X+58,134,50,135,X+85,51,141,136,55,X+76,137,59,138,X+84,60,X+83,139,61,140,X+83,63,X+83,X+46,55,X+76,142,59,143,X+84,60,148,144,61,145,X+83,62,147,146,63,150,X+46,63,153,X+46,61,149,X+83,62,153,150,64,151,X+54,66,152,X+53,70,X+82,X+52,64,154,X+54,66,155,X+53,70,156,X+52,71,157,X+81,73,158,X+80,74,X+77,X+79,40,160,X+57,41,X+57,161,42,185,162,48,174,163,49,X+45,164,51,165,526,60,168,166,62,X+55,167,63,169,X+46,62,X+55,169,64,170,X+54,66,171,X+53,69,172,X+65,70,173,X+52,72,X+63,X+51,49,X+45,175,51,176,526,60,179,177,62,X+55,178,63,180,X+46,62,X+55,180,64,181,X+54,66,182,X+53,68,X+47,183,70,184,X+52,72,X+48,X+51,48,X+56,186,52,187,X+72,65,X+69,188,67,X+70,X+71,25,X+36,X+42,21,191,X+23,25,192,X+42,30,194,193,46,X+34,X+36,46,X+33,X+35,21,196,X+23,26,X+88,197,28,X+87,198,34,201,199,35,200,545,36,X+101,X+115,46,X+95,X+96,17,203,X+22,20,204,X+21,21,205,550,33,206,550,44,X+16,207,45,X+18,X+20,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,X+9,20,217,227,21,231,X+9,16,219,220,18,223,220,19,221,224,20,222,227,21,231,X+12,19,226,224,20,225,X+9,21,X+9,X+12,20,230,227,21,228,X+9,30,229,X+9,34,X+7,X+9,21,231,415,30,232,X+8,34,X+7,X+8,4,X+2,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,X+86,38,X+86,248,39,249,518,40,250,X+57,41,X+57,251,42,538,252,48,X+43,253,49,X+45,254,51,255,526,60,258,256,62,X+55,257,63,259,X+46,62,X+55,259,64,260,X+54,66,261,X+53,69,262,X+65,70,263,X+52,72,X+62,X+51,25,265,X+42,46,X+31,X+32,26,X+88,267,28,X+87,268,34,269,544,46,X+93,X+94,8,397,X+9,8,407,X+9,3,346,273,4,X+3,274,5,284,275,8,276,X+115,15,X+5,277,16,278,281,18,279,281,19,280,281,22,X+14,281,35,282,X+42,36,X+102,283,46,X+106,X+107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,X+86,38,X+86,291,39,292,307,40,293,X+57,41,X+57,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,X+5,302,20,337,303,26,304,341,37,305,X+86,38,X+86,306,39,309,307,48,X+58,308,50,X+74,X+85,40,310,X+57,41,X+57,311,42,335,312,48,324,313,49,X+45,314,51,315,526,60,318,316,62,X+55,317,63,319,X+46,62,X+55,319,64,320,X+54,66,321,X+53,69,322,X+65,70,323,X+52,72,X+61,X+51,49,X+45,325,51,326,526,60,329,327,62,X+55,328,63,330,X+46,62,X+55,330,64,331,X+54,66,332,X+53,68,X+47,333,70,334,X+52,72,X+49,X+51,48,X+56,336,52,X+67,X+72,25,338,X+42,46,X+27,X+28,15,X+5,340,26,X+88,341,28,X+87,342,34,345,343,35,344,545,36,X+102,X+115,46,X+91,X+92,4,X+2,347,5,357,348,8,349,X+115,15,X+5,350,16,351,354,18,352,354,19,353,354,22,X+14,354,35,355,X+42,36,X+43,356,46,X+104,X+105,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,X+5,367,20,387,368,26,369,391,37,370,X+86,38,X+86,371,39,372,518,40,373,X+57,41,X+57,374,42,538,375,48,X+43,376,49,X+45,377,51,378,526,60,381,379,62,X+55,380,63,382,X+46,62,X+55,382,64,383,X+54,66,384,X+53,69,385,X+65,70,386,X+52,72,X+60,X+51,25,388,X+42,46,X+25,X+26,15,X+5,390,26,X+88,391,28,X+87,392,34,393,544,46,X+89,X+90,15,X+5,547,8,396,X+9,15,X+5,397,16,398,410,18,399,410,19,400,410,20,401,X+9,27,402,X+12,29,X+11,403,31,X+11,404,32,X+11,422,8,406,X+9,15,X+5,407,16,408,410,18,409,410,19,411,410,20,X+12,X+9,20,414,412,22,413,X+9,34,X+10,X+9,22,416,415,27,419,X+12,27,418,417,34,X+10,X+12,34,X+10,419,43,X+11,420,47,X+11,421,53,X+11,422,54,X+11,423,56,X+11,X+12,2,X+1,425,3,478,426,4,X+4,427,5,438,428,8,429,X+115,16,430,433,18,431,433,19,432,433,22,X+14,433,35,434,X+42,36,X+44,435,46,X+112,436,57,437,X+114,58,X+113,X+114,6,X+6,439,7,X+6,440,8,450,441,14,501,442,26,443,502,37,444,X+86,38,X+86,445,39,446,465,40,447,X+57,41,X+57,448,42,471,449,48,X+44,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,X+42,46,X+37,X+38,20,540,461,26,462,474,37,463,X+86,38,X+86,464,39,467,465,48,X+58,466,50,X+75,X+85,40,468,X+57,41,X+57,469,42,471,470,48,X+44,524,48,X+44,472,52,X+68,X+72,26,X+88,474,28,X+87,475,34,X+100,476,35,477,545,36,X+44,X+115,4,X+2,479,5,488,480,8,481,X+115,16,482,485,18,483,485,19,484,485,22,X+14,485,35,486,X+42,36,X+43,487,46,X+108,X+109,6,X+6,489,7,X+6,490,8,503,491,14,501,492,26,493,502,37,494,X+86,38,X+86,495,39,496,518,40,497,X+57,41,X+57,498,42,538,499,48,X+43,500,49,X+45,526,26,X+88,502,28,X+87,X+115,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,X+42,46,X+29,X+30,20,540,514,26,515,542,37,516,X+86,38,X+86,517,39,520,518,48,X+58,519,50,X+73,X+85,40,521,X+57,41,X+57,522,42,538,523,48,X+43,524,49,X+45,525,51,529,526,60,X+55,527,62,X+55,528,63,X+55,X+46,60,532,530,62,X+55,531,63,533,X+46,62,X+55,533,64,534,X+54,66,535,X+53,69,536,X+65,70,537,X+52,72,X+59,X+51,48,X+43,539,52,X+66,X+72,25,X+24,X+42,26,X+88,542,28,X+87,543,34,X+100,544,35,546,545,36,X+42,X+115,36,X+43,X+115,17,548,X+22,20,549,X+21,33,552,550,44,X+17,551,45,X+19,X+20,44,X+15,553,45,X+15,X+20]),YHe=MO.from(JHe,qHe,Q3.conditions,Q3.results),XHe=new NO({size:50,params:[`Accelerate`,`Bucket`,`DisableAccessPoints`,`DisableMultiRegionAccessPoints`,`DisableS3ExpressSessionAuth`,`Endpoint`,`ForcePathStyle`,`Region`,`UseArnRegion`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`,`UseObjectLambdaEndpoint`,`UseS3ExpressControlEndpoint`]}),$3=(e,t={})=>XHe.get(e,()=>YO(YHe,{endpointParams:e,logger:t.logger}));IO.aws=QO;var ZHe=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=ex(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await xk(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:ex(t).operation,region:await tx(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function e6(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function t6(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var QHe=((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(E4.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})($3,e=>{let t=[];switch(e.operation){default:t.push(e6(e)),t.push(t6(e))}return t},{"aws.auth#sigv4":e6,"aws.auth#sigv4a":t6}),$He=e=>{let t=xde(Xk(e));return Object.assign(t,{authSchemePreference:tx(e.authSchemePreference??[])})},eUe=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??{}}),n6={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`}},r6=class e extends Pk{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},tUe=class e extends r6{name=`NoSuchUpload`;$fault=`client`;constructor(t){super({name:`NoSuchUpload`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nUe=class e extends r6{name=`AccessDenied`;$fault=`client`;constructor(t){super({name:`AccessDenied`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rUe=class e extends r6{name=`ObjectNotInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectNotInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},iUe=class e extends r6{name=`BucketAlreadyExists`;$fault=`client`;constructor(t){super({name:`BucketAlreadyExists`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},aUe=class e extends r6{name=`BucketAlreadyOwnedByYou`;$fault=`client`;constructor(t){super({name:`BucketAlreadyOwnedByYou`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},oUe=class e extends r6{name=`NoSuchBucket`;$fault=`client`;constructor(t){super({name:`NoSuchBucket`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sUe=class e extends r6{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}},cUe=class e extends r6{name=`NoSuchKey`;$fault=`client`;constructor(t){super({name:`NoSuchKey`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lUe=class e extends r6{name=`NotFound`;$fault=`client`;constructor(t){super({name:`NotFound`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uUe=class e extends r6{name=`EncryptionTypeMismatch`;$fault=`client`;constructor(t){super({name:`EncryptionTypeMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dUe=class e extends r6{name=`InvalidRequest`;$fault=`client`;constructor(t){super({name:`InvalidRequest`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fUe=class e extends r6{name=`InvalidWriteOffset`;$fault=`client`;constructor(t){super({name:`InvalidWriteOffset`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pUe=class e extends r6{name=`TooManyParts`;$fault=`client`;constructor(t){super({name:`TooManyParts`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mUe=class e extends r6{name=`IdempotencyParameterMismatch`;$fault=`client`;constructor(t){super({name:`IdempotencyParameterMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hUe=class e extends r6{name=`ObjectAlreadyInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectAlreadyInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},i6=`ACL`,gUe=`AccessDenied`,_Ue=`AbortDate`,a6=`AccessKeyId`,vUe=`AbortMultipartUpload`,yUe=`AbortMultipartUploadOutput`,bUe=`AbortMultipartUploadRequest`,xUe=`AcceptRanges`,SUe=`AbortRuleId`,CUe=`AccessTier`,o6=`Bucket`,s6=`BucketArn`,wUe=`BucketAlreadyExists`,TUe=`BucketAlreadyOwnedByYou`,EUe=`BypassGovernanceRetention`,DUe=`BucketInfo`,c6=`BucketKeyEnabled`,OUe=`BucketNamespace`,l6=`BucketRegion`,u6=`Body`,d6=`Buckets`,f6=`ChecksumAlgorithm`,kUe=`CreateBucket`,p6=`CreateBucketConfiguration`,AUe=`CreateBucketOutput`,jUe=`CreateBucketRequest`,m6=`CacheControl`,h6=`ChecksumCRC32`,g6=`ChecksumCRC32C`,_6=`ChecksumCRC64NVME`,v6=`Cache-Control`,MUe=`CreationDate`,y6=`Content-Disposition`,b6=`ContentDisposition`,x6=`Content-Encoding`,S6=`ContentEncoding`,C6=`ContentLanguage`,w6=`Content-Language`,T6=`Content-Length`,E6=`ContentLength`,D6=`Content-MD5`,O6=`ChecksumMD5`,k6=`ContentMD5`,NUe=`CompletedMultipartUpload`,PUe=`CompleteMultipartUploadOutput`,FUe=`CreateMultipartUploadOutput`,IUe=`CompleteMultipartUploadResult`,LUe=`CompleteMultipartUploadRequest`,RUe=`CreateMultipartUploadRequest`,A6=`CompleteMultipartUpload`,zUe=`CreateMultipartUpload`,BUe=`ChecksumMode`,VUe=`CommonPrefix`,HUe=`CommonPrefixList`,UUe=`CompletedPartList`,WUe=`CompletedPart`,GUe=`CommonPrefixes`,KUe=`ContentRange`,qUe=`Content-Range`,j6=`ChecksumSHA1`,M6=`ChecksumSHA256`,N6=`ChecksumSHA512`,JUe=`CreateSessionOutput`,YUe=`CreateSessionResult`,XUe=`CreateSessionRequest`,ZUe=`CreateSession`,P6=`ChecksumType`,F6=`Content-Type`,I6=`ContentType`,L6=`ContinuationToken`,R6=`ChecksumXXHASH64`,z6=`ChecksumXXHASH3`,B6=`ChecksumXXHASH128`,QUe=`Contents`,V6=`Credentials`,H6=`DeleteMarker`,$Ue=`DisplayName`,eWe=`DeleteObjectOutput`,tWe=`DeleteObjectRequest`,nWe=`DeleteObject`,rWe=`DataRedundancy`,U6=`Delimiter`,W6=`Expiration`,G6=`ExpectedBucketOwner`,K6=`ExpiresString`,iWe=`EncryptionTypeMismatch`,q6=`ETag`,J6=`EncodingType`,Y6=`Expires`,aWe=`FetchOwner`,X6=`GrantFullControl`,oWe=`GetObject`,sWe=`GetObjectOutput`,cWe=`GetObjectRequest`,Z6=`GrantRead`,Q6=`GrantReadACP`,lWe=`GrantWrite`,$6=`GrantWriteACP`,uWe=`ID`,e8=`IfMatch`,dWe=`IfMatchInitiatedTime`,fWe=`IfMatchLastModifiedTime`,pWe=`IfMatchSize`,mWe=`If-Modified-Since`,hWe=`IfModifiedSince`,gWe=`InitiateMultipartUploadResult`,t8=`If-Match`,n8=`IfNoneMatch`,r8=`If-None-Match`,_We=`InvalidObjectState`,vWe=`IdempotencyParameterMismatch`,yWe=`InvalidRequest`,bWe=`IsRestoreInProgress`,xWe=`IsTruncated`,SWe=`IfUnmodifiedSince`,CWe=`If-Unmodified-Since`,wWe=`InvalidWriteOffset`,i8=`Key`,TWe=`KeyCount`,a8=`Location`,EWe=`ListAllMyBucketsResult`,DWe=`ListBuckets`,OWe=`ListBucketsOutput`,kWe=`ListBucketsRequest`,AWe=`ListBucketResult`,jWe=`LocationConstraint`,MWe=`LocationInfo`,o8=`LastModified`,NWe=`Last-Modified`,PWe=`ListObjectsV2`,FWe=`ListObjectsV2Output`,IWe=`ListObjectsV2Request`,s8=`Metadata`,LWe=`MaxBuckets`,RWe=`MFA`,c8=`MaxKeys`,zWe=`MissingMeta`,BWe=`MpuObjectSize`,VWe=`MultipartUpload`,l8=`Name`,HWe=`NextContinuationToken`,UWe=`NotFound`,WWe=`NoSuchBucket`,GWe=`NoSuchKey`,KWe=`NoSuchUpload`,u8=`Owner`,qWe=`ObjectAlreadyInActiveTierError`,JWe=`ObjectLockEnabledForBucket`,d8=`ObjectLockLegalHoldStatus`,f8=`ObjectLockMode`,p8=`ObjectLockRetainUntilDate`,YWe=`ObjectList`,XWe=`ObjectNotInActiveTierError`,ZWe=`ObjectOwnership`,QWe=`OptionalObjectAttributes`,$We=`Object`,m8=`Prefix`,eGe=`PartsCount`,h8=`PartNumber`,tGe=`PutObject`,nGe=`PutObjectOutput`,rGe=`PutObjectRequest`,iGe=`PutObjectTagging`,aGe=`PutObjectTaggingOutput`,oGe=`PutObjectTaggingRequest`,sGe=`Parts`,cGe=`Part`,g8=`RequestCharged`,lGe=`ResponseCacheControl`,uGe=`ResponseContentDisposition`,dGe=`ResponseContentEncoding`,fGe=`ResponseContentLanguage`,pGe=`ResponseContentType`,mGe=`ResponseExpires`,hGe=`RestoreExpiryDate`,_8=`RequestPayer`,gGe=`ReplicationStatus`,v8=`RestoreStatus`,y8=`Range`,_Ge=`Restore`,b8=`StartAfter`,x8=`SecretAccessKey`,vGe=`StreamingBlob`,S8=`StorageClass`,yGe=`SessionCredentialValue`,bGe=`SessionCredentials`,xGe=`SessionMode`,C8=`ServerSideEncryption`,w8=`SSECustomerAlgorithm`,T8=`SSECustomerKey`,E8=`SSECustomerKeyMD5`,D8=`SSEKMSEncryptionContext`,O8=`SSEKMSKeyId`,k8=`SessionToken`,A8=`Size`,SGe=`Tags`,CGe=`TagCount`,wGe=`TooManyParts`,j8=`TagSet`,M8=`Tag`,N8=`Tagging`,P8=`Type`,F8=`UploadId`,TGe=`UploadPart`,EGe=`UploadPartOutput`,DGe=`UploadPartRequest`,OGe=`Value`,I8=`VersionId`,kGe=`WriteOffsetBytes`,L8=`WebsiteRedirectLocation`,AGe=`accept-ranges`,jGe=`bucket-region`,R8=`client`,z8=`continuation-token`,MGe=`delimiter`,B8=`error`,NGe=`encoding-type`,PGe=`fetch-owner`,V8=`http`,H8=`httpChecksum`,U8=`httpError`,Z=`httpHeader`,W8=`httpPayload`,G8=`httpPrefixHeaders`,K8=`httpQuery`,FGe=`max-buckets`,IGe=`max-keys`,q8=`prefix`,J8=`partNumber`,LGe=`response-cache-control`,RGe=`response-content-disposition`,zGe=`response-content-encoding`,BGe=`response-content-language`,VGe=`response-content-type`,HGe=`response-expires`,Y8=`smithy.ts.sdk.synthetic.com.amazonaws.s3`,UGe=`start-after`,WGe=`streaming`,X8=`uploadId`,Z8=`versionId`,Q8=`xmlFlattened`,$8=`xmlName`,e5=`x-amz-acl`,GGe=`x-amz-abort-date`,KGe=`x-amz-abort-rule-id`,qGe=`x-amz-bucket-arn`,JGe=`x-amz-bypass-governance-retention`,YGe=`x-amz-bucket-namespace`,XGe=`x-amz-bucket-object-lock-enabled`,t5=`x-amz-checksum-algorithm`,n5=`x-amz-checksum-crc32`,r5=`x-amz-checksum-crc32c`,i5=`x-amz-checksum-crc64nvme`,a5=`x-amz-checksum-md5`,ZGe=`x-amz-checksum-mode`,o5=`x-amz-checksum-sha1`,s5=`x-amz-checksum-sha256`,c5=`x-amz-checksum-sha512`,QGe=`x-amz-create-session-mode`,l5=`x-amz-checksum-type`,u5=`x-amz-checksum-xxhash64`,d5=`x-amz-checksum-xxhash3`,f5=`x-amz-checksum-xxhash128`,p5=`x-amz-delete-marker`,m5=`x-amz-expiration`,h5=`x-amz-expected-bucket-owner`,g5=`x-amz-grant-full-control`,_5=`x-amz-grant-read`,v5=`x-amz-grant-read-acp`,$Ge=`x-amz-grant-write`,y5=`x-amz-grant-write-acp`,eKe=`x-amz-if-match-initiated-time`,tKe=`x-amz-if-match-last-modified-time`,nKe=`x-amz-if-match-size`,b5=`x-amz-meta-`,rKe=`x-amz-mfa`,iKe=`x-amz-missing-meta`,aKe=`x-amz-mp-object-size`,oKe=`x-amz-mp-parts-count`,x5=`x-amz-object-lock-legal-hold`,S5=`x-amz-object-lock-mode`,C5=`x-amz-object-lock-retain-until-date`,sKe=`x-amz-object-ownership`,cKe=`x-amz-optional-object-attributes`,lKe=`x-amz-object-size`,uKe=`x-amz-restore`,w5=`x-amz-request-charged`,T5=`x-amz-request-payer`,dKe=`x-amz-replication-status`,E5=`x-amz-storage-class`,D5=`x-amz-sdk-checksum-algorithm`,O5=`x-amz-server-side-encryption`,k5=`x-amz-server-side-encryption-aws-kms-key-id`,A5=`x-amz-server-side-encryption-bucket-key-enabled`,j5=`x-amz-server-side-encryption-context`,M5=`x-amz-server-side-encryption-customer-algorithm`,N5=`x-amz-server-side-encryption-customer-key`,P5=`x-amz-server-side-encryption-customer-key-MD5`,F5=`x-amz-tagging`,fKe=`x-amz-tagging-count`,I5=`x-amz-version-id`,pKe=`x-amz-write-offset-bytes`,L5=`x-amz-website-redirect-location`,Q=`com.amazonaws.s3`,R5=tO.for(Y8),mKe=[-3,Y8,`S3ServiceException`,0,[],[]];R5.registerError(mKe,r6);var z5=tO.for(Q),hKe=[-3,Q,gUe,{[B8]:R8,[U8]:403},[],[]];z5.registerError(hKe,nUe);var gKe=[-3,Q,wUe,{[B8]:R8,[U8]:409},[],[]];z5.registerError(gKe,iUe);var _Ke=[-3,Q,TUe,{[B8]:R8,[U8]:409},[],[]];z5.registerError(_Ke,aUe);var vKe=[-3,Q,iWe,{[B8]:R8,[U8]:400},[],[]];z5.registerError(vKe,uUe);var yKe=[-3,Q,vWe,{[B8]:R8,[U8]:400},[],[]];z5.registerError(yKe,mUe);var bKe=[-3,Q,_We,{[B8]:R8,[U8]:403},[S8,CUe],[0,0]];z5.registerError(bKe,sUe);var xKe=[-3,Q,yWe,{[B8]:R8,[U8]:400},[],[]];z5.registerError(xKe,dUe);var SKe=[-3,Q,wWe,{[B8]:R8,[U8]:400},[],[]];z5.registerError(SKe,fUe);var CKe=[-3,Q,WWe,{[B8]:R8,[U8]:404},[],[]];z5.registerError(CKe,oUe);var wKe=[-3,Q,GWe,{[B8]:R8,[U8]:404},[],[]];z5.registerError(wKe,cUe);var TKe=[-3,Q,KWe,{[B8]:R8,[U8]:404},[],[]];z5.registerError(TKe,tUe);var EKe=[-3,Q,UWe,{[B8]:R8},[],[]];z5.registerError(EKe,lUe);var DKe=[-3,Q,qWe,{[B8]:R8,[U8]:403},[],[]];z5.registerError(DKe,hUe);var OKe=[-3,Q,XWe,{[B8]:R8,[U8]:403},[],[]];z5.registerError(OKe,rUe);var kKe=[-3,Q,wGe,{[B8]:R8,[U8]:400},[],[]];z5.registerError(kKe,pUe);var AKe=[R5,z5],B5=[0,Q,yGe,8,0],V5=[0,Q,T8,8,0],H5=[0,Q,D8,8,0],U5=[0,Q,O8,8,0],W5=[0,Q,vGe,{[WGe]:1},42],jKe=[3,Q,yUe,0,[g8],[[0,{[Z]:w5}]]],MKe=[3,Q,bUe,0,[o6,i8,F8,_8,G6,dWe],[[0,1],[0,1],[0,{[K8]:X8}],[0,{[Z]:T5}],[0,{[Z]:h5}],[6,{[Z]:eKe}]],3],NKe=[3,Q,o6,0,[l8,MUe,l6,s6],[0,4,0,0]],PKe=[3,Q,DUe,0,[rWe,P8],[0,0]],FKe=[3,Q,VUe,0,[m8],[0]],IKe=[3,Q,NUe,0,[sGe],[[()=>hqe,{[Q8]:1,[$8]:cGe}]]],LKe=[3,Q,WUe,0,[q6,h6,g6,_6,j6,M6,N6,O6,R6,z6,B6,h8],[0,0,0,0,0,0,0,0,0,0,0,1]],RKe=[3,Q,PUe,{[$8]:IUe},[a8,o6,i8,W6,q6,h6,g6,_6,j6,M6,N6,O6,R6,z6,B6,P6,C8,I8,O8,c6,g8],[0,0,0,[0,{[Z]:m5}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[Z]:O5}],[0,{[Z]:I5}],[()=>U5,{[Z]:k5}],[2,{[Z]:A5}],[0,{[Z]:w5}]]],zKe=[3,Q,LUe,0,[o6,i8,F8,VWe,h6,g6,_6,j6,M6,N6,O6,R6,z6,B6,P6,BWe,_8,G6,e8,n8,w8,T8,E8],[[0,1],[0,1],[0,{[K8]:X8}],[()=>IKe,{[W8]:1,[$8]:A6}],[0,{[Z]:n5}],[0,{[Z]:r5}],[0,{[Z]:i5}],[0,{[Z]:o5}],[0,{[Z]:s5}],[0,{[Z]:c5}],[0,{[Z]:a5}],[0,{[Z]:u5}],[0,{[Z]:d5}],[0,{[Z]:f5}],[0,{[Z]:l5}],[1,{[Z]:aKe}],[0,{[Z]:T5}],[0,{[Z]:h5}],[0,{[Z]:t8}],[0,{[Z]:r8}],[0,{[Z]:M5}],[()=>V5,{[Z]:N5}],[0,{[Z]:P5}]],3],BKe=[3,Q,p6,0,[jWe,a8,o6,SGe],[0,()=>tqe,()=>PKe,[()=>K5,0]]],VKe=[3,Q,AUe,0,[a8,s6],[[0,{[Z]:a8}],[0,{[Z]:qGe}]]],HKe=[3,Q,jUe,0,[o6,i6,p6,X6,Z6,Q6,lWe,$6,JWe,ZWe,OUe],[[0,1],[0,{[Z]:e5}],[()=>BKe,{[W8]:1,[$8]:p6}],[0,{[Z]:g5}],[0,{[Z]:_5}],[0,{[Z]:v5}],[0,{[Z]:$Ge}],[0,{[Z]:y5}],[2,{[Z]:XGe}],[0,{[Z]:sKe}],[0,{[Z]:YGe}]],1],UKe=[3,Q,FUe,{[$8]:gWe},[_Ue,SUe,o6,i8,F8,C8,w8,E8,O8,D8,c6,g8,f6,P6],[[4,{[Z]:GGe}],[0,{[Z]:KGe}],[0,{[$8]:o6}],0,0,[0,{[Z]:O5}],[0,{[Z]:M5}],[0,{[Z]:P5}],[()=>U5,{[Z]:k5}],[()=>H5,{[Z]:j5}],[2,{[Z]:A5}],[0,{[Z]:w5}],[0,{[Z]:t5}],[0,{[Z]:l5}]]],WKe=[3,Q,RUe,0,[o6,i8,i6,m6,b6,S6,C6,I6,Y6,X6,Z6,Q6,$6,s8,C8,S8,L8,w8,T8,E8,O8,D8,c6,_8,N8,f8,p8,d8,G6,f6,P6],[[0,1],[0,1],[0,{[Z]:e5}],[0,{[Z]:v6}],[0,{[Z]:y6}],[0,{[Z]:x6}],[0,{[Z]:w6}],[0,{[Z]:F6}],[4,{[Z]:Y6}],[0,{[Z]:g5}],[0,{[Z]:_5}],[0,{[Z]:v5}],[0,{[Z]:y5}],[128,{[G8]:b5}],[0,{[Z]:O5}],[0,{[Z]:E5}],[0,{[Z]:L5}],[0,{[Z]:M5}],[()=>V5,{[Z]:N5}],[0,{[Z]:P5}],[()=>U5,{[Z]:k5}],[()=>H5,{[Z]:j5}],[2,{[Z]:A5}],[0,{[Z]:T5}],[0,{[Z]:F5}],[0,{[Z]:S5}],[5,{[Z]:C5}],[0,{[Z]:x5}],[0,{[Z]:h5}],[0,{[Z]:t5}],[0,{[Z]:l5}]],2],GKe=[3,Q,JUe,{[$8]:YUe},[V6,C8,O8,D8,c6],[[()=>cqe,{[$8]:V6}],[0,{[Z]:O5}],[()=>U5,{[Z]:k5}],[()=>H5,{[Z]:j5}],[2,{[Z]:A5}]],1],KKe=[3,Q,XUe,0,[o6,xGe,C8,O8,D8,c6],[[0,1],[0,{[Z]:QGe}],[0,{[Z]:O5}],[()=>U5,{[Z]:k5}],[()=>H5,{[Z]:j5}],[2,{[Z]:A5}]],1],qKe=[3,Q,eWe,0,[H6,I8,g8],[[2,{[Z]:p5}],[0,{[Z]:I5}],[0,{[Z]:w5}]]],JKe=[3,Q,tWe,0,[o6,i8,RWe,I8,_8,EUe,G6,e8,fWe,pWe],[[0,1],[0,1],[0,{[Z]:rKe}],[0,{[K8]:Z8}],[0,{[Z]:T5}],[2,{[Z]:JGe}],[0,{[Z]:h5}],[0,{[Z]:t8}],[6,{[Z]:tKe}],[1,{[Z]:nKe}]],2],YKe=[3,Q,sWe,0,[u6,H6,xUe,W6,_Ge,o8,E6,q6,h6,g6,_6,j6,M6,N6,O6,R6,z6,B6,P6,zWe,I8,m6,b6,S6,C6,KUe,I6,Y6,K6,L8,C8,s8,w8,E8,O8,c6,S8,g8,gGe,eGe,CGe,f8,p8,d8],[[()=>W5,16],[2,{[Z]:p5}],[0,{[Z]:AGe}],[0,{[Z]:m5}],[0,{[Z]:uKe}],[4,{[Z]:NWe}],[1,{[Z]:T6}],[0,{[Z]:q6}],[0,{[Z]:n5}],[0,{[Z]:r5}],[0,{[Z]:i5}],[0,{[Z]:o5}],[0,{[Z]:s5}],[0,{[Z]:c5}],[0,{[Z]:a5}],[0,{[Z]:u5}],[0,{[Z]:d5}],[0,{[Z]:f5}],[0,{[Z]:l5}],[1,{[Z]:iKe}],[0,{[Z]:I5}],[0,{[Z]:v6}],[0,{[Z]:y6}],[0,{[Z]:x6}],[0,{[Z]:w6}],[0,{[Z]:qUe}],[0,{[Z]:F6}],[4,{[Z]:Y6}],[0,{[Z]:K6}],[0,{[Z]:L5}],[0,{[Z]:O5}],[128,{[G8]:b5}],[0,{[Z]:M5}],[0,{[Z]:P5}],[()=>U5,{[Z]:k5}],[2,{[Z]:A5}],[0,{[Z]:E5}],[0,{[Z]:w5}],[0,{[Z]:dKe}],[1,{[Z]:oKe}],[1,{[Z]:fKe}],[0,{[Z]:S5}],[5,{[Z]:C5}],[0,{[Z]:x5}]]],XKe=[3,Q,cWe,0,[o6,i8,e8,hWe,n8,SWe,y8,lGe,uGe,dGe,fGe,pGe,mGe,I8,w8,T8,E8,_8,h8,G6,BUe],[[0,1],[0,1],[0,{[Z]:t8}],[4,{[Z]:mWe}],[0,{[Z]:r8}],[4,{[Z]:CWe}],[0,{[Z]:y8}],[0,{[K8]:LGe}],[0,{[K8]:RGe}],[0,{[K8]:zGe}],[0,{[K8]:BGe}],[0,{[K8]:VGe}],[6,{[K8]:HGe}],[0,{[K8]:Z8}],[0,{[Z]:M5}],[()=>V5,{[Z]:N5}],[0,{[Z]:P5}],[0,{[Z]:T5}],[1,{[K8]:J8}],[0,{[Z]:h5}],[0,{[Z]:ZGe}]],2],ZKe=[3,Q,OWe,{[$8]:EWe},[d6,u8,L6,m8],[[()=>pqe,0],()=>G5,0,0]],QKe=[3,Q,kWe,0,[LWe,L6,m8,l6],[[1,{[K8]:FGe}],[0,{[K8]:z8}],[0,{[K8]:q8}],[0,{[K8]:jGe}]]],$Ke=[3,Q,FWe,{[$8]:AWe},[xWe,QUe,l8,m8,U6,c8,GUe,J6,TWe,L6,HWe,b8,g8],[2,[()=>gqe,{[Q8]:1}],0,0,0,1,[()=>mqe,{[Q8]:1}],0,1,0,0,0,[0,{[Z]:w5}]]],eqe=[3,Q,IWe,0,[o6,U6,J6,c8,m8,L6,aWe,b8,_8,G6,QWe],[[0,1],[0,{[K8]:MGe}],[0,{[K8]:NGe}],[1,{[K8]:IGe}],[0,{[K8]:q8}],[0,{[K8]:z8}],[2,{[K8]:PGe}],[0,{[K8]:UGe}],[0,{[Z]:T5}],[0,{[Z]:h5}],[64,{[Z]:cKe}]],1],tqe=[3,Q,MWe,0,[P8,l8],[0,0]],nqe=[3,Q,$We,0,[i8,o8,q6,f6,P6,A8,S8,u8,v8],[0,4,0,[64,{[Q8]:1}],0,1,0,()=>G5,()=>sqe]],G5=[3,Q,u8,0,[$Ue,uWe],[0,0]],rqe=[3,Q,nGe,0,[W6,q6,h6,g6,_6,j6,M6,N6,O6,R6,z6,B6,P6,C8,I8,w8,E8,O8,D8,c6,A8,g8],[[0,{[Z]:m5}],[0,{[Z]:q6}],[0,{[Z]:n5}],[0,{[Z]:r5}],[0,{[Z]:i5}],[0,{[Z]:o5}],[0,{[Z]:s5}],[0,{[Z]:c5}],[0,{[Z]:a5}],[0,{[Z]:u5}],[0,{[Z]:d5}],[0,{[Z]:f5}],[0,{[Z]:l5}],[0,{[Z]:O5}],[0,{[Z]:I5}],[0,{[Z]:M5}],[0,{[Z]:P5}],[()=>U5,{[Z]:k5}],[()=>H5,{[Z]:j5}],[2,{[Z]:A5}],[1,{[Z]:lKe}],[0,{[Z]:w5}]]],iqe=[3,Q,rGe,0,[o6,i8,i6,u6,m6,b6,S6,C6,E6,k6,I6,f6,h6,g6,_6,j6,M6,N6,O6,R6,z6,B6,Y6,e8,n8,X6,Z6,Q6,$6,kGe,s8,C8,S8,L8,w8,T8,E8,O8,D8,c6,_8,N8,f8,p8,d8,G6],[[0,1],[0,1],[0,{[Z]:e5}],[()=>W5,16],[0,{[Z]:v6}],[0,{[Z]:y6}],[0,{[Z]:x6}],[0,{[Z]:w6}],[1,{[Z]:T6}],[0,{[Z]:D6}],[0,{[Z]:F6}],[0,{[Z]:D5}],[0,{[Z]:n5}],[0,{[Z]:r5}],[0,{[Z]:i5}],[0,{[Z]:o5}],[0,{[Z]:s5}],[0,{[Z]:c5}],[0,{[Z]:a5}],[0,{[Z]:u5}],[0,{[Z]:d5}],[0,{[Z]:f5}],[4,{[Z]:Y6}],[0,{[Z]:t8}],[0,{[Z]:r8}],[0,{[Z]:g5}],[0,{[Z]:_5}],[0,{[Z]:v5}],[0,{[Z]:y5}],[1,{[Z]:pKe}],[128,{[G8]:b5}],[0,{[Z]:O5}],[0,{[Z]:E5}],[0,{[Z]:L5}],[0,{[Z]:M5}],[()=>V5,{[Z]:N5}],[0,{[Z]:P5}],[()=>U5,{[Z]:k5}],[()=>H5,{[Z]:j5}],[2,{[Z]:A5}],[0,{[Z]:T5}],[0,{[Z]:F5}],[0,{[Z]:S5}],[5,{[Z]:C5}],[0,{[Z]:x5}],[0,{[Z]:h5}]],2],aqe=[3,Q,aGe,0,[I8],[[0,{[Z]:I5}]]],oqe=[3,Q,oGe,0,[o6,i8,N8,I8,k6,f6,G6,_8],[[0,1],[0,1],[()=>uqe,{[W8]:1,[$8]:N8}],[0,{[K8]:Z8}],[0,{[Z]:D6}],[0,{[Z]:D5}],[0,{[Z]:h5}],[0,{[Z]:T5}]],3],sqe=[3,Q,v8,0,[bWe,hGe],[2,4]],cqe=[3,Q,bGe,0,[a6,x8,k8,W6],[[0,{[$8]:a6}],[()=>B5,{[$8]:x8}],[()=>B5,{[$8]:k8}],[4,{[$8]:W6}]],4],lqe=[3,Q,M8,0,[i8,OGe],[0,0],2],uqe=[3,Q,N8,0,[j8],[[()=>K5,0]],1],dqe=[3,Q,EGe,0,[C8,q6,h6,g6,_6,j6,M6,N6,O6,R6,z6,B6,w8,E8,O8,c6,g8],[[0,{[Z]:O5}],[0,{[Z]:q6}],[0,{[Z]:n5}],[0,{[Z]:r5}],[0,{[Z]:i5}],[0,{[Z]:o5}],[0,{[Z]:s5}],[0,{[Z]:c5}],[0,{[Z]:a5}],[0,{[Z]:u5}],[0,{[Z]:d5}],[0,{[Z]:f5}],[0,{[Z]:M5}],[0,{[Z]:P5}],[()=>U5,{[Z]:k5}],[2,{[Z]:A5}],[0,{[Z]:w5}]]],fqe=[3,Q,DGe,0,[o6,i8,h8,F8,u6,E6,k6,f6,h6,g6,_6,j6,M6,N6,O6,R6,z6,B6,w8,T8,E8,_8,G6],[[0,1],[0,1],[1,{[K8]:J8}],[0,{[K8]:X8}],[()=>W5,16],[1,{[Z]:T6}],[0,{[Z]:D6}],[0,{[Z]:D5}],[0,{[Z]:n5}],[0,{[Z]:r5}],[0,{[Z]:i5}],[0,{[Z]:o5}],[0,{[Z]:s5}],[0,{[Z]:c5}],[0,{[Z]:a5}],[0,{[Z]:u5}],[0,{[Z]:d5}],[0,{[Z]:f5}],[0,{[Z]:M5}],[()=>V5,{[Z]:N5}],[0,{[Z]:P5}],[0,{[Z]:T5}],[0,{[Z]:h5}]],4],pqe=[1,Q,d6,0,[()=>NKe,{[$8]:o6}]],mqe=[1,Q,HUe,0,()=>FKe],hqe=[1,Q,UUe,0,()=>LKe],gqe=[1,Q,YWe,0,[()=>nqe,0]],K5=[1,Q,j8,0,[()=>lqe,{[$8]:M8}]],_qe=[9,Q,vUe,{[V8]:[`DELETE`,`/{Key+}?x-id=AbortMultipartUpload`,204]},()=>MKe,()=>jKe],vqe=[9,Q,A6,{[V8]:[`POST`,`/{Key+}`,200]},()=>zKe,()=>RKe],yqe=[9,Q,kUe,{[V8]:[`PUT`,`/`,200]},()=>HKe,()=>VKe],bqe=[9,Q,zUe,{[V8]:[`POST`,`/{Key+}?uploads`,200]},()=>WKe,()=>UKe],xqe=[9,Q,ZUe,{[V8]:[`GET`,`/?session`,200]},()=>KKe,()=>GKe],Sqe=[9,Q,nWe,{[V8]:[`DELETE`,`/{Key+}?x-id=DeleteObject`,204]},()=>JKe,()=>qKe],Cqe=[9,Q,oWe,{[H8]:`-`,[V8]:[`GET`,`/{Key+}?x-id=GetObject`,200]},()=>XKe,()=>YKe],wqe=[9,Q,DWe,{[V8]:[`GET`,`/?x-id=ListBuckets`,200]},()=>QKe,()=>ZKe],Tqe=[9,Q,PWe,{[V8]:[`GET`,`/?list-type=2`,200]},()=>eqe,()=>$Ke],Eqe=[9,Q,tGe,{[H8]:`-`,[V8]:[`PUT`,`/{Key+}?x-id=PutObject`,200]},()=>iqe,()=>rqe],Dqe=[9,Q,iGe,{[H8]:`-`,[V8]:[`PUT`,`/{Key+}?tagging`,200]},()=>oqe,()=>aqe],Oqe=[9,Q,TGe,{[H8]:`-`,[V8]:[`PUT`,`/{Key+}?x-id=UploadPart`,200]},()=>fqe,()=>dqe],kqe=class extends Nk.classBuilder().ep({...n6,DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions()),w4(n)]}).s(`AmazonS3`,`CreateSession`,{}).n(`S3Client`,`CreateSessionCommand`).sc(xqe).build(){},Aqe={name:`@aws-sdk/client-s3`,description:`AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native`,version:`3.1045.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-s3`,"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.8`,"@aws-sdk/credential-provider-node":`^3.972.39`,"@aws-sdk/middleware-bucket-endpoint":`^3.972.10`,"@aws-sdk/middleware-expect-continue":`^3.972.10`,"@aws-sdk/middleware-flexible-checksums":`^3.974.16`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-location-constraint":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-sdk-s3":`^3.972.37`,"@aws-sdk/middleware-ssec":`^3.972.10`,"@aws-sdk/middleware-user-agent":`^3.972.38`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/signature-v4-multi-region":`^3.996.25`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.24`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/eventstream-serde-browser":`^4.2.14`,"@smithy/eventstream-serde-config-resolver":`^4.3.14`,"@smithy/eventstream-serde-node":`^4.2.14`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-blob-browser":`^4.2.15`,"@smithy/hash-node":`^4.2.14`,"@smithy/hash-stream-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/md5-js":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.7`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.6`,"@smithy/util-stream":`^4.5.25`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.3.0`,tslib:`^2.6.2`},devDependencies:{"@aws-sdk/signature-v4-crt":`3.1045.0`,"@smithy/snapshot-testing":`^2.0.8`,"@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/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 q5(e){return typeof e==`string`?e.length===0:e.byteLength===0}var J5={name:`SHA-1`},Y5={name:`HMAC`,hash:J5},jqe=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]),Mqe=function(){function e(e){this.toHash=new Uint8Array,e!==void 0&&(this.key=new Promise(function(t,n){vb().crypto.subtle.importKey(`raw`,X5(e),Y5,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))}return e.prototype.update=function(e){if(!q5(e)){var t=X5(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 vb().crypto.subtle.sign(Y5,t,e.toHash).then(function(e){return new Uint8Array(e)})}):q5(this.toHash)?Promise.resolve(jqe):Promise.resolve().then(function(){return vb().crypto.subtle.digest(J5,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){this.toHash=new Uint8Array},e}();function X5(e){return typeof e==`string`?db(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var Nqe=function(){function e(e){if(Cb(vb()))this.hash=new Mqe(e);else throw Error(`SHA1 not supported`)}return e.prototype.update=function(e,t){this.hash.update(fb(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),Z5=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&Q5(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&Q5(e),parseInt(Pb(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function Q5(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var Pqe=class{toUtf8;fromUtf8;constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){let t=[];for(let n of Object.keys(e)){let r=this.fromUtf8(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}let n=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),r=0;for(let e of t)n.set(e,r),r+=e.byteLength;return n}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([+!e.value]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case`integer`:let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case`long`:let r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case`binary`:let i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(i.buffer);return a.set(e.value,3),a;case`string`:let o=this.fromUtf8(e.value),s=new DataView(new ArrayBuffer(3+o.byteLength));s.setUint8(0,7),s.setUint16(1,o.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(o,3),c;case`timestamp`:let l=new Uint8Array(9);return l[0]=8,l.set(Z5.fromNumber(e.value.valueOf()).bytes,1),l;case`uuid`:if(!Wqe.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let u=new Uint8Array(17);return u[0]=9,u.set(Nb(e.value.replace(/\-/g,``)),1),u}}parse(e){let t={},n=0;for(;n{if(typeof e!=`number`)throw Error(`Attempted to allocate an event message where size was not a number: `+e);t=e,n=4,r=new Uint8Array(e),new DataView(r.buffer).setUint32(0,e,!1)},o=async function*(){let o=e[Symbol.asyncIterator]();for(;;){let{value:e,done:s}=await o.next();if(s){if(!t)return;if(t===n)yield r;else throw Error(`Truncated event message received.`);return}let c=e.length,l=0;for(;l({[Symbol.asyncIterator]:async function*(){let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)return;yield n}}finally{t.releaseLock()}}}),nJe=e=>{let t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){let{done:n,value:r}=await t.next();if(n)return e.close();e.enqueue(r)}})},rJe=class{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new eJe({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){let n=iJe(e)?tJe(e):e;return this.universalMarshaller.deserialize(n,t)}serialize(e,t){let n=this.universalMarshaller.serialize(e,t);return typeof ReadableStream==`function`?nJe(n):n}},iJe=e=>typeof ReadableStream==`function`&&e instanceof ReadableStream,aJe=e=>new rJe(e);async function oJe(e,t,n=1024*1024){let r=e.size,i=0;for(;i{n.update(e)}),n.digest()},cJe=[1732584193,4023233417,2562383102,271733878],lJe=class{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(e){if(uJe(e))return;if(this.finished)throw Error(`Attempted to update an already finished hash.`);let t=dJe(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=i7(n,r,i,a,e.getUint32(0,!0),7,3614090360),a=i7(a,n,r,i,e.getUint32(4,!0),12,3905402710),i=i7(i,a,n,r,e.getUint32(8,!0),17,606105819),r=i7(r,i,a,n,e.getUint32(12,!0),22,3250441966),n=i7(n,r,i,a,e.getUint32(16,!0),7,4118548399),a=i7(a,n,r,i,e.getUint32(20,!0),12,1200080426),i=i7(i,a,n,r,e.getUint32(24,!0),17,2821735955),r=i7(r,i,a,n,e.getUint32(28,!0),22,4249261313),n=i7(n,r,i,a,e.getUint32(32,!0),7,1770035416),a=i7(a,n,r,i,e.getUint32(36,!0),12,2336552879),i=i7(i,a,n,r,e.getUint32(40,!0),17,4294925233),r=i7(r,i,a,n,e.getUint32(44,!0),22,2304563134),n=i7(n,r,i,a,e.getUint32(48,!0),7,1804603682),a=i7(a,n,r,i,e.getUint32(52,!0),12,4254626195),i=i7(i,a,n,r,e.getUint32(56,!0),17,2792965006),r=i7(r,i,a,n,e.getUint32(60,!0),22,1236535329),n=a7(n,r,i,a,e.getUint32(4,!0),5,4129170786),a=a7(a,n,r,i,e.getUint32(24,!0),9,3225465664),i=a7(i,a,n,r,e.getUint32(44,!0),14,643717713),r=a7(r,i,a,n,e.getUint32(0,!0),20,3921069994),n=a7(n,r,i,a,e.getUint32(20,!0),5,3593408605),a=a7(a,n,r,i,e.getUint32(40,!0),9,38016083),i=a7(i,a,n,r,e.getUint32(60,!0),14,3634488961),r=a7(r,i,a,n,e.getUint32(16,!0),20,3889429448),n=a7(n,r,i,a,e.getUint32(36,!0),5,568446438),a=a7(a,n,r,i,e.getUint32(56,!0),9,3275163606),i=a7(i,a,n,r,e.getUint32(12,!0),14,4107603335),r=a7(r,i,a,n,e.getUint32(32,!0),20,1163531501),n=a7(n,r,i,a,e.getUint32(52,!0),5,2850285829),a=a7(a,n,r,i,e.getUint32(8,!0),9,4243563512),i=a7(i,a,n,r,e.getUint32(28,!0),14,1735328473),r=a7(r,i,a,n,e.getUint32(48,!0),20,2368359562),n=o7(n,r,i,a,e.getUint32(20,!0),4,4294588738),a=o7(a,n,r,i,e.getUint32(32,!0),11,2272392833),i=o7(i,a,n,r,e.getUint32(44,!0),16,1839030562),r=o7(r,i,a,n,e.getUint32(56,!0),23,4259657740),n=o7(n,r,i,a,e.getUint32(4,!0),4,2763975236),a=o7(a,n,r,i,e.getUint32(16,!0),11,1272893353),i=o7(i,a,n,r,e.getUint32(28,!0),16,4139469664),r=o7(r,i,a,n,e.getUint32(40,!0),23,3200236656),n=o7(n,r,i,a,e.getUint32(52,!0),4,681279174),a=o7(a,n,r,i,e.getUint32(0,!0),11,3936430074),i=o7(i,a,n,r,e.getUint32(12,!0),16,3572445317),r=o7(r,i,a,n,e.getUint32(24,!0),23,76029189),n=o7(n,r,i,a,e.getUint32(36,!0),4,3654602809),a=o7(a,n,r,i,e.getUint32(48,!0),11,3873151461),i=o7(i,a,n,r,e.getUint32(60,!0),16,530742520),r=o7(r,i,a,n,e.getUint32(8,!0),23,3299628645),n=s7(n,r,i,a,e.getUint32(0,!0),6,4096336452),a=s7(a,n,r,i,e.getUint32(28,!0),10,1126891415),i=s7(i,a,n,r,e.getUint32(56,!0),15,2878612391),r=s7(r,i,a,n,e.getUint32(20,!0),21,4237533241),n=s7(n,r,i,a,e.getUint32(48,!0),6,1700485571),a=s7(a,n,r,i,e.getUint32(12,!0),10,2399980690),i=s7(i,a,n,r,e.getUint32(40,!0),15,4293915773),r=s7(r,i,a,n,e.getUint32(4,!0),21,2240044497),n=s7(n,r,i,a,e.getUint32(32,!0),6,1873313359),a=s7(a,n,r,i,e.getUint32(60,!0),10,4264355552),i=s7(i,a,n,r,e.getUint32(24,!0),15,2734768916),r=s7(r,i,a,n,e.getUint32(52,!0),21,1309151649),n=s7(n,r,i,a,e.getUint32(16,!0),6,4149444226),a=s7(a,n,r,i,e.getUint32(44,!0),10,3174756917),i=s7(i,a,n,r,e.getUint32(8,!0),15,718787259),r=s7(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(cJe),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}};function r7(e,t,n,r,i,a){return t=(t+e&4294967295)+(r+a&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function i7(e,t,n,r,i,a,o){return r7(t&n|~t&r,e,t,i,a,o)}function a7(e,t,n,r,i,a,o){return r7(t&r|n&~r,e,t,i,a,o)}function o7(e,t,n,r,i,a,o){return r7(t^n^r,e,t,i,a,o)}function s7(e,t,n,r,i,a,o){return r7(n^(t|~r),e,t,i,a,o)}function uJe(e){return typeof e==`string`?e.length===0:e.byteLength===0}function dJe(e){return typeof e==`string`?Fb(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var fJe=e=>({apiVersion:`2006-03-01`,base64Decoder:e?.base64Decoder??SD,base64Encoder:e?.base64Encoder??CD,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??$3,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??ED,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??QHe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Yk},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new yde}],logger:e?.logger??new Vk,protocol:e?.protocol??WHe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.s3`,errorTypeRegistries:AKe,xmlNamespace:`http://s3.amazonaws.com/doc/2006-03-01/`,version:`2006-03-01`,serviceTarget:`AmazonS3`},sdkStreamMixin:e?.sdkStreamMixin??RD,serviceId:e?.serviceId??`S3`,signerConstructor:e?.signerConstructor??E4,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??GD,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??Fb,utf8Encoder:e?.utf8Encoder??Lb}),pJe=e=>{let t=rA(e),n=()=>t().then(Ik),r=fJe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??nA,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Qk({serviceId:r.serviceId,clientVersion:Aqe.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??aJe,maxAttempts:e?.maxAttempts??3,md5:e?.md5??lJe,region:e?.region??eA(`Region is missing`),requestHandler:jD.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||ek),sha1:e?.sha1??Nqe,sha256:e?.sha256??wb,streamCollector:e?.streamCollector??ND,streamHasher:e?.streamHasher??sJe,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},mJe=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}}},hJe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),gJe=(e,t)=>{let n=Object.assign(p$(e),Rk(e),Tb(e),mJe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,m$(n),zk(n),Eb(n),hJe(n))},_Je=class extends Ak{config;constructor(...[e]){let t=pJe(e||{});super(t),this.initConfig=t;let n=gJe(MHe($He(GHe(Ck(QE(hk(wk(mHe(jO(eUe(t))))))))),{session:[()=>this,kqe]}),e?.extensions||[]);this.config=n,this.middlewareStack.use(KD(this.config)),this.middlewareStack.use(fk(this.config)),this.middlewareStack.use(Uk(this.config)),this.middlewareStack.use(_k(this.config)),this.middlewareStack.use(tD(this.config)),this.middlewareStack.use(iD(this.config)),this.middlewareStack.use(sD(this.config)),this.middlewareStack.use(fD(this.config,{httpAuthSchemeParametersProvider:ZHe,identityProviderConfigProvider:async e=>new kO({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(_D(this.config)),this.middlewareStack.use(UHe(this.config)),this.middlewareStack.use(oHe(this.config)),this.middlewareStack.use(yHe(this.config)),this.middlewareStack.use(EHe(this.config)),this.middlewareStack.use(jHe(this.config))}destroy(){super.destroy()}},vJe=class extends Nk.classBuilder().ep(n6).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions()),w4(n)]}).s(`AmazonS3`,`ListBuckets`,{}).n(`S3Client`,`ListBucketsCommand`).sc(wqe).build(){},yJe=class extends Nk.classBuilder().ep({...n6,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions()),w4(n)]}).s(`AmazonS3`,`ListObjectsV2`,{}).n(`S3Client`,`ListObjectsV2Command`).sc(Tqe).build(){},c7=`ap-southeast-2`,l7=`${window.location.protocol}//localhost:9999`,bJe=`${window.location.protocol}//localhost:8443`,u7=null,d7=null,f7=null,p7=null,m7=null;function h7(){if(!u7){let e=lb();if(!e)throw Error(`AWS credentials not configured`);u7=new rEe({endpoint:l7,region:c7,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}}),u7.middlewareStack.add(e=>async t=>(kb.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 u7}function g7(){if(!d7){let e=lb();if(!e)throw Error(`AWS credentials not configured`);d7=new FFe({endpoint:l7,region:c7,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}}),d7.middlewareStack.add(e=>async t=>(kb.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 d7}function _7(){if(!f7){let e=lb();if(!e)throw Error(`AWS credentials not configured`);f7=new XE({endpoint:l7,region:c7,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}}),f7.middlewareStack.add(e=>async t=>(kb.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 f7}function v7(){if(!p7){let e=lb();if(!e)throw Error(`AWS credentials not configured`);p7=new WVe({endpoint:l7,region:c7,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}}),p7.middlewareStack.add(e=>async t=>(kb.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 p7}function y7(){if(!m7){let e=lb();if(!e)throw Error(`AWS credentials not configured`);m7=new _Je({endpoint:bJe,region:c7,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey},forcePathStyle:!0}),m7.middlewareStack.add(e=>async t=>(kb.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`}),m7.middlewareStack.add(e=>async t=>(kb.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 m7}function b7(){u7=null,d7=null,f7=null,p7=null,m7=null}var x7=!1;function S7(e,t){x7||!yae(e)||(x7=!0,ub(),b7(),t.clear(),window.location.pathname!==`/login`&&(window.location.href=`/login?reason=expired`))}function xJe(){let e=new ke({queryCache:new Oe({onError:t=>S7(t,e)}),mutationCache:new Ee({onError:t=>S7(t,e)}),defaultOptions:{queries:{staleTime:5e3,refetchIntervalInBackground:!1}}});return e}function SJe(){let e=(0,da.c)(8),{theme:t,setTheme:n}=ha(),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,F.jsx)(Uo,{className:`size-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90`}),o=(0,F.jsx)(Fo,{className:`absolute size-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0`}),s=(0,F.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,F.jsxs)(vl,{className:`rounded-full`,onClick:i,size:`icon-sm`,variant:`ghost`,children:[a,o,s]}),e[6]=i,e[7]=c),c}function C7(){let e=(0,da.c)(7),{isAdmin:t,license:n}=lx(),r=t&&n===`open-source`,i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=al(`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,F.jsx)(Lte,{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,F.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:al(_l({variant:`outline`,size:`sm`})),children:`Upgrade`}),e[2]=r,e[3]=o);let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,F.jsx)(SJe,{}),e[4]=s):s=e[4];let c;return e[5]===o?c=e[6]:(c=(0,F.jsxs)(`header`,{className:i,children:[a,(0,F.jsxs)(`div`,{className:`flex w-full items-center justify-end gap-2`,children:[o,s]})]}),e[5]=o,e[6]=c),c}function CJe(){let e=(0,da.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,F.jsx)(`h1`,{className:`text-4xl font-bold`,children:`404`}),n=(0,F.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,F.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4`,children:[t,n,(0,F.jsx)(Di,{to:`/`,children:(0,F.jsx)(vl,{variant:`outline`,children:`Go back home`})})]}),e[2]=r):r=e[2],r}function w7(){let e=(0,da.c)(186),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:wJe},e[0]=t):t=e[0];let n=Qi(t),r=di(),i=Fe(),{isAdmin:a}=lx(),o;e[1]!==r||e[2]!==i?(o=function(){ub(),b7(),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,F.jsxs)(zte,{className:`flex flex-row items-center gap-2 px-4 py-3`,children:[(0,F.jsx)(`img`,{src:`/mulga-logo.svg`,alt:`Mulga`,className:`size-6 shrink-0 dark:invert`}),(0,F.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,F.jsx)(sg,{children:`General`}),e[5]=l):l=e[5];let u=n===`/`,d,f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,F.jsx)(Do,{className:`size-4`}),f=(0,F.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,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/`,children:(0,F.jsxs)(ug,{isActive:u,tooltip:`Dashboard`,children:[d,f]})})}),e[8]=u,e[9]=p);let m;e[10]!==a||e[11]!==n?(m=a&&(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/nodes`,children:(0,F.jsxs)(ug,{isActive:n.startsWith(`/nodes`),tooltip:`Nodes`,children:[(0,F.jsx)(Bo,{className:`size-4`}),(0,F.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,F.jsxs)(og,{children:[l,(0,F.jsxs)(cg,{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,F.jsx)(sg,{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,F.jsx)(Bo,{className:`size-4`}),y=(0,F.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,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/ec2/describe-instances`,children:(0,F.jsxs)(ug,{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,F.jsx)(ko,{className:`size-4`}),C=(0,F.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,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/ec2/describe-images`,children:(0,F.jsxs)(ug,{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,ee;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,F.jsx)(Ao,{className:`size-4`}),ee=(0,F.jsx)(`span`,{children:`Key Pairs`}),e[31]=E,e[32]=ee):(E=e[31],ee=e[32]);let D;e[33]===T?D=e[34]:(D=(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/ec2/describe-key-pairs`,children:(0,F.jsxs)(ug,{isActive:T,tooltip:`Key Pairs`,children:[E,ee]})})}),e[33]=T,e[34]=D);let O;e[35]===n?O=e[36]:(O=n.startsWith(`/ec2/describe-addresses`)||n.startsWith(`/ec2/allocate-address`),e[35]=n,e[36]=O);let te,ne;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,F.jsx)(Po,{className:`size-4`}),ne=(0,F.jsx)(`span`,{children:`Elastic IPs`}),e[37]=te,e[38]=ne):(te=e[37],ne=e[38]);let re;e[39]===O?re=e[40]:(re=(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/ec2/describe-addresses`,children:(0,F.jsxs)(ug,{isActive:O,tooltip:`Elastic IPs`,children:[te,ne]})})}),e[39]=O,e[40]=re);let k;e[41]===n?k=e[42]:(k=n.startsWith(`/ec2/describe-volumes`)||n.startsWith(`/ec2/create-volume`)||n.startsWith(`/ec2/modify-volume`),e[41]=n,e[42]=k);let A,ie;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,F.jsx)(Eo,{className:`size-4`}),ie=(0,F.jsx)(`span`,{children:`Volumes`}),e[43]=A,e[44]=ie):(A=e[43],ie=e[44]);let j;e[45]===k?j=e[46]:(j=(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/ec2/describe-volumes`,children:(0,F.jsxs)(ug,{isActive:k,tooltip:`Volumes`,children:[A,ie]})})}),e[45]=k,e[46]=j);let ae;e[47]===n?ae=e[48]:(ae=n.startsWith(`/ec2/describe-snapshots`)||n.startsWith(`/ec2/create-snapshot`),e[47]=n,e[48]=ae);let oe,se;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,F.jsx)(So,{className:`size-4`}),se=(0,F.jsx)(`span`,{children:`Snapshots`}),e[49]=oe,e[50]=se):(oe=e[49],se=e[50]);let ce;e[51]===ae?ce=e[52]:(ce=(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/ec2/describe-snapshots`,children:(0,F.jsxs)(ug,{isActive:ae,tooltip:`Snapshots`,children:[oe,se]})})}),e[51]=ae,e[52]=ce);let M;e[53]===n?M=e[54]:(M=n.startsWith(`/ec2/describe-placement-groups`)||n.startsWith(`/ec2/create-placement-group`),e[53]=n,e[54]=M);let le,ue;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,F.jsx)(jo,{className:`size-4`}),ue=(0,F.jsx)(`span`,{children:`Placement Groups`}),e[55]=le,e[56]=ue):(le=e[55],ue=e[56]);let N;e[57]===M?N=e[58]:(N=(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/ec2/describe-placement-groups`,children:(0,F.jsxs)(ug,{isActive:M,tooltip:`Placement Groups`,children:[le,ue]})})}),e[57]=M,e[58]=N);let de;e[59]===n?de=e[60]:(de=n.startsWith(`/ec2/describe-load-balancers`)||n.startsWith(`/ec2/create-load-balancer`),e[59]=n,e[60]=de);let fe,pe;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(fe=(0,F.jsx)(Ko,{className:`size-4`}),pe=(0,F.jsx)(`span`,{children:`Load Balancers`}),e[61]=fe,e[62]=pe):(fe=e[61],pe=e[62]);let me;e[63]===de?me=e[64]:(me=(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/ec2/describe-load-balancers`,children:(0,F.jsxs)(ug,{isActive:de,tooltip:`Load Balancers`,children:[fe,pe]})})}),e[63]=de,e[64]=me);let he;e[65]===n?he=e[66]:(he=n.startsWith(`/ec2/describe-target-groups`)||n.startsWith(`/ec2/create-target-group`),e[65]=n,e[66]=he);let ge,_e;e[67]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,F.jsx)(wo,{className:`size-4`}),_e=(0,F.jsx)(`span`,{children:`Target Groups`}),e[67]=ge,e[68]=_e):(ge=e[67],_e=e[68]);let ve;e[69]===he?ve=e[70]:(ve=(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/ec2/describe-target-groups`,children:(0,F.jsxs)(ug,{isActive:he,tooltip:`Target Groups`,children:[ge,_e]})})}),e[69]=he,e[70]=ve);let ye;e[71]!==b||e[72]!==w||e[73]!==D||e[74]!==re||e[75]!==j||e[76]!==ce||e[77]!==N||e[78]!==me||e[79]!==ve?(ye=(0,F.jsxs)(og,{children:[g,(0,F.jsxs)(cg,{children:[b,w,D,re,j,ce,N,me,ve]})]}),e[71]=b,e[72]=w,e[73]=D,e[74]=re,e[75]=j,e[76]=ce,e[77]=N,e[78]=me,e[79]=ve,e[80]=ye):ye=e[80];let be;e[81]===Symbol.for(`react.memo_cache_sentinel`)?(be=(0,F.jsx)(sg,{children:`Networking`}),e[81]=be):be=e[81];let xe;e[82]===n?xe=e[83]:(xe=n.startsWith(`/ec2/describe-vpcs`)||n.startsWith(`/ec2/create-vpc`),e[82]=n,e[83]=xe);let Se,Ce;e[84]===Symbol.for(`react.memo_cache_sentinel`)?(Se=(0,F.jsx)(Io,{className:`size-4`}),Ce=(0,F.jsx)(`span`,{children:`VPCs`}),e[84]=Se,e[85]=Ce):(Se=e[84],Ce=e[85]);let we;e[86]===xe?we=e[87]:(we=(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/ec2/describe-vpcs`,children:(0,F.jsxs)(ug,{isActive:xe,tooltip:`VPCs`,children:[Se,Ce]})})}),e[86]=xe,e[87]=we);let Te;e[88]===n?Te=e[89]:(Te=n.startsWith(`/ec2/describe-subnets`)||n.startsWith(`/ec2/create-subnet`),e[88]=n,e[89]=Te);let Ee,De;e[90]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=(0,F.jsx)(Mo,{className:`size-4`}),De=(0,F.jsx)(`span`,{children:`Subnets`}),e[90]=Ee,e[91]=De):(Ee=e[90],De=e[91]);let Oe;e[92]===Te?Oe=e[93]:(Oe=(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/ec2/describe-subnets`,children:(0,F.jsxs)(ug,{isActive:Te,tooltip:`Subnets`,children:[Ee,De]})})}),e[92]=Te,e[93]=Oe);let ke;e[94]===n?ke=e[95]:(ke=n.startsWith(`/ec2/describe-security-groups`)||n.startsWith(`/ec2/create-security-group`),e[94]=n,e[95]=ke);let Ae,je;e[96]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,F.jsx)(Vo,{className:`size-4`}),je=(0,F.jsx)(`span`,{children:`Security Groups`}),e[96]=Ae,e[97]=je):(Ae=e[96],je=e[97]);let Me;e[98]===ke?Me=e[99]:(Me=(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/ec2/describe-security-groups`,children:(0,F.jsxs)(ug,{isActive:ke,tooltip:`Security Groups`,children:[Ae,je]})})}),e[98]=ke,e[99]=Me);let Ne;e[100]===n?Ne=e[101]:(Ne=n.startsWith(`/ec2/describe-route-tables`)||n.startsWith(`/ec2/create-route-table`),e[100]=n,e[101]=Ne);let P,Pe;e[102]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,F.jsx)(Ro,{className:`size-4`}),Pe=(0,F.jsx)(`span`,{children:`Route Tables`}),e[102]=P,e[103]=Pe):(P=e[102],Pe=e[103]);let Ie;e[104]===Ne?Ie=e[105]:(Ie=(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/ec2/describe-route-tables`,children:(0,F.jsxs)(ug,{isActive:Ne,tooltip:`Route Tables`,children:[P,Pe]})})}),e[104]=Ne,e[105]=Ie);let I;e[106]===n?I=e[107]:(I=n.startsWith(`/ec2/describe-internet-gateways`),e[106]=n,e[107]=I);let Le,Re;e[108]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,F.jsx)(To,{className:`size-4`}),Re=(0,F.jsx)(`span`,{children:`Internet Gateways`}),e[108]=Le,e[109]=Re):(Le=e[108],Re=e[109]);let ze;e[110]===I?ze=e[111]:(ze=(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/ec2/describe-internet-gateways`,children:(0,F.jsxs)(ug,{isActive:I,tooltip:`Internet Gateways`,children:[Le,Re]})})}),e[110]=I,e[111]=ze);let Be;e[112]===n?Be=e[113]:(Be=n.startsWith(`/ec2/describe-nat-gateways`)||n.startsWith(`/ec2/create-nat-gateway`),e[112]=n,e[113]=Be);let Ve,He;e[114]===Symbol.for(`react.memo_cache_sentinel`)?(Ve=(0,F.jsx)(zo,{className:`size-4`}),He=(0,F.jsx)(`span`,{children:`NAT Gateways`}),e[114]=Ve,e[115]=He):(Ve=e[114],He=e[115]);let Ue;e[116]===Be?Ue=e[117]:(Ue=(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/ec2/describe-nat-gateways`,children:(0,F.jsxs)(ug,{isActive:Be,tooltip:`NAT Gateways`,children:[Ve,He]})})}),e[116]=Be,e[117]=Ue);let We;e[118]!==we||e[119]!==Oe||e[120]!==Me||e[121]!==Ie||e[122]!==ze||e[123]!==Ue?(We=(0,F.jsxs)(og,{children:[be,(0,F.jsxs)(cg,{children:[we,Oe,Me,Ie,ze,Ue]})]}),e[118]=we,e[119]=Oe,e[120]=Me,e[121]=Ie,e[122]=ze,e[123]=Ue,e[124]=We):We=e[124];let Ge;e[125]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,F.jsx)(sg,{children:`IAM`}),e[125]=Ge):Ge=e[125];let Ke;e[126]===n?Ke=e[127]:(Ke=n.startsWith(`/iam/list-users`)||n.startsWith(`/iam/create-user`),e[126]=n,e[127]=Ke);let qe,Je;e[128]===Symbol.for(`react.memo_cache_sentinel`)?(qe=(0,F.jsx)(Go,{className:`size-4`}),Je=(0,F.jsx)(`span`,{children:`Users`}),e[128]=qe,e[129]=Je):(qe=e[128],Je=e[129]);let Ye;e[130]===Ke?Ye=e[131]:(Ye=(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/iam/list-users`,children:(0,F.jsxs)(ug,{isActive:Ke,tooltip:`Users`,children:[qe,Je]})})}),e[130]=Ke,e[131]=Ye);let Xe;e[132]===n?Xe=e[133]:(Xe=n.startsWith(`/iam/list-policies`)||n.startsWith(`/iam/create-policy`),e[132]=n,e[133]=Xe);let Ze,Qe;e[134]===Symbol.for(`react.memo_cache_sentinel`)?(Ze=(0,F.jsx)(Ho,{className:`size-4`}),Qe=(0,F.jsx)(`span`,{children:`Policies`}),e[134]=Ze,e[135]=Qe):(Ze=e[134],Qe=e[135]);let $e;e[136]===Xe?$e=e[137]:($e=(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/iam/list-policies`,children:(0,F.jsxs)(ug,{isActive:Xe,tooltip:`Policies`,children:[Ze,Qe]})})}),e[136]=Xe,e[137]=$e);let et;e[138]===n?et=e[139]:(et=n.startsWith(`/iam/list-roles`)||n.startsWith(`/iam/create-role`),e[138]=n,e[139]=et);let tt,nt;e[140]===Symbol.for(`react.memo_cache_sentinel`)?(tt=(0,F.jsx)(Wo,{className:`size-4`}),nt=(0,F.jsx)(`span`,{children:`Roles`}),e[140]=tt,e[141]=nt):(tt=e[140],nt=e[141]);let rt;e[142]===et?rt=e[143]:(rt=(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/iam/list-roles`,children:(0,F.jsxs)(ug,{isActive:et,tooltip:`Roles`,children:[tt,nt]})})}),e[142]=et,e[143]=rt);let it;e[144]===n?it=e[145]:(it=n.startsWith(`/iam/list-instance-profiles`)||n.startsWith(`/iam/create-instance-profile`),e[144]=n,e[145]=it);let at,ot;e[146]===Symbol.for(`react.memo_cache_sentinel`)?(at=(0,F.jsx)(Oo,{className:`size-4`}),ot=(0,F.jsx)(`span`,{children:`Instance Profiles`}),e[146]=at,e[147]=ot):(at=e[146],ot=e[147]);let st;e[148]===it?st=e[149]:(st=(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/iam/list-instance-profiles`,children:(0,F.jsxs)(ug,{isActive:it,tooltip:`Instance Profiles`,children:[at,ot]})})}),e[148]=it,e[149]=st);let ct;e[150]!==Ye||e[151]!==$e||e[152]!==rt||e[153]!==st?(ct=(0,F.jsxs)(og,{children:[Ge,(0,F.jsxs)(cg,{children:[Ye,$e,rt,st]})]}),e[150]=Ye,e[151]=$e,e[152]=rt,e[153]=st,e[154]=ct):ct=e[154];let lt;e[155]===Symbol.for(`react.memo_cache_sentinel`)?(lt=(0,F.jsx)(sg,{children:`S3`}),e[155]=lt):lt=e[155];let ut;e[156]===n?ut=e[157]:(ut=n.startsWith(`/s3/ls`),e[156]=n,e[157]=ut);let dt,ft;e[158]===Symbol.for(`react.memo_cache_sentinel`)?(dt=(0,F.jsx)(Bo,{className:`size-4`}),ft=(0,F.jsx)(`span`,{children:`Buckets`}),e[158]=dt,e[159]=ft):(dt=e[158],ft=e[159]);let pt;e[160]===ut?pt=e[161]:(pt=(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/s3/ls`,children:(0,F.jsxs)(ug,{isActive:ut,tooltip:`Buckets`,children:[dt,ft]})})}),e[160]=ut,e[161]=pt);let mt;e[162]!==a||e[163]!==n?(mt=a&&(0,F.jsx)(lg,{children:(0,F.jsx)(Di,{to:`/s3/service-metrics`,children:(0,F.jsxs)(ug,{isActive:n.startsWith(`/s3/service-metrics`),tooltip:`Service Metrics`,children:[(0,F.jsx)(bo,{className:`size-4`}),(0,F.jsx)(`span`,{children:`Service Metrics`})]})})}),e[162]=a,e[163]=n,e[164]=mt):mt=e[164];let ht;e[165]!==pt||e[166]!==mt?(ht=(0,F.jsxs)(og,{children:[lt,(0,F.jsxs)(cg,{children:[pt,mt]})]}),e[165]=pt,e[166]=mt,e[167]=ht):ht=e[167];let gt;e[168]===a?gt=e[169]:(gt=a&&(0,F.jsxs)(og,{children:[(0,F.jsx)(sg,{children:`Documentation`}),(0,F.jsx)(cg,{children:(0,F.jsx)(lg,{children:(0,F.jsx)(`a`,{href:`https://docs.mulgadc.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,F.jsxs)(ug,{tooltip:`Documentation`,children:[(0,F.jsx)(xo,{className:`size-4`}),(0,F.jsx)(`span`,{children:`Docs`})]})})})})]}),e[168]=a,e[169]=gt);let _t;e[170]!==ye||e[171]!==We||e[172]!==h||e[173]!==ct||e[174]!==ht||e[175]!==gt?(_t=(0,F.jsxs)(Hte,{children:[h,ye,We,ct,ht,gt]}),e[170]=ye,e[171]=We,e[172]=h,e[173]=ct,e[174]=ht,e[175]=gt,e[176]=_t):_t=e[176];let vt;e[177]===Symbol.for(`react.memo_cache_sentinel`)?(vt=(0,F.jsx)(Vte,{className:`mx-0 w-full`}),e[177]=vt):vt=e[177];let yt,bt;e[178]===Symbol.for(`react.memo_cache_sentinel`)?(yt=(0,F.jsx)(No,{className:`size-4`}),bt=(0,F.jsx)(`span`,{children:`Sign out`}),e[178]=yt,e[179]=bt):(yt=e[178],bt=e[179]);let xt;e[180]===s?xt=e[181]:(xt=(0,F.jsxs)(Bte,{children:[vt,(0,F.jsx)(cg,{children:(0,F.jsx)(lg,{children:(0,F.jsxs)(ug,{onClick:s,tooltip:`Sign out`,children:[yt,bt]})})})]}),e[180]=s,e[181]=xt);let St;e[182]===Symbol.for(`react.memo_cache_sentinel`)?(St=(0,F.jsx)(Rte,{}),e[182]=St):St=e[182];let Ct;return e[183]!==_t||e[184]!==xt?(Ct=(0,F.jsxs)(Ite,{collapsible:`icon`,children:[c,_t,xt,St]}),e[183]=_t,e[184]=xt,e[185]=Ct):Ct=e[185],Ct}function wJe(e){return e.pathname}function TJe(e){let t=(0,da.c)(18),{error:n,reset:r}=e,i=jr(),a=Fe(),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,F.jsx)(w7,{}),t[4]=c):c=t[4];let l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,F.jsx)(C7,{}),t[5]=l):l=t[5];let u,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,F.jsx)(`div`,{className:`flex justify-center`,children:(0,F.jsx)(Co,{className:`size-12 text-destructive`})}),d=(0,F.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,F.jsx)(`p`,{className:`text-muted-foreground`,children:f}),t[8]=f,t[9]=p);let m;t[10]===s?m=t[11]:(m=(0,F.jsx)(vl,{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,F.jsx)(Di,{to:`/`,children:(0,F.jsx)(vl,{variant:`outline`,children:`Go Home`})}),t[12]=h):h=t[12];let g;t[13]===m?g=t[14]:(g=(0,F.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,F.jsxs)(F.Fragment,{children:[c,(0,F.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[l,(0,F.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-6 pt-0`,children:(0,F.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 T7=ji()({head:()=>({meta:[{title:`Mulga`}]}),component:()=>(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ra,{}),(0,F.jsx)(w7,{}),(0,F.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[(0,F.jsx)(C7,{}),(0,F.jsx)(`div`,{className:`flex flex-1 flex-col p-8`,children:(0,F.jsx)(Ui,{})})]})]}),errorComponent:TJe,notFoundComponent:CJe}),E7=L(`/login`)({validateSearch:e=>({reason:e.reason===`expired`?`expired`:void 0}),beforeLoad:()=>{if(lb())throw yn({to:`/`})},component:R(()=>H(()=>import(`./login.js`),__vite__mapDeps([0,1,2,3,4])),`component`)}),EJe=L(`/_auth`)({beforeLoad:()=>{if(!lb())throw yn({to:`/login`})},component:R(()=>H(()=>import(`./route.js`),[]),`component`)}),D7=I({queryKey:[`ec2`,`availabilityZones`],queryFn:async()=>{let e=new iEe({});return await h7().send(e)},staleTime:3e5}),O7=I({queryKey:[`ec2`,`instances`],queryFn:async()=>{let e=new _$({});return await h7().send(e)},refetchInterval:5e3}),k7=e=>I({queryKey:[`ec2`,`instances`,e],queryFn:async()=>{let t=new _$({InstanceIds:[e]});return await h7().send(t)},refetchInterval:5e3}),DJe=e=>I({queryKey:[`ec2`,`iam-instance-profile-associations`,e],queryFn:async()=>{let t=new aEe({Filters:[{Name:`instance-id`,Values:[e]}]});return await h7().send(t)},refetchInterval:5e3}),A7=I({queryKey:[`ec2`,`instances`,`types`],queryFn:async()=>{let e=new oEe({Filters:[{Name:`capacity`,Values:[`true`]}]});return await h7().send(e)},refetchInterval:5e3}),j7=I({queryKey:[`ec2`,`images`],queryFn:async()=>{let e=new g$({});return await h7().send(e)}}),M7=e=>I({queryKey:[`ec2`,`images`,e??`none`],queryFn:async()=>{if(!e)return{Images:[],$metadata:{}};let t=new g$({ImageIds:[e]});return await h7().send(t)}}),N7=I({queryKey:[`ec2`,`keypairs`],queryFn:async()=>{let e=new y$({});return await h7().send(e)}}),P7=e=>I({queryKey:[`ec2`,`keypairs`,e],queryFn:async()=>{let t=new y$({KeyPairIds:[e]});return await h7().send(t)}}),F7=I({queryKey:[`ec2`,`regions`],queryFn:async()=>{let e=new sEe({});return await h7().send(e)},staleTime:3e5}),I7=I({queryKey:[`ec2`,`subnets`],queryFn:async()=>{let e=new T$({});return await h7().send(e)}}),L7=e=>I({queryKey:[`ec2`,`subnets`,e],queryFn:async()=>{let t=new T$({SubnetIds:[e]});return await h7().send(t)}}),R7=I({queryKey:[`ec2`,`snapshots`],queryFn:async()=>{let e=new w$({});return await h7().send(e)},refetchInterval:5e3}),z7=e=>I({queryKey:[`ec2`,`snapshots`,e],queryFn:async()=>{let t=new w$({SnapshotIds:[e]});return await h7().send(t)},refetchInterval:5e3}),B7=I({queryKey:[`ec2`,`internetGateways`],queryFn:async()=>{let e=new v$({});return await h7().send(e)},refetchInterval:5e3}),V7=e=>I({queryKey:[`ec2`,`internetGateways`,e],queryFn:async()=>{let t=new v$({InternetGatewayIds:[e]});return await h7().send(t)},refetchInterval:5e3}),H7=I({queryKey:[`ec2`,`routeTables`],queryFn:async()=>{let e=new S$({});return await h7().send(e)},refetchInterval:5e3}),U7=e=>I({queryKey:[`ec2`,`routeTables`,e],queryFn:async()=>{let t=new S$({RouteTableIds:[e]});return await h7().send(t)},refetchInterval:5e3}),W7=I({queryKey:[`ec2`,`vpcs`],queryFn:async()=>{let e=new D$({});return await h7().send(e)}}),G7=e=>I({queryKey:[`ec2`,`vpcs`,e],queryFn:async()=>{let t=new D$({VpcIds:[e]});return await h7().send(t)}}),K7=I({queryKey:[`ec2`,`placementGroups`],queryFn:async()=>{let e=new x$({});return await h7().send(e)}}),q7=e=>I({queryKey:[`ec2`,`placementGroups`,e],queryFn:async()=>{let t=new x$({GroupIds:[e]});return await h7().send(t)}}),J7=I({queryKey:[`ec2`,`securityGroups`],queryFn:async()=>{let e=new C$({});return await h7().send(e)}}),Y7=e=>I({queryKey:[`ec2`,`securityGroups`,e],queryFn:async()=>{let t=new C$({GroupIds:[e]});return await h7().send(t)}}),X7=I({queryKey:[`ec2`,`addresses`],queryFn:async()=>{let e=new h$({});return await h7().send(e)},refetchInterval:5e3}),Z7=e=>I({queryKey:[`ec2`,`addresses`,e],queryFn:async()=>{let t=new h$({AllocationIds:[e]});return await h7().send(t)},refetchInterval:5e3}),Q7=I({queryKey:[`ec2`,`natGateways`],queryFn:async()=>{let e=new b$({});return await h7().send(e)},refetchInterval:5e3}),$7=e=>I({queryKey:[`ec2`,`natGateways`,e],queryFn:async()=>{let t=new b$({NatGatewayIds:[e]});return await h7().send(t)},refetchInterval:5e3}),e9=I({queryKey:[`ec2`,`volumes`],queryFn:async()=>{let e=new E$({});return await h7().send(e)},refetchInterval:5e3}),t9=e=>I({queryKey:[`ec2`,`volumes`,e],queryFn:async()=>{let t=new E$({VolumeIds:[e]});return await h7().send(t)},refetchInterval:5e3}),n9=I({queryKey:[`s3`,`buckets`],queryFn:async()=>{let e=new vJe({});return await y7().send(e)}}),r9=(e,t)=>I({queryKey:[`s3`,`buckets`,e,`objects`,t??``],queryFn:async()=>{let n=new yJe({Bucket:e,Prefix:t,Delimiter:`/`});return await y7().send(n)}}),OJe=L(`/_auth/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(O7),e.queryClient.ensureQueryData(e9),e.queryClient.ensureQueryData(W7),e.queryClient.ensureQueryData(N7),e.queryClient.ensureQueryData(n9),e.queryClient.ensureQueryData(J7),e.queryClient.ensureQueryData(Q7),e.queryClient.ensureQueryData(X7),e.queryClient.ensureQueryData(B7)])},head:()=>({meta:[{title:`Dashboard | Mulga`}]}),component:R(()=>H(()=>import(`./_auth.js`),__vite__mapDeps([5,6,7,8,9,10,11,12,3,13])),`component`)}),kJe=L(`/_auth/nodes`)({head:()=>({meta:[{title:`Nodes | Mulga`}]}),component:R(()=>H(()=>import(`./nodes.js`),__vite__mapDeps([14,6,7,10,12,3,13])),`component`)}),AJe=L(`/_auth/s3/service-metrics`)({head:()=>({meta:[{title:`Service Metrics | S3 | Mulga`}]}),component:R(()=>H(()=>import(`./service-metrics.js`),__vite__mapDeps([15,6,7,10,12,3,13])),`component`)}),jJe=L(`/_auth/s3/ls/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(n9)},head:()=>({meta:[{title:`Buckets | S3 | Mulga`}]}),component:R(()=>H(()=>import(`./ls.js`),__vite__mapDeps([16,17,7,18,10])),`component`)}),MJe=L(`/_auth/s3/(buckets)/create-bucket`)({head:()=>({meta:[{title:`Create Bucket | S3 | Mulga`}]}),component:R(()=>H(()=>import(`./create-bucket.js`),__vite__mapDeps([19,20,21,2,22,23,24,8,25,26,27,10,4])),`component`)}),NJe=L(`/_auth/iam/(users)/create-user`)({head:()=>({meta:[{title:`Create User | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./create-user.js`),__vite__mapDeps([28,29,21,2,22,23,24,8,25,26,27,10,4,30])),`component`)}),PJe=L(`/_auth/iam/(roles)/create-role`)({head:()=>({meta:[{title:`Create Role | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./create-role.js`),__vite__mapDeps([31,29,21,2,22,23,24,8,25,26,27,10,4,32,30])),`component`)}),FJe=L(`/_auth/iam/(policies)/create-policy`)({head:()=>({meta:[{title:`Create Policy | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./create-policy.js`),__vite__mapDeps([33,29,21,2,22,23,24,8,25,26,27,10,4,32,30])),`component`)}),IJe=L(`/_auth/iam/(instance-profiles)/create-instance-profile`)({head:()=>({meta:[{title:`Create Instance Profile | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./create-instance-profile.js`),__vite__mapDeps([34,29,21,2,22,23,24,8,25,26,27,10,4,30])),`component`)}),LJe=L(`/_auth/ec2/(vpc)/create-vpc`)({head:()=>({meta:[{title:`Create VPC | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-vpc.js`),__vite__mapDeps([35,36,21,37,24,8,2,22,9,23,25,26,27,10,4,38])),`component`)}),RJe=L(`/_auth/ec2/(volumes)/create-volume`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(D7)},head:()=>({meta:[{title:`Create Volume | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-volume.js`),__vite__mapDeps([39,36,21,37,24,8,2,17,7,22,23,25,26,27,10,4,38])),`component`)}),zJe=L(`/_auth/ec2/(target-groups)/create-target-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(W7)},head:()=>({meta:[{title:`Create Target Group | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-target-group.js`),__vite__mapDeps([40,41,21,2,17,7,22,23,24,8,25,26,42,1,37,43,44,4,27,10,45])),`component`)}),BJe=L(`/_auth/ec2/(subnet)/create-subnet`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(W7),e.queryClient.ensureQueryData(D7)])},head:()=>({meta:[{title:`Create Subnet | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-subnet.js`),__vite__mapDeps([46,36,21,37,24,8,2,17,7,22,23,25,26,27,10,4,38])),`component`)}),i9=L(`/_auth/ec2/(snapshots)/create-snapshot`)({validateSearch:e=>({volumeId:typeof e.volumeId==`string`?e.volumeId:void 0}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(e9)},head:()=>({meta:[{title:`Create Snapshot | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-snapshot.js`),__vite__mapDeps([47,36,21,37,24,8,2,17,7,22,23,25,26,27,10,4,32,38])),`component`)}),VJe=L(`/_auth/ec2/(security-groups)/create-security-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(W7)},head:()=>({meta:[{title:`Create Security Group | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-security-group.js`),__vite__mapDeps([48,36,21,37,24,8,2,17,7,22,23,25,26,27,10,4,38])),`component`)}),HJe=L(`/_auth/ec2/(route-tables)/create-route-table`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(W7)},head:()=>({meta:[{title:`Create Route Table | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-route-table.js`),__vite__mapDeps([49,36,21,37,24,8,2,17,7,22,27,10,4,38])),`component`)}),UJe=L(`/_auth/ec2/(placement-groups)/create-placement-group`)({head:()=>({meta:[{title:`Create Placement Group | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-placement-group.js`),__vite__mapDeps([50,36,21,37,24,8,2,22,23,25,26,27,10,4,38])),`component`)}),WJe=L(`/_auth/ec2/(nat-gateways)/create-nat-gateway`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(I7),e.queryClient.ensureQueryData(X7)])},head:()=>({meta:[{title:`Create NAT Gateway | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-nat-gateway.js`),__vite__mapDeps([51,36,21,37,24,8,2,17,7,22,23,25,26,27,10,4,38])),`component`)}),a9=I({queryKey:[`acm`,`certificates`],queryFn:async()=>{let e=new ZE({});return await _7().send(e)}}),o9=5e3,s9=I({queryKey:[`elbv2`,`loadBalancers`],queryFn:async()=>{let e=new G0({});return await g7().send(e)},refetchInterval:e=>(e.state.data?.LoadBalancers??[]).some(e=>e.State?.Code===`provisioning`)?o9:!1}),c9=e=>I({queryKey:[`elbv2`,`loadBalancers`,e],queryFn:async()=>{let t=new G0({LoadBalancerArns:[e]});return await g7().send(t)},refetchInterval:e=>(e.state.data?.LoadBalancers?.[0])?.State?.Code===`provisioning`?o9:!1}),l9=e=>I({queryKey:[`elbv2`,`loadBalancers`,e,`attributes`],queryFn:async()=>{let t=new LFe({LoadBalancerArn:e});return await g7().send(t)}}),u9=I({queryKey:[`elbv2`,`targetGroups`],queryFn:async()=>{let e=new K0({});return await g7().send(e)}}),d9=e=>I({queryKey:[`elbv2`,`targetGroups`,e],queryFn:async()=>{let t=new K0({TargetGroupArns:[e]});return await g7().send(t)}}),f9=e=>I({queryKey:[`elbv2`,`targetGroups`,e,`attributes`],queryFn:async()=>{let t=new VFe({TargetGroupArn:e});return await g7().send(t)}}),p9=e=>I({queryKey:[`elbv2`,`listeners`,e],queryFn:async()=>{let t=new IFe({LoadBalancerArn:e});return await g7().send(t)}}),GJe=e=>I({queryKey:[`elbv2`,`listeners`,e,`rules`],queryFn:async()=>{let t=new RFe({ListenerArn:e});return await g7().send(t)}}),KJe=e=>I({queryKey:[`elbv2`,`targetGroups`,e,`health`],queryFn:async()=>{let t=new HFe({TargetGroupArn:e});return await g7().send(t)}}),m9=I({queryKey:[`elbv2`,`sslPolicies`],queryFn:async()=>{let e=new zFe({});return await g7().send(e)},staleTime:1/0}),h9=e=>I({queryKey:[`elbv2`,`tags`,...e],queryFn:async()=>{let t=new BFe({ResourceArns:e});return await g7().send(t)},enabled:e.length>0}),qJe=L(`/_auth/ec2/(load-balancers)/create-load-balancer`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(W7),e.queryClient.ensureQueryData(I7),e.queryClient.ensureQueryData(J7),e.queryClient.ensureQueryData(u9),e.queryClient.ensureQueryData(a9),e.queryClient.ensureQueryData(m9)])},head:()=>({meta:[{title:`Create Load Balancer | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-load-balancer.js`),__vite__mapDeps([52,53,54,21,4,32,41,37,24,8,2,17,7,22,43,23,25,26,44,42,1,27,10,45])),`component`)}),JJe=L(`/_auth/ec2/(key)/import-key-pair`)({head:()=>({meta:[{title:`Import Key Pair | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./import-key-pair.js`),__vite__mapDeps([55,36,21,2,22,23,24,8,25,26,27,10,4,32,38])),`component`)}),YJe=L(`/_auth/ec2/(key)/create-key-pair`)({head:()=>({meta:[{title:`Create Key Pair | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-key-pair.js`),__vite__mapDeps([56,36,21,54,2,22,24,57,23,8,25,26,58,27,10,4,38])),`component`)}),XJe=L(`/_auth/ec2/(internet-gateways)/create-internet-gateway`)({head:()=>({meta:[{title:`Create Internet Gateway | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-internet-gateway.js`),__vite__mapDeps([59,36,21,2,22,23,24,8,25,26,27,10,4,38])),`component`)}),ZJe=L(`/_auth/ec2/(instances)/run-instances`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(j7),e.queryClient.ensureQueryData(N7),e.queryClient.ensureQueryData(A7),e.queryClient.ensureQueryData(I7),e.queryClient.ensureQueryData(K7),e.queryClient.ensureQueryData(W7),e.queryClient.ensureQueryData(J7)])},head:()=>({meta:[{title:`Run Instances | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./run-instances.js`),__vite__mapDeps([60,36,21,1,37,24,8,2,17,7,22,23,25,26,10,4,38])),`component`)}),QJe=L(`/_auth/ec2/(elastic-ips)/allocate-address`)({head:()=>({meta:[{title:`Allocate Elastic IP | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./allocate-address.js`),__vite__mapDeps([61,36,21,2,22,23,24,8,25,26,27,10,4,38])),`component`)}),$Je=L(`/_auth/s3/ls/$bucket`)({component:R(()=>H(()=>import(`./route2.js`),[]),`component`)}),g9=L(`/_auth/s3/ls/$bucket/`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(r9(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:R(()=>H(()=>import(`./_bucket.js`),__vite__mapDeps([62,20,21,63,57,44,64,54,17,7,22,10])),`component`)}),_9=I({queryKey:[`iam`,`users`],queryFn:async()=>{let e=new rHe({});return await v7().send(e)},staleTime:3e5}),v9=e=>I({queryKey:[`iam`,`users`,e],queryFn:async()=>{let t=new YVe({UserName:e});return await v7().send(t)},staleTime:3e5}),y9=e=>I({queryKey:[`iam`,`access-keys`,e],queryFn:async()=>{let t=new XVe({UserName:e});return await v7().send(t)},staleTime:3e5}),b9=I({queryKey:[`iam`,`policies`],queryFn:async()=>{let e=new tHe({Scope:`Local`});return await v7().send(e)},staleTime:3e5}),x9=e=>I({queryKey:[`iam`,`policies`,e],queryFn:async()=>{let t=new KVe({PolicyArn:e});return await v7().send(t)},staleTime:3e5}),S9=(e,t)=>I({queryKey:[`iam`,`policy-versions`,e,t],queryFn:async()=>{let n=new qVe({PolicyArn:e,VersionId:t});return await v7().send(n)},staleTime:3e5}),C9=e=>I({queryKey:[`iam`,`attached-user-policies`,e],queryFn:async()=>{let t=new QVe({UserName:e});return await v7().send(t)},staleTime:3e5}),w9=I({queryKey:[`iam`,`roles`],queryFn:async()=>{let e=new nHe({});return await v7().send(e)},staleTime:3e5}),T9=e=>I({queryKey:[`iam`,`roles`,e],queryFn:async()=>{let t=new JVe({RoleName:e});return await v7().send(t)},staleTime:3e5}),E9=e=>I({queryKey:[`iam`,`attached-role-policies`,e],queryFn:async()=>{let t=new ZVe({RoleName:e});return await v7().send(t)},staleTime:3e5}),D9=I({queryKey:[`iam`,`instance-profiles`],queryFn:async()=>{let e=new $Ve({});return await v7().send(e)},staleTime:3e5}),O9=e=>I({queryKey:[`iam`,`instance-profiles`,e],queryFn:async()=>{let t=new GVe({InstanceProfileName:e});return await v7().send(t)},staleTime:3e5}),k9=e=>I({queryKey:[`iam`,`instance-profiles-for-role`,e],queryFn:async()=>{let t=new eHe({RoleName:e});return await v7().send(t)},staleTime:3e5}),eYe=L(`/_auth/iam/(users)/list-users/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(_9)},head:()=>({meta:[{title:`Users | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./list-users.js`),__vite__mapDeps([65,17,7,18,10])),`component`)}),tYe=L(`/_auth/iam/(roles)/list-roles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(w9)},head:()=>({meta:[{title:`Roles | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./list-roles.js`),__vite__mapDeps([66,17,7,18,10])),`component`)}),nYe=L(`/_auth/iam/(policies)/list-policies/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(b9)},head:()=>({meta:[{title:`Policies | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./list-policies.js`),__vite__mapDeps([67,17,7,18,10])),`component`)}),rYe=L(`/_auth/iam/(instance-profiles)/list-instance-profiles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(D9)},head:()=>({meta:[{title:`Instance Profiles | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./list-instance-profiles.js`),__vite__mapDeps([68,17,7,18,10])),`component`)}),iYe=L(`/_auth/ec2/(vpc)/describe-vpcs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(W7)},head:()=>({meta:[{title:`VPCs | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-vpcs.js`),__vite__mapDeps([69,17,7,18,10,11])),`component`)}),aYe=L(`/_auth/ec2/(volumes)/describe-volumes/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(e9)},head:()=>({meta:[{title:`Volumes | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-volumes.js`),__vite__mapDeps([70,17,7,18,10,11])),`component`)}),oYe=L(`/_auth/ec2/(target-groups)/describe-target-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(u9)},head:()=>({meta:[{title:`Target Groups | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-target-groups.js`),__vite__mapDeps([71,6,7,17,10])),`component`)}),sYe=L(`/_auth/ec2/(subnet)/describe-subnets/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(I7)},head:()=>({meta:[{title:`Subnets | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-subnets.js`),__vite__mapDeps([72,17,7,18,10,11])),`component`)}),cYe=L(`/_auth/ec2/(snapshots)/describe-snapshots/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(R7)},head:()=>({meta:[{title:`Snapshots | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-snapshots.js`),__vite__mapDeps([73,17,7,18,10,11])),`component`)}),lYe=L(`/_auth/ec2/(security-groups)/describe-security-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(J7)},head:()=>({meta:[{title:`Security Groups | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-security-groups.js`),__vite__mapDeps([74,17,7,18,10])),`component`)}),uYe=L(`/_auth/ec2/(route-tables)/describe-route-tables/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(H7)},head:()=>({meta:[{title:`Route Tables | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-route-tables.js`),__vite__mapDeps([75,17,7,18,10,12])),`component`)}),dYe=L(`/_auth/ec2/(placement-groups)/describe-placement-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(K7)},head:()=>({meta:[{title:`Placement Groups | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-placement-groups.js`),__vite__mapDeps([76,17,7,18,10,11])),`component`)}),fYe=L(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Q7)},head:()=>({meta:[{title:`NAT Gateways | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-nat-gateways.js`),__vite__mapDeps([77,17,7,18,10,11])),`component`)}),pYe=L(`/_auth/ec2/(load-balancers)/describe-load-balancers/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(s9)},head:()=>({meta:[{title:`Load Balancers | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-load-balancers.js`),__vite__mapDeps([78,17,7,10,11])),`component`)}),mYe=L(`/_auth/ec2/(key)/describe-key-pairs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(N7)},head:()=>({meta:[{title:`Key Pairs | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-key-pairs.js`),__vite__mapDeps([79,17,7,18,10])),`component`)}),hYe=L(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(B7)},head:()=>({meta:[{title:`Internet Gateways | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-internet-gateways.js`),__vite__mapDeps([80,17,7,18,10])),`component`)}),gYe=L(`/_auth/ec2/(instances)/describe-instances/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(O7)},head:()=>({meta:[{title:`Instances | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-instances.js`),__vite__mapDeps([81,17,7,18,10,11])),`component`)}),_Ye=L(`/_auth/ec2/(images)/describe-images/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(j7)},head:()=>({meta:[{title:`Images | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-images.js`),__vite__mapDeps([82,17,7,18,10,11,83])),`component`)}),vYe=L(`/_auth/ec2/(elastic-ips)/describe-addresses/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(X7)},head:()=>({meta:[{title:`Elastic IPs | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-addresses.js`),__vite__mapDeps([84,17,7,18,10])),`component`)}),A9=L(`/_auth/s3/ls/$bucket/$`)({loader:async({context:e,params:t})=>{let n=ml(t._splat??``);await e.queryClient.ensureQueryData(r9(t.bucket,n))},head:({params:e})=>({meta:[{title:`${hl(e._splat??``,`${e.bucket}/`)} | S3 | Mulga`}]}),component:R(()=>H(()=>import(`./_.js`),__vite__mapDeps([85,20,21,63,57,44,64,54,17,7,22])),`component`)}),j9=L(`/_auth/iam/(users)/list-users/$userName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(v9(t.userName)),e.queryClient.ensureQueryData(y9(t.userName)),e.queryClient.ensureQueryData(C9(t.userName)),e.queryClient.ensureQueryData(b9)])},head:({params:e})=>({meta:[{title:`${e.userName} | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./_userName.js`),__vite__mapDeps([86,29,21,54,17,7,22,24,44,58,64,87,10,11,26])),`component`)}),M9=L(`/_auth/iam/(roles)/list-roles/$roleName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(T9(t.roleName)),e.queryClient.ensureQueryData(E9(t.roleName)),e.queryClient.ensureQueryData(k9(t.roleName)),e.queryClient.ensureQueryData(b9)])},head:({params:e})=>({meta:[{title:`${e.roleName} | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./_roleName.js`),__vite__mapDeps([88,29,21,17,7,22,44,64,54,87,10,89])),`component`)}),N9=L(`/_auth/iam/(policies)/list-policies/$policyArn`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.policyArn),r=await e.queryClient.ensureQueryData(x9(n)),i=r.Policy?.DefaultVersionId;return i&&await e.queryClient.ensureQueryData(S9(n,i)),r},head:({loaderData:e})=>({meta:[{title:`${e?.Policy?.PolicyName??`Policy`} | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./_policyArn.js`),__vite__mapDeps([90,29,21,17,7,22,44,64,54,87,10,89])),`component`)}),P9=L(`/_auth/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(O9(t.instanceProfileName)),e.queryClient.ensureQueryData(w9)])},head:({params:e})=>({meta:[{title:`${e.instanceProfileName} | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./_instanceProfileName.js`),__vite__mapDeps([91,29,21,17,7,22,44,64,54,87,10])),`component`)}),F9=L(`/_auth/ec2/(vpc)/describe-vpcs/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(G7(t.id)),e.queryClient.ensureQueryData(I7)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:R(()=>H(()=>import(`./_id16.js`),__vite__mapDeps([92,36,21,17,7,22,44,64,54,87,10,11])),`component`)}),I9=L(`/_auth/ec2/(volumes)/modify-volume/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(t9(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./_id15.js`),__vite__mapDeps([93,36,21,2,17,7,22,27,10,4,38])),`component`)}),L9=L(`/_auth/ec2/(volumes)/describe-volumes/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(t9(t.id)),e.queryClient.ensureQueryData(O7)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./_id14.js`),__vite__mapDeps([94,36,21,54,37,24,8,17,7,22,44,64,87,10,11,4])),`component`)}),R9=L(`/_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(d9(n)),e.queryClient.ensureQueryData(f9(n)),e.queryClient.ensureQueryData(h9([n])),e.queryClient.ensureQueryData(O7)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Target Group | Mulga`}]}),component:R(()=>H(()=>import(`./_id13.js`),__vite__mapDeps([95,41,21,54,96,37,24,8,43,44,4,6,7,17,22,64,87,10])),`component`)}),z9=L(`/_auth/ec2/(subnet)/describe-subnets/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(L7(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:R(()=>H(()=>import(`./_id12.js`),__vite__mapDeps([97,36,21,17,7,22,44,64,54,87,10,11])),`component`)}),B9=L(`/_auth/ec2/(snapshots)/describe-snapshots/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(z7(t.id)),e.queryClient.ensureQueryData(F7)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./_id11.js`),__vite__mapDeps([98,36,21,54,17,7,22,25,44,64,87,10,11,4])),`component`)}),V9=L(`/_auth/ec2/(security-groups)/describe-security-groups/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Y7(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Security Group | Mulga`}]}),component:R(()=>H(()=>import(`./_id10.js`),__vite__mapDeps([99,36,21,54,37,24,8,2,17,7,22,43,44,64,87,10,4,38])),`component`)}),H9=L(`/_auth/ec2/(route-tables)/describe-route-tables/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(U7(t.id)),e.queryClient.ensureQueryData(B7),e.queryClient.ensureQueryData(Q7),e.queryClient.ensureQueryData(I7)])},head:({params:e})=>({meta:[{title:`${e.id} | Route Table | Mulga`}]}),component:R(()=>H(()=>import(`./_id9.js`),__vite__mapDeps([100,36,21,37,24,8,2,17,7,22,44,64,54,87,10,12,4,38])),`component`)}),U9=L(`/_auth/ec2/(placement-groups)/describe-placement-groups/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(q7(t.id)),e.queryClient.ensureQueryData(O7)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./_id8.js`),__vite__mapDeps([101,36,21,17,7,22,44,64,54,87,10,11])),`component`)}),W9=L(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData($7(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | NAT Gateway | Mulga`}]}),component:R(()=>H(()=>import(`./_id7.js`),__vite__mapDeps([102,36,21,17,7,22,44,64,54,87,10,11])),`component`)}),G9=L(`/_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(c9(n)),e.queryClient.ensureQueryData(p9(n)),e.queryClient.ensureQueryData(l9(n)),e.queryClient.ensureQueryData(h9([n])),e.queryClient.ensureQueryData(u9),e.queryClient.ensureQueryData(I7)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Load Balancer | Mulga`}]}),component:R(()=>H(()=>import(`./_id6.js`),__vite__mapDeps([103,53,54,21,4,32,41,37,24,8,96,43,44,2,17,7,22,64,87,10,11,45])),`component`)}),K9=L(`/_auth/ec2/(key)/describe-key-pairs/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(P7(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??`Key Pair`} | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./_id5.js`),__vite__mapDeps([104,36,21,17,7,22,44,64,54,87,10])),`component`)}),q9=L(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(V7(t.id)),e.queryClient.ensureQueryData(W7)])},head:({params:e})=>({meta:[{title:`${e.id} | Internet Gateway | Mulga`}]}),component:R(()=>H(()=>import(`./_id4.js`),__vite__mapDeps([105,36,21,37,24,8,17,7,22,44,64,54,87,10])),`component`)}),J9=L(`/_auth/ec2/(instances)/describe-instances/$id`)({loader:async({context:e,params:t})=>{let[n]=await Promise.all([e.queryClient.ensureQueryData(k7(t.id)),e.queryClient.ensureQueryData(A7)]),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.ensureQueryData(M7(r)),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??`Instance`} | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./_id3.js`),__vite__mapDeps([106,36,21,54,37,24,8,6,7,17,22,44,64,87,10,11,4,32,13,107])),`component`)}),Y9=L(`/_auth/ec2/(images)/describe-images/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(M7(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??`Image`} | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./_id2.js`),__vite__mapDeps([108,17,7,22,10,11,83,107,87])),`component`)}),X9=L(`/_auth/ec2/(elastic-ips)/describe-addresses/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Z7(t.id)),e.queryClient.ensureQueryData(O7)])},head:({params:e})=>({meta:[{title:`${e.id} | Elastic IP | Mulga`}]}),component:R(()=>H(()=>import(`./_id.js`),__vite__mapDeps([109,36,21,37,24,8,17,7,22,44,64,54,87,10])),`component`)}),yYe=E7.update({id:`/login`,path:`/login`,getParentRoute:()=>T7}),$=EJe.update({id:`/_auth`,getParentRoute:()=>T7}),bYe=OJe.update({id:`/`,path:`/`,getParentRoute:()=>$}),xYe=kJe.update({id:`/nodes`,path:`/nodes`,getParentRoute:()=>$}),SYe=AJe.update({id:`/s3/service-metrics`,path:`/s3/service-metrics`,getParentRoute:()=>$}),CYe=jJe.update({id:`/s3/ls/`,path:`/s3/ls/`,getParentRoute:()=>$}),wYe=MJe.update({id:`/s3/(buckets)/create-bucket`,path:`/s3/create-bucket`,getParentRoute:()=>$}),TYe=NJe.update({id:`/iam/(users)/create-user`,path:`/iam/create-user`,getParentRoute:()=>$}),EYe=PJe.update({id:`/iam/(roles)/create-role`,path:`/iam/create-role`,getParentRoute:()=>$}),DYe=FJe.update({id:`/iam/(policies)/create-policy`,path:`/iam/create-policy`,getParentRoute:()=>$}),OYe=IJe.update({id:`/iam/(instance-profiles)/create-instance-profile`,path:`/iam/create-instance-profile`,getParentRoute:()=>$}),kYe=LJe.update({id:`/ec2/(vpc)/create-vpc`,path:`/ec2/create-vpc`,getParentRoute:()=>$}),AYe=RJe.update({id:`/ec2/(volumes)/create-volume`,path:`/ec2/create-volume`,getParentRoute:()=>$}),jYe=zJe.update({id:`/ec2/(target-groups)/create-target-group`,path:`/ec2/create-target-group`,getParentRoute:()=>$}),MYe=BJe.update({id:`/ec2/(subnet)/create-subnet`,path:`/ec2/create-subnet`,getParentRoute:()=>$}),NYe=i9.update({id:`/ec2/(snapshots)/create-snapshot`,path:`/ec2/create-snapshot`,getParentRoute:()=>$}),PYe=VJe.update({id:`/ec2/(security-groups)/create-security-group`,path:`/ec2/create-security-group`,getParentRoute:()=>$}),FYe=HJe.update({id:`/ec2/(route-tables)/create-route-table`,path:`/ec2/create-route-table`,getParentRoute:()=>$}),IYe=UJe.update({id:`/ec2/(placement-groups)/create-placement-group`,path:`/ec2/create-placement-group`,getParentRoute:()=>$}),LYe=WJe.update({id:`/ec2/(nat-gateways)/create-nat-gateway`,path:`/ec2/create-nat-gateway`,getParentRoute:()=>$}),RYe=qJe.update({id:`/ec2/(load-balancers)/create-load-balancer`,path:`/ec2/create-load-balancer`,getParentRoute:()=>$}),zYe=JJe.update({id:`/ec2/(key)/import-key-pair`,path:`/ec2/import-key-pair`,getParentRoute:()=>$}),BYe=YJe.update({id:`/ec2/(key)/create-key-pair`,path:`/ec2/create-key-pair`,getParentRoute:()=>$}),VYe=XJe.update({id:`/ec2/(internet-gateways)/create-internet-gateway`,path:`/ec2/create-internet-gateway`,getParentRoute:()=>$}),HYe=ZJe.update({id:`/ec2/(instances)/run-instances`,path:`/ec2/run-instances`,getParentRoute:()=>$}),UYe=QJe.update({id:`/ec2/(elastic-ips)/allocate-address`,path:`/ec2/allocate-address`,getParentRoute:()=>$}),Z9=$Je.update({id:`/s3/ls/$bucket`,path:`/s3/ls/$bucket`,getParentRoute:()=>$}),WYe=g9.update({id:`/`,path:`/`,getParentRoute:()=>Z9}),GYe=eYe.update({id:`/iam/(users)/list-users/`,path:`/iam/list-users/`,getParentRoute:()=>$}),KYe=tYe.update({id:`/iam/(roles)/list-roles/`,path:`/iam/list-roles/`,getParentRoute:()=>$}),qYe=nYe.update({id:`/iam/(policies)/list-policies/`,path:`/iam/list-policies/`,getParentRoute:()=>$}),JYe=rYe.update({id:`/iam/(instance-profiles)/list-instance-profiles/`,path:`/iam/list-instance-profiles/`,getParentRoute:()=>$}),YYe=iYe.update({id:`/ec2/(vpc)/describe-vpcs/`,path:`/ec2/describe-vpcs/`,getParentRoute:()=>$}),XYe=aYe.update({id:`/ec2/(volumes)/describe-volumes/`,path:`/ec2/describe-volumes/`,getParentRoute:()=>$}),ZYe=oYe.update({id:`/ec2/(target-groups)/describe-target-groups/`,path:`/ec2/describe-target-groups/`,getParentRoute:()=>$}),QYe=sYe.update({id:`/ec2/(subnet)/describe-subnets/`,path:`/ec2/describe-subnets/`,getParentRoute:()=>$}),$Ye=cYe.update({id:`/ec2/(snapshots)/describe-snapshots/`,path:`/ec2/describe-snapshots/`,getParentRoute:()=>$}),eXe=lYe.update({id:`/ec2/(security-groups)/describe-security-groups/`,path:`/ec2/describe-security-groups/`,getParentRoute:()=>$}),tXe=uYe.update({id:`/ec2/(route-tables)/describe-route-tables/`,path:`/ec2/describe-route-tables/`,getParentRoute:()=>$}),nXe=dYe.update({id:`/ec2/(placement-groups)/describe-placement-groups/`,path:`/ec2/describe-placement-groups/`,getParentRoute:()=>$}),rXe=fYe.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/`,path:`/ec2/describe-nat-gateways/`,getParentRoute:()=>$}),iXe=pYe.update({id:`/ec2/(load-balancers)/describe-load-balancers/`,path:`/ec2/describe-load-balancers/`,getParentRoute:()=>$}),aXe=mYe.update({id:`/ec2/(key)/describe-key-pairs/`,path:`/ec2/describe-key-pairs/`,getParentRoute:()=>$}),oXe=hYe.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/`,path:`/ec2/describe-internet-gateways/`,getParentRoute:()=>$}),sXe=gYe.update({id:`/ec2/(instances)/describe-instances/`,path:`/ec2/describe-instances/`,getParentRoute:()=>$}),cXe=_Ye.update({id:`/ec2/(images)/describe-images/`,path:`/ec2/describe-images/`,getParentRoute:()=>$}),lXe=vYe.update({id:`/ec2/(elastic-ips)/describe-addresses/`,path:`/ec2/describe-addresses/`,getParentRoute:()=>$}),uXe=A9.update({id:`/$`,path:`/$`,getParentRoute:()=>Z9}),dXe=j9.update({id:`/iam/(users)/list-users/$userName`,path:`/iam/list-users/$userName`,getParentRoute:()=>$}),fXe=M9.update({id:`/iam/(roles)/list-roles/$roleName`,path:`/iam/list-roles/$roleName`,getParentRoute:()=>$}),pXe=N9.update({id:`/iam/(policies)/list-policies/$policyArn`,path:`/iam/list-policies/$policyArn`,getParentRoute:()=>$}),mXe=P9.update({id:`/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`,path:`/iam/list-instance-profiles/$instanceProfileName`,getParentRoute:()=>$}),hXe=F9.update({id:`/ec2/(vpc)/describe-vpcs/$id`,path:`/ec2/describe-vpcs/$id`,getParentRoute:()=>$}),gXe=I9.update({id:`/ec2/(volumes)/modify-volume/$id`,path:`/ec2/modify-volume/$id`,getParentRoute:()=>$}),_Xe=L9.update({id:`/ec2/(volumes)/describe-volumes/$id`,path:`/ec2/describe-volumes/$id`,getParentRoute:()=>$}),vXe=R9.update({id:`/ec2/(target-groups)/describe-target-groups/$id`,path:`/ec2/describe-target-groups/$id`,getParentRoute:()=>$}),yXe=z9.update({id:`/ec2/(subnet)/describe-subnets/$id`,path:`/ec2/describe-subnets/$id`,getParentRoute:()=>$}),bXe=B9.update({id:`/ec2/(snapshots)/describe-snapshots/$id`,path:`/ec2/describe-snapshots/$id`,getParentRoute:()=>$}),xXe=V9.update({id:`/ec2/(security-groups)/describe-security-groups/$id`,path:`/ec2/describe-security-groups/$id`,getParentRoute:()=>$}),SXe=H9.update({id:`/ec2/(route-tables)/describe-route-tables/$id`,path:`/ec2/describe-route-tables/$id`,getParentRoute:()=>$}),CXe=U9.update({id:`/ec2/(placement-groups)/describe-placement-groups/$id`,path:`/ec2/describe-placement-groups/$id`,getParentRoute:()=>$}),wXe=W9.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/$id`,path:`/ec2/describe-nat-gateways/$id`,getParentRoute:()=>$}),TXe=G9.update({id:`/ec2/(load-balancers)/describe-load-balancers/$id`,path:`/ec2/describe-load-balancers/$id`,getParentRoute:()=>$}),EXe=K9.update({id:`/ec2/(key)/describe-key-pairs/$id`,path:`/ec2/describe-key-pairs/$id`,getParentRoute:()=>$}),DXe=q9.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/$id`,path:`/ec2/describe-internet-gateways/$id`,getParentRoute:()=>$}),OXe=J9.update({id:`/ec2/(instances)/describe-instances/$id`,path:`/ec2/describe-instances/$id`,getParentRoute:()=>$}),kXe=Y9.update({id:`/ec2/(images)/describe-images/$id`,path:`/ec2/describe-images/$id`,getParentRoute:()=>$}),AXe=X9.update({id:`/ec2/(elastic-ips)/describe-addresses/$id`,path:`/ec2/describe-addresses/$id`,getParentRoute:()=>$}),jXe={AuthS3LsBucketSplatRoute:uXe,AuthS3LsBucketIndexRoute:WYe},MXe={AuthNodesRoute:xYe,AuthIndexRoute:bYe,AuthS3ServiceMetricsRoute:SYe,AuthS3LsBucketRouteRoute:Z9._addFileChildren(jXe),AuthEc2elasticIpsAllocateAddressRoute:UYe,AuthEc2instancesRunInstancesRoute:HYe,AuthEc2internetGatewaysCreateInternetGatewayRoute:VYe,AuthEc2keyCreateKeyPairRoute:BYe,AuthEc2keyImportKeyPairRoute:zYe,AuthEc2loadBalancersCreateLoadBalancerRoute:RYe,AuthEc2natGatewaysCreateNatGatewayRoute:LYe,AuthEc2placementGroupsCreatePlacementGroupRoute:IYe,AuthEc2routeTablesCreateRouteTableRoute:FYe,AuthEc2securityGroupsCreateSecurityGroupRoute:PYe,AuthEc2snapshotsCreateSnapshotRoute:NYe,AuthEc2subnetCreateSubnetRoute:MYe,AuthEc2targetGroupsCreateTargetGroupRoute:jYe,AuthEc2volumesCreateVolumeRoute:AYe,AuthEc2vpcCreateVpcRoute:kYe,AuthIaminstanceProfilesCreateInstanceProfileRoute:OYe,AuthIampoliciesCreatePolicyRoute:DYe,AuthIamrolesCreateRoleRoute:EYe,AuthIamusersCreateUserRoute:TYe,AuthS3bucketsCreateBucketRoute:wYe,AuthS3LsIndexRoute:CYe,AuthEc2elasticIpsDescribeAddressesIdRoute:AXe,AuthEc2imagesDescribeImagesIdRoute:kXe,AuthEc2instancesDescribeInstancesIdRoute:OXe,AuthEc2internetGatewaysDescribeInternetGatewaysIdRoute:DXe,AuthEc2keyDescribeKeyPairsIdRoute:EXe,AuthEc2loadBalancersDescribeLoadBalancersIdRoute:TXe,AuthEc2natGatewaysDescribeNatGatewaysIdRoute:wXe,AuthEc2placementGroupsDescribePlacementGroupsIdRoute:CXe,AuthEc2routeTablesDescribeRouteTablesIdRoute:SXe,AuthEc2securityGroupsDescribeSecurityGroupsIdRoute:xXe,AuthEc2snapshotsDescribeSnapshotsIdRoute:bXe,AuthEc2subnetDescribeSubnetsIdRoute:yXe,AuthEc2targetGroupsDescribeTargetGroupsIdRoute:vXe,AuthEc2volumesDescribeVolumesIdRoute:_Xe,AuthEc2volumesModifyVolumeIdRoute:gXe,AuthEc2vpcDescribeVpcsIdRoute:hXe,AuthIaminstanceProfilesListInstanceProfilesInstanceProfileNameRoute:mXe,AuthIampoliciesListPoliciesPolicyArnRoute:pXe,AuthIamrolesListRolesRoleNameRoute:fXe,AuthIamusersListUsersUserNameRoute:dXe,AuthEc2elasticIpsDescribeAddressesIndexRoute:lXe,AuthEc2imagesDescribeImagesIndexRoute:cXe,AuthEc2instancesDescribeInstancesIndexRoute:sXe,AuthEc2internetGatewaysDescribeInternetGatewaysIndexRoute:oXe,AuthEc2keyDescribeKeyPairsIndexRoute:aXe,AuthEc2loadBalancersDescribeLoadBalancersIndexRoute:iXe,AuthEc2natGatewaysDescribeNatGatewaysIndexRoute:rXe,AuthEc2placementGroupsDescribePlacementGroupsIndexRoute:nXe,AuthEc2routeTablesDescribeRouteTablesIndexRoute:tXe,AuthEc2securityGroupsDescribeSecurityGroupsIndexRoute:eXe,AuthEc2snapshotsDescribeSnapshotsIndexRoute:$Ye,AuthEc2subnetDescribeSubnetsIndexRoute:QYe,AuthEc2targetGroupsDescribeTargetGroupsIndexRoute:ZYe,AuthEc2volumesDescribeVolumesIndexRoute:XYe,AuthEc2vpcDescribeVpcsIndexRoute:YYe,AuthIaminstanceProfilesListInstanceProfilesIndexRoute:JYe,AuthIampoliciesListPoliciesIndexRoute:qYe,AuthIamrolesListRolesIndexRoute:KYe,AuthIamusersListUsersIndexRoute:GYe},NXe={AuthRouteRoute:$._addFileChildren(MXe),LoginRoute:yYe},PXe=T7._addFileChildren(NXe)._addFileTypes(),Q9=xJe(),FXe=Ji({routeTree:PXe,context:{queryClient:Q9},defaultPreload:`intent`,scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),$9=document.querySelector(`#app`);$9&&!$9.innerHTML&&ua.createRoot($9).render((0,F.jsx)(P.StrictMode,{children:(0,F.jsx)(ma,{defaultTheme:`dark`,storageKey:`spinifex-ui-theme`,children:(0,F.jsx)(Ie,{client:Q9,children:(0,F.jsx)(_ae,{children:(0,F.jsx)(Nte,{children:(0,F.jsx)(Zi,{router:FXe})})})})})}));export{D7 as $,Xu as $a,Zee as $i,aTe as $n,To as $o,Fb as $r,fVe as $t,S9 as A,$d as Aa,wh as Ai,kFe as An,al as Ao,Vk as Ar,b as As,h7 as At,s9 as B,Hd as Ba,Jee as Bi,qwe as Bn,Ds as Bo,CD as Br,Eqe as Bt,E9 as C,Sf as Ca,Bg as Ci,pFe as Cn,Ml as Co,KTe as Cr,N as Cs,t9 as Ct,D9 as D,uf as Da,Hh as Di,EFe as Dn,vl as Do,XTe as Dr,_ as Ds,E7 as Dt,k9 as E,df as Ea,Xh as Ei,TFe as En,Cl as Eo,YTe as Er,w as Es,W7 as Et,g9 as F,qd as Fa,gh as Fi,Hwe as Fn,cl as Fo,ck as Fr,f as Fs,vqe as Ft,u9 as G,Fd as Ga,th as Gi,Zwe as Gn,qo as Go,Gx as Gr,fHe as Gt,h9 as H,Ld as Ha,ch as Hi,Ywe as Hn,xs as Ho,QC as Hr,Oqe as Ht,GJe as I,of as Ia,hh as Ii,Uwe as In,dl as Io,sO as Ir,u as Is,yqe as It,i9 as J,$u as Ja,oh as Ji,eTe as Jn,Bo as Jo,sx as Jr,g4 as Jt,KJe as K,jd as Ka,lh as Ki,Qwe as Kn,Ko,Rx as Kr,_4 as Kt,p9 as L,Gd as La,mh as Li,Wwe as Ln,pl as Lo,VD as Lr,l as Ls,bqe as Lt,w9 as M,tf as Ma,Sh as Mi,_$ as Mn,gl as Mo,Sk as Mr,D as Ms,v7 as Mt,v9 as N,Kd as Na,xh as Ni,Bwe as Nn,sl as No,bk as Nr,oe as Ns,y7 as Nt,b9 as O,sf as Oa,Eh as Oi,DFe as On,_l as Oo,ZTe as Or,h as Os,b7 as Ot,_9 as P,Xd as Pa,bh as Pi,Vwe as Pn,ul as Po,yk as Pr,v as Ps,_qe as Pt,X7 as Q,Qu as Qa,qee as Qi,iTe as Qn,Eo as Qo,Ib as Qr,dVe as Qt,l9 as R,Wd as Ra,ph as Ri,Gwe as Rn,ks as Ro,DD as Rr,o as Rs,Sqe as Rt,y9 as S,Cf as Sa,sne as Si,fFe as Sn,Nl as So,GTe as Sr,xe as Ss,I7 as St,O9 as T,mf as Ta,Qh as Ti,wFe as Tn,Tl as To,JTe as Tr,ce as Ts,G7 as Tt,f9 as U,Bd as Ua,rh as Ui,f$ as Un,Xo as Uo,kS as Ur,n6 as Ut,m9 as V,Vd as Va,nh as Vi,Jwe as Vn,Ts as Vo,UE as Vr,Dqe as Vt,d9 as W,Pd as Wa,ih as Wi,Xwe as Wn,es as Wo,qx as Wr,w4 as Wt,n9 as X,ed as Xa,Yee as Xi,nTe as Xn,Io as Xo,Xb as Xr,lVe as Xt,r9 as Y,Zu as Ya,Kee as Yi,tTe as Yn,zo as Yo,rx as Yr,cHe as Yt,Z7 as Z,td as Za,sh as Zi,rTe as Zn,Ao as Zo,Lb as Zr,uVe as Zt,P9 as _,If as _a,Zre as _i,sFe as _n,Xl as _o,BTe as _r,I as _s,Y7 as _t,K9 as a,wm as aa,hb as ai,vVe as an,vu as ao,dTe as ar,Ka as as,O7 as at,j9 as b,Ef as ba,Uy as bi,uFe as bn,zl as bo,UTe as br,je as bs,R7 as bt,U9 as c,Dp as ca,fb as ci,xVe as cn,gu as co,mTe as cr,Ia as cs,P7 as ct,B9 as d,pp as da,lb as di,LVe as dn,cu as do,PTe as dr,va as ds,Q7 as dt,Qee as ea,Ab as ei,pVe as en,Yu as eo,oTe as er,So as es,DJe as et,z9 as f,op as fa,kie as fi,RVe as fn,ou as fo,FTe as fr,la as fs,q7 as ft,F9 as g,Rf as ga,Jy as gi,oFe as gn,$l as go,zTe as gr,yn as gs,H7 as gt,I9 as h,Hf as ha,eie as hi,aFe as hn,nu as ho,RTe as hr,di as hs,U7 as ht,q9 as i,km as ia,xb as ii,_Ve as in,Ku as io,uTe as ir,Za as is,A7 as it,T9 as j,Zd as ja,Ch as ji,O$ as jn,ml as jo,Nk as jr,y as js,g7 as jt,x9 as k,nf as ka,Th as ki,OFe as kn,hl as ko,Zk as kr,k as ks,_7 as kt,H9 as l,_p as la,sb as li,SVe as ln,pu as lo,hTe as lr,Fa as ls,N7 as lt,L9 as m,Vf as ma,Xy as mi,iFe as mn,tu as mo,LTe as mr,Di as ms,F7 as mt,Y9 as n,zm as na,yb as ni,hVe as nn,Ju as no,cTe as nr,co as ns,j7 as nt,G9 as o,lm as oa,mb as oi,yVe as on,_u as oo,fTe as or,qa as os,V7 as ot,R9 as p,Kf as pa,eb as pi,q0 as pn,eu as po,ITe as pr,Ui as ps,K7 as pt,a9 as q,Od as qa,ah as qi,$we as qn,Ho as qo,lx as qr,dHe as qt,J9 as r,Am as ra,bb as ri,gVe as rn,nd as ro,lTe as rr,ro as rs,k7 as rt,W9 as s,Pp as sa,pb as si,bVe as sn,hu as so,pTe as sr,Ga as ss,B7 as st,X9 as t,Km as ta,kb as ti,mVe as tn,id as to,sTe as tr,yo as ts,M7 as tt,V9 as u,vp as ua,ub as ui,CVe as un,uu as uo,gTe as ur,Na as us,$7 as ut,N9 as v,Of as va,Zy as vi,cFe as vn,Zl as vo,VTe as vr,Fe as vs,J7 as vt,C9 as w,pf as wa,$h as wi,CFe as wn,Al as wo,qTe as wr,M as ws,e9 as wt,A9 as x,wf as xa,one as xi,dFe as xn,Pl as xo,WTe as xr,Te as xs,L7 as xt,M9 as y,Df as ya,uie as yi,lFe as yn,Ql as yo,HTe as yr,Ne as ys,z7 as yt,c9 as z,Ud as za,fh as zi,Kwe as zn,Es as zo,TD as zr,c as zs,Cqe as zt}; \ No newline at end of file +`),Cle={warn:console.warn},wle=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],aO=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function oO(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),a=e.getUTCHours(),o=e.getUTCMinutes(),s=e.getUTCSeconds(),c=i<10?`0${i}`:`${i}`,l=a<10?`0${a}`:`${a}`,u=o<10?`0${o}`:`${o}`,d=s<10?`0${s}`:`${s}`;return`${wle[r]}, ${c} ${aO[n]} ${t} ${l}:${u}:${d} GMT`}var Tle=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Ele=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Dle=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),sO=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC-7231 date-times must be expressed as strings`);let t=Tle.exec(e);if(t){let[e,n,r,i,a,o,s,c]=t;return cO(iO(dO(i)),lO(r),uO(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c})}if(t=Ele.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return Ale(cO(Ole(i),lO(r),uO(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c}))}if(t=Dle.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return cO(iO(dO(c)),lO(n),uO(r.trimLeft(),`day`,1,31),{hours:i,minutes:a,seconds:o,fractionalMilliseconds:s})}throw TypeError(`Invalid RFC-7231 date-time value`)},cO=(e,t,n,r)=>{let i=t-1;return Mle(e,i,n),new Date(Date.UTC(e,i,n,uO(r.hours,`hour`,0,23),uO(r.minutes,`minute`,0,59),uO(r.seconds,`seconds`,0,60),Ple(r.fractionalMilliseconds)))},Ole=e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+iO(dO(e));return ne.getTime()-new Date().getTime()>kle?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,lO=e=>{let t=aO.indexOf(e);if(t<0)throw TypeError(`Invalid month: ${e}`);return t+1},jle=[31,28,31,30,31,30,31,31,30,31,30,31],Mle=(e,t,n)=>{let r=jle[t];if(t===1&&Nle(e)&&(r=29),n>r)throw TypeError(`Invalid day for ${aO[t]} in ${e}: ${n}`)},Nle=e=>e%4==0&&(e%100!=0||e%400==0),uO=(e,t,n,r)=>{let i=xle(dO(e));if(ir)throw TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},Ple=e=>e==null?0:yle(`0.`+e)*1e3,dO=e=>{let t=0;for(;tt.toString(16).padStart(2,`0`)),mO=()=>{if(fO)return fO();let e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,pO[e[0]]+pO[e[1]]+pO[e[2]]+pO[e[3]]+`-`+pO[e[4]]+pO[e[5]]+`-`+pO[e[6]]+pO[e[7]]+`-`+pO[e[8]]+pO[e[9]]+`-`+pO[e[10]]+pO[e[11]]+pO[e[12]]+pO[e[13]]+pO[e[14]]+pO[e[15]]},hO=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})};hO.from=e=>e&&typeof e==`object`&&(e instanceof hO||`deserializeJSON`in e)?e:typeof e==`string`||Object.getPrototypeOf(e)===String.prototype?hO(String(e)):hO(JSON.stringify(e)),hO.fromObject=hO.from;function Fle(e){return(e.includes(`,`)||e.includes(`"`))&&(e=`"${e.replace(/"/g,`\\"`)}"`),e}var gO=`(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`,_O=`(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`,vO=`(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`,yO=`(\\d?\\d)`,bO=`(\\d{4})`,Ile=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),Lle=RegExp(`^${gO}, ${yO} ${_O} ${bO} ${vO} GMT$`),Rle=RegExp(`^${gO}, ${yO}-${_O}-(\\d\\d) ${vO} GMT$`),zle=RegExp(`^${gO} ${_O} ( [1-9]|\\d\\d) ${vO} ${bO}$`),Ble=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],Vle=e=>{if(e==null)return;let t=NaN;if(typeof e==`number`)t=e;else if(typeof e==`string`){if(!/^-?\d*\.?\d+$/.test(e))throw TypeError(`parseEpochTimestamp - numeric string invalid.`);t=Number.parseFloat(e)}else typeof e==`object`&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw TypeError(`Epoch timestamps must be valid finite numbers.`);return new Date(Math.round(t*1e3))},Hle=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC3339 timestamps must be strings`);let t=Ile.exec(e);if(!t)throw TypeError(`Invalid RFC3339 timestamp format ${e}`);let[,n,r,i,a,o,s,,c,l]=t;xO(r,1,12),xO(i,1,31),xO(a,0,23),xO(o,0,59),xO(s,0,60);let u=new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(a),Number(o),Number(s),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(u.setUTCFullYear(Number(n)),l.toUpperCase()!=`Z`){let[,e,t,n]=/([+-])(\d\d):(\d\d)/.exec(l)||[void 0,`+`,0,0],r=e===`-`?1:-1;u.setTime(u.getTime()+r*(Number(t)*60*60*1e3+Number(n)*60*1e3))}return u},Ule=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC7231 timestamps must be strings.`);let t,n,r,i,a,o,s,c;if((c=Lle.exec(e))?[,t,n,r,i,a,o,s]=c:(c=Rle.exec(e))?([,t,n,r,i,a,o,s]=c,r=(Number(r)+1900).toString()):(c=zle.exec(e))&&([,n,t,i,a,o,s,r]=c),r&&o){let e=Date.UTC(Number(r),Ble.indexOf(n),Number(t),Number(i),Number(a),Number(o),s?Math.round(parseFloat(`0.${s}`)*1e3):0);xO(t,1,31),xO(i,0,23),xO(a,0,59),xO(o,0,60);let c=new Date(e);return c.setUTCFullYear(Number(r)),c}throw TypeError(`Invalid RFC7231 date-time value ${e}.`)};function xO(e,t,n){let r=Number(e);if(rn)throw Error(`Value ${r} out of range [${t}, ${n}]`)}function Wle(e,t,n){if(n<=0||!Number.isInteger(n))throw Error(`Invalid number of delimiters (`+n+`) for splitEvery.`);let r=e.split(t);if(n===1)return r;let i=[],a=``;for(let e=0;e{let t=e.length,n=[],r=!1,i,a=0;for(let o=0;o{e=e.trim();let t=e.length;return t<2?e:(e[0]===`"`&&e[t-1]===`"`&&(e=e.slice(1,t-1)),e.replace(/\\"/g,`"`))})},CO=/^-?\d*(\.\d+)?$/,wO=class e{string;type;constructor(e,t){if(this.string=e,this.type=t,!CO.test(e))throw Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`)}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!=`object`)return!1;let n=t;return e.prototype.isPrototypeOf(t)||n.type===`bigDecimal`&&CO.test(n.string)}},TO=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},EO=class extends TO{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=tO.for(e.defaultNamespace);for(let t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return _b}getResponseType(){return vb}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if(`url`in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||={};for(let[n,r]of t.url.searchParams.entries())e.query[n]=r;if(t.headers)for(let n in t.headers)e.headers[n]=t.headers[n].join(`, `);return e}else{if(e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},t.headers)for(let n in t.headers)e.headers[n]=t.headers[n];return e}}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix)return;let r=QD.of(t.input),i=JD(t.traits??{});if(i.endpoint){let t=i.endpoint?.[0];if(typeof t==`string`){for(let[e,i]of r.structIterator()){if(!i.getMergedTraits().hostLabel)continue;let r=n[e];if(typeof r!=`string`)throw Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,r)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers[`x-amzn-requestid`]??e.headers[`x-amzn-request-id`]??e.headers[`x-amz-request-id`],extendedRequestId:e.headers[`x-amz-id-2`],cfId:e.headers[`x-amz-cf-id`]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e}=await H(async()=>{let{EventStreamSerde:e}=await import(`./event-streams.js`);return{EventStreamSerde:e}},[]);return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,r,i){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw Error(`@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.`);return e.eventStreamMarshaller}},Gle=class extends EO{async serializeRequest(e,t,n){let r=t&&typeof t==`object`?t:{},i=this.serializer,a={},o={},s=await n.endpoint(),c=QD.of(e?.input),l=[],u=[],d=!1,f,p=new _b({protocol:``,hostname:``,port:void 0,path:``,fragment:void 0,query:a,headers:o,body:void 0});if(s){this.updateServiceEndpoint(p,s),this.setHostPrefix(p,e,r);let t=JD(e.traits);if(t.http){p.method=t.http[0];let[e,n]=t.http[1].split(`?`);p.path==`/`?p.path=e:p.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&&(p.path.includes(`{${e}+}`)||p.path.includes(`{${e}}`)))throw Error(`No value provided for input HTTP label: ${e}.`);continue}if(n.httpPayload)t.isStreaming()?t.isStructSchema()?r[e]&&(f=await this.serializeEventStream({eventStream:r[e],requestSchema:c})):f=s:(i.write(t,s),f=i.flush());else if(n.httpLabel){i.write(t,s);let n=i.flush();p.path.includes(`{${e}+}`)?p.path=p.path.replace(`{${e}+}`,n.split(`/`).map(VD).join(`/`)):p.path.includes(`{${e}}`)&&(p.path=p.path.replace(`{${e}}`,VD(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):(d=!0,l.push(e),u.push(t))}if(d&&r){let[e,t]=(c.getName(!0)??`#Unknown`).split(`#`),n=c.getSchema()[6],a=[3,e,t,c.getMergedTraits(),l,u,void 0];n?a[6]=n:a.pop(),i.write(a,r),f=i.flush()}return p.headers=o,p.query=a,p.body=f,p}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=QD.of(e.output),a={};if(n.statusCode>=300){let i=await BD(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 BD(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 BD(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=QD.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]=RD(n.body);else if(n.body){let i=await BD(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?Wle(o,`,`,2):SO(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}},Kle=class extends EO{async serializeRequest(e,t,n){let r=this.serializer,i={},a={},o=await n.endpoint(),s=QD.of(e?.input),c=s.getSchema(),l,u=t&&typeof t==`object`?t:{},d=new _b({protocol:``,hostname:``,port:void 0,path:`/`,fragment:void 0,query:i,headers:a,body:void 0});if(o&&(this.updateServiceEndpoint(d,o),this.setHostPrefix(d,e,u)),u){let e=s.getEventStreamMember();if(e){if(u[e]){let t={};for(let[n,i]of s.structIterator())n!==e&&u[n]&&(r.write(i,u[n]),t[n]=r.flush());l=await this.serializeEventStream({eventStream:u[e],requestSchema:s,initialRequest:t})}}else r.write(c,u),l=r.flush()}return d.headers=Object.assign(d.headers,a),d.query=i,d.body=l,d.method=`POST`,d}async deserializeResponse(e,t,n){let r=this.deserializer,i=QD.of(e.output),a={};if(n.statusCode>=300){let i=await BD(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 - RPC 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=i.getEventStreamMember();if(o)a[o]=await this.deserializeEventStream({response:n,responseSchema:i,initialResponseContainer:a});else{let e=await BD(n.body,t);e.byteLength>0&&Object.assign(a,await r.read(i,e))}return a.$metadata=this.deserializeMetadata(n),a}};function DO(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();let{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:a}=e.getMergedTraits();return(t.httpBindings?typeof r==`string`||i?6:a||n?5:void 0:void 0)??t.timestampFormat.default}var OO=class extends TO{settings;constructor(e){super(),this.settings=e}read(e,t){let n=QD.of(e);if(n.isListSchema())return SO(t).map(e=>this.read(n.getValueSchema(),e));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??DD)(t);if(n.isTimestampSchema())switch(DO(n,this.settings)){case 5:return Hle(t);case 6:return Ule(t);case 7:return Vle(t);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,t),new Date(t)}if(n.isStringSchema()){let e=n.getMergedTraits().mediaType,r=t;if(e)return n.getMergedTraits().httpHeader&&(r=this.base64ToUtf8(r)),(e===`application/json`||e.endsWith(`+json`))&&(r=hO.from(r)),r}return n.isNumericSchema()?Number(t):n.isBigIntegerSchema()?BigInt(t):n.isBigDecimalSchema()?new wO(t,`bigDecimal`):n.isBooleanSchema()?String(t).toLowerCase()===`true`:t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??Tb)((this.serdeContext?.base64Decoder??DD)(e))}},qle=class extends TO{codecDeserializer;stringDeserializer;constructor(e,t){super(),this.codecDeserializer=e,this.stringDeserializer=new OO(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){let n=QD.of(e),r=n.getMergedTraits(),i=this.serdeContext?.utf8Encoder??Tb;if(r.httpHeader||r.httpResponseCode)return this.stringDeserializer.read(n,i(t));if(r.httpPayload){if(n.isBlobSchema()){let e=this.serdeContext?.utf8Decoder??Cb;return typeof t==`string`?e(t):t}else if(n.isStringSchema())return`byteLength`in t?i(t):t}return this.codecDeserializer.read(n,t)}},Jle=class extends TO{settings;stringBuffer=``;constructor(e){super(),this.settings=e}write(e,t){let n=QD.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(DO(n,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(`.000Z`,`Z`);break;case 6:this.stringBuffer=oO(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??OD)(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:Fle(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=hO.from(r)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??OD)(r.toString());return}this.stringBuffer=t;break;default:n.isIdempotencyToken()?this.stringBuffer=mO():this.stringBuffer=String(t)}}flush(){let e=this.stringBuffer;return this.stringBuffer=``,e}},Yle=class{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new Jle(t)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){let n=QD.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 Xle(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}var kO=class{authSchemes=new Map;constructor(e){for(let t in e){let n=e[t];n!==void 0&&this.authSchemes.set(t,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}},Zle=(e=>function(t){return AO(t)&&t.expiration.getTime()-Date.now()e.expiration!==void 0,Qle=(e,t,n)=>{if(e===void 0)return;let r=typeof e==`function`?e:async()=>Promise.resolve(e),i,a,o,s=!1,c=async e=>{a||=r(e);try{i=await a,o=!0,s=!1}finally{a=void 0}return i};return t===void 0?async e=>((!o||e?.forceRefresh)&&(i=await c(e)),i):async e=>((!o||e?.forceRefresh)&&(i=await c(e)),s?i:n(i)?(t(i)&&await c(e),i):(s=!0,i))};function $le(e){return e===void 0?!0:typeof e==`string`&&e.length<=50}function jO(e){let t=wD(e.userAgentAppId??void 0),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==`string`?[[n]]:n,userAgentAppId:async()=>{let n=await t();if(!$le(n)){let t=e.logger?.constructor?.name===`NoOpLogger`||!e.logger?console:e.logger;typeof n==`string`?n.length>50&&t?.warn(`The provided userAgentAppId exceeds the maximum length of 50 characters.`):t?.warn(`userAgentAppId must be a string or undefined.`)}return n}})}var MO=class e{nodes;root;conditions;results;constructor(e,t,n,r){this.nodes=e,this.root=t,this.conditions=n,this.results=r}static from(t,n,r,i){return new e(t,n,r,i)}},NO=class{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){let n=this.hash(e);if(n===!1)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let e=this.data.keys(),t=0;for(;;){let{value:n,done:r}=e.next();if(this.data.delete(n),r||++t>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t=``,{parameters:n}=this;if(n.length===0)return!1;for(let r of n){let n=String(e[r]??``);if(n.includes(`|;`))return!1;t+=n+`|;`}return t}},PO=class extends Error{constructor(e){super(e),this.name=`EndpointError`}},eue=`endpoints`;function FO(e){return typeof e!=`object`||!e?e:`ref`in e?`$${FO(e.ref)}`:`fn`in e?`${e.fn}(${(e.argv||[]).map(FO).join(`, `)})`:JSON.stringify(e,null,2)}var IO={},tue=(e,t)=>e===t;function nue(...e){for(let t of e)if(t!=null)return t}var rue=e=>{let t=e.split(`.`),n=[];for(let r of t){let t=r.indexOf(`[`);if(t!==-1){if(r.indexOf(`]`)!==r.length-1)throw new PO(`Path: '${e}' does not end with ']'`);let i=r.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new PO(`Invalid array index: '${i}' in path: '${e}'`);t!==0&&n.push(r.slice(0,t)),n.push(i)}else n.push(r)}return n},LO=(e,t)=>rue(t).reduce((n,r)=>{if(typeof n!=`object`)throw new PO(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(n)){let e=parseInt(r);return n[e<0?n.length+e:e]}return n[r]},e),iue=e=>e!=null,aue=RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`),RO=(e,t=!1)=>{if(!t)return aue.test(e);let n=e.split(`.`);for(let e of n)if(!RO(e))return!1;return!0};function oue(e,t,n){return e?t:n}var sue=e=>!e,cue=RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`),zO=e=>cue.test(e)||e.startsWith(`[`)&&e.endsWith(`]`),BO={[hb.HTTP]:80,[hb.HTTPS]:443},lue=e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e==`object`&&`hostname`in e){let{hostname:t,port:n,protocol:r=``,path:i=``,query:a={}}=e,o=new URL(`${r}//${t}${n?`:${n}`:``}${i}`);return o.search=Object.entries(a).map(([e,t])=>`${e}=${t}`).join(`&`),o}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let n=t.href,{host:r,hostname:i,pathname:a,protocol:o,search:s}=t;if(s)return null;let c=o.slice(0,-1);if(!Object.values(hb).includes(c))return null;let l=zO(i);return{scheme:c,authority:`${r}${n.includes(`${r}:${BO[c]}`)||typeof e==`string`&&e.includes(`${r}:${BO[c]}`)?`:${BO[c]}`:``}`,path:a,normalizedPath:a.endsWith(`/`)?a:`${a}/`,isIp:l}};function uue(e,t,n){if(n===1)return[e];if(e===``)return[``];let r=e.split(t);return n===0?r:r.slice(0,n-1).concat(r.slice(1).join(t))}var due={booleanEquals:tue,coalesce:nue,getAttr:LO,isSet:iue,isValidHostLabel:RO,ite:oue,not:sue,parseURL:lue,split:uue,stringEquals:(e,t)=>e===t,substring:(e,t,n,r)=>e==null||t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},VO=(e,t)=>{let n=[],{referenceRecord:r,endpointParams:i}=t,a=0;for(;at.referenceRecord[e]??t.endpointParams[e],HO=(e,t,n)=>{if(typeof e==`string`)return VO(e,n);if(e.fn)return WO.callFunction(e,n);if(e.ref)return fue(e,n);throw new PO(`'${t}': ${String(e)} is not a string, function or reference.`)},UO=({fn:e,argv:t},n)=>{let r=Array(t.length);for(let e=0;e{let{assign:n}=e;if(n&&n in t.referenceRecord)throw new PO(`'${n}' is already defined in Reference Record.`);let r=UO(e,t);t.logger?.debug?.(`${eue} evaluateCondition: ${FO(e)} = ${FO(r)}`);let i=r===``?!0:!!r;return n==null?{result:i}:{result:i,toAssign:{name:n,value:r}}},mue=(e,t)=>Object.entries(e??{}).reduce((e,[n,r])=>(e[n]=r.map(e=>{let r=HO(e,`Header value entry`,t);if(typeof r!=`string`)throw new PO(`Header '${n}' value '${r}' is not a string`);return r}),e),{}),GO=(e,t)=>Object.entries(e).reduce((e,[n,r])=>(e[n]=qO.getEndpointProperty(r,t),e),{}),KO=(e,t)=>{if(Array.isArray(e))return e.map(e=>KO(e,t));switch(typeof e){case`string`:return VO(e,t);case`object`:if(e===null)throw new PO(`Unexpected endpoint property: ${e}`);return qO.getEndpointProperties(e,t);case`boolean`:return e;default:throw new PO(`Unexpected endpoint property type: ${typeof e}`)}},qO={getEndpointProperty:KO,getEndpointProperties:GO},hue=(e,t)=>{let n=HO(e,`Endpoint URL`,t);if(typeof n==`string`)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new PO(`Endpoint URL must be a string, got ${typeof n}`)},JO=1e8,YO=(e,t)=>{let{nodes:n,root:r,results:i,conditions:a}=e,o=r,s={},c={referenceRecord:s,endpointParams:t.endpointParams,logger:t.logger};for(;o!==1&&o!==-1&&o=0===f.result?r:i}if(o>=JO){let e=i[o-JO];if(e[0]===-1){let[,t]=e;throw new PO(HO(t,`Error`,c))}let[t,n,r]=e;return{url:hue(t,c),properties:GO(n,c),headers:mue(r??{},c)}}throw new PO(`No matching endpoint.`)},XO=(e,t=!1)=>{if(t){for(let t of e.split(`.`))if(!XO(t))return!1;return!0}return!(!RO(e)||e.length<3||e.length>63||e!==e.toLowerCase()||zO(e))},ZO=`:`,gue=`/`,_ue=e=>{let t=e.split(ZO);if(t.length<6)return null;let[n,r,i,a,o,...s]=t;return n!==`arn`||r===``||i===``||s.join(ZO)===``?null:{partition:r,service:i,region:a,accountId:o,resourceId:s.map(e=>e.split(gue)).flat()}},vue={partitions:[{id:`aws`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-east-1`,name:`aws`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$`,regions:{"af-south-1":{description:`Africa (Cape Town)`},"ap-east-1":{description:`Asia Pacific (Hong Kong)`},"ap-east-2":{description:`Asia Pacific (Taipei)`},"ap-northeast-1":{description:`Asia Pacific (Tokyo)`},"ap-northeast-2":{description:`Asia Pacific (Seoul)`},"ap-northeast-3":{description:`Asia Pacific (Osaka)`},"ap-south-1":{description:`Asia Pacific (Mumbai)`},"ap-south-2":{description:`Asia Pacific (Hyderabad)`},"ap-southeast-1":{description:`Asia Pacific (Singapore)`},"ap-southeast-2":{description:`Asia Pacific (Sydney)`},"ap-southeast-3":{description:`Asia Pacific (Jakarta)`},"ap-southeast-4":{description:`Asia Pacific (Melbourne)`},"ap-southeast-5":{description:`Asia Pacific (Malaysia)`},"ap-southeast-6":{description:`Asia Pacific (New Zealand)`},"ap-southeast-7":{description:`Asia Pacific (Thailand)`},"aws-global":{description:`aws global region`},"ca-central-1":{description:`Canada (Central)`},"ca-west-1":{description:`Canada West (Calgary)`},"eu-central-1":{description:`Europe (Frankfurt)`},"eu-central-2":{description:`Europe (Zurich)`},"eu-north-1":{description:`Europe (Stockholm)`},"eu-south-1":{description:`Europe (Milan)`},"eu-south-2":{description:`Europe (Spain)`},"eu-west-1":{description:`Europe (Ireland)`},"eu-west-2":{description:`Europe (London)`},"eu-west-3":{description:`Europe (Paris)`},"il-central-1":{description:`Israel (Tel Aviv)`},"me-central-1":{description:`Middle East (UAE)`},"me-south-1":{description:`Middle East (Bahrain)`},"mx-central-1":{description:`Mexico (Central)`},"sa-east-1":{description:`South America (Sao Paulo)`},"us-east-1":{description:`US East (N. Virginia)`},"us-east-2":{description:`US East (Ohio)`},"us-west-1":{description:`US West (N. California)`},"us-west-2":{description:`US West (Oregon)`}}},{id:`aws-cn`,outputs:{dnsSuffix:`amazonaws.com.cn`,dualStackDnsSuffix:`api.amazonwebservices.com.cn`,implicitGlobalRegion:`cn-northwest-1`,name:`aws-cn`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^cn\\-\\w+\\-\\d+$`,regions:{"aws-cn-global":{description:`aws-cn global region`},"cn-north-1":{description:`China (Beijing)`},"cn-northwest-1":{description:`China (Ningxia)`}}},{id:`aws-eusc`,outputs:{dnsSuffix:`amazonaws.eu`,dualStackDnsSuffix:`api.amazonwebservices.eu`,implicitGlobalRegion:`eusc-de-east-1`,name:`aws-eusc`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eusc\\-(de)\\-\\w+\\-\\d+$`,regions:{"eusc-de-east-1":{description:`AWS European Sovereign Cloud (Germany)`}}},{id:`aws-iso`,outputs:{dnsSuffix:`c2s.ic.gov`,dualStackDnsSuffix:`api.aws.ic.gov`,implicitGlobalRegion:`us-iso-east-1`,name:`aws-iso`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-iso\\-\\w+\\-\\d+$`,regions:{"aws-iso-global":{description:`aws-iso global region`},"us-iso-east-1":{description:`US ISO East`},"us-iso-west-1":{description:`US ISO WEST`}}},{id:`aws-iso-b`,outputs:{dnsSuffix:`sc2s.sgov.gov`,dualStackDnsSuffix:`api.aws.scloud`,implicitGlobalRegion:`us-isob-east-1`,name:`aws-iso-b`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isob\\-\\w+\\-\\d+$`,regions:{"aws-iso-b-global":{description:`aws-iso-b global region`},"us-isob-east-1":{description:`US ISOB East (Ohio)`},"us-isob-west-1":{description:`US ISOB West`}}},{id:`aws-iso-e`,outputs:{dnsSuffix:`cloud.adc-e.uk`,dualStackDnsSuffix:`api.cloud-aws.adc-e.uk`,implicitGlobalRegion:`eu-isoe-west-1`,name:`aws-iso-e`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eu\\-isoe\\-\\w+\\-\\d+$`,regions:{"aws-iso-e-global":{description:`aws-iso-e global region`},"eu-isoe-west-1":{description:`EU ISOE West`}}},{id:`aws-iso-f`,outputs:{dnsSuffix:`csp.hci.ic.gov`,dualStackDnsSuffix:`api.aws.hci.ic.gov`,implicitGlobalRegion:`us-isof-south-1`,name:`aws-iso-f`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isof\\-\\w+\\-\\d+$`,regions:{"aws-iso-f-global":{description:`aws-iso-f global region`},"us-isof-east-1":{description:`US ISOF EAST`},"us-isof-south-1":{description:`US ISOF SOUTH`}}},{id:`aws-us-gov`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-gov-west-1`,name:`aws-us-gov`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-gov\\-\\w+\\-\\d+$`,regions:{"aws-us-gov-global":{description:`aws-us-gov global region`},"us-gov-east-1":{description:`AWS GovCloud (US-East)`},"us-gov-west-1":{description:`AWS GovCloud (US-West)`}}}],version:`1.1`},yue=``,bue=e=>{let{partitions:t}=vue;for(let n of t){let{regions:t,outputs:r}=n;for(let[n,i]of Object.entries(t))if(n===e)return{...r,...i}}for(let n of t){let{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}let n=t.find(e=>e.id===`aws`);if(!n)throw Error(`Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.`);return{...n.outputs}},xue=()=>yue,QO={isVirtualHostableS3Bucket:XO,parseArn:_ue,partition:bue};IO.aws=QO;function Sue(e,t,n){return e.$source||={},e.$source[t]=n,e}var $O;(function(e){e.STANDARD=`standard`,e.ADAPTIVE=`adaptive`})($O||={});var ek=$O.STANDARD,Cue=[`BandwidthLimitExceeded`,`EC2ThrottledException`,`LimitExceededException`,`PriorRequestNotComplete`,`ProvisionedThroughputExceededException`,`RequestLimitExceeded`,`RequestThrottled`,`RequestThrottledException`,`SlowDown`,`ThrottledException`,`Throttling`,`ThrottlingException`,`TooManyRequestsException`,`TransactionInProgressException`],wue=[`TimeoutError`,`RequestTimeout`,`RequestTimeoutException`],Tue=[500,502,503,504],Eue=[`ECONNRESET`,`ECONNREFUSED`,`EPIPE`,`ETIMEDOUT`],Due=[`EHOSTUNREACH`,`ENETUNREACH`,`ENOTFOUND`],Oue=e=>e?.$retryable!==void 0,kue=e=>e.$metadata?.clockSkewCorrected,Aue=e=>{let t=new Set([`Failed to fetch`,`NetworkError when attempting to fetch resource`,`The Internet connection appears to be offline`,`Load failed`,`Network request failed`]);return e&&e instanceof TypeError?t.has(e.message):!1},tk=e=>e.$metadata?.httpStatusCode===429||Cue.includes(e.name)||e.$retryable?.throttling==1,nk=(e,t=0)=>Oue(e)||kue(e)||e.name===`InvalidSignatureException`&&e.message?.includes(`Signature expired`)||wue.includes(e.name)||Eue.includes(e?.code||``)||Due.includes(e?.code||``)||Tue.includes(e.$metadata?.httpStatusCode||0)||Aue(e)||Mue(e)||e.cause!==void 0&&t<=10&&nk(e.cause,t+1),jue=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!nk(e)}return!1};function Mue(e){return e.code===`ERR_HTTP2_STREAM_ERROR`&&e.message.includes(`NGHTTP2_REFUSED_STREAM`)}var Nue=class e{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let t;this.updateMeasuredRate();let n=e;if(n?.errorType===`THROTTLING`||tk(n?.error??e)){let e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(this.enabled){for(this.refillTokenBucket();t>this.availableTokens;){let n=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(t=>e.setTimeoutFn(t,n)),this.refillTokenBucket()}this.availableTokens-=t}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+t),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise((this.lastMaxRate*(1-this.beta)/this.scaleConstant)**(1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*(e-this.lastThrottleTime-this.timeWindow)**3+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),t=Math.floor(e*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}},rk=20*1e3,Pue=`amz-sdk-invocation-id`,Fue=`amz-sdk-request`,ik=class e{static v2026=typeof process<`u`&&{}?.SMITHY_NEW_RETRIES_2026===`true`;static delay(){return e.v2026?50:100}static throttlingDelay(){return e.v2026?1e3:500}static cost(){return e.v2026?14:5}static throttlingCost(){return e.v2026?5:10}static modifiedCostType(){return e.v2026?`THROTTLING`:`TRANSIENT`}},Iue=class{x=ik.delay();computeNextBackoffDelay(e){let t=Math.random()*Math.min(this.x*2**e,rk);return Math.floor(t)}setDelayBase(e){this.x=e}},ak=class{delay;count;cost;longPoll;constructor(e,t,n,r){this.delay=e,this.count=t,this.cost=n,this.longPoll=r}getRetryCount(){return this.count}getRetryDelay(){return Math.min(rk,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}},ok={incompatible:1,attempts:2,capacity:3},sk=class{mode=$O.STANDARD;capacity=500;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(e){typeof e==`number`?this.maxAttemptsProvider=async()=>e:typeof e==`function`?this.maxAttemptsProvider=e:e&&typeof e==`object`&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>3,this.baseDelay??=ik.delay(),this.retryBackoffStrategy??=new Iue}async acquireInitialRetryToken(e){return new ak(ik.delay(),0,void 0,ik.v2026&&e.includes(`:longpoll`))}async refreshRetryTokenForRetry(e,t){let n=await this.getMaxAttempts(),r=this.retryCode(e,t,n),i=r===0,a=e.isLongPoll?.();if(i||a){let n=t.errorType;this.retryBackoffStrategy.setDelayBase(n===`THROTTLING`?ik.throttlingDelay():this.baseDelay);let o=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),s=o;if(t.retryAfterHint instanceof Date&&(s=Math.max(o,Math.min(t.retryAfterHint.getTime()-Date.now(),o+5e3))),i){let t=this.getCapacityCost(n);return this.capacity-=t,new ak(s,e.getRetryCount()+1,t,e.isLongPoll?.()??!1)}else throw Object.assign(Error(`No retry token available`),{$backoff:ik.v2026&&r===ok.capacity&&a?s:0})}throw Error(`No retry token available`)}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of 3`),3}}retryCode(e,t,n){let r=e.getRetryCount()+1,i=this.isRetryableError(t.errorType)?0:ok.incompatible,a=r=this.getCapacityCost(t.errorType)?0:ok.capacity;return i||a||o}getCapacityCost(e){return e===ik.modifiedCostType()?ik.throttlingCost():ik.cost()}isRetryableError(e){return e===`THROTTLING`||e===`TRANSIENT`}},Lue=class{mode=$O.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){let{rateLimiter:n}=t??{};this.rateLimiter=n??new Nue,this.standardRetryStrategy=t?new sk({maxAttempts:typeof e==`number`?e:3,...t}):new sk(e)}async acquireInitialRetryToken(e){let t=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),t}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,t);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};ik.v2026||=typeof process==`object`&&{}?.AWS_NEW_RETRIES_2026===`true`;function ck(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}var Rue=/\d{12}\.ddb/;async function zue(e,t,n){if(n.request?.headers?.[`smithy-protocol`]===`rpc-v2-cbor`&&ck(e,`PROTOCOL_RPC_V2_CBOR`,`M`),typeof t.retryStrategy==`function`){let n=await t.retryStrategy();if(typeof n.mode==`string`)switch(n.mode){case $O.ADAPTIVE:ck(e,`RETRY_MODE_ADAPTIVE`,`F`);break;case $O.STANDARD:ck(e,`RETRY_MODE_STANDARD`,`E`);break}}if(typeof t.accountIdEndpointMode==`function`){let n=e.endpointV2;switch(String(n?.url?.hostname).match(Rue)&&ck(e,`ACCOUNT_ID_ENDPOINT`,`O`),await t.accountIdEndpointMode?.()){case`disabled`:ck(e,`ACCOUNT_ID_MODE_DISABLED`,`Q`);break;case`preferred`:ck(e,`ACCOUNT_ID_MODE_PREFERRED`,`P`);break;case`required`:ck(e,`ACCOUNT_ID_MODE_REQUIRED`,`R`);break}}let r=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(r?.$source){let t=r;t.accountId&&ck(e,`RESOLVED_ACCOUNT_ID`,`T`);for(let[n,r]of Object.entries(t.$source??{}))ck(e,n,r)}}var lk=`user-agent`,uk=`x-amz-user-agent`,Bue=/[^!$%&'*+\-.^_`|~\w]/g,Vue=/[^!$%&'*+\-.^_`|~\w#]/g,Hue=1024;function Uue(e){let t=``;for(let n in e){let r=e[n];if(t.length+r.length+1<=Hue){t.length?t+=`,`+r:t+=r;continue}break}return t}var Wue=e=>(t,n)=>async r=>{let{request:i}=r;if(!_b.isInstance(i))return t(r);let{headers:a}=i,o=n?.userAgent?.map(dk)||[],s=(await e.defaultUserAgentProvider()).map(dk);await zue(n,e,r);let c=n;s.push(`m/${Uue(Object.assign({},n.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let l=e?.customUserAgent?.map(dk)||[],u=await e.userAgentAppId();u&&s.push(dk([`app`,`${u}`]));let d=xue(),f=(d?[d]:[]).concat([...s,...o,...l]).join(` `),p=[...s.filter(e=>e.startsWith(`aws-sdk-`)),...l].join(` `);return e.runtime===`browser`?a[uk]=f:(p&&(a[uk]=a[`x-amz-user-agent`]?`${a[lk]} ${p}`:p),a[lk]=f),t({...r,request:i})},dk=e=>{let t=e[0].split(`/`).map(e=>e.replace(Bue,`-`)).join(`/`),n=e[1]?.replace(Vue,`-`),r=t.indexOf(`/`),i=t.substring(0,r),a=t.substring(r+1);return i===`api`&&(a=a.toLowerCase()),[i,a,n].filter(e=>e&&e.length>0).reduce((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},``)},Gue={name:`getUserAgentMiddleware`,step:`build`,priority:`low`,tags:[`SET_USER_AGENT`,`USER_AGENT`],override:!0},fk=e=>({applyToStack:t=>{t.add(Wue(e),Gue)}}),pk=new Set,Kue=(e,t=RO)=>{if(!pk.has(e)&&!t(e))if(e===`*`)console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);else throw Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else pk.add(e)},mk=e=>typeof e==`string`&&(e.startsWith(`fips-`)||e.endsWith(`-fips`)),que=e=>mk(e)?[`fips-aws-global`,`aws-fips`].includes(e)?`us-east-1`:e.replace(/fips-(dkr-|prod-)?|-fips/,``):e,hk=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw Error(`Region is missing`);return Object.assign(e,{region:async()=>{let e=que(typeof t==`function`?await t():t);return Kue(e),e},useFipsEndpoint:async()=>mk(typeof t==`string`?t:await t())?!0:typeof n==`function`?n():Promise.resolve(!!n)})},gk=`content-length`;function Jue(e){return t=>async n=>{let r=n.request;if(_b.isInstance(r)){let{body:t,headers:n}=r;if(t&&Object.keys(n).map(e=>e.toLowerCase()).indexOf(gk)===-1)try{let n=e(t);r.headers={...r.headers,[gk]:String(n)}}catch{}}return t({...n,request:r})}}var Yue={step:`build`,tags:[`SET_CONTENT_LENGTH`,`CONTENT_LENGTH`],name:`contentLengthMiddleware`,override:!0},_k=e=>({applyToStack:t=>{t.add(Jue(e.bodyLengthChecker),Yue)}}),Xue=async e=>{let t=e?.Bucket||``;if(typeof e.Bucket==`string`&&(e.Bucket=t.replace(/#/g,`%23`).replace(/\?/g,`%3F`)),tde(t)){if(e.ForcePathStyle===!0)throw Error(`Path-style addressing cannot be used with ARN buckets`)}else (!ede(t)||t.indexOf(`.`)!==-1&&!String(e.Endpoint).startsWith(`http:`)||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},Zue=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Que=/(\d+\.){3}\d+/,$ue=/\.\./,ede=e=>Zue.test(e)&&!Que.test(e)&&!$ue.test(e),tde=e=>{let[t,n,r,,,i]=e.split(`:`),a=t===`arn`&&e.split(`:`).length>=6,o=!!(a&&n&&r&&i);if(a&&!o)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return o},nde=(e,t,n,r=!1)=>{let i=async()=>{let i;return i=r?n.clientContextParams?.[e]??n[e]??n[t]:n[e]??n[t],typeof i==`function`?i():i};return e===`credentialScope`||t===`CredentialScope`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:e===`accountId`||t===`AccountId`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:e===`endpoint`||t===`endpoint`?async()=>{if(n.isCustomEndpoint===!1)return;let e=await i();if(e&&typeof e==`object`){if(`url`in e)return e.url.href;if(`hostname`in e){let{protocol:t,hostname:n,port:r,path:i}=e;return`${t}//${n}${r?`:`+r:``}${i}`}}return e}:i},vk=async e=>void 0,yk=e=>{if(typeof e==`object`){if(`url`in e){let t=GD(e.url);if(e.headers){t.headers={};for(let[n,r]of Object.entries(e.headers))t.headers[n.toLowerCase()]=r.join(`, `)}return t}return e}return GD(e)},bk=async(e,t,n,r)=>{if(!n.isCustomEndpoint){let e;e=n.serviceConfiguredEndpoint?await n.serviceConfiguredEndpoint():await vk(n.serviceId),e&&(n.endpoint=()=>Promise.resolve(yk(e)),n.isCustomEndpoint=!0)}let i=await xk(e,t,n);if(typeof n.endpointProvider!=`function`)throw Error(`config.endpointProvider is not set.`);let a=n.endpointProvider(i,r);if(n.isCustomEndpoint&&n.endpoint){let e=await n.endpoint();if(e?.headers){a.headers??={};for(let[t,n]of Object.entries(e.headers))a.headers[t]=Array.isArray(n)?n:[n]}}return a},xk=async(e,t,n)=>{let r={},i=t?.getEndpointParameterInstructions?.()||{};for(let[t,a]of Object.entries(i))switch(a.type){case`staticContextParams`:r[t]=a.value;break;case`contextParams`:r[t]=e[a.name];break;case`clientContextParams`:case`builtInParams`:r[t]=await nde(a.name,t,n,a.type!==`builtInParams`)();break;case`operationContextParams`:r[t]=a.get(e);break;default:throw Error(`Unrecognized endpoint parameter instruction: `+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()===`s3`&&await Xue(r),r},rde=({config:e,instructions:t})=>(n,r)=>async i=>{e.isCustomEndpoint&&Xle(r,`ENDPOINT_OVERRIDE`,`N`);let a=await bk(i.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=a,r.authSchemes=a.properties?.authSchemes;let o=r.authSchemes?.[0];if(o){r.signing_region=o.signingRegion,r.signing_service=o.signingName;let e=nx(r)?.selectedHttpAuthScheme?.httpAuthOption;e&&(e.signingProperties=Object.assign(e.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return n({...i})},ide={step:`serialize`,tags:[`ENDPOINT_PARAMETERS`,`ENDPOINT_V2`,`ENDPOINT`],name:`endpointV2Middleware`,override:!0,relation:`before`,toMiddleware:{name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0}.name},Sk=(e,t)=>({applyToStack:n=>{n.addRelativeTo(rde({config:e,instructions:t}),ide)}}),Ck=e=>{let t=e.tls??!0,{endpoint:n,useDualstackEndpoint:r,useFipsEndpoint:i}=e,a=Object.assign(e,{endpoint:n==null?void 0:async()=>yk(await rx(n)()),tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:rx(r??!1),useFipsEndpoint:rx(i??!1)}),o;return a.serviceConfiguredEndpoint=async()=>(e.serviceId&&!o&&(o=vk(e.serviceId)),o),a},ade=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):Error(typeof e==`string`?e:`AWS SDK error wrapper for ${e}`),wk=e=>{let{retryStrategy:t,retryMode:n}=e,r=rx(e.maxAttempts??3),i=t?Promise.resolve(t):void 0,a=async()=>await rx(n)()===$O.ADAPTIVE?new Lue(r):new sk(r);return Object.assign(e,{maxAttempts:r,retryStrategy:()=>i??=a()})},Tk=(e,t)=>{let n=[];if(e&&n.push(e),t)for(let e of t)n.push(e);return n},Ek=(e,t)=>`${e||`anonymous`}${t&&t.length>0?` (a.k.a. ${t.join(`,`)})`:``}`,Dk=()=>{let e=[],t=[],n=!1,r=new Set,i=e=>e.sort((e,t)=>Ok[t.step]-Ok[e.step]||kk[t.priority||`normal`]-kk[e.priority||`normal`]),a=n=>{let i=!1,a=e=>{let t=Tk(e.name,e.aliases);if(t.includes(n)){i=!0;for(let e of t)r.delete(e);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},o=n=>{let i=!1,a=e=>{if(e.middleware===n){i=!0;for(let t of Tk(e.name,e.aliases))r.delete(t);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},s=n=>(e.forEach(e=>{n.add(e.middleware,{...e})}),t.forEach(e=>{n.addRelativeTo(e.middleware,{...e})}),n.identifyOnResolve?.(u.identifyOnResolve()),n),c=e=>{let t=[];return e.before.forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t.push(e),e.after.reverse().forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t},l=(n=!1)=>{let r=[],a=[],o={};return e.forEach(e=>{let t={...e,before:[],after:[]};for(let e of Tk(t.name,t.aliases))o[e]=t;r.push(t)}),t.forEach(e=>{let t={...e,before:[],after:[]};for(let e of Tk(t.name,t.aliases))o[e]=t;a.push(t)}),a.forEach(e=>{if(e.toMiddleware){let t=o[e.toMiddleware];if(t===void 0){if(n)return;throw Error(`${e.toMiddleware} is not found when adding ${Ek(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}e.relation===`after`&&t.after.push(e),e.relation===`before`&&t.before.push(e)}}),i(r).map(c).reduce((e,t)=>(e.push(...t),e),[])},u={add:(t,n={})=>{let{name:i,override:a,aliases:o}=n,s={step:`initialize`,priority:`normal`,middleware:t,...n},c=Tk(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${Ek(i,o)}'`);for(let t of c){let n=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(n===-1)continue;let r=e[n];if(r.step!==s.step||s.priority!==r.priority)throw Error(`"${Ek(r.name,r.aliases)}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by "${Ek(i,o)}" middleware with ${s.priority} priority in ${s.step} step.`);e.splice(n,1)}}for(let e of c)r.add(e)}e.push(s)},addRelativeTo:(e,n)=>{let{name:i,override:a,aliases:o}=n,s={middleware:e,...n},c=Tk(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${Ek(i,o)}'`);for(let e of c){let n=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(n===-1)continue;let r=t[n];if(r.toMiddleware!==s.toMiddleware||r.relation!==s.relation)throw Error(`"${Ek(r.name,r.aliases)}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by "${Ek(i,o)}" middleware ${s.relation} "${s.toMiddleware}" middleware.`);t.splice(n,1)}}for(let e of c)r.add(e)}t.push(s)},clone:()=>s(Dk()),use:e=>{e.applyToStack(u)},remove:e=>typeof e==`string`?a(e):o(e),removeByTag:n=>{let i=!1,a=e=>{let{tags:t,name:a,aliases:o}=e;if(t&&t.includes(n)){let e=Tk(a,o);for(let t of e)r.delete(t);return i=!0,!1}return!0};return e=e.filter(a),t=t.filter(a),i},concat:e=>{let t=s(Dk());return t.use(e),t.identifyOnResolve(n||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:s,identify:()=>l(!0).map(e=>{let t=e.step??e.relation+` `+e.toMiddleware;return Ek(e.name,e.aliases)+` - `+t}),identifyOnResolve(e){return typeof e==`boolean`&&(n=e),n},resolve:(e,t)=>{for(let n of l().map(e=>e.middleware).reverse())e=n(e,t);return n&&console.log(u.identify()),e}};return u},Ok={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},kk={high:3,normal:2,low:1},Ak=class{config;middlewareStack=Dk();initConfig;handlers;constructor(e){this.config=e;let{protocol:t,protocolSettings:n}=e;n&&typeof t==`function`&&(e.protocol=new t(n))}send(e,t,n){let r=typeof t==`function`?void 0:t,i=typeof t==`function`?t:n,a=r===void 0&&this.config.cacheMiddleware===!0,o;if(a){this.handlers||=new WeakMap;let t=this.handlers;t.has(e.constructor)?o=t.get(e.constructor):(o=e.resolveMiddleware(this.middlewareStack,this.config,r),t.set(e.constructor,o))}else delete this.handlers,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(i)o(e).then(e=>i(null,e.output),e=>i(e)).catch(()=>{});else return o(e).then(e=>e.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}},jk=`***SensitiveInformation***`;function Mk(e,t){if(t==null)return t;let n=QD.of(e);if(n.getMergedTraits().sensitive)return jk;if(n.isListSchema()){if(n.getValueSchema().getMergedTraits().sensitive)return jk}else if(n.isMapSchema()){if(n.getKeySchema().getMergedTraits().sensitive||n.getValueSchema().getMergedTraits().sensitive)return jk}else if(n.isStructSchema()&&typeof t==`object`){let e=t,r={};for(let[t,i]of n.structIterator())e[t]!=null&&(r[t]=Mk(i,e[t]));return r}return t}var Nk=class{middlewareStack=Dk();schema;static classBuilder(){return new ode}resolveMiddlewareWithContext(e,t,n,{middlewareFn:r,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,smithyContext:c,additionalContext:l,CommandCtor:u}){for(let i of r.bind(this)(u,e,t,n))this.middlewareStack.use(i);let d=e.concat(this.middlewareStack),{logger:f}=t,p={logger:f,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,[eae]:{commandInstance:this,...c},...l},{requestHandler:m}=t,h=n??{};return c.eventStream&&(h={isEventStream:!0,...h}),d.resolve(e=>m.handle(e.request,h),p)}},ode=class{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName=``;_clientName=``;_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,n={}){return this._smithyContext={service:e,operation:t,...n},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,t;return t=class extends Nk{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,r,i){let a=e._operationSchema,o=a?.[4]??a?.input,s=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,r,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?Mk.bind(null,o):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?Mk.bind(null,s):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}},Pk=class e extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(t){if(!t)return!1;let n=t;return e.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault===`client`||n.$fault===`server`)}static[Symbol.hasInstance](t){if(!t)return!1;let n=t;return this===e?e.isInstance(t):e.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}},Fk=(e,t={})=>(Object.entries(t).filter(([,e])=>e!==void 0).forEach(([t,n])=>{(e[t]==null||e[t]===``)&&(e[t]=n)}),e.message=e.message||e.Message||`UnknownError`,delete e.Message,e),Ik=e=>{switch(e){case`standard`:return{retryMode:`standard`,connectionTimeout:3100};case`in-region`:return{retryMode:`standard`,connectionTimeout:1100};case`cross-region`:return{retryMode:`standard`,connectionTimeout:3100};case`mobile`:return{retryMode:`standard`,connectionTimeout:3e4};default:return{}}},Lk=Object.values(gb),sde=e=>{let t=[];for(let n in gb){let r=gb[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}for(let[n,r]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>n,checksumConstructor:()=>r});return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};let r=n.algorithmId(),i=n.checksumConstructor();Lk.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=i:e.checksumAlgorithms[r]=i,t.push(n)},checksumAlgorithms(){return t}}},cde=e=>{let t={};return e.checksumAlgorithms().forEach(e=>{let n=e.algorithmId();Lk.includes(n)&&(t[n]=e.checksumConstructor())}),t},lde=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),ude=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t},Rk=e=>Object.assign(sde(e),lde(e)),zk=e=>Object.assign(cde(e),ude(e)),Bk=e=>{let t=`#text`;for(let n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]==`object`&&e[n]!==null&&(e[n]=Bk(e[n]));return e},Vk=class{trace(){}debug(){}info(){}warn(){}error(){}},dde=e=>e?.body instanceof ReadableStream;function fde(e,t){if(vb.isInstance(e))for(let n of Object.keys(e.headers)){let r=n.toLowerCase();if(r===`retry-after`){let r=e.headers[n],i=NaN;if(r.endsWith(`GMT`))try{i=(sO(r).getTime()-Date.now())/1e3}catch(e){t?.trace?.(`Failed to parse retry-after header`),t?.trace?.(e)}else r.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?i=Number(r.match(/ GMT, ([\d.]+)$/)?.[1]):r.match(/^((\d+)|(\d+\.\d+))$/)?i=Number(r):Date.parse(r)>=Date.now()&&(i=(Date.parse(r)-Date.now())/1e3);return isNaN(i)?void 0:new Date(Date.now()+i*1e3)}else if(r===`x-amz-retry-after`){let r=e.headers[n],i=Number(r);if(isNaN(i)){t?.trace?.(`Failed to parse x-amz-retry-after=${r}`);return}return new Date(Date.now()+i)}}}var pde=e=>(t,n)=>async r=>{let i=await e.retryStrategy(),a=await e.maxAttempts();if(mde(i)){i=i;let o=await i.acquireInitialRetryToken((n.partition_id??``)+(n.__retryLongPoll?`:longpoll`:``)),s=Error(),c=0,l=0,{request:u}=r,d=_b.isInstance(u);for(d&&(u.headers[Pue]=mO());;)try{d&&(u.headers[Fue]=`attempt=${c+1}; max=${a}`);let{response:e,output:n}=await t(r);return i.recordSuccess(o),n.$metadata.attempts=c+1,n.$metadata.totalRetryDelay=l,{response:e,output:n}}catch(t){let r=hde(t,e.logger);if(s=ade(t),d&&dde(u))throw(n.logger instanceof Vk?console:n.logger)?.warn(`An error was encountered in a non-retryable streaming request.`),s;try{o=await i.refreshRetryTokenForRetry(o,r)}catch(e){throw typeof e.$backoff==`number`&&await Hk(e.$backoff),s.$metadata||={},s.$metadata.attempts=c+1,s.$metadata.totalRetryDelay=l,s}c=o.getRetryCount();let a=o.getRetryDelay();l+=a,await Hk(a)}}else return i=i,i?.mode&&(n.userAgent=[...n.userAgent||[],[`cfg/retry-mode`,i.mode]]),i.retry(t,r)},Hk=e=>new Promise(t=>setTimeout(t,e)),mde=e=>e.acquireInitialRetryToken!==void 0&&e.refreshRetryTokenForRetry!==void 0&&e.recordSuccess!==void 0,hde=(e,t)=>{let n={error:e,errorType:gde(e)},r=fde(e.$response,t);return r&&(n.retryAfterHint=r),n},gde=e=>tk(e)?`THROTTLING`:nk(e)?`TRANSIENT`:jue(e)?`SERVER_ERROR`:`CLIENT_ERROR`,_de={name:`retryMiddleware`,tags:[`RETRY`],step:`finalizeRequest`,priority:`high`,override:!0},Uk=e=>({applyToStack:t=>{t.add(pde(e),_de)}}),Wk=e=>vb.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Gk=e=>new Date(Date.now()+e),vde=(e,t)=>Math.abs(Gk(t).getTime()-e)>=3e5,Kk=(e,t)=>{let n=Date.parse(e);return vde(n,t)?n-Date.now():t},qk=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},Jk=async e=>{let t=qk(`context`,e.context),n=qk(`config`,e.config),r=t.endpointV2?.properties?.authSchemes?.[0];return{config:n,signer:await qk(`signer`,n.signer)(r),signingRegion:e?.signingRegion,signingRegionSet:e?.signingRegionSet,signingName:e?.signingName}},Yk=class{async sign(e,t,n){if(!_b.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let r=await Jk(n),{config:i,signer:a}=r,{signingRegion:o,signingName:s}=r,c=n.context;if(c?.authSchemes?.length??!1){let[e,t]=c.authSchemes;e?.name===`sigv4a`&&t?.name===`sigv4`&&(o=t?.signingRegion??o,s=t?.signingName??s)}return await a.sign(e,{signingDate:Gk(i.systemClockOffset),signingRegion:o,signingService:s})}errorHandler(e){return t=>{let n=t.ServerTime??Wk(t.$response);if(n){let r=qk(`config`,e.config),i=r.systemClockOffset;r.systemClockOffset=Kk(n,r.systemClockOffset),r.systemClockOffset!==i&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let n=Wk(e);if(n){let e=qk(`config`,t.config);e.systemClockOffset=Kk(n,e.systemClockOffset)}}},yde=class extends Yk{async sign(e,t,n){if(!_b.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:r,signer:i,signingRegion:a,signingRegionSet:o,signingName:s}=await Jk(n),c=(await r.sigv4aSigningRegionSet?.()??o??[a]).join(`,`);return await i.sign(e,{signingDate:Gk(r.systemClockOffset),signingRegion:c,signingService:s})}},bde=(e,t,n)=>{let r,i,a,o=!1,s=async()=>{i||=e();try{r=await i,a=!0,o=!1}finally{i=void 0}return r};return t===void 0?async e=>((!a||e?.forceRefresh)&&(r=await s()),r):async e=>((!a||e?.forceRefresh)&&(r=await s()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await s(),r))},xde=e=>(e.sigv4aSigningRegionSet=wD(e.sigv4aSigningRegionSet),e),Xk=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,`credentials`,{set(i){i&&i!==t&&i!==r&&(n=!0),t=i;let a=Cde(e,Sde(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}));if(n&&!a.attributed){let e=typeof t==`object`&&!!t;r=async t=>{let n=await a(t);return e&&(!n.$source||Object.keys(n.$source).length===0)?Sue(n,`CREDENTIALS_CODE`,`e`):n},r.memoized=a.memoized,r.configBound=a.configBound,r.attributed=!0}else r=a},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;let{signingEscapePath:i=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:o}=e,s;return s=e.signer?wD(e.signer):e.regionInfoProvider?()=>wD(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,n])=>{let{signingRegion:r,signingService:a}=t;e.signingRegion=e.signingRegion||r||n,e.signingName=e.signingName||a||e.serviceId;let s={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||ux)(s)}):async t=>{t=Object.assign({},{name:`sigv4`,signingName:e.signingName||e.defaultSigningName,signingRegion:await wD(e.region)(),properties:{}},t);let n=t.signingRegion,r=t.signingName;e.signingRegion=e.signingRegion||n,e.signingName=e.signingName||r||e.serviceId;let a={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||ux)(a)},Object.assign(e,{systemClockOffset:a,signingEscapePath:i,signer:s})};function Sde(e,{credentials:t,credentialDefaultProvider:n}){let r;return r=t?t?.memoized?t:Qle(t,Zle,AO):n?wD(n(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function Cde(e,t){if(t.configBound)return t;let n=async n=>t({...n,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}var wde=async(e,t,n)=>({operation:nx(t).operation,region:await rx(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Tde(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ec2`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Ede=e=>{let t=[];switch(e.operation){default:t.push(Tde(e))}return t},Dde=e=>{let t=Xk(e);return Object.assign(t,{authSchemePreference:rx(e.authSchemePreference??[])})},Ode=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ec2`}),Zk={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},kde={name:`@aws-sdk/client-ec2`,description:`AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native`,version:`3.1045.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-ec2`,"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: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.8`,"@aws-sdk/credential-provider-node":`^3.972.39`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-sdk-ec2":`^3.972.22`,"@aws-sdk/middleware-user-agent":`^3.972.38`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.24`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.7`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.6`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.3.0`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.0.8`,"@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/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`}},Qk=({serviceId:e,clientVersion:t})=>async n=>{let r=typeof window<`u`?window.navigator:void 0,i=r?.userAgent??``,a=r?.userAgentData?.platform??$k.os(i)??`other`,o=r?.userAgentData?.brands??[],s=o[o.length-1],c=s?.brand??$k.browser(i)??`unknown`,l=s?.version??`unknown`,u=[[`aws-sdk-js`,t],[`ua`,`2.1`],[`os/${a}`,void 0],[`lang/js`],[`md/browser`,`${c}_${l}`]];e&&u.push([`api/${e}`,t]);let d=await n?.userAgentAppId?.();return d&&u.push([`app/${d}`]),u},$k={os(e){if(/iPhone|iPad|iPod/.test(e))return`iOS`;if(/Macintosh|Mac OS X/.test(e))return`macOS`;if(/Windows NT/.test(e))return`Windows`;if(/Android/.test(e))return`Android`;if(/Linux/.test(e))return`Linux`},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return`Microsoft Edge`;if(/Firefox\//.test(e))return`Firefox`;if(/Chrome\//.test(e))return`Chrome`;if(/Safari\//.test(e))return`Safari`}},eA=e=>()=>Promise.reject(e),tA=typeof TextEncoder==`function`?new TextEncoder:null,nA=e=>{if(typeof e==`string`){if(tA)return tA.encode(e).byteLength;let t=e.length;for(let n=t-1;n>=0;n--){let r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}else if(typeof e.byteLength==`number`)return e.byteLength;else if(typeof e.size==`number`)return e.size;throw Error(`Body Length computation failed for ${e}`)},Ade=[`in-region`,`cross-region`,`mobile`,`standard`,`legacy`],rA=({defaultsMode:e}={})=>bde(async()=>{let t=typeof e==`function`?await e():e;switch(t?.toLowerCase()){case`auto`:return Promise.resolve(jde()?`mobile`:`standard`);case`mobile`:case`in-region`:case`cross-region`:case`standard`:case`legacy`:return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve(`legacy`);default:throw Error(`Invalid parameter for "defaultsMode", expect ${Ade.join(`, `)}, got ${t}`)}}),jde=()=>{let e=window?.navigator;if(e?.connection){let{effectiveType:t,rtt:n,downlink:r}=e?.connection;if(typeof t==`string`&&t!==`4g`||Number(n)>100||Number(r)<10)return!0}return e?.userAgentData?.mobile||typeof e?.maxTouchPoints==`number`&&e?.maxTouchPoints>1},iA=class{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){let n=t.getMemberSchemas(),r=Object.values(n).find(e=>!!e.getMergedTraits().httpPayload);if(r)return r.getMergedTraits().mediaType||(r.isStringSchema()?`text/plain`:r.isBlobSchema()?`application/octet-stream`:e);if(!t.isUnitSchema()&&Object.values(n).find(e=>{let{httpQuery:t,httpQueryParams:n,httpHeader:r,httpLabel:i,httpPrefixHeaders:a}=e.getMergedTraits();return!t&&!n&&!r&&!i&&a===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,t,n,r,i,a){let o=e;e.includes(`#`)&&([,o]=e.split(`#`));let s={$metadata:i,$fault:n.statusCode<500?`client`:`server`};if(!this.errorRegistry)throw Error(`@aws-sdk/core/protocols - error handler not initialized.`);try{return{errorSchema:a?.(this.errorRegistry,o)??this.errorRegistry.getSchema(e),errorMetadata:s}}catch{r.message=r.message??r.Message??`UnknownError`;let e=this.errorRegistry,t=e.getBaseException();if(t){let n=e.getErrorCtor(t)??Error;throw this.decorateServiceException(Object.assign(new n({name:o}),s),r)}let n=r,i=n?.message??n?.Message??n?.Error?.Message??n?.Error?.message;throw this.decorateServiceException(Object.assign(Error(i),{name:o},s),r)}}compose(e,t,n){let r=n;t.includes(`#`)&&([r]=t.split(`#`));let i=tO.for(r),a=tO.for(`smithy.ts.sdk.synthetic.`+n);e.copyFrom(i),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){let n=e.Message??t.Message,r=Fk(e,t);n&&(r.message=n);let i=r.Error??{};i.Type=r.Error?.Type,i.Code=r.Error?.Code,i.Message=r.Error?.message??r.Error?.Message??n,r.Error=i;let a=r.$metadata.requestId;return a&&(r.RequestId=a),r}return Fk(e,t)}setQueryCompatError(e,t){let n=t.headers?.[`x-amzn-query-error`];if(e!==void 0&&n!=null){let[t,r]=n.split(`;`),i=Object.keys(e),a={Code:t,Type:r};e.Code=t,e.Type=r;for(let t=0;tQD.of(e).getMergedTraits().awsQueryError?.[0]===t)}}},aA=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},Mde=class{from;to;keys;constructor(e,t){this.from=e,this.to=t;let n=Object.keys(this.from),r=new Set(n);r.delete(`__type`),this.keys=r}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}},Nde=/[&<>"]/g,Pde={"&":`&`,"<":`<`,">":`>`,'"':`"`};function Fde(e){return e.replace(Nde,e=>Pde[e])}var Ide=/[&"'<>\r\n\u0085\u2028]/g,Lde={"&":`&`,'"':`"`,"'":`'`,"<":`<`,">":`>`,"\r":` `,"\n":` `,"…":`…`,"\u2028":`
`};function Rde(e){return e.replace(Ide,e=>Lde[e])}var oA=class{value;constructor(e){this.value=e}toString(){return Rde(``+this.value)}},sA=class e{name;children;attributes={};static of(t,n,r){let i=new e(t);return n!==void 0&&i.addChildNode(new oA(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}="${Fde(``+r)}"`)}return t+=e?`>${this.children.map(e=>e.toString()).join(``)}`:`/>`}},cA;function zde(e){cA||=new DOMParser;let t=cA.parseFromString(e,`application/xml`);if(t.getElementsByTagName(`parsererror`).length>0)throw Error(`DOMParser XML parsing error.`);let n=e=>{if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim())return e.textContent;if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.attributes.length===0&&t.childNodes.length===0)return``;let r={},i=Array.from(t.attributes);for(let e of i)r[`${e.name}`]=e.value;let a=Array.from(t.childNodes);for(let e of a){let o=n(e);if(o!=null){let t=e.nodeName;if(a.length===1&&i.length===0&&t===`#text`)return o;r[t]?Array.isArray(r[t])?r[t].push(o):r[t]=[r[t],o]:r[t]=o}else if(a.length===1&&i.length===0)return t.textContent}return r}return null};return{[t.documentElement.nodeName]:n(t.documentElement)}}var lA=class extends aA{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new OO(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,n){let r=QD.of(e),i=r.getMemberSchemas();if(r.isStructSchema()&&r.isMemberSchema()&&Object.values(i).find(e=>!!e.getMemberTraits().eventPayload)){let e={},n=Object.keys(i)[0];return i[n].isBlobSchema()?e[n]=t:e[n]=this.read(i[n],t),e}let a=(this.serdeContext?.utf8Encoder??Tb)(t),o=this.parseXml(a);return this.readSchema(e,n?o[n]:o)}readSchema(e,t){let n=QD.of(e);if(n.isUnitSchema())return;let r=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t))return this.readSchema(n,[t]);if(t==null)return t;if(typeof t==`object`){let e=!!r.xmlFlattened;if(n.isListSchema()){let r=n.getValueSchema(),i=[],a=r.getMergedTraits().xmlName??`member`,o=e?t:(t[0]??t)[a];if(o==null)return i;let s=Array.isArray(o)?o:[o];for(let e of s)i.push(this.readSchema(r,e));return i}let i={};if(n.isMapSchema()){let r=n.getKeySchema(),a=n.getValueSchema(),o;o=e?Array.isArray(t)?t:[t]:Array.isArray(t.entry)?t.entry:[t.entry];let s=r.getMergedTraits().xmlName??`key`,c=a.getMergedTraits().xmlName??`value`;for(let e of o){let t=e[s],n=e[c];i[t]=this.readSchema(a,n)}return i}if(n.isStructSchema()){let e=n.isUnionSchema(),r;e&&(r=new Mde(t,i));for(let[a,o]of n.structIterator()){let n=o.getMergedTraits(),s=n.httpPayload?n.xmlName??o.getName():o.getMemberTraits().xmlName??a;e&&r.mark(s),t[s]!=null&&(i[a]=this.readSchema(o,t[s]))}return e&&r.writeUnknown(),i}if(n.isDocumentSchema())return t;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=zde(e)}catch(t){throw t&&typeof t==`object`&&Object.defineProperty(t,`$responseBodyText`,{value:e}),t}let n=`#text`,r=Object.keys(t)[0],i=t[r];return i[n]&&(i[r]=i[n],delete i[n]),Bk(i)}return{}}},Bde=class extends aA{settings;buffer;constructor(e){super(),this.settings=e}write(e,t,n=``){this.buffer===void 0&&(this.buffer=``);let r=QD.of(e);if(n&&!n.endsWith(`.`)&&(n+=`.`),r.isBlobSchema())(typeof t==`string`||t instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??OD)(t)));else if(r.isBooleanSchema()||r.isNumericSchema()||r.isStringSchema())t==null?r.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(mO())):(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigIntegerSchema())t!=null&&(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigDecimalSchema())t!=null&&(this.writeKey(n),this.writeValue(t instanceof wO?t.string:String(t)));else if(r.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(n),DO(r,this.settings)){case 5:this.writeValue(t.toISOString().replace(`.000Z`,`Z`));break;case 6:this.writeValue(oO(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}else if(r.isDocumentSchema())Array.isArray(t)?this.write(79,t,n):t instanceof Date?this.write(4,t,n):t instanceof Uint8Array?this.write(21,t,n):t&&typeof t==`object`?this.write(143,t,n):(this.writeKey(n),this.writeValue(String(t)));else if(r.isListSchema()){if(Array.isArray(t))if(t.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(``));else{let e=r.getValueSchema(),i=this.settings.flattenLists||r.getMergedTraits().xmlFlattened,a=1;for(let r of t){if(r==null)continue;let t=e.getMergedTraits(),o=this.getKey(`member`,t.xmlName,t.ec2QueryName),s=i?`${n}${a}`:`${n}${o}.${a}`;this.write(e,r,s),++a}}}else if(r.isMapSchema()){if(t&&typeof t==`object`){let e=r.getKeySchema(),i=r.getValueSchema(),a=r.getMergedTraits().xmlFlattened,o=1;for(let r in t){let s=t[r];if(s==null)continue;let c=e.getMergedTraits(),l=this.getKey(`key`,c.xmlName,c.ec2QueryName),u=a?`${n}${o}.${l}`:`${n}entry.${o}.${l}`,d=i.getMergedTraits(),f=this.getKey(`value`,d.xmlName,d.ec2QueryName),p=a?`${n}${o}.${f}`:`${n}entry.${o}.${f}`;this.write(e,r,u),this.write(i,s,p),++o}}}else if(r.isStructSchema()){if(t&&typeof t==`object`){let e=!1;for(let[i,a]of r.structIterator()){if(t[i]==null&&!a.isIdempotencyToken())continue;let r=a.getMergedTraits(),o=this.getKey(i,r.xmlName,r.ec2QueryName,`struct`),s=`${n}${o}`;this.write(a,t[i],s),e=!0}if(!e&&r.isUnionSchema()){let{$unknown:e}=t;if(Array.isArray(e)){let[t,r]=e,i=`${n}${t}`;this.write(15,r,i)}}}}else if(!r.isUnitSchema())throw Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${r.getName(!0)}`)}flush(){if(this.buffer===void 0)throw Error(`@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.`);let e=this.buffer;return delete this.buffer,e}getKey(e,t,n,r){let{ec2:i,capitalizeKeys:a}=this.settings;if(i&&n)return n;let o=t??e;return a&&r===`struct`?o[0].toUpperCase()+o.slice(1):o}writeKey(e){e.endsWith(`.`)&&(e=e.slice(0,e.length-1)),this.buffer+=`&${VD(e)}=`}writeValue(e){this.buffer+=VD(e)}},uA=class extends Kle{options;serializer;deserializer;mixin=new iA;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new Bde(t),this.deserializer=new lA(t)}getShapeId(){return`aws.protocols#awsQuery`}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw Error(`AWSQuery protocol has no payload codec.`)}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-www-form-urlencoded`,(HD(e.input)===`unit`||!r.body)&&(r.body=``),r.body=`Action=${e.name.split(`#`)[1]??e.name}&Version=${this.options.version}`+r.body,r.body.endsWith(`&`)&&(r.body=r.body.slice(-1)),r}async deserializeResponse(e,t,n){let r=this.deserializer,i=QD.of(e.output),a={};if(n.statusCode>=300){let i=await BD(n.body,t);i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n))}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=e.name.split(`#`)[1]??e.name,s=i.isStructSchema()&&this.useNestedResult()?o+`Result`:void 0,c=await BD(n.body,t);return c.byteLength>0&&Object.assign(a,await r.read(i,c,s)),a.$metadata=this.deserializeMetadata(n),a}useNestedResult(){return!0}async handleError(e,t,n,r,i){let a=this.loadQueryErrorCode(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let o=this.loadQueryError(r)??{},s=this.loadQueryErrorMessage(r);o.message=s,o.Error={Type:o.Type,Code:o.Code,Message:s};let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,i,this.mixin.findQueryCompatibleError),u=QD.of(c),d=new((this.compositeErrorRegistry.getErrorCtor(c))??Error)(s),f={Type:o.Error.Type,Code:o.Error.Code,Error:o.Error};for(let[e,t]of u.structIterator()){let n=t.getMergedTraits().xmlName??e,i=o[n]??r[n];f[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(d,l,{$fault:u.getMergedTraits().error,message:s},f),r)}loadQueryErrorCode(e,t){let n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return`NotFound`}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??`Unknown`}getDefaultContentType(){return`application/x-www-form-urlencoded`}},Vde=class extends uA{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}},Hde=(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`},Ude=class extends aA{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,t){let n=QD.of(e);if(n.isStringSchema()&&typeof t==`string`)this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer=`byteLength`in t?t:(this.serdeContext?.base64Decoder??DD)(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=sA.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=sA.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=sA.of(e);if(typeof n!=`string`)if(t instanceof sA||t instanceof oA)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,u]=this.getXmlnsAttribute(e,r),d=(t,n)=>{if(a.isListSchema())this.writeList(a,Array.isArray(n)?n:[n],t,u);else if(a.isMapSchema())this.writeMap(a,n,t,u);else if(a.isStructSchema()){let r=this.writeStruct(a,n,u);t.addChildNode(r.withName(c?i.xmlName??e.getMemberName():o.xmlName??`member`))}else{let r=sA.of(c?i.xmlName??e.getMemberName():o.xmlName??`member`);this.writeSimpleInto(a,n,r,u),t.addChildNode(r)}};if(c)for(let e of t)(s||e!=null)&&d(n,e);else{let r=sA.of(i.xmlName??e.getMemberName());u&&r.addAttribute(l,u);for(let e of t)(s||e!=null)&&d(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(),u=l.xmlName??`value`,d=!!l.sparse,f=!!a.xmlFlattened,[p,m]=this.getXmlnsAttribute(e,r),h=(e,t,n)=>{let r=sA.of(s,t),[i,a]=this.getXmlnsAttribute(o,m);a&&r.addAttribute(i,a),e.addChildNode(r);let l=sA.of(u);c.isListSchema()?this.writeList(c,n,l,m):c.isMapSchema()?this.writeMap(c,n,l,m,!0):c.isStructSchema()?l=this.writeStruct(c,n,m):this.writeSimpleInto(c,n,l,m),e.addChildNode(l)};if(f)for(let r in t){let i=t[r];if(d||i!=null){let t=sA.of(a.xmlName??e.getMemberName());h(t,r,i),n.addChildNode(t)}}else{let r;i||(r=sA.of(a.xmlName??e.getMemberName()),m&&r.addAttribute(p,m),n.addChildNode(r));for(let e in t){let a=t[e];if(d||a!=null){let t=sA.of(`entry`);h(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=QD.of(e),r=null;if(t&&typeof t==`object`)if(n.isBlobSchema())r=(this.serdeContext?.base64Encoder??OD)(t);else if(n.isTimestampSchema()&&t instanceof Date)switch(DO(n,this.settings)){case 5:r=t.toISOString().replace(`.000Z`,`Z`);break;case 6:r=oO(t);break;case 7:r=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using http date`,t),r=oO(t);break}else if(n.isBigDecimalSchema()&&t)return t instanceof wO?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()?mO():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=QD.of(e),o=new oA(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]}},Wde=class extends aA{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Ude(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new lA(this.settings);return e.setSerdeContext(this.serdeContext),e}},Gde=class extends Gle{codec;serializer;deserializer;mixin=new iA;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Wde(t),this.serializer=new Yle(this.codec.createSerializer(),t),this.deserializer=new qle(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=QD.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=Hde(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=QD.of(o),l=r.Error?.message??r.Error?.Message??r.message??r.Message??`UnknownError`,u=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)(l);await this.deserializeHttpMessage(o,t,n,r);let d={},f=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().xmlName??e,i=r.Error?.[n]??r[n];d[e]=f.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(u,s,{$fault:c.getMergedTraits().error,message:l},d),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}},dA=`ref`,fA=-1,pA=!0,mA=`isSet`,hA=`PartitionResult`,gA=`booleanEquals`,_A=`getAttr`,vA={[dA]:`Endpoint`},yA={[dA]:hA},bA={},xA=[{[dA]:`Region`}],SA={conditions:[[mA,[vA]],[mA,xA],[`aws.partition`,xA,hA],[gA,[{[dA]:`UseFIPS`},pA]],[gA,[{[dA]:`UseDualStack`},pA]],[gA,[{fn:_A,argv:[yA,`supportsDualStack`]},pA]],[gA,[{fn:_A,argv:[yA,`supportsFIPS`]},pA]],[`stringEquals`,[{fn:_A,argv:[yA,`name`]},`aws-us-gov`]]],results:[[fA],[fA,`Invalid Configuration: FIPS and custom endpoint are not supported`],[fA,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[vA,bA],[`https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,bA],[fA,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://ec2.{Region}.amazonaws.com`,bA],[`https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}`,bA],[fA,`FIPS is enabled but this partition does not support FIPS`],[`https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}`,bA],[fA,`DualStack is enabled but this partition does not support DualStack`],[`https://ec2.{Region}.{PartitionResult#dnsSuffix}`,bA],[fA,`Invalid Configuration: Missing Region`]]},Kde=2,CA=1e8,qde=new Int32Array([-1,1,-1,0,13,3,1,4,CA+12,2,5,CA+12,3,8,6,4,7,CA+11,5,CA+9,CA+10,4,11,9,6,10,CA+8,7,CA+6,CA+7,5,12,CA+5,6,CA+4,CA+5,3,CA+1,14,4,CA+2,CA+3]),Jde=MO.from(qde,Kde,SA.conditions,SA.results),Yde=new NO({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Xde=(e,t={})=>Yde.get(e,()=>YO(Jde,{endpointParams:e,logger:t.logger}));IO.aws=QO;var Zde=class e extends Pk{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},wA=`Address`,Qde=`AllocateAddressRequest`,$de=`AllocateAddressResult`,efe=`AssociateAddressRequest`,tfe=`AssociateAddressResult`,nfe=`AllAvailabilityZones`,rfe=`AllocateAddress`,ife=`ApplianceArn`,afe=`AssociateAddress`,ofe=`AttachedAppliances`,sfe=`AttributeBooleanValue`,cfe=`AssociateCarrierIpAddress`,lfe=`AdditionalFlexibleNetworkInterfaces`,ufe=`AvailableIpAddressCount`,TA=`AssignIpv6AddressOnCreation`,dfe=`AttachInternetGateway`,ffe=`AttachInternetGatewayRequest`,pfe=`AssociateIamInstanceProfile`,mfe=`AssociateIamInstanceProfileRequest`,hfe=`AssociateIamInstanceProfileResult`,gfe=`AllocationIdList`,_fe=`AssociationIdList`,EA=`AdditionalInfo`,DA=`AllocationId`,OA=`AllocationIds`,kA=`AssociationId`,vfe=`AssociationIds`,AA=`AttachmentId`,yfe=`AmiLaunchIndex`,bfe=`AttachmentLimitType`,xfe=`AddressList`,jA=`AvailabilityMode`,Sfe=`AssociatePublicIpAddress`,Cfe=`AmazonProvidedIpv6CidrBlock`,wfe=`AutoProvisionZones`,Tfe=`AutoRecoverySupported`,Efe=`AssociateRouteTableRequest`,Dfe=`AssociateRouteTableResult`,Ofe=`AssociateRouteTable`,kfe=`AllowReassociation`,Afe=`AllRegions`,MA=`AssociatedResource`,NA=`AutoRecovery`,PA=`AssociationState`,jfe=`AuthorizeSecurityGroupEgress`,Mfe=`AuthorizeSecurityGroupEgressRequest`,Nfe=`AuthorizeSecurityGroupEgressResult`,Pfe=`AuthorizeSecurityGroupIngressRequest`,Ffe=`AuthorizeSecurityGroupIngressResult`,Ife=`AuthorizeSecurityGroupIngress`,Lfe=`AutoScalingIps`,FA=`AmdSevSnp`,Rfe=`AttachmentState`,zfe=`ArchitectureTypeList`,IA=`AttachTime`,Bfe=`AttachVolumeRequest`,Vfe=`AttributeValue`,Hfe=`AttachVolume`,LA=`AvailabilityZone`,RA=`AvailabilityZoneAddress`,zA=`AvailabilityZoneAddresses`,Ufe=`AvailabilityZoneGeography`,Wfe=`AvailabilityZoneGeographyList`,BA=`AvailabilityZoneId`,Gfe=`AvailabilityZoneList`,Kfe=`AvailabilityZoneMessage`,qfe=`AvailabilityZoneMessageList`,Jfe=`AvailabilityZoneSubGeography`,Yfe=`AvailabilityZoneSubGeographyList`,Xfe=`AvailabilityZones`,VA=`Accelerators`,Zfe=`Addresses`,Qfe=`Affinity`,HA=`Arn`,UA=`Architecture`,$fe=`Associations`,WA=`Association`,epe=`Attribute`,GA=`Attachment`,KA=`Attachments`,tpe=`BlobAttributeValue`,npe=`BaselineBandwidthInGbps`,qA=`BaselineBandwidthInMbps`,JA=`BlockDeviceMapping`,rpe=`BlockDeviceMappingList`,ipe=`BlockDeviceMappingRequestList`,YA=`BlockDeviceMappings`,ape=`BlockDurationMinutes`,XA=`BaselineIops`,ZA=`BootMode`,ope=`BootModeTypeList`,spe=`BareMetal`,QA=`BlockPublicAccessStates`,cpe=`BurstablePerformanceSupported`,$A=`BaselineThroughputInMBps`,ej=`BandwidthWeighting`,lpe=`BandwidthWeightingTypeList`,upe=`BandwidthWeightings`,tj=`CidrBlock`,dpe=`CidrBlockAssociationSet`,fpe=`CapacityBlockId`,ppe=`CidrBlockState`,mpe=`CoreCountList`,nj=`CoreCount`,hpe=`CpuCredits`,rj=`CompletionDurationMinutes`,gpe=`CreationDate`,ij=`CarrierGatewayId`,_pe=`CurrentGeneration`,aj=`CarrierIp`,vpe=`CurrentInstanceBootMode`,ype=`CreateInternetGateway`,bpe=`CreateInternetGatewayRequest`,xpe=`CreateInternetGatewayResult`,Spe=`CreateImageRequest`,Cpe=`CreateImageResult`,oj=`CidrIp`,sj=`CidrIpv6`,cj=`CidrIpv4`,wpe=`CoreInfo`,Tpe=`CreateImage`,Epe=`CreateKeyPair`,Dpe=`CreateKeyPairRequest`,lj=`CoreNetworkArn`,Ope=`CreateNatGateway`,kpe=`CreateNatGatewayRequest`,Ape=`CreateNatGatewayResult`,uj=`CpuOptions`,dj=`CustomerOwnedIp`,fj=`CustomerOwnedIpv4Pool`,jpe=`CpuOptionsRequest`,Mpe=`CreatePlacementGroup`,Npe=`CreatePlacementGroupRequest`,Ppe=`CreatePlacementGroupResult`,pj=`CapacityReservationId`,mj=`CapacityReservationPreference`,Fpe=`CreateRouteRequest`,hj=`CapacityReservationResourceGroupArn`,Ipe=`CreateRouteResult`,Lpe=`CapacityReservationSpecificationResponse`,gj=`CapacityReservationSpecification`,_j=`CapacityReservationTarget`,Rpe=`CapacityReservationTargetResponse`,zpe=`CreateRouteTableRequest`,Bpe=`CreateRouteTableResult`,Vpe=`CreateRouteTable`,Hpe=`CreateRoute`,Upe=`CreateSecurityGroup`,Wpe=`CreateSecurityGroupRequest`,Gpe=`CreateSecurityGroupResult`,Kpe=`CopySnapshotRequest`,qpe=`CopySnapshotRequestPSU`,Jpe=`CopySnapshotResult`,Ype=`CreateSnapshotRequest`,Xpe=`CreateSubnetRequest`,Zpe=`CreateSubnetResult`,Qpe=`CreditSpecificationRequest`,vj=`CopySnapshot`,yj=`CreditSpecification`,bj=`CreateSnapshot`,xj=`CreateSubnet`,Sj=`CurrentState`,Cj=`ClientToken`,wj=`ConnectionTrackingConfiguration`,Tj=`ConnectionTrackingSpecification`,Ej=`ConnectionTrackingSpecificationRequest`,Dj=`ConnectionTrackingSpecificationResponse`,Oj=`CompletionTime`,kj=`ConnectivityType`,Aj=`CreateTime`,jj=`CreateVolumeRequest`,Mj=`CreateVpcRequest`,Nj=`CreateVpcResult`,Pj=`CreateVolume`,Fj=`CreateVpc`,Ij=`Code`,Lj=`Configured`,Rj=`Count`,zj=`DescribeAddressesRequest`,Bj=`DescribeAddressesResult`,Vj=`DisassociateAddressRequest`,Hj=`DisableApiStop`,Uj=`DisableApiTermination`,Wj=`DestinationAvailabilityZone`,Gj=`DescribeAvailabilityZonesRequest`,Kj=`DescribeAvailabilityZonesResult`,qj=`DescribeAvailabilityZones`,Jj=`DescribeAddresses`,Yj=`DisassociateAddress`,Xj=`DestinationCidrBlock`,Zj=`DefaultConnectionTrackingConfiguration`,Qj=`DefaultCores`,$j=`DataEncryptionKeyId`,eM=`DefaultEnaQueueCountPerInterface`,tM=`DefaultForAz`,nM=`DedicatedHostsSupported`,rM=`DeviceIndex`,iM=`DestinationIpv6CidrBlock`,aM=`DeleteInternetGateway`,oM=`DeleteInternetGatewayRequest`,sM=`DescribeInternetGatewaysRequest`,cM=`DescribeInternetGatewaysResult`,lM=`DetachInternetGatewayRequest`,uM=`DescribeInternetGateways`,dM=`DetachInternetGateway`,fM=`DisassociateIamInstanceProfile`,pM=`DescribeIamInstanceProfileAssociations`,mM=`DescribeIamInstanceProfileAssociationsRequest`,hM=`DescribeIamInstanceProfileAssociationsResult`,gM=`DisassociateIamInstanceProfileRequest`,_M=`DisassociateIamInstanceProfileResult`,vM=`DiskInfoList`,yM=`DescribeImagesRequest`,bM=`DescribeImagesResult`,xM=`DescribeInstancesRequest`,SM=`DescribeInstancesResult`,CM=`DescribeInstanceTypesRequest`,wM=`DescribeInstanceTypesResult`,TM=`DescribeInstanceTypes`,EM=`DescribeImages`,DM=`DescribeInstances`,OM=`DiskInfo`,kM=`DeleteKeyPair`,AM=`DeleteKeyPairRequest`,jM=`DeleteKeyPairResult`,MM=`DescribeKeyPairsRequest`,NM=`DescribeKeyPairsResult`,PM=`DescribeKeyPairs`,FM=`DisableLniAtDeviceIndex`,IM=`DeviceName`,LM=`DefaultNetworkCardIndex`,RM=`DeleteNatGateway`,zM=`DeleteNatGatewayRequest`,BM=`DeleteNatGatewayResult`,VM=`DescribeNatGatewaysRequest`,HM=`DescribeNatGatewaysResult`,UM=`DescribeNatGateways`,WM=`DestinationOutpostArn`,GM=`DhcpOptionsId`,KM=`DeleteOnTermination`,qM=`DeletePlacementGroup`,JM=`DeletePlacementGroupRequest`,YM=`DescribePlacementGroupsRequest`,XM=`DescribePlacementGroupsResult`,ZM=`DescribePlacementGroups`,QM=`DestinationPrefixListId`,$M=`DeregistrationProtection`,U=`DryRun`,eN=`DeleteRouteRequest`,tN=`DescribeRegionsRequest`,nN=`DescribeRegionsResult`,rN=`DeleteRouteTable`,iN=`DeleteRouteTableRequest`,aN=`DescribeRouteTablesRequest`,oN=`DescribeRouteTablesResult`,sN=`DisassociateRouteTableRequest`,cN=`DescribeRouteTables`,lN=`DisassociateRouteTable`,uN=`DestinationRegion`,dN=`DeleteRoute`,fN=`DescribeRegions`,pN=`DeleteSecurityGroup`,mN=`DeleteSecurityGroupRequest`,hN=`DeleteSecurityGroupResult`,gN=`DescribeSecurityGroupsRequest`,_N=`DescribeSecurityGroupsResult`,vN=`DescribeSecurityGroups`,yN=`DeleteSnapshotRequest`,bN=`DeleteSubnetRequest`,xN=`DescribeSnapshotsRequest`,SN=`DescribeSnapshotsResult`,CN=`DescribeSubnetsRequest`,wN=`DescribeSubnetsResult`,TN=`DeleteSnapshot`,EN=`DeleteSubnet`,DN=`DescribeSnapshots`,ON=`DescribeSubnets`,kN=`DefaultTcpEstablishedTimeout`,AN=`DefaultThreadsPerCore`,jN=`DeprecationTime`,MN=`DeleteTime`,NN=`DefaultUdpStreamTimeout`,PN=`DefaultUdpTimeout`,FN=`DefaultVCpus`,IN=`DeleteVolumeRequest`,LN=`DeleteVpcRequest`,RN=`DescribeVolumesRequest`,zN=`DescribeVolumesResult`,BN=`DescribeVpcsRequest`,VN=`DescribeVpcsResult`,HN=`DetachVolumeRequest`,UN=`DeleteVolume`,WN=`DeleteVpc`,GN=`DescribeVolumes`,KN=`DescribeVpcs`,qN=`DetachVolume`,JN=`Description`,YN=`Device`,XN=`Disks`,ZN=`Domain`,QN=`EbsBlockDevice`,$N=`ExecutableByStringList`,eP=`ExecutableBy`,tP=`EbsCardIndex`,nP=`EbsCardInfoList`,rP=`EbsCardInfo`,iP=`EbsCards`,aP=`EncryptionControl`,oP=`EnableDns64`,sP=`ElasticFileSystem`,cP=`ElasticFileSystemExclusion`,lP=`ElasticGpuAssociation`,uP=`ElasticGpuAssociationId`,dP=`ElasticGpuAssociationList`,fP=`ElasticGpuAssociationState`,pP=`ElasticGpuAssociationTime`,mP=`ElasticGpuAssociations`,hP=`ElasticGpuId`,gP=`ElasticGpuSpecification`,_P=`ElasticGpuSpecifications`,vP=`ElasticInferenceAccelerator`,yP=`ElasticInferenceAcceleratorAssociation`,bP=`ElasticInferenceAcceleratorAssociationId`,xP=`ElasticInferenceAcceleratorAssociationList`,SP=`ElasticInferenceAcceleratorAssociationState`,CP=`ElasticInferenceAcceleratorAssociationTime`,wP=`ElasticInferenceAcceleratorArn`,TP=`ElasticInferenceAcceleratorAssociations`,EP=`ElasticInferenceAccelerators`,DP=`EbsInstanceBlockDevice`,OP=`EbsInstanceBlockDeviceSpecification`,kP=`EncryptionInTransitSupported`,AP=`EbsInfo`,jP=`EfaInfo`,MP=`EnableLniAtDeviceIndex`,NP=`EbsOptimized`,PP=`EbsOptimizedInfo`,FP=`EgressOnlyInternetGateway`,IP=`EgressOnlyInternetGatewayExclusion`,LP=`EgressOnlyInternetGatewayId`,RP=`EnclaveOptionsRequest`,zP=`EbsOptimizedSupport`,BP=`EnclaveOptions`,VP=`EnablePrimaryIpv6`,HP=`EnaQueueCount`,UP=`EnableResourceNameDnsAAAARecord`,WP=`EnableResourceNameDnsAAAARecordOnLaunch`,GP=`EnableResourceNameDnsARecord`,KP=`EnableResourceNameDnsARecordOnLaunch`,qP=`EnaSrdEnabled`,JP=`EnaSrdSpecification`,YP=`EnaSrdSpecificationRequest`,XP=`EnaSrdSupported`,ZP=`EnaSrdUdpEnabled`,QP=`EnaSrdUdpSpecification`,$P=`EnaSrdUdpSpecificationRequest`,eF=`EfaSupported`,tF=`EncryptionSupport`,nF=`EnaSupport`,rF=`EndTime`,iF=`ExecutableUsers`,aF=`Ebs`,oF=`Enabled`,sF=`Encrypted`,cF=`Endpoint`,lF=`Force`,uF=`FailureCode`,dF=`FpgaDeviceInfo`,fF=`FpgaDeviceInfoList`,pF=`FpgaDeviceMemoryInfo`,mF=`FlexibleEnaQueuesSupport`,hF=`FpgaInfo`,gF=`FilterList`,_F=`FailureMessage`,vF=`FromPort`,yF=`FastRestored`,bF=`FullSnapshotSizeInBytes`,xF=`FreeTierEligible`,SF=`Filters`,CF=`Filter`,wF=`Fpgas`,TF=`Groups`,EF=`GroupArn`,DF=`GetConsoleOutput`,OF=`GetConsoleOutputRequest`,kF=`GetConsoleOutputResult`,AF=`GroupDescription`,jF=`GpuDeviceInfo`,MF=`GpuDeviceInfoList`,NF=`GpuDeviceMemoryInfo`,PF=`GatewayId`,FF=`GroupIdentifierList`,IF=`GroupIdStringList`,LF=`GpuInfo`,RF=`GroupId`,zF=`GroupIds`,BF=`GroupIdentifier`,VF=`GroupLongName`,HF=`GroupName`,UF=`GroupNameStringList`,WF=`GroupNames`,GF=`GroupOwnerId`,KF=`GpuPartitionSize`,qF=`Geography`,JF=`Gpus`,YF=`HiddenByDefault`,XF=`HttpEndpoint`,ZF=`HostId`,QF=`HibernationOptions`,$F=`HibernationOptionsRequest`,eI=`HttpProtocolIpv6`,tI=`HttpPutResponseHopLimit`,nI=`HostResourceGroupArn`,rI=`HibernationSupported`,iI=`HttpTokens`,aI=`HostnameType`,oI=`Hibernate`,sI=`Hypervisor`,cI=`Id`,lI=`Ipv6Addresses`,uI=`Ipv6AddressAttribute`,dI=`Ipv6AddressCount`,fI=`InstanceAttachmentEnaSrdSpecification`,pI=`InstanceAttachmentEnaSrdUdpSpecification`,mI=`InferenceAcceleratorInfo`,hI=`Ipv4AddressesPerInterface`,gI=`Ipv6AddressesPerInterface`,_I=`Ipv4AddressesPerSecondaryInterface`,vI=`ImageAllowed`,yI=`IpAddress`,bI=`Ipv6Address`,xI=`InstanceBlockDeviceMapping`,SI=`InstanceBlockDeviceMappingList`,CI=`InstanceBlockDeviceMappingSpecification`,wI=`InstanceBlockDeviceMappingSpecificationList`,TI=`Ipv6CidrBlock`,EI=`Ipv6CidrBlockAssociationSet`,DI=`Ipv6CidrBlockNetworkBorderGroup`,OI=`Ipv6CidrBlockState`,kI=`IncludeDeprecated`,AI=`InferenceDeviceInfo`,jI=`InferenceDeviceInfoList`,MI=`InferenceDeviceMemoryInfo`,NI=`IncludeDisabled`,PI=`IsDefault`,FI=`IsEgress`,II=`InternetGateway`,LI=`InternetGatewayAttachment`,RI=`InternetGatewayAttachmentList`,zI=`InternetGatewayBlockMode`,BI=`InternetGatewayExclusion`,VI=`InternetGatewayId`,HI=`InternetGatewayIdList`,UI=`InternetGatewayIds`,WI=`InternetGatewayList`,GI=`InternetGateways`,KI=`InstanceId`,qI=`InstanceIpv6Address`,JI=`InstanceIpv6AddressList`,YI=`InstanceInterruptionBehavior`,XI=`IamInstanceProfile`,ZI=`IamInstanceProfileAssociation`,QI=`IamInstanceProfileAssociationSet`,$I=`IamInstanceProfileAssociations`,eL=`Ipv6IpamPoolId`,tL=`Ipv4IpamPoolId`,nL=`InstanceIpv4PrefixList`,rL=`InstanceIpv6PrefixList`,iL=`IamInstanceProfileSpecification`,aL=`InstanceIpv4Prefix`,oL=`InstanceIpv6Prefix`,sL=`InstanceInitiatedShutdownBehavior`,cL=`ImageIdStringList`,lL=`InstanceIdStringList`,uL=`ImageId`,dL=`ImageIds`,fL=`InstanceIds`,pL=`ImportKeyPair`,mL=`ImportKeyPairRequest`,hL=`ImportKeyPairResult`,gL=`ImageLocation`,_L=`ImageList`,vL=`InstanceLifecycle`,yL=`InstanceList`,bL=`IpList`,xL=`InstanceMaintenanceOptions`,SL=`InstanceMaintenanceOptionsRequest`,CL=`InstanceMarketOptionsRequest`,wL=`InstanceMetadataOptionsRequest`,TL=`InstanceMetadataOptionsResponse`,EL=`InstanceMarketOptions`,DL=`IncludeManagedResources`,OL=`InstanceMetadataTags`,kL=`Ipv6Native`,AL=`InstanceNetworkInterface`,jL=`InstanceNetworkInterfaceAssociation`,ML=`InstanceNetworkInterfaceAttachment`,NL=`InstanceNetworkInterfaceList`,PL=`InstanceNetworkInterfaceSpecification`,FL=`InstanceNetworkInterfaceSpecificationList`,IL=`Ipv6NetmaskLength`,LL=`Ipv4NetmaskLength`,RL=`InstanceNetworkPerformanceOptions`,zL=`InstanceNetworkPerformanceOptionsRequest`,BL=`ImageOwnerAlias`,VL=`IpOwnerId`,HL=`InstanceOwnerId`,UL=`InstanceOwningService`,WL=`Ipv6PrefixCount`,GL=`Ipv4PrefixCount`,KL=`IpPermissionsEgress`,qL=`IpamPoolId`,JL=`InstancePrivateIpAddress`,YL=`InstancePrivateIpAddressList`,XL=`IsPrimaryIpv6`,ZL=`IncludePublicKey`,QL=`IpPermissionList`,$L=`Ipv4PrefixList`,eR=`Ipv6PrefixList`,tR=`Ipv4PrefixSpecificationRequest`,nR=`Ipv6PrefixSpecificationRequest`,rR=`Ipv6Prefixes`,iR=`IpPermissions`,aR=`IpPermission`,oR=`IpProtocol`,sR=`Ipv6Prefix`,cR=`Ipv6Pool`,lR=`Ipv4Prefixes`,uR=`Ipv4Prefix`,dR=`IsPrimary`,fR=`IpRangeList`,pR=`Ipv6RangeList`,mR=`IpRanges`,hR=`IpRange`,gR=`Ipv6Ranges`,_R=`Ipv6Range`,vR=`InstanceStateChange`,yR=`InstanceStateChangeList`,bR=`InstanceSecondaryInterfaceAttachment`,xR=`InstanceSecondaryInterfaceList`,SR=`InstanceSecondaryInterfacePrivateIpAddress`,CR=`InstanceSecondaryInterfacePrivateIpAddressList`,wR=`InstanceSecondaryInterfacePrivateIpAddressListRequest`,TR=`InstanceSecondaryInterfacePrivateIpAddressRequest`,ER=`InstanceSecondaryInterfaceSpecificationListRequest`,DR=`InstanceSecondaryInterfaceSpecificationRequest`,OR=`InstanceSecondaryInterface`,kR=`InstanceStorageInfo`,AR=`InstanceStorageSupported`,jR=`ImdsSupport`,MR=`InstanceState`,NR=`IpSource`,PR=`Ipv6Supported`,FR=`InstanceType`,IR=`InstanceTypeInfoList`,LR=`InstanceTypeInfo`,RR=`ImageType`,zR=`InstanceTenancy`,BR=`InstanceTypes`,VR=`InterfaceType`,HR=`IncludeUnsupportedInRegion`,UR=`Images`,WR=`Image`,GR=`Instance`,KR=`Instances`,qR=`Iops`,JR=`Key`,YR=`KeyFormat`,XR=`KeyFingerprint`,ZR=`KernelId`,QR=`KmsKeyId`,$R=`KeyMaterial`,ez=`KeyName`,tz=`KeyNameStringList`,nz=`KeyNames`,rz=`KeyPairs`,iz=`KeyPairId`,az=`KeyPairIdStringList`,oz=`KeyPairIds`,sz=`KeyPairInfo`,cz=`KeyPairList`,lz=`KeyPair`,uz=`KeyType`,dz=`Kernel`,fz=`LicenseConfigurationArn`,pz=`LicenseConfigurationRequest`,mz=`LicenseConfiguration`,hz=`LambdaExclusion`,gz=`LogicalGpuCount`,_z=`LocalGatewayId`,vz=`LinkedGroupId`,yz=`LicenseList`,bz=`LastLaunchedTime`,xz=`LicenseSpecifications`,Sz=`LicenseSpecificationListRequest`,Cz=`LicenseSpecification`,wz=`LaunchTemplate`,Tz=`LaunchTemplateId`,Ez=`LaunchTemplateName`,Dz=`LaunchTemplateSpecification`,Oz=`LaunchTime`,kz=`Latest`,Az=`Lambda`,jz=`Licenses`,Mz=`Location`,Nz=`MultiAttachEnabled`,Pz=`MediaAcceleratorInfo`,Fz=`MacAddress`,Iz=`MaximumBandwidthInMbps`,Lz=`MapCustomerOwnedIpOnLaunch`,Rz=`MaxCount`,zz=`MinCount`,Bz=`MediaDeviceInfo`,Vz=`MediaDeviceInfoList`,Hz=`MediaDeviceMemoryInfo`,Uz=`MaximumEbsAttachments`,Wz=`MaximumEbsCards`,Gz=`MaximumEfaInterfaces`,Kz=`MaximumEnaQueueCount`,qz=`MaximumEnaQueueCountPerInterface`,Jz=`MaximumIops`,Yz=`ModifyInstanceAttributeRequest`,Xz=`ModifyInstanceAttributeValue`,Zz=`ModifyInstanceAttribute`,Qz=`MemoryInfo`,$z=`MaximumNetworkCards`,eB=`MaximumNetworkInterfaces`,tB=`MetadataOptions`,nB=`MaintenanceOptions`,rB=`MapPublicIpOnLaunch`,iB=`MaxPrice`,aB=`MaxResults`,oB=`ModifySubnetAttributeRequest`,sB=`ModifySubnetAttribute`,cB=`MaximumSecondaryNetworkInterfaces`,lB=`ModificationState`,uB=`MarketType`,dB=`MaximumThroughputInMBps`,fB=`ModifyVolumeRequest`,pB=`ModifyVolumeResult`,mB=`ModifyVolume`,hB=`Main`,gB=`Manufacturer`,_B=`Managed`,vB=`Message`,yB=`Messages`,bB=`Mode`,xB=`Monitoring`,SB=`Name`,CB=`NetworkBorderGroup`,wB=`NetworkCards`,TB=`NetworkCardIndex`,EB=`NetworkCardInfoList`,DB=`NetworkCardInfo`,OB=`NoDevice`,kB=`NeuronDeviceCoreInfo`,AB=`NeuronDeviceInfo`,jB=`NeuronDeviceInfoList`,MB=`NeuronDeviceMemoryInfo`,NB=`NeuronDevices`,PB=`NitroEnclavesSupport`,FB=`NatGateway`,IB=`NatGatewayAddresses`,LB=`NatGatewayAttachedAppliance`,RB=`NatGatewayAttachedApplianceList`,zB=`NatGatewayAddressList`,BB=`NatGatewayAddress`,VB=`NatGatewayExclusion`,HB=`NatGatewayId`,UB=`NatGatewayIdStringList`,WB=`NatGatewayIds`,GB=`NatGatewayList`,KB=`NatGateways`,qB=`NetworkInterfaceId`,JB=`NetworkInterfaceOwnerId`,YB=`NetworkInterfaces`,XB=`NetworkInfo`,ZB=`NeuronInfo`,QB=`NetworkPerformanceOptions`,$B=`NetworkPerformance`,eV=`NoReboot`,tV=`NvmeSupport`,nV=`NitroTpmInfo`,rV=`NitroTpmSupport`,iV=`NitroTpmSupportedVersionsList`,aV=`NextToken`,oV=`NestedVirtualization`,sV=`Origin`,cV=`OutpostArn`,lV=`OwnerAlias`,uV=`OwnerId`,dV=`OptInStatus`,fV=`OriginalIops`,pV=`OwnerIds`,mV=`OriginalMultiAttachEnabled`,hV=`OdbNetworkArn`,gV=`OperatorRequest`,_V=`OperatorResponse`,vV=`OwnerStringList`,yV=`OriginalSize`,bV=`OriginalThroughput`,xV=`OriginalVolumeType`,SV=`Operator`,CV=`Output`,wV=`Owners`,TV=`Owner`,EV=`Principal`,DV=`ProvisionedBandwidth`,OV=`PeakBandwidthInGbps`,kV=`ProductCodeId`,AV=`ProductCodeList`,jV=`ProductCodeType`,MV=`PartitionCount`,NV=`ProductCode`,PV=`ProductCodes`,FV=`PrivateDnsHostnameTypeOnLaunch`,IV=`PrivateDnsName`,LV=`PrivateDnsNameOptions`,RV=`PrivateDnsNameOptionsOnLaunch`,zV=`PrivateDnsNameOptionsRequest`,BV=`PrivateDnsNameOptionsResponse`,VV=`PublicDnsName`,HV=`PlatformDetails`,UV=`PlacementGroup`,WV=`PlacementGroupInfo`,GV=`PlacementGroupIdStringList`,KV=`PlacementGroupList`,qV=`PlacementGroupStrategyList`,JV=`PlacementGroups`,YV=`PublicIp`,XV=`PrivateIpAddressCount`,ZV=`PrivateIpAddressSpecification`,QV=`PrivateIpAddressSpecificationList`,$V=`PrivateIpAddress`,eH=`PrivateIpAddresses`,tH=`PublicIpAddress`,nH=`PublicIpv4Pool`,rH=`PublicIpStringList`,iH=`PrimaryIpv6`,aH=`PrivateIp`,oH=`ProcessorInfo`,sH=`PublicIps`,cH=`PublicKey`,lH=`PublicKeyMaterial`,uH=`PrefixListId`,dH=`PrefixListIdList`,fH=`PrefixListIds`,pH=`PartitionNumber`,mH=`PeeringStatus`,hH=`PhcSupport`,gH=`PreviousState`,_H=`ProvisionTime`,vH=`PresignedUrl`,yH=`PropagatingVgw`,bH=`PropagatingVgwList`,xH=`PropagatingVgws`,SH=`ParentZoneId`,CH=`ParentZoneName`,wH=`Platform`,TH=`Placement`,EH=`Primary`,DH=`Progress`,OH=`Provisioned`,kH=`Public`,AH=`Return`,jH=`ReleaseAddressRequest`,MH=`ReleaseAddress`,NH=`RestorableByUserIds`,PH=`RestorableBy`,FH=`RootDeviceName`,IH=`RootDeviceType`,LH=`RootDeviceTypeList`,RH=`RestoreExpiryTime`,zH=`ResourceExclusions`,BH=`RegionGeography`,VH=`ReferencedGroupId`,HH=`ReferencedGroupInfo`,UH=`RegionGeographyList`,WH=`RunInstancesMonitoringEnabled`,GH=`RebootInstancesRequest`,KH=`RunInstancesRequest`,qH=`RunInstancesUserData`,JH=`RamdiskId`,YH=`ReservationId`,XH=`RebootInstances`,ZH=`RequesterId`,QH=`RunInstances`,$H=`RegionList`,eU=`ReservationList`,tU=`RouteList`,nU=`RebootMigrationSupport`,rU=`RebootMigration`,iU=`RegionName`,aU=`RegionNameStringList`,oU=`RegionNames`,sU=`ReferencedSecurityGroup`,cU=`RevokeSecurityGroupEgress`,lU=`RevokeSecurityGroupEgressRequest`,uU=`RevokeSecurityGroupEgressResult`,dU=`RevokeSecurityGroupIngressRequest`,fU=`RevokeSecurityGroupIngressResult`,pU=`RevokeSecurityGroupIngress`,mU=`RevokedSecurityGroupRule`,hU=`RevokedSecurityGroupRuleList`,gU=`RevokedSecurityGroupRules`,_U=`RouteTableAssociation`,vU=`RouteTableAssociationId`,yU=`RouteTableAssociationList`,bU=`RouteTableAssociationState`,xU=`RouteTableId`,SU=`RouteTableIdStringList`,CU=`RouteTableIds`,wU=`RouteTableList`,TU=`ResourceType`,EU=`RequestTime`,DU=`RouteTable`,OU=`RouteTables`,kU=`Ramdisk`,AU=`Regions`,jU=`Region`,MU=`Requested`,NU=`Reservations`,PU=`Reservation`,FU=`Route`,IU=`Routes`,LU=`SecondaryAllocationIds`,RU=`SecondaryAllocationId`,zU=`SupportedAdditionalProcessorFeatureList`,BU=`SubnetArn`,VU=`SupportedArchitectures`,HU=`SupportedBootModes`,UU=`SubnetCidrBlockState`,WU=`SustainedClockSpeedInGhz`,GU=`SourceDestCheck`,KU=`SpreadDomain`,qU=`SupportedFeatures`,JU=`SubGeography`,YU=`SecurityGroupArn`,XU=`SecurityGroupId`,ZU=`SecurityGroupIdStringList`,QU=`SecurityGroupIds`,$U=`SecurityGroupList`,eW=`SecurityGroupRules`,tW=`SecurityGroupRuleArn`,nW=`SecurityGroupRuleIds`,rW=`SecurityGroupRuleIdList`,iW=`SecurityGroupRuleId`,aW=`SecurityGroupRuleList`,oW=`SecurityGroupRule`,sW=`SecurityGroupStringList`,cW=`SecurityGroups`,lW=`SecurityGroup`,uW=`SubnetIds`,dW=`SubnetIpv6CidrBlockAssociation`,fW=`SubnetIpv6CidrBlockAssociationSet`,pW=`SizeInGB`,mW=`SourceImageId`,hW=`SecondaryInterfaceId`,gW=`SourceInstanceId`,_W=`SizeInMiB`,vW=`SpotInstanceRequestId`,yW=`SourceImageRegion`,bW=`StartInstancesRequest`,xW=`StartInstancesResult`,SW=`StopInstancesRequest`,CW=`StopInstancesResult`,wW=`SupportedInRegion`,TW=`SnapshotIdStringList`,EW=`SubnetIdStringList`,DW=`SpotInstanceType`,OW=`SecondaryInterfaces`,kW=`SecondaryInterface`,AW=`SnapshotId`,jW=`SnapshotIds`,MW=`StartingInstances`,NW=`StartInstances`,PW=`StoppingInstances`,FW=`StopInstances`,IW=`SubnetId`,LW=`SnapshotLocation`,RW=`SnapshotList`,zW=`SpreadLevel`,BW=`SubnetList`,VW=`ServiceManaged`,HW=`SpotMarketOptions`,UW=`StatusMessage`,WW=`StateMessage`,GW=`SecondaryNetworkId`,KW=`SriovNetSupport`,qW=`SecondaryNetworkSupported`,JW=`SpotOptions`,YW=`SkipOsShutdown`,XW=`SecondaryPrivateIpAddresses`,ZW=`SecondaryPrivateIpAddressCount`,QW=`SecondaryPrivateIpAddress`,$W=`SupportedRootDeviceTypes`,eG=`SourceRegion`,tG=`StateReason`,nG=`SourceSecurityGroupName`,rG=`SourceSecurityGroupOwnerId`,iG=`SourceSnapshotId`,aG=`SecondarySubnetId`,oG=`SupportedStrategies`,sG=`StartTime`,cG=`StateTransitionReason`,lG=`SseType`,uG=`StorageTier`,dG=`SupportedUsageClasses`,fG=`SensitiveUserData`,pG=`SourceVolumeId`,mG=`SupportedVirtualizationTypes`,hG=`SupportedVersions`,gG=`Size`,_G=`Snapshots`,vG=`Snapshot`,yG=`State`,bG=`Status`,xG=`Strategy`,SG=`Subnet`,CG=`Subnets`,wG=`Tags`,TG=`TcpEstablishedTimeout`,EG=`TotalFpgaMemoryInMiB`,DG=`TransitGatewayId`,OG=`TotalGpuMemoryInMiB`,kG=`TerminateInstances`,AG=`TotalInferenceMemoryInMiB`,jG=`TerminateInstancesRequest`,MG=`TerminateInstancesResult`,NG=`TargetIops`,PG=`TerminatingInstances`,FG=`TagList`,IG=`TargetMultiAttachEnabled`,LG=`TotalMediaMemoryInMiB`,RG=`TotalNeuronDeviceMemoryInMiB`,zG=`ToPort`,BG=`ThreadsPerCore`,VG=`ThreadsPerCoreList`,HG=`TagSpecifications`,UG=`TotalSizeInGB`,WG=`TagSpecificationList`,GG=`TagSpecification`,KG=`TargetSize`,qG=`TpmSupport`,JG=`TargetThroughput`,YG=`TransferType`,XG=`TargetVolumeType`,ZG=`Tag`,QG=`Tenancy`,$G=`Throughput`,eK=`Timestamp`,tK=`Type`,nK=`UsageClassTypeList`,rK=`UserData`,iK=`UserId`,aK=`UserIdGroupPairs`,oK=`UserIdGroupPairList`,sK=`UserIdGroupPair`,cK=`UnknownIpPermissions`,lK=`UsageOperation`,uK=`UsageOperationUpdateTime`,dK=`UdpStreamTimeout`,fK=`UdpTimeout`,pK=`Value`,mK=`VolumeAttachmentList`,hK=`VolumeAttachment`,gK=`VpcCidrBlockAssociation`,_K=`VpcCidrBlockAssociationSet`,vK=`VpcCidrBlockState`,yK=`VCpuInfo`,bK=`ValidCores`,xK=`VpcEncryptionControl`,SK=`VpcEncryptionControlConfiguration`,CK=`VpcEncryptionControlExclusion`,wK=`VpcEncryptionControlExclusions`,TK=`VpcEncryptionControlId`,EK=`VpcEndpointId`,DK=`VpcId`,OK=`VpcIpv6CidrBlockAssociation`,kK=`VpcIpv6CidrBlockAssociationSet`,AK=`VolumeInitializationRate`,jK=`VolumeIdStringList`,MK=`VpcIdStringList`,NK=`VolumeId`,PK=`VolumeIds`,FK=`VpcIds`,IK=`VpcLattice`,LK=`VpcLatticeExclusion`,RK=`VolumeList`,zK=`VpcList`,BK=`VolumeModification`,VK=`VirtualName`,HK=`VolumeOwnerId`,UK=`VpcPeeringConnectionId`,WK=`VpcPeeringExclusion`,GK=`VirtualPrivateGateway`,KK=`VirtualPrivateGatewayExclusion`,qK=`VpcPeering`,JK=`ValueStringList`,YK=`VolumeSize`,XK=`VolumeType`,ZK=`VirtualizationTypeList`,QK=`ValidThreadsPerCore`,$K=`VirtualizationType`,eq=`ValidUntil`,tq=`Values`,nq=`Version`,rq=`Volumes`,iq=`Volume`,aq=`Vpc`,oq=`Vpcs`,sq=`WorkloadsList`,cq=`Workloads`,lq=`ZoneId`,uq=`ZoneIdStringList`,dq=`ZoneIds`,fq=`ZoneName`,pq=`ZoneNameStringList`,mq=`ZoneNames`,hq=`ZoneType`,gq=`attachedApplianceSet`,_q=`applianceArn`,vq=`additionalFlexibleNetworkInterfaces`,yq=`allocationId`,bq=`availableIpAddressCount`,xq=`assignIpv6AddressOnCreation`,Sq=`additionalInfo`,Cq=`associationId`,wq=`attachmentId`,Tq=`amiLaunchIndex`,Eq=`attachmentLimitType`,Dq=`availabilityMode`,Oq=`associatePublicIpAddress`,kq=`amazonProvidedIpv6CidrBlock`,Aq=`autoProvisionZones`,jq=`autoRecoverySupported`,Mq=`allowReassociation`,Nq=`associatedResource`,Pq=`autoRecovery`,Fq=`associationState`,Iq=`autoScalingIps`,Lq=`amdSevSnp`,Rq=`addressesSet`,zq=`associationSet`,Bq=`attachmentSet`,Vq=`attachmentState`,Hq=`attachTime`,Uq=`availabilityZone`,Wq=`availabilityZoneId`,Gq=`availabilityZoneInfo`,Kq=`accelerators`,qq=`affinity`,Jq=`arn`,Yq=`architecture`,Xq=`association`,Zq=`attachment`,Qq=`attribute`,$q=`baselineBandwidthInGbps`,eJ=`baselineBandwidthInMbps`,tJ=`blockDeviceMapping`,nJ=`baselineIops`,rJ=`bootMode`,iJ=`bareMetal`,aJ=`blockPublicAccessStates`,oJ=`burstablePerformanceSupported`,sJ=`baselineThroughputInMBps`,cJ=`bandwidthWeighting`,lJ=`bandwidthWeightings`,uJ=`cidrBlock`,dJ=`cidrBlockAssociationSet`,fJ=`capacityBlockId`,pJ=`cidrBlockState`,mJ=`coreCount`,hJ=`completionDurationMinutes`,gJ=`creationDate`,_J=`carrierGatewayId`,vJ=`currentGeneration`,yJ=`carrierIp`,bJ=`currentInstanceBootMode`,xJ=`cidrIp`,SJ=`cidrIpv6`,CJ=`cidrIpv4`,wJ=`coreInfo`,TJ=`coreNetworkArn`,EJ=`cpuOptions`,DJ=`customerOwnedIp`,OJ=`customerOwnedIpv4Pool`,kJ=`capacityReservationId`,AJ=`capacityReservationPreference`,jJ=`capacityReservationResourceGroupArn`,MJ=`capacityReservationSpecification`,NJ=`capacityReservationTarget`,PJ=`currentState`,FJ=`clientToken`,IJ=`connectionTrackingConfiguration`,LJ=`completionTime`,RJ=`connectivityType`,zJ=`createTime`,BJ=`code`,VJ=`configured`,HJ=`count`,UJ=`disableApiTermination`,WJ=`destinationCidrBlock`,GJ=`defaultCores`,KJ=`dataEncryptionKeyId`,qJ=`defaultEnaQueueCountPerInterface`,JJ=`defaultForAz`,YJ=`dedicatedHostsSupported`,XJ=`deviceIndex`,ZJ=`destinationIpv6CidrBlock`,QJ=`deviceName`,$J=`defaultNetworkCardIndex`,eY=`dnsName`,tY=`dhcpOptionsId`,nY=`deleteOnTermination`,rY=`destinationPrefixListId`,iY=`deregistrationProtection`,aY=`dryRun`,oY=`destinationRegion`,sY=`defaultTcpEstablishedTimeout`,cY=`defaultThreadsPerCore`,lY=`deprecationTime`,uY=`deleteTime`,dY=`defaultUdpStreamTimeout`,fY=`defaultUdpTimeout`,pY=`defaultVCpus`,mY=`description`,hY=`device`,gY=`disks`,_Y=`domain`,vY=`ebsCardIndex`,yY=`ebsCardSet`,bY=`encryptionControl`,xY=`enableDns64`,SY=`elasticFileSystem`,CY=`elasticGpuAssociationId`,wY=`elasticGpuAssociationState`,TY=`elasticGpuAssociationSet`,EY=`elasticGpuAssociationTime`,DY=`elasticGpuId`,OY=`elasticInferenceAcceleratorArn`,kY=`elasticInferenceAcceleratorAssociationId`,AY=`elasticInferenceAcceleratorAssociationState`,jY=`elasticInferenceAcceleratorAssociationSet`,MY=`elasticInferenceAcceleratorAssociationTime`,NY=`encryptionInTransitSupported`,PY=`ebsInfo`,FY=`efaInfo`,IY=`enableLniAtDeviceIndex`,LY=`ebsOptimized`,RY=`ebsOptimizedInfo`,zY=`egressOnlyInternetGateway`,BY=`egressOnlyInternetGatewayId`,VY=`ebsOptimizedSupport`,HY=`enclaveOptions`,UY=`enaQueueCount`,W=`ec2QueryName`,WY=`enableResourceNameDnsAAAARecord`,GY=`enableResourceNameDnsARecord`,KY=`enaSrdEnabled`,qY=`enaSrdSpecification`,JY=`enaSrdSupported`,YY=`enaSrdUdpEnabled`,XY=`enaSrdUdpSpecification`,ZY=`efaSupported`,QY=`encryptionSupport`,$Y=`enaSupport`,eX=`endTime`,tX=`ebs`,nX=`enabled`,rX=`encrypted`,iX=`failureCode`,aX=`flexibleEnaQueuesSupport`,oX=`fpgaInfo`,sX=`failureMessage`,cX=`fromPort`,lX=`fastRestored`,uX=`fullSnapshotSizeInBytes`,dX=`freeTierEligible`,$pe=`force`,eme=`fpgas`,tme=`groupArn`,nme=`groupDescription`,fX=`gatewayId`,rme=`gpuInfo`,pX=`groupId`,ime=`groupLongName`,mX=`groupName`,ame=`groupOwnerId`,ome=`gpuPartitionSize`,hX=`geographySet`,gX=`groupSet`,sme=`gpus`,cme=`groups`,_X=`hypervisor`,lme=`hiddenByDefault`,ume=`httpEndpoint`,dme=`hostId`,fme=`hibernationOptions`,pme=`httpProtocolIpv6`,mme=`httpPutResponseHopLimit`,hme=`hostResourceGroupArn`,gme=`hibernationSupported`,_me=`httpTokens`,vX=`hostnameType`,vme=`id`,yX=`ipv6AddressAttribute`,yme=`ipv6AddressCount`,bme=`inferenceAcceleratorInfo`,xme=`ipv4AddressesPerInterface`,Sme=`ipv6AddressesPerInterface`,Cme=`ipv4AddressesPerSecondaryInterface`,bX=`ipv6AddressesSet`,wme=`imageAllowed`,xX=`ipAddress`,SX=`ipv6Address`,CX=`ipv6CidrBlock`,wX=`ipv6CidrBlockAssociationSet`,TX=`ipv6CidrBlockState`,Tme=`isDefault`,EX=`isEgress`,DX=`internetGateway`,Eme=`internetGatewayBlockMode`,OX=`internetGatewayId`,Dme=`internetGatewaySet`,kX=`instanceId`,AX=`iamInstanceProfile`,jX=`iamInstanceProfileAssociation`,Ome=`iamInstanceProfileAssociationSet`,MX=`instanceInitiatedShutdownBehavior`,NX=`imageId`,kme=`imageLocation`,Ame=`instanceLifecycle`,jme=`instanceMetadataTags`,Mme=`ipv6Native`,Nme=`imageOwnerAlias`,Pme=`imageOwnerId`,Fme=`instanceOwnerId`,Ime=`ipOwnerId`,Lme=`instanceOwningService`,Rme=`ipPermissionsEgress`,zme=`isPrimaryIpv6`,Bme=`ipv4PrefixSet`,Vme=`ipv6PrefixSet`,PX=`ipProtocol`,FX=`ipPermissions`,Hme=`ipv4Prefix`,Ume=`ipv6Pool`,Wme=`ipv6Prefix`,Gme=`isPublic`,Kme=`isPrimary`,qme=`ipRanges`,Jme=`ipv6Ranges`,Yme=`instanceStorageInfo`,Xme=`instanceStorageSupported`,Zme=`imagesSet`,Qme=`imageState`,$me=`imdsSupport`,IX=`instancesSet`,ehe=`instanceState`,LX=`ipSource`,the=`ipv6Supported`,RX=`instanceType`,nhe=`instanceTypeSet`,rhe=`idempotencyToken`,ihe=`imageType`,zX=`instanceTenancy`,BX=`interfaceType`,VX=`iops`,G=`item`,ahe=`key`,HX=`keyFingerprint`,UX=`kernelId`,WX=`kmsKeyId`,ohe=`keyMaterial`,GX=`keyName`,KX=`keyPairId`,she=`keySet`,che=`keyType`,lhe=`kernel`,uhe=`licenseConfigurationArn`,dhe=`logicalGpuCount`,fhe=`localGatewayId`,phe=`linkedGroupId`,mhe=`lastLaunchedTime`,hhe=`licenseSet`,ghe=`launchTime`,_he=`lambda`,vhe=`multiAttachEnabled`,yhe=`mediaAcceleratorInfo`,qX=`macAddress`,JX=`maximumBandwidthInMbps`,bhe=`mapCustomerOwnedIpOnLaunch`,xhe=`maximumEbsAttachments`,She=`maximumEbsCards`,Che=`maximumEfaInterfaces`,whe=`maximumEnaQueueCount`,The=`maximumEnaQueueCountPerInterface`,YX=`maximumIops`,XX=`memoryInfo`,Ehe=`maximumNetworkCards`,ZX=`maximumNetworkInterfaces`,Dhe=`metadataOptions`,Ohe=`maintenanceOptions`,khe=`mapPublicIpOnLaunch`,QX=`maxResults`,Ahe=`messageSet`,jhe=`maximumSecondaryNetworkInterfaces`,$X=`modificationState`,eZ=`maximumThroughputInMBps`,Mhe=`main`,tZ=`manufacturer`,Nhe=`managed`,nZ=`message`,Phe=`monitoring`,Fhe=`mode`,rZ=`name`,iZ=`networkBorderGroup`,Ihe=`networkCards`,aZ=`networkCardIndex`,oZ=`noDevice`,Lhe=`neuronDevices`,Rhe=`nitroEnclavesSupport`,sZ=`natGateway`,zhe=`natGatewayAddressSet`,cZ=`natGatewayId`,Bhe=`natGatewaySet`,lZ=`networkInterfaceId`,Vhe=`networkInterfaceOwnerId`,Hhe=`networkInterfaceSet`,Uhe=`networkInterface`,Whe=`networkInfo`,Ghe=`neuronInfo`,Khe=`networkPerformanceOptions`,uZ=`networkPerformance`,qhe=`noReboot`,dZ=`nvmeSupport`,Jhe=`nitroTpmInfo`,Yhe=`nitroTpmSupport`,fZ=`nextToken`,Xhe=`nestedVirtualization`,Zhe=`origin`,pZ=`outpostArn`,Qhe=`ownerAlias`,mZ=`ownerId`,hZ=`optInStatus`,$he=`originalIops`,ege=`originalMultiAttachEnabled`,tge=`odbNetworkArn`,nge=`originalSize`,rge=`originalThroughput`,ige=`originalVolumeType`,gZ=`operator`,age=`output`,oge=`principal`,sge=`provisionedBandwidth`,cge=`peakBandwidthInGbps`,_Z=`productCodes`,lge=`partitionCount`,uge=`productCode`,dge=`privateDnsNameOptions`,fge=`privateDnsNameOptionsOnLaunch`,vZ=`privateDnsName`,pge=`publicDnsName`,yZ=`platformDetails`,mge=`placementGroup`,hge=`placementGroupInfo`,gge=`placementGroupSet`,bZ=`publicIp`,xZ=`privateIpAddressesSet`,_ge=`privateIpAddressSet`,SZ=`privateIpAddress`,CZ=`publicIpv4Pool`,vge=`processorInfo`,yge=`privateIp`,bge=`publicKey`,xge=`publicKeyMaterial`,wZ=`prefixListId`,Sge=`prefixListIds`,Cge=`partitionNumber`,TZ=`peeringStatus`,wge=`phcSupport`,Tge=`previousState`,Ege=`provisionTime`,Dge=`presignedUrl`,Oge=`propagatingVgwSet`,kge=`parentZoneId`,Age=`parentZoneName`,EZ=`platform`,jge=`placement`,DZ=`primary`,OZ=`progress`,Mge=`provisioned`,kZ=`return`,AZ=`rootDeviceName`,jZ=`rootDeviceType`,Nge=`restoreExpiryTime`,Pge=`regionEndpoint`,Fge=`resourceExclusions`,Ige=`referencedGroupId`,Lge=`referencedGroupInfo`,Rge=`reservationId`,MZ=`ramdiskId`,zge=`regionInfo`,Bge=`requesterId`,Vge=`rebootMigrationSupport`,Hge=`rebootMigration`,NZ=`regionName`,PZ=`revokedSecurityGroupRuleSet`,Uge=`reservationSet`,Wge=`routeSet`,Gge=`routeTableAssociationId`,FZ=`routeTableId`,Kge=`routeTableSet`,qge=`resourceType`,Jge=`requestTime`,Yge=`routeTable`,Xge=`ramdisk`,Zge=`reason`,Qge=`requested`,IZ=`smithy.ts.sdk.synthetic.com.amazonaws.ec2`,$ge=`supportedArchitectures`,e_e=`subnetArn`,t_e=`supportedBootModes`,n_e=`sustainedClockSpeedInGhz`,LZ=`sourceDestCheck`,r_e=`spreadDomain`,i_e=`supportedFeatures`,RZ=`securityGroupArn`,a_e=`securityGroupInfo`,o_e=`securityGroupRuleArn`,zZ=`securityGroupRuleId`,BZ=`securityGroupRuleSet`,s_e=`subGeographySet`,c_e=`sizeInGB`,l_e=`sourceInstanceId`,u_e=`secondaryInterfaceId`,d_e=`sourceImageId`,VZ=`sizeInMiB`,f_e=`sourceImageRegion`,p_e=`spotInstanceRequestId`,m_e=`supportedInRegion`,h_e=`secondaryInterfaceSet`,HZ=`snapshotId`,UZ=`subnetId`,g_e=`spreadLevel`,__e=`serviceManaged`,WZ=`statusMessage`,GZ=`stateMessage`,v_e=`secondaryNetworkId`,y_e=`secondaryNetworkSupported`,KZ=`sriovNetSupport`,b_e=`secondaryPrivateIpAddressCount`,x_e=`supportedRootDeviceTypes`,qZ=`stateReason`,JZ=`sourceSecurityGroupName`,YZ=`sourceSecurityGroupOwnerId`,S_e=`secondarySubnetId`,C_e=`snapshotSet`,w_e=`subnetSet`,T_e=`supportedStrategies`,XZ=`startTime`,ZZ=`sseType`,E_e=`storageTier`,D_e=`supportedUsageClasses`,O_e=`sourceVolumeId`,k_e=`supportedVirtualizationTypes`,A_e=`supportedVersions`,j_e=`size`,QZ=`state`,$Z=`status`,eQ=`strategy`,M_e=`subnet`,N_e=`tenancy`,P_e=`tcpEstablishedTimeout`,F_e=`totalFpgaMemoryInMiB`,I_e=`transitGatewayId`,L_e=`totalGpuMemoryInMiB`,R_e=`totalInferenceMemoryInMiB`,z_e=`targetIops`,B_e=`targetMultiAttachEnabled`,V_e=`totalMediaMemoryInMiB`,H_e=`totalNeuronDeviceMemoryInMiB`,tQ=`toPort`,U_e=`threadsPerCore`,nQ=`tagSet`,W_e=`totalSizeInGB`,G_e=`targetSize`,rQ=`tpmSupport`,K_e=`targetThroughput`,q_e=`transferType`,J_e=`targetVolumeType`,iQ=`throughput`,aQ=`timestamp`,oQ=`type`,Y_e=`userData`,sQ=`userId`,cQ=`unknownIpPermissionSet`,lQ=`usageOperation`,X_e=`usageOperationUpdateTime`,Z_e=`udpStreamTimeout`,Q_e=`udpTimeout`,uQ=`value`,$_e=`vCpuInfo`,eve=`validCores`,tve=`vpcEncryptionControlId`,nve=`vpcEndpointId`,dQ=`vpcId`,rve=`volumeInitializationRate`,fQ=`volumeId`,ive=`vpcLattice`,ave=`volumeModification`,pQ=`virtualName`,ove=`volumeOwnerId`,mQ=`vpcPeeringConnectionId`,sve=`virtualPrivateGateway`,cve=`vpcPeering`,lve=`volumeSet`,hQ=`volumeSize`,uve=`vpcSet`,gQ=`volumeType`,dve=`validThreadsPerCore`,_Q=`virtualizationType`,fve=`version`,pve=`vpc`,mve=`workloadSet`,K=`xmlName`,hve=`zoneId`,gve=`zoneName`,_ve=`zoneState`,vve=`zoneType`,q=`com.amazonaws.ec2`,vQ=tO.for(IZ),yve=[-3,IZ,`EC2ServiceException`,0,[],[]];vQ.registerError(yve,Zde);var bve=[vQ],xve=[0,q,qpe,8,0],Sve=[0,q,Xz,8,0],Cve=[0,q,qH,8,0],wve=[0,q,fG,8,0],Tve=[3,q,wA,0,[DA,kA,ZN,qB,JB,$V,wG,nH,CB,dj,fj,aj,IW,VW,KI,YV],[[0,{[W]:`AllocationId`,[K]:yq}],[0,{[W]:`AssociationId`,[K]:Cq}],[0,{[W]:`Domain`,[K]:_Y}],[0,{[W]:`NetworkInterfaceId`,[K]:lZ}],[0,{[W]:`NetworkInterfaceOwnerId`,[K]:Vhe}],[0,{[W]:`PrivateIpAddress`,[K]:SZ}],[()=>s$,{[W]:`TagSet`,[K]:nQ}],[0,{[W]:`PublicIpv4Pool`,[K]:CZ}],[0,{[W]:`NetworkBorderGroup`,[K]:iZ}],[0,{[W]:`CustomerOwnedIp`,[K]:DJ}],[0,{[W]:`CustomerOwnedIpv4Pool`,[K]:OJ}],[0,{[W]:`CarrierIp`,[K]:yJ}],[0,{[W]:`SubnetId`,[K]:UZ}],[0,{[W]:`ServiceManaged`,[K]:__e}],[0,{[W]:`InstanceId`,[K]:kX}],[0,{[W]:`PublicIp`,[K]:bZ}]]],Eve=[3,q,Qde,0,[ZN,wA,nH,CB,fj,HG,qL,U],[0,0,0,0,0,[()=>c$,{[K]:GG}],0,[2,{[W]:`DryRun`,[K]:aY}]]],Dve=[3,q,$de,0,[DA,nH,CB,ZN,dj,fj,aj,YV],[[0,{[W]:`AllocationId`,[K]:yq}],[0,{[W]:`PublicIpv4Pool`,[K]:CZ}],[0,{[W]:`NetworkBorderGroup`,[K]:iZ}],[0,{[W]:`Domain`,[K]:_Y}],[0,{[W]:`CustomerOwnedIp`,[K]:DJ}],[0,{[W]:`CustomerOwnedIpv4Pool`,[K]:OJ}],[0,{[W]:`CarrierIp`,[K]:yJ}],[0,{[W]:`PublicIp`,[K]:bZ}]]],Ove=[3,q,efe,0,[DA,KI,YV,U,qB,$V,kfe],[0,0,0,[2,{[W]:`DryRun`,[K]:aY}],[0,{[W]:`NetworkInterfaceId`,[K]:lZ}],[0,{[W]:`PrivateIpAddress`,[K]:SZ}],[2,{[W]:`AllowReassociation`,[K]:Mq}]]],kve=[3,q,tfe,0,[kA],[[0,{[W]:`AssociationId`,[K]:Cq}]]],Ave=[3,q,mfe,0,[XI,KI],[[()=>TQ,0],0],2],jve=[3,q,hfe,0,[ZI],[[()=>wQ,{[W]:`IamInstanceProfileAssociation`,[K]:jX}]]],Mve=[3,q,Efe,0,[xU,PF,nH,U,IW],[[0,{[W]:`RouteTableId`,[K]:FZ}],0,0,[2,{[W]:`DryRun`,[K]:aY}],[0,{[W]:`SubnetId`,[K]:UZ}]],1],Nve=[3,q,Dfe,0,[kA,PA],[[0,{[W]:`AssociationId`,[K]:Cq}],[()=>IQ,{[W]:`AssociationState`,[K]:Fq}]]],Pve=[3,q,ffe,0,[VI,DK,U],[[0,{[W]:`InternetGatewayId`,[K]:OX}],[0,{[W]:`VpcId`,[K]:dQ}],[2,{[W]:`DryRun`,[K]:aY}]],2],Fve=[3,q,Bfe,0,[YN,KI,NK,tP,U],[0,0,0,1,[2,{[W]:`DryRun`,[K]:aY}]],3],yQ=[3,q,sfe,0,[pK],[[2,{[W]:`Value`,[K]:uQ}]]],bQ=[3,q,Vfe,0,[pK],[[0,{[W]:`Value`,[K]:uQ}]]],Ive=[3,q,Mfe,0,[RF,HG,U,nG,rG,oR,vF,zG,oj,iR],[[0,{[W]:`GroupId`,[K]:pX}],[()=>c$,{[K]:GG}],[2,{[W]:`DryRun`,[K]:aY}],[0,{[W]:`SourceSecurityGroupName`,[K]:JZ}],[0,{[W]:`SourceSecurityGroupOwnerId`,[K]:YZ}],[0,{[W]:`IpProtocol`,[K]:PX}],[1,{[W]:`FromPort`,[K]:cX}],[1,{[W]:`ToPort`,[K]:tQ}],[0,{[W]:`CidrIp`,[K]:xJ}],[()=>e$,{[W]:`IpPermissions`,[K]:FX}]],1],Lve=[3,q,Nfe,0,[AH,eW],[[2,{[W]:`Return`,[K]:kZ}],[()=>o$,{[W]:`SecurityGroupRuleSet`,[K]:BZ}]]],Rve=[3,q,Pfe,0,[oj,vF,RF,HF,iR,oR,nG,rG,zG,HG,U],[0,1,0,0,[()=>e$,0],0,0,0,1,[()=>c$,{[K]:GG}],[2,{[W]:`DryRun`,[K]:aY}]]],zve=[3,q,Ffe,0,[AH,eW],[[2,{[W]:`Return`,[K]:kZ}],[()=>o$,{[W]:`SecurityGroupRuleSet`,[K]:BZ}]]],Bve=[3,q,LA,0,[dV,yB,iU,fq,lq,HF,CB,hq,CH,SH,VF,qF,JU,yG],[[0,{[W]:`OptInStatus`,[K]:hZ}],[()=>iCe,{[W]:`MessageSet`,[K]:Ahe}],[0,{[W]:`RegionName`,[K]:NZ}],[0,{[W]:`ZoneName`,[K]:gve}],[0,{[W]:`ZoneId`,[K]:hve}],[0,{[W]:`GroupName`,[K]:mX}],[0,{[W]:`NetworkBorderGroup`,[K]:iZ}],[0,{[W]:`ZoneType`,[K]:vve}],[0,{[W]:`ParentZoneName`,[K]:Age}],[0,{[W]:`ParentZoneId`,[K]:kge}],[0,{[W]:`GroupLongName`,[K]:ime}],[()=>nCe,{[W]:`GeographySet`,[K]:hX}],[()=>aCe,{[W]:`SubGeographySet`,[K]:s_e}],[0,{[W]:`ZoneState`,[K]:_ve}]]],Vve=[3,q,RA,0,[LA,BA,OA],[0,0,[()=>KQ,{[K]:DA}]]],Hve=[3,q,Ufe,0,[SB],[[0,{[W]:`Name`,[K]:rZ}]]],Uve=[3,q,Kfe,0,[vB],[[0,{[W]:`Message`,[K]:nZ}]]],Wve=[3,q,Jfe,0,[SB],[[0,{[W]:`Name`,[K]:rZ}]]],Gve=[3,q,tpe,0,[pK],[[21,{[W]:`Value`,[K]:uQ}]]],xQ=[3,q,JA,0,[aF,OB,IM,VK],[[()=>Ebe,{[W]:`Ebs`,[K]:tX}],[0,{[W]:`NoDevice`,[K]:oZ}],[0,{[W]:`DeviceName`,[K]:QJ}],[0,{[W]:`VirtualName`,[K]:pQ}]]],SQ=[3,q,QA,0,[zI],[[0,{[W]:`InternetGatewayBlockMode`,[K]:Eme}]]],Kve=[3,q,gj,0,[mj,_j],[0,()=>Jve]],qve=[3,q,Lpe,0,[mj,_j],[[0,{[W]:`CapacityReservationPreference`,[K]:AJ}],[()=>Yve,{[W]:`CapacityReservationTarget`,[K]:NJ}]]],Jve=[3,q,_j,0,[pj,hj],[0,0]],Yve=[3,q,Rpe,0,[pj,hj],[[0,{[W]:`CapacityReservationId`,[K]:kJ}],[0,{[W]:`CapacityReservationResourceGroupArn`,[K]:jJ}]]],Xve=[3,q,Ej,0,[TG,dK,fK],[1,1,1]],Zve=[3,q,Dj,0,[TG,dK,fK],[[1,{[W]:`TcpEstablishedTimeout`,[K]:P_e}],[1,{[W]:`UdpStreamTimeout`,[K]:Z_e}],[1,{[W]:`UdpTimeout`,[K]:Q_e}]]],Qve=[3,q,Kpe,0,[eG,iG,JN,WM,uN,sF,QR,vH,HG,rj,Wj,U],[0,0,0,0,[0,{[W]:`DestinationRegion`,[K]:oY}],[2,{[W]:`Encrypted`,[K]:rX}],[0,{[W]:`KmsKeyId`,[K]:WX}],[()=>xve,{[W]:`PresignedUrl`,[K]:Dge}],[()=>c$,{[K]:GG}],1,0,[2,{[W]:`DryRun`,[K]:aY}]],2],$ve=[3,q,Jpe,0,[wG,AW],[[()=>s$,{[W]:`TagSet`,[K]:nQ}],[0,{[W]:`SnapshotId`,[K]:HZ}]]],eye=[3,q,uj,0,[nj,BG,FA,oV],[[1,{[W]:`CoreCount`,[K]:mJ}],[1,{[W]:`ThreadsPerCore`,[K]:U_e}],[0,{[W]:`AmdSevSnp`,[K]:Lq}],[0,{[W]:`NestedVirtualization`,[K]:Xhe}]]],tye=[3,q,jpe,0,[nj,BG,FA,oV],[1,1,0,0]],nye=[3,q,Spe,0,[KI,SB,HG,LW,U,JN,eV,YA],[[0,{[W]:`InstanceId`,[K]:kX}],[0,{[W]:`Name`,[K]:rZ}],[()=>c$,{[K]:GG}],0,[2,{[W]:`DryRun`,[K]:aY}],[0,{[W]:`Description`,[K]:mY}],[2,{[W]:`NoReboot`,[K]:qhe}],[()=>qQ,{[W]:`BlockDeviceMapping`,[K]:tJ}]],2],rye=[3,q,Cpe,0,[uL],[[0,{[W]:`ImageId`,[K]:NX}]]],iye=[3,q,bpe,0,[HG,U],[[()=>c$,{[K]:GG}],[2,{[W]:`DryRun`,[K]:aY}]]],aye=[3,q,xpe,0,[II],[[()=>OQ,{[W]:`InternetGateway`,[K]:DX}]]],oye=[3,q,Dpe,0,[ez,uz,HG,YR,U],[0,0,[()=>c$,{[K]:GG}],0,[2,{[W]:`DryRun`,[K]:aY}]],1],sye=[3,q,kpe,0,[jA,DA,Cj,U,IW,DK,zA,HG,kj,$V,LU,XW,ZW],[0,0,[0,4],2,0,0,[()=>tCe,{[K]:RA}],[()=>c$,{[K]:GG}],0,0,[()=>KQ,{[K]:RU}],[()=>BCe,{[K]:QW}],1]],cye=[3,q,Ape,0,[Cj,FB],[[0,{[W]:`ClientToken`,[K]:FJ}],[()=>kQ,{[W]:`NatGateway`,[K]:sZ}]]],lye=[3,q,Npe,0,[MV,HG,zW,vz,SV,U,HF,xG],[1,[()=>c$,{[K]:GG}],0,0,()=>AQ,[2,{[W]:`DryRun`,[K]:aY}],[0,{[W]:`GroupName`,[K]:mX}],[0,{[W]:`Strategy`,[K]:eQ}]]],uye=[3,q,Ppe,0,[UV],[[()=>NQ,{[W]:`PlacementGroup`,[K]:mge}]]],dye=[3,q,Fpe,0,[xU,QM,EK,DG,_z,ij,lj,hV,U,Xj,PF,iM,LP,KI,qB,UK,HB],[[0,{[W]:`RouteTableId`,[K]:FZ}],0,0,0,0,0,0,0,[2,{[W]:`DryRun`,[K]:aY}],[0,{[W]:`DestinationCidrBlock`,[K]:WJ}],[0,{[W]:`GatewayId`,[K]:fX}],[0,{[W]:`DestinationIpv6CidrBlock`,[K]:ZJ}],[0,{[W]:`EgressOnlyInternetGatewayId`,[K]:BY}],[0,{[W]:`InstanceId`,[K]:kX}],[0,{[W]:`NetworkInterfaceId`,[K]:lZ}],[0,{[W]:`VpcPeeringConnectionId`,[K]:mQ}],[0,{[W]:`NatGatewayId`,[K]:cZ}]],1],fye=[3,q,Ipe,0,[AH],[[2,{[W]:`Return`,[K]:kZ}]]],pye=[3,q,zpe,0,[DK,HG,Cj,U],[[0,{[W]:`VpcId`,[K]:dQ}],[()=>c$,{[K]:GG}],[0,4],[2,{[W]:`DryRun`,[K]:aY}]],1],mye=[3,q,Bpe,0,[DU,Cj],[[()=>FQ,{[W]:`RouteTable`,[K]:Yge}],[0,{[W]:`ClientToken`,[K]:FJ}]]],hye=[3,q,Wpe,0,[JN,HF,DK,HG,U],[[0,{[K]:AF}],0,0,[()=>c$,{[K]:GG}],[2,{[W]:`DryRun`,[K]:aY}]],2],gye=[3,q,Gpe,0,[RF,wG,YU],[[0,{[W]:`GroupId`,[K]:pX}],[()=>s$,{[W]:`TagSet`,[K]:nQ}],[0,{[W]:`SecurityGroupArn`,[K]:RZ}]]],_ye=[3,q,Ype,0,[NK,JN,cV,HG,Mz,U],[0,0,0,[()=>c$,{[K]:GG}],0,[2,{[W]:`DryRun`,[K]:aY}]],1],vye=[3,q,Xpe,0,[DK,HG,LA,BA,tj,TI,cV,kL,tL,LL,eL,IL,U],[0,[()=>c$,{[K]:GG}],0,0,0,0,0,2,0,1,0,1,[2,{[W]:`DryRun`,[K]:aY}]],1],yye=[3,q,Zpe,0,[SG],[[()=>zQ,{[W]:`Subnet`,[K]:M_e}]]],bye=[3,q,jj,0,[LA,BA,sF,qR,QR,cV,gG,AW,XK,HG,Nz,$G,Cj,AK,SV,U],[0,0,[2,{[W]:`Encrypted`,[K]:rX}],1,0,0,1,0,0,[()=>c$,{[K]:GG}],2,1,[0,4],1,()=>AQ,[2,{[W]:`DryRun`,[K]:aY}]]],xye=[3,q,Mj,0,[tj,cR,TI,tL,LL,eL,IL,DI,xK,HG,U,zR,Cfe],[0,0,0,0,1,0,1,0,()=>YSe,[()=>c$,{[K]:GG}],[2,{[W]:`DryRun`,[K]:aY}],[0,{[W]:`InstanceTenancy`,[K]:zX}],[2,{[W]:`AmazonProvidedIpv6CidrBlock`,[K]:kq}]]],Sye=[3,q,Nj,0,[aq],[[()=>HQ,{[W]:`Vpc`,[K]:pve}]]],Cye=[3,q,Qpe,0,[hpe],[0],1],wye=[3,q,Zj,0,[kN,PN,NN],[[1,{[W]:`DefaultTcpEstablishedTimeout`,[K]:sY}],[1,{[W]:`DefaultUdpTimeout`,[K]:fY}],[1,{[W]:`DefaultUdpStreamTimeout`,[K]:dY}]]],Tye=[3,q,oM,0,[VI,U],[[0,{[W]:`InternetGatewayId`,[K]:OX}],[2,{[W]:`DryRun`,[K]:aY}]],1],Eye=[3,q,AM,0,[ez,iz,U],[0,0,[2,{[W]:`DryRun`,[K]:aY}]]],Dye=[3,q,jM,0,[AH,iz],[[2,{[W]:`Return`,[K]:kZ}],[0,{[W]:`KeyPairId`,[K]:KX}]]],Oye=[3,q,zM,0,[HB,U],[[0,{[K]:HB}],2],1],kye=[3,q,BM,0,[HB],[[0,{[W]:`NatGatewayId`,[K]:cZ}]]],Aye=[3,q,JM,0,[HF,U],[[0,{[W]:`GroupName`,[K]:mX}],[2,{[W]:`DryRun`,[K]:aY}]],1],jye=[3,q,eN,0,[xU,QM,U,Xj,iM],[[0,{[W]:`RouteTableId`,[K]:FZ}],0,[2,{[W]:`DryRun`,[K]:aY}],[0,{[W]:`DestinationCidrBlock`,[K]:WJ}],[0,{[W]:`DestinationIpv6CidrBlock`,[K]:ZJ}]],1],Mye=[3,q,iN,0,[xU,U],[[0,{[W]:`RouteTableId`,[K]:FZ}],[2,{[W]:`DryRun`,[K]:aY}]],1],Nye=[3,q,mN,0,[RF,HF,U],[0,0,[2,{[W]:`DryRun`,[K]:aY}]]],Pye=[3,q,hN,0,[AH,RF],[[2,{[W]:`Return`,[K]:kZ}],[0,{[W]:`GroupId`,[K]:pX}]]],Fye=[3,q,yN,0,[AW,U],[0,[2,{[W]:`DryRun`,[K]:aY}]],1],Iye=[3,q,bN,0,[IW,U],[0,[2,{[W]:`DryRun`,[K]:aY}]],1],Lye=[3,q,IN,0,[NK,U],[0,[2,{[W]:`DryRun`,[K]:aY}]],1],Rye=[3,q,LN,0,[DK,U],[0,[2,{[W]:`DryRun`,[K]:aY}]],1],zye=[3,q,zj,0,[sH,U,SF,OA],[[()=>uwe,{[K]:YV}],[2,{[W]:`DryRun`,[K]:aY}],[()=>JQ,{[K]:CF}],[()=>KQ,{[K]:DA}]]],Bye=[3,q,Bj,0,[Zfe],[[()=>QSe,{[W]:`AddressesSet`,[K]:Rq}]]],Vye=[3,q,Gj,0,[mq,dq,nfe,U,SF],[[()=>Hwe,{[K]:fq}],[()=>Vwe,{[K]:lq}],2,[2,{[W]:`DryRun`,[K]:aY}],[()=>JQ,{[K]:CF}]]],Hye=[3,q,Kj,0,[Xfe],[[()=>rCe,{[W]:`AvailabilityZoneInfo`,[K]:Gq}]]],Uye=[3,q,mM,0,[vfe,SF,aB,aV],[[()=>eCe,{[K]:kA}],[()=>JQ,{[K]:CF}],1,0]],Wye=[3,q,hM,0,[$I,aV],[[()=>bCe,{[W]:`IamInstanceProfileAssociationSet`,[K]:Ome}],[0,{[W]:`NextToken`,[K]:fZ}]]],Gye=[3,q,yM,0,[iF,dL,wV,kI,NI,aB,aV,U,SF],[[()=>gCe,{[K]:eP}],[()=>xCe,{[K]:uL}],[()=>t$,{[K]:TV}],2,2,1,0,[2,{[W]:`DryRun`,[K]:aY}],[()=>JQ,{[K]:CF}]]],Kye=[3,q,bM,0,[aV,UR],[[0,{[W]:`NextToken`,[K]:fZ}],[()=>SCe,{[W]:`ImagesSet`,[K]:Zme}]]],qye=[3,q,xM,0,[fL,DL,U,SF,aV,aB],[[()=>ZQ,{[K]:KI}],2,[2,{[W]:`DryRun`,[K]:aY}],[()=>JQ,{[K]:CF}],[0,{[W]:`NextToken`,[K]:fZ}],[1,{[W]:`MaxResults`,[K]:QX}]]],Jye=[3,q,SM,0,[aV,NU],[[0,{[W]:`NextToken`,[K]:fZ}],[()=>mwe,{[W]:`ReservationSet`,[K]:Uge}]]],Yye=[3,q,CM,0,[U,BR,SF,aB,aV,HR],[2,[64,{[K]:FR}],[()=>JQ,{[K]:CF}],1,0,2]],Xye=[3,q,wM,0,[BR,aV],[[()=>ICe,{[W]:`InstanceTypeSet`,[K]:nhe}],[0,{[W]:`NextToken`,[K]:fZ}]]],Zye=[3,q,sM,0,[aV,aB,U,UI,SF],[0,1,[2,{[W]:`DryRun`,[K]:aY}],[()=>RCe,{[W]:`InternetGatewayId`,[K]:OX}],[()=>JQ,{[K]:CF}]]],Qye=[3,q,cM,0,[GI,aV],[[()=>zCe,{[W]:`InternetGatewaySet`,[K]:Dme}],[0,{[W]:`NextToken`,[K]:fZ}]]],$ye=[3,q,MM,0,[nz,oz,ZL,U,SF],[[()=>GCe,{[K]:ez}],[()=>KCe,{[K]:iz}],2,[2,{[W]:`DryRun`,[K]:aY}],[()=>JQ,{[K]:CF}]]],ebe=[3,q,NM,0,[rz],[[()=>qCe,{[W]:`KeySet`,[K]:she}]]],tbe=[3,q,VM,0,[U,CF,aB,WB,aV],[2,[()=>JQ,0],1,[()=>$Ce,{[K]:HB}],0]],nbe=[3,q,HM,0,[KB,aV],[[()=>ewe,{[W]:`NatGatewaySet`,[K]:Bhe}],[0,{[W]:`NextToken`,[K]:fZ}]]],rbe=[3,q,YM,0,[zF,U,WF,SF],[[()=>iwe,{[K]:RF}],[2,{[W]:`DryRun`,[K]:aY}],[64,{[W]:`GroupName`,[K]:mX}],[()=>JQ,{[K]:CF}]]],ibe=[3,q,XM,0,[JV],[[()=>awe,{[W]:`PlacementGroupSet`,[K]:gge}]]],abe=[3,q,tN,0,[oU,Afe,U,SF],[[()=>pwe,{[K]:iU}],2,[2,{[W]:`DryRun`,[K]:aY}],[()=>JQ,{[K]:CF}]]],obe=[3,q,nN,0,[AU],[[()=>fwe,{[W]:`RegionInfo`,[K]:zge}]]],sbe=[3,q,aN,0,[aV,aB,U,CU,SF],[0,1,[2,{[W]:`DryRun`,[K]:aY}],[()=>vwe,{[K]:xU}],[()=>JQ,{[K]:CF}]]],cbe=[3,q,oN,0,[OU,aV],[[()=>ywe,{[W]:`RouteTableSet`,[K]:Kge}],[0,{[W]:`NextToken`,[K]:fZ}]]],lbe=[3,q,gN,0,[zF,WF,aV,aB,U,SF],[[()=>XQ,{[K]:RF}],[()=>yCe,{[K]:HF}],0,1,[2,{[W]:`DryRun`,[K]:aY}],[()=>JQ,{[K]:CF}]]],ube=[3,q,_N,0,[aV,cW],[[0,{[W]:`NextToken`,[K]:fZ}],[()=>bwe,{[W]:`SecurityGroupInfo`,[K]:a_e}]]],dbe=[3,q,xN,0,[aB,aV,pV,NH,jW,U,SF],[1,0,[()=>t$,{[K]:TV}],[64,{[K]:PH}],[()=>Swe,{[K]:AW}],[2,{[W]:`DryRun`,[K]:aY}],[()=>JQ,{[K]:CF}]]],fbe=[3,q,SN,0,[aV,_G],[[0,{[W]:`NextToken`,[K]:fZ}],[()=>Cwe,{[W]:`SnapshotSet`,[K]:C_e}]]],pbe=[3,q,CN,0,[SF,uW,aV,aB,U],[[()=>JQ,{[K]:CF}],[()=>wwe,{[K]:IW}],0,1,[2,{[W]:`DryRun`,[K]:aY}]]],mbe=[3,q,wN,0,[aV,CG],[[0,{[W]:`NextToken`,[K]:fZ}],[()=>Ewe,{[W]:`SubnetSet`,[K]:w_e}]]],hbe=[3,q,RN,0,[PK,DL,U,SF,aV,aB],[[()=>Pwe,{[K]:NK}],2,[2,{[W]:`DryRun`,[K]:aY}],[()=>JQ,{[K]:CF}],[0,{[W]:`NextToken`,[K]:fZ}],[1,{[W]:`MaxResults`,[K]:QX}]]],gbe=[3,q,zN,0,[aV,rq],[[0,{[W]:`NextToken`,[K]:fZ}],[()=>Fwe,{[W]:`VolumeSet`,[K]:lve}]]],_be=[3,q,BN,0,[SF,FK,aV,aB,U],[[()=>JQ,{[K]:CF}],[()=>Lwe,{[K]:DK}],0,1,[2,{[W]:`DryRun`,[K]:aY}]]],vbe=[3,q,VN,0,[aV,oq],[[0,{[W]:`NextToken`,[K]:fZ}],[()=>zwe,{[W]:`VpcSet`,[K]:uve}]]],ybe=[3,q,lM,0,[VI,DK,U],[[0,{[W]:`InternetGatewayId`,[K]:OX}],[0,{[W]:`VpcId`,[K]:dQ}],[2,{[W]:`DryRun`,[K]:aY}]],2],bbe=[3,q,HN,0,[NK,YN,lF,KI,U],[0,0,2,0,[2,{[W]:`DryRun`,[K]:aY}]],1],xbe=[3,q,Vj,0,[kA,YV,U],[0,0,[2,{[W]:`DryRun`,[K]:aY}]]],Sbe=[3,q,gM,0,[kA],[0],1],Cbe=[3,q,_M,0,[ZI],[[()=>wQ,{[W]:`IamInstanceProfileAssociation`,[K]:jX}]]],wbe=[3,q,sN,0,[kA,U],[[0,{[W]:`AssociationId`,[K]:Cq}],[2,{[W]:`DryRun`,[K]:aY}]],1],Tbe=[3,q,OM,0,[pW,Rj,tK],[[1,{[W]:`SizeInGB`,[K]:c_e}],[1,{[W]:`Count`,[K]:HJ}],[0,{[W]:`Type`,[K]:oQ}]]],Ebe=[3,q,QN,0,[KM,qR,AW,YK,XK,QR,$G,cV,LA,sF,AK,BA,tP],[[2,{[W]:`DeleteOnTermination`,[K]:nY}],[1,{[W]:`Iops`,[K]:VX}],[0,{[W]:`SnapshotId`,[K]:HZ}],[1,{[W]:`VolumeSize`,[K]:hQ}],[0,{[W]:`VolumeType`,[K]:gQ}],[0,{[W]:`KmsKeyId`,[K]:WX}],[1,{[W]:`Throughput`,[K]:iQ}],[0,{[W]:`OutpostArn`,[K]:pZ}],[0,{[W]:`AvailabilityZone`,[K]:Uq}],[2,{[W]:`Encrypted`,[K]:rX}],1,0,1]],Dbe=[3,q,rP,0,[tP,qA,$A,XA,Iz,dB,Jz],[[1,{[W]:`EbsCardIndex`,[K]:vY}],[1,{[W]:`BaselineBandwidthInMbps`,[K]:eJ}],[1,{[W]:`BaselineThroughputInMBps`,[K]:sJ}],[1,{[W]:`BaselineIops`,[K]:nJ}],[1,{[W]:`MaximumBandwidthInMbps`,[K]:JX}],[1,{[W]:`MaximumThroughputInMBps`,[K]:eZ}],[1,{[W]:`MaximumIops`,[K]:YX}]]],Obe=[3,q,AP,0,[zP,tF,PP,tV,Uz,bfe,Wz,iP],[[0,{[W]:`EbsOptimizedSupport`,[K]:VY}],[0,{[W]:`EncryptionSupport`,[K]:QY}],[()=>jbe,{[W]:`EbsOptimizedInfo`,[K]:RY}],[0,{[W]:`NvmeSupport`,[K]:dZ}],[1,{[W]:`MaximumEbsAttachments`,[K]:xhe}],[0,{[W]:`AttachmentLimitType`,[K]:Eq}],[1,{[W]:`MaximumEbsCards`,[K]:She}],[()=>dCe,{[W]:`EbsCardSet`,[K]:yY}]]],kbe=[3,q,DP,0,[IA,KM,bG,NK,MA,HK,SV,tP],[[4,{[W]:`AttachTime`,[K]:Hq}],[2,{[W]:`DeleteOnTermination`,[K]:nY}],[0,{[W]:`Status`,[K]:$Z}],[0,{[W]:`VolumeId`,[K]:fQ}],[0,{[W]:`AssociatedResource`,[K]:Nq}],[0,{[W]:`VolumeOwnerId`,[K]:ove}],[()=>jQ,{[W]:`Operator`,[K]:gZ}],[1,{[W]:`EbsCardIndex`,[K]:vY}]]],Abe=[3,q,OP,0,[NK,KM],[[0,{[W]:`VolumeId`,[K]:fQ}],[2,{[W]:`DeleteOnTermination`,[K]:nY}]]],jbe=[3,q,PP,0,[qA,$A,XA,Iz,dB,Jz],[[1,{[W]:`BaselineBandwidthInMbps`,[K]:eJ}],[1,{[W]:`BaselineThroughputInMBps`,[K]:sJ}],[1,{[W]:`BaselineIops`,[K]:nJ}],[1,{[W]:`MaximumBandwidthInMbps`,[K]:JX}],[1,{[W]:`MaximumThroughputInMBps`,[K]:eZ}],[1,{[W]:`MaximumIops`,[K]:YX}]]],Mbe=[3,q,jP,0,[Gz],[[1,{[W]:`MaximumEfaInterfaces`,[K]:Che}]]],Nbe=[3,q,lP,0,[hP,uP,fP,pP],[[0,{[W]:`ElasticGpuId`,[K]:DY}],[0,{[W]:`ElasticGpuAssociationId`,[K]:CY}],[0,{[W]:`ElasticGpuAssociationState`,[K]:wY}],[0,{[W]:`ElasticGpuAssociationTime`,[K]:EY}]]],Pbe=[3,q,gP,0,[tK],[0],1],Fbe=[3,q,vP,0,[tK,Rj],[0,1],1],Ibe=[3,q,yP,0,[wP,bP,SP,CP],[[0,{[W]:`ElasticInferenceAcceleratorArn`,[K]:OY}],[0,{[W]:`ElasticInferenceAcceleratorAssociationId`,[K]:kY}],[0,{[W]:`ElasticInferenceAcceleratorAssociationState`,[K]:AY}],[4,{[W]:`ElasticInferenceAcceleratorAssociationTime`,[K]:MY}]]],Lbe=[3,q,YP,0,[qP,QP],[2,()=>Rbe]],Rbe=[3,q,$P,0,[ZP],[2]],zbe=[3,q,BP,0,[oF],[[2,{[W]:`Enabled`,[K]:nX}]]],Bbe=[3,q,RP,0,[oF],[2]],Vbe=[3,q,CF,0,[SB,tq],[0,[()=>jwe,{[K]:pK}]]],Hbe=[3,q,dF,0,[SB,gB,Rj,Qz],[[0,{[W]:`Name`,[K]:rZ}],[0,{[W]:`Manufacturer`,[K]:tZ}],[1,{[W]:`Count`,[K]:HJ}],[()=>Ube,{[W]:`MemoryInfo`,[K]:XX}]]],Ube=[3,q,pF,0,[_W],[[1,{[W]:`SizeInMiB`,[K]:VZ}]]],Wbe=[3,q,hF,0,[wF,EG],[[()=>_Ce,{[W]:`Fpgas`,[K]:eme}],[1,{[W]:`TotalFpgaMemoryInMiB`,[K]:F_e}]]],Gbe=[3,q,OF,0,[KI,kz,U],[0,2,[2,{[W]:`DryRun`,[K]:aY}]],1],Kbe=[3,q,kF,0,[KI,eK,CV],[[0,{[W]:`InstanceId`,[K]:kX}],[4,{[W]:`Timestamp`,[K]:aQ}],[0,{[W]:`Output`,[K]:age}]]],qbe=[3,q,jF,0,[SB,gB,Rj,gz,KF,cq,Qz],[[0,{[W]:`Name`,[K]:rZ}],[0,{[W]:`Manufacturer`,[K]:tZ}],[1,{[W]:`Count`,[K]:HJ}],[1,{[W]:`LogicalGpuCount`,[K]:dhe}],[1,{[W]:`GpuPartitionSize`,[K]:ome}],[()=>Bwe,{[W]:`WorkloadSet`,[K]:mve}],[()=>Jbe,{[W]:`MemoryInfo`,[K]:XX}]]],Jbe=[3,q,NF,0,[_W],[[1,{[W]:`SizeInMiB`,[K]:VZ}]]],Ybe=[3,q,LF,0,[JF,OG],[[()=>vCe,{[W]:`Gpus`,[K]:sme}],[1,{[W]:`TotalGpuMemoryInMiB`,[K]:L_e}]]],Xbe=[3,q,BF,0,[RF,HF],[[0,{[W]:`GroupId`,[K]:pX}],[0,{[W]:`GroupName`,[K]:mX}]]],Zbe=[3,q,QF,0,[Lj],[[2,{[W]:`Configured`,[K]:VJ}]]],Qbe=[3,q,$F,0,[Lj],[2]],CQ=[3,q,XI,0,[HA,cI],[[0,{[W]:`Arn`,[K]:Jq}],[0,{[W]:`Id`,[K]:vme}]]],wQ=[3,q,ZI,0,[kA,KI,XI,yG,eK],[[0,{[W]:`AssociationId`,[K]:Cq}],[0,{[W]:`InstanceId`,[K]:kX}],[()=>CQ,{[W]:`IamInstanceProfile`,[K]:AX}],[0,{[W]:`State`,[K]:QZ}],[4,{[W]:`Timestamp`,[K]:aQ}]]],TQ=[3,q,iL,0,[HA,SB],[[0,{[W]:`Arn`,[K]:Jq}],[0,{[W]:`Name`,[K]:rZ}]]],$be=[3,q,WR,0,[HV,lK,YA,JN,nF,sI,BL,SB,FH,IH,KW,tG,wG,$K,ZA,qG,jN,jR,gW,$M,bz,vI,mW,yW,xF,uL,gL,yG,uV,gpe,kH,PV,UA,RR,ZR,JH,wH],[[0,{[W]:`PlatformDetails`,[K]:yZ}],[0,{[W]:`UsageOperation`,[K]:lQ}],[()=>sCe,{[W]:`BlockDeviceMapping`,[K]:tJ}],[0,{[W]:`Description`,[K]:mY}],[2,{[W]:`EnaSupport`,[K]:$Y}],[0,{[W]:`Hypervisor`,[K]:_X}],[0,{[W]:`ImageOwnerAlias`,[K]:Nme}],[0,{[W]:`Name`,[K]:rZ}],[0,{[W]:`RootDeviceName`,[K]:AZ}],[0,{[W]:`RootDeviceType`,[K]:jZ}],[0,{[W]:`SriovNetSupport`,[K]:KZ}],[()=>RQ,{[W]:`StateReason`,[K]:qZ}],[()=>s$,{[W]:`TagSet`,[K]:nQ}],[0,{[W]:`VirtualizationType`,[K]:_Q}],[0,{[W]:`BootMode`,[K]:rJ}],[0,{[W]:`TpmSupport`,[K]:rQ}],[0,{[W]:`DeprecationTime`,[K]:lY}],[0,{[W]:`ImdsSupport`,[K]:$me}],[0,{[W]:`SourceInstanceId`,[K]:l_e}],[0,{[W]:`DeregistrationProtection`,[K]:iY}],[0,{[W]:`LastLaunchedTime`,[K]:mhe}],[2,{[W]:`ImageAllowed`,[K]:wme}],[0,{[W]:`SourceImageId`,[K]:d_e}],[0,{[W]:`SourceImageRegion`,[K]:f_e}],[2,{[W]:`FreeTierEligible`,[K]:dX}],[0,{[W]:`ImageId`,[K]:NX}],[0,{[W]:`ImageLocation`,[K]:kme}],[0,{[W]:`ImageState`,[K]:Qme}],[0,{[W]:`ImageOwnerId`,[K]:Pme}],[0,{[W]:`CreationDate`,[K]:gJ}],[2,{[W]:`IsPublic`,[K]:Gme}],[()=>n$,{[W]:`ProductCodes`,[K]:_Z}],[0,{[W]:`Architecture`,[K]:Yq}],[0,{[W]:`ImageType`,[K]:ihe}],[0,{[W]:`KernelId`,[K]:UX}],[0,{[W]:`RamdiskId`,[K]:MZ}],[0,{[W]:`Platform`,[K]:EZ}]]],exe=[3,q,mL,0,[ez,lH,HG,U],[[0,{[W]:`KeyName`,[K]:GX}],[21,{[W]:`PublicKeyMaterial`,[K]:xge}],[()=>c$,{[K]:GG}],[2,{[W]:`DryRun`,[K]:aY}]],2],txe=[3,q,hL,0,[XR,ez,iz,wG],[[0,{[W]:`KeyFingerprint`,[K]:HX}],[0,{[W]:`KeyName`,[K]:GX}],[0,{[W]:`KeyPairId`,[K]:KX}],[()=>s$,{[W]:`TagSet`,[K]:nQ}]]],nxe=[3,q,mI,0,[VA,AG],[[()=>CCe,{[W]:`Accelerators`,[K]:Kq}],[1,{[W]:`TotalInferenceMemoryInMiB`,[K]:R_e}]]],rxe=[3,q,AI,0,[Rj,SB,gB,Qz],[[1,{[W]:`Count`,[K]:HJ}],[0,{[W]:`Name`,[K]:rZ}],[0,{[W]:`Manufacturer`,[K]:tZ}],[()=>ixe,{[W]:`MemoryInfo`,[K]:XX}]]],ixe=[3,q,MI,0,[_W],[[1,{[W]:`SizeInMiB`,[K]:VZ}]]],axe=[3,q,GR,0,[UA,YA,Cj,NP,nF,sI,XI,vL,mP,TP,YB,cV,FH,IH,cW,GU,vW,KW,tG,wG,$K,uj,fpe,pj,gj,QF,jz,tB,BP,ZA,HV,lK,uK,LV,bI,qG,nB,vpe,QB,SV,OW,KI,uL,yG,IV,VV,cG,ez,yfe,PV,FR,Oz,TH,ZR,JH,wH,xB,IW,DK,$V,tH],[[0,{[W]:`Architecture`,[K]:Yq}],[()=>wCe,{[W]:`BlockDeviceMapping`,[K]:tJ}],[0,{[W]:`ClientToken`,[K]:FJ}],[2,{[W]:`EbsOptimized`,[K]:LY}],[2,{[W]:`EnaSupport`,[K]:$Y}],[0,{[W]:`Hypervisor`,[K]:_X}],[()=>CQ,{[W]:`IamInstanceProfile`,[K]:AX}],[0,{[W]:`InstanceLifecycle`,[K]:Ame}],[()=>fCe,{[W]:`ElasticGpuAssociationSet`,[K]:TY}],[()=>mCe,{[W]:`ElasticInferenceAcceleratorAssociationSet`,[K]:jY}],[()=>kCe,{[W]:`NetworkInterfaceSet`,[K]:Hhe}],[0,{[W]:`OutpostArn`,[K]:pZ}],[0,{[W]:`RootDeviceName`,[K]:AZ}],[0,{[W]:`RootDeviceType`,[K]:jZ}],[()=>YQ,{[W]:`GroupSet`,[K]:gX}],[2,{[W]:`SourceDestCheck`,[K]:LZ}],[0,{[W]:`SpotInstanceRequestId`,[K]:p_e}],[0,{[W]:`SriovNetSupport`,[K]:KZ}],[()=>RQ,{[W]:`StateReason`,[K]:qZ}],[()=>s$,{[W]:`TagSet`,[K]:nQ}],[0,{[W]:`VirtualizationType`,[K]:_Q}],[()=>eye,{[W]:`CpuOptions`,[K]:EJ}],[0,{[W]:`CapacityBlockId`,[K]:fJ}],[0,{[W]:`CapacityReservationId`,[K]:kJ}],[()=>qve,{[W]:`CapacityReservationSpecification`,[K]:MJ}],[()=>Zbe,{[W]:`HibernationOptions`,[K]:fme}],[()=>JCe,{[W]:`LicenseSet`,[K]:hhe}],[()=>_xe,{[W]:`MetadataOptions`,[K]:Dhe}],[()=>zbe,{[W]:`EnclaveOptions`,[K]:HY}],[0,{[W]:`BootMode`,[K]:rJ}],[0,{[W]:`PlatformDetails`,[K]:yZ}],[0,{[W]:`UsageOperation`,[K]:lQ}],[4,{[W]:`UsageOperationUpdateTime`,[K]:X_e}],[()=>dSe,{[W]:`PrivateDnsNameOptions`,[K]:dge}],[0,{[W]:`Ipv6Address`,[K]:SX}],[0,{[W]:`TpmSupport`,[K]:rQ}],[()=>pxe,{[W]:`MaintenanceOptions`,[K]:Ohe}],[0,{[W]:`CurrentInstanceBootMode`,[K]:bJ}],[()=>xxe,{[W]:`NetworkPerformanceOptions`,[K]:Khe}],[()=>jQ,{[W]:`Operator`,[K]:gZ}],[()=>MCe,{[W]:`SecondaryInterfaceSet`,[K]:h_e}],[0,{[W]:`InstanceId`,[K]:kX}],[0,{[W]:`ImageId`,[K]:NX}],[()=>DQ,{[W]:`InstanceState`,[K]:ehe}],[0,{[W]:`PrivateDnsName`,[K]:vZ}],[0,{[W]:`DnsName`,[K]:eY}],[0,{[W]:`Reason`,[K]:Zge}],[0,{[W]:`KeyName`,[K]:GX}],[1,{[W]:`AmiLaunchIndex`,[K]:Tq}],[()=>n$,{[W]:`ProductCodes`,[K]:_Z}],[0,{[W]:`InstanceType`,[K]:RX}],[4,{[W]:`LaunchTime`,[K]:ghe}],[()=>MQ,{[W]:`Placement`,[K]:jge}],[0,{[W]:`KernelId`,[K]:UX}],[0,{[W]:`RamdiskId`,[K]:MZ}],[0,{[W]:`Platform`,[K]:EZ}],[()=>Zxe,{[W]:`Monitoring`,[K]:Phe}],[0,{[W]:`SubnetId`,[K]:UZ}],[0,{[W]:`VpcId`,[K]:dQ}],[0,{[W]:`PrivateIpAddress`,[K]:SZ}],[0,{[W]:`IpAddress`,[K]:xX}]]],oxe=[3,q,fI,0,[qP,QP],[[2,{[W]:`EnaSrdEnabled`,[K]:KY}],[()=>sxe,{[W]:`EnaSrdUdpSpecification`,[K]:XY}]]],sxe=[3,q,pI,0,[ZP],[[2,{[W]:`EnaSrdUdpEnabled`,[K]:YY}]]],cxe=[3,q,xI,0,[IM,aF],[[0,{[W]:`DeviceName`,[K]:QJ}],[()=>kbe,{[W]:`Ebs`,[K]:tX}]]],lxe=[3,q,CI,0,[IM,aF,VK,OB],[[0,{[W]:`DeviceName`,[K]:QJ}],[()=>Abe,{[W]:`Ebs`,[K]:tX}],[0,{[W]:`VirtualName`,[K]:pQ}],[0,{[W]:`NoDevice`,[K]:oZ}]]],uxe=[3,q,aL,0,[uR],[[0,{[W]:`Ipv4Prefix`,[K]:Hme}]]],dxe=[3,q,qI,0,[bI,XL],[[0,{[W]:`Ipv6Address`,[K]:SX}],[2,{[W]:`IsPrimaryIpv6`,[K]:zme}]]],fxe=[3,q,oL,0,[sR],[[0,{[W]:`Ipv6Prefix`,[K]:Wme}]]],pxe=[3,q,xL,0,[NA,rU],[[0,{[W]:`AutoRecovery`,[K]:Pq}],[0,{[W]:`RebootMigration`,[K]:Hge}]]],mxe=[3,q,SL,0,[NA],[0]],hxe=[3,q,CL,0,[uB,JW],[0,()=>NSe]],gxe=[3,q,wL,0,[iI,tI,XF,eI,OL],[0,1,0,0,0]],_xe=[3,q,TL,0,[yG,iI,tI,XF,eI,OL],[[0,{[W]:`State`,[K]:QZ}],[0,{[W]:`HttpTokens`,[K]:_me}],[1,{[W]:`HttpPutResponseHopLimit`,[K]:mme}],[0,{[W]:`HttpEndpoint`,[K]:ume}],[0,{[W]:`HttpProtocolIpv6`,[K]:pme}],[0,{[W]:`InstanceMetadataTags`,[K]:jme}]]],vxe=[3,q,AL,0,[WA,GA,JN,TF,lI,Fz,qB,uV,IV,$V,eH,GU,bG,IW,DK,VR,lR,rR,wj,SV],[[()=>EQ,{[W]:`Association`,[K]:Xq}],[()=>yxe,{[W]:`Attachment`,[K]:Zq}],[0,{[W]:`Description`,[K]:mY}],[()=>YQ,{[W]:`GroupSet`,[K]:gX}],[()=>QQ,{[W]:`Ipv6AddressesSet`,[K]:bX}],[0,{[W]:`MacAddress`,[K]:qX}],[0,{[W]:`NetworkInterfaceId`,[K]:lZ}],[0,{[W]:`OwnerId`,[K]:mZ}],[0,{[W]:`PrivateDnsName`,[K]:vZ}],[0,{[W]:`PrivateIpAddress`,[K]:SZ}],[()=>jCe,{[W]:`PrivateIpAddressesSet`,[K]:xZ}],[2,{[W]:`SourceDestCheck`,[K]:LZ}],[0,{[W]:`Status`,[K]:$Z}],[0,{[W]:`SubnetId`,[K]:UZ}],[0,{[W]:`VpcId`,[K]:dQ}],[0,{[W]:`InterfaceType`,[K]:BX}],[()=>ECe,{[W]:`Ipv4PrefixSet`,[K]:Bme}],[()=>DCe,{[W]:`Ipv6PrefixSet`,[K]:Vme}],[()=>Zve,{[W]:`ConnectionTrackingConfiguration`,[K]:IJ}],[()=>jQ,{[W]:`Operator`,[K]:gZ}]]],EQ=[3,q,jL,0,[aj,dj,VL,VV,YV],[[0,{[W]:`CarrierIp`,[K]:yJ}],[0,{[W]:`CustomerOwnedIp`,[K]:DJ}],[0,{[W]:`IpOwnerId`,[K]:Ime}],[0,{[W]:`PublicDnsName`,[K]:pge}],[0,{[W]:`PublicIp`,[K]:bZ}]]],yxe=[3,q,ML,0,[IA,AA,KM,rM,bG,TB,JP,HP],[[4,{[W]:`AttachTime`,[K]:Hq}],[0,{[W]:`AttachmentId`,[K]:wq}],[2,{[W]:`DeleteOnTermination`,[K]:nY}],[1,{[W]:`DeviceIndex`,[K]:XJ}],[0,{[W]:`Status`,[K]:$Z}],[1,{[W]:`NetworkCardIndex`,[K]:aZ}],[()=>oxe,{[W]:`EnaSrdSpecification`,[K]:qY}],[1,{[W]:`EnaQueueCount`,[K]:UY}]]],bxe=[3,q,PL,0,[Sfe,KM,JN,rM,TF,dI,lI,qB,$V,eH,ZW,IW,cfe,VR,TB,lR,GL,rR,WL,iH,JP,Tj,HP],[[2,{[W]:`AssociatePublicIpAddress`,[K]:Oq}],[2,{[W]:`DeleteOnTermination`,[K]:nY}],[0,{[W]:`Description`,[K]:mY}],[1,{[W]:`DeviceIndex`,[K]:XJ}],[()=>i$,{[K]:XU}],[1,{[W]:`Ipv6AddressCount`,[K]:yme}],[()=>QQ,{[W]:`Ipv6Addresses`,[K]:bX}],[0,{[W]:`NetworkInterfaceId`,[K]:lZ}],[0,{[W]:`PrivateIpAddress`,[K]:SZ}],[()=>cwe,{[W]:`PrivateIpAddresses`,[K]:xZ}],[1,{[W]:`SecondaryPrivateIpAddressCount`,[K]:b_e}],[0,{[W]:`SubnetId`,[K]:UZ}],2,0,1,[()=>HCe,{[K]:uR}],1,[()=>UCe,{[K]:sR}],1,2,()=>Lbe,()=>Xve,1]],xxe=[3,q,RL,0,[ej],[[0,{[W]:`BandwidthWeighting`,[K]:cJ}]]],Sxe=[3,q,zL,0,[ej],[0]],Cxe=[3,q,JL,0,[WA,EH,IV,$V],[[()=>EQ,{[W]:`Association`,[K]:Xq}],[2,{[W]:`Primary`,[K]:DZ}],[0,{[W]:`PrivateDnsName`,[K]:vZ}],[0,{[W]:`PrivateIpAddress`,[K]:SZ}]]],wxe=[3,q,OR,0,[GA,Fz,hW,uV,eH,GU,bG,aG,GW,VR],[[()=>Txe,{[W]:`Attachment`,[K]:Zq}],[0,{[W]:`MacAddress`,[K]:qX}],[0,{[W]:`SecondaryInterfaceId`,[K]:u_e}],[0,{[W]:`OwnerId`,[K]:mZ}],[()=>NCe,{[W]:`PrivateIpAddressSet`,[K]:_ge}],[2,{[W]:`SourceDestCheck`,[K]:LZ}],[0,{[W]:`Status`,[K]:$Z}],[0,{[W]:`SecondarySubnetId`,[K]:S_e}],[0,{[W]:`SecondaryNetworkId`,[K]:v_e}],[0,{[W]:`InterfaceType`,[K]:BX}]]],Txe=[3,q,bR,0,[IA,AA,KM,rM,bG,TB],[[4,{[W]:`AttachTime`,[K]:Hq}],[0,{[W]:`AttachmentId`,[K]:wq}],[2,{[W]:`DeleteOnTermination`,[K]:nY}],[1,{[W]:`DeviceIndex`,[K]:XJ}],[0,{[W]:`Status`,[K]:$Z}],[1,{[W]:`NetworkCardIndex`,[K]:aZ}]]],Exe=[3,q,SR,0,[$V],[[0,{[W]:`PrivateIpAddress`,[K]:SZ}]]],Dxe=[3,q,TR,0,[$V],[0],1],Oxe=[3,q,DR,0,[KM,rM,eH,XV,aG,VR,TB],[2,1,[()=>PCe,{[K]:$V}],1,0,0,1]],DQ=[3,q,MR,0,[Ij,SB],[[1,{[W]:`Code`,[K]:BJ}],[0,{[W]:`Name`,[K]:rZ}]]],kxe=[3,q,vR,0,[KI,Sj,gH],[[0,{[W]:`InstanceId`,[K]:kX}],[()=>DQ,{[W]:`CurrentState`,[K]:PJ}],[()=>DQ,{[W]:`PreviousState`,[K]:Tge}]]],Axe=[3,q,kR,0,[UG,XN,tV,tF],[[1,{[W]:`TotalSizeInGB`,[K]:W_e}],[()=>uCe,{[W]:`Disks`,[K]:gY}],[0,{[W]:`NvmeSupport`,[K]:dZ}],[0,{[W]:`EncryptionSupport`,[K]:QY}]]],jxe=[3,q,LR,0,[FR,_pe,xF,dG,$W,mG,spe,sI,oH,yK,Qz,AR,kR,AP,XB,LF,hF,WV,mI,rI,cpe,nM,Tfe,HU,PB,rV,nV,Pz,ZB,hH,nU,wW],[[0,{[W]:`InstanceType`,[K]:RX}],[2,{[W]:`CurrentGeneration`,[K]:vJ}],[2,{[W]:`FreeTierEligible`,[K]:dX}],[()=>kwe,{[W]:`SupportedUsageClasses`,[K]:D_e}],[()=>hwe,{[W]:`SupportedRootDeviceTypes`,[K]:x_e}],[()=>Mwe,{[W]:`SupportedVirtualizationTypes`,[K]:k_e}],[2,{[W]:`BareMetal`,[K]:iJ}],[0,{[W]:`Hypervisor`,[K]:_X}],[()=>pSe,{[W]:`ProcessorInfo`,[K]:vge}],[()=>GSe,{[W]:`VCpuInfo`,[K]:$_e}],[()=>Kxe,{[W]:`MemoryInfo`,[K]:XX}],[2,{[W]:`InstanceStorageSupported`,[K]:Xme}],[()=>Axe,{[W]:`InstanceStorageInfo`,[K]:Yme}],[()=>Obe,{[W]:`EbsInfo`,[K]:PY}],[()=>tSe,{[W]:`NetworkInfo`,[K]:Whe}],[()=>Ybe,{[W]:`GpuInfo`,[K]:rme}],[()=>Wbe,{[W]:`FpgaInfo`,[K]:oX}],[()=>sSe,{[W]:`PlacementGroupInfo`,[K]:hge}],[()=>nxe,{[W]:`InferenceAcceleratorInfo`,[K]:bme}],[2,{[W]:`HibernationSupported`,[K]:gme}],[2,{[W]:`BurstablePerformanceSupported`,[K]:oJ}],[2,{[W]:`DedicatedHostsSupported`,[K]:YJ}],[2,{[W]:`AutoRecoverySupported`,[K]:jq}],[()=>cCe,{[W]:`SupportedBootModes`,[K]:t_e}],[0,{[W]:`NitroEnclavesSupport`,[K]:Rhe}],[0,{[W]:`NitroTpmSupport`,[K]:Yhe}],[()=>oSe,{[W]:`NitroTpmInfo`,[K]:Jhe}],[()=>Uxe,{[W]:`MediaAcceleratorInfo`,[K]:yhe}],[()=>aSe,{[W]:`NeuronInfo`,[K]:Ghe}],[0,{[W]:`PhcSupport`,[K]:wge}],[0,{[W]:`RebootMigrationSupport`,[K]:Vge}],[2,{[W]:`SupportedInRegion`,[K]:m_e}]]],OQ=[3,q,II,0,[KA,VI,uV,wG],[[()=>LCe,{[W]:`AttachmentSet`,[K]:Bq}],[0,{[W]:`InternetGatewayId`,[K]:OX}],[0,{[W]:`OwnerId`,[K]:mZ}],[()=>s$,{[W]:`TagSet`,[K]:nQ}]]],Mxe=[3,q,LI,0,[yG,DK],[[0,{[W]:`State`,[K]:QZ}],[0,{[W]:`VpcId`,[K]:dQ}]]],Nxe=[3,q,aR,0,[oR,vF,zG,aK,mR,gR,fH],[[0,{[W]:`IpProtocol`,[K]:PX}],[1,{[W]:`FromPort`,[K]:cX}],[1,{[W]:`ToPort`,[K]:tQ}],[()=>Awe,{[W]:`Groups`,[K]:cme}],[()=>VCe,{[W]:`IpRanges`,[K]:qme}],[()=>WCe,{[W]:`Ipv6Ranges`,[K]:Jme}],[()=>swe,{[W]:`PrefixListIds`,[K]:Sge}]]],Pxe=[3,q,hR,0,[JN,oj],[[0,{[W]:`Description`,[K]:mY}],[0,{[W]:`CidrIp`,[K]:xJ}]]],Fxe=[3,q,tR,0,[uR],[0]],Ixe=[3,q,nR,0,[sR],[0]],Lxe=[3,q,_R,0,[JN,sj],[[0,{[W]:`Description`,[K]:mY}],[0,{[W]:`CidrIpv6`,[K]:SJ}]]],Rxe=[3,q,lz,0,[iz,wG,ez,XR,$R],[[0,{[W]:`KeyPairId`,[K]:KX}],[()=>s$,{[W]:`TagSet`,[K]:nQ}],[0,{[W]:`KeyName`,[K]:GX}],[0,{[W]:`KeyFingerprint`,[K]:HX}],[()=>wve,{[W]:`KeyMaterial`,[K]:ohe}]]],zxe=[3,q,sz,0,[iz,uz,wG,cH,Aj,ez,XR],[[0,{[W]:`KeyPairId`,[K]:KX}],[0,{[W]:`KeyType`,[K]:che}],[()=>s$,{[W]:`TagSet`,[K]:nQ}],[0,{[W]:`PublicKey`,[K]:bge}],[4,{[W]:`CreateTime`,[K]:zJ}],[0,{[W]:`KeyName`,[K]:GX}],[0,{[W]:`KeyFingerprint`,[K]:HX}]]],Bxe=[3,q,Dz,0,[Tz,Ez,nq],[0,0,0]],Vxe=[3,q,mz,0,[fz],[[0,{[W]:`LicenseConfigurationArn`,[K]:uhe}]]],Hxe=[3,q,pz,0,[fz],[0]],Uxe=[3,q,Pz,0,[VA,LG],[[()=>XCe,{[W]:`Accelerators`,[K]:Kq}],[1,{[W]:`TotalMediaMemoryInMiB`,[K]:V_e}]]],Wxe=[3,q,Bz,0,[Rj,SB,gB,Qz],[[1,{[W]:`Count`,[K]:HJ}],[0,{[W]:`Name`,[K]:rZ}],[0,{[W]:`Manufacturer`,[K]:tZ}],[()=>Gxe,{[W]:`MemoryInfo`,[K]:XX}]]],Gxe=[3,q,Hz,0,[_W],[[1,{[W]:`SizeInMiB`,[K]:VZ}]]],Kxe=[3,q,Qz,0,[_W],[[1,{[W]:`SizeInMiB`,[K]:VZ}]]],qxe=[3,q,Yz,0,[KI,GU,Hj,U,epe,pK,YA,Uj,FR,dz,kU,rK,sL,TF,NP,KW,nF],[[0,{[W]:`InstanceId`,[K]:kX}],[()=>yQ,0],[()=>yQ,0],[2,{[W]:`DryRun`,[K]:aY}],[0,{[W]:`Attribute`,[K]:Qq}],[()=>Sve,{[W]:`Value`,[K]:uQ}],[()=>TCe,{[W]:`BlockDeviceMapping`,[K]:tJ}],[()=>yQ,{[W]:`DisableApiTermination`,[K]:UJ}],[()=>bQ,{[W]:`InstanceType`,[K]:RX}],[()=>bQ,{[W]:`Kernel`,[K]:lhe}],[()=>bQ,{[W]:`Ramdisk`,[K]:Xge}],[()=>Gve,{[W]:`UserData`,[K]:Y_e}],[()=>bQ,{[W]:`InstanceInitiatedShutdownBehavior`,[K]:MX}],[()=>XQ,{[K]:RF}],[()=>yQ,{[W]:`EbsOptimized`,[K]:LY}],[()=>bQ,{[W]:`SriovNetSupport`,[K]:KZ}],[()=>yQ,{[W]:`EnaSupport`,[K]:$Y}]],1],Jxe=[3,q,oB,0,[IW,TA,rB,Lz,fj,oP,FV,KP,WP,MP,FM],[[0,{[W]:`SubnetId`,[K]:UZ}],[()=>yQ,0],[()=>yQ,0],[()=>yQ,0],0,[()=>yQ,0],0,[()=>yQ,0],[()=>yQ,0],1,[()=>yQ,0]],1],Yxe=[3,q,fB,0,[NK,U,gG,XK,qR,$G,Nz],[0,2,1,0,1,1,2],1],Xxe=[3,q,pB,0,[BK],[[()=>KSe,{[W]:`VolumeModification`,[K]:ave}]]],Zxe=[3,q,xB,0,[yG],[[0,{[W]:`State`,[K]:QZ}]]],kQ=[3,q,FB,0,[Aj,MN,uF,_F,IB,HB,DV,yG,IW,DK,wG,kj,jA,Lfe,wfe,ofe,xU],[[4,{[W]:`CreateTime`,[K]:zJ}],[4,{[W]:`DeleteTime`,[K]:uY}],[0,{[W]:`FailureCode`,[K]:iX}],[0,{[W]:`FailureMessage`,[K]:sX}],[()=>ZCe,{[W]:`NatGatewayAddressSet`,[K]:zhe}],[0,{[W]:`NatGatewayId`,[K]:cZ}],[()=>gSe,{[W]:`ProvisionedBandwidth`,[K]:sge}],[0,{[W]:`State`,[K]:QZ}],[0,{[W]:`SubnetId`,[K]:UZ}],[0,{[W]:`VpcId`,[K]:dQ}],[()=>s$,{[W]:`TagSet`,[K]:nQ}],[0,{[W]:`ConnectivityType`,[K]:RJ}],[0,{[W]:`AvailabilityMode`,[K]:Dq}],[0,{[W]:`AutoScalingIps`,[K]:Iq}],[0,{[W]:`AutoProvisionZones`,[K]:Aq}],[()=>QCe,{[W]:`AttachedApplianceSet`,[K]:gq}],[0,{[W]:`RouteTableId`,[K]:FZ}]]],Qxe=[3,q,BB,0,[DA,qB,aH,YV,kA,dR,_F,bG,LA,BA],[[0,{[W]:`AllocationId`,[K]:yq}],[0,{[W]:`NetworkInterfaceId`,[K]:lZ}],[0,{[W]:`PrivateIp`,[K]:yge}],[0,{[W]:`PublicIp`,[K]:bZ}],[0,{[W]:`AssociationId`,[K]:Cq}],[2,{[W]:`IsPrimary`,[K]:Kme}],[0,{[W]:`FailureMessage`,[K]:sX}],[0,{[W]:`Status`,[K]:$Z}],[0,{[W]:`AvailabilityZone`,[K]:Uq}],[0,{[W]:`AvailabilityZoneId`,[K]:Wq}]]],$xe=[3,q,LB,0,[tK,ife,EK,Rfe,lB,uF,_F],[[0,{[W]:`Type`,[K]:oQ}],[0,{[W]:`ApplianceArn`,[K]:_q}],[0,{[W]:`VpcEndpointId`,[K]:nve}],[0,{[W]:`AttachmentState`,[K]:Vq}],[0,{[W]:`ModificationState`,[K]:$X}],[0,{[W]:`FailureCode`,[K]:iX}],[0,{[W]:`FailureMessage`,[K]:sX}]]],eSe=[3,q,DB,0,[TB,$B,eB,lfe,npe,OV,eM,Kz,qz],[[1,{[W]:`NetworkCardIndex`,[K]:aZ}],[0,{[W]:`NetworkPerformance`,[K]:uZ}],[1,{[W]:`MaximumNetworkInterfaces`,[K]:ZX}],[1,{[W]:`AdditionalFlexibleNetworkInterfaces`,[K]:vq}],[1,{[W]:`BaselineBandwidthInGbps`,[K]:$q}],[1,{[W]:`PeakBandwidthInGbps`,[K]:cge}],[1,{[W]:`DefaultEnaQueueCountPerInterface`,[K]:qJ}],[1,{[W]:`MaximumEnaQueueCount`,[K]:whe}],[1,{[W]:`MaximumEnaQueueCountPerInterface`,[K]:The}]]],tSe=[3,q,XB,0,[$B,eB,$z,LM,wB,hI,gI,PR,nF,eF,jP,kP,XP,upe,mF,wj,qW,cB,_I],[[0,{[W]:`NetworkPerformance`,[K]:uZ}],[1,{[W]:`MaximumNetworkInterfaces`,[K]:ZX}],[1,{[W]:`MaximumNetworkCards`,[K]:Ehe}],[1,{[W]:`DefaultNetworkCardIndex`,[K]:$J}],[()=>twe,{[W]:`NetworkCards`,[K]:Ihe}],[1,{[W]:`Ipv4AddressesPerInterface`,[K]:xme}],[1,{[W]:`Ipv6AddressesPerInterface`,[K]:Sme}],[2,{[W]:`Ipv6Supported`,[K]:the}],[0,{[W]:`EnaSupport`,[K]:$Y}],[2,{[W]:`EfaSupported`,[K]:ZY}],[()=>Mbe,{[W]:`EfaInfo`,[K]:FY}],[2,{[W]:`EncryptionInTransitSupported`,[K]:NY}],[2,{[W]:`EnaSrdSupported`,[K]:JY}],[()=>oCe,{[W]:`BandwidthWeightings`,[K]:lJ}],[0,{[W]:`FlexibleEnaQueuesSupport`,[K]:aX}],[()=>wye,{[W]:`ConnectionTrackingConfiguration`,[K]:IJ}],[2,{[W]:`SecondaryNetworkSupported`,[K]:y_e}],[1,{[W]:`MaximumSecondaryNetworkInterfaces`,[K]:jhe}],[1,{[W]:`Ipv4AddressesPerSecondaryInterface`,[K]:Cme}]]],nSe=[3,q,kB,0,[Rj,nq],[[1,{[W]:`Count`,[K]:HJ}],[1,{[W]:`Version`,[K]:fve}]]],rSe=[3,q,AB,0,[Rj,SB,wpe,Qz],[[1,{[W]:`Count`,[K]:HJ}],[0,{[W]:`Name`,[K]:rZ}],[()=>nSe,{[W]:`CoreInfo`,[K]:wJ}],[()=>iSe,{[W]:`MemoryInfo`,[K]:XX}]]],iSe=[3,q,MB,0,[_W],[[1,{[W]:`SizeInMiB`,[K]:VZ}]]],aSe=[3,q,ZB,0,[NB,RG],[[()=>nwe,{[W]:`NeuronDevices`,[K]:Lhe}],[1,{[W]:`TotalNeuronDeviceMemoryInMiB`,[K]:H_e}]]],oSe=[3,q,nV,0,[hG],[[()=>rwe,{[W]:`SupportedVersions`,[K]:A_e}]]],AQ=[3,q,gV,0,[EV],[0]],jQ=[3,q,_V,0,[_B,EV,YF],[[2,{[W]:`Managed`,[K]:Nhe}],[0,{[W]:`Principal`,[K]:oge}],[2,{[W]:`HiddenByDefault`,[K]:lme}]]],MQ=[3,q,TH,0,[BA,Qfe,HF,pH,ZF,QG,KU,nI,RF,LA],[[0,{[W]:`AvailabilityZoneId`,[K]:Wq}],[0,{[W]:`Affinity`,[K]:qq}],[0,{[W]:`GroupName`,[K]:mX}],[1,{[W]:`PartitionNumber`,[K]:Cge}],[0,{[W]:`HostId`,[K]:dme}],[0,{[W]:`Tenancy`,[K]:N_e}],[0,{[W]:`SpreadDomain`,[K]:r_e}],[0,{[W]:`HostResourceGroupArn`,[K]:hme}],[0,{[W]:`GroupId`,[K]:pX}],[0,{[W]:`AvailabilityZone`,[K]:Uq}]]],NQ=[3,q,UV,0,[HF,yG,xG,MV,RF,wG,EF,zW,vz,SV],[[0,{[W]:`GroupName`,[K]:mX}],[0,{[W]:`State`,[K]:QZ}],[0,{[W]:`Strategy`,[K]:eQ}],[1,{[W]:`PartitionCount`,[K]:lge}],[0,{[W]:`GroupId`,[K]:pX}],[()=>s$,{[W]:`TagSet`,[K]:nQ}],[0,{[W]:`GroupArn`,[K]:tme}],[0,{[W]:`SpreadLevel`,[K]:g_e}],[0,{[W]:`LinkedGroupId`,[K]:phe}],[()=>jQ,{[W]:`Operator`,[K]:gZ}]]],sSe=[3,q,WV,0,[oG],[[()=>owe,{[W]:`SupportedStrategies`,[K]:T_e}]]],cSe=[3,q,uH,0,[JN,uH],[[0,{[W]:`Description`,[K]:mY}],[0,{[W]:`PrefixListId`,[K]:wZ}]]],lSe=[3,q,RV,0,[aI,GP,UP],[[0,{[W]:`HostnameType`,[K]:vX}],[2,{[W]:`EnableResourceNameDnsARecord`,[K]:GY}],[2,{[W]:`EnableResourceNameDnsAAAARecord`,[K]:WY}]]],uSe=[3,q,zV,0,[aI,GP,UP],[0,2,2]],dSe=[3,q,BV,0,[aI,GP,UP],[[0,{[W]:`HostnameType`,[K]:vX}],[2,{[W]:`EnableResourceNameDnsARecord`,[K]:GY}],[2,{[W]:`EnableResourceNameDnsAAAARecord`,[K]:WY}]]],fSe=[3,q,ZV,0,[EH,$V],[[2,{[W]:`Primary`,[K]:DZ}],[0,{[W]:`PrivateIpAddress`,[K]:SZ}]]],pSe=[3,q,oH,0,[VU,WU,qU,gB],[[()=>$Se,{[W]:`SupportedArchitectures`,[K]:$ge}],[1,{[W]:`SustainedClockSpeedInGhz`,[K]:n_e}],[()=>Dwe,{[W]:`SupportedFeatures`,[K]:i_e}],[0,{[W]:`Manufacturer`,[K]:tZ}]]],mSe=[3,q,NV,0,[kV,jV],[[0,{[W]:`ProductCode`,[K]:uge}],[0,{[W]:`Type`,[K]:oQ}]]],hSe=[3,q,yH,0,[PF],[[0,{[W]:`GatewayId`,[K]:fX}]]],gSe=[3,q,DV,0,[_H,OH,EU,MU,bG],[[4,{[W]:`ProvisionTime`,[K]:Ege}],[0,{[W]:`Provisioned`,[K]:Mge}],[4,{[W]:`RequestTime`,[K]:Jge}],[0,{[W]:`Requested`,[K]:Qge}],[0,{[W]:`Status`,[K]:$Z}]]],_Se=[3,q,GH,0,[fL,U],[[()=>ZQ,{[K]:KI}],[2,{[W]:`DryRun`,[K]:aY}]],1],vSe=[3,q,sU,0,[RF,mH,iK,DK,UK],[[0,{[W]:`GroupId`,[K]:pX}],[0,{[W]:`PeeringStatus`,[K]:TZ}],[0,{[W]:`UserId`,[K]:sQ}],[0,{[W]:`VpcId`,[K]:dQ}],[0,{[W]:`VpcPeeringConnectionId`,[K]:mQ}]]],ySe=[3,q,jU,0,[dV,qF,iU,cF],[[0,{[W]:`OptInStatus`,[K]:hZ}],[()=>dwe,{[W]:`GeographySet`,[K]:hX}],[0,{[W]:`RegionName`,[K]:NZ}],[0,{[W]:`RegionEndpoint`,[K]:Pge}]]],bSe=[3,q,BH,0,[SB],[[0,{[W]:`Name`,[K]:rZ}]]],xSe=[3,q,jH,0,[DA,YV,CB,U],[0,0,0,[2,{[W]:`DryRun`,[K]:aY}]]],PQ=[3,q,PU,0,[YH,uV,ZH,TF,KR],[[0,{[W]:`ReservationId`,[K]:Rge}],[0,{[W]:`OwnerId`,[K]:mZ}],[0,{[W]:`RequesterId`,[K]:Bge}],[()=>YQ,{[W]:`GroupSet`,[K]:gX}],[()=>OCe,{[W]:`InstancesSet`,[K]:IX}]]],SSe=[3,q,mU,0,[iW,RF,FI,oR,vF,zG,cj,sj,uH,VH,JN],[[0,{[W]:`SecurityGroupRuleId`,[K]:zZ}],[0,{[W]:`GroupId`,[K]:pX}],[2,{[W]:`IsEgress`,[K]:EX}],[0,{[W]:`IpProtocol`,[K]:PX}],[1,{[W]:`FromPort`,[K]:cX}],[1,{[W]:`ToPort`,[K]:tQ}],[0,{[W]:`CidrIpv4`,[K]:CJ}],[0,{[W]:`CidrIpv6`,[K]:SJ}],[0,{[W]:`PrefixListId`,[K]:wZ}],[0,{[W]:`ReferencedGroupId`,[K]:Ige}],[0,{[W]:`Description`,[K]:mY}]]],CSe=[3,q,lU,0,[RF,nW,U,nG,rG,oR,vF,zG,oj,iR],[[0,{[W]:`GroupId`,[K]:pX}],[()=>a$,{[K]:iW}],[2,{[W]:`DryRun`,[K]:aY}],[0,{[W]:`SourceSecurityGroupName`,[K]:JZ}],[0,{[W]:`SourceSecurityGroupOwnerId`,[K]:YZ}],[0,{[W]:`IpProtocol`,[K]:PX}],[1,{[W]:`FromPort`,[K]:cX}],[1,{[W]:`ToPort`,[K]:tQ}],[0,{[W]:`CidrIp`,[K]:xJ}],[()=>e$,{[W]:`IpPermissions`,[K]:FX}]],1],wSe=[3,q,uU,0,[AH,cK,gU],[[2,{[W]:`Return`,[K]:kZ}],[()=>e$,{[W]:`UnknownIpPermissionSet`,[K]:cQ}],[()=>r$,{[W]:`RevokedSecurityGroupRuleSet`,[K]:PZ}]]],TSe=[3,q,dU,0,[oj,vF,RF,HF,iR,oR,nG,rG,zG,nW,U],[0,1,0,0,[()=>e$,0],0,0,0,1,[()=>a$,{[K]:iW}],[2,{[W]:`DryRun`,[K]:aY}]]],ESe=[3,q,fU,0,[AH,cK,gU],[[2,{[W]:`Return`,[K]:kZ}],[()=>e$,{[W]:`UnknownIpPermissionSet`,[K]:cQ}],[()=>r$,{[W]:`RevokedSecurityGroupRuleSet`,[K]:PZ}]]],DSe=[3,q,FU,0,[Xj,iM,QM,LP,PF,KI,HL,HB,DG,_z,ij,qB,sV,yG,UK,lj,hV,yI],[[0,{[W]:`DestinationCidrBlock`,[K]:WJ}],[0,{[W]:`DestinationIpv6CidrBlock`,[K]:ZJ}],[0,{[W]:`DestinationPrefixListId`,[K]:rY}],[0,{[W]:`EgressOnlyInternetGatewayId`,[K]:BY}],[0,{[W]:`GatewayId`,[K]:fX}],[0,{[W]:`InstanceId`,[K]:kX}],[0,{[W]:`InstanceOwnerId`,[K]:Fme}],[0,{[W]:`NatGatewayId`,[K]:cZ}],[0,{[W]:`TransitGatewayId`,[K]:I_e}],[0,{[W]:`LocalGatewayId`,[K]:fhe}],[0,{[W]:`CarrierGatewayId`,[K]:_J}],[0,{[W]:`NetworkInterfaceId`,[K]:lZ}],[0,{[W]:`Origin`,[K]:Zhe}],[0,{[W]:`State`,[K]:QZ}],[0,{[W]:`VpcPeeringConnectionId`,[K]:mQ}],[0,{[W]:`CoreNetworkArn`,[K]:TJ}],[0,{[W]:`OdbNetworkArn`,[K]:tge}],[0,{[W]:`IpAddress`,[K]:xX}]]],FQ=[3,q,DU,0,[$fe,xH,xU,IU,wG,DK,uV],[[()=>_we,{[W]:`AssociationSet`,[K]:zq}],[()=>lwe,{[W]:`PropagatingVgwSet`,[K]:Oge}],[0,{[W]:`RouteTableId`,[K]:FZ}],[()=>gwe,{[W]:`RouteSet`,[K]:Wge}],[()=>s$,{[W]:`TagSet`,[K]:nQ}],[0,{[W]:`VpcId`,[K]:dQ}],[0,{[W]:`OwnerId`,[K]:mZ}]]],OSe=[3,q,_U,0,[hB,vU,xU,IW,PF,nH,PA],[[2,{[W]:`Main`,[K]:Mhe}],[0,{[W]:`RouteTableAssociationId`,[K]:Gge}],[0,{[W]:`RouteTableId`,[K]:FZ}],[0,{[W]:`SubnetId`,[K]:UZ}],[0,{[W]:`GatewayId`,[K]:fX}],[0,{[W]:`PublicIpv4Pool`,[K]:CZ}],[()=>IQ,{[W]:`AssociationState`,[K]:Fq}]]],IQ=[3,q,bU,0,[yG,UW],[[0,{[W]:`State`,[K]:QZ}],[0,{[W]:`StatusMessage`,[K]:WZ}]]],kSe=[3,q,WH,0,[oF],[[2,{[W]:`Enabled`,[K]:nX}]],1],ASe=[3,q,KH,0,[Rz,zz,YA,uL,FR,dI,lI,ZR,ez,xB,TH,JH,QU,cW,IW,rK,gP,EP,HG,wz,EL,yj,uj,gj,QF,xz,tB,BP,LV,nB,Hj,VP,QB,SV,OW,U,Uj,sL,$V,Cj,EA,YB,XI,NP],[1,1,[()=>qQ,{[K]:JA}],0,0,1,[()=>QQ,{[K]:bI}],0,0,[()=>kSe,0],[()=>MQ,0],0,[()=>i$,{[K]:XU}],[()=>xwe,{[K]:lW}],0,[()=>Cve,0],[()=>pCe,0],[()=>hCe,{[K]:vP}],[()=>c$,{[K]:GG}],()=>Bxe,()=>hxe,()=>Cye,()=>tye,()=>Kve,()=>Qbe,[()=>YCe,{[K]:Cz}],()=>gxe,()=>Bbe,()=>uSe,()=>mxe,2,2,()=>Sxe,()=>AQ,[()=>FCe,{[K]:kW}],[2,{[W]:`DryRun`,[K]:aY}],[2,{[W]:`DisableApiTermination`,[K]:UJ}],[0,{[W]:`InstanceInitiatedShutdownBehavior`,[K]:MX}],[0,{[W]:`PrivateIpAddress`,[K]:SZ}],[0,{[W]:`ClientToken`,[rhe]:1,[K]:FJ}],[0,{[W]:`AdditionalInfo`,[K]:Sq}],[()=>ACe,{[W]:`NetworkInterface`,[K]:Uhe}],[()=>TQ,{[W]:`IamInstanceProfile`,[K]:AX}],[2,{[W]:`EbsOptimized`,[K]:LY}]],2],jSe=[3,q,lW,0,[RF,KL,wG,DK,YU,uV,HF,JN,iR],[[0,{[W]:`GroupId`,[K]:pX}],[()=>e$,{[W]:`IpPermissionsEgress`,[K]:Rme}],[()=>s$,{[W]:`TagSet`,[K]:nQ}],[0,{[W]:`VpcId`,[K]:dQ}],[0,{[W]:`SecurityGroupArn`,[K]:RZ}],[0,{[W]:`OwnerId`,[K]:mZ}],[0,{[W]:`GroupName`,[K]:mX}],[0,{[W]:`GroupDescription`,[K]:nme}],[()=>e$,{[W]:`IpPermissions`,[K]:FX}]]],MSe=[3,q,oW,0,[iW,RF,GF,FI,oR,vF,zG,cj,sj,uH,HH,JN,wG,tW],[[0,{[W]:`SecurityGroupRuleId`,[K]:zZ}],[0,{[W]:`GroupId`,[K]:pX}],[0,{[W]:`GroupOwnerId`,[K]:ame}],[2,{[W]:`IsEgress`,[K]:EX}],[0,{[W]:`IpProtocol`,[K]:PX}],[1,{[W]:`FromPort`,[K]:cX}],[1,{[W]:`ToPort`,[K]:tQ}],[0,{[W]:`CidrIpv4`,[K]:CJ}],[0,{[W]:`CidrIpv6`,[K]:SJ}],[0,{[W]:`PrefixListId`,[K]:wZ}],[()=>vSe,{[W]:`ReferencedGroupInfo`,[K]:Lge}],[0,{[W]:`Description`,[K]:mY}],[()=>s$,{[W]:`TagSet`,[K]:nQ}],[0,{[W]:`SecurityGroupRuleArn`,[K]:o_e}]]],LQ=[3,q,vG,0,[lV,cV,wG,uG,RH,lG,LA,YG,rj,Oj,bF,AW,NK,yG,WW,sG,DH,uV,JN,YK,sF,QR,$j],[[0,{[W]:`OwnerAlias`,[K]:Qhe}],[0,{[W]:`OutpostArn`,[K]:pZ}],[()=>s$,{[W]:`TagSet`,[K]:nQ}],[0,{[W]:`StorageTier`,[K]:E_e}],[4,{[W]:`RestoreExpiryTime`,[K]:Nge}],[0,{[W]:`SseType`,[K]:ZZ}],[0,{[W]:`AvailabilityZone`,[K]:Uq}],[0,{[W]:`TransferType`,[K]:q_e}],[1,{[W]:`CompletionDurationMinutes`,[K]:hJ}],[4,{[W]:`CompletionTime`,[K]:LJ}],[1,{[W]:`FullSnapshotSizeInBytes`,[K]:uX}],[0,{[W]:`SnapshotId`,[K]:HZ}],[0,{[W]:`VolumeId`,[K]:fQ}],[0,{[W]:`Status`,[K]:$Z}],[0,{[W]:`StatusMessage`,[K]:WZ}],[4,{[W]:`StartTime`,[K]:XZ}],[0,{[W]:`Progress`,[K]:OZ}],[0,{[W]:`OwnerId`,[K]:mZ}],[0,{[W]:`Description`,[K]:mY}],[1,{[W]:`VolumeSize`,[K]:hQ}],[2,{[W]:`Encrypted`,[K]:rX}],[0,{[W]:`KmsKeyId`,[K]:WX}],[0,{[W]:`DataEncryptionKeyId`,[K]:KJ}]]],NSe=[3,q,HW,0,[iB,DW,ape,eq,YI],[0,0,1,4,0]],PSe=[3,q,bW,0,[fL,EA,U],[[()=>ZQ,{[K]:KI}],[0,{[W]:`AdditionalInfo`,[K]:Sq}],[2,{[W]:`DryRun`,[K]:aY}]],1],FSe=[3,q,xW,0,[MW],[[()=>$Q,{[W]:`InstancesSet`,[K]:IX}]]],RQ=[3,q,tG,0,[Ij,vB],[[0,{[W]:`Code`,[K]:BJ}],[0,{[W]:`Message`,[K]:nZ}]]],ISe=[3,q,SW,0,[fL,oI,YW,U,lF],[[()=>ZQ,{[K]:KI}],2,2,[2,{[W]:`DryRun`,[K]:aY}],[2,{[W]:`Force`,[K]:$pe}]],1],LSe=[3,q,CW,0,[PW],[[()=>$Q,{[W]:`InstancesSet`,[K]:IX}]]],zQ=[3,q,SG,0,[BA,MP,Lz,fj,uV,TA,EI,wG,BU,cV,oP,kL,RV,QA,tK,IW,yG,DK,tj,ufe,LA,tM,rB],[[0,{[W]:`AvailabilityZoneId`,[K]:Wq}],[1,{[W]:`EnableLniAtDeviceIndex`,[K]:IY}],[2,{[W]:`MapCustomerOwnedIpOnLaunch`,[K]:bhe}],[0,{[W]:`CustomerOwnedIpv4Pool`,[K]:OJ}],[0,{[W]:`OwnerId`,[K]:mZ}],[2,{[W]:`AssignIpv6AddressOnCreation`,[K]:xq}],[()=>Twe,{[W]:`Ipv6CidrBlockAssociationSet`,[K]:wX}],[()=>s$,{[W]:`TagSet`,[K]:nQ}],[0,{[W]:`SubnetArn`,[K]:e_e}],[0,{[W]:`OutpostArn`,[K]:pZ}],[2,{[W]:`EnableDns64`,[K]:xY}],[2,{[W]:`Ipv6Native`,[K]:Mme}],[()=>lSe,{[W]:`PrivateDnsNameOptionsOnLaunch`,[K]:fge}],[()=>SQ,{[W]:`BlockPublicAccessStates`,[K]:aJ}],[0,{[W]:`Type`,[K]:oQ}],[0,{[W]:`SubnetId`,[K]:UZ}],[0,{[W]:`State`,[K]:QZ}],[0,{[W]:`VpcId`,[K]:dQ}],[0,{[W]:`CidrBlock`,[K]:uJ}],[1,{[W]:`AvailableIpAddressCount`,[K]:bq}],[0,{[W]:`AvailabilityZone`,[K]:Uq}],[2,{[W]:`DefaultForAz`,[K]:JJ}],[2,{[W]:`MapPublicIpOnLaunch`,[K]:khe}]]],RSe=[3,q,UU,0,[yG,UW],[[0,{[W]:`State`,[K]:QZ}],[0,{[W]:`StatusMessage`,[K]:WZ}]]],zSe=[3,q,dW,0,[kA,TI,OI,uI,NR],[[0,{[W]:`AssociationId`,[K]:Cq}],[0,{[W]:`Ipv6CidrBlock`,[K]:CX}],[()=>RSe,{[W]:`Ipv6CidrBlockState`,[K]:TX}],[0,{[W]:`Ipv6AddressAttribute`,[K]:yX}],[0,{[W]:`IpSource`,[K]:LX}]]],BSe=[3,q,ZG,0,[JR,pK],[[0,{[W]:`Key`,[K]:ahe}],[0,{[W]:`Value`,[K]:uQ}]]],VSe=[3,q,GG,0,[TU,wG],[[0,{[W]:`ResourceType`,[K]:qge}],[()=>s$,{[K]:ZG}]]],HSe=[3,q,jG,0,[fL,lF,YW,U],[[()=>ZQ,{[K]:KI}],2,2,[2,{[W]:`DryRun`,[K]:aY}]],1],USe=[3,q,MG,0,[PG],[[()=>$Q,{[W]:`InstancesSet`,[K]:IX}]]],WSe=[3,q,sK,0,[JN,iK,HF,RF,DK,UK,mH],[[0,{[W]:`Description`,[K]:mY}],[0,{[W]:`UserId`,[K]:sQ}],[0,{[W]:`GroupName`,[K]:mX}],[0,{[W]:`GroupId`,[K]:pX}],[0,{[W]:`VpcId`,[K]:dQ}],[0,{[W]:`VpcPeeringConnectionId`,[K]:mQ}],[0,{[W]:`PeeringStatus`,[K]:TZ}]]],GSe=[3,q,yK,0,[FN,Qj,AN,bK,QK],[[1,{[W]:`DefaultVCpus`,[K]:pY}],[1,{[W]:`DefaultCores`,[K]:GJ}],[1,{[W]:`DefaultThreadsPerCore`,[K]:cY}],[()=>lCe,{[W]:`ValidCores`,[K]:eve}],[()=>Owe,{[W]:`ValidThreadsPerCore`,[K]:dve}]]],BQ=[3,q,iq,0,[BA,cV,pG,qR,wG,XK,yF,Nz,$G,lG,SV,AK,NK,gG,AW,LA,yG,Aj,KA,sF,QR],[[0,{[W]:`AvailabilityZoneId`,[K]:Wq}],[0,{[W]:`OutpostArn`,[K]:pZ}],[0,{[W]:`SourceVolumeId`,[K]:O_e}],[1,{[W]:`Iops`,[K]:VX}],[()=>s$,{[W]:`TagSet`,[K]:nQ}],[0,{[W]:`VolumeType`,[K]:gQ}],[2,{[W]:`FastRestored`,[K]:lX}],[2,{[W]:`MultiAttachEnabled`,[K]:vhe}],[1,{[W]:`Throughput`,[K]:iQ}],[0,{[W]:`SseType`,[K]:ZZ}],[()=>jQ,{[W]:`Operator`,[K]:gZ}],[1,{[W]:`VolumeInitializationRate`,[K]:rve}],[0,{[W]:`VolumeId`,[K]:fQ}],[1,{[W]:`Size`,[K]:j_e}],[0,{[W]:`SnapshotId`,[K]:HZ}],[0,{[W]:`AvailabilityZone`,[K]:Uq}],[0,{[W]:`Status`,[K]:$Z}],[4,{[W]:`CreateTime`,[K]:zJ}],[()=>Nwe,{[W]:`AttachmentSet`,[K]:Bq}],[2,{[W]:`Encrypted`,[K]:rX}],[0,{[W]:`KmsKeyId`,[K]:WX}]]],VQ=[3,q,hK,0,[KM,MA,UL,tP,NK,KI,YN,yG,IA],[[2,{[W]:`DeleteOnTermination`,[K]:nY}],[0,{[W]:`AssociatedResource`,[K]:Nq}],[0,{[W]:`InstanceOwningService`,[K]:Lme}],[1,{[W]:`EbsCardIndex`,[K]:vY}],[0,{[W]:`VolumeId`,[K]:fQ}],[0,{[W]:`InstanceId`,[K]:kX}],[0,{[W]:`Device`,[K]:hY}],[0,{[W]:`Status`,[K]:$Z}],[4,{[W]:`AttachTime`,[K]:Hq}]]],KSe=[3,q,BK,0,[NK,lB,UW,KG,NG,XG,JG,IG,yV,fV,xV,bV,mV,DH,sG,rF,SV],[[0,{[W]:`VolumeId`,[K]:fQ}],[0,{[W]:`ModificationState`,[K]:$X}],[0,{[W]:`StatusMessage`,[K]:WZ}],[1,{[W]:`TargetSize`,[K]:G_e}],[1,{[W]:`TargetIops`,[K]:z_e}],[0,{[W]:`TargetVolumeType`,[K]:J_e}],[1,{[W]:`TargetThroughput`,[K]:K_e}],[2,{[W]:`TargetMultiAttachEnabled`,[K]:B_e}],[1,{[W]:`OriginalSize`,[K]:nge}],[1,{[W]:`OriginalIops`,[K]:$he}],[0,{[W]:`OriginalVolumeType`,[K]:ige}],[1,{[W]:`OriginalThroughput`,[K]:rge}],[2,{[W]:`OriginalMultiAttachEnabled`,[K]:ege}],[1,{[W]:`Progress`,[K]:OZ}],[4,{[W]:`StartTime`,[K]:XZ}],[4,{[W]:`EndTime`,[K]:eX}],[()=>jQ,{[W]:`Operator`,[K]:gZ}]]],HQ=[3,q,aq,0,[uV,zR,EI,dpe,PI,aP,wG,QA,DK,yG,tj,GM],[[0,{[W]:`OwnerId`,[K]:mZ}],[0,{[W]:`InstanceTenancy`,[K]:zX}],[()=>Rwe,{[W]:`Ipv6CidrBlockAssociationSet`,[K]:wX}],[()=>Iwe,{[W]:`CidrBlockAssociationSet`,[K]:dJ}],[2,{[W]:`IsDefault`,[K]:Tme}],[()=>JSe,{[W]:`EncryptionControl`,[K]:bY}],[()=>s$,{[W]:`TagSet`,[K]:nQ}],[()=>SQ,{[W]:`BlockPublicAccessStates`,[K]:aJ}],[0,{[W]:`VpcId`,[K]:dQ}],[0,{[W]:`State`,[K]:QZ}],[0,{[W]:`CidrBlock`,[K]:uJ}],[0,{[W]:`DhcpOptionsId`,[K]:tY}]]],qSe=[3,q,gK,0,[kA,tj,ppe],[[0,{[W]:`AssociationId`,[K]:Cq}],[0,{[W]:`CidrBlock`,[K]:uJ}],[()=>UQ,{[W]:`CidrBlockState`,[K]:pJ}]]],UQ=[3,q,vK,0,[yG,UW],[[0,{[W]:`State`,[K]:QZ}],[0,{[W]:`StatusMessage`,[K]:WZ}]]],JSe=[3,q,xK,0,[DK,TK,bB,yG,WW,zH,wG],[[0,{[W]:`VpcId`,[K]:dQ}],[0,{[W]:`VpcEncryptionControlId`,[K]:tve}],[0,{[W]:`Mode`,[K]:Fhe}],[0,{[W]:`State`,[K]:QZ}],[0,{[W]:`StateMessage`,[K]:GZ}],[()=>XSe,{[W]:`ResourceExclusions`,[K]:Fge}],[()=>s$,{[W]:`TagSet`,[K]:nQ}]]],YSe=[3,q,SK,0,[bB,BI,IP,VB,KK,WK,hz,LK,cP],[0,0,0,0,0,0,0,0,0],1],WQ=[3,q,CK,0,[yG,WW],[[0,{[W]:`State`,[K]:QZ}],[0,{[W]:`StateMessage`,[K]:GZ}]]],XSe=[3,q,wK,0,[II,FP,FB,GK,qK,Az,IK,sP],[[()=>WQ,{[W]:`InternetGateway`,[K]:DX}],[()=>WQ,{[W]:`EgressOnlyInternetGateway`,[K]:zY}],[()=>WQ,{[W]:`NatGateway`,[K]:sZ}],[()=>WQ,{[W]:`VirtualPrivateGateway`,[K]:sve}],[()=>WQ,{[W]:`VpcPeering`,[K]:cve}],[()=>WQ,{[W]:`Lambda`,[K]:_he}],[()=>WQ,{[W]:`VpcLattice`,[K]:ive}],[()=>WQ,{[W]:`ElasticFileSystem`,[K]:SY}]]],ZSe=[3,q,OK,0,[kA,TI,OI,CB,cR,uI,NR],[[0,{[W]:`AssociationId`,[K]:Cq}],[0,{[W]:`Ipv6CidrBlock`,[K]:CX}],[()=>UQ,{[W]:`Ipv6CidrBlockState`,[K]:TX}],[0,{[W]:`NetworkBorderGroup`,[K]:iZ}],[0,{[W]:`Ipv6Pool`,[K]:Ume}],[0,{[W]:`Ipv6AddressAttribute`,[K]:yX}],[0,{[W]:`IpSource`,[K]:LX}]]],GQ=`unit`,QSe=[1,q,xfe,0,[()=>Tve,{[K]:G}]],KQ=[1,q,gfe,0,[0,{[K]:DA}]],$Se=[1,q,zfe,0,[0,{[K]:G}]],eCe=[1,q,_fe,0,[0,{[K]:kA}]],tCe=[1,q,zA,0,[()=>Vve,{[K]:RA}]],nCe=[1,q,Wfe,0,[()=>Hve,{[K]:G}]],rCe=[1,q,Gfe,0,[()=>Bve,{[K]:G}]],iCe=[1,q,qfe,0,[()=>Uve,{[K]:G}]],aCe=[1,q,Yfe,0,[()=>Wve,{[K]:G}]],oCe=[1,q,lpe,0,[0,{[K]:G}]],sCe=[1,q,rpe,0,[()=>xQ,{[K]:G}]],qQ=[1,q,ipe,0,[()=>xQ,{[K]:JA}]],cCe=[1,q,ope,0,[0,{[K]:G}]],lCe=[1,q,mpe,0,[1,{[K]:G}]],uCe=[1,q,vM,0,[()=>Tbe,{[K]:G}]],dCe=[1,q,nP,0,[()=>Dbe,{[K]:G}]],fCe=[1,q,dP,0,[()=>Nbe,{[K]:G}]],pCe=[1,q,_P,0,[()=>Pbe,{[K]:G}]],mCe=[1,q,xP,0,[()=>Ibe,{[K]:G}]],hCe=[1,q,EP,0,[()=>Fbe,{[K]:G}]],gCe=[1,q,$N,0,[0,{[K]:eP}]],JQ=[1,q,gF,0,[()=>Vbe,{[K]:CF}]],_Ce=[1,q,fF,0,[()=>Hbe,{[K]:G}]],vCe=[1,q,MF,0,[()=>qbe,{[K]:G}]],YQ=[1,q,FF,0,[()=>Xbe,{[K]:G}]],XQ=[1,q,IF,0,[0,{[K]:pX}]],yCe=[1,q,UF,0,[0,{[K]:HF}]],bCe=[1,q,QI,0,[()=>wQ,{[K]:G}]],xCe=[1,q,cL,0,[0,{[K]:uL}]],SCe=[1,q,_L,0,[()=>$be,{[K]:G}]],CCe=[1,q,jI,0,[()=>rxe,0]],wCe=[1,q,SI,0,[()=>cxe,{[K]:G}]],TCe=[1,q,wI,0,[()=>lxe,{[K]:G}]],ZQ=[1,q,lL,0,[0,{[K]:KI}]],ECe=[1,q,nL,0,[()=>uxe,{[K]:G}]],QQ=[1,q,JI,0,[()=>dxe,{[K]:G}]],DCe=[1,q,rL,0,[()=>fxe,{[K]:G}]],OCe=[1,q,yL,0,[()=>axe,{[K]:G}]],kCe=[1,q,NL,0,[()=>vxe,{[K]:G}]],ACe=[1,q,FL,0,[()=>bxe,{[K]:G}]],jCe=[1,q,YL,0,[()=>Cxe,{[K]:G}]],MCe=[1,q,xR,0,[()=>wxe,{[K]:G}]],NCe=[1,q,CR,0,[()=>Exe,{[K]:G}]],PCe=[1,q,wR,0,[()=>Dxe,{[K]:G}]],FCe=[1,q,ER,0,[()=>Oxe,{[K]:G}]],$Q=[1,q,yR,0,[()=>kxe,{[K]:G}]],ICe=[1,q,IR,0,[()=>jxe,{[K]:G}]],LCe=[1,q,RI,0,[()=>Mxe,{[K]:G}]],RCe=[1,q,HI,0,[0,{[K]:G}]],zCe=[1,q,WI,0,[()=>OQ,{[K]:G}]],BCe=[1,q,bL,0,[0,{[K]:G}]],e$=[1,q,QL,0,[()=>Nxe,{[K]:G}]],VCe=[1,q,fR,0,[()=>Pxe,{[K]:G}]],HCe=[1,q,$L,0,[()=>Fxe,{[K]:G}]],UCe=[1,q,eR,0,[()=>Ixe,{[K]:G}]],WCe=[1,q,pR,0,[()=>Lxe,{[K]:G}]],GCe=[1,q,tz,0,[0,{[K]:ez}]],KCe=[1,q,az,0,[0,{[K]:iz}]],qCe=[1,q,cz,0,[()=>zxe,{[K]:G}]],JCe=[1,q,yz,0,[()=>Vxe,{[K]:G}]],YCe=[1,q,Sz,0,[()=>Hxe,{[K]:G}]],XCe=[1,q,Vz,0,[()=>Wxe,{[K]:G}]],ZCe=[1,q,zB,0,[()=>Qxe,{[K]:G}]],QCe=[1,q,RB,0,[()=>$xe,{[K]:G}]],$Ce=[1,q,UB,0,[0,{[K]:G}]],ewe=[1,q,GB,0,[()=>kQ,{[K]:G}]],twe=[1,q,EB,0,[()=>eSe,{[K]:G}]],nwe=[1,q,jB,0,[()=>rSe,{[K]:G}]],rwe=[1,q,iV,0,[0,{[K]:G}]],t$=[1,q,vV,0,[0,{[K]:TV}]],iwe=[1,q,GV,0,[0,{[K]:RF}]],awe=[1,q,KV,0,[()=>NQ,{[K]:G}]],owe=[1,q,qV,0,[0,{[K]:G}]],swe=[1,q,dH,0,[()=>cSe,{[K]:G}]],cwe=[1,q,QV,0,[()=>fSe,{[K]:G}]],n$=[1,q,AV,0,[()=>mSe,{[K]:G}]],lwe=[1,q,bH,0,[()=>hSe,{[K]:G}]],uwe=[1,q,rH,0,[0,{[K]:YV}]],dwe=[1,q,UH,0,[()=>bSe,{[K]:G}]],fwe=[1,q,$H,0,[()=>ySe,{[K]:G}]],pwe=[1,q,aU,0,[0,{[K]:iU}]],mwe=[1,q,eU,0,[()=>PQ,{[K]:G}]],r$=[1,q,hU,0,[()=>SSe,{[K]:G}]],hwe=[1,q,LH,0,[0,{[K]:G}]],gwe=[1,q,tU,0,[()=>DSe,{[K]:G}]],_we=[1,q,yU,0,[()=>OSe,{[K]:G}]],vwe=[1,q,SU,0,[0,{[K]:G}]],ywe=[1,q,wU,0,[()=>FQ,{[K]:G}]],i$=[1,q,ZU,0,[0,{[K]:XU}]],bwe=[1,q,$U,0,[()=>jSe,{[K]:G}]],a$=[1,q,rW,0,[0,{[K]:G}]],o$=[1,q,aW,0,[()=>MSe,{[K]:G}]],xwe=[1,q,sW,0,[0,{[K]:lW}]],Swe=[1,q,TW,0,[0,{[K]:AW}]],Cwe=[1,q,RW,0,[()=>LQ,{[K]:G}]],wwe=[1,q,EW,0,[0,{[K]:IW}]],Twe=[1,q,fW,0,[()=>zSe,{[K]:G}]],Ewe=[1,q,BW,0,[()=>zQ,{[K]:G}]],Dwe=[1,q,zU,0,[0,{[K]:G}]],s$=[1,q,FG,0,[()=>BSe,{[K]:G}]],c$=[1,q,WG,0,[()=>VSe,{[K]:G}]],Owe=[1,q,VG,0,[1,{[K]:G}]],kwe=[1,q,nK,0,[0,{[K]:G}]],Awe=[1,q,oK,0,[()=>WSe,{[K]:G}]],jwe=[1,q,JK,0,[0,{[K]:G}]],Mwe=[1,q,ZK,0,[0,{[K]:G}]],Nwe=[1,q,mK,0,[()=>VQ,{[K]:G}]],Pwe=[1,q,jK,0,[0,{[K]:NK}]],Fwe=[1,q,RK,0,[()=>BQ,{[K]:G}]],Iwe=[1,q,_K,0,[()=>qSe,{[K]:G}]],Lwe=[1,q,MK,0,[0,{[K]:DK}]],Rwe=[1,q,kK,0,[()=>ZSe,{[K]:G}]],zwe=[1,q,zK,0,[()=>HQ,{[K]:G}]],Bwe=[1,q,sq,0,[0,{[K]:G}]],Vwe=[1,q,uq,0,[0,{[K]:lq}]],Hwe=[1,q,pq,0,[0,{[K]:fq}]],Uwe=[9,q,rfe,0,()=>Eve,()=>Dve],Wwe=[9,q,afe,0,()=>Ove,()=>kve],Gwe=[9,q,pfe,0,()=>Ave,()=>jve],Kwe=[9,q,Ofe,0,()=>Mve,()=>Nve],qwe=[9,q,dfe,0,()=>Pve,()=>GQ],Jwe=[9,q,Hfe,0,()=>Fve,()=>VQ],Ywe=[9,q,jfe,0,()=>Ive,()=>Lve],Xwe=[9,q,Ife,0,()=>Rve,()=>zve],Zwe=[9,q,vj,0,()=>Qve,()=>$ve],Qwe=[9,q,Tpe,0,()=>nye,()=>rye],$we=[9,q,ype,0,()=>iye,()=>aye],eTe=[9,q,Epe,0,()=>oye,()=>Rxe],tTe=[9,q,Ope,0,()=>sye,()=>cye],nTe=[9,q,Mpe,0,()=>lye,()=>uye],rTe=[9,q,Hpe,0,()=>dye,()=>fye],iTe=[9,q,Vpe,0,()=>pye,()=>mye],aTe=[9,q,Upe,0,()=>hye,()=>gye],oTe=[9,q,bj,0,()=>_ye,()=>LQ],sTe=[9,q,xj,0,()=>vye,()=>yye],cTe=[9,q,Pj,0,()=>bye,()=>BQ],lTe=[9,q,Fj,0,()=>xye,()=>Sye],uTe=[9,q,aM,0,()=>Tye,()=>GQ],dTe=[9,q,kM,0,()=>Eye,()=>Dye],fTe=[9,q,RM,0,()=>Oye,()=>kye],pTe=[9,q,qM,0,()=>Aye,()=>GQ],mTe=[9,q,dN,0,()=>jye,()=>GQ],hTe=[9,q,rN,0,()=>Mye,()=>GQ],gTe=[9,q,pN,0,()=>Nye,()=>Pye],_Te=[9,q,TN,0,()=>Fye,()=>GQ],vTe=[9,q,EN,0,()=>Iye,()=>GQ],yTe=[9,q,UN,0,()=>Lye,()=>GQ],bTe=[9,q,WN,0,()=>Rye,()=>GQ],xTe=[9,q,Jj,0,()=>zye,()=>Bye],STe=[9,q,qj,0,()=>Vye,()=>Hye],CTe=[9,q,pM,0,()=>Uye,()=>Wye],wTe=[9,q,EM,0,()=>Gye,()=>Kye],TTe=[9,q,DM,0,()=>qye,()=>Jye],ETe=[9,q,TM,0,()=>Yye,()=>Xye],DTe=[9,q,uM,0,()=>Zye,()=>Qye],OTe=[9,q,PM,0,()=>$ye,()=>ebe],kTe=[9,q,UM,0,()=>tbe,()=>nbe],ATe=[9,q,ZM,0,()=>rbe,()=>ibe],jTe=[9,q,fN,0,()=>abe,()=>obe],MTe=[9,q,cN,0,()=>sbe,()=>cbe],NTe=[9,q,vN,0,()=>lbe,()=>ube],PTe=[9,q,DN,0,()=>dbe,()=>fbe],FTe=[9,q,ON,0,()=>pbe,()=>mbe],ITe=[9,q,GN,0,()=>hbe,()=>gbe],LTe=[9,q,KN,0,()=>_be,()=>vbe],RTe=[9,q,dM,0,()=>ybe,()=>GQ],zTe=[9,q,qN,0,()=>bbe,()=>VQ],BTe=[9,q,Yj,0,()=>xbe,()=>GQ],VTe=[9,q,fM,0,()=>Sbe,()=>Cbe],HTe=[9,q,lN,0,()=>wbe,()=>GQ],UTe=[9,q,DF,0,()=>Gbe,()=>Kbe],WTe=[9,q,pL,0,()=>exe,()=>txe],GTe=[9,q,Zz,0,()=>qxe,()=>GQ],KTe=[9,q,sB,0,()=>Jxe,()=>GQ],qTe=[9,q,mB,0,()=>Yxe,()=>Xxe],JTe=[9,q,XH,0,()=>_Se,()=>GQ],YTe=[9,q,MH,0,()=>xSe,()=>GQ],XTe=[9,q,cU,0,()=>CSe,()=>wSe],ZTe=[9,q,pU,0,()=>TSe,()=>ESe],QTe=[9,q,QH,0,()=>ASe,()=>PQ],$Te=[9,q,NW,0,()=>PSe,()=>FSe],eEe=[9,q,FW,0,()=>ISe,()=>LSe],tEe=[9,q,kG,0,()=>HSe,()=>USe],nEe=e=>({apiVersion:`2016-11-15`,base64Decoder:e?.base64Decoder??DD,base64Encoder:e?.base64Encoder??OD,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Xde,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Ede,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Yk}],logger:e?.logger??new Vk,protocol:e?.protocol??Vde,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ec2`,errorTypeRegistries:bve,xmlNamespace:`http://ec2.amazonaws.com/doc/2016-11-15`,version:`2016-11-15`,serviceTarget:`AmazonEC2`},serviceId:e?.serviceId??`EC2`,urlParser:e?.urlParser??GD,utf8Decoder:e?.utf8Decoder??Cb,utf8Encoder:e?.utf8Encoder??Tb}),rEe=e=>{let t=rA(e),n=()=>t().then(Ik),r=nEe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??nA,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Qk({serviceId:r.serviceId,clientVersion:kde.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??eA(`Region is missing`),requestHandler:PD.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||ek),sha256:e?.sha256??fb,streamCollector:e?.streamCollector??ID,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},l$=e=>({setRegion(t){e.region=t},region(){return e.region}}),u$=e=>({region:e.region()}),iEe=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}}},aEe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),oEe=(e,t)=>{let n=Object.assign(l$(e),Rk(e),pb(e),iEe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,u$(n),zk(n),mb(n),aEe(n))},sEe=class extends Ak{config;constructor(...[e]){let t=rEe(e||{});super(t),this.initConfig=t;let n=oEe(Dde(Ck(_D(hk(wk(jO(Ode(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(KD(this.config)),this.middlewareStack.use(fk(this.config)),this.middlewareStack.use(Uk(this.config)),this.middlewareStack.use(_k(this.config)),this.middlewareStack.use(vD(this.config)),this.middlewareStack.use(yD(this.config)),this.middlewareStack.use(bD(this.config)),this.middlewareStack.use(xD(this.config,{httpAuthSchemeParametersProvider:wde,identityProviderConfigProvider:async e=>new kO({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(CD(this.config))}destroy(){super.destroy()}},d$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAddresses`,{}).n(`EC2Client`,`DescribeAddressesCommand`).sc(xTe).build(){},cEe=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAvailabilityZones`,{}).n(`EC2Client`,`DescribeAvailabilityZonesCommand`).sc(STe).build(){},lEe=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeIamInstanceProfileAssociations`,{}).n(`EC2Client`,`DescribeIamInstanceProfileAssociationsCommand`).sc(CTe).build(){},f$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeImages`,{}).n(`EC2Client`,`DescribeImagesCommand`).sc(wTe).build(){},p$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstances`,{}).n(`EC2Client`,`DescribeInstancesCommand`).sc(TTe).build(){},uEe=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstanceTypes`,{}).n(`EC2Client`,`DescribeInstanceTypesCommand`).sc(ETe).build(){},m$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInternetGateways`,{}).n(`EC2Client`,`DescribeInternetGatewaysCommand`).sc(DTe).build(){},h$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeKeyPairs`,{}).n(`EC2Client`,`DescribeKeyPairsCommand`).sc(OTe).build(){},g$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeNatGateways`,{}).n(`EC2Client`,`DescribeNatGatewaysCommand`).sc(kTe).build(){},_$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribePlacementGroups`,{}).n(`EC2Client`,`DescribePlacementGroupsCommand`).sc(ATe).build(){},dEe=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRegions`,{}).n(`EC2Client`,`DescribeRegionsCommand`).sc(jTe).build(){},v$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRouteTables`,{}).n(`EC2Client`,`DescribeRouteTablesCommand`).sc(MTe).build(){},y$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSecurityGroups`,{}).n(`EC2Client`,`DescribeSecurityGroupsCommand`).sc(NTe).build(){},b$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSnapshots`,{}).n(`EC2Client`,`DescribeSnapshotsCommand`).sc(PTe).build(){},x$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSubnets`,{}).n(`EC2Client`,`DescribeSubnetsCommand`).sc(FTe).build(){},S$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVolumes`,{}).n(`EC2Client`,`DescribeVolumesCommand`).sc(ITe).build(){},C$=class extends Nk.classBuilder().ep(Zk).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVpcs`,{}).n(`EC2Client`,`DescribeVpcsCommand`).sc(LTe).build(){},fEe=async(e,t,n)=>({operation:nx(t).operation,region:await rx(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function pEe(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`elasticloadbalancing`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var mEe=e=>{let t=[];switch(e.operation){default:t.push(pEe(e))}return t},hEe=e=>{let t=Xk(e);return Object.assign(t,{authSchemePreference:rx(e.authSchemePreference??[])})},gEe=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`elasticloadbalancing`}),w$={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},_Ee={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.1045.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-elastic-load-balancing-v2`,"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.8`,"@aws-sdk/credential-provider-node":`^3.972.39`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-user-agent":`^3.972.38`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.24`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.7`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.6`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.3.0`,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/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`}},T$=`ref`,E$=-1,D$=!0,O$=`isSet`,k$=`PartitionResult`,A$=`booleanEquals`,j$=`getAttr`,M$={[T$]:`Endpoint`},N$={[T$]:k$},P$={},F$=[{[T$]:`Region`}],I$={conditions:[[O$,[M$]],[O$,F$],[`aws.partition`,F$,k$],[A$,[{[T$]:`UseFIPS`},D$]],[A$,[{[T$]:`UseDualStack`},D$]],[A$,[{fn:j$,argv:[N$,`supportsDualStack`]},D$]],[A$,[{fn:j$,argv:[N$,`supportsFIPS`]},D$]],[`stringEquals`,[{fn:j$,argv:[N$,`name`]},`aws-us-gov`]]],results:[[E$],[E$,`Invalid Configuration: FIPS and custom endpoint are not supported`],[E$,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[M$,P$],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,P$],[E$,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://elasticloadbalancing.{Region}.amazonaws.com`,P$],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}`,P$],[E$,`FIPS is enabled but this partition does not support FIPS`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}`,P$],[E$,`DualStack is enabled but this partition does not support DualStack`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}`,P$],[E$,`Invalid Configuration: Missing Region`]]},vEe=2,L$=1e8,yEe=new Int32Array([-1,1,-1,0,13,3,1,4,L$+12,2,5,L$+12,3,8,6,4,7,L$+11,5,L$+9,L$+10,4,11,9,6,10,L$+8,7,L$+6,L$+7,5,12,L$+5,6,L$+4,L$+5,3,L$+1,14,4,L$+2,L$+3]),bEe=MO.from(yEe,vEe,I$.conditions,I$.results),xEe=new NO({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),SEe=(e,t={})=>xEe.get(e,()=>YO(bEe,{endpointParams:e,logger:t.logger}));IO.aws=QO;var R$=class e extends Pk{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},CEe=class e extends R${name=`CertificateNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CertificateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},wEe=class e extends R${name=`ListenerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ListenerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},TEe=class e extends R${name=`TooManyCertificatesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyCertificatesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},EEe=class e extends R${name=`DuplicateTagKeysException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTagKeysException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},DEe=class e extends R${name=`LoadBalancerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`LoadBalancerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},OEe=class e extends R${name=`RuleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},kEe=class e extends R${name=`TargetGroupNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},AEe=class e extends R${name=`TooManyTagsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},jEe=class e extends R${name=`TrustStoreNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},MEe=class e extends R${name=`InvalidRevocationContentException`;$fault=`client`;Message;constructor(t){super({name:`InvalidRevocationContentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},NEe=class e extends R${name=`RevocationContentNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationContentNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},PEe=class e extends R${name=`TooManyTrustStoreRevocationEntriesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoreRevocationEntriesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},FEe=class e extends R${name=`AllocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`AllocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},IEe=class e extends R${name=`ALPNPolicyNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`ALPNPolicyNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},LEe=class e extends R${name=`AvailabilityZoneNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`AvailabilityZoneNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},REe=class e extends R${name=`CaCertificatesBundleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CaCertificatesBundleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},zEe=class e extends R${name=`CapacityDecreaseRequestsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityDecreaseRequestsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},BEe=class e extends R${name=`CapacityReservationPendingException`;$fault=`client`;Message;constructor(t){super({name:`CapacityReservationPendingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},VEe=class e extends R${name=`CapacityUnitsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityUnitsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},HEe=class e extends R${name=`DuplicateListenerException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateListenerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},UEe=class e extends R${name=`IncompatibleProtocolsException`;$fault=`client`;Message;constructor(t){super({name:`IncompatibleProtocolsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},WEe=class e extends R${name=`InvalidConfigurationRequestException`;$fault=`client`;Message;constructor(t){super({name:`InvalidConfigurationRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},GEe=class e extends R${name=`InvalidLoadBalancerActionException`;$fault=`client`;Message;constructor(t){super({name:`InvalidLoadBalancerActionException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},KEe=class e extends R${name=`SSLPolicyNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SSLPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},qEe=class e extends R${name=`TargetGroupAssociationLimitException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupAssociationLimitException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},JEe=class e extends R${name=`TooManyActionsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyActionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},YEe=class e extends R${name=`TooManyListenersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyListenersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},XEe=class e extends R${name=`TooManyRegistrationsForTargetIdException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRegistrationsForTargetIdException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ZEe=class e extends R${name=`TooManyTargetsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},QEe=class e extends R${name=`TooManyUniqueTargetGroupsPerLoadBalancerException`;$fault=`client`;Message;constructor(t){super({name:`TooManyUniqueTargetGroupsPerLoadBalancerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},$Ee=class e extends R${name=`TrustStoreNotReadyException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},eDe=class e extends R${name=`UnsupportedProtocolException`;$fault=`client`;Message;constructor(t){super({name:`UnsupportedProtocolException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},tDe=class e extends R${name=`DuplicateLoadBalancerNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateLoadBalancerNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},nDe=class e extends R${name=`InvalidSchemeException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSchemeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},rDe=class e extends R${name=`InvalidSecurityGroupException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSecurityGroupException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},iDe=class e extends R${name=`InvalidSubnetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSubnetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},aDe=class e extends R${name=`OperationNotPermittedException`;$fault=`client`;Message;constructor(t){super({name:`OperationNotPermittedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},oDe=class e extends R${name=`ResourceInUseException`;$fault=`client`;Message;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},sDe=class e extends R${name=`SubnetNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SubnetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},cDe=class e extends R${name=`TooManyLoadBalancersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyLoadBalancersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},lDe=class e extends R${name=`PriorityInUseException`;$fault=`client`;Message;constructor(t){super({name:`PriorityInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},uDe=class e extends R${name=`TooManyRulesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRulesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},dDe=class e extends R${name=`TooManyTargetGroupsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetGroupsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},fDe=class e extends R${name=`DuplicateTargetGroupNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTargetGroupNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},pDe=class e extends R${name=`DuplicateTrustStoreNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTrustStoreNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},mDe=class e extends R${name=`InvalidCaCertificatesBundleException`;$fault=`client`;Message;constructor(t){super({name:`InvalidCaCertificatesBundleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},hDe=class e extends R${name=`TooManyTrustStoresException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoresException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},gDe=class e extends R${name=`DeleteAssociationSameAccountException`;$fault=`client`;Message;constructor(t){super({name:`DeleteAssociationSameAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},_De=class e extends R${name=`TrustStoreAssociationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreAssociationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},vDe=class e extends R${name=`TrustStoreInUseException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},yDe=class e extends R${name=`InvalidTargetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidTargetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},bDe=class e extends R${name=`HealthUnavailableException`;$fault=`server`;Message;constructor(t){super({name:`HealthUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},xDe=class e extends R${name=`RevocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},SDe=class e extends R${name=`ResourceNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},CDe=class e extends R${name=`InsufficientCapacityException`;$fault=`server`;Message;constructor(t){super({name:`InsufficientCapacityException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},wDe=class e extends R${name=`PriorRequestNotCompleteException`;$fault=`client`;Message;constructor(t){super({name:`PriorRequestNotCompleteException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},TDe=`Action`,EDe=`AdditionalClaims`,DDe=`AuthenticateCognitoActionConfig`,ODe=`AuthenticateCognitoConfig`,z$=`AnomalyDetection`,kDe=`AuthorizationEndpoint`,B$=`AllocationId`,ADe=`AllocationIdNotFoundException`,jDe=`ALPNPolicyNotSupportedException`,V$=`AdministrativeOverride`,MDe=`AuthenticateOidcActionConfig`,NDe=`AuthenticateOidcConfig`,H$=`AlpnPolicy`,U$=`AuthenticationRequestExtraParams`,PDe=`AddTags`,FDe=`AddTagsInput`,IDe=`AddTagsOutput`,LDe=`AdvertiseTrustStoreCaNames`,W$=`AvailabilityZone`,RDe=`AvailabilityZoneNotSupportedException`,G$=`AvailabilityZones`,K$=`Actions`,q$=`Attributes`,J$=`Certificates`,zDe=`CertificateArn`,BDe=`CaCertificatesBundleNotFoundException`,VDe=`CapacityDecreaseRequestsLimitExceededException`,HDe=`CanonicalHostedZoneId`,UDe=`ClientId`,WDe=`CertificateList`,GDe=`CreateLoadBalancer`,KDe=`CreateLoadBalancerInput`,qDe=`CreateLoadBalancerOutput`,JDe=`CreateListenerInput`,YDe=`CreateListenerOutput`,XDe=`CreateListener`,ZDe=`CertificateNotFoundException`,Y$=`CustomerOwnedIpv4Pool`,QDe=`CreateRule`,$De=`CreateRuleInput`,eOe=`CreateRuleOutput`,tOe=`CapacityReservationPendingException`,nOe=`ClientSecret`,rOe=`ContentType`,iOe=`CreateTargetGroup`,aOe=`CreateTargetGroupInput`,oOe=`CreateTargetGroupOutput`,sOe=`CreatedTime`,cOe=`CapacityUnitsLimitExceededException`,lOe=`Certificate`,uOe=`Cipher`,X$=`Ciphers`,dOe=`Code`,Z$=`Conditions`,Q$=`Description`,$$=`DefaultActions`,fOe=`DeleteAssociationSameAccountException`,pOe=`DeleteListener`,mOe=`DeleteLoadBalancer`,hOe=`DescribeLoadBalancerAttributes`,gOe=`DescribeLoadBalancerAttributesInput`,_Oe=`DescribeLoadBalancerAttributesOutput`,vOe=`DeleteLoadBalancerInput`,yOe=`DescribeLoadBalancersInput`,bOe=`DuplicateLoadBalancerNameException`,xOe=`DeleteLoadBalancerOutput`,SOe=`DescribeLoadBalancersOutput`,COe=`DescribeLoadBalancers`,wOe=`DuplicateListenerException`,TOe=`DeleteListenerInput`,EOe=`DescribeListenersInput`,DOe=`DeleteListenerOutput`,OOe=`DescribeListenersOutput`,kOe=`DescribeListeners`,AOe=`DNSName`,jOe=`DeleteRule`,MOe=`DeleteRuleInput`,NOe=`DescribeRulesInput`,POe=`DeleteRuleOutput`,FOe=`DescribeRulesOutput`,IOe=`DescribeRules`,LOe=`DurationSeconds`,ROe=`DescribeSSLPolicies`,zOe=`DescribeSSLPoliciesInput`,BOe=`DescribeSSLPoliciesOutput`,VOe=`DeregisterTargets`,HOe=`DeleteTargetGroup`,UOe=`DescribeTargetGroupAttributes`,WOe=`DescribeTargetGroupAttributesInput`,GOe=`DescribeTargetGroupAttributesOutput`,KOe=`DeleteTargetGroupInput`,qOe=`DescribeTargetGroupsInput`,JOe=`DuplicateTargetGroupNameException`,YOe=`DeleteTargetGroupOutput`,XOe=`DescribeTargetGroupsOutput`,ZOe=`DescribeTargetGroups`,QOe=`DescribeTargetHealth`,$Oe=`DescribeTargetHealthInput`,eke=`DescribeTargetHealthOutput`,tke=`DeregisterTargetsInput`,nke=`DescribeTagsInput`,rke=`DuplicateTagKeysException`,ike=`DeregisterTargetsOutput`,ake=`DescribeTagsOutput`,oke=`DuplicateTrustStoreNameException`,ske=`DescribeTags`,cke=`Enabled`,e1=`EnablePrefixForIpv6SourceNat`,t1=`EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic`,lke=`Format`,uke=`ForwardActionConfig`,dke=`ForwardConfig`,fke=`FixedResponseActionConfig`,pke=`FixedResponseConfig`,mke=`Field`,hke=`GrpcCode`,gke=`Host`,_ke=`HttpCode`,n1=`HealthCheckEnabled`,r1=`HealthCheckIntervalSeconds`,i1=`HealthCheckProtocol`,a1=`HealthCheckPort`,o1=`HealthCheckPath`,s1=`HealthCheckTimeoutSeconds`,vke=`HostHeaderConfig`,yke=`HostHeaderConditionConfig`,bke=`HttpHeaderConditionConfig`,xke=`HttpHeaderConfig`,Ske=`HttpHeaderName`,c1=`HostHeaderRewriteConfig`,Cke=`HttpRequestMethodConfig`,wke=`HttpRequestMethodConditionConfig`,l1=`HealthyThresholdCount`,Tke=`HealthUnavailableException`,u1=`Issuer`,Eke=`IpAddress`,d1=`IpAddressType`,Dke=`InvalidCaCertificatesBundleException`,Oke=`IgnoreClientCertificateExpiry`,kke=`InsufficientCapacityException`,Ake=`InvalidConfigurationRequestException`,f1=`IsDefault`,jke=`Ipv4IpamPoolId`,Mke=`InvalidLoadBalancerActionException`,p1=`IpamPools`,m1=`IPv6Address`,Nke=`IncompatibleProtocolsException`,Pke=`InvalidRevocationContentException`,Fke=`InvalidSchemeException`,Ike=`InvalidSubnetException`,Lke=`InvalidSecurityGroupException`,Rke=`InvalidTargetException`,zke=`Id`,Bke=`Include`,Vke=`JwksEndpoint`,Hke=`JwtValidationActionAdditionalClaim`,Uke=`JwtValidationActionAdditionalClaims`,Wke=`JwtValidationActionConfig`,Gke=`JwtValidationConfig`,h1=`Key`,g1=`Listeners`,_1=`ListenerArn`,Kke=`ListenerArns`,v1=`LoadBalancers`,y1=`LoadBalancerAddresses`,b1=`LoadBalancerArn`,x1=`LoadBalancerArns`,qke=`LoadBalancerAddress`,Jke=`LoadBalancerAttribute`,Yke=`LoadBalancerAttributes`,Xke=`LoadBalancerName`,Zke=`LoadBalancerNotFoundException`,Qke=`LoadBalancerState`,$ke=`LoadBalancerType`,eAe=`LoadBalancer`,tAe=`ListenerNotFoundException`,nAe=`Listener`,S1=`Message`,C1=`MutualAuthentication`,rAe=`MutualAuthenticationAttributes`,iAe=`MessageBody`,aAe=`MitigationInEffect`,oAe=`ModifyListener`,sAe=`ModifyLoadBalancerAttributes`,cAe=`ModifyLoadBalancerAttributesInput`,lAe=`ModifyLoadBalancerAttributesOutput`,uAe=`ModifyListenerInput`,dAe=`ModifyListenerOutput`,fAe=`ModifyRule`,pAe=`ModifyRuleInput`,mAe=`ModifyRuleOutput`,hAe=`ModifyTargetGroupAttributes`,gAe=`ModifyTargetGroupAttributesInput`,_Ae=`ModifyTargetGroupAttributesOutput`,w1=`Matcher`,T1=`Marker`,vAe=`Mode`,E1=`Name`,D1=`NextMarker`,O1=`Names`,yAe=`Order`,bAe=`OutpostId`,xAe=`OperationNotPermittedException`,k1=`OnUnauthenticatedRequest`,A1=`Priority`,j1=`PrivateIPv4Address`,SAe=`PriorityInUseException`,CAe=`PathPatternConfig`,wAe=`PathPatternConditionConfig`,TAe=`PriorRequestNotCompleteException`,M1=`PageSize`,N1=`ProtocolVersion`,EAe=`Path`,P1=`Port`,F1=`Protocol`,DAe=`Query`,OAe=`QueryStringConfig`,kAe=`QueryStringConditionConfig`,AAe=`QuicServerId`,jAe=`QueryStringKeyValuePair`,MAe=`QueryStringKeyValuePairList`,I1=`Reason`,L1=`ResourceArns`,NAe=`RedirectActionConfig`,PAe=`ResourceArn`,R1=`RuleArn`,FAe=`RuleArns`,IAe=`RedirectConfig`,LAe=`RewriteConfigList`,RAe=`RuleConditionList`,zAe=`RevocationContentNotFoundException`,BAe=`RewriteConfig`,VAe=`RuleCondition`,HAe=`RevocationIdNotFoundException`,UAe=`ResourceInUseException`,WAe=`ResourceNotFoundException`,GAe=`RuleNotFoundException`,KAe=`RegisterTargetsInput`,qAe=`RemoveTagsInput`,JAe=`RuleTransformList`,YAe=`RegisterTargetsOutput`,XAe=`RemoveTagsOutput`,ZAe=`ResetTransforms`,QAe=`RegisterTargets`,$Ae=`RemoveTags`,eje=`RuleTransform`,z1=`RegexValues`,tje=`Result`,nje=`Regex`,rje=`Replace`,B1=`Rewrites`,V1=`Rules`,ije=`Rule`,H1=`State`,U1=`StatusCode`,W1=`SessionCookieName`,G1=`SecurityGroups`,aje=`SecurityGroupIds`,K1=`SubnetId`,oje=`SourceIpConfig`,sje=`SourceIpConditionConfig`,cje=`SupportedLoadBalancerTypes`,q1=`SubnetMappings`,lje=`SubnetMapping`,uje=`SubnetNotFoundException`,dje=`SourceNatIpv6Prefixes`,fje=`SourceNatIpv6Prefix`,J1=`SslPolicy`,Y1=`SslPolicies`,pje=`SslProtocols`,mje=`SetSubnets`,hje=`SetSecurityGroups`,gje=`SetSecurityGroupsInput`,_je=`SetSecurityGroupsOutput`,vje=`SetSubnetsInput`,yje=`SSLPolicyNotFoundException`,bje=`SetSubnetsOutput`,X1=`SessionTimeout`,Z1=`Scope`,Q1=`Scheme`,$1=`Subnets`,e0=`Type`,t0=`TargetControlPort`,n0=`TagDescriptions`,xje=`TagDescription`,Sje=`TargetDescription`,Cje=`TargetDescriptions`,wje=`TokenEndpoint`,r0=`TargetGroups`,i0=`TargetGroupArn`,Tje=`TargetGroupAssociationLimitException`,Eje=`TargetGroupArns`,Dje=`TargetGroupAttribute`,Oje=`TargetGroupAttributes`,kje=`TargetGroupList`,Aje=`TargetGroupName`,jje=`TargetGroupNotFoundException`,a0=`TargetGroupStickinessConfig`,Mje=`TargetGroupTuple`,Nje=`TargetGroup`,o0=`TargetHealth`,s0=`TargetHealthDescriptions`,Pje=`TargetHealthDescription`,Fje=`TagKeys`,Ije=`TagList`,Lje=`TooManyActionsException`,Rje=`TooManyCertificatesException`,zje=`TooManyLoadBalancersException`,Bje=`TooManyListenersException`,Vje=`TooManyRulesException`,Hje=`TooManyRegistrationsForTargetIdException`,Uje=`TooManyTagsException`,Wje=`TooManyTargetsException`,Gje=`TooManyTargetGroupsException`,Kje=`TooManyTrustStoresException`,qje=`TooManyTrustStoreRevocationEntriesException`,Jje=`TooManyUniqueTargetGroupsPerLoadBalancerException`,Yje=`TrustStoreArn`,Xje=`TrustStoreAssociationNotFoundException`,Zje=`TrustStoreAssociationStatus`,Qje=`TrustStoreInUseException`,$je=`TrustStoreNotFoundException`,eMe=`TrustStoreNotReadyException`,c0=`TargetType`,l0=`Tags`,tMe=`Tag`,u0=`Targets`,nMe=`Target`,d0=`Transforms`,rMe=`UseExistingClientSecret`,iMe=`UserInfoEndpoint`,aMe=`UserPoolArn`,oMe=`UserPoolClientId`,sMe=`UserPoolDomain`,cMe=`UnsupportedProtocolException`,f0=`UrlRewriteConfig`,p0=`UnhealthyThresholdCount`,m0=`Values`,h0=`VpcId`,g0=`Value`,lMe=`Weight`,uMe=`ZoneName`,_0=`awsQueryError`,v0=`client`,y0=`error`,b0=`httpError`,x0=`smithy.ts.sdk.synthetic.com.amazonaws.elasticloadbalancingv2`,S0=`server`,J=`com.amazonaws.elasticloadbalancingv2`,C0=tO.for(x0),dMe=[-3,x0,`ElasticLoadBalancingV2ServiceException`,0,[],[]];C0.registerError(dMe,R$);var w0=tO.for(J),fMe=[-3,J,ADe,{[_0]:[`AllocationIdNotFound`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(fMe,FEe);var pMe=[-3,J,jDe,{[_0]:[`ALPNPolicyNotFound`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(pMe,IEe);var mMe=[-3,J,RDe,{[_0]:[`AvailabilityZoneNotSupported`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(mMe,LEe);var hMe=[-3,J,BDe,{[_0]:[`CaCertificatesBundleNotFound`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(hMe,REe);var gMe=[-3,J,VDe,{[_0]:[`CapacityDecreaseRequestLimitExceeded`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(gMe,zEe);var _Me=[-3,J,tOe,{[_0]:[`CapacityReservationPending`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(_Me,BEe);var vMe=[-3,J,cOe,{[_0]:[`CapacityUnitsLimitExceeded`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(vMe,VEe);var yMe=[-3,J,ZDe,{[_0]:[`CertificateNotFound`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(yMe,CEe);var bMe=[-3,J,fOe,{[_0]:[`DeleteAssociationSameAccount`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(bMe,gDe);var xMe=[-3,J,wOe,{[_0]:[`DuplicateListener`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(xMe,HEe);var SMe=[-3,J,bOe,{[_0]:[`DuplicateLoadBalancerName`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(SMe,tDe);var CMe=[-3,J,rke,{[_0]:[`DuplicateTagKeys`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(CMe,EEe);var wMe=[-3,J,JOe,{[_0]:[`DuplicateTargetGroupName`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(wMe,fDe);var TMe=[-3,J,oke,{[_0]:[`DuplicateTrustStoreName`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(TMe,pDe);var EMe=[-3,J,Tke,{[_0]:[`HealthUnavailable`,500],[y0]:S0,[b0]:500},[S1],[0]];w0.registerError(EMe,bDe);var DMe=[-3,J,Nke,{[_0]:[`IncompatibleProtocols`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(DMe,UEe);var OMe=[-3,J,kke,{[_0]:[`InsufficientCapacity`,500],[y0]:S0,[b0]:500},[S1],[0]];w0.registerError(OMe,CDe);var kMe=[-3,J,Dke,{[_0]:[`InvalidCaCertificatesBundle`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(kMe,mDe);var AMe=[-3,J,Ake,{[_0]:[`InvalidConfigurationRequest`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(AMe,WEe);var jMe=[-3,J,Mke,{[_0]:[`InvalidLoadBalancerAction`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(jMe,GEe);var MMe=[-3,J,Pke,{[_0]:[`InvalidRevocationContent`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(MMe,MEe);var NMe=[-3,J,Fke,{[_0]:[`InvalidScheme`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(NMe,nDe);var PMe=[-3,J,Lke,{[_0]:[`InvalidSecurityGroup`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(PMe,rDe);var FMe=[-3,J,Ike,{[_0]:[`InvalidSubnet`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(FMe,iDe);var IMe=[-3,J,Rke,{[_0]:[`InvalidTarget`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(IMe,yDe);var LMe=[-3,J,tAe,{[_0]:[`ListenerNotFound`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(LMe,wEe);var RMe=[-3,J,Zke,{[_0]:[`LoadBalancerNotFound`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(RMe,DEe);var zMe=[-3,J,xAe,{[_0]:[`OperationNotPermitted`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(zMe,aDe);var BMe=[-3,J,SAe,{[_0]:[`PriorityInUse`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(BMe,lDe);var VMe=[-3,J,TAe,{[_0]:[`PriorRequestNotComplete`,429],[y0]:v0,[b0]:429},[S1],[0]];w0.registerError(VMe,wDe);var HMe=[-3,J,UAe,{[_0]:[`ResourceInUse`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(HMe,oDe);var UMe=[-3,J,WAe,{[_0]:[`ResourceNotFound`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(UMe,SDe);var WMe=[-3,J,zAe,{[_0]:[`RevocationContentNotFound`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(WMe,NEe);var GMe=[-3,J,HAe,{[_0]:[`RevocationIdNotFound`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(GMe,xDe);var KMe=[-3,J,GAe,{[_0]:[`RuleNotFound`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(KMe,OEe);var qMe=[-3,J,yje,{[_0]:[`SSLPolicyNotFound`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(qMe,KEe);var JMe=[-3,J,uje,{[_0]:[`SubnetNotFound`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(JMe,sDe);var YMe=[-3,J,Tje,{[_0]:[`TargetGroupAssociationLimit`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(YMe,qEe);var XMe=[-3,J,jje,{[_0]:[`TargetGroupNotFound`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(XMe,kEe);var ZMe=[-3,J,Lje,{[_0]:[`TooManyActions`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(ZMe,JEe);var QMe=[-3,J,Rje,{[_0]:[`TooManyCertificates`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(QMe,TEe);var $Me=[-3,J,Bje,{[_0]:[`TooManyListeners`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError($Me,YEe);var eNe=[-3,J,zje,{[_0]:[`TooManyLoadBalancers`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(eNe,cDe);var tNe=[-3,J,Hje,{[_0]:[`TooManyRegistrationsForTargetId`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(tNe,XEe);var nNe=[-3,J,Vje,{[_0]:[`TooManyRules`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(nNe,uDe);var rNe=[-3,J,Uje,{[_0]:[`TooManyTags`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(rNe,AEe);var iNe=[-3,J,Gje,{[_0]:[`TooManyTargetGroups`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(iNe,dDe);var aNe=[-3,J,Wje,{[_0]:[`TooManyTargets`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(aNe,ZEe);var oNe=[-3,J,qje,{[_0]:[`TooManyTrustStoreRevocationEntries`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(oNe,PEe);var sNe=[-3,J,Kje,{[_0]:[`TooManyTrustStores`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(sNe,hDe);var cNe=[-3,J,Jje,{[_0]:[`TooManyUniqueTargetGroupsPerLoadBalancer`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(cNe,QEe);var lNe=[-3,J,Xje,{[_0]:[`AssociationNotFound`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(lNe,_De);var uNe=[-3,J,Qje,{[_0]:[`TrustStoreInUse`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(uNe,vDe);var dNe=[-3,J,$je,{[_0]:[`TrustStoreNotFound`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(dNe,jEe);var fNe=[-3,J,eMe,{[_0]:[`TrustStoreNotReady`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(fNe,$Ee);var pNe=[-3,J,cMe,{[_0]:[`UnsupportedProtocol`,400],[y0]:v0,[b0]:400},[S1],[0]];w0.registerError(pNe,eDe);var mNe=[C0,w0],hNe=[3,J,TDe,0,[e0,i0,NDe,ODe,yAe,IAe,pke,dke,Gke],[0,0,()=>xNe,()=>bNe,1,()=>jPe,()=>sPe,()=>cPe,()=>mPe],1],gNe=[3,J,FDe,0,[L1,l0],[64,()=>B0],2],_Ne=[3,J,IDe,0,[],[]],vNe=[3,J,V$,0,[H1,I1,Q$],[0,0,0]],yNe=[3,J,z$,0,[tje,aAe],[0,0]],bNe=[3,J,DDe,0,[aMe,oMe,sMe,W1,Z1,X1,U$,k1],[0,0,0,0,0,1,128,0],3],xNe=[3,J,MDe,0,[u1,kDe,wje,iMe,UDe,nOe,W1,Z1,X1,U$,k1,rMe],[0,0,0,0,0,0,0,0,1,128,0,2],5],SNe=[3,J,W$,0,[uMe,K1,bAe,y1,dje],[0,0,0,()=>iFe,64]],CNe=[3,J,lOe,0,[zDe,f1],[0,2]],wNe=[3,J,uOe,0,[E1,A1],[0,1]],TNe=[3,J,JDe,0,[b1,$$,F1,P1,J1,J$,H$,l0,C1],[0,()=>k0,0,1,0,()=>j0,64,()=>B0,()=>D0],2],ENe=[3,J,YDe,0,[g1],[()=>M0]],DNe=[3,J,KDe,0,[E1,$1,q1,G1,Q1,l0,e0,d1,Y$,e1,p1],[0,64,()=>z0,64,0,()=>B0,0,0,0,0,()=>T0],1],ONe=[3,J,qDe,0,[v1],[()=>P0]],kNe=[3,J,$De,0,[_1,Z$,A1,K$,l0,d0],[0,()=>I0,1,()=>k0,()=>B0,()=>R0],4],ANe=[3,J,eOe,0,[V1],[()=>L0]],jNe=[3,J,aOe,0,[E1,F1,N1,P1,h0,i1,a1,n1,o1,r1,s1,l1,p0,w1,c0,l0,d1,t0],[0,0,0,1,0,0,0,2,0,1,1,1,1,()=>E0,0,()=>B0,0,1],1],MNe=[3,J,oOe,0,[r0],[()=>U0]],NNe=[3,J,TOe,0,[_1],[0],1],PNe=[3,J,DOe,0,[],[]],FNe=[3,J,vOe,0,[b1],[0],1],INe=[3,J,xOe,0,[],[]],LNe=[3,J,MOe,0,[R1],[0],1],RNe=[3,J,POe,0,[],[]],zNe=[3,J,KOe,0,[i0],[0],1],BNe=[3,J,YOe,0,[],[]],VNe=[3,J,tke,0,[i0,u0],[0,()=>V0],2],HNe=[3,J,ike,0,[],[]],UNe=[3,J,EOe,0,[b1,Kke,T1,M1],[0,64,0,1]],WNe=[3,J,OOe,0,[g1,D1],[()=>M0,0]],GNe=[3,J,gOe,0,[b1],[0],1],KNe=[3,J,_Oe,0,[q$],[()=>N0]],qNe=[3,J,yOe,0,[x1,O1,T1,M1],[64,64,0,1]],JNe=[3,J,SOe,0,[v1,D1],[()=>P0,0]],YNe=[3,J,NOe,0,[_1,FAe,T1,M1],[0,64,0,1]],XNe=[3,J,FOe,0,[V1,D1],[()=>L0,0]],ZNe=[3,J,zOe,0,[O1,T1,M1,$ke],[64,0,1,0]],QNe=[3,J,BOe,0,[Y1,D1],[()=>oFe,0]],$Ne=[3,J,nke,0,[L1],[64],1],ePe=[3,J,ake,0,[n0],[()=>sFe]],tPe=[3,J,WOe,0,[i0],[0],1],nPe=[3,J,GOe,0,[q$],[()=>H0]],rPe=[3,J,qOe,0,[b1,Eje,O1,T1,M1],[0,64,64,0,1]],iPe=[3,J,XOe,0,[r0,D1],[()=>U0,0]],aPe=[3,J,$Oe,0,[i0,u0,Bke],[0,()=>V0,64],1],oPe=[3,J,eke,0,[s0],[()=>lFe]],sPe=[3,J,fke,0,[U1,iAe,rOe],[0,0,0],1],cPe=[3,J,uke,0,[r0,a0],[()=>cFe,()=>ZPe]],lPe=[3,J,yke,0,[m0,z1],[64,64]],uPe=[3,J,c1,0,[B1],[()=>F0]],dPe=[3,J,bke,0,[Ske,m0,z1],[0,64,64]],fPe=[3,J,wke,0,[m0],[64]],T0=[3,J,p1,0,[jke],[0]],pPe=[3,J,Hke,0,[lke,E1,m0],[0,0,64],3],mPe=[3,J,Wke,0,[Vke,u1,EDe],[0,0,()=>rFe],2],hPe=[3,J,nAe,0,[_1,b1,P1,F1,J$,J1,$$,H$,C1],[0,0,1,0,()=>j0,0,()=>k0,64,()=>D0]],gPe=[3,J,eAe,0,[b1,AOe,HDe,sOe,Xke,Q1,h0,H1,e0,G$,G1,d1,Y$,t1,e1,p1],[0,0,0,4,0,0,0,()=>yPe,0,()=>A0,64,0,0,0,0,()=>T0]],_Pe=[3,J,qke,0,[Eke,B$,j1,m1],[0,0,0,0]],vPe=[3,J,Jke,0,[h1,g0],[0,0]],yPe=[3,J,Qke,0,[dOe,I1],[0,0]],E0=[3,J,w1,0,[_ke,hke],[0,0]],bPe=[3,J,uAe,0,[_1,P1,F1,J1,J$,$$,H$,C1],[0,1,0,0,()=>j0,()=>k0,64,()=>D0],1],xPe=[3,J,dAe,0,[g1],[()=>M0]],SPe=[3,J,cAe,0,[b1,q$],[0,()=>N0],2],CPe=[3,J,lAe,0,[q$],[()=>N0]],wPe=[3,J,pAe,0,[R1,Z$,K$,d0,ZAe],[0,()=>I0,()=>k0,()=>R0,2],1],TPe=[3,J,mAe,0,[V1],[()=>L0]],EPe=[3,J,gAe,0,[i0,q$],[0,()=>H0],2],DPe=[3,J,_Ae,0,[q$],[()=>H0]],D0=[3,J,rAe,0,[vAe,Yje,Oke,Zje,LDe],[0,0,2,0,0]],OPe=[3,J,wAe,0,[m0,z1],[64,64]],kPe=[3,J,kAe,0,[m0],[()=>aFe]],APe=[3,J,jAe,0,[h1,g0],[0,0]],jPe=[3,J,NAe,0,[U1,F1,P1,gke,EAe,DAe],[0,0,0,0,0,0],1],MPe=[3,J,KAe,0,[i0,u0],[0,()=>V0],2],NPe=[3,J,YAe,0,[],[]],PPe=[3,J,qAe,0,[L1,Fje],[64,64],2],FPe=[3,J,XAe,0,[],[]],IPe=[3,J,BAe,0,[nje,rje],[0,0],2],LPe=[3,J,ije,0,[R1,A1,Z$,K$,f1,d0],[0,0,()=>I0,()=>k0,2,()=>R0]],RPe=[3,J,VAe,0,[mke,m0,vke,CAe,xke,OAe,Cke,oje,z1],[0,64,()=>lPe,()=>OPe,()=>dPe,()=>kPe,()=>fPe,()=>WPe,64]],zPe=[3,J,eje,0,[e0,c1,f0],[0,()=>uPe,()=>tFe],1],BPe=[3,J,gje,0,[b1,G1,t1],[0,64,0],2],VPe=[3,J,_je,0,[aje,t1],[64,0]],HPe=[3,J,vje,0,[b1,$1,q1,d1,e1],[0,64,()=>z0,0,0],1],UPe=[3,J,bje,0,[G$,d1,e1],[()=>A0,0,0]],WPe=[3,J,sje,0,[m0],[64]],GPe=[3,J,J1,0,[pje,X$,E1,cje],[64,()=>nFe,0,64]],KPe=[3,J,lje,0,[K1,B$,j1,m1,fje],[0,0,0,0,0]],qPe=[3,J,tMe,0,[h1,g0],[0,0],1],JPe=[3,J,xje,0,[PAe,l0],[0,()=>B0]],O0=[3,J,Sje,0,[zke,P1,W$,AAe],[0,1,0,0],1],YPe=[3,J,Nje,0,[i0,Aje,F1,P1,h0,i1,a1,n1,r1,s1,l1,p0,o1,w1,x1,c0,N1,d1,t0],[0,0,0,1,0,0,0,2,1,1,1,1,0,()=>E0,64,0,0,0,1]],XPe=[3,J,Dje,0,[h1,g0],[0,0]],ZPe=[3,J,a0,0,[cke,LOe],[2,1]],QPe=[3,J,Mje,0,[i0,lMe],[0,1]],$Pe=[3,J,o0,0,[H1,I1,Q$],[0,0,0]],eFe=[3,J,Pje,0,[nMe,a1,o0,z$,V$],[()=>O0,0,()=>$Pe,()=>yNe,()=>vNe]],tFe=[3,J,f0,0,[B1],[()=>F0]],k0=[1,J,K$,0,()=>hNe],A0=[1,J,G$,0,()=>SNe],j0=[1,J,WDe,0,()=>CNe],nFe=[1,J,X$,0,()=>wNe],rFe=[1,J,Uke,0,()=>pPe],M0=[1,J,g1,0,()=>hPe],iFe=[1,J,y1,0,()=>_Pe],N0=[1,J,Yke,0,()=>vPe],P0=[1,J,v1,0,()=>gPe],aFe=[1,J,MAe,0,()=>APe],F0=[1,J,LAe,0,()=>IPe],I0=[1,J,RAe,0,()=>RPe],L0=[1,J,V1,0,()=>LPe],R0=[1,J,JAe,0,()=>zPe],oFe=[1,J,Y1,0,()=>GPe],z0=[1,J,q1,0,()=>KPe],sFe=[1,J,n0,0,()=>JPe],B0=[1,J,Ije,0,()=>qPe],V0=[1,J,Cje,0,()=>O0],H0=[1,J,Oje,0,()=>XPe],cFe=[1,J,kje,0,()=>QPe],U0=[1,J,r0,0,()=>YPe],lFe=[1,J,s0,0,()=>eFe],uFe=[9,J,PDe,0,()=>gNe,()=>_Ne],dFe=[9,J,XDe,0,()=>TNe,()=>ENe],fFe=[9,J,GDe,0,()=>DNe,()=>ONe],pFe=[9,J,QDe,0,()=>kNe,()=>ANe],mFe=[9,J,iOe,0,()=>jNe,()=>MNe],hFe=[9,J,pOe,0,()=>NNe,()=>PNe],gFe=[9,J,mOe,0,()=>FNe,()=>INe],_Fe=[9,J,jOe,0,()=>LNe,()=>RNe],vFe=[9,J,HOe,0,()=>zNe,()=>BNe],yFe=[9,J,VOe,0,()=>VNe,()=>HNe],bFe=[9,J,kOe,0,()=>UNe,()=>WNe],xFe=[9,J,hOe,0,()=>GNe,()=>KNe],SFe=[9,J,COe,0,()=>qNe,()=>JNe],CFe=[9,J,IOe,0,()=>YNe,()=>XNe],wFe=[9,J,ROe,0,()=>ZNe,()=>QNe],TFe=[9,J,ske,0,()=>$Ne,()=>ePe],EFe=[9,J,UOe,0,()=>tPe,()=>nPe],DFe=[9,J,ZOe,0,()=>rPe,()=>iPe],OFe=[9,J,QOe,0,()=>aPe,()=>oPe],kFe=[9,J,oAe,0,()=>bPe,()=>xPe],AFe=[9,J,sAe,0,()=>SPe,()=>CPe],jFe=[9,J,fAe,0,()=>wPe,()=>TPe],MFe=[9,J,hAe,0,()=>EPe,()=>DPe],NFe=[9,J,QAe,0,()=>MPe,()=>NPe],PFe=[9,J,$Ae,0,()=>PPe,()=>FPe],FFe=[9,J,hje,0,()=>BPe,()=>VPe],IFe=[9,J,mje,0,()=>HPe,()=>UPe],LFe=e=>({apiVersion:`2015-12-01`,base64Decoder:e?.base64Decoder??DD,base64Encoder:e?.base64Encoder??OD,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??SEe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??mEe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Yk}],logger:e?.logger??new Vk,protocol:e?.protocol??uA,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.elasticloadbalancingv2`,errorTypeRegistries:mNe,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??GD,utf8Decoder:e?.utf8Decoder??Cb,utf8Encoder:e?.utf8Encoder??Tb}),RFe=e=>{let t=rA(e),n=()=>t().then(Ik),r=LFe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??nA,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Qk({serviceId:r.serviceId,clientVersion:_Ee.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??eA(`Region is missing`),requestHandler:PD.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||ek),sha256:e?.sha256??fb,streamCollector:e?.streamCollector??ID,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},zFe=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}}},BFe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),VFe=(e,t)=>{let n=Object.assign(l$(e),Rk(e),pb(e),zFe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,u$(n),zk(n),mb(n),BFe(n))},HFe=class extends Ak{config;constructor(...[e]){let t=RFe(e||{});super(t),this.initConfig=t;let n=VFe(hEe(Ck(_D(hk(wk(jO(gEe(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(KD(this.config)),this.middlewareStack.use(fk(this.config)),this.middlewareStack.use(Uk(this.config)),this.middlewareStack.use(_k(this.config)),this.middlewareStack.use(vD(this.config)),this.middlewareStack.use(yD(this.config)),this.middlewareStack.use(bD(this.config)),this.middlewareStack.use(xD(this.config,{httpAuthSchemeParametersProvider:fEe,identityProviderConfigProvider:async e=>new kO({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(CD(this.config))}destroy(){super.destroy()}},UFe=class extends Nk.classBuilder().ep(w$).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeListeners`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeListenersCommand`).sc(bFe).build(){},WFe=class extends Nk.classBuilder().ep(w$).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancerAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancerAttributesCommand`).sc(xFe).build(){},W0=class extends Nk.classBuilder().ep(w$).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancers`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancersCommand`).sc(SFe).build(){},GFe=class extends Nk.classBuilder().ep(w$).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeRules`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeRulesCommand`).sc(CFe).build(){},KFe=class extends Nk.classBuilder().ep(w$).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeSSLPolicies`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeSSLPoliciesCommand`).sc(wFe).build(){},qFe=class extends Nk.classBuilder().ep(w$).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTags`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTagsCommand`).sc(TFe).build(){},JFe=class extends Nk.classBuilder().ep(w$).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroupAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupAttributesCommand`).sc(EFe).build(){},G0=class extends Nk.classBuilder().ep(w$).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroups`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupsCommand`).sc(DFe).build(){},YFe=class extends Nk.classBuilder().ep(w$).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetHealth`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetHealthCommand`).sc(OFe).build(){},XFe=async(e,t,n)=>({operation:nx(t).operation,region:await rx(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ZFe(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`iam`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var QFe=e=>{let t=[];switch(e.operation){default:t.push(ZFe(e))}return t},$Fe=e=>{let t=Xk(e);return Object.assign(t,{authSchemePreference:rx(e.authSchemePreference??[])})},eIe=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`iam`}),K0={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},tIe={name:`@aws-sdk/client-iam`,description:`AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native`,version:`3.1045.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-iam`,"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.8`,"@aws-sdk/credential-provider-node":`^3.972.39`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-user-agent":`^3.972.38`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.24`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.7`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.6`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.3.0`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.0.8`,"@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/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`}},q0=`ref`,J0=`authSchemes`,Y0=`name`,X0=`signingRegion`,Z0=-1,Q0=!0,$0=`isSet`,e2=`PartitionResult`,t2=`booleanEquals`,n2=`stringEquals`,r2=`getAttr`,i2=`sigv4`,a2={[q0]:`Endpoint`},o2={fn:r2,argv:[{[q0]:e2},`name`]},s2={[q0]:e2},c2={[J0]:[{[Y0]:i2,[X0]:`us-east-1`}]},l2={[J0]:[{[Y0]:i2,[X0]:`cn-north-1`}]},u2={[J0]:[{[Y0]:i2,[X0]:`us-gov-west-1`}]},d2={[J0]:[{[Y0]:i2,[X0]:`us-iso-east-1`}]},f2={[J0]:[{[Y0]:i2,[X0]:`us-isob-east-1`}]},p2={[J0]:[{[Y0]:i2,[X0]:`{PartitionResult#implicitGlobalRegion}`}]},m2=[{[q0]:`Region`}],h2={conditions:[[$0,[a2]],[$0,m2],[`aws.partition`,m2,e2],[t2,[{[q0]:`UseFIPS`},Q0]],[t2,[{[q0]:`UseDualStack`},Q0]],[n2,[o2,`aws`]],[n2,[o2,`aws-cn`]],[n2,[o2,`aws-us-gov`]],[t2,[{fn:r2,argv:[s2,`supportsDualStack`]},Q0]],[n2,[o2,`aws-iso`]],[n2,[o2,`aws-iso-b`]],[t2,[{fn:r2,argv:[s2,`supportsFIPS`]},Q0]],[n2,[o2,`aws-iso-e`]],[n2,[o2,`aws-iso-f`]],[n2,[o2,`aws-eusc`]]],results:[[Z0],[Z0,`Invalid Configuration: FIPS and custom endpoint are not supported`],[Z0,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[a2,{}],[`https://iam.global.api.aws`,c2],[`https://iam-fips.global.api.aws`,c2],[`https://iam.global.api.amazonwebservices.com.cn`,l2],[`https://iam.cn-north-1.amazonaws.com.cn`,l2],[`https://iam.us-gov.api.aws`,u2],[`https://iam.us-gov.amazonaws.com`,u2],[`https://iam.us-iso-east-1.c2s.ic.gov`,d2],[`https://iam-fips.us-iso-east-1.c2s.ic.gov`,d2],[`https://iam.us-isob-east-1.sc2s.sgov.gov`,f2],[`https://iam-fips.us-isob-east-1.sc2s.sgov.gov`,f2],[`https://iam.eu-isoe-west-1.cloud.adc-e.uk`,{[J0]:[{[Y0]:i2,[X0]:`eu-isoe-west-1`}]}],[`https://iam.us-isof-south-1.csp.hci.ic.gov`,{[J0]:[{[Y0]:i2,[X0]:`us-isof-south-1`}]}],[`https://iam.eusc-de-east-1.amazonaws.eu`,{[J0]:[{[Y0]:i2,[X0]:`eusc-de-east-1`}]}],[`https://iam-fips.{PartitionResult#dualStackDnsSuffix}`,p2],[Z0,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://iam-fips.{PartitionResult#dnsSuffix}`,p2],[Z0,`FIPS is enabled but this partition does not support FIPS`],[`https://iam.{PartitionResult#dualStackDnsSuffix}`,p2],[Z0,`DualStack is enabled but this partition does not support DualStack`],[`https://iam.{PartitionResult#dnsSuffix}`,p2],[Z0,`Invalid Configuration: Missing Region`]]},nIe=2,g2=1e8,rIe=new Int32Array([-1,1,-1,0,27,3,1,4,g2+24,2,5,g2+24,3,18,6,4,14,7,6,g2+7,8,7,g2+9,9,9,g2+10,10,10,g2+12,11,12,g2+14,12,13,g2+15,13,14,g2+16,g2+23,5,g2+4,15,6,g2+6,16,7,g2+8,17,8,g2+21,g2+22,4,23,19,7,g2+9,20,9,g2+11,21,10,g2+13,22,11,g2+19,g2+20,5,g2+5,24,7,g2+8,25,8,26,g2+18,11,g2+17,g2+18,3,g2+1,28,4,g2+2,g2+3]),iIe=MO.from(rIe,nIe,h2.conditions,h2.results),aIe=new NO({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),oIe=(e,t={})=>aIe.get(e,()=>YO(iIe,{endpointParams:e,logger:t.logger}));IO.aws=QO;var _2=class e extends Pk{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},sIe=class e extends _2{name=`ConcurrentModificationException`;$fault=`client`;constructor(t){super({name:`ConcurrentModificationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cIe=class e extends _2{name=`NoSuchEntityException`;$fault=`client`;constructor(t){super({name:`NoSuchEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lIe=class e extends _2{name=`ServiceFailureException`;$fault=`server`;constructor(t){super({name:`ServiceFailureException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},uIe=class e extends _2{name=`AccountNotManagementOrDelegatedAdministratorException`;$fault=`client`;Message;constructor(t){super({name:`AccountNotManagementOrDelegatedAdministratorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},dIe=class e extends _2{name=`InvalidInputException`;$fault=`client`;constructor(t){super({name:`InvalidInputException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fIe=class e extends _2{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pIe=class e extends _2{name=`EntityAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`EntityAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mIe=class e extends _2{name=`UnmodifiableEntityException`;$fault=`client`;constructor(t){super({name:`UnmodifiableEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hIe=class e extends _2{name=`PolicyNotAttachableException`;$fault=`client`;constructor(t){super({name:`PolicyNotAttachableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gIe=class e extends _2{name=`EntityTemporarilyUnmodifiableException`;$fault=`client`;constructor(t){super({name:`EntityTemporarilyUnmodifiableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_Ie=class e extends _2{name=`InvalidUserTypeException`;$fault=`client`;constructor(t){super({name:`InvalidUserTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vIe=class e extends _2{name=`PasswordPolicyViolationException`;$fault=`client`;constructor(t){super({name:`PasswordPolicyViolationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yIe=class e extends _2{name=`OpenIdIdpCommunicationErrorException`;$fault=`client`;constructor(t){super({name:`OpenIdIdpCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bIe=class e extends _2{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xIe=class e extends _2{name=`ServiceNotSupportedException`;$fault=`client`;constructor(t){super({name:`ServiceNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},SIe=class e extends _2{name=`DeleteConflictException`;$fault=`client`;constructor(t){super({name:`DeleteConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},CIe=class e extends _2{name=`OrganizationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},wIe=class e extends _2{name=`OrganizationNotInAllFeaturesModeException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotInAllFeaturesModeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},TIe=class e extends _2{name=`ServiceAccessNotEnabledException`;$fault=`client`;Message;constructor(t){super({name:`ServiceAccessNotEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},EIe=class e extends _2{name=`FeatureDisabledException`;$fault=`client`;constructor(t){super({name:`FeatureDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},DIe=class e extends _2{name=`InvalidAuthenticationCodeException`;$fault=`client`;constructor(t){super({name:`InvalidAuthenticationCodeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},OIe=class e extends _2{name=`CallerIsNotManagementAccountException`;$fault=`client`;Message;constructor(t){super({name:`CallerIsNotManagementAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},kIe=class e extends _2{name=`FeatureEnabledException`;$fault=`client`;constructor(t){super({name:`FeatureEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},AIe=class e extends _2{name=`ReportGenerationLimitExceededException`;$fault=`client`;constructor(t){super({name:`ReportGenerationLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},jIe=class e extends _2{name=`CredentialReportExpiredException`;$fault=`client`;constructor(t){super({name:`CredentialReportExpiredException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},MIe=class e extends _2{name=`CredentialReportNotPresentException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotPresentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},NIe=class e extends _2{name=`CredentialReportNotReadyException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},PIe=class e extends _2{name=`UnrecognizedPublicKeyEncodingException`;$fault=`client`;constructor(t){super({name:`UnrecognizedPublicKeyEncodingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},FIe=class e extends _2{name=`PolicyEvaluationException`;$fault=`server`;constructor(t){super({name:`PolicyEvaluationException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},IIe=class e extends _2{name=`KeyPairMismatchException`;$fault=`client`;constructor(t){super({name:`KeyPairMismatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},LIe=class e extends _2{name=`MalformedCertificateException`;$fault=`client`;constructor(t){super({name:`MalformedCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},RIe=class e extends _2{name=`DuplicateCertificateException`;$fault=`client`;constructor(t){super({name:`DuplicateCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},zIe=class e extends _2{name=`InvalidCertificateException`;$fault=`client`;constructor(t){super({name:`InvalidCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},BIe=class e extends _2{name=`DuplicateSSHPublicKeyException`;$fault=`client`;constructor(t){super({name:`DuplicateSSHPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},VIe=class e extends _2{name=`InvalidPublicKeyException`;$fault=`client`;constructor(t){super({name:`InvalidPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},v2=`Arn`,HIe=`AttachmentCount`,y2=`AccessKey`,b2=`AccessKeyId`,x2=`AccessKeyMetadata`,UIe=`AccountNotManagementOrDelegatedAdministratorException`,WIe=`AttachedPolicy`,GIe=`AttachedPermissionsBoundary`,S2=`AttachedPolicies`,KIe=`AttachRolePolicy`,C2=`AssumeRolePolicyDocument`,qIe=`AttachRolePolicyRequest`,JIe=`AddRoleToInstanceProfile`,YIe=`AddRoleToInstanceProfileRequest`,XIe=`AttachUserPolicy`,ZIe=`AttachUserPolicyRequest`,QIe=`CreateAccessKey`,$Ie=`CreateAccessKeyRequest`,eLe=`CreateAccessKeyResponse`,w2=`CreateDate`,tLe=`CallerIsNotManagementAccountException`,nLe=`CreateInstanceProfile`,rLe=`CreateInstanceProfileRequest`,iLe=`CreateInstanceProfileResponse`,aLe=`ConcurrentModificationException`,oLe=`CreatePolicyRequest`,sLe=`CreatePolicyResponse`,cLe=`CreatePolicy`,lLe=`CreateRole`,uLe=`CredentialReportExpiredException`,dLe=`CredentialReportNotPresentException`,fLe=`CredentialReportNotReadyException`,pLe=`CreateRoleRequest`,mLe=`CreateRoleResponse`,hLe=`CreateUser`,gLe=`CreateUserRequest`,_Le=`CreateUserResponse`,T2=`Description`,vLe=`DeleteAccessKey`,yLe=`DeleteAccessKeyRequest`,bLe=`DeleteConflictException`,xLe=`DuplicateCertificateException`,SLe=`DeleteInstanceProfile`,CLe=`DeleteInstanceProfileRequest`,wLe=`DeletePolicyRequest`,TLe=`DeletePolicy`,ELe=`DetachRolePolicyRequest`,DLe=`DetachRolePolicy`,OLe=`DeleteRoleRequest`,kLe=`DeleteRole`,ALe=`DuplicateSSHPublicKeyException`,jLe=`DeleteUser`,MLe=`DetachUserPolicyRequest`,NLe=`DetachUserPolicy`,PLe=`DeleteUserRequest`,FLe=`DefaultVersionId`,ILe=`Document`,LLe=`EntityAlreadyExistsException`,RLe=`EntityTemporarilyUnmodifiableException`,zLe=`FeatureDisabledException`,BLe=`FeatureEnabledException`,VLe=`GetInstanceProfile`,HLe=`GetInstanceProfileRequest`,ULe=`GetInstanceProfileResponse`,WLe=`GetPolicy`,GLe=`GetPolicyRequest`,KLe=`GetPolicyResponse`,qLe=`GetPolicyVersion`,JLe=`GetPolicyVersionRequest`,YLe=`GetPolicyVersionResponse`,XLe=`GetRole`,ZLe=`GetRoleRequest`,QLe=`GetRoleResponse`,$Le=`GetUser`,eRe=`GetUserRequest`,tRe=`GetUserResponse`,nRe=`IsAttachable`,rRe=`InvalidAuthenticationCodeException`,iRe=`InvalidCertificateException`,aRe=`IsDefaultVersion`,oRe=`InvalidInputException`,E2=`InstanceProfile`,sRe=`InstanceProfileId`,cRe=`InvalidPublicKeyException`,D2=`InstanceProfileName`,O2=`InstanceProfiles`,k2=`IsTruncated`,lRe=`InvalidUserTypeException`,uRe=`Key`,dRe=`KeyPairMismatchException`,fRe=`ListAccessKeys`,pRe=`ListAccessKeysRequest`,mRe=`ListAccessKeysResponse`,hRe=`ListAttachedRolePolicies`,gRe=`ListAttachedRolePoliciesRequest`,_Re=`ListAttachedRolePoliciesResponse`,vRe=`ListAttachedUserPolicies`,yRe=`ListAttachedUserPoliciesRequest`,bRe=`ListAttachedUserPoliciesResponse`,xRe=`LimitExceededException`,SRe=`ListInstanceProfiles`,CRe=`ListInstanceProfilesForRole`,wRe=`ListInstanceProfilesForRoleRequest`,TRe=`ListInstanceProfilesForRoleResponse`,ERe=`ListInstanceProfilesRequest`,DRe=`ListInstanceProfilesResponse`,ORe=`ListPoliciesRequest`,kRe=`ListPoliciesResponse`,ARe=`ListPolicies`,jRe=`ListRoles`,MRe=`ListRolesRequest`,NRe=`ListRolesResponse`,PRe=`ListUsers`,FRe=`LastUsedDate`,IRe=`ListUsersRequest`,LRe=`ListUsersResponse`,A2=`Message`,RRe=`MalformedCertificateException`,j2=`MaxItems`,zRe=`MalformedPolicyDocumentException`,M2=`MaxSessionDuration`,N2=`Marker`,BRe=`NoSuchEntityException`,VRe=`OnlyAttached`,HRe=`OpenIdIdpCommunicationErrorException`,URe=`OrganizationNotFoundException`,WRe=`OrganizationNotInAllFeaturesModeException`,P2=`PolicyArn`,F2=`PermissionsBoundary`,GRe=`PermissionsBoundaryArn`,KRe=`PermissionsBoundaryType`,qRe=`PermissionsBoundaryUsageCount`,JRe=`PolicyDocument`,YRe=`PolicyEvaluationException`,XRe=`PolicyId`,ZRe=`PasswordLastUsed`,I2=`PolicyName`,QRe=`PolicyNotAttachableException`,$Re=`PasswordPolicyViolationException`,L2=`PathPrefix`,eze=`PolicyUsageFilter`,R2=`PolicyVersion`,z2=`Path`,B2=`Policy`,tze=`Policies`,nze=`Region`,rze=`ReportGenerationLimitExceededException`,ize=`RoleId`,V2=`RoleLastUsed`,H2=`RoleName`,aze=`RemoveRoleFromInstanceProfile`,oze=`RemoveRoleFromInstanceProfileRequest`,U2=`Role`,W2=`Roles`,G2=`Status`,sze=`SecretAccessKey`,cze=`ServiceAccessNotEnabledException`,lze=`ServiceFailureException`,uze=`ServiceNotSupportedException`,dze=`Scope`,K2=`Tags`,fze=`Tag`,pze=`UpdateAccessKey`,mze=`UpdateAccessKeyRequest`,hze=`UpdateDate`,gze=`UnmodifiableEntityException`,_ze=`UserId`,q2=`UserName`,vze=`UnrecognizedPublicKeyEncodingException`,J2=`User`,yze=`Users`,Y2=`VersionId`,bze=`Value`,xze=`accessKeyMetadataListType`,Sze=`accessKeySecretType`,Cze=`attachedPoliciesListType`,X2=`awsQueryError`,Z2=`client`,Q2=`error`,$2=`httpError`,wze=`instanceProfileListType`,e4=`message`,Tze=`policyListType`,Eze=`roleListType`,t4=`smithy.ts.sdk.synthetic.com.amazonaws.iam`,n4=`server`,Dze=`tagListType`,Oze=`userListType`,Y=`com.amazonaws.iam`,r4=tO.for(t4),kze=[-3,t4,`IAMServiceException`,0,[],[]];r4.registerError(kze,_2);var i4=tO.for(Y),Aze=[-3,Y,UIe,{[Q2]:Z2,[$2]:400},[A2],[0]];i4.registerError(Aze,uIe);var jze=[-3,Y,tLe,{[Q2]:Z2,[$2]:400},[A2],[0]];i4.registerError(jze,OIe);var Mze=[-3,Y,aLe,{[X2]:[`ConcurrentModification`,409],[Q2]:Z2,[$2]:409},[e4],[0]];i4.registerError(Mze,sIe);var Nze=[-3,Y,uLe,{[X2]:[`ReportExpired`,410],[Q2]:Z2,[$2]:410},[e4],[0]];i4.registerError(Nze,jIe);var Pze=[-3,Y,dLe,{[X2]:[`ReportNotPresent`,410],[Q2]:Z2,[$2]:410},[e4],[0]];i4.registerError(Pze,MIe);var Fze=[-3,Y,fLe,{[X2]:[`ReportInProgress`,404],[Q2]:Z2,[$2]:404},[e4],[0]];i4.registerError(Fze,NIe);var Ize=[-3,Y,bLe,{[X2]:[`DeleteConflict`,409],[Q2]:Z2,[$2]:409},[e4],[0]];i4.registerError(Ize,SIe);var Lze=[-3,Y,xLe,{[X2]:[`DuplicateCertificate`,409],[Q2]:Z2,[$2]:409},[e4],[0]];i4.registerError(Lze,RIe);var Rze=[-3,Y,ALe,{[X2]:[`DuplicateSSHPublicKey`,400],[Q2]:Z2,[$2]:400},[e4],[0]];i4.registerError(Rze,BIe);var zze=[-3,Y,LLe,{[X2]:[`EntityAlreadyExists`,409],[Q2]:Z2,[$2]:409},[e4],[0]];i4.registerError(zze,pIe);var Bze=[-3,Y,RLe,{[X2]:[`EntityTemporarilyUnmodifiable`,409],[Q2]:Z2,[$2]:409},[e4],[0]];i4.registerError(Bze,gIe);var Vze=[-3,Y,zLe,{[X2]:[`FeatureDisabled`,404],[Q2]:Z2,[$2]:404},[e4],[0]];i4.registerError(Vze,EIe);var Hze=[-3,Y,BLe,{[X2]:[`FeatureEnabled`,409],[Q2]:Z2,[$2]:409},[e4],[0]];i4.registerError(Hze,kIe);var Uze=[-3,Y,rRe,{[X2]:[`InvalidAuthenticationCode`,403],[Q2]:Z2,[$2]:403},[e4],[0]];i4.registerError(Uze,DIe);var Wze=[-3,Y,iRe,{[X2]:[`InvalidCertificate`,400],[Q2]:Z2,[$2]:400},[e4],[0]];i4.registerError(Wze,zIe);var Gze=[-3,Y,oRe,{[X2]:[`InvalidInput`,400],[Q2]:Z2,[$2]:400},[e4],[0]];i4.registerError(Gze,dIe);var Kze=[-3,Y,cRe,{[X2]:[`InvalidPublicKey`,400],[Q2]:Z2,[$2]:400},[e4],[0]];i4.registerError(Kze,VIe);var qze=[-3,Y,lRe,{[X2]:[`InvalidUserType`,400],[Q2]:Z2,[$2]:400},[e4],[0]];i4.registerError(qze,_Ie);var Jze=[-3,Y,dRe,{[X2]:[`KeyPairMismatch`,400],[Q2]:Z2,[$2]:400},[e4],[0]];i4.registerError(Jze,IIe);var Yze=[-3,Y,xRe,{[X2]:[`LimitExceeded`,409],[Q2]:Z2,[$2]:409},[e4],[0]];i4.registerError(Yze,fIe);var Xze=[-3,Y,RRe,{[X2]:[`MalformedCertificate`,400],[Q2]:Z2,[$2]:400},[e4],[0]];i4.registerError(Xze,LIe);var Zze=[-3,Y,zRe,{[X2]:[`MalformedPolicyDocument`,400],[Q2]:Z2,[$2]:400},[e4],[0]];i4.registerError(Zze,bIe);var Qze=[-3,Y,BRe,{[X2]:[`NoSuchEntity`,404],[Q2]:Z2,[$2]:404},[e4],[0]];i4.registerError(Qze,cIe);var $ze=[-3,Y,HRe,{[X2]:[`OpenIdIdpCommunicationError`,400],[Q2]:Z2,[$2]:400},[e4],[0]];i4.registerError($ze,yIe);var eBe=[-3,Y,URe,{[Q2]:Z2,[$2]:400},[A2],[0]];i4.registerError(eBe,CIe);var tBe=[-3,Y,WRe,{[Q2]:Z2,[$2]:400},[A2],[0]];i4.registerError(tBe,wIe);var nBe=[-3,Y,$Re,{[X2]:[`PasswordPolicyViolation`,400],[Q2]:Z2,[$2]:400},[e4],[0]];i4.registerError(nBe,vIe);var rBe=[-3,Y,YRe,{[X2]:[`PolicyEvaluation`,500],[Q2]:n4,[$2]:500},[e4],[0]];i4.registerError(rBe,FIe);var iBe=[-3,Y,QRe,{[X2]:[`PolicyNotAttachable`,400],[Q2]:Z2,[$2]:400},[e4],[0]];i4.registerError(iBe,hIe);var aBe=[-3,Y,rze,{[X2]:[`ReportGenerationLimitExceeded`,409],[Q2]:Z2,[$2]:409},[e4],[0]];i4.registerError(aBe,AIe);var oBe=[-3,Y,cze,{[Q2]:Z2,[$2]:400},[A2],[0]];i4.registerError(oBe,TIe);var sBe=[-3,Y,lze,{[X2]:[`ServiceFailure`,500],[Q2]:n4,[$2]:500},[e4],[0]];i4.registerError(sBe,lIe);var cBe=[-3,Y,uze,{[X2]:[`NotSupportedService`,404],[Q2]:Z2,[$2]:404},[e4],[0]];i4.registerError(cBe,xIe);var lBe=[-3,Y,gze,{[X2]:[`UnmodifiableEntity`,400],[Q2]:Z2,[$2]:400},[e4],[0]];i4.registerError(lBe,mIe);var uBe=[-3,Y,vze,{[X2]:[`UnrecognizedPublicKeyEncoding`,400],[Q2]:Z2,[$2]:400},[e4],[0]];i4.registerError(uBe,PIe);var dBe=[r4,i4],fBe=[0,Y,Sze,8,0],pBe=[3,Y,y2,0,[q2,b2,G2,sze,w2],[0,0,0,[()=>fBe,0],4],4],mBe=[3,Y,x2,0,[q2,b2,G2,w2],[0,0,0,4]],hBe=[3,Y,YIe,0,[D2,H2],[0,0],2],a4=[3,Y,GIe,0,[KRe,GRe],[0,0]],gBe=[3,Y,WIe,0,[I2,P2],[0,0]],_Be=[3,Y,qIe,0,[H2,P2],[0,0],2],vBe=[3,Y,ZIe,0,[q2,P2],[0,0],2],yBe=[3,Y,$Ie,0,[q2],[0]],bBe=[3,Y,eLe,0,[y2],[[()=>pBe,0]],1],xBe=[3,Y,rLe,0,[D2,z2,K2],[0,0,()=>m4],1],SBe=[3,Y,iLe,0,[E2],[()=>o4],1],CBe=[3,Y,oLe,0,[I2,JRe,z2,T2,K2],[0,0,0,0,()=>m4],2],wBe=[3,Y,sLe,0,[B2],[()=>s4]],TBe=[3,Y,pLe,0,[H2,C2,z2,T2,M2,F2,K2],[0,0,0,0,1,0,()=>m4],2],EBe=[3,Y,mLe,0,[U2],[()=>c4],1],DBe=[3,Y,gLe,0,[q2,z2,F2,K2],[0,0,0,()=>m4],1],OBe=[3,Y,_Le,0,[J2],[()=>l4]],kBe=[3,Y,yLe,0,[b2,q2],[0,0],1],ABe=[3,Y,CLe,0,[D2],[0],1],jBe=[3,Y,wLe,0,[P2],[0],1],MBe=[3,Y,OLe,0,[H2],[0],1],NBe=[3,Y,PLe,0,[q2],[0],1],PBe=[3,Y,ELe,0,[H2,P2],[0,0],2],FBe=[3,Y,MLe,0,[q2,P2],[0,0],2],IBe=[3,Y,HLe,0,[D2],[0],1],LBe=[3,Y,ULe,0,[E2],[()=>o4],1],RBe=[3,Y,GLe,0,[P2],[0],1],zBe=[3,Y,KLe,0,[B2],[()=>s4]],BBe=[3,Y,JLe,0,[P2,Y2],[0,0],2],VBe=[3,Y,YLe,0,[R2],[()=>cVe]],HBe=[3,Y,ZLe,0,[H2],[0],1],UBe=[3,Y,QLe,0,[U2],[()=>c4],1],WBe=[3,Y,eRe,0,[q2],[0]],GBe=[3,Y,tRe,0,[J2],[()=>l4],1],o4=[3,Y,E2,0,[z2,D2,sRe,v2,w2,W2,K2],[0,0,0,0,4,()=>p4,()=>m4],6],KBe=[3,Y,pRe,0,[q2,N2,j2],[0,0,1]],qBe=[3,Y,mRe,0,[x2,k2,N2],[()=>pVe,2,0],1],JBe=[3,Y,gRe,0,[H2,L2,N2,j2],[0,0,0,1],1],YBe=[3,Y,_Re,0,[S2,k2,N2],[()=>d4,2,0]],XBe=[3,Y,yRe,0,[q2,L2,N2,j2],[0,0,0,1],1],ZBe=[3,Y,bRe,0,[S2,k2,N2],[()=>d4,2,0]],QBe=[3,Y,wRe,0,[H2,N2,j2],[0,0,1],1],$Be=[3,Y,TRe,0,[O2,k2,N2],[()=>f4,2,0],1],eVe=[3,Y,ERe,0,[L2,N2,j2],[0,0,1]],tVe=[3,Y,DRe,0,[O2,k2,N2],[()=>f4,2,0],1],nVe=[3,Y,ORe,0,[dze,VRe,L2,eze,N2,j2],[0,2,0,0,0,1]],rVe=[3,Y,kRe,0,[tze,k2,N2],[()=>mVe,2,0]],iVe=[3,Y,MRe,0,[L2,N2,j2],[0,0,1]],aVe=[3,Y,NRe,0,[W2,k2,N2],[()=>p4,2,0],1],oVe=[3,Y,IRe,0,[L2,N2,j2],[0,0,1]],sVe=[3,Y,LRe,0,[yze,k2,N2],[()=>hVe,2,0],1],s4=[3,Y,B2,0,[I2,XRe,v2,z2,FLe,HIe,qRe,nRe,T2,w2,hze,K2],[0,0,0,0,0,1,1,2,0,4,4,()=>m4]],cVe=[3,Y,R2,0,[ILe,Y2,aRe,w2],[0,0,2,4]],lVe=[3,Y,oze,0,[D2,H2],[0,0],2],c4=[3,Y,U2,0,[z2,H2,ize,v2,w2,C2,T2,M2,F2,K2,V2],[0,0,0,0,4,0,0,1,()=>a4,()=>m4,()=>uVe],5],uVe=[3,Y,V2,0,[FRe,nze],[4,0]],dVe=[3,Y,fze,0,[uRe,bze],[0,0],2],fVe=[3,Y,mze,0,[b2,G2,q2],[0,0,0],2],l4=[3,Y,J2,0,[z2,q2,_ze,v2,w2,ZRe,F2,K2],[0,0,0,0,4,4,()=>a4,()=>m4],5],u4=`unit`,pVe=[1,Y,xze,0,()=>mBe],d4=[1,Y,Cze,0,()=>gBe],f4=[1,Y,wze,0,()=>o4],mVe=[1,Y,Tze,0,()=>s4],p4=[1,Y,Eze,0,()=>c4],m4=[1,Y,Dze,0,()=>dVe],hVe=[1,Y,Oze,0,()=>l4],gVe=[9,Y,JIe,0,()=>hBe,()=>u4],_Ve=[9,Y,KIe,0,()=>_Be,()=>u4],vVe=[9,Y,XIe,0,()=>vBe,()=>u4],yVe=[9,Y,QIe,0,()=>yBe,()=>bBe],bVe=[9,Y,nLe,0,()=>xBe,()=>SBe],xVe=[9,Y,cLe,0,()=>CBe,()=>wBe],SVe=[9,Y,lLe,0,()=>TBe,()=>EBe],CVe=[9,Y,hLe,0,()=>DBe,()=>OBe],wVe=[9,Y,vLe,0,()=>kBe,()=>u4],TVe=[9,Y,SLe,0,()=>ABe,()=>u4],EVe=[9,Y,TLe,0,()=>jBe,()=>u4],DVe=[9,Y,kLe,0,()=>MBe,()=>u4],OVe=[9,Y,jLe,0,()=>NBe,()=>u4],kVe=[9,Y,DLe,0,()=>PBe,()=>u4],AVe=[9,Y,NLe,0,()=>FBe,()=>u4],jVe=[9,Y,VLe,0,()=>IBe,()=>LBe],MVe=[9,Y,WLe,0,()=>RBe,()=>zBe],NVe=[9,Y,qLe,0,()=>BBe,()=>VBe],PVe=[9,Y,XLe,0,()=>HBe,()=>UBe],FVe=[9,Y,$Le,0,()=>WBe,()=>GBe],IVe=[9,Y,fRe,0,()=>KBe,()=>qBe],LVe=[9,Y,hRe,0,()=>JBe,()=>YBe],RVe=[9,Y,vRe,0,()=>XBe,()=>ZBe],zVe=[9,Y,SRe,0,()=>eVe,()=>tVe],BVe=[9,Y,CRe,0,()=>QBe,()=>$Be],VVe=[9,Y,ARe,0,()=>nVe,()=>rVe],HVe=[9,Y,jRe,0,()=>iVe,()=>aVe],UVe=[9,Y,PRe,0,()=>oVe,()=>sVe],WVe=[9,Y,aze,0,()=>lVe,()=>u4],GVe=[9,Y,pze,0,()=>fVe,()=>u4],KVe=e=>({apiVersion:`2010-05-08`,base64Decoder:e?.base64Decoder??DD,base64Encoder:e?.base64Encoder??OD,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??oIe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??QFe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Yk}],logger:e?.logger??new Vk,protocol:e?.protocol??uA,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.iam`,errorTypeRegistries:dBe,xmlNamespace:`https://iam.amazonaws.com/doc/2010-05-08/`,version:`2010-05-08`,serviceTarget:`AWSIdentityManagementV20100508`},serviceId:e?.serviceId??`IAM`,urlParser:e?.urlParser??GD,utf8Decoder:e?.utf8Decoder??Cb,utf8Encoder:e?.utf8Encoder??Tb}),qVe=e=>{let t=rA(e),n=()=>t().then(Ik),r=KVe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??nA,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Qk({serviceId:r.serviceId,clientVersion:tIe.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??eA(`Region is missing`),requestHandler:PD.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||ek),sha256:e?.sha256??fb,streamCollector:e?.streamCollector??ID,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},JVe=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}}},YVe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),XVe=(e,t)=>{let n=Object.assign(l$(e),Rk(e),pb(e),JVe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,u$(n),zk(n),mb(n),YVe(n))},ZVe=class extends Ak{config;constructor(...[e]){let t=qVe(e||{});super(t),this.initConfig=t;let n=XVe($Fe(Ck(_D(hk(wk(jO(eIe(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(KD(this.config)),this.middlewareStack.use(fk(this.config)),this.middlewareStack.use(Uk(this.config)),this.middlewareStack.use(_k(this.config)),this.middlewareStack.use(vD(this.config)),this.middlewareStack.use(yD(this.config)),this.middlewareStack.use(bD(this.config)),this.middlewareStack.use(xD(this.config,{httpAuthSchemeParametersProvider:XFe,identityProviderConfigProvider:async e=>new kO({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(CD(this.config))}destroy(){super.destroy()}},QVe=class extends Nk.classBuilder().ep(K0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetInstanceProfile`,{}).n(`IAMClient`,`GetInstanceProfileCommand`).sc(jVe).build(){},$Ve=class extends Nk.classBuilder().ep(K0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicy`,{}).n(`IAMClient`,`GetPolicyCommand`).sc(MVe).build(){},eHe=class extends Nk.classBuilder().ep(K0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicyVersion`,{}).n(`IAMClient`,`GetPolicyVersionCommand`).sc(NVe).build(){},tHe=class extends Nk.classBuilder().ep(K0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetRole`,{}).n(`IAMClient`,`GetRoleCommand`).sc(PVe).build(){},nHe=class extends Nk.classBuilder().ep(K0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetUser`,{}).n(`IAMClient`,`GetUserCommand`).sc(FVe).build(){},rHe=class extends Nk.classBuilder().ep(K0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAccessKeys`,{}).n(`IAMClient`,`ListAccessKeysCommand`).sc(IVe).build(){},iHe=class extends Nk.classBuilder().ep(K0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedRolePolicies`,{}).n(`IAMClient`,`ListAttachedRolePoliciesCommand`).sc(LVe).build(){},aHe=class extends Nk.classBuilder().ep(K0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedUserPolicies`,{}).n(`IAMClient`,`ListAttachedUserPoliciesCommand`).sc(RVe).build(){},oHe=class extends Nk.classBuilder().ep(K0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListInstanceProfiles`,{}).n(`IAMClient`,`ListInstanceProfilesCommand`).sc(zVe).build(){},sHe=class extends Nk.classBuilder().ep(K0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListInstanceProfilesForRole`,{}).n(`IAMClient`,`ListInstanceProfilesForRoleCommand`).sc(BVe).build(){},cHe=class extends Nk.classBuilder().ep(K0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListPolicies`,{}).n(`IAMClient`,`ListPoliciesCommand`).sc(VVe).build(){},lHe=class extends Nk.classBuilder().ep(K0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListRoles`,{}).n(`IAMClient`,`ListRolesCommand`).sc(HVe).build(){},uHe=class extends Nk.classBuilder().ep(K0).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListUsers`,{}).n(`IAMClient`,`ListUsersCommand`).sc(UVe).build(){};function dHe(e){return t=>async n=>{let{request:r}=n;if(e.expectContinueHeader!==!1&&_b.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 fHe={step:`build`,tags:[`SET_EXPECT_HEADER`,`EXPECT_HEADER`],name:`addExpectContinueMiddleware`,override:!0},pHe=e=>({applyToStack:t=>{t.add(dHe(e),fHe)}}),h4={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},mHe=h4.WHEN_SUPPORTED,hHe={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},gHe=h4.WHEN_SUPPORTED,g4;(function(e){e.MD5=`MD5`,e.CRC32=`CRC32`,e.CRC32C=`CRC32C`,e.CRC64NVME=`CRC64NVME`,e.SHA1=`SHA1`,e.SHA256=`SHA256`})(g4||={});var _He;(function(e){e.HEADER=`header`,e.TRAILER=`trailer`})(_He||={});var vHe=g4.CRC32,yHe=function(){function e(){this.crc32=new _4}return e.prototype.update=function(e){tb(e)||this.crc32.update(eb(e))},e.prototype.digest=function(){return sb(this,void 0,void 0,function(){return cb(this,function(e){return[2,nb(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new _4},e}(),_4=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var r=lb(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.checksum=this.checksum>>>8^bHe[(this.checksum^a)&255]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}(),bHe=rb([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),xHe=e=>{let{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:rx(t??mHe),responseChecksumValidation:rx(n??gHe),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})},SHe=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}},CHe={tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectEndpointMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`};function wHe(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 THe={step:`initialize`,tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectMiddleware`,override:!0},EHe=e=>({applyToStack:t=>{t.add(wHe(e),THe),t.addRelativeTo(SHe(e),CHe)}}),DHe=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 v4(Promise.resolve(e)))})),t)):i.set(r,new v4(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}}},kHe=`sigv4-s3express`,y4=`X-Amz-S3session-Token`,b4=y4.toLowerCase(),AHe=class extends ux{async signWithCredentials(e,t,n){let r=x4(t);e.headers[b4]=t.sessionToken;let i=this;return S4(i,r),i.signRequest(e,n??{})}async presignWithCredentials(e,t,n){let r=x4(t);return delete e.headers[b4],e.headers[y4]=t.sessionToken,e.query=e.query??{},e.query[y4]=t.sessionToken,S4(this,r),this.presign(e,n)}};function x4(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function S4(e,t){let n=setTimeout(()=>{throw Error(`SignatureV4S3Express credential override was created but not called.`)},10),r=e.credentialProvider;e.credentialProvider=()=>(clearTimeout(n),e.credentialProvider=r,Promise.resolve(t))}var jHe=e=>(t,n)=>async r=>{if(n.endpointV2){let t=n.endpointV2,i=t.properties?.authSchemes?.[0]?.name===kHe;if((t.properties?.backend===`S3Express`||t.properties?.bucketType===`Directory`)&&(ck(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,_b.isInstance(r.request)&&i.sessionToken&&(r.request.headers[b4]=i.sessionToken)}}}return t(r)},MHe={name:`s3ExpressMiddleware`,step:`build`,tags:[`S3`,`S3_EXPRESS`],override:!0},NHe=e=>({applyToStack:t=>{t.add(jHe(e),MHe)}}),PHe=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},FHe=e=>e=>{throw e},IHe=(e,t)=>{},LHe=e=>(t,n)=>async r=>{if(!_b.isInstance(r.request))return t(r);let i=nx(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 PHe(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||FHe)(a));return(s.successHandler||IHe)(l.response,a),l},RHe=e=>({applyToStack:t=>{t.addRelativeTo(LHe(e),SD)}}),zHe=(e,{session:t})=>{let[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:a,disableMultiregionAccessPoints:o,followRegionRedirects:s,s3ExpressIdentityProvider:c,bucketEndpoint:l,expectContinueHeader:u}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:a??!1,disableMultiregionAccessPoints:o??!1,followRegionRedirects:s??!1,s3ExpressIdentityProvider:c??new OHe(async e=>n().send(new r({Bucket:e}))),bucketEndpoint:l??!1,expectContinueHeader:u??2097152})};function BHe(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}var VHe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},HHe=e=>(t,n)=>async r=>{let i=await t(r),{response:a}=i;if(!vb.isInstance(a))return i;let{statusCode:o,body:s}=a;if(o<200||o>=300)return i;let c=await UHe(s,e);if(a.body=BHe(c),c.length===0&&VHe[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},UHe=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),WHe={relation:`after`,toMiddleware:`deserializerMiddleware`,tags:[`THROW_200_EXCEPTIONS`,`S3`],name:`throw200ExceptionsMiddleware`,override:!0},C4=e=>({applyToStack:t=>{t.addRelativeTo(HHe(e),WHe)}}),GHe=e=>typeof e==`string`&&e.indexOf(`arn:`)===0&&e.split(`:`).length>=6;function KHe(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 qHe={name:`bucketEndpointMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`};function JHe({bucketEndpoint:e}){return t=>async n=>{let{input:{Bucket:r}}=n;if(!e&&typeof r==`string`&&!GHe(r)&&r.indexOf(`/`)>=0){let e=Error(`Bucket name shouldn't contain '/', received '${r}'`);throw e.name=`InvalidBucketName`,e}return t({...n})}}var YHe={step:`initialize`,tags:[`VALIDATE_BUCKET_NAME`],name:`validateBucketNameMiddleware`,override:!0},XHe=e=>({applyToStack:t=>{t.add(JHe(e),YHe),t.addRelativeTo(KHe(e),qHe)}}),ZHe=class extends Gde{async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=QD.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}},QHe=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),w4={CrtSignerV4:null},T4=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof w4.CrtSignerV4==`function`?`crt`:typeof dx.SignatureV4a==`function`?`js`:`none`}constructor(e){this.sigv4Signer=new AHe(e),this.signerOptions=e}async sign(e,t={}){return t.signingRegion===`*`?this.getSigv4aSigner().sign(e,t):this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,n={}){if(n.signingRegion===`*`){let r=this.getSigv4aSigner(),i=w4.CrtSignerV4;if(i&&r instanceof i)return r.signWithCredentials(e,t,n);throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,n)}async presign(e,t={}){if(t.signingRegion===`*`){let n=this.getSigv4aSigner(),r=w4.CrtSignerV4;if(r&&n instanceof r)return n.presign(e,t);throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,n={}){if(n.signingRegion===`*`)throw Error(`Method presignWithCredentials is not supported for [signingRegion=*].`);return this.sigv4Signer.presignWithCredentials(e,t,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=w4.CrtSignerV4,t=dx.SignatureV4a;if(this.signerOptions.runtime===`node`){if(!e&&!t)throw Error(`Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);if(e&&typeof e==`function`)this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==`function`)this.sigv4aSigner=new t({...this.signerOptions});else throw Error(`Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}else{if(!t||typeof t!=`function`)throw Error(`JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a`);this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}},E4=`ref`,D4=`argv`,O4=`backend`,k4=`authSchemes`,A4=`disableDoubleEncoding`,j4=`signingName`,M4=`signingRegion`,N4=`signingRegionSet`,P4=-1,F4=!0,I4=!1,L4=`isSet`,R4=`booleanEquals`,z4=`stringEquals`,B4=`coalesce`,V4=`substring`,H4=``,U4=`aws.partition`,W4=`partitionResult`,G4=`accessPointSuffix`,K4=`regionPrefix`,q4=e=>`outpostId_ssa_`+e+H4,J4=`hardwareType`,Y4=`ite`,X4=`isValidHostLabel`,Z4=`sigv4`,Q4=`aws.isVirtualHostableS3Bucket`,$4=`url`,e3=`getAttr`,t3=`bucketArn`,n3=`--`,r3=`arnType`,i3=`accesspoint`,a3=e=>`accessPointName_ssa_`+e+H4,o3=`s3-object-lambda`,s3=`s3-outposts`,c3=`bucketPartition`,l3=`us-east-1`,u3=`outpostType`,d3=`name`,f3=`s3`,p3=`{url#scheme}://{Bucket}.{url#authority}{url#path}`,m3=`{url#scheme}://{url#authority}{url#path}`,h3=`{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}`,g3=`https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}`,_3=`https://{Bucket}.s3.{partitionResult#dnsSuffix}`,v3=e=>`{url#scheme}://{accessPointName_ssa_`+e+`}-{bucketArn#accountId}.{url#authority}{url#path}`,y3=e=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+e+"}`",b3=`sigv4a`,x3=`{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}`,S3=`https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,C3=`https://s3.{partitionResult#dnsSuffix}`,w3={[E4]:`UseFIPS`},T3={[E4]:`UseDualStack`},E3={[E4]:`Bucket`},D3={fn:e3,[D4]:[{[E4]:W4},d3]},O3={[E4]:$4},k3={[E4]:`Region`},A3={[E4]:t3},j3={[E4]:r3},M3={[E4]:`accessPointName_ssa_1`},N3={fn:e3,[D4]:[A3,`region`]},P3={[E4]:J4},F3={fn:e3,[D4]:[A3,`service`]},I3={fn:e3,[D4]:[A3,`accountId`]},L3={[O4]:`S3Express`,[k4]:[{[A4]:!0,[d3]:`{_s3e_auth}`,[j4]:`s3express`,[M4]:`{Region}`}]},R3={[O4]:`S3Express`,[k4]:[{[A4]:!0,[d3]:Z4,[j4]:`s3express`,[M4]:`{Region}`}]},z3={[k4]:[{[A4]:!0,[d3]:b3,[j4]:s3,[N4]:[`*`]},{[A4]:!0,[d3]:Z4,[j4]:s3,[M4]:`{Region}`}]},B3={[k4]:[{[A4]:!0,[d3]:Z4,[j4]:f3,[M4]:l3}]},V3={[k4]:[{[A4]:!0,[d3]:Z4,[j4]:f3,[M4]:`{Region}`}]},H3={[k4]:[{[A4]:!0,[d3]:Z4,[j4]:o3,[M4]:`{bucketArn#region}`}]},U3={[k4]:[{[A4]:!0,[d3]:Z4,[j4]:f3,[M4]:`{bucketArn#region}`}]},W3={[k4]:[{[A4]:!0,[d3]:b3,[j4]:s3,[N4]:[`*`]},{[A4]:!0,[d3]:Z4,[j4]:s3,[M4]:`{bucketArn#region}`}]},G3={[k4]:[{[A4]:!0,[d3]:Z4,[j4]:o3,[M4]:`{Region}`}]},K3=[k3],q3=[{[E4]:`Endpoint`}],J3=[E3],Y3=[E3,0,7,!0],X3=[A3,`resourceId[1]`],$He=[`*`],Z3={conditions:[[L4,K3],[R4,[{[E4]:`Accelerate`},F4]],[R4,[w3,F4]],[R4,[T3,F4]],[L4,q3],[L4,J3],[z4,[{fn:B4,[D4]:[{fn:V4,[D4]:[E3,0,6,F4]},H4]},`--x-s3`]],[z4,[{fn:B4,[D4]:[{fn:V4,[D4]:Y3},H4]},`--xa-s3`]],[U4,K3,W4],[V4,Y3,G4],[z4,[{[E4]:G4},`--op-s3`]],[V4,[E3,8,12,F4],K4],[V4,[E3,32,49,F4],q4(2)],[V4,[E3,49,50,F4],J4],[R4,[{[E4]:`ForcePathStyle`},F4]],[z4,[D3,`aws-cn`]],[Y4,[T3,`.dualstack`,H4],`_s3e_ds`],[X4,[{[E4]:q4(2)},I4]],[Y4,[w3,`-fips`,H4],`_s3e_fips`],[Y4,[{fn:B4,[D4]:[{[E4]:`DisableS3ExpressSessionAuth`},I4]},Z4,`sigv4-s3express`],`_s3e_auth`],[Q4,[E3,I4]],[`parseURL`,q3,$4],[R4,[{fn:B4,[D4]:[{[E4]:`UseS3ExpressControlEndpoint`},I4]},F4]],[Q4,[E3,F4]],[z4,[{fn:e3,[D4]:[O3,`scheme`]},`http`]],[X4,[k3,I4]],[`aws.parseArn`,J3,t3],[e3,[{fn:`split`,[D4]:[E3,n3,0]},`[-2]`],`s3expressAvailabilityZoneId`],[z4,[{fn:B4,[D4]:[{fn:V4,[D4]:[E3,0,4,I4]},H4]},`arn:`]],[z4,[{fn:B4,[D4]:[{fn:V4,[D4]:[E3,16,18,F4]},H4]},n3]],[R4,[{fn:e3,[D4]:[O3,`isIp`]},F4]],[z4,[{fn:B4,[D4]:[{fn:V4,[D4]:[E3,21,23,F4]},H4]},n3]],[z4,[{fn:B4,[D4]:[{fn:V4,[D4]:[E3,27,29,F4]},H4]},n3]],[z4,[{[E4]:K4},`beta`]],[`uriEncode`,J3,`uri_encoded_bucket`],[X4,[k3,F4]],[R4,[{fn:B4,[D4]:[{[E4]:`UseObjectLambdaEndpoint`},I4]},F4]],[e3,[A3,`resourceId[0]`],r3],[z4,[j3,H4]],[z4,[j3,i3]],[e3,X3,a3(1)],[z4,[M3,H4]],[z4,[N3,H4]],[z4,[{fn:B4,[D4]:[{fn:V4,[D4]:[E3,14,16,F4]},H4]},n3]],[z4,[P3,`e`]],[z4,[P3,`o`]],[z4,[k3,`aws-global`]],[z4,[{fn:B4,[D4]:[{fn:V4,[D4]:[E3,19,21,F4]},H4]},n3]],[z4,[F3,o3]],[R4,[{fn:B4,[D4]:[{[E4]:`DisableAccessPoints`},I4]},F4]],[z4,[F3,s3]],[U4,[N3],c3],[X4,[M3,F4]],[z4,[{fn:B4,[D4]:[{fn:V4,[D4]:[E3,26,28,F4]},H4]},n3]],[z4,[{fn:B4,[D4]:[{fn:V4,[D4]:[E3,15,17,F4]},H4]},n3]],[e3,[A3,`resourceId[4]`]],[z4,[{fn:B4,[D4]:[{fn:V4,[D4]:[E3,20,22,F4]},H4]},n3]],[R4,[{[E4]:`UseGlobalEndpoint`},F4]],[z4,[k3,l3]],[e3,X3,q4(1)],[R4,[{fn:B4,[D4]:[{[E4]:`UseArnRegion`},F4]},F4]],[X4,[{[E4]:q4(1)},I4]],[e3,[A3,`resourceId[2]`],u3],[z4,[k3,N3]],[z4,[{fn:e3,[D4]:[{[E4]:c3},d3]},D3]],[R4,[{[E4]:`DisableMultiRegionAccessPoints`},F4]],[X4,[N3,F4]],[z4,[{fn:e3,[D4]:[A3,`partition`]},D3]],[z4,[I3,H4]],[z4,[F3,f3]],[X4,[I3,I4]],[e3,[A3,`resourceId[3]`],a3(2)],[X4,[M3,I4]],[z4,[{[E4]:u3},i3]],[X4,[{[E4]:a3(2)},I4]]],results:[[P4],[P4,`Accelerate cannot be used with FIPS`],[P4,`Cannot set dual-stack in combination with a custom endpoint.`],[P4,`A custom endpoint cannot be combined with FIPS`],[P4,`A custom endpoint cannot be combined with S3 Accelerate`],[P4,`Partition does not support FIPS`],[P4,`S3Express does not support S3 Accelerate.`],[`{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}`,L3],[p3,L3],[P4,`S3Express bucket name is not a valid virtual hostable name.`],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,R3],[`https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,L3],[P4,`Unrecognized S3Express bucket name format.`],[m3,L3],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,R3],[P4,`Expected a endpoint to be specified but no endpoint was found`],[`https://{Bucket}.ec2.{url#authority}`,z3],[`https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,z3],[`https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}`,z3],[`https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,z3],[P4,`Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"`],[P4,`Invalid Outposts Bucket alias - it must be a valid bucket name.`],[P4,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[P4,"Custom endpoint `{Endpoint}` was not a valid URI"],[P4,`S3 Accelerate cannot be used in this region`],[`https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,B3],[`https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,V3],[`https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}`,B3],[`https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}`,V3],[`https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}`,B3],[`https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}`,V3],[`https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,B3],[`https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,V3],[h3,B3],[p3,B3],[h3,V3],[p3,V3],[g3,B3],[g3,V3],[_3,B3],[_3,V3],[`https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}`,V3],[P4,`Invalid region: region was not a valid DNS name.`],[P4,`S3 Object Lambda does not support Dual-stack`],[P4,`S3 Object Lambda does not support S3 Accelerate`],[P4,`Access points are not supported for this operation`],[P4,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[P4,`Invalid ARN: Missing account id`],[v3(1),H3],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,H3],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}`,H3],[P4,y3(1)],[P4,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[P4,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[P4,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[P4,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[P4,`Invalid ARN: bucket ARN is missing a region`],[P4,"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided"],[P4,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[P4,`Access Points do not support S3 Accelerate`],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,U3],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,U3],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,U3],[v3(1),U3],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}`,U3],[P4,`Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}`],[P4,`S3 MRAP does not support dual-stack`],[P4,`S3 MRAP does not support FIPS`],[P4,`S3 MRAP does not support S3 Accelerate`],[P4,`Invalid configuration: Multi-Region Access Point ARNs are disabled.`],[`https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}`,{[k4]:[{[A4]:F4,name:b3,[j4]:f3,[N4]:$He}]}],[P4,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[P4,`Invalid Access Point Name`],[P4,`S3 Outposts does not support Dual-stack`],[P4,`S3 Outposts does not support FIPS`],[P4,`S3 Outposts does not support S3 Accelerate`],[P4,`Invalid Arn: Outpost Access Point ARN contains sub resources`],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}`,W3],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}`,W3],[P4,y3(2)],[P4,"Expected an outpost type `accesspoint`, found {outpostType}"],[P4,`Invalid ARN: expected an access point name`],[P4,`Invalid ARN: Expected a 4-component resource`],[P4,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[P4,`Invalid ARN: The Outpost Id was not set`],[P4,`Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})`],[P4,`Invalid ARN: No ARN type specified`],[P4,"Invalid ARN: `{Bucket}` was not a valid ARN"],[P4,`Path-style addressing cannot be used with ARN buckets`],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,B3],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,V3],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,B3],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,V3],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,B3],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,V3],[x3,B3],[x3,V3],[S3,B3],[S3,V3],[`https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,V3],[P4,`Path-style addressing cannot be used with S3 Accelerate`],[m3,G3],[`https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}`,G3],[`https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}`,G3],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,B3],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,V3],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}`,B3],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}`,V3],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,B3],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,V3],[m3,B3],[m3,V3],[C3,B3],[C3,V3],[`https://s3.{Region}.{partitionResult#dnsSuffix}`,V3],[P4,`A region must be set when sending requests to S3.`]]},eUe=2,X=1e8,tUe=new Int32Array([-1,1,-1,0,3,X+115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,X+115,16,10,13,18,11,13,19,12,13,22,X+14,13,35,14,X+42,36,X+103,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,X+86,38,X+86,29,39,47,30,48,X+58,31,50,32,X+85,51,33,136,55,X+76,34,59,35,X+84,60,39,36,61,37,X+83,62,38,146,63,41,X+46,61,40,X+83,62,41,150,64,42,X+54,66,43,X+53,70,44,X+52,71,45,X+81,73,46,X+80,74,X+78,X+79,40,48,X+57,41,X+57,49,42,185,50,48,62,51,49,X+45,52,51,53,526,60,56,54,62,X+55,55,63,57,X+46,62,X+55,57,64,58,X+54,66,59,X+53,69,60,X+65,70,61,X+52,72,X+64,X+51,49,X+45,63,51,64,526,60,67,65,62,X+55,66,63,68,X+46,62,X+55,68,64,69,X+54,66,70,X+53,68,X+47,71,70,72,X+52,72,X+50,X+51,25,74,X+42,46,X+39,75,57,76,X+41,58,X+40,X+41,26,X+88,78,28,X+87,79,34,82,80,35,81,545,36,X+103,X+115,46,X+97,83,57,84,X+99,58,X+98,X+99,5,101,86,8,87,X+115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,X+14,95,35,96,X+42,36,X+103,X+42,22,X+13,98,35,99,X+42,36,X+101,100,46,X+110,X+111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,X+23,26,107,502,37,108,X+86,38,X+86,109,39,112,110,48,X+58,111,50,136,X+85,40,113,X+57,41,X+57,114,42,115,500,48,X+56,116,52,117,X+72,65,X+69,X+72,21,501,X+23,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,X+23,23,128,129,24,189,129,26,130,197,37,131,X+86,38,X+86,132,39,159,133,48,X+58,134,50,135,X+85,51,141,136,55,X+76,137,59,138,X+84,60,X+83,139,61,140,X+83,63,X+83,X+46,55,X+76,142,59,143,X+84,60,148,144,61,145,X+83,62,147,146,63,150,X+46,63,153,X+46,61,149,X+83,62,153,150,64,151,X+54,66,152,X+53,70,X+82,X+52,64,154,X+54,66,155,X+53,70,156,X+52,71,157,X+81,73,158,X+80,74,X+77,X+79,40,160,X+57,41,X+57,161,42,185,162,48,174,163,49,X+45,164,51,165,526,60,168,166,62,X+55,167,63,169,X+46,62,X+55,169,64,170,X+54,66,171,X+53,69,172,X+65,70,173,X+52,72,X+63,X+51,49,X+45,175,51,176,526,60,179,177,62,X+55,178,63,180,X+46,62,X+55,180,64,181,X+54,66,182,X+53,68,X+47,183,70,184,X+52,72,X+48,X+51,48,X+56,186,52,187,X+72,65,X+69,188,67,X+70,X+71,25,X+36,X+42,21,191,X+23,25,192,X+42,30,194,193,46,X+34,X+36,46,X+33,X+35,21,196,X+23,26,X+88,197,28,X+87,198,34,201,199,35,200,545,36,X+101,X+115,46,X+95,X+96,17,203,X+22,20,204,X+21,21,205,550,33,206,550,44,X+16,207,45,X+18,X+20,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,X+9,20,217,227,21,231,X+9,16,219,220,18,223,220,19,221,224,20,222,227,21,231,X+12,19,226,224,20,225,X+9,21,X+9,X+12,20,230,227,21,228,X+9,30,229,X+9,34,X+7,X+9,21,231,415,30,232,X+8,34,X+7,X+8,4,X+2,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,X+86,38,X+86,248,39,249,518,40,250,X+57,41,X+57,251,42,538,252,48,X+43,253,49,X+45,254,51,255,526,60,258,256,62,X+55,257,63,259,X+46,62,X+55,259,64,260,X+54,66,261,X+53,69,262,X+65,70,263,X+52,72,X+62,X+51,25,265,X+42,46,X+31,X+32,26,X+88,267,28,X+87,268,34,269,544,46,X+93,X+94,8,397,X+9,8,407,X+9,3,346,273,4,X+3,274,5,284,275,8,276,X+115,15,X+5,277,16,278,281,18,279,281,19,280,281,22,X+14,281,35,282,X+42,36,X+102,283,46,X+106,X+107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,X+86,38,X+86,291,39,292,307,40,293,X+57,41,X+57,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,X+5,302,20,337,303,26,304,341,37,305,X+86,38,X+86,306,39,309,307,48,X+58,308,50,X+74,X+85,40,310,X+57,41,X+57,311,42,335,312,48,324,313,49,X+45,314,51,315,526,60,318,316,62,X+55,317,63,319,X+46,62,X+55,319,64,320,X+54,66,321,X+53,69,322,X+65,70,323,X+52,72,X+61,X+51,49,X+45,325,51,326,526,60,329,327,62,X+55,328,63,330,X+46,62,X+55,330,64,331,X+54,66,332,X+53,68,X+47,333,70,334,X+52,72,X+49,X+51,48,X+56,336,52,X+67,X+72,25,338,X+42,46,X+27,X+28,15,X+5,340,26,X+88,341,28,X+87,342,34,345,343,35,344,545,36,X+102,X+115,46,X+91,X+92,4,X+2,347,5,357,348,8,349,X+115,15,X+5,350,16,351,354,18,352,354,19,353,354,22,X+14,354,35,355,X+42,36,X+43,356,46,X+104,X+105,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,X+5,367,20,387,368,26,369,391,37,370,X+86,38,X+86,371,39,372,518,40,373,X+57,41,X+57,374,42,538,375,48,X+43,376,49,X+45,377,51,378,526,60,381,379,62,X+55,380,63,382,X+46,62,X+55,382,64,383,X+54,66,384,X+53,69,385,X+65,70,386,X+52,72,X+60,X+51,25,388,X+42,46,X+25,X+26,15,X+5,390,26,X+88,391,28,X+87,392,34,393,544,46,X+89,X+90,15,X+5,547,8,396,X+9,15,X+5,397,16,398,410,18,399,410,19,400,410,20,401,X+9,27,402,X+12,29,X+11,403,31,X+11,404,32,X+11,422,8,406,X+9,15,X+5,407,16,408,410,18,409,410,19,411,410,20,X+12,X+9,20,414,412,22,413,X+9,34,X+10,X+9,22,416,415,27,419,X+12,27,418,417,34,X+10,X+12,34,X+10,419,43,X+11,420,47,X+11,421,53,X+11,422,54,X+11,423,56,X+11,X+12,2,X+1,425,3,478,426,4,X+4,427,5,438,428,8,429,X+115,16,430,433,18,431,433,19,432,433,22,X+14,433,35,434,X+42,36,X+44,435,46,X+112,436,57,437,X+114,58,X+113,X+114,6,X+6,439,7,X+6,440,8,450,441,14,501,442,26,443,502,37,444,X+86,38,X+86,445,39,446,465,40,447,X+57,41,X+57,448,42,471,449,48,X+44,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,X+42,46,X+37,X+38,20,540,461,26,462,474,37,463,X+86,38,X+86,464,39,467,465,48,X+58,466,50,X+75,X+85,40,468,X+57,41,X+57,469,42,471,470,48,X+44,524,48,X+44,472,52,X+68,X+72,26,X+88,474,28,X+87,475,34,X+100,476,35,477,545,36,X+44,X+115,4,X+2,479,5,488,480,8,481,X+115,16,482,485,18,483,485,19,484,485,22,X+14,485,35,486,X+42,36,X+43,487,46,X+108,X+109,6,X+6,489,7,X+6,490,8,503,491,14,501,492,26,493,502,37,494,X+86,38,X+86,495,39,496,518,40,497,X+57,41,X+57,498,42,538,499,48,X+43,500,49,X+45,526,26,X+88,502,28,X+87,X+115,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,X+42,46,X+29,X+30,20,540,514,26,515,542,37,516,X+86,38,X+86,517,39,520,518,48,X+58,519,50,X+73,X+85,40,521,X+57,41,X+57,522,42,538,523,48,X+43,524,49,X+45,525,51,529,526,60,X+55,527,62,X+55,528,63,X+55,X+46,60,532,530,62,X+55,531,63,533,X+46,62,X+55,533,64,534,X+54,66,535,X+53,69,536,X+65,70,537,X+52,72,X+59,X+51,48,X+43,539,52,X+66,X+72,25,X+24,X+42,26,X+88,542,28,X+87,543,34,X+100,544,35,546,545,36,X+42,X+115,36,X+43,X+115,17,548,X+22,20,549,X+21,33,552,550,44,X+17,551,45,X+19,X+20,44,X+15,553,45,X+15,X+20]),nUe=MO.from(tUe,eUe,Z3.conditions,Z3.results),rUe=new NO({size:50,params:[`Accelerate`,`Bucket`,`DisableAccessPoints`,`DisableMultiRegionAccessPoints`,`DisableS3ExpressSessionAuth`,`Endpoint`,`ForcePathStyle`,`Region`,`UseArnRegion`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`,`UseObjectLambdaEndpoint`,`UseS3ExpressControlEndpoint`]}),Q3=(e,t={})=>rUe.get(e,()=>YO(nUe,{endpointParams:e,logger:t.logger}));IO.aws=QO;var iUe=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=nx(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await xk(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:nx(t).operation,region:await rx(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function $3(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function e6(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var aUe=((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(T4.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})(Q3,e=>{let t=[];switch(e.operation){default:t.push($3(e)),t.push(e6(e))}return t},{"aws.auth#sigv4":$3,"aws.auth#sigv4a":e6}),oUe=e=>{let t=xde(Xk(e));return Object.assign(t,{authSchemePreference:rx(e.authSchemePreference??[])})},sUe=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??{}}),t6={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`}},n6=class e extends Pk{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},cUe=class e extends n6{name=`NoSuchUpload`;$fault=`client`;constructor(t){super({name:`NoSuchUpload`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lUe=class e extends n6{name=`AccessDenied`;$fault=`client`;constructor(t){super({name:`AccessDenied`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uUe=class e extends n6{name=`ObjectNotInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectNotInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dUe=class e extends n6{name=`BucketAlreadyExists`;$fault=`client`;constructor(t){super({name:`BucketAlreadyExists`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fUe=class e extends n6{name=`BucketAlreadyOwnedByYou`;$fault=`client`;constructor(t){super({name:`BucketAlreadyOwnedByYou`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pUe=class e extends n6{name=`NoSuchBucket`;$fault=`client`;constructor(t){super({name:`NoSuchBucket`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mUe=class e extends n6{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}},hUe=class e extends n6{name=`NoSuchKey`;$fault=`client`;constructor(t){super({name:`NoSuchKey`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gUe=class e extends n6{name=`NotFound`;$fault=`client`;constructor(t){super({name:`NotFound`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_Ue=class e extends n6{name=`EncryptionTypeMismatch`;$fault=`client`;constructor(t){super({name:`EncryptionTypeMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vUe=class e extends n6{name=`InvalidRequest`;$fault=`client`;constructor(t){super({name:`InvalidRequest`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yUe=class e extends n6{name=`InvalidWriteOffset`;$fault=`client`;constructor(t){super({name:`InvalidWriteOffset`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bUe=class e extends n6{name=`TooManyParts`;$fault=`client`;constructor(t){super({name:`TooManyParts`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xUe=class e extends n6{name=`IdempotencyParameterMismatch`;$fault=`client`;constructor(t){super({name:`IdempotencyParameterMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},SUe=class e extends n6{name=`ObjectAlreadyInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectAlreadyInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},r6=`ACL`,CUe=`AccessDenied`,wUe=`AbortDate`,i6=`AccessKeyId`,TUe=`AbortMultipartUpload`,EUe=`AbortMultipartUploadOutput`,DUe=`AbortMultipartUploadRequest`,OUe=`AcceptRanges`,kUe=`AbortRuleId`,AUe=`AccessTier`,a6=`Bucket`,o6=`BucketArn`,jUe=`BucketAlreadyExists`,MUe=`BucketAlreadyOwnedByYou`,NUe=`BypassGovernanceRetention`,PUe=`BucketInfo`,s6=`BucketKeyEnabled`,FUe=`BucketNamespace`,c6=`BucketRegion`,l6=`Body`,u6=`Buckets`,d6=`ChecksumAlgorithm`,IUe=`CreateBucket`,f6=`CreateBucketConfiguration`,LUe=`CreateBucketOutput`,RUe=`CreateBucketRequest`,p6=`CacheControl`,m6=`ChecksumCRC32`,h6=`ChecksumCRC32C`,g6=`ChecksumCRC64NVME`,_6=`Cache-Control`,zUe=`CreationDate`,v6=`Content-Disposition`,y6=`ContentDisposition`,b6=`Content-Encoding`,x6=`ContentEncoding`,S6=`ContentLanguage`,C6=`Content-Language`,w6=`Content-Length`,T6=`ContentLength`,E6=`Content-MD5`,D6=`ChecksumMD5`,O6=`ContentMD5`,BUe=`CompletedMultipartUpload`,VUe=`CompleteMultipartUploadOutput`,HUe=`CreateMultipartUploadOutput`,UUe=`CompleteMultipartUploadResult`,WUe=`CompleteMultipartUploadRequest`,GUe=`CreateMultipartUploadRequest`,k6=`CompleteMultipartUpload`,KUe=`CreateMultipartUpload`,qUe=`ChecksumMode`,JUe=`CommonPrefix`,YUe=`CommonPrefixList`,XUe=`CompletedPartList`,ZUe=`CompletedPart`,QUe=`CommonPrefixes`,$Ue=`ContentRange`,eWe=`Content-Range`,A6=`ChecksumSHA1`,j6=`ChecksumSHA256`,M6=`ChecksumSHA512`,tWe=`CreateSessionOutput`,nWe=`CreateSessionResult`,rWe=`CreateSessionRequest`,iWe=`CreateSession`,N6=`ChecksumType`,P6=`Content-Type`,F6=`ContentType`,I6=`ContinuationToken`,L6=`ChecksumXXHASH64`,R6=`ChecksumXXHASH3`,z6=`ChecksumXXHASH128`,aWe=`Contents`,B6=`Credentials`,V6=`DeleteMarker`,oWe=`DisplayName`,sWe=`DeleteObjectOutput`,cWe=`DeleteObjectRequest`,lWe=`DeleteObject`,uWe=`DataRedundancy`,H6=`Delimiter`,U6=`Expiration`,W6=`ExpectedBucketOwner`,G6=`ExpiresString`,dWe=`EncryptionTypeMismatch`,K6=`ETag`,q6=`EncodingType`,J6=`Expires`,fWe=`FetchOwner`,Y6=`GrantFullControl`,pWe=`GetObject`,mWe=`GetObjectOutput`,hWe=`GetObjectRequest`,X6=`GrantRead`,Z6=`GrantReadACP`,gWe=`GrantWrite`,Q6=`GrantWriteACP`,_We=`ID`,$6=`IfMatch`,vWe=`IfMatchInitiatedTime`,yWe=`IfMatchLastModifiedTime`,bWe=`IfMatchSize`,xWe=`If-Modified-Since`,SWe=`IfModifiedSince`,CWe=`InitiateMultipartUploadResult`,e8=`If-Match`,t8=`IfNoneMatch`,n8=`If-None-Match`,wWe=`InvalidObjectState`,TWe=`IdempotencyParameterMismatch`,EWe=`InvalidRequest`,DWe=`IsRestoreInProgress`,OWe=`IsTruncated`,kWe=`IfUnmodifiedSince`,AWe=`If-Unmodified-Since`,jWe=`InvalidWriteOffset`,r8=`Key`,MWe=`KeyCount`,i8=`Location`,NWe=`ListAllMyBucketsResult`,PWe=`ListBuckets`,FWe=`ListBucketsOutput`,IWe=`ListBucketsRequest`,LWe=`ListBucketResult`,RWe=`LocationConstraint`,zWe=`LocationInfo`,a8=`LastModified`,BWe=`Last-Modified`,VWe=`ListObjectsV2`,HWe=`ListObjectsV2Output`,UWe=`ListObjectsV2Request`,o8=`Metadata`,WWe=`MaxBuckets`,GWe=`MFA`,s8=`MaxKeys`,KWe=`MissingMeta`,qWe=`MpuObjectSize`,JWe=`MultipartUpload`,c8=`Name`,YWe=`NextContinuationToken`,XWe=`NotFound`,ZWe=`NoSuchBucket`,QWe=`NoSuchKey`,$We=`NoSuchUpload`,l8=`Owner`,eGe=`ObjectAlreadyInActiveTierError`,tGe=`ObjectLockEnabledForBucket`,u8=`ObjectLockLegalHoldStatus`,d8=`ObjectLockMode`,f8=`ObjectLockRetainUntilDate`,nGe=`ObjectList`,rGe=`ObjectNotInActiveTierError`,iGe=`ObjectOwnership`,aGe=`OptionalObjectAttributes`,oGe=`Object`,p8=`Prefix`,sGe=`PartsCount`,m8=`PartNumber`,cGe=`PutObject`,lGe=`PutObjectOutput`,uGe=`PutObjectRequest`,dGe=`PutObjectTagging`,fGe=`PutObjectTaggingOutput`,pGe=`PutObjectTaggingRequest`,mGe=`Parts`,hGe=`Part`,h8=`RequestCharged`,gGe=`ResponseCacheControl`,_Ge=`ResponseContentDisposition`,vGe=`ResponseContentEncoding`,yGe=`ResponseContentLanguage`,bGe=`ResponseContentType`,xGe=`ResponseExpires`,SGe=`RestoreExpiryDate`,g8=`RequestPayer`,CGe=`ReplicationStatus`,_8=`RestoreStatus`,v8=`Range`,wGe=`Restore`,y8=`StartAfter`,b8=`SecretAccessKey`,TGe=`StreamingBlob`,x8=`StorageClass`,EGe=`SessionCredentialValue`,DGe=`SessionCredentials`,OGe=`SessionMode`,S8=`ServerSideEncryption`,C8=`SSECustomerAlgorithm`,w8=`SSECustomerKey`,T8=`SSECustomerKeyMD5`,E8=`SSEKMSEncryptionContext`,D8=`SSEKMSKeyId`,O8=`SessionToken`,k8=`Size`,kGe=`Tags`,AGe=`TagCount`,jGe=`TooManyParts`,A8=`TagSet`,j8=`Tag`,M8=`Tagging`,N8=`Type`,P8=`UploadId`,MGe=`UploadPart`,NGe=`UploadPartOutput`,PGe=`UploadPartRequest`,FGe=`Value`,F8=`VersionId`,IGe=`WriteOffsetBytes`,I8=`WebsiteRedirectLocation`,LGe=`accept-ranges`,RGe=`bucket-region`,L8=`client`,R8=`continuation-token`,zGe=`delimiter`,z8=`error`,BGe=`encoding-type`,VGe=`fetch-owner`,B8=`http`,V8=`httpChecksum`,H8=`httpError`,Z=`httpHeader`,U8=`httpPayload`,W8=`httpPrefixHeaders`,G8=`httpQuery`,HGe=`max-buckets`,UGe=`max-keys`,K8=`prefix`,q8=`partNumber`,WGe=`response-cache-control`,GGe=`response-content-disposition`,KGe=`response-content-encoding`,qGe=`response-content-language`,JGe=`response-content-type`,YGe=`response-expires`,J8=`smithy.ts.sdk.synthetic.com.amazonaws.s3`,XGe=`start-after`,ZGe=`streaming`,Y8=`uploadId`,X8=`versionId`,Z8=`xmlFlattened`,Q8=`xmlName`,$8=`x-amz-acl`,QGe=`x-amz-abort-date`,$Ge=`x-amz-abort-rule-id`,eKe=`x-amz-bucket-arn`,tKe=`x-amz-bypass-governance-retention`,nKe=`x-amz-bucket-namespace`,rKe=`x-amz-bucket-object-lock-enabled`,e5=`x-amz-checksum-algorithm`,t5=`x-amz-checksum-crc32`,n5=`x-amz-checksum-crc32c`,r5=`x-amz-checksum-crc64nvme`,i5=`x-amz-checksum-md5`,iKe=`x-amz-checksum-mode`,a5=`x-amz-checksum-sha1`,o5=`x-amz-checksum-sha256`,s5=`x-amz-checksum-sha512`,aKe=`x-amz-create-session-mode`,c5=`x-amz-checksum-type`,l5=`x-amz-checksum-xxhash64`,u5=`x-amz-checksum-xxhash3`,d5=`x-amz-checksum-xxhash128`,f5=`x-amz-delete-marker`,p5=`x-amz-expiration`,m5=`x-amz-expected-bucket-owner`,h5=`x-amz-grant-full-control`,g5=`x-amz-grant-read`,_5=`x-amz-grant-read-acp`,oKe=`x-amz-grant-write`,v5=`x-amz-grant-write-acp`,sKe=`x-amz-if-match-initiated-time`,cKe=`x-amz-if-match-last-modified-time`,lKe=`x-amz-if-match-size`,y5=`x-amz-meta-`,uKe=`x-amz-mfa`,dKe=`x-amz-missing-meta`,fKe=`x-amz-mp-object-size`,pKe=`x-amz-mp-parts-count`,b5=`x-amz-object-lock-legal-hold`,x5=`x-amz-object-lock-mode`,S5=`x-amz-object-lock-retain-until-date`,mKe=`x-amz-object-ownership`,hKe=`x-amz-optional-object-attributes`,gKe=`x-amz-object-size`,_Ke=`x-amz-restore`,C5=`x-amz-request-charged`,w5=`x-amz-request-payer`,vKe=`x-amz-replication-status`,T5=`x-amz-storage-class`,E5=`x-amz-sdk-checksum-algorithm`,D5=`x-amz-server-side-encryption`,O5=`x-amz-server-side-encryption-aws-kms-key-id`,k5=`x-amz-server-side-encryption-bucket-key-enabled`,A5=`x-amz-server-side-encryption-context`,j5=`x-amz-server-side-encryption-customer-algorithm`,M5=`x-amz-server-side-encryption-customer-key`,N5=`x-amz-server-side-encryption-customer-key-MD5`,P5=`x-amz-tagging`,yKe=`x-amz-tagging-count`,F5=`x-amz-version-id`,bKe=`x-amz-write-offset-bytes`,I5=`x-amz-website-redirect-location`,Q=`com.amazonaws.s3`,L5=tO.for(J8),xKe=[-3,J8,`S3ServiceException`,0,[],[]];L5.registerError(xKe,n6);var R5=tO.for(Q),SKe=[-3,Q,CUe,{[z8]:L8,[H8]:403},[],[]];R5.registerError(SKe,lUe);var CKe=[-3,Q,jUe,{[z8]:L8,[H8]:409},[],[]];R5.registerError(CKe,dUe);var wKe=[-3,Q,MUe,{[z8]:L8,[H8]:409},[],[]];R5.registerError(wKe,fUe);var TKe=[-3,Q,dWe,{[z8]:L8,[H8]:400},[],[]];R5.registerError(TKe,_Ue);var EKe=[-3,Q,TWe,{[z8]:L8,[H8]:400},[],[]];R5.registerError(EKe,xUe);var DKe=[-3,Q,wWe,{[z8]:L8,[H8]:403},[x8,AUe],[0,0]];R5.registerError(DKe,mUe);var OKe=[-3,Q,EWe,{[z8]:L8,[H8]:400},[],[]];R5.registerError(OKe,vUe);var kKe=[-3,Q,jWe,{[z8]:L8,[H8]:400},[],[]];R5.registerError(kKe,yUe);var AKe=[-3,Q,ZWe,{[z8]:L8,[H8]:404},[],[]];R5.registerError(AKe,pUe);var jKe=[-3,Q,QWe,{[z8]:L8,[H8]:404},[],[]];R5.registerError(jKe,hUe);var MKe=[-3,Q,$We,{[z8]:L8,[H8]:404},[],[]];R5.registerError(MKe,cUe);var NKe=[-3,Q,XWe,{[z8]:L8},[],[]];R5.registerError(NKe,gUe);var PKe=[-3,Q,eGe,{[z8]:L8,[H8]:403},[],[]];R5.registerError(PKe,SUe);var FKe=[-3,Q,rGe,{[z8]:L8,[H8]:403},[],[]];R5.registerError(FKe,uUe);var IKe=[-3,Q,jGe,{[z8]:L8,[H8]:400},[],[]];R5.registerError(IKe,bUe);var LKe=[L5,R5],z5=[0,Q,EGe,8,0],B5=[0,Q,w8,8,0],V5=[0,Q,E8,8,0],H5=[0,Q,D8,8,0],U5=[0,Q,TGe,{[ZGe]:1},42],RKe=[3,Q,EUe,0,[h8],[[0,{[Z]:C5}]]],zKe=[3,Q,DUe,0,[a6,r8,P8,g8,W6,vWe],[[0,1],[0,1],[0,{[G8]:Y8}],[0,{[Z]:w5}],[0,{[Z]:m5}],[6,{[Z]:sKe}]],3],BKe=[3,Q,a6,0,[c8,zUe,c6,o6],[0,4,0,0]],VKe=[3,Q,PUe,0,[uWe,N8],[0,0]],HKe=[3,Q,JUe,0,[p8],[0]],UKe=[3,Q,BUe,0,[mGe],[[()=>Sqe,{[Z8]:1,[Q8]:hGe}]]],WKe=[3,Q,ZUe,0,[K6,m6,h6,g6,A6,j6,M6,D6,L6,R6,z6,m8],[0,0,0,0,0,0,0,0,0,0,0,1]],GKe=[3,Q,VUe,{[Q8]:UUe},[i8,a6,r8,U6,K6,m6,h6,g6,A6,j6,M6,D6,L6,R6,z6,N6,S8,F8,D8,s6,h8],[0,0,0,[0,{[Z]:p5}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[Z]:D5}],[0,{[Z]:F5}],[()=>H5,{[Z]:O5}],[2,{[Z]:k5}],[0,{[Z]:C5}]]],KKe=[3,Q,WUe,0,[a6,r8,P8,JWe,m6,h6,g6,A6,j6,M6,D6,L6,R6,z6,N6,qWe,g8,W6,$6,t8,C8,w8,T8],[[0,1],[0,1],[0,{[G8]:Y8}],[()=>UKe,{[U8]:1,[Q8]:k6}],[0,{[Z]:t5}],[0,{[Z]:n5}],[0,{[Z]:r5}],[0,{[Z]:a5}],[0,{[Z]:o5}],[0,{[Z]:s5}],[0,{[Z]:i5}],[0,{[Z]:l5}],[0,{[Z]:u5}],[0,{[Z]:d5}],[0,{[Z]:c5}],[1,{[Z]:fKe}],[0,{[Z]:w5}],[0,{[Z]:m5}],[0,{[Z]:e8}],[0,{[Z]:n8}],[0,{[Z]:j5}],[()=>B5,{[Z]:M5}],[0,{[Z]:N5}]],3],qKe=[3,Q,f6,0,[RWe,i8,a6,kGe],[0,()=>cqe,()=>VKe,[()=>G5,0]]],JKe=[3,Q,LUe,0,[i8,o6],[[0,{[Z]:i8}],[0,{[Z]:eKe}]]],YKe=[3,Q,RUe,0,[a6,r6,f6,Y6,X6,Z6,gWe,Q6,tGe,iGe,FUe],[[0,1],[0,{[Z]:$8}],[()=>qKe,{[U8]:1,[Q8]:f6}],[0,{[Z]:h5}],[0,{[Z]:g5}],[0,{[Z]:_5}],[0,{[Z]:oKe}],[0,{[Z]:v5}],[2,{[Z]:rKe}],[0,{[Z]:mKe}],[0,{[Z]:nKe}]],1],XKe=[3,Q,HUe,{[Q8]:CWe},[wUe,kUe,a6,r8,P8,S8,C8,T8,D8,E8,s6,h8,d6,N6],[[4,{[Z]:QGe}],[0,{[Z]:$Ge}],[0,{[Q8]:a6}],0,0,[0,{[Z]:D5}],[0,{[Z]:j5}],[0,{[Z]:N5}],[()=>H5,{[Z]:O5}],[()=>V5,{[Z]:A5}],[2,{[Z]:k5}],[0,{[Z]:C5}],[0,{[Z]:e5}],[0,{[Z]:c5}]]],ZKe=[3,Q,GUe,0,[a6,r8,r6,p6,y6,x6,S6,F6,J6,Y6,X6,Z6,Q6,o8,S8,x8,I8,C8,w8,T8,D8,E8,s6,g8,M8,d8,f8,u8,W6,d6,N6],[[0,1],[0,1],[0,{[Z]:$8}],[0,{[Z]:_6}],[0,{[Z]:v6}],[0,{[Z]:b6}],[0,{[Z]:C6}],[0,{[Z]:P6}],[4,{[Z]:J6}],[0,{[Z]:h5}],[0,{[Z]:g5}],[0,{[Z]:_5}],[0,{[Z]:v5}],[128,{[W8]:y5}],[0,{[Z]:D5}],[0,{[Z]:T5}],[0,{[Z]:I5}],[0,{[Z]:j5}],[()=>B5,{[Z]:M5}],[0,{[Z]:N5}],[()=>H5,{[Z]:O5}],[()=>V5,{[Z]:A5}],[2,{[Z]:k5}],[0,{[Z]:w5}],[0,{[Z]:P5}],[0,{[Z]:x5}],[5,{[Z]:S5}],[0,{[Z]:b5}],[0,{[Z]:m5}],[0,{[Z]:e5}],[0,{[Z]:c5}]],2],QKe=[3,Q,tWe,{[Q8]:nWe},[B6,S8,D8,E8,s6],[[()=>hqe,{[Q8]:B6}],[0,{[Z]:D5}],[()=>H5,{[Z]:O5}],[()=>V5,{[Z]:A5}],[2,{[Z]:k5}]],1],$Ke=[3,Q,rWe,0,[a6,OGe,S8,D8,E8,s6],[[0,1],[0,{[Z]:aKe}],[0,{[Z]:D5}],[()=>H5,{[Z]:O5}],[()=>V5,{[Z]:A5}],[2,{[Z]:k5}]],1],eqe=[3,Q,sWe,0,[V6,F8,h8],[[2,{[Z]:f5}],[0,{[Z]:F5}],[0,{[Z]:C5}]]],tqe=[3,Q,cWe,0,[a6,r8,GWe,F8,g8,NUe,W6,$6,yWe,bWe],[[0,1],[0,1],[0,{[Z]:uKe}],[0,{[G8]:X8}],[0,{[Z]:w5}],[2,{[Z]:tKe}],[0,{[Z]:m5}],[0,{[Z]:e8}],[6,{[Z]:cKe}],[1,{[Z]:lKe}]],2],nqe=[3,Q,mWe,0,[l6,V6,OUe,U6,wGe,a8,T6,K6,m6,h6,g6,A6,j6,M6,D6,L6,R6,z6,N6,KWe,F8,p6,y6,x6,S6,$Ue,F6,J6,G6,I8,S8,o8,C8,T8,D8,s6,x8,h8,CGe,sGe,AGe,d8,f8,u8],[[()=>U5,16],[2,{[Z]:f5}],[0,{[Z]:LGe}],[0,{[Z]:p5}],[0,{[Z]:_Ke}],[4,{[Z]:BWe}],[1,{[Z]:w6}],[0,{[Z]:K6}],[0,{[Z]:t5}],[0,{[Z]:n5}],[0,{[Z]:r5}],[0,{[Z]:a5}],[0,{[Z]:o5}],[0,{[Z]:s5}],[0,{[Z]:i5}],[0,{[Z]:l5}],[0,{[Z]:u5}],[0,{[Z]:d5}],[0,{[Z]:c5}],[1,{[Z]:dKe}],[0,{[Z]:F5}],[0,{[Z]:_6}],[0,{[Z]:v6}],[0,{[Z]:b6}],[0,{[Z]:C6}],[0,{[Z]:eWe}],[0,{[Z]:P6}],[4,{[Z]:J6}],[0,{[Z]:G6}],[0,{[Z]:I5}],[0,{[Z]:D5}],[128,{[W8]:y5}],[0,{[Z]:j5}],[0,{[Z]:N5}],[()=>H5,{[Z]:O5}],[2,{[Z]:k5}],[0,{[Z]:T5}],[0,{[Z]:C5}],[0,{[Z]:vKe}],[1,{[Z]:pKe}],[1,{[Z]:yKe}],[0,{[Z]:x5}],[5,{[Z]:S5}],[0,{[Z]:b5}]]],rqe=[3,Q,hWe,0,[a6,r8,$6,SWe,t8,kWe,v8,gGe,_Ge,vGe,yGe,bGe,xGe,F8,C8,w8,T8,g8,m8,W6,qUe],[[0,1],[0,1],[0,{[Z]:e8}],[4,{[Z]:xWe}],[0,{[Z]:n8}],[4,{[Z]:AWe}],[0,{[Z]:v8}],[0,{[G8]:WGe}],[0,{[G8]:GGe}],[0,{[G8]:KGe}],[0,{[G8]:qGe}],[0,{[G8]:JGe}],[6,{[G8]:YGe}],[0,{[G8]:X8}],[0,{[Z]:j5}],[()=>B5,{[Z]:M5}],[0,{[Z]:N5}],[0,{[Z]:w5}],[1,{[G8]:q8}],[0,{[Z]:m5}],[0,{[Z]:iKe}]],2],iqe=[3,Q,FWe,{[Q8]:NWe},[u6,l8,I6,p8],[[()=>bqe,0],()=>W5,0,0]],aqe=[3,Q,IWe,0,[WWe,I6,p8,c6],[[1,{[G8]:HGe}],[0,{[G8]:R8}],[0,{[G8]:K8}],[0,{[G8]:RGe}]]],oqe=[3,Q,HWe,{[Q8]:LWe},[OWe,aWe,c8,p8,H6,s8,QUe,q6,MWe,I6,YWe,y8,h8],[2,[()=>Cqe,{[Z8]:1}],0,0,0,1,[()=>xqe,{[Z8]:1}],0,1,0,0,0,[0,{[Z]:C5}]]],sqe=[3,Q,UWe,0,[a6,H6,q6,s8,p8,I6,fWe,y8,g8,W6,aGe],[[0,1],[0,{[G8]:zGe}],[0,{[G8]:BGe}],[1,{[G8]:UGe}],[0,{[G8]:K8}],[0,{[G8]:R8}],[2,{[G8]:VGe}],[0,{[G8]:XGe}],[0,{[Z]:w5}],[0,{[Z]:m5}],[64,{[Z]:hKe}]],1],cqe=[3,Q,zWe,0,[N8,c8],[0,0]],lqe=[3,Q,oGe,0,[r8,a8,K6,d6,N6,k8,x8,l8,_8],[0,4,0,[64,{[Z8]:1}],0,1,0,()=>W5,()=>mqe]],W5=[3,Q,l8,0,[oWe,_We],[0,0]],uqe=[3,Q,lGe,0,[U6,K6,m6,h6,g6,A6,j6,M6,D6,L6,R6,z6,N6,S8,F8,C8,T8,D8,E8,s6,k8,h8],[[0,{[Z]:p5}],[0,{[Z]:K6}],[0,{[Z]:t5}],[0,{[Z]:n5}],[0,{[Z]:r5}],[0,{[Z]:a5}],[0,{[Z]:o5}],[0,{[Z]:s5}],[0,{[Z]:i5}],[0,{[Z]:l5}],[0,{[Z]:u5}],[0,{[Z]:d5}],[0,{[Z]:c5}],[0,{[Z]:D5}],[0,{[Z]:F5}],[0,{[Z]:j5}],[0,{[Z]:N5}],[()=>H5,{[Z]:O5}],[()=>V5,{[Z]:A5}],[2,{[Z]:k5}],[1,{[Z]:gKe}],[0,{[Z]:C5}]]],dqe=[3,Q,uGe,0,[a6,r8,r6,l6,p6,y6,x6,S6,T6,O6,F6,d6,m6,h6,g6,A6,j6,M6,D6,L6,R6,z6,J6,$6,t8,Y6,X6,Z6,Q6,IGe,o8,S8,x8,I8,C8,w8,T8,D8,E8,s6,g8,M8,d8,f8,u8,W6],[[0,1],[0,1],[0,{[Z]:$8}],[()=>U5,16],[0,{[Z]:_6}],[0,{[Z]:v6}],[0,{[Z]:b6}],[0,{[Z]:C6}],[1,{[Z]:w6}],[0,{[Z]:E6}],[0,{[Z]:P6}],[0,{[Z]:E5}],[0,{[Z]:t5}],[0,{[Z]:n5}],[0,{[Z]:r5}],[0,{[Z]:a5}],[0,{[Z]:o5}],[0,{[Z]:s5}],[0,{[Z]:i5}],[0,{[Z]:l5}],[0,{[Z]:u5}],[0,{[Z]:d5}],[4,{[Z]:J6}],[0,{[Z]:e8}],[0,{[Z]:n8}],[0,{[Z]:h5}],[0,{[Z]:g5}],[0,{[Z]:_5}],[0,{[Z]:v5}],[1,{[Z]:bKe}],[128,{[W8]:y5}],[0,{[Z]:D5}],[0,{[Z]:T5}],[0,{[Z]:I5}],[0,{[Z]:j5}],[()=>B5,{[Z]:M5}],[0,{[Z]:N5}],[()=>H5,{[Z]:O5}],[()=>V5,{[Z]:A5}],[2,{[Z]:k5}],[0,{[Z]:w5}],[0,{[Z]:P5}],[0,{[Z]:x5}],[5,{[Z]:S5}],[0,{[Z]:b5}],[0,{[Z]:m5}]],2],fqe=[3,Q,fGe,0,[F8],[[0,{[Z]:F5}]]],pqe=[3,Q,pGe,0,[a6,r8,M8,F8,O6,d6,W6,g8],[[0,1],[0,1],[()=>_qe,{[U8]:1,[Q8]:M8}],[0,{[G8]:X8}],[0,{[Z]:E6}],[0,{[Z]:E5}],[0,{[Z]:m5}],[0,{[Z]:w5}]],3],mqe=[3,Q,_8,0,[DWe,SGe],[2,4]],hqe=[3,Q,DGe,0,[i6,b8,O8,U6],[[0,{[Q8]:i6}],[()=>z5,{[Q8]:b8}],[()=>z5,{[Q8]:O8}],[4,{[Q8]:U6}]],4],gqe=[3,Q,j8,0,[r8,FGe],[0,0],2],_qe=[3,Q,M8,0,[A8],[[()=>G5,0]],1],vqe=[3,Q,NGe,0,[S8,K6,m6,h6,g6,A6,j6,M6,D6,L6,R6,z6,C8,T8,D8,s6,h8],[[0,{[Z]:D5}],[0,{[Z]:K6}],[0,{[Z]:t5}],[0,{[Z]:n5}],[0,{[Z]:r5}],[0,{[Z]:a5}],[0,{[Z]:o5}],[0,{[Z]:s5}],[0,{[Z]:i5}],[0,{[Z]:l5}],[0,{[Z]:u5}],[0,{[Z]:d5}],[0,{[Z]:j5}],[0,{[Z]:N5}],[()=>H5,{[Z]:O5}],[2,{[Z]:k5}],[0,{[Z]:C5}]]],yqe=[3,Q,PGe,0,[a6,r8,m8,P8,l6,T6,O6,d6,m6,h6,g6,A6,j6,M6,D6,L6,R6,z6,C8,w8,T8,g8,W6],[[0,1],[0,1],[1,{[G8]:q8}],[0,{[G8]:Y8}],[()=>U5,16],[1,{[Z]:w6}],[0,{[Z]:E6}],[0,{[Z]:E5}],[0,{[Z]:t5}],[0,{[Z]:n5}],[0,{[Z]:r5}],[0,{[Z]:a5}],[0,{[Z]:o5}],[0,{[Z]:s5}],[0,{[Z]:i5}],[0,{[Z]:l5}],[0,{[Z]:u5}],[0,{[Z]:d5}],[0,{[Z]:j5}],[()=>B5,{[Z]:M5}],[0,{[Z]:N5}],[0,{[Z]:w5}],[0,{[Z]:m5}]],4],bqe=[1,Q,u6,0,[()=>BKe,{[Q8]:a6}]],xqe=[1,Q,YUe,0,()=>HKe],Sqe=[1,Q,XUe,0,()=>WKe],Cqe=[1,Q,nGe,0,[()=>lqe,0]],G5=[1,Q,A8,0,[()=>gqe,{[Q8]:j8}]],wqe=[9,Q,TUe,{[B8]:[`DELETE`,`/{Key+}?x-id=AbortMultipartUpload`,204]},()=>zKe,()=>RKe],Tqe=[9,Q,k6,{[B8]:[`POST`,`/{Key+}`,200]},()=>KKe,()=>GKe],Eqe=[9,Q,IUe,{[B8]:[`PUT`,`/`,200]},()=>YKe,()=>JKe],Dqe=[9,Q,KUe,{[B8]:[`POST`,`/{Key+}?uploads`,200]},()=>ZKe,()=>XKe],Oqe=[9,Q,iWe,{[B8]:[`GET`,`/?session`,200]},()=>$Ke,()=>QKe],kqe=[9,Q,lWe,{[B8]:[`DELETE`,`/{Key+}?x-id=DeleteObject`,204]},()=>tqe,()=>eqe],Aqe=[9,Q,pWe,{[V8]:`-`,[B8]:[`GET`,`/{Key+}?x-id=GetObject`,200]},()=>rqe,()=>nqe],jqe=[9,Q,PWe,{[B8]:[`GET`,`/?x-id=ListBuckets`,200]},()=>aqe,()=>iqe],Mqe=[9,Q,VWe,{[B8]:[`GET`,`/?list-type=2`,200]},()=>sqe,()=>oqe],Nqe=[9,Q,cGe,{[V8]:`-`,[B8]:[`PUT`,`/{Key+}?x-id=PutObject`,200]},()=>dqe,()=>uqe],Pqe=[9,Q,dGe,{[V8]:`-`,[B8]:[`PUT`,`/{Key+}?tagging`,200]},()=>pqe,()=>fqe],Fqe=[9,Q,MGe,{[V8]:`-`,[B8]:[`PUT`,`/{Key+}?x-id=UploadPart`,200]},()=>yqe,()=>vqe],Iqe=class extends Nk.classBuilder().ep({...t6,DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions()),C4(n)]}).s(`AmazonS3`,`CreateSession`,{}).n(`S3Client`,`CreateSessionCommand`).sc(Oqe).build(){},Lqe={name:`@aws-sdk/client-s3`,description:`AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native`,version:`3.1045.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-s3`,"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.8`,"@aws-sdk/credential-provider-node":`^3.972.39`,"@aws-sdk/middleware-bucket-endpoint":`^3.972.10`,"@aws-sdk/middleware-expect-continue":`^3.972.10`,"@aws-sdk/middleware-flexible-checksums":`^3.974.16`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-location-constraint":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-sdk-s3":`^3.972.37`,"@aws-sdk/middleware-ssec":`^3.972.10`,"@aws-sdk/middleware-user-agent":`^3.972.38`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/signature-v4-multi-region":`^3.996.25`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.24`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/eventstream-serde-browser":`^4.2.14`,"@smithy/eventstream-serde-config-resolver":`^4.3.14`,"@smithy/eventstream-serde-node":`^4.2.14`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-blob-browser":`^4.2.15`,"@smithy/hash-node":`^4.2.14`,"@smithy/hash-stream-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/md5-js":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.7`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.6`,"@smithy/util-stream":`^4.5.25`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.3.0`,tslib:`^2.6.2`},devDependencies:{"@aws-sdk/signature-v4-crt":`3.1045.0`,"@smithy/snapshot-testing":`^2.0.8`,"@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/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 K5(e){return typeof e==`string`?e.length===0:e.byteLength===0}var q5={name:`SHA-1`},J5={name:`HMAC`,hash:q5},Rqe=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]),zqe=function(){function e(e){this.toHash=new Uint8Array,e!==void 0&&(this.key=new Promise(function(t,n){ob().crypto.subtle.importKey(`raw`,Y5(e),J5,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))}return e.prototype.update=function(e){if(!K5(e)){var t=Y5(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 ob().crypto.subtle.sign(J5,t,e.toHash).then(function(e){return new Uint8Array(e)})}):K5(this.toHash)?Promise.resolve(Rqe):Promise.resolve().then(function(){return ob().crypto.subtle.digest(q5,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){this.toHash=new Uint8Array},e}();function Y5(e){return typeof e==`string`?$y(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var Bqe=function(){function e(e){if(db(ob()))this.hash=new zqe(e);else throw Error(`SHA1 not supported`)}return e.prototype.update=function(e,t){this.hash.update(eb(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),X5=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&Z5(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&Z5(e),parseInt(Sb(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function Z5(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var Vqe=class{toUtf8;fromUtf8;constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){let t=[];for(let n of Object.keys(e)){let r=this.fromUtf8(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}let n=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),r=0;for(let e of t)n.set(e,r),r+=e.byteLength;return n}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([+!e.value]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case`integer`:let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case`long`:let r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case`binary`:let i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(i.buffer);return a.set(e.value,3),a;case`string`:let o=this.fromUtf8(e.value),s=new DataView(new ArrayBuffer(3+o.byteLength));s.setUint8(0,7),s.setUint16(1,o.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(o,3),c;case`timestamp`:let l=new Uint8Array(9);return l[0]=8,l.set(X5.fromNumber(e.value.valueOf()).bytes,1),l;case`uuid`:if(!Zqe.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let u=new Uint8Array(17);return u[0]=9,u.set(xb(e.value.replace(/\-/g,``)),1),u}}parse(e){let t={},n=0;for(;n{if(typeof e!=`number`)throw Error(`Attempted to allocate an event message where size was not a number: `+e);t=e,n=4,r=new Uint8Array(e),new DataView(r.buffer).setUint32(0,e,!1)},o=async function*(){let o=e[Symbol.asyncIterator]();for(;;){let{value:e,done:s}=await o.next();if(s){if(!t)return;if(t===n)yield r;else throw Error(`Truncated event message received.`);return}let c=e.length,l=0;for(;l({[Symbol.asyncIterator]:async function*(){let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)return;yield n}}finally{t.releaseLock()}}}),lJe=e=>{let t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){let{done:n,value:r}=await t.next();if(n)return e.close();e.enqueue(r)}})},uJe=class{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new sJe({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){let n=dJe(e)?cJe(e):e;return this.universalMarshaller.deserialize(n,t)}serialize(e,t){let n=this.universalMarshaller.serialize(e,t);return typeof ReadableStream==`function`?lJe(n):n}},dJe=e=>typeof ReadableStream==`function`&&e instanceof ReadableStream,fJe=e=>new uJe(e);async function pJe(e,t,n=1024*1024){let r=e.size,i=0;for(;i{n.update(e)}),n.digest()},hJe=[1732584193,4023233417,2562383102,271733878],gJe=class{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(e){if(_Je(e))return;if(this.finished)throw Error(`Attempted to update an already finished hash.`);let t=vJe(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=r7(n,r,i,a,e.getUint32(0,!0),7,3614090360),a=r7(a,n,r,i,e.getUint32(4,!0),12,3905402710),i=r7(i,a,n,r,e.getUint32(8,!0),17,606105819),r=r7(r,i,a,n,e.getUint32(12,!0),22,3250441966),n=r7(n,r,i,a,e.getUint32(16,!0),7,4118548399),a=r7(a,n,r,i,e.getUint32(20,!0),12,1200080426),i=r7(i,a,n,r,e.getUint32(24,!0),17,2821735955),r=r7(r,i,a,n,e.getUint32(28,!0),22,4249261313),n=r7(n,r,i,a,e.getUint32(32,!0),7,1770035416),a=r7(a,n,r,i,e.getUint32(36,!0),12,2336552879),i=r7(i,a,n,r,e.getUint32(40,!0),17,4294925233),r=r7(r,i,a,n,e.getUint32(44,!0),22,2304563134),n=r7(n,r,i,a,e.getUint32(48,!0),7,1804603682),a=r7(a,n,r,i,e.getUint32(52,!0),12,4254626195),i=r7(i,a,n,r,e.getUint32(56,!0),17,2792965006),r=r7(r,i,a,n,e.getUint32(60,!0),22,1236535329),n=i7(n,r,i,a,e.getUint32(4,!0),5,4129170786),a=i7(a,n,r,i,e.getUint32(24,!0),9,3225465664),i=i7(i,a,n,r,e.getUint32(44,!0),14,643717713),r=i7(r,i,a,n,e.getUint32(0,!0),20,3921069994),n=i7(n,r,i,a,e.getUint32(20,!0),5,3593408605),a=i7(a,n,r,i,e.getUint32(40,!0),9,38016083),i=i7(i,a,n,r,e.getUint32(60,!0),14,3634488961),r=i7(r,i,a,n,e.getUint32(16,!0),20,3889429448),n=i7(n,r,i,a,e.getUint32(36,!0),5,568446438),a=i7(a,n,r,i,e.getUint32(56,!0),9,3275163606),i=i7(i,a,n,r,e.getUint32(12,!0),14,4107603335),r=i7(r,i,a,n,e.getUint32(32,!0),20,1163531501),n=i7(n,r,i,a,e.getUint32(52,!0),5,2850285829),a=i7(a,n,r,i,e.getUint32(8,!0),9,4243563512),i=i7(i,a,n,r,e.getUint32(28,!0),14,1735328473),r=i7(r,i,a,n,e.getUint32(48,!0),20,2368359562),n=a7(n,r,i,a,e.getUint32(20,!0),4,4294588738),a=a7(a,n,r,i,e.getUint32(32,!0),11,2272392833),i=a7(i,a,n,r,e.getUint32(44,!0),16,1839030562),r=a7(r,i,a,n,e.getUint32(56,!0),23,4259657740),n=a7(n,r,i,a,e.getUint32(4,!0),4,2763975236),a=a7(a,n,r,i,e.getUint32(16,!0),11,1272893353),i=a7(i,a,n,r,e.getUint32(28,!0),16,4139469664),r=a7(r,i,a,n,e.getUint32(40,!0),23,3200236656),n=a7(n,r,i,a,e.getUint32(52,!0),4,681279174),a=a7(a,n,r,i,e.getUint32(0,!0),11,3936430074),i=a7(i,a,n,r,e.getUint32(12,!0),16,3572445317),r=a7(r,i,a,n,e.getUint32(24,!0),23,76029189),n=a7(n,r,i,a,e.getUint32(36,!0),4,3654602809),a=a7(a,n,r,i,e.getUint32(48,!0),11,3873151461),i=a7(i,a,n,r,e.getUint32(60,!0),16,530742520),r=a7(r,i,a,n,e.getUint32(8,!0),23,3299628645),n=o7(n,r,i,a,e.getUint32(0,!0),6,4096336452),a=o7(a,n,r,i,e.getUint32(28,!0),10,1126891415),i=o7(i,a,n,r,e.getUint32(56,!0),15,2878612391),r=o7(r,i,a,n,e.getUint32(20,!0),21,4237533241),n=o7(n,r,i,a,e.getUint32(48,!0),6,1700485571),a=o7(a,n,r,i,e.getUint32(12,!0),10,2399980690),i=o7(i,a,n,r,e.getUint32(40,!0),15,4293915773),r=o7(r,i,a,n,e.getUint32(4,!0),21,2240044497),n=o7(n,r,i,a,e.getUint32(32,!0),6,1873313359),a=o7(a,n,r,i,e.getUint32(60,!0),10,4264355552),i=o7(i,a,n,r,e.getUint32(24,!0),15,2734768916),r=o7(r,i,a,n,e.getUint32(52,!0),21,1309151649),n=o7(n,r,i,a,e.getUint32(16,!0),6,4149444226),a=o7(a,n,r,i,e.getUint32(44,!0),10,3174756917),i=o7(i,a,n,r,e.getUint32(8,!0),15,718787259),r=o7(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(hJe),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}};function n7(e,t,n,r,i,a){return t=(t+e&4294967295)+(r+a&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function r7(e,t,n,r,i,a,o){return n7(t&n|~t&r,e,t,i,a,o)}function i7(e,t,n,r,i,a,o){return n7(t&r|n&~r,e,t,i,a,o)}function a7(e,t,n,r,i,a,o){return n7(t^n^r,e,t,i,a,o)}function o7(e,t,n,r,i,a,o){return n7(n^(t|~r),e,t,i,a,o)}function _Je(e){return typeof e==`string`?e.length===0:e.byteLength===0}function vJe(e){return typeof e==`string`?Cb(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var yJe=e=>({apiVersion:`2006-03-01`,base64Decoder:e?.base64Decoder??DD,base64Encoder:e?.base64Encoder??OD,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Q3,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??ele,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??aUe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Yk},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new yde}],logger:e?.logger??new Vk,protocol:e?.protocol??ZHe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.s3`,errorTypeRegistries:LKe,xmlNamespace:`http://s3.amazonaws.com/doc/2006-03-01/`,version:`2006-03-01`,serviceTarget:`AmazonS3`},sdkStreamMixin:e?.sdkStreamMixin??RD,serviceId:e?.serviceId??`S3`,signerConstructor:e?.signerConstructor??T4,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??GD,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??Cb,utf8Encoder:e?.utf8Encoder??Tb}),bJe=e=>{let t=rA(e),n=()=>t().then(Ik),r=yJe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??nA,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Qk({serviceId:r.serviceId,clientVersion:Lqe.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??fJe,maxAttempts:e?.maxAttempts??3,md5:e?.md5??gJe,region:e?.region??eA(`Region is missing`),requestHandler:PD.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||ek),sha1:e?.sha1??Bqe,sha256:e?.sha256??fb,streamCollector:e?.streamCollector??ID,streamHasher:e?.streamHasher??mJe,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},xJe=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}}},SJe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),CJe=(e,t)=>{let n=Object.assign(l$(e),Rk(e),pb(e),xJe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,u$(n),zk(n),mb(n),SJe(n))},wJe=class extends Ak{config;constructor(...[e]){let t=bJe(e||{});super(t),this.initConfig=t;let n=CJe(zHe(oUe(QHe(Ck(_D(hk(wk(xHe(jO(sUe(t))))))))),{session:[()=>this,Iqe]}),e?.extensions||[]);this.config=n,this.middlewareStack.use(KD(this.config)),this.middlewareStack.use(fk(this.config)),this.middlewareStack.use(Uk(this.config)),this.middlewareStack.use(_k(this.config)),this.middlewareStack.use(vD(this.config)),this.middlewareStack.use(yD(this.config)),this.middlewareStack.use(bD(this.config)),this.middlewareStack.use(xD(this.config,{httpAuthSchemeParametersProvider:iUe,identityProviderConfigProvider:async e=>new kO({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(CD(this.config)),this.middlewareStack.use(XHe(this.config)),this.middlewareStack.use(pHe(this.config)),this.middlewareStack.use(EHe(this.config)),this.middlewareStack.use(NHe(this.config)),this.middlewareStack.use(RHe(this.config))}destroy(){super.destroy()}},TJe=class extends Nk.classBuilder().ep(t6).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions()),C4(n)]}).s(`AmazonS3`,`ListBuckets`,{}).n(`S3Client`,`ListBucketsCommand`).sc(jqe).build(){},EJe=class extends Nk.classBuilder().ep({...t6,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[Sk(n,e.getEndpointParameterInstructions()),C4(n)]}).s(`AmazonS3`,`ListObjectsV2`,{}).n(`S3Client`,`ListObjectsV2Command`).sc(Mqe).build(){},s7=`ap-southeast-2`,c7=`${window.location.protocol}//localhost:9999`,DJe=`${window.location.protocol}//localhost:8443`,l7=null,u7=null,d7=null,f7=null,p7=null;function m7(){if(!l7){let e=Zy();if(!e)throw Error(`AWS credentials not configured`);l7=new sEe({endpoint:c7,region:s7,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}}),l7.middlewareStack.add(e=>async t=>(_b.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 l7}function h7(){if(!u7){let e=Zy();if(!e)throw Error(`AWS credentials not configured`);u7=new HFe({endpoint:c7,region:s7,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}}),u7.middlewareStack.add(e=>async t=>(_b.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 u7}function g7(){if(!d7){let e=Zy();if(!e)throw Error(`AWS credentials not configured`);d7=new Rce({endpoint:c7,region:s7,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}}),d7.middlewareStack.add(e=>async t=>(_b.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 d7}function _7(){if(!f7){let e=Zy();if(!e)throw Error(`AWS credentials not configured`);f7=new ZVe({endpoint:c7,region:s7,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}}),f7.middlewareStack.add(e=>async t=>(_b.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 f7}function v7(){if(!p7){let e=Zy();if(!e)throw Error(`AWS credentials not configured`);p7=new wJe({endpoint:DJe,region:s7,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey},forcePathStyle:!0}),p7.middlewareStack.add(e=>async t=>(_b.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`}),p7.middlewareStack.add(e=>async t=>(_b.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 p7}function y7(){l7=null,u7=null,d7=null,f7=null,p7=null}var b7=!1;function x7(e,t){b7||!Sx(e)||(b7=!0,Qy(),y7(),t.clear(),window.location.pathname!==`/login`&&(window.location.href=`/login?reason=expired`))}function OJe(){let e=new ke({queryCache:new Oe({onError:t=>x7(t,e)}),mutationCache:new Ee({onError:t=>x7(t,e)}),defaultOptions:{queries:{staleTime:5e3,refetchIntervalInBackground:!1}}});return e}function kJe(){let e=(0,da.c)(8),{theme:t,setTheme:n}=ha(),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,F.jsx)(Uo,{className:`size-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90`}),o=(0,F.jsx)(Fo,{className:`absolute size-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0`}),s=(0,F.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,F.jsxs)(vl,{className:`rounded-full`,onClick:i,size:`icon-sm`,variant:`ghost`,children:[a,o,s]}),e[6]=i,e[7]=c),c}function S7(){let e=(0,da.c)(7),{isAdmin:t,license:n}=bx(),r=t&&n===`open-source`,i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=al(`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,F.jsx)(kte,{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,F.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:al(_l({variant:`outline`,size:`sm`})),children:`Upgrade`}),e[2]=r,e[3]=o);let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,F.jsx)(kJe,{}),e[4]=s):s=e[4];let c;return e[5]===o?c=e[6]:(c=(0,F.jsxs)(`header`,{className:i,children:[a,(0,F.jsxs)(`div`,{className:`flex w-full items-center justify-end gap-2`,children:[o,s]})]}),e[5]=o,e[6]=c),c}function AJe(){let e=(0,da.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,F.jsx)(`h1`,{className:`text-4xl font-bold`,children:`404`}),n=(0,F.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,F.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4`,children:[t,n,(0,F.jsx)(Di,{to:`/`,children:(0,F.jsx)(vl,{variant:`outline`,children:`Go back home`})})]}),e[2]=r):r=e[2],r}function C7(){let e=(0,da.c)(186),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:jJe},e[0]=t):t=e[0];let n=Qi(t),r=di(),i=Fe(),{isAdmin:a}=bx(),o;e[1]!==r||e[2]!==i?(o=function(){Qy(),y7(),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,F.jsxs)(jte,{className:`flex flex-row items-center gap-2 px-4 py-3`,children:[(0,F.jsx)(`img`,{src:`/mulga-logo.svg`,alt:`Mulga`,className:`size-6 shrink-0 dark:invert`}),(0,F.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,F.jsx)(hg,{children:`General`}),e[5]=l):l=e[5];let u=n===`/`,d,f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,F.jsx)(Do,{className:`size-4`}),f=(0,F.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,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/`,children:(0,F.jsxs)(vg,{isActive:u,tooltip:`Dashboard`,children:[d,f]})})}),e[8]=u,e[9]=p);let m;e[10]!==a||e[11]!==n?(m=a&&(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/nodes`,children:(0,F.jsxs)(vg,{isActive:n.startsWith(`/nodes`),tooltip:`Nodes`,children:[(0,F.jsx)(Bo,{className:`size-4`}),(0,F.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,F.jsxs)(mg,{children:[l,(0,F.jsxs)(gg,{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,F.jsx)(hg,{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,F.jsx)(Bo,{className:`size-4`}),y=(0,F.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,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/ec2/describe-instances`,children:(0,F.jsxs)(vg,{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,F.jsx)(ko,{className:`size-4`}),C=(0,F.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,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/ec2/describe-images`,children:(0,F.jsxs)(vg,{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,ee;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,F.jsx)(Ao,{className:`size-4`}),ee=(0,F.jsx)(`span`,{children:`Key Pairs`}),e[31]=E,e[32]=ee):(E=e[31],ee=e[32]);let D;e[33]===T?D=e[34]:(D=(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/ec2/describe-key-pairs`,children:(0,F.jsxs)(vg,{isActive:T,tooltip:`Key Pairs`,children:[E,ee]})})}),e[33]=T,e[34]=D);let O;e[35]===n?O=e[36]:(O=n.startsWith(`/ec2/describe-addresses`)||n.startsWith(`/ec2/allocate-address`),e[35]=n,e[36]=O);let te,ne;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,F.jsx)(Po,{className:`size-4`}),ne=(0,F.jsx)(`span`,{children:`Elastic IPs`}),e[37]=te,e[38]=ne):(te=e[37],ne=e[38]);let re;e[39]===O?re=e[40]:(re=(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/ec2/describe-addresses`,children:(0,F.jsxs)(vg,{isActive:O,tooltip:`Elastic IPs`,children:[te,ne]})})}),e[39]=O,e[40]=re);let k;e[41]===n?k=e[42]:(k=n.startsWith(`/ec2/describe-volumes`)||n.startsWith(`/ec2/create-volume`)||n.startsWith(`/ec2/modify-volume`),e[41]=n,e[42]=k);let A,ie;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,F.jsx)(Eo,{className:`size-4`}),ie=(0,F.jsx)(`span`,{children:`Volumes`}),e[43]=A,e[44]=ie):(A=e[43],ie=e[44]);let j;e[45]===k?j=e[46]:(j=(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/ec2/describe-volumes`,children:(0,F.jsxs)(vg,{isActive:k,tooltip:`Volumes`,children:[A,ie]})})}),e[45]=k,e[46]=j);let ae;e[47]===n?ae=e[48]:(ae=n.startsWith(`/ec2/describe-snapshots`)||n.startsWith(`/ec2/create-snapshot`),e[47]=n,e[48]=ae);let oe,se;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,F.jsx)(So,{className:`size-4`}),se=(0,F.jsx)(`span`,{children:`Snapshots`}),e[49]=oe,e[50]=se):(oe=e[49],se=e[50]);let ce;e[51]===ae?ce=e[52]:(ce=(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/ec2/describe-snapshots`,children:(0,F.jsxs)(vg,{isActive:ae,tooltip:`Snapshots`,children:[oe,se]})})}),e[51]=ae,e[52]=ce);let M;e[53]===n?M=e[54]:(M=n.startsWith(`/ec2/describe-placement-groups`)||n.startsWith(`/ec2/create-placement-group`),e[53]=n,e[54]=M);let le,ue;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,F.jsx)(jo,{className:`size-4`}),ue=(0,F.jsx)(`span`,{children:`Placement Groups`}),e[55]=le,e[56]=ue):(le=e[55],ue=e[56]);let N;e[57]===M?N=e[58]:(N=(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/ec2/describe-placement-groups`,children:(0,F.jsxs)(vg,{isActive:M,tooltip:`Placement Groups`,children:[le,ue]})})}),e[57]=M,e[58]=N);let de;e[59]===n?de=e[60]:(de=n.startsWith(`/ec2/describe-load-balancers`)||n.startsWith(`/ec2/create-load-balancer`),e[59]=n,e[60]=de);let fe,pe;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(fe=(0,F.jsx)(Ko,{className:`size-4`}),pe=(0,F.jsx)(`span`,{children:`Load Balancers`}),e[61]=fe,e[62]=pe):(fe=e[61],pe=e[62]);let me;e[63]===de?me=e[64]:(me=(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/ec2/describe-load-balancers`,children:(0,F.jsxs)(vg,{isActive:de,tooltip:`Load Balancers`,children:[fe,pe]})})}),e[63]=de,e[64]=me);let he;e[65]===n?he=e[66]:(he=n.startsWith(`/ec2/describe-target-groups`)||n.startsWith(`/ec2/create-target-group`),e[65]=n,e[66]=he);let ge,_e;e[67]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,F.jsx)(wo,{className:`size-4`}),_e=(0,F.jsx)(`span`,{children:`Target Groups`}),e[67]=ge,e[68]=_e):(ge=e[67],_e=e[68]);let ve;e[69]===he?ve=e[70]:(ve=(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/ec2/describe-target-groups`,children:(0,F.jsxs)(vg,{isActive:he,tooltip:`Target Groups`,children:[ge,_e]})})}),e[69]=he,e[70]=ve);let ye;e[71]!==b||e[72]!==w||e[73]!==D||e[74]!==re||e[75]!==j||e[76]!==ce||e[77]!==N||e[78]!==me||e[79]!==ve?(ye=(0,F.jsxs)(mg,{children:[g,(0,F.jsxs)(gg,{children:[b,w,D,re,j,ce,N,me,ve]})]}),e[71]=b,e[72]=w,e[73]=D,e[74]=re,e[75]=j,e[76]=ce,e[77]=N,e[78]=me,e[79]=ve,e[80]=ye):ye=e[80];let be;e[81]===Symbol.for(`react.memo_cache_sentinel`)?(be=(0,F.jsx)(hg,{children:`Networking`}),e[81]=be):be=e[81];let xe;e[82]===n?xe=e[83]:(xe=n.startsWith(`/ec2/describe-vpcs`)||n.startsWith(`/ec2/create-vpc`),e[82]=n,e[83]=xe);let Se,Ce;e[84]===Symbol.for(`react.memo_cache_sentinel`)?(Se=(0,F.jsx)(Io,{className:`size-4`}),Ce=(0,F.jsx)(`span`,{children:`VPCs`}),e[84]=Se,e[85]=Ce):(Se=e[84],Ce=e[85]);let we;e[86]===xe?we=e[87]:(we=(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/ec2/describe-vpcs`,children:(0,F.jsxs)(vg,{isActive:xe,tooltip:`VPCs`,children:[Se,Ce]})})}),e[86]=xe,e[87]=we);let Te;e[88]===n?Te=e[89]:(Te=n.startsWith(`/ec2/describe-subnets`)||n.startsWith(`/ec2/create-subnet`),e[88]=n,e[89]=Te);let Ee,De;e[90]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=(0,F.jsx)(Mo,{className:`size-4`}),De=(0,F.jsx)(`span`,{children:`Subnets`}),e[90]=Ee,e[91]=De):(Ee=e[90],De=e[91]);let Oe;e[92]===Te?Oe=e[93]:(Oe=(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/ec2/describe-subnets`,children:(0,F.jsxs)(vg,{isActive:Te,tooltip:`Subnets`,children:[Ee,De]})})}),e[92]=Te,e[93]=Oe);let ke;e[94]===n?ke=e[95]:(ke=n.startsWith(`/ec2/describe-security-groups`)||n.startsWith(`/ec2/create-security-group`),e[94]=n,e[95]=ke);let Ae,je;e[96]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,F.jsx)(Vo,{className:`size-4`}),je=(0,F.jsx)(`span`,{children:`Security Groups`}),e[96]=Ae,e[97]=je):(Ae=e[96],je=e[97]);let Me;e[98]===ke?Me=e[99]:(Me=(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/ec2/describe-security-groups`,children:(0,F.jsxs)(vg,{isActive:ke,tooltip:`Security Groups`,children:[Ae,je]})})}),e[98]=ke,e[99]=Me);let Ne;e[100]===n?Ne=e[101]:(Ne=n.startsWith(`/ec2/describe-route-tables`)||n.startsWith(`/ec2/create-route-table`),e[100]=n,e[101]=Ne);let P,Pe;e[102]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,F.jsx)(Ro,{className:`size-4`}),Pe=(0,F.jsx)(`span`,{children:`Route Tables`}),e[102]=P,e[103]=Pe):(P=e[102],Pe=e[103]);let Ie;e[104]===Ne?Ie=e[105]:(Ie=(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/ec2/describe-route-tables`,children:(0,F.jsxs)(vg,{isActive:Ne,tooltip:`Route Tables`,children:[P,Pe]})})}),e[104]=Ne,e[105]=Ie);let I;e[106]===n?I=e[107]:(I=n.startsWith(`/ec2/describe-internet-gateways`),e[106]=n,e[107]=I);let Le,Re;e[108]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,F.jsx)(To,{className:`size-4`}),Re=(0,F.jsx)(`span`,{children:`Internet Gateways`}),e[108]=Le,e[109]=Re):(Le=e[108],Re=e[109]);let ze;e[110]===I?ze=e[111]:(ze=(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/ec2/describe-internet-gateways`,children:(0,F.jsxs)(vg,{isActive:I,tooltip:`Internet Gateways`,children:[Le,Re]})})}),e[110]=I,e[111]=ze);let Be;e[112]===n?Be=e[113]:(Be=n.startsWith(`/ec2/describe-nat-gateways`)||n.startsWith(`/ec2/create-nat-gateway`),e[112]=n,e[113]=Be);let Ve,He;e[114]===Symbol.for(`react.memo_cache_sentinel`)?(Ve=(0,F.jsx)(zo,{className:`size-4`}),He=(0,F.jsx)(`span`,{children:`NAT Gateways`}),e[114]=Ve,e[115]=He):(Ve=e[114],He=e[115]);let Ue;e[116]===Be?Ue=e[117]:(Ue=(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/ec2/describe-nat-gateways`,children:(0,F.jsxs)(vg,{isActive:Be,tooltip:`NAT Gateways`,children:[Ve,He]})})}),e[116]=Be,e[117]=Ue);let We;e[118]!==we||e[119]!==Oe||e[120]!==Me||e[121]!==Ie||e[122]!==ze||e[123]!==Ue?(We=(0,F.jsxs)(mg,{children:[be,(0,F.jsxs)(gg,{children:[we,Oe,Me,Ie,ze,Ue]})]}),e[118]=we,e[119]=Oe,e[120]=Me,e[121]=Ie,e[122]=ze,e[123]=Ue,e[124]=We):We=e[124];let Ge;e[125]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,F.jsx)(hg,{children:`IAM`}),e[125]=Ge):Ge=e[125];let Ke;e[126]===n?Ke=e[127]:(Ke=n.startsWith(`/iam/list-users`)||n.startsWith(`/iam/create-user`),e[126]=n,e[127]=Ke);let qe,Je;e[128]===Symbol.for(`react.memo_cache_sentinel`)?(qe=(0,F.jsx)(Go,{className:`size-4`}),Je=(0,F.jsx)(`span`,{children:`Users`}),e[128]=qe,e[129]=Je):(qe=e[128],Je=e[129]);let Ye;e[130]===Ke?Ye=e[131]:(Ye=(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/iam/list-users`,children:(0,F.jsxs)(vg,{isActive:Ke,tooltip:`Users`,children:[qe,Je]})})}),e[130]=Ke,e[131]=Ye);let Xe;e[132]===n?Xe=e[133]:(Xe=n.startsWith(`/iam/list-policies`)||n.startsWith(`/iam/create-policy`),e[132]=n,e[133]=Xe);let Ze,Qe;e[134]===Symbol.for(`react.memo_cache_sentinel`)?(Ze=(0,F.jsx)(Ho,{className:`size-4`}),Qe=(0,F.jsx)(`span`,{children:`Policies`}),e[134]=Ze,e[135]=Qe):(Ze=e[134],Qe=e[135]);let $e;e[136]===Xe?$e=e[137]:($e=(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/iam/list-policies`,children:(0,F.jsxs)(vg,{isActive:Xe,tooltip:`Policies`,children:[Ze,Qe]})})}),e[136]=Xe,e[137]=$e);let et;e[138]===n?et=e[139]:(et=n.startsWith(`/iam/list-roles`)||n.startsWith(`/iam/create-role`),e[138]=n,e[139]=et);let tt,nt;e[140]===Symbol.for(`react.memo_cache_sentinel`)?(tt=(0,F.jsx)(Wo,{className:`size-4`}),nt=(0,F.jsx)(`span`,{children:`Roles`}),e[140]=tt,e[141]=nt):(tt=e[140],nt=e[141]);let rt;e[142]===et?rt=e[143]:(rt=(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/iam/list-roles`,children:(0,F.jsxs)(vg,{isActive:et,tooltip:`Roles`,children:[tt,nt]})})}),e[142]=et,e[143]=rt);let it;e[144]===n?it=e[145]:(it=n.startsWith(`/iam/list-instance-profiles`)||n.startsWith(`/iam/create-instance-profile`),e[144]=n,e[145]=it);let at,ot;e[146]===Symbol.for(`react.memo_cache_sentinel`)?(at=(0,F.jsx)(Oo,{className:`size-4`}),ot=(0,F.jsx)(`span`,{children:`Instance Profiles`}),e[146]=at,e[147]=ot):(at=e[146],ot=e[147]);let st;e[148]===it?st=e[149]:(st=(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/iam/list-instance-profiles`,children:(0,F.jsxs)(vg,{isActive:it,tooltip:`Instance Profiles`,children:[at,ot]})})}),e[148]=it,e[149]=st);let ct;e[150]!==Ye||e[151]!==$e||e[152]!==rt||e[153]!==st?(ct=(0,F.jsxs)(mg,{children:[Ge,(0,F.jsxs)(gg,{children:[Ye,$e,rt,st]})]}),e[150]=Ye,e[151]=$e,e[152]=rt,e[153]=st,e[154]=ct):ct=e[154];let lt;e[155]===Symbol.for(`react.memo_cache_sentinel`)?(lt=(0,F.jsx)(hg,{children:`S3`}),e[155]=lt):lt=e[155];let ut;e[156]===n?ut=e[157]:(ut=n.startsWith(`/s3/ls`),e[156]=n,e[157]=ut);let dt,ft;e[158]===Symbol.for(`react.memo_cache_sentinel`)?(dt=(0,F.jsx)(Bo,{className:`size-4`}),ft=(0,F.jsx)(`span`,{children:`Buckets`}),e[158]=dt,e[159]=ft):(dt=e[158],ft=e[159]);let pt;e[160]===ut?pt=e[161]:(pt=(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/s3/ls`,children:(0,F.jsxs)(vg,{isActive:ut,tooltip:`Buckets`,children:[dt,ft]})})}),e[160]=ut,e[161]=pt);let mt;e[162]!==a||e[163]!==n?(mt=a&&(0,F.jsx)(_g,{children:(0,F.jsx)(Di,{to:`/s3/service-metrics`,children:(0,F.jsxs)(vg,{isActive:n.startsWith(`/s3/service-metrics`),tooltip:`Service Metrics`,children:[(0,F.jsx)(bo,{className:`size-4`}),(0,F.jsx)(`span`,{children:`Service Metrics`})]})})}),e[162]=a,e[163]=n,e[164]=mt):mt=e[164];let ht;e[165]!==pt||e[166]!==mt?(ht=(0,F.jsxs)(mg,{children:[lt,(0,F.jsxs)(gg,{children:[pt,mt]})]}),e[165]=pt,e[166]=mt,e[167]=ht):ht=e[167];let gt;e[168]===a?gt=e[169]:(gt=a&&(0,F.jsxs)(mg,{children:[(0,F.jsx)(hg,{children:`Documentation`}),(0,F.jsx)(gg,{children:(0,F.jsx)(_g,{children:(0,F.jsx)(`a`,{href:`https://docs.mulgadc.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,F.jsxs)(vg,{tooltip:`Documentation`,children:[(0,F.jsx)(xo,{className:`size-4`}),(0,F.jsx)(`span`,{children:`Docs`})]})})})})]}),e[168]=a,e[169]=gt);let _t;e[170]!==ye||e[171]!==We||e[172]!==h||e[173]!==ct||e[174]!==ht||e[175]!==gt?(_t=(0,F.jsxs)(Pte,{children:[h,ye,We,ct,ht,gt]}),e[170]=ye,e[171]=We,e[172]=h,e[173]=ct,e[174]=ht,e[175]=gt,e[176]=_t):_t=e[176];let vt;e[177]===Symbol.for(`react.memo_cache_sentinel`)?(vt=(0,F.jsx)(Nte,{className:`mx-0 w-full`}),e[177]=vt):vt=e[177];let yt,bt;e[178]===Symbol.for(`react.memo_cache_sentinel`)?(yt=(0,F.jsx)(No,{className:`size-4`}),bt=(0,F.jsx)(`span`,{children:`Sign out`}),e[178]=yt,e[179]=bt):(yt=e[178],bt=e[179]);let xt;e[180]===s?xt=e[181]:(xt=(0,F.jsxs)(Mte,{children:[vt,(0,F.jsx)(gg,{children:(0,F.jsx)(_g,{children:(0,F.jsxs)(vg,{onClick:s,tooltip:`Sign out`,children:[yt,bt]})})})]}),e[180]=s,e[181]=xt);let St;e[182]===Symbol.for(`react.memo_cache_sentinel`)?(St=(0,F.jsx)(Ate,{}),e[182]=St):St=e[182];let Ct;return e[183]!==_t||e[184]!==xt?(Ct=(0,F.jsxs)(Ote,{collapsible:`icon`,children:[c,_t,xt,St]}),e[183]=_t,e[184]=xt,e[185]=Ct):Ct=e[185],Ct}function jJe(e){return e.pathname}function MJe(e){let t=(0,da.c)(18),{error:n,reset:r}=e,i=jr(),a=Fe(),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,F.jsx)(C7,{}),t[4]=c):c=t[4];let l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,F.jsx)(S7,{}),t[5]=l):l=t[5];let u,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,F.jsx)(`div`,{className:`flex justify-center`,children:(0,F.jsx)(Co,{className:`size-12 text-destructive`})}),d=(0,F.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,F.jsx)(`p`,{className:`text-muted-foreground`,children:f}),t[8]=f,t[9]=p);let m;t[10]===s?m=t[11]:(m=(0,F.jsx)(vl,{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,F.jsx)(Di,{to:`/`,children:(0,F.jsx)(vl,{variant:`outline`,children:`Go Home`})}),t[12]=h):h=t[12];let g;t[13]===m?g=t[14]:(g=(0,F.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,F.jsxs)(F.Fragment,{children:[c,(0,F.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[l,(0,F.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-6 pt-0`,children:(0,F.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 w7=ji()({head:()=>({meta:[{title:`Mulga`}]}),component:()=>(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ra,{}),(0,F.jsx)(C7,{}),(0,F.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[(0,F.jsx)(S7,{}),(0,F.jsx)(`div`,{className:`flex flex-1 flex-col p-8`,children:(0,F.jsx)(Ui,{})})]})]}),errorComponent:MJe,notFoundComponent:AJe}),T7=L(`/login`)({validateSearch:e=>({reason:e.reason===`expired`?`expired`:void 0}),beforeLoad:()=>{if(Zy())throw yn({to:`/`})},component:R(()=>H(()=>import(`./login.js`),__vite__mapDeps([0,1,2,3,4])),`component`)}),NJe=L(`/_auth`)({beforeLoad:()=>{if(!Zy())throw yn({to:`/login`})},component:R(()=>H(()=>import(`./route.js`),[]),`component`)}),E7=I({queryKey:[`ec2`,`availabilityZones`],queryFn:async()=>{let e=new cEe({});return await m7().send(e)},staleTime:3e5}),D7=I({queryKey:[`ec2`,`instances`],queryFn:async()=>{let e=new p$({});return await m7().send(e)},refetchInterval:5e3}),O7=e=>I({queryKey:[`ec2`,`instances`,e],queryFn:async()=>{let t=new p$({InstanceIds:[e]});return await m7().send(t)},refetchInterval:5e3}),PJe=e=>I({queryKey:[`ec2`,`iam-instance-profile-associations`,e],queryFn:async()=>{let t=new lEe({Filters:[{Name:`instance-id`,Values:[e]}]});return await m7().send(t)},refetchInterval:5e3}),k7=I({queryKey:[`ec2`,`instances`,`types`],queryFn:async()=>{let e=new uEe({Filters:[{Name:`capacity`,Values:[`true`]}]});return await m7().send(e)},refetchInterval:5e3}),A7=I({queryKey:[`ec2`,`images`],queryFn:async()=>{let e=new f$({});return await m7().send(e)}}),j7=e=>I({queryKey:[`ec2`,`images`,e??`none`],queryFn:async()=>{if(!e)return{Images:[],$metadata:{}};let t=new f$({ImageIds:[e]});return await m7().send(t)}}),M7=I({queryKey:[`ec2`,`keypairs`],queryFn:async()=>{let e=new h$({});return await m7().send(e)}}),N7=e=>I({queryKey:[`ec2`,`keypairs`,e],queryFn:async()=>{let t=new h$({KeyPairIds:[e]});return await m7().send(t)}}),P7=I({queryKey:[`ec2`,`regions`],queryFn:async()=>{let e=new dEe({});return await m7().send(e)},staleTime:3e5}),F7=I({queryKey:[`ec2`,`subnets`],queryFn:async()=>{let e=new x$({});return await m7().send(e)}}),I7=e=>I({queryKey:[`ec2`,`subnets`,e],queryFn:async()=>{let t=new x$({SubnetIds:[e]});return await m7().send(t)}}),L7=I({queryKey:[`ec2`,`snapshots`],queryFn:async()=>{let e=new b$({});return await m7().send(e)},refetchInterval:5e3}),R7=e=>I({queryKey:[`ec2`,`snapshots`,e],queryFn:async()=>{let t=new b$({SnapshotIds:[e]});return await m7().send(t)},refetchInterval:5e3}),z7=I({queryKey:[`ec2`,`internetGateways`],queryFn:async()=>{let e=new m$({});return await m7().send(e)},refetchInterval:5e3}),B7=e=>I({queryKey:[`ec2`,`internetGateways`,e],queryFn:async()=>{let t=new m$({InternetGatewayIds:[e]});return await m7().send(t)},refetchInterval:5e3}),V7=I({queryKey:[`ec2`,`routeTables`],queryFn:async()=>{let e=new v$({});return await m7().send(e)},refetchInterval:5e3}),H7=e=>I({queryKey:[`ec2`,`routeTables`,e],queryFn:async()=>{let t=new v$({RouteTableIds:[e]});return await m7().send(t)},refetchInterval:5e3}),U7=I({queryKey:[`ec2`,`vpcs`],queryFn:async()=>{let e=new C$({});return await m7().send(e)}}),W7=e=>I({queryKey:[`ec2`,`vpcs`,e],queryFn:async()=>{let t=new C$({VpcIds:[e]});return await m7().send(t)}}),G7=I({queryKey:[`ec2`,`placementGroups`],queryFn:async()=>{let e=new _$({});return await m7().send(e)}}),K7=e=>I({queryKey:[`ec2`,`placementGroups`,e],queryFn:async()=>{let t=new _$({GroupIds:[e]});return await m7().send(t)}}),q7=I({queryKey:[`ec2`,`securityGroups`],queryFn:async()=>{let e=new y$({});return await m7().send(e)}}),J7=e=>I({queryKey:[`ec2`,`securityGroups`,e],queryFn:async()=>{let t=new y$({GroupIds:[e]});return await m7().send(t)}}),Y7=I({queryKey:[`ec2`,`addresses`],queryFn:async()=>{let e=new d$({});return await m7().send(e)},refetchInterval:5e3}),X7=e=>I({queryKey:[`ec2`,`addresses`,e],queryFn:async()=>{let t=new d$({AllocationIds:[e]});return await m7().send(t)},refetchInterval:5e3}),Z7=I({queryKey:[`ec2`,`natGateways`],queryFn:async()=>{let e=new g$({});return await m7().send(e)},refetchInterval:5e3}),Q7=e=>I({queryKey:[`ec2`,`natGateways`,e],queryFn:async()=>{let t=new g$({NatGatewayIds:[e]});return await m7().send(t)},refetchInterval:5e3}),$7=I({queryKey:[`ec2`,`volumes`],queryFn:async()=>{let e=new S$({});return await m7().send(e)},refetchInterval:5e3}),e9=e=>I({queryKey:[`ec2`,`volumes`,e],queryFn:async()=>{let t=new S$({VolumeIds:[e]});return await m7().send(t)},refetchInterval:5e3}),t9=I({queryKey:[`s3`,`buckets`],queryFn:async()=>{let e=new TJe({});return await v7().send(e)}}),n9=(e,t)=>I({queryKey:[`s3`,`buckets`,e,`objects`,t??``],queryFn:async()=>{let n=new EJe({Bucket:e,Prefix:t,Delimiter:`/`});return await v7().send(n)}}),FJe=L(`/_auth/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(D7),e.queryClient.ensureQueryData($7),e.queryClient.ensureQueryData(U7),e.queryClient.ensureQueryData(M7),e.queryClient.ensureQueryData(t9),e.queryClient.ensureQueryData(q7),e.queryClient.ensureQueryData(Z7),e.queryClient.ensureQueryData(Y7),e.queryClient.ensureQueryData(z7)])},head:()=>({meta:[{title:`Dashboard | Mulga`}]}),component:R(()=>H(()=>import(`./_auth.js`),__vite__mapDeps([5,6,7,8,9,10,11,12,3,13])),`component`)}),IJe=L(`/_auth/nodes`)({head:()=>({meta:[{title:`Nodes | Mulga`}]}),component:R(()=>H(()=>import(`./nodes.js`),__vite__mapDeps([14,6,7,10,12,3,13])),`component`)}),LJe=L(`/_auth/s3/service-metrics`)({head:()=>({meta:[{title:`Service Metrics | S3 | Mulga`}]}),component:R(()=>H(()=>import(`./service-metrics.js`),__vite__mapDeps([15,6,7,10,12,3,13])),`component`)}),RJe=L(`/_auth/s3/ls/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(t9)},head:()=>({meta:[{title:`Buckets | S3 | Mulga`}]}),component:R(()=>H(()=>import(`./ls.js`),__vite__mapDeps([16,17,7,18,10])),`component`)}),zJe=L(`/_auth/s3/(buckets)/create-bucket`)({head:()=>({meta:[{title:`Create Bucket | S3 | Mulga`}]}),component:R(()=>H(()=>import(`./create-bucket.js`),__vite__mapDeps([19,20,21,2,22,23,24,8,25,26,27,10,4])),`component`)}),BJe=L(`/_auth/iam/(users)/create-user`)({head:()=>({meta:[{title:`Create User | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./create-user.js`),__vite__mapDeps([28,29,21,2,22,23,24,8,25,26,27,10,4,30])),`component`)}),VJe=L(`/_auth/iam/(roles)/create-role`)({head:()=>({meta:[{title:`Create Role | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./create-role.js`),__vite__mapDeps([31,29,21,2,22,23,24,8,25,26,27,10,4,32,30])),`component`)}),HJe=L(`/_auth/iam/(policies)/create-policy`)({head:()=>({meta:[{title:`Create Policy | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./create-policy.js`),__vite__mapDeps([33,29,21,2,22,23,24,8,25,26,27,10,4,32,30])),`component`)}),UJe=L(`/_auth/iam/(instance-profiles)/create-instance-profile`)({head:()=>({meta:[{title:`Create Instance Profile | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./create-instance-profile.js`),__vite__mapDeps([34,29,21,2,22,23,24,8,25,26,27,10,4,30])),`component`)}),WJe=L(`/_auth/ec2/(vpc)/create-vpc`)({head:()=>({meta:[{title:`Create VPC | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-vpc.js`),__vite__mapDeps([35,36,21,37,24,8,2,22,9,23,25,26,27,10,4,38])),`component`)}),GJe=L(`/_auth/ec2/(volumes)/create-volume`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(E7)},head:()=>({meta:[{title:`Create Volume | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-volume.js`),__vite__mapDeps([39,36,21,37,24,8,2,17,7,22,23,25,26,27,10,4,38])),`component`)}),KJe=L(`/_auth/ec2/(target-groups)/create-target-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(U7)},head:()=>({meta:[{title:`Create Target Group | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-target-group.js`),__vite__mapDeps([40,41,21,2,17,7,22,23,24,8,25,26,42,1,37,43,44,4,27,10,45])),`component`)}),qJe=L(`/_auth/ec2/(subnet)/create-subnet`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(U7),e.queryClient.ensureQueryData(E7)])},head:()=>({meta:[{title:`Create Subnet | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-subnet.js`),__vite__mapDeps([46,36,21,37,24,8,2,17,7,22,23,25,26,27,10,4,38])),`component`)}),r9=L(`/_auth/ec2/(snapshots)/create-snapshot`)({validateSearch:e=>({volumeId:typeof e.volumeId==`string`?e.volumeId:void 0}),loader:async({context:e})=>{await e.queryClient.ensureQueryData($7)},head:()=>({meta:[{title:`Create Snapshot | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-snapshot.js`),__vite__mapDeps([47,36,21,37,24,8,2,17,7,22,23,25,26,27,10,4,32,38])),`component`)}),JJe=L(`/_auth/ec2/(security-groups)/create-security-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(U7)},head:()=>({meta:[{title:`Create Security Group | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-security-group.js`),__vite__mapDeps([48,36,21,37,24,8,2,17,7,22,23,25,26,27,10,4,38])),`component`)}),YJe=L(`/_auth/ec2/(route-tables)/create-route-table`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(U7)},head:()=>({meta:[{title:`Create Route Table | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-route-table.js`),__vite__mapDeps([49,36,21,37,24,8,2,17,7,22,27,10,4,38])),`component`)}),XJe=L(`/_auth/ec2/(placement-groups)/create-placement-group`)({head:()=>({meta:[{title:`Create Placement Group | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-placement-group.js`),__vite__mapDeps([50,36,21,37,24,8,2,22,23,25,26,27,10,4,38])),`component`)}),ZJe=L(`/_auth/ec2/(nat-gateways)/create-nat-gateway`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(F7),e.queryClient.ensureQueryData(Y7)])},head:()=>({meta:[{title:`Create NAT Gateway | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-nat-gateway.js`),__vite__mapDeps([51,36,21,37,24,8,2,17,7,22,23,25,26,27,10,4,38])),`component`)}),i9=I({queryKey:[`acm`,`certificates`],queryFn:async()=>{let e=new zce({});return await g7().send(e)}}),a9=5e3,o9=I({queryKey:[`elbv2`,`loadBalancers`],queryFn:async()=>{let e=new W0({});return await h7().send(e)},refetchInterval:e=>(e.state.data?.LoadBalancers??[]).some(e=>e.State?.Code===`provisioning`)?a9:!1}),s9=e=>I({queryKey:[`elbv2`,`loadBalancers`,e],queryFn:async()=>{let t=new W0({LoadBalancerArns:[e]});return await h7().send(t)},refetchInterval:e=>(e.state.data?.LoadBalancers?.[0])?.State?.Code===`provisioning`?a9:!1}),c9=e=>I({queryKey:[`elbv2`,`loadBalancers`,e,`attributes`],queryFn:async()=>{let t=new WFe({LoadBalancerArn:e});return await h7().send(t)}}),l9=I({queryKey:[`elbv2`,`targetGroups`],queryFn:async()=>{let e=new G0({});return await h7().send(e)}}),u9=e=>I({queryKey:[`elbv2`,`targetGroups`,e],queryFn:async()=>{let t=new G0({TargetGroupArns:[e]});return await h7().send(t)}}),d9=e=>I({queryKey:[`elbv2`,`targetGroups`,e,`attributes`],queryFn:async()=>{let t=new JFe({TargetGroupArn:e});return await h7().send(t)}}),f9=e=>I({queryKey:[`elbv2`,`listeners`,e],queryFn:async()=>{let t=new UFe({LoadBalancerArn:e});return await h7().send(t)}}),QJe=e=>I({queryKey:[`elbv2`,`listeners`,e,`rules`],queryFn:async()=>{let t=new GFe({ListenerArn:e});return await h7().send(t)}}),$Je=e=>I({queryKey:[`elbv2`,`targetGroups`,e,`health`],queryFn:async()=>{let t=new YFe({TargetGroupArn:e});return await h7().send(t)}}),p9=I({queryKey:[`elbv2`,`sslPolicies`],queryFn:async()=>{let e=new KFe({});return await h7().send(e)},staleTime:1/0}),m9=e=>I({queryKey:[`elbv2`,`tags`,...e],queryFn:async()=>{let t=new qFe({ResourceArns:e});return await h7().send(t)},enabled:e.length>0}),eYe=L(`/_auth/ec2/(load-balancers)/create-load-balancer`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(U7),e.queryClient.ensureQueryData(F7),e.queryClient.ensureQueryData(q7),e.queryClient.ensureQueryData(l9),e.queryClient.ensureQueryData(i9),e.queryClient.ensureQueryData(p9)])},head:()=>({meta:[{title:`Create Load Balancer | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-load-balancer.js`),__vite__mapDeps([52,53,54,21,4,32,41,37,24,8,2,17,7,22,43,23,25,26,44,42,1,27,10,45])),`component`)}),tYe=L(`/_auth/ec2/(key)/import-key-pair`)({head:()=>({meta:[{title:`Import Key Pair | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./import-key-pair.js`),__vite__mapDeps([55,36,21,2,22,23,24,8,25,26,27,10,4,32,38])),`component`)}),nYe=L(`/_auth/ec2/(key)/create-key-pair`)({head:()=>({meta:[{title:`Create Key Pair | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-key-pair.js`),__vite__mapDeps([56,36,21,54,2,22,24,57,23,8,25,26,58,27,10,4,38])),`component`)}),rYe=L(`/_auth/ec2/(internet-gateways)/create-internet-gateway`)({head:()=>({meta:[{title:`Create Internet Gateway | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./create-internet-gateway.js`),__vite__mapDeps([59,36,21,2,22,23,24,8,25,26,27,10,4,38])),`component`)}),iYe=L(`/_auth/ec2/(instances)/run-instances`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(A7),e.queryClient.ensureQueryData(M7),e.queryClient.ensureQueryData(k7),e.queryClient.ensureQueryData(F7),e.queryClient.ensureQueryData(G7),e.queryClient.ensureQueryData(U7),e.queryClient.ensureQueryData(q7)])},head:()=>({meta:[{title:`Run Instances | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./run-instances.js`),__vite__mapDeps([60,36,21,1,37,24,8,2,17,7,22,23,25,26,10,4,38])),`component`)}),aYe=L(`/_auth/ec2/(elastic-ips)/allocate-address`)({head:()=>({meta:[{title:`Allocate Elastic IP | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./allocate-address.js`),__vite__mapDeps([61,36,21,2,22,23,24,8,25,26,27,10,4,38])),`component`)}),oYe=L(`/_auth/s3/ls/$bucket`)({component:R(()=>H(()=>import(`./route2.js`),[]),`component`)}),h9=L(`/_auth/s3/ls/$bucket/`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(n9(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:R(()=>H(()=>import(`./_bucket.js`),__vite__mapDeps([62,20,21,63,57,44,64,54,17,7,22,10])),`component`)}),g9=I({queryKey:[`iam`,`users`],queryFn:async()=>{let e=new uHe({});return await _7().send(e)},staleTime:3e5}),_9=e=>I({queryKey:[`iam`,`users`,e],queryFn:async()=>{let t=new nHe({UserName:e});return await _7().send(t)},staleTime:3e5}),v9=e=>I({queryKey:[`iam`,`access-keys`,e],queryFn:async()=>{let t=new rHe({UserName:e});return await _7().send(t)},staleTime:3e5}),y9=I({queryKey:[`iam`,`policies`],queryFn:async()=>{let e=new cHe({Scope:`Local`});return await _7().send(e)},staleTime:3e5}),b9=e=>I({queryKey:[`iam`,`policies`,e],queryFn:async()=>{let t=new $Ve({PolicyArn:e});return await _7().send(t)},staleTime:3e5}),x9=(e,t)=>I({queryKey:[`iam`,`policy-versions`,e,t],queryFn:async()=>{let n=new eHe({PolicyArn:e,VersionId:t});return await _7().send(n)},staleTime:3e5}),S9=e=>I({queryKey:[`iam`,`attached-user-policies`,e],queryFn:async()=>{let t=new aHe({UserName:e});return await _7().send(t)},staleTime:3e5}),C9=I({queryKey:[`iam`,`roles`],queryFn:async()=>{let e=new lHe({});return await _7().send(e)},staleTime:3e5}),w9=e=>I({queryKey:[`iam`,`roles`,e],queryFn:async()=>{let t=new tHe({RoleName:e});return await _7().send(t)},staleTime:3e5}),T9=e=>I({queryKey:[`iam`,`attached-role-policies`,e],queryFn:async()=>{let t=new iHe({RoleName:e});return await _7().send(t)},staleTime:3e5}),E9=I({queryKey:[`iam`,`instance-profiles`],queryFn:async()=>{let e=new oHe({});return await _7().send(e)},staleTime:3e5}),D9=e=>I({queryKey:[`iam`,`instance-profiles`,e],queryFn:async()=>{let t=new QVe({InstanceProfileName:e});return await _7().send(t)},staleTime:3e5}),O9=e=>I({queryKey:[`iam`,`instance-profiles-for-role`,e],queryFn:async()=>{let t=new sHe({RoleName:e});return await _7().send(t)},staleTime:3e5}),sYe=L(`/_auth/iam/(users)/list-users/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(g9)},head:()=>({meta:[{title:`Users | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./list-users.js`),__vite__mapDeps([65,17,7,18,10])),`component`)}),cYe=L(`/_auth/iam/(roles)/list-roles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(C9)},head:()=>({meta:[{title:`Roles | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./list-roles.js`),__vite__mapDeps([66,17,7,18,10])),`component`)}),lYe=L(`/_auth/iam/(policies)/list-policies/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(y9)},head:()=>({meta:[{title:`Policies | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./list-policies.js`),__vite__mapDeps([67,17,7,18,10])),`component`)}),uYe=L(`/_auth/iam/(instance-profiles)/list-instance-profiles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(E9)},head:()=>({meta:[{title:`Instance Profiles | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./list-instance-profiles.js`),__vite__mapDeps([68,17,7,18,10])),`component`)}),dYe=L(`/_auth/ec2/(vpc)/describe-vpcs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(U7)},head:()=>({meta:[{title:`VPCs | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-vpcs.js`),__vite__mapDeps([69,17,7,18,10,11])),`component`)}),fYe=L(`/_auth/ec2/(volumes)/describe-volumes/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData($7)},head:()=>({meta:[{title:`Volumes | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-volumes.js`),__vite__mapDeps([70,17,7,18,10,11])),`component`)}),pYe=L(`/_auth/ec2/(target-groups)/describe-target-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(l9)},head:()=>({meta:[{title:`Target Groups | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-target-groups.js`),__vite__mapDeps([71,6,7,17,10])),`component`)}),mYe=L(`/_auth/ec2/(subnet)/describe-subnets/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(F7)},head:()=>({meta:[{title:`Subnets | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-subnets.js`),__vite__mapDeps([72,17,7,18,10,11])),`component`)}),hYe=L(`/_auth/ec2/(snapshots)/describe-snapshots/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(L7)},head:()=>({meta:[{title:`Snapshots | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-snapshots.js`),__vite__mapDeps([73,17,7,18,10,11])),`component`)}),gYe=L(`/_auth/ec2/(security-groups)/describe-security-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(q7)},head:()=>({meta:[{title:`Security Groups | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-security-groups.js`),__vite__mapDeps([74,17,7,18,10])),`component`)}),_Ye=L(`/_auth/ec2/(route-tables)/describe-route-tables/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(V7)},head:()=>({meta:[{title:`Route Tables | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-route-tables.js`),__vite__mapDeps([75,17,7,18,10,12])),`component`)}),vYe=L(`/_auth/ec2/(placement-groups)/describe-placement-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(G7)},head:()=>({meta:[{title:`Placement Groups | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-placement-groups.js`),__vite__mapDeps([76,17,7,18,10,11])),`component`)}),yYe=L(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Z7)},head:()=>({meta:[{title:`NAT Gateways | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-nat-gateways.js`),__vite__mapDeps([77,17,7,18,10,11])),`component`)}),bYe=L(`/_auth/ec2/(load-balancers)/describe-load-balancers/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(o9)},head:()=>({meta:[{title:`Load Balancers | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-load-balancers.js`),__vite__mapDeps([78,17,7,10,11])),`component`)}),xYe=L(`/_auth/ec2/(key)/describe-key-pairs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(M7)},head:()=>({meta:[{title:`Key Pairs | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-key-pairs.js`),__vite__mapDeps([79,17,7,18,10])),`component`)}),SYe=L(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(z7)},head:()=>({meta:[{title:`Internet Gateways | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-internet-gateways.js`),__vite__mapDeps([80,17,7,18,10])),`component`)}),CYe=L(`/_auth/ec2/(instances)/describe-instances/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(D7)},head:()=>({meta:[{title:`Instances | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-instances.js`),__vite__mapDeps([81,17,7,18,10,11])),`component`)}),wYe=L(`/_auth/ec2/(images)/describe-images/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(A7)},head:()=>({meta:[{title:`Images | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-images.js`),__vite__mapDeps([82,17,7,18,10,11,83])),`component`)}),TYe=L(`/_auth/ec2/(elastic-ips)/describe-addresses/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Y7)},head:()=>({meta:[{title:`Elastic IPs | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./describe-addresses.js`),__vite__mapDeps([84,17,7,18,10])),`component`)}),k9=L(`/_auth/s3/ls/$bucket/$`)({loader:async({context:e,params:t})=>{let n=ml(t._splat??``);await e.queryClient.ensureQueryData(n9(t.bucket,n))},head:({params:e})=>({meta:[{title:`${hl(e._splat??``,`${e.bucket}/`)} | S3 | Mulga`}]}),component:R(()=>H(()=>import(`./_.js`),__vite__mapDeps([85,20,21,63,57,44,64,54,17,7,22])),`component`)}),A9=L(`/_auth/iam/(users)/list-users/$userName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(_9(t.userName)),e.queryClient.ensureQueryData(v9(t.userName)),e.queryClient.ensureQueryData(S9(t.userName)),e.queryClient.ensureQueryData(y9)])},head:({params:e})=>({meta:[{title:`${e.userName} | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./_userName.js`),__vite__mapDeps([86,29,21,54,17,7,22,24,44,58,64,87,10,11,26])),`component`)}),j9=L(`/_auth/iam/(roles)/list-roles/$roleName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(w9(t.roleName)),e.queryClient.ensureQueryData(T9(t.roleName)),e.queryClient.ensureQueryData(O9(t.roleName)),e.queryClient.ensureQueryData(y9)])},head:({params:e})=>({meta:[{title:`${e.roleName} | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./_roleName.js`),__vite__mapDeps([88,29,21,17,7,22,44,64,54,87,10,89])),`component`)}),M9=L(`/_auth/iam/(policies)/list-policies/$policyArn`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.policyArn),r=await e.queryClient.ensureQueryData(b9(n)),i=r.Policy?.DefaultVersionId;return i&&await e.queryClient.ensureQueryData(x9(n,i)),r},head:({loaderData:e})=>({meta:[{title:`${e?.Policy?.PolicyName??`Policy`} | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./_policyArn.js`),__vite__mapDeps([90,29,21,17,7,22,44,64,54,87,10,89])),`component`)}),N9=L(`/_auth/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(D9(t.instanceProfileName)),e.queryClient.ensureQueryData(C9)])},head:({params:e})=>({meta:[{title:`${e.instanceProfileName} | IAM | Mulga`}]}),component:R(()=>H(()=>import(`./_instanceProfileName.js`),__vite__mapDeps([91,29,21,17,7,22,44,64,54,87,10])),`component`)}),P9=L(`/_auth/ec2/(vpc)/describe-vpcs/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(W7(t.id)),e.queryClient.ensureQueryData(F7)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:R(()=>H(()=>import(`./_id16.js`),__vite__mapDeps([92,36,21,17,7,22,44,64,54,87,10,11])),`component`)}),F9=L(`/_auth/ec2/(volumes)/modify-volume/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(e9(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./_id15.js`),__vite__mapDeps([93,36,21,2,17,7,22,27,10,4,38])),`component`)}),I9=L(`/_auth/ec2/(volumes)/describe-volumes/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(e9(t.id)),e.queryClient.ensureQueryData(D7)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./_id14.js`),__vite__mapDeps([94,36,21,54,37,24,8,17,7,22,44,64,87,10,11,4])),`component`)}),L9=L(`/_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(u9(n)),e.queryClient.ensureQueryData(d9(n)),e.queryClient.ensureQueryData(m9([n])),e.queryClient.ensureQueryData(D7)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Target Group | Mulga`}]}),component:R(()=>H(()=>import(`./_id13.js`),__vite__mapDeps([95,41,21,54,96,37,24,8,43,44,4,6,7,17,22,64,87,10])),`component`)}),R9=L(`/_auth/ec2/(subnet)/describe-subnets/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(I7(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:R(()=>H(()=>import(`./_id12.js`),__vite__mapDeps([97,36,21,17,7,22,44,64,54,87,10,11])),`component`)}),z9=L(`/_auth/ec2/(snapshots)/describe-snapshots/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(R7(t.id)),e.queryClient.ensureQueryData(P7)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./_id11.js`),__vite__mapDeps([98,36,21,54,17,7,22,25,44,64,87,10,11,4])),`component`)}),B9=L(`/_auth/ec2/(security-groups)/describe-security-groups/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(J7(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Security Group | Mulga`}]}),component:R(()=>H(()=>import(`./_id10.js`),__vite__mapDeps([99,36,21,54,37,24,8,2,17,7,22,43,44,64,87,10,4,38])),`component`)}),V9=L(`/_auth/ec2/(route-tables)/describe-route-tables/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(H7(t.id)),e.queryClient.ensureQueryData(z7),e.queryClient.ensureQueryData(Z7),e.queryClient.ensureQueryData(F7)])},head:({params:e})=>({meta:[{title:`${e.id} | Route Table | Mulga`}]}),component:R(()=>H(()=>import(`./_id9.js`),__vite__mapDeps([100,36,21,37,24,8,2,17,7,22,44,64,54,87,10,12,4,38])),`component`)}),H9=L(`/_auth/ec2/(placement-groups)/describe-placement-groups/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(K7(t.id)),e.queryClient.ensureQueryData(D7)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./_id8.js`),__vite__mapDeps([101,36,21,17,7,22,44,64,54,87,10,11])),`component`)}),U9=L(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Q7(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | NAT Gateway | Mulga`}]}),component:R(()=>H(()=>import(`./_id7.js`),__vite__mapDeps([102,36,21,17,7,22,44,64,54,87,10,11])),`component`)}),W9=L(`/_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(s9(n)),e.queryClient.ensureQueryData(f9(n)),e.queryClient.ensureQueryData(c9(n)),e.queryClient.ensureQueryData(m9([n])),e.queryClient.ensureQueryData(l9),e.queryClient.ensureQueryData(F7)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Load Balancer | Mulga`}]}),component:R(()=>H(()=>import(`./_id6.js`),__vite__mapDeps([103,53,54,21,4,32,41,37,24,8,96,43,44,2,17,7,22,64,87,10,11,45])),`component`)}),G9=L(`/_auth/ec2/(key)/describe-key-pairs/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(N7(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??`Key Pair`} | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./_id5.js`),__vite__mapDeps([104,36,21,17,7,22,44,64,54,87,10])),`component`)}),K9=L(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(B7(t.id)),e.queryClient.ensureQueryData(U7)])},head:({params:e})=>({meta:[{title:`${e.id} | Internet Gateway | Mulga`}]}),component:R(()=>H(()=>import(`./_id4.js`),__vite__mapDeps([105,36,21,37,24,8,17,7,22,44,64,54,87,10])),`component`)}),q9=L(`/_auth/ec2/(instances)/describe-instances/$id`)({loader:async({context:e,params:t})=>{let[n]=await Promise.all([e.queryClient.ensureQueryData(O7(t.id)),e.queryClient.ensureQueryData(k7)]),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.ensureQueryData(j7(r)),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??`Instance`} | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./_id3.js`),__vite__mapDeps([106,36,21,54,37,24,8,6,7,17,22,44,64,87,10,11,4,32,13,107])),`component`)}),J9=L(`/_auth/ec2/(images)/describe-images/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(j7(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??`Image`} | EC2 | Mulga`}]}),component:R(()=>H(()=>import(`./_id2.js`),__vite__mapDeps([108,17,7,22,10,11,83,107,87])),`component`)}),Y9=L(`/_auth/ec2/(elastic-ips)/describe-addresses/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(X7(t.id)),e.queryClient.ensureQueryData(D7)])},head:({params:e})=>({meta:[{title:`${e.id} | Elastic IP | Mulga`}]}),component:R(()=>H(()=>import(`./_id.js`),__vite__mapDeps([109,36,21,37,24,8,17,7,22,44,64,54,87,10])),`component`)}),EYe=T7.update({id:`/login`,path:`/login`,getParentRoute:()=>w7}),$=NJe.update({id:`/_auth`,getParentRoute:()=>w7}),DYe=FJe.update({id:`/`,path:`/`,getParentRoute:()=>$}),OYe=IJe.update({id:`/nodes`,path:`/nodes`,getParentRoute:()=>$}),kYe=LJe.update({id:`/s3/service-metrics`,path:`/s3/service-metrics`,getParentRoute:()=>$}),AYe=RJe.update({id:`/s3/ls/`,path:`/s3/ls/`,getParentRoute:()=>$}),jYe=zJe.update({id:`/s3/(buckets)/create-bucket`,path:`/s3/create-bucket`,getParentRoute:()=>$}),MYe=BJe.update({id:`/iam/(users)/create-user`,path:`/iam/create-user`,getParentRoute:()=>$}),NYe=VJe.update({id:`/iam/(roles)/create-role`,path:`/iam/create-role`,getParentRoute:()=>$}),PYe=HJe.update({id:`/iam/(policies)/create-policy`,path:`/iam/create-policy`,getParentRoute:()=>$}),FYe=UJe.update({id:`/iam/(instance-profiles)/create-instance-profile`,path:`/iam/create-instance-profile`,getParentRoute:()=>$}),IYe=WJe.update({id:`/ec2/(vpc)/create-vpc`,path:`/ec2/create-vpc`,getParentRoute:()=>$}),LYe=GJe.update({id:`/ec2/(volumes)/create-volume`,path:`/ec2/create-volume`,getParentRoute:()=>$}),RYe=KJe.update({id:`/ec2/(target-groups)/create-target-group`,path:`/ec2/create-target-group`,getParentRoute:()=>$}),zYe=qJe.update({id:`/ec2/(subnet)/create-subnet`,path:`/ec2/create-subnet`,getParentRoute:()=>$}),BYe=r9.update({id:`/ec2/(snapshots)/create-snapshot`,path:`/ec2/create-snapshot`,getParentRoute:()=>$}),VYe=JJe.update({id:`/ec2/(security-groups)/create-security-group`,path:`/ec2/create-security-group`,getParentRoute:()=>$}),HYe=YJe.update({id:`/ec2/(route-tables)/create-route-table`,path:`/ec2/create-route-table`,getParentRoute:()=>$}),UYe=XJe.update({id:`/ec2/(placement-groups)/create-placement-group`,path:`/ec2/create-placement-group`,getParentRoute:()=>$}),WYe=ZJe.update({id:`/ec2/(nat-gateways)/create-nat-gateway`,path:`/ec2/create-nat-gateway`,getParentRoute:()=>$}),GYe=eYe.update({id:`/ec2/(load-balancers)/create-load-balancer`,path:`/ec2/create-load-balancer`,getParentRoute:()=>$}),KYe=tYe.update({id:`/ec2/(key)/import-key-pair`,path:`/ec2/import-key-pair`,getParentRoute:()=>$}),qYe=nYe.update({id:`/ec2/(key)/create-key-pair`,path:`/ec2/create-key-pair`,getParentRoute:()=>$}),JYe=rYe.update({id:`/ec2/(internet-gateways)/create-internet-gateway`,path:`/ec2/create-internet-gateway`,getParentRoute:()=>$}),X9=iYe.update({id:`/ec2/(instances)/run-instances`,path:`/ec2/run-instances`,getParentRoute:()=>$}),YYe=aYe.update({id:`/ec2/(elastic-ips)/allocate-address`,path:`/ec2/allocate-address`,getParentRoute:()=>$}),Z9=oYe.update({id:`/s3/ls/$bucket`,path:`/s3/ls/$bucket`,getParentRoute:()=>$}),XYe=h9.update({id:`/`,path:`/`,getParentRoute:()=>Z9}),ZYe=sYe.update({id:`/iam/(users)/list-users/`,path:`/iam/list-users/`,getParentRoute:()=>$}),QYe=cYe.update({id:`/iam/(roles)/list-roles/`,path:`/iam/list-roles/`,getParentRoute:()=>$}),$Ye=lYe.update({id:`/iam/(policies)/list-policies/`,path:`/iam/list-policies/`,getParentRoute:()=>$}),eXe=uYe.update({id:`/iam/(instance-profiles)/list-instance-profiles/`,path:`/iam/list-instance-profiles/`,getParentRoute:()=>$}),tXe=dYe.update({id:`/ec2/(vpc)/describe-vpcs/`,path:`/ec2/describe-vpcs/`,getParentRoute:()=>$}),nXe=fYe.update({id:`/ec2/(volumes)/describe-volumes/`,path:`/ec2/describe-volumes/`,getParentRoute:()=>$}),rXe=pYe.update({id:`/ec2/(target-groups)/describe-target-groups/`,path:`/ec2/describe-target-groups/`,getParentRoute:()=>$}),iXe=mYe.update({id:`/ec2/(subnet)/describe-subnets/`,path:`/ec2/describe-subnets/`,getParentRoute:()=>$}),aXe=hYe.update({id:`/ec2/(snapshots)/describe-snapshots/`,path:`/ec2/describe-snapshots/`,getParentRoute:()=>$}),oXe=gYe.update({id:`/ec2/(security-groups)/describe-security-groups/`,path:`/ec2/describe-security-groups/`,getParentRoute:()=>$}),sXe=_Ye.update({id:`/ec2/(route-tables)/describe-route-tables/`,path:`/ec2/describe-route-tables/`,getParentRoute:()=>$}),cXe=vYe.update({id:`/ec2/(placement-groups)/describe-placement-groups/`,path:`/ec2/describe-placement-groups/`,getParentRoute:()=>$}),lXe=yYe.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/`,path:`/ec2/describe-nat-gateways/`,getParentRoute:()=>$}),uXe=bYe.update({id:`/ec2/(load-balancers)/describe-load-balancers/`,path:`/ec2/describe-load-balancers/`,getParentRoute:()=>$}),dXe=xYe.update({id:`/ec2/(key)/describe-key-pairs/`,path:`/ec2/describe-key-pairs/`,getParentRoute:()=>$}),fXe=SYe.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/`,path:`/ec2/describe-internet-gateways/`,getParentRoute:()=>$}),pXe=CYe.update({id:`/ec2/(instances)/describe-instances/`,path:`/ec2/describe-instances/`,getParentRoute:()=>$}),mXe=wYe.update({id:`/ec2/(images)/describe-images/`,path:`/ec2/describe-images/`,getParentRoute:()=>$}),hXe=TYe.update({id:`/ec2/(elastic-ips)/describe-addresses/`,path:`/ec2/describe-addresses/`,getParentRoute:()=>$}),gXe=k9.update({id:`/$`,path:`/$`,getParentRoute:()=>Z9}),_Xe=A9.update({id:`/iam/(users)/list-users/$userName`,path:`/iam/list-users/$userName`,getParentRoute:()=>$}),vXe=j9.update({id:`/iam/(roles)/list-roles/$roleName`,path:`/iam/list-roles/$roleName`,getParentRoute:()=>$}),yXe=M9.update({id:`/iam/(policies)/list-policies/$policyArn`,path:`/iam/list-policies/$policyArn`,getParentRoute:()=>$}),bXe=N9.update({id:`/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`,path:`/iam/list-instance-profiles/$instanceProfileName`,getParentRoute:()=>$}),xXe=P9.update({id:`/ec2/(vpc)/describe-vpcs/$id`,path:`/ec2/describe-vpcs/$id`,getParentRoute:()=>$}),SXe=F9.update({id:`/ec2/(volumes)/modify-volume/$id`,path:`/ec2/modify-volume/$id`,getParentRoute:()=>$}),CXe=I9.update({id:`/ec2/(volumes)/describe-volumes/$id`,path:`/ec2/describe-volumes/$id`,getParentRoute:()=>$}),wXe=L9.update({id:`/ec2/(target-groups)/describe-target-groups/$id`,path:`/ec2/describe-target-groups/$id`,getParentRoute:()=>$}),TXe=R9.update({id:`/ec2/(subnet)/describe-subnets/$id`,path:`/ec2/describe-subnets/$id`,getParentRoute:()=>$}),EXe=z9.update({id:`/ec2/(snapshots)/describe-snapshots/$id`,path:`/ec2/describe-snapshots/$id`,getParentRoute:()=>$}),DXe=B9.update({id:`/ec2/(security-groups)/describe-security-groups/$id`,path:`/ec2/describe-security-groups/$id`,getParentRoute:()=>$}),OXe=V9.update({id:`/ec2/(route-tables)/describe-route-tables/$id`,path:`/ec2/describe-route-tables/$id`,getParentRoute:()=>$}),kXe=H9.update({id:`/ec2/(placement-groups)/describe-placement-groups/$id`,path:`/ec2/describe-placement-groups/$id`,getParentRoute:()=>$}),AXe=U9.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/$id`,path:`/ec2/describe-nat-gateways/$id`,getParentRoute:()=>$}),jXe=W9.update({id:`/ec2/(load-balancers)/describe-load-balancers/$id`,path:`/ec2/describe-load-balancers/$id`,getParentRoute:()=>$}),MXe=G9.update({id:`/ec2/(key)/describe-key-pairs/$id`,path:`/ec2/describe-key-pairs/$id`,getParentRoute:()=>$}),NXe=K9.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/$id`,path:`/ec2/describe-internet-gateways/$id`,getParentRoute:()=>$}),PXe=q9.update({id:`/ec2/(instances)/describe-instances/$id`,path:`/ec2/describe-instances/$id`,getParentRoute:()=>$}),FXe=J9.update({id:`/ec2/(images)/describe-images/$id`,path:`/ec2/describe-images/$id`,getParentRoute:()=>$}),IXe=Y9.update({id:`/ec2/(elastic-ips)/describe-addresses/$id`,path:`/ec2/describe-addresses/$id`,getParentRoute:()=>$}),LXe={AuthS3LsBucketSplatRoute:gXe,AuthS3LsBucketIndexRoute:XYe},RXe={AuthNodesRoute:OYe,AuthIndexRoute:DYe,AuthS3ServiceMetricsRoute:kYe,AuthS3LsBucketRouteRoute:Z9._addFileChildren(LXe),AuthEc2elasticIpsAllocateAddressRoute:YYe,AuthEc2instancesRunInstancesRoute:X9,AuthEc2internetGatewaysCreateInternetGatewayRoute:JYe,AuthEc2keyCreateKeyPairRoute:qYe,AuthEc2keyImportKeyPairRoute:KYe,AuthEc2loadBalancersCreateLoadBalancerRoute:GYe,AuthEc2natGatewaysCreateNatGatewayRoute:WYe,AuthEc2placementGroupsCreatePlacementGroupRoute:UYe,AuthEc2routeTablesCreateRouteTableRoute:HYe,AuthEc2securityGroupsCreateSecurityGroupRoute:VYe,AuthEc2snapshotsCreateSnapshotRoute:BYe,AuthEc2subnetCreateSubnetRoute:zYe,AuthEc2targetGroupsCreateTargetGroupRoute:RYe,AuthEc2volumesCreateVolumeRoute:LYe,AuthEc2vpcCreateVpcRoute:IYe,AuthIaminstanceProfilesCreateInstanceProfileRoute:FYe,AuthIampoliciesCreatePolicyRoute:PYe,AuthIamrolesCreateRoleRoute:NYe,AuthIamusersCreateUserRoute:MYe,AuthS3bucketsCreateBucketRoute:jYe,AuthS3LsIndexRoute:AYe,AuthEc2elasticIpsDescribeAddressesIdRoute:IXe,AuthEc2imagesDescribeImagesIdRoute:FXe,AuthEc2instancesDescribeInstancesIdRoute:PXe,AuthEc2internetGatewaysDescribeInternetGatewaysIdRoute:NXe,AuthEc2keyDescribeKeyPairsIdRoute:MXe,AuthEc2loadBalancersDescribeLoadBalancersIdRoute:jXe,AuthEc2natGatewaysDescribeNatGatewaysIdRoute:AXe,AuthEc2placementGroupsDescribePlacementGroupsIdRoute:kXe,AuthEc2routeTablesDescribeRouteTablesIdRoute:OXe,AuthEc2securityGroupsDescribeSecurityGroupsIdRoute:DXe,AuthEc2snapshotsDescribeSnapshotsIdRoute:EXe,AuthEc2subnetDescribeSubnetsIdRoute:TXe,AuthEc2targetGroupsDescribeTargetGroupsIdRoute:wXe,AuthEc2volumesDescribeVolumesIdRoute:CXe,AuthEc2volumesModifyVolumeIdRoute:SXe,AuthEc2vpcDescribeVpcsIdRoute:xXe,AuthIaminstanceProfilesListInstanceProfilesInstanceProfileNameRoute:bXe,AuthIampoliciesListPoliciesPolicyArnRoute:yXe,AuthIamrolesListRolesRoleNameRoute:vXe,AuthIamusersListUsersUserNameRoute:_Xe,AuthEc2elasticIpsDescribeAddressesIndexRoute:hXe,AuthEc2imagesDescribeImagesIndexRoute:mXe,AuthEc2instancesDescribeInstancesIndexRoute:pXe,AuthEc2internetGatewaysDescribeInternetGatewaysIndexRoute:fXe,AuthEc2keyDescribeKeyPairsIndexRoute:dXe,AuthEc2loadBalancersDescribeLoadBalancersIndexRoute:uXe,AuthEc2natGatewaysDescribeNatGatewaysIndexRoute:lXe,AuthEc2placementGroupsDescribePlacementGroupsIndexRoute:cXe,AuthEc2routeTablesDescribeRouteTablesIndexRoute:sXe,AuthEc2securityGroupsDescribeSecurityGroupsIndexRoute:oXe,AuthEc2snapshotsDescribeSnapshotsIndexRoute:aXe,AuthEc2subnetDescribeSubnetsIndexRoute:iXe,AuthEc2targetGroupsDescribeTargetGroupsIndexRoute:rXe,AuthEc2volumesDescribeVolumesIndexRoute:nXe,AuthEc2vpcDescribeVpcsIndexRoute:tXe,AuthIaminstanceProfilesListInstanceProfilesIndexRoute:eXe,AuthIampoliciesListPoliciesIndexRoute:$Ye,AuthIamrolesListRolesIndexRoute:QYe,AuthIamusersListUsersIndexRoute:ZYe},zXe={AuthRouteRoute:$._addFileChildren(RXe),LoginRoute:EYe},BXe=w7._addFileChildren(zXe)._addFileTypes(),Q9=OJe(),VXe=Ji({routeTree:BXe,context:{queryClient:Q9},defaultPreload:`intent`,scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),$9=document.querySelector(`#app`);$9&&!$9.innerHTML&&ua.createRoot($9).render((0,F.jsx)(P.StrictMode,{children:(0,F.jsx)(ma,{defaultTheme:`dark`,storageKey:`spinifex-ui-theme`,children:(0,F.jsx)(Ie,{client:Q9,children:(0,F.jsx)(yx,{children:(0,F.jsx)(Tte,{children:(0,F.jsx)(Zi,{router:VXe})})})})})}));export{E7 as $,Qu as $a,Ree as $i,cTe as $n,Eo as $o,wb as $r,yVe as $t,x9 as A,nf as Aa,qh as Ai,FFe as An,hl as Ao,Zk as Ar,k as As,m7 as At,o9 as B,Ud as Ba,Eh as Bi,Ywe as Bn,Es as Bo,AD as Br,c as Bs,Nqe as Bt,T9 as C,Cf as Ca,f_ as Ci,yFe as Cn,Nl as Co,YTe as Cr,xe as Cs,e9 as Ct,E9 as D,df as Da,sg as Di,MFe as Dn,Cl as Do,$Te as Dr,w as Ds,T7 as Dt,O9 as E,mf as Ea,lg as Ei,jFe as En,Tl as Eo,QTe as Er,ce as Es,U7 as Et,h9 as F,Xd as Fa,zh as Fi,Wwe as Fn,ul as Fo,yk as Fr,v as Fs,Tqe as Ft,l9 as G,Pd as Ga,ph as Gi,eTe as Gn,es as Go,jS as Gr,yHe as Gt,m9 as H,Vd as Ha,dh as Hi,Zwe as Hn,Ts as Ho,jce as Hr,Fqe as Ht,QJe as I,qd as Ia,Ah as Ii,Gwe as In,cl as Io,ck as Ir,f as Is,Eqe as It,r9 as J,Od as Ja,mh as Ji,rTe as Jn,Ho as Jo,bx as Jr,h4 as Jt,$Je as K,Fd as Ka,uh as Ki,tTe as Kn,qo as Ko,OS as Kr,g4 as Kt,f9 as L,of as La,kh as Li,Kwe as Ln,dl as Lo,sO as Lr,u as Ls,Dqe as Lt,C9 as M,Zd as Ma,Uh as Mi,w$ as Mn,ml as Mo,Nk as Mr,y as Ms,_7 as Mt,_9 as N,tf as Na,Hh as Ni,p$ as Nn,gl as No,Sk as Nr,D as Ns,v7 as Nt,y9 as O,uf as Oa,rg as Oi,NFe as On,vl as Oo,eEe as Or,_ as Os,y7 as Ot,g9 as P,Kd as Pa,Vh as Pi,Uwe as Pn,sl as Po,bk as Pr,oe as Ps,wqe as Pt,Y7 as Q,td as Qa,gh as Qi,sTe as Qn,Ao as Qo,Tb as Qr,vVe as Qt,c9 as R,Gd as Ra,Oh as Ri,qwe as Rn,pl as Ro,VD as Rr,l as Rs,kqe as Rt,v9 as S,wf as Sa,u_ as Si,vFe as Sn,Pl as So,JTe as Sr,Te as Ss,F7 as St,D9 as T,pf as Ta,ug as Ti,AFe as Tn,Al as To,ZTe as Tr,M as Ts,W7 as Tt,d9 as U,Ld as Ua,_h as Ui,Qwe as Un,xs as Uo,LE as Ur,t6 as Ut,p9 as V,Hd as Va,zee as Vi,Xwe as Vn,Ds as Vo,OD as Vr,Pqe as Vt,u9 as W,Bd as Wa,fh as Wi,$we as Wn,Xo as Wo,Cw as Wr,C4 as Wt,t9 as X,Zu as Xa,Lee as Xi,aTe as Xn,zo as Xo,ux as Xr,gVe as Xt,n9 as Y,$u as Ya,hh as Yi,iTe as Yn,Bo as Yo,gx as Yr,hHe as Yt,X7 as Z,ed as Za,yh as Zi,oTe as Zn,Io as Zo,Kb as Zr,_Ve as Zt,N9 as _,Rf as _a,Iy as _i,pFe as _n,$l as _o,UTe as _r,yn as _s,J7 as _t,G9 as a,jm as aa,lb as ai,TVe as an,Ku as ao,mTe as ar,Za as as,D7 as at,A9 as b,Df as ba,Sie as bi,gFe as bn,Ql as bo,KTe as br,Ne as bs,L7 as bt,H9 as c,Pp as ca,tb as ci,OVe as cn,hu as co,_Te as cr,Ga as cs,N7 as ct,z9 as d,vp as da,Qy as di,WVe as dn,uu as do,bTe as dr,Na as ds,Z7 as dt,xh as ea,Cb as ei,bVe as en,Xu as eo,lTe as er,To as es,PJe as et,R9 as f,pp as fa,Zy as fi,GVe as fn,cu as fo,RTe as fr,va as fs,K7 as ft,P9 as g,Hf as ga,fie as gi,fFe as gn,nu as go,HTe as gr,di as gs,V7 as gt,F9 as h,Vf as ha,Ry as hi,dFe as hn,tu as ho,VTe as hr,Di as hs,H7 as ht,K9 as i,Pm as ia,cb as ii,wVe as in,nd as io,pTe as ir,ro as is,k7 as it,w9 as j,$d as ja,Gh as ji,IFe as jn,al as jo,Vk as jr,b as js,h7 as jt,b9 as k,sf as ka,Yh as ki,PFe as kn,_l as ko,tEe as kr,h as ks,g7 as kt,V9 as l,Dp as la,eb as li,kVe as ln,gu as lo,vTe as lr,Ia as ls,M7 as lt,I9 as m,Kf as ma,Hy as mi,uFe as mn,eu as mo,BTe as mr,Ui as ms,P7 as mt,J9 as n,th as na,_b as ni,SVe as nn,id as no,dTe as nr,yo as ns,A7 as nt,W9 as o,Em as oa,rb as oi,EVe as on,vu as oo,hTe as or,Ka as os,B7 as ot,L9 as p,op as pa,Vie as pi,K0 as pn,ou as po,zTe as pr,la as ps,G7 as pt,i9 as q,jd as qa,vh as qi,nTe as qn,Ko as qo,dS as qr,vHe as qt,q9 as r,qm as ra,sb as ri,CVe as rn,Ju as ro,fTe as rr,co as rs,O7 as rt,U9 as s,um as sa,nb as si,DVe as sn,_u as so,gTe as sr,qa as ss,z7 as st,Y9 as t,Sh as ta,vb as ti,xVe as tn,Yu as to,uTe as tr,So as ts,j7 as tt,B9 as u,_p as ua,Yy as ui,AVe as un,pu as uo,yTe as ur,Fa as us,Q7 as ut,M9 as v,If as va,lie as vi,mFe as vn,Xl as vo,WTe as vr,I as vs,q7 as vt,S9 as w,Sf as wa,a_ as wi,kFe as wn,Ml as wo,XTe as wr,N as ws,$7 as wt,k9 as x,Ef as xa,jy as xi,_Fe as xn,zl as xo,qTe as xr,je as xs,I7 as xt,j9 as y,Of as ya,zy as yi,hFe as yn,Zl as yo,GTe as yr,Fe as ys,R7 as yt,s9 as z,Wd as za,Dh as zi,Jwe as zn,ks as zo,jD as zr,o as zs,Aqe 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 50ebc3a78..a9c4ec171 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-card.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-card.js @@ -1 +1 @@ -import{fs as e,ms as t,ys as n}from"./index.js";var r=e(),i=n();function a(e){let n=(0,r.c)(22),a,o,s,c,l;n[0]===e?(a=n[1],o=n[2],s=n[3],c=n[4],l=n[5]):({title:l,subtitle:c,badge:a,children:o,...s}=e,n[0]=e,n[1]=a,n[2]=o,n[3]=s,n[4]=c,n[5]=l);let u;n[6]===l?u=n[7]:(u=(0,i.jsx)(`h3`,{className:`font-semibold`,children:l}),n[6]=l,n[7]=u);let d;n[8]===c?d=n[9]:(d=c&&(0,i.jsx)(`p`,{className:`mt-1 text-sm font-medium text-muted-foreground`,children:c}),n[8]=c,n[9]=d);let f;n[10]!==o||n[11]!==u||n[12]!==d?(f=(0,i.jsxs)(`div`,{className:`flex-1`,children:[u,d,o]}),n[10]=o,n[11]=u,n[12]=d,n[13]=f):f=n[13];let p;n[14]===a?p=n[15]:(p=a&&(0,i.jsx)(`div`,{className:`ml-4`,children:a}),n[14]=a,n[15]=p);let m;n[16]!==f||n[17]!==p?(m=(0,i.jsxs)(`div`,{className:`flex items-start justify-between`,children:[f,p]}),n[16]=f,n[17]=p,n[18]=m):m=n[18];let h;return n[19]!==s||n[20]!==m?(h=(0,i.jsx)(t,{className:`block rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,...s,children:m}),n[19]=s,n[20]=m,n[21]=h):h=n[21],h}export{a as t}; \ No newline at end of file +import{bs as e,hs as t,ps as n}from"./index.js";var r=n(),i=e();function a(e){let n=(0,r.c)(22),a,o,s,c,l;n[0]===e?(a=n[1],o=n[2],s=n[3],c=n[4],l=n[5]):({title:l,subtitle:c,badge:a,children:o,...s}=e,n[0]=e,n[1]=a,n[2]=o,n[3]=s,n[4]=c,n[5]=l);let u;n[6]===l?u=n[7]:(u=(0,i.jsx)(`h3`,{className:`font-semibold`,children:l}),n[6]=l,n[7]=u);let d;n[8]===c?d=n[9]:(d=c&&(0,i.jsx)(`p`,{className:`mt-1 text-sm font-medium text-muted-foreground`,children:c}),n[8]=c,n[9]=d);let f;n[10]!==o||n[11]!==u||n[12]!==d?(f=(0,i.jsxs)(`div`,{className:`flex-1`,children:[u,d,o]}),n[10]=o,n[11]=u,n[12]=d,n[13]=f):f=n[13];let p;n[14]===a?p=n[15]:(p=a&&(0,i.jsx)(`div`,{className:`ml-4`,children:a}),n[14]=a,n[15]=p);let m;n[16]!==f||n[17]!==p?(m=(0,i.jsxs)(`div`,{className:`flex items-start justify-between`,children:[f,p]}),n[16]=f,n[17]=p,n[18]=m):m=n[18];let h;return n[19]!==s||n[20]!==m?(h=(0,i.jsx)(t,{className:`block rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,...s,children:m}),n[19]=s,n[20]=m,n[21]=h):h=n[21],h}export{a as t}; \ 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 b2b6053e4..92193c063 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{t as e}from"./useSuspenseQuery.js";import{D as t,Do as n,fs as r,ms as i,ys as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=r(),l=a();function u(){let r=(0,c.c)(3),{data:a}=e(t),s;if(r[0]!==a.InstanceProfiles){let e=(a.InstanceProfiles??[]).toSorted(f),t;r[2]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,l.jsx)(o,{actions:(0,l.jsx)(i,{to:`/iam/create-instance-profile`,children:(0,l.jsx)(n,{children:`Create Instance Profile`})}),title:`Instance Profiles`}),r[2]=t):t=r[2],s=(0,l.jsxs)(l.Fragment,{children:[t,e.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:e.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No instance profiles found.`})]}),r[0]=a.InstanceProfiles,r[1]=s}else s=r[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{t as e}from"./useSuspenseQuery.js";import{D as t,Oo as n,bs as r,hs as i,ps as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=a(),l=r();function u(){let r=(0,c.c)(3),{data:a}=e(t),s;if(r[0]!==a.InstanceProfiles){let e=(a.InstanceProfiles??[]).toSorted(f),t;r[2]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,l.jsx)(o,{actions:(0,l.jsx)(i,{to:`/iam/create-instance-profile`,children:(0,l.jsx)(n,{children:`Create Instance Profile`})}),title:`Instance Profiles`}),r[2]=t):t=r[2],s=(0,l.jsxs)(l.Fragment,{children:[t,e.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:e.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No instance profiles found.`})]}),r[0]=a.InstanceProfiles,r[1]=s}else s=r[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 a513a8ad6..5610d9fc8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-policies.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-policies.js @@ -1 +1 @@ -import{t as e}from"./useSuspenseQuery.js";import{Do as t,O as n,fs as r,ms as i,ys as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=r(),l=a();function u(){let r=(0,c.c)(3),{data:a}=e(n),s;if(r[0]!==a.Policies){let e=(a.Policies??[]).toSorted(f),n;r[2]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,l.jsx)(o,{actions:(0,l.jsx)(i,{to:`/iam/create-policy`,children:(0,l.jsx)(t,{children:`Create Policy`})}),title:`Policies`}),r[2]=n):n=r[2],s=(0,l.jsxs)(l.Fragment,{children:[n,e.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:e.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM policies found.`})]}),r[0]=a.Policies,r[1]=s}else s=r[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{t as e}from"./useSuspenseQuery.js";import{O as t,Oo as n,bs as r,hs as i,ps as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=a(),l=r();function u(){let r=(0,c.c)(3),{data:a}=e(t),s;if(r[0]!==a.Policies){let e=(a.Policies??[]).toSorted(f),t;r[2]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,l.jsx)(o,{actions:(0,l.jsx)(i,{to:`/iam/create-policy`,children:(0,l.jsx)(n,{children:`Create Policy`})}),title:`Policies`}),r[2]=t):t=r[2],s=(0,l.jsxs)(l.Fragment,{children:[t,e.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:e.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM policies found.`})]}),r[0]=a.Policies,r[1]=s}else s=r[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-roles.js b/spinifex/services/spinifexui/frontend/dist/assets/list-roles.js index 4b69706ed..df15a5b33 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-roles.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-roles.js @@ -1 +1 @@ -import{t as e}from"./useSuspenseQuery.js";import{Do as t,M as n,fs as r,ms as i,ys as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=r(),l=a();function u(){let r=(0,c.c)(3),{data:a}=e(n),s;if(r[0]!==a.Roles){let e=(a.Roles??[]).toSorted(f),n;r[2]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,l.jsx)(o,{actions:(0,l.jsx)(i,{to:`/iam/create-role`,children:(0,l.jsx)(t,{children:`Create Role`})}),title:`Roles`}),r[2]=n):n=r[2],s=(0,l.jsxs)(l.Fragment,{children:[n,e.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:e.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM roles found.`})]}),r[0]=a.Roles,r[1]=s}else s=r[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{t as e}from"./useSuspenseQuery.js";import{M as t,Oo as n,bs as r,hs as i,ps as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=a(),l=r();function u(){let r=(0,c.c)(3),{data:a}=e(t),s;if(r[0]!==a.Roles){let e=(a.Roles??[]).toSorted(f),t;r[2]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,l.jsx)(o,{actions:(0,l.jsx)(i,{to:`/iam/create-role`,children:(0,l.jsx)(n,{children:`Create Role`})}),title:`Roles`}),r[2]=t):t=r[2],s=(0,l.jsxs)(l.Fragment,{children:[t,e.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:e.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM roles found.`})]}),r[0]=a.Roles,r[1]=s}else s=r[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 753510a3a..6df98da5c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-users.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-users.js @@ -1 +1 @@ -import{t as e}from"./useSuspenseQuery.js";import{Do as t,P as n,fs as r,ms as i,ys as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=r(),l=a();function u(){let r=(0,c.c)(3),{data:a}=e(n),s;if(r[0]!==a.Users){let e=(a.Users??[]).toSorted(f),n;r[2]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,l.jsx)(o,{actions:(0,l.jsx)(i,{to:`/iam/create-user`,children:(0,l.jsx)(t,{children:`Create User`})}),title:`Users`}),r[2]=n):n=r[2],s=(0,l.jsxs)(l.Fragment,{children:[n,e.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:e.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM users found.`})]}),r[0]=a.Users,r[1]=s}else s=r[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{t as e}from"./useSuspenseQuery.js";import{Oo as t,P as n,bs as r,hs as i,ps as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=a(),l=r();function u(){let r=(0,c.c)(3),{data:a}=e(n),s;if(r[0]!==a.Users){let e=(a.Users??[]).toSorted(f),n;r[2]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,l.jsx)(o,{actions:(0,l.jsx)(i,{to:`/iam/create-user`,children:(0,l.jsx)(t,{children:`Create User`})}),title:`Users`}),r[2]=n):n=r[2],s=(0,l.jsxs)(l.Fragment,{children:[n,e.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:e.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM users found.`})]}),r[0]=a.Users,r[1]=s}else s=r[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/login.js b/spinifex/services/spinifexui/frontend/dist/assets/login.js index b0156c4f0..6826ecc02 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/login.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/login.js @@ -1 +1 @@ -import{At as e,Da as t,Do as n,Dt as r,Mn as i,Ot as a,bs as o,fi as s,fs as c,li as l,ui as u,ys as d,zs as f}from"./index.js";import{i as p,t as m}from"./zod.js";import{a as h,i as g,r as _,t as v}from"./field.js";import{n as y,r as b,t as x}from"./collapsible.js";import{a as S,o as C,r as w,t as T}from"./card.js";var E=c(),D=f(o()),O=d();function k(){let{reason:o}=r.useSearch(),[c,d]=(0,D.useState)(null),{register:f,handleSubmit:y,formState:{errors:b,isSubmitting:x}}=p({resolver:m(l)});async function E(t){d(null),a(),s(t);try{await e().send(new i({})),window.location.href=`/`}catch{u(),a(),d(`Invalid credentials. Please check your Access Key ID and Secret Access Key.`)}}return(0,O.jsx)(`div`,{className:`flex flex-1 items-center justify-center`,children:(0,O.jsxs)(`div`,{className:`flex w-full max-w-sm flex-col gap-4`,children:[(0,O.jsxs)(T,{children:[(0,O.jsx)(S,{children:(0,O.jsx)(C,{children:`AWS Credentials`})}),(0,O.jsxs)(w,{children:[o===`expired`&&!c&&(0,O.jsx)(`p`,{className:`mb-4 rounded-md bg-muted p-3 text-sm text-muted-foreground`,children:`Your session is no longer valid — please sign in again.`}),c&&(0,O.jsx)(`p`,{className:`mb-4 rounded-md bg-destructive/10 p-3 text-sm text-destructive`,children:c}),(0,O.jsx)(`form`,{onSubmit:y(E),children:(0,O.jsxs)(g,{children:[(0,O.jsxs)(v,{children:[(0,O.jsx)(h,{children:(0,O.jsx)(`label`,{htmlFor:`accessKeyId`,children:`Access Key ID`})}),(0,O.jsx)(t,{"aria-invalid":!!b.accessKeyId,autoComplete:`username`,id:`accessKeyId`,placeholder:`AKIAIOSFODNN7EXAMPLE`,...f(`accessKeyId`)}),(0,O.jsx)(_,{errors:[b.accessKeyId]})]}),(0,O.jsxs)(v,{children:[(0,O.jsx)(h,{children:(0,O.jsx)(`label`,{htmlFor:`secretAccessKey`,children:`Secret Access Key`})}),(0,O.jsx)(t,{"aria-invalid":!!b.secretAccessKey,autoComplete:`current-password`,id:`secretAccessKey`,placeholder:`wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`,type:`password`,...f(`secretAccessKey`)}),(0,O.jsx)(_,{errors:[b.secretAccessKey]})]}),(0,O.jsx)(n,{className:`w-full`,disabled:x,type:`submit`,children:x?`Signing in...`:`Sign In`})]})})]})]}),(0,O.jsx)(A,{})]})})}function A(){let e=(0,E.c)(4),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`text-sm font-medium`,children:`Install Local Certificate Authority`}),(0,O.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`To avoid browser certificate warnings, download and install the Spinifex CA as a trusted root on your OS.`})]}),n=(0,O.jsx)(`a`,{className:`inline-flex h-8 w-full items-center justify-center rounded-md border border-input bg-background px-3 text-sm font-medium hover:bg-accent hover:text-accent-foreground`,download:`spinifex-ca.pem`,href:`/api/ca.pem`,children:`Download CA Certificate`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,O.jsx)(b,{className:`cursor-pointer text-xs text-muted-foreground underline-offset-4 hover:underline`,children:`Installation instructions`}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,O.jsx)(T,{className:`border-muted bg-muted/30`,children:(0,O.jsx)(w,{className:`pt-4 pb-4`,children:(0,O.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[t,n,(0,O.jsxs)(x,{children:[r,(0,O.jsx)(y,{children:(0,O.jsxs)(`div`,{className:`mt-2 flex flex-col gap-2 text-xs text-muted-foreground`,children:[(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`font-medium text-foreground`,children:`macOS`}),(0,O.jsx)(`code`,{className:`mt-1 block rounded bg-muted p-2 text-[11px] break-all`,children:`sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain spinifex-ca.pem`})]}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`font-medium text-foreground`,children:`Windows`}),(0,O.jsx)(`p`,{children:`Double-click the file → Install Certificate → Local Machine → Trusted Root Certification Authorities`})]}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`font-medium text-foreground`,children:`Linux`}),(0,O.jsx)(`code`,{className:`mt-1 block rounded bg-muted p-2 text-[11px] break-all`,children:`sudo cp spinifex-ca.pem /usr/local/share/ca-certificates/spinifex-ca.crt && sudo update-ca-certificates`})]})]})})]})]})})}),e[3]=i):i=e[3],i}export{k as component}; \ No newline at end of file +import{At as e,Bs as t,Dt as n,Nn as r,Oa as i,Oo as a,Ot as o,bs as s,di as c,pi as l,ps as u,ui as d,xs as f}from"./index.js";import{i as p,t as m}from"./zod.js";import{a as h,i as g,r as _,t as v}from"./field.js";import{n as y,r as b,t as x}from"./collapsible.js";import{a as S,o as C,r as w,t as T}from"./card.js";var E=u(),D=t(f()),O=s();function k(){let{reason:t}=n.useSearch(),[s,u]=(0,D.useState)(null),{register:f,handleSubmit:y,formState:{errors:b,isSubmitting:x}}=p({resolver:m(d)});async function E(t){u(null),o(),l(t);try{await e().send(new r({})),window.location.href=`/`}catch{c(),o(),u(`Invalid credentials. Please check your Access Key ID and Secret Access Key.`)}}return(0,O.jsx)(`div`,{className:`flex flex-1 items-center justify-center`,children:(0,O.jsxs)(`div`,{className:`flex w-full max-w-sm flex-col gap-4`,children:[(0,O.jsxs)(T,{children:[(0,O.jsx)(S,{children:(0,O.jsx)(C,{children:`AWS Credentials`})}),(0,O.jsxs)(w,{children:[t===`expired`&&!s&&(0,O.jsx)(`p`,{className:`mb-4 rounded-md bg-muted p-3 text-sm text-muted-foreground`,children:`Your session is no longer valid — please sign in again.`}),s&&(0,O.jsx)(`p`,{className:`mb-4 rounded-md bg-destructive/10 p-3 text-sm text-destructive`,children:s}),(0,O.jsx)(`form`,{onSubmit:y(E),children:(0,O.jsxs)(g,{children:[(0,O.jsxs)(v,{children:[(0,O.jsx)(h,{children:(0,O.jsx)(`label`,{htmlFor:`accessKeyId`,children:`Access Key ID`})}),(0,O.jsx)(i,{"aria-invalid":!!b.accessKeyId,autoComplete:`username`,id:`accessKeyId`,placeholder:`AKIAIOSFODNN7EXAMPLE`,...f(`accessKeyId`)}),(0,O.jsx)(_,{errors:[b.accessKeyId]})]}),(0,O.jsxs)(v,{children:[(0,O.jsx)(h,{children:(0,O.jsx)(`label`,{htmlFor:`secretAccessKey`,children:`Secret Access Key`})}),(0,O.jsx)(i,{"aria-invalid":!!b.secretAccessKey,autoComplete:`current-password`,id:`secretAccessKey`,placeholder:`wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`,type:`password`,...f(`secretAccessKey`)}),(0,O.jsx)(_,{errors:[b.secretAccessKey]})]}),(0,O.jsx)(a,{className:`w-full`,disabled:x,type:`submit`,children:x?`Signing in...`:`Sign In`})]})})]})]}),(0,O.jsx)(A,{})]})})}function A(){let e=(0,E.c)(4),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`text-sm font-medium`,children:`Install Local Certificate Authority`}),(0,O.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`To avoid browser certificate warnings, download and install the Spinifex CA as a trusted root on your OS.`})]}),n=(0,O.jsx)(`a`,{className:`inline-flex h-8 w-full items-center justify-center rounded-md border border-input bg-background px-3 text-sm font-medium hover:bg-accent hover:text-accent-foreground`,download:`spinifex-ca.pem`,href:`/api/ca.pem`,children:`Download CA Certificate`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,O.jsx)(b,{className:`cursor-pointer text-xs text-muted-foreground underline-offset-4 hover:underline`,children:`Installation instructions`}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,O.jsx)(T,{className:`border-muted bg-muted/30`,children:(0,O.jsx)(w,{className:`pt-4 pb-4`,children:(0,O.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[t,n,(0,O.jsxs)(x,{children:[r,(0,O.jsx)(y,{children:(0,O.jsxs)(`div`,{className:`mt-2 flex flex-col gap-2 text-xs text-muted-foreground`,children:[(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`font-medium text-foreground`,children:`macOS`}),(0,O.jsx)(`code`,{className:`mt-1 block rounded bg-muted p-2 text-[11px] break-all`,children:`sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain spinifex-ca.pem`})]}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`font-medium text-foreground`,children:`Windows`}),(0,O.jsx)(`p`,{children:`Double-click the file → Install Certificate → Local Machine → Trusted Root Certification Authorities`})]}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`font-medium text-foreground`,children:`Linux`}),(0,O.jsx)(`code`,{className:`mt-1 block rounded bg-muted p-2 text-[11px] break-all`,children:`sudo cp spinifex-ca.pem /usr/local/share/ca-certificates/spinifex-ca.crt && sudo update-ca-certificates`})]})]})})]})]})})}),e[3]=i):i=e[3],i}export{k 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 aadb118b0..b5b103319 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ls.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ls.js @@ -1 +1 @@ -import{t as e}from"./useSuspenseQuery.js";import{Do as t,No as n,X as r,fs as i,ms as a,ys as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=i(),u=o();function d(){let n=(0,l.c)(5),{data:i}=e(r),o;n[0]===i.Buckets?o=n[1]:(o=i.Buckets??[],n[0]=i.Buckets,n[1]=o);let c=o,d;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(a,{to:`/s3/create-bucket`,children:(0,u.jsx)(t,{children:`Create Bucket`})}),title:`Buckets`}),n[2]=d):d=n[2];let p;return n[3]===c?p=n[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.`})]}),n[3]=c,n[4]=p),p}function f(e){return e.Name?(0,u.jsx)(c,{params:{bucket:e.Name},subtitle:e.CreationDate?`Created: ${n(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{t as e}from"./useSuspenseQuery.js";import{Oo as t,Po as n,X as r,bs as i,hs as a,ps as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=o(),u=i();function d(){let n=(0,l.c)(5),{data:i}=e(r),o;n[0]===i.Buckets?o=n[1]:(o=i.Buckets??[],n[0]=i.Buckets,n[1]=o);let c=o,d;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(a,{to:`/s3/create-bucket`,children:(0,u.jsx)(t,{children:`Create Bucket`})}),title:`Buckets`}),n[2]=d):d=n[2];let p;return n[3]===c?p=n[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.`})]}),n[3]=c,n[4]=p),p}function f(e){return e.Name?(0,u.jsx)(c,{params:{bucket:e.Name},subtitle:e.CreationDate?`Created: ${n(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/nodes.js b/spinifex/services/spinifexui/frontend/dist/assets/nodes.js index 1088d4014..fc1127776 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/nodes.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/nodes.js @@ -1 +1 @@ -import{t as e}from"./useQuery.js";import{Fo as t,fs as n,gs as r,qr as i,ys as a}from"./index.js";import{t as o}from"./page-heading.js";import{r as s,t as c}from"./admin.js";import{t as l}from"./badge.js";import{a as u,o as d,r as f,t as p}from"./card.js";var m=n(),h=a();function g(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 _(e){return e>=1?`${e.toFixed(1)}Gi`:`${Math.round(e*1024)}Mi`}function v(e){let t=Math.floor(Date.now()/1e3-e);if(t<60)return`${t}s`;let n=Math.floor(t/60);if(n<60)return`${n}m`;let r=Math.floor(n/60);return r<24?`${r}h ${n%60}m`:`${Math.floor(r/24)}d ${r%24}h`}function y(){let t=(0,m.c)(31),{isAdmin:n}=i(),a;t[0]===n?a=t[1]:(a={...c,enabled:n,refetchInterval:5e3},t[0]=n,t[1]=a);let{data:l}=e(a),g;t[2]===n?g=t[3]:(g={...s,enabled:n,refetchInterval:5e3},t[2]=n,t[3]=g);let{data:_}=e(g);if(!n)throw r({to:`/`});let v,y,T;if(t[4]!==l?.nodes||t[5]!==_?.vms){v=l?.nodes??[];let e;t[9]===_?.vms?e=t[10]:(e=_?.vms??[],t[9]=_?.vms,t[10]=e);let n;t[11]===e?n=t[12]:(n=e.filter(C),t[11]=e,t[12]=n),T=n;let r=new Map;for(let e of v)for(let t of e.instance_types??[]){let e=r.get(t.name);e?e.available+=t.available:r.set(t.name,{vcpu:t.vcpu,memory_gb:t.memory_gb,available:t.available})}y=[...r.entries()].map(S).toSorted(x),t[4]=l?.nodes,t[5]=_?.vms,t[6]=v,t[7]=y,t[8]=T}else v=t[6],y=t[7],T=t[8];let E=y,O;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,h.jsx)(o,{title:`Nodes`}),t[13]=O):O=t[13];let A;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`Cluster Nodes`})}),t[14]=A):A=t[14];let M;t[15]===v?M=t[16]:(M=(0,h.jsxs)(p,{children:[A,(0,h.jsx)(f,{children:v.length===0?(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No nodes responding`}):(0,h.jsx)(w,{nodes:v})})]}),t[15]=v,t[16]=M);let N;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`Elastic Compute Cloud (EC2)`})}),t[17]=N):N=t[17];let P;t[18]===T?P=t[19]:(P=(0,h.jsxs)(p,{children:[N,(0,h.jsx)(f,{children:T.length===0?(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances running`}):(0,h.jsx)(D,{vms:T})})]}),t[18]=T,t[19]=P);let I;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`Resource Usage`})}),t[20]=I):I=t[20];let L;t[21]!==E||t[22]!==v?(L=(0,h.jsxs)(p,{children:[I,(0,h.jsx)(f,{className:`space-y-4`,children:v.length===0?(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(k,{nodes:v}),E.length>0&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(`h4`,{className:`mt-4 text-xs font-medium text-muted-foreground`,children:`Instance Type Capacity`}),(0,h.jsx)(j,{instanceTypes:E})]})]})})]}),t[21]=E,t[22]=v,t[23]=L):L=t[23];let R;t[24]===v?R=t[25]:(R=v.some(b)&&(0,h.jsxs)(p,{children:[(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`GPU Inventory`})}),(0,h.jsx)(f,{children:(0,h.jsx)(F,{nodes:v})})]}),t[24]=v,t[25]=R);let z;return t[26]!==R||t[27]!==M||t[28]!==P||t[29]!==L?(z=(0,h.jsxs)(h.Fragment,{children:[O,(0,h.jsxs)(`div`,{className:`space-y-6`,children:[M,P,L,R]})]}),t[26]=R,t[27]=M,t[28]=P,t[29]=L,t[30]=z):z=t[30],z}function b(e){return(e.gpus?.length??0)>0}function x(e,t){return e.name.localeCompare(t.name)}function S(e){let[t,n]=e;return{name:t,...n}}function C(e){return!e.managed_by}function w(e){let t=(0,m.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,h.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(T),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function T(e){let t=[e.nats_role?`nats:${e.nats_role}`:null,e.predastore_role?`predastore:${e.predastore_role}`:null].filter(Boolean).join(`,`);return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,h.jsx)(l,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono text-muted-foreground`,children:t||`-`}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:g(e.uptime)}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,h.jsx)(`td`,{className:`py-1.5`,children:(0,h.jsx)(`span`,{className:`text-muted-foreground`,children:e.services?.join(`,`)??`-`})})]},e.node)}function E(e){return e?e.profile?`${t(e.vram_mib)} (${e.profile})`:`${e.model} ${t(e.vram_mib)}`:`-`}function D(e){let t=(0,m.c)(5),{vms:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Type`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Memory`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`GPU`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`Age`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(O),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function O(e){return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_id}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,h.jsx)(l,{variant:e.status===`running`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_type}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:_(e.memory_gb)}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:E(e.gpu)}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.node}),(0,h.jsx)(`td`,{className:`py-1.5`,children:e.launch_time>0?v(e.launch_time):`-`})]},e.instance_id)}function k(e){let t=(0,m.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`CPU (used/total)`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`MEM (used/total)`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`GPU (used/total)`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`EC2`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(A),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function A(e){return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,h.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[e.alloc_vcpu,`/`,e.total_vcpu]}),(0,h.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[_(e.alloc_mem_gb),`/`,_(e.total_mem_gb)]}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.total_gpus>0?`${e.alloc_gpus}/${e.total_gpus}`:`-`}),(0,h.jsx)(`td`,{className:`py-1.5`,children:e.vm_count})]},e.node)}function j(e){let t=(0,m.c)(5),{instanceTypes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance Type`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Available`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`Memory`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(M),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function M(e){return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.name}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.available}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,h.jsx)(`td`,{className:`py-1.5`,children:_(e.memory_gb)})]},e.name)}function N(e){let n=(0,m.c)(22),{gpu:r}=e,i;n[0]===r.model?i=n[1]:(i=(0,h.jsx)(`span`,{className:`font-medium`,children:r.model}),n[0]=r.model,n[1]=i);let a;n[2]===r.vram_mib?a=n[3]:(a=t(r.vram_mib),n[2]=r.vram_mib,n[3]=a);let o;n[4]===a?o=n[5]:(o=(0,h.jsx)(`span`,{className:`text-muted-foreground`,children:a}),n[4]=a,n[5]=o);let s;n[6]===r.pci_address?s=n[7]:(s=(0,h.jsx)(`span`,{className:`text-muted-foreground`,children:r.pci_address}),n[6]=r.pci_address,n[7]=s);let c;n[8]!==r.instance_id||n[9]!==r.mig_enabled?(c=r.mig_enabled?(0,h.jsx)(l,{className:`text-[0.625rem]`,variant:`secondary`,children:`MIG`}):(0,h.jsx)(`span`,{className:r.instance_id?`text-amber-500`:`text-green-600`,children:r.instance_id?`in-use: ${r.instance_id}`:`free`}),n[8]=r.instance_id,n[9]=r.mig_enabled,n[10]=c):c=n[10];let u;n[11]!==i||n[12]!==o||n[13]!==s||n[14]!==c?(u=(0,h.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 font-mono`,children:[i,o,s,c]}),n[11]=i,n[12]=o,n[13]=s,n[14]=c,n[15]=u):u=n[15];let d;n[16]!==r.mig_enabled||n[17]!==r.slices?(d=r.mig_enabled&&r.slices&&r.slices.length>0&&(0,h.jsxs)(`table`,{className:`mt-2 w-full`,children:[(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-0.5 font-normal`,children:`GI`}),(0,h.jsx)(`th`,{className:`pr-4 pb-0.5 font-normal`,children:`Profile`}),(0,h.jsx)(`th`,{className:`pr-4 pb-0.5 font-normal`,children:`VRAM`}),(0,h.jsx)(`th`,{className:`pb-0.5 font-normal`,children:`Instance`})]})}),(0,h.jsx)(`tbody`,{children:r.slices.map(P)})]}),n[16]=r.mig_enabled,n[17]=r.slices,n[18]=d):d=n[18];let f;return n[19]!==u||n[20]!==d?(f=(0,h.jsxs)(`div`,{className:`rounded border p-2 text-xs`,children:[u,d]}),n[19]=u,n[20]=d,n[21]=f):f=n[21],f}function P(e){return(0,h.jsxs)(`tr`,{children:[(0,h.jsx)(`td`,{className:`py-0.5 pr-4 font-mono`,children:e.gi_id}),(0,h.jsx)(`td`,{className:`py-0.5 pr-4 font-mono`,children:e.profile}),(0,h.jsx)(`td`,{className:`py-0.5 pr-4`,children:t(e.vram_mib)}),(0,h.jsx)(`td`,{className:e.instance_id?`py-0.5 font-mono text-amber-500`:`py-0.5 text-green-600`,children:e.instance_id??`free`})]},e.gi_id)}function F(e){let t=(0,m.c)(6),{nodes:n}=e,r,i;if(t[0]!==n){let e=n.filter(R);r=`space-y-4`,i=e.map(I),t[0]=n,t[1]=r,t[2]=i}else r=t[1],i=t[2];let a;return t[3]!==r||t[4]!==i?(a=(0,h.jsx)(`div`,{className:r,children:i}),t[3]=r,t[4]=i,t[5]=a):a=t[5],a}function I(e){return(0,h.jsxs)(`div`,{children:[(0,h.jsx)(`h4`,{className:`mb-1.5 text-xs font-medium text-muted-foreground`,children:e.node}),(0,h.jsx)(`div`,{className:`space-y-2`,children:e.gpus?.map(L)})]},e.node)}function L(e){return(0,h.jsx)(N,{gpu:e},e.pci_address)}function R(e){return(e.gpus?.length??0)>0}export{y as component}; \ No newline at end of file +import{t as e}from"./useQuery.js";import{Io as t,Jr as n,_s as r,bs as i,ps as a}from"./index.js";import{t as o}from"./page-heading.js";import{r as s,t as c}from"./admin.js";import{t as l}from"./badge.js";import{a as u,o as d,r as f,t as p}from"./card.js";var m=a(),h=i();function g(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 _(e){return e>=1?`${e.toFixed(1)}Gi`:`${Math.round(e*1024)}Mi`}function v(e){let t=Math.floor(Date.now()/1e3-e);if(t<60)return`${t}s`;let n=Math.floor(t/60);if(n<60)return`${n}m`;let r=Math.floor(n/60);return r<24?`${r}h ${n%60}m`:`${Math.floor(r/24)}d ${r%24}h`}function y(){let t=(0,m.c)(31),{isAdmin:i}=n(),a;t[0]===i?a=t[1]:(a={...c,enabled:i,refetchInterval:5e3},t[0]=i,t[1]=a);let{data:l}=e(a),g;t[2]===i?g=t[3]:(g={...s,enabled:i,refetchInterval:5e3},t[2]=i,t[3]=g);let{data:_}=e(g);if(!i)throw r({to:`/`});let v,y,T;if(t[4]!==l?.nodes||t[5]!==_?.vms){v=l?.nodes??[];let e;t[9]===_?.vms?e=t[10]:(e=_?.vms??[],t[9]=_?.vms,t[10]=e);let n;t[11]===e?n=t[12]:(n=e.filter(C),t[11]=e,t[12]=n),T=n;let r=new Map;for(let e of v)for(let t of e.instance_types??[]){let e=r.get(t.name);e?e.available+=t.available:r.set(t.name,{vcpu:t.vcpu,memory_gb:t.memory_gb,available:t.available})}y=[...r.entries()].map(S).toSorted(x),t[4]=l?.nodes,t[5]=_?.vms,t[6]=v,t[7]=y,t[8]=T}else v=t[6],y=t[7],T=t[8];let E=y,O;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,h.jsx)(o,{title:`Nodes`}),t[13]=O):O=t[13];let A;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`Cluster Nodes`})}),t[14]=A):A=t[14];let M;t[15]===v?M=t[16]:(M=(0,h.jsxs)(p,{children:[A,(0,h.jsx)(f,{children:v.length===0?(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No nodes responding`}):(0,h.jsx)(w,{nodes:v})})]}),t[15]=v,t[16]=M);let N;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`Elastic Compute Cloud (EC2)`})}),t[17]=N):N=t[17];let P;t[18]===T?P=t[19]:(P=(0,h.jsxs)(p,{children:[N,(0,h.jsx)(f,{children:T.length===0?(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances running`}):(0,h.jsx)(D,{vms:T})})]}),t[18]=T,t[19]=P);let I;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`Resource Usage`})}),t[20]=I):I=t[20];let L;t[21]!==E||t[22]!==v?(L=(0,h.jsxs)(p,{children:[I,(0,h.jsx)(f,{className:`space-y-4`,children:v.length===0?(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(k,{nodes:v}),E.length>0&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(`h4`,{className:`mt-4 text-xs font-medium text-muted-foreground`,children:`Instance Type Capacity`}),(0,h.jsx)(j,{instanceTypes:E})]})]})})]}),t[21]=E,t[22]=v,t[23]=L):L=t[23];let R;t[24]===v?R=t[25]:(R=v.some(b)&&(0,h.jsxs)(p,{children:[(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`GPU Inventory`})}),(0,h.jsx)(f,{children:(0,h.jsx)(F,{nodes:v})})]}),t[24]=v,t[25]=R);let z;return t[26]!==R||t[27]!==M||t[28]!==P||t[29]!==L?(z=(0,h.jsxs)(h.Fragment,{children:[O,(0,h.jsxs)(`div`,{className:`space-y-6`,children:[M,P,L,R]})]}),t[26]=R,t[27]=M,t[28]=P,t[29]=L,t[30]=z):z=t[30],z}function b(e){return(e.gpus?.length??0)>0}function x(e,t){return e.name.localeCompare(t.name)}function S(e){let[t,n]=e;return{name:t,...n}}function C(e){return!e.managed_by}function w(e){let t=(0,m.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,h.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(T),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function T(e){let t=[e.nats_role?`nats:${e.nats_role}`:null,e.predastore_role?`predastore:${e.predastore_role}`:null].filter(Boolean).join(`,`);return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,h.jsx)(l,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono text-muted-foreground`,children:t||`-`}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:g(e.uptime)}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,h.jsx)(`td`,{className:`py-1.5`,children:(0,h.jsx)(`span`,{className:`text-muted-foreground`,children:e.services?.join(`,`)??`-`})})]},e.node)}function E(e){return e?e.profile?`${t(e.vram_mib)} (${e.profile})`:`${e.model} ${t(e.vram_mib)}`:`-`}function D(e){let t=(0,m.c)(5),{vms:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Type`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Memory`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`GPU`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`Age`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(O),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function O(e){return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_id}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,h.jsx)(l,{variant:e.status===`running`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_type}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:_(e.memory_gb)}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:E(e.gpu)}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.node}),(0,h.jsx)(`td`,{className:`py-1.5`,children:e.launch_time>0?v(e.launch_time):`-`})]},e.instance_id)}function k(e){let t=(0,m.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`CPU (used/total)`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`MEM (used/total)`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`GPU (used/total)`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`EC2`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(A),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function A(e){return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,h.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[e.alloc_vcpu,`/`,e.total_vcpu]}),(0,h.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[_(e.alloc_mem_gb),`/`,_(e.total_mem_gb)]}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.total_gpus>0?`${e.alloc_gpus}/${e.total_gpus}`:`-`}),(0,h.jsx)(`td`,{className:`py-1.5`,children:e.vm_count})]},e.node)}function j(e){let t=(0,m.c)(5),{instanceTypes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance Type`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Available`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`Memory`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(M),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function M(e){return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.name}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.available}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,h.jsx)(`td`,{className:`py-1.5`,children:_(e.memory_gb)})]},e.name)}function N(e){let n=(0,m.c)(22),{gpu:r}=e,i;n[0]===r.model?i=n[1]:(i=(0,h.jsx)(`span`,{className:`font-medium`,children:r.model}),n[0]=r.model,n[1]=i);let a;n[2]===r.vram_mib?a=n[3]:(a=t(r.vram_mib),n[2]=r.vram_mib,n[3]=a);let o;n[4]===a?o=n[5]:(o=(0,h.jsx)(`span`,{className:`text-muted-foreground`,children:a}),n[4]=a,n[5]=o);let s;n[6]===r.pci_address?s=n[7]:(s=(0,h.jsx)(`span`,{className:`text-muted-foreground`,children:r.pci_address}),n[6]=r.pci_address,n[7]=s);let c;n[8]!==r.instance_id||n[9]!==r.mig_enabled?(c=r.mig_enabled?(0,h.jsx)(l,{className:`text-[0.625rem]`,variant:`secondary`,children:`MIG`}):(0,h.jsx)(`span`,{className:r.instance_id?`text-amber-500`:`text-green-600`,children:r.instance_id?`in-use: ${r.instance_id}`:`free`}),n[8]=r.instance_id,n[9]=r.mig_enabled,n[10]=c):c=n[10];let u;n[11]!==i||n[12]!==o||n[13]!==s||n[14]!==c?(u=(0,h.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 font-mono`,children:[i,o,s,c]}),n[11]=i,n[12]=o,n[13]=s,n[14]=c,n[15]=u):u=n[15];let d;n[16]!==r.mig_enabled||n[17]!==r.slices?(d=r.mig_enabled&&r.slices&&r.slices.length>0&&(0,h.jsxs)(`table`,{className:`mt-2 w-full`,children:[(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-0.5 font-normal`,children:`GI`}),(0,h.jsx)(`th`,{className:`pr-4 pb-0.5 font-normal`,children:`Profile`}),(0,h.jsx)(`th`,{className:`pr-4 pb-0.5 font-normal`,children:`VRAM`}),(0,h.jsx)(`th`,{className:`pb-0.5 font-normal`,children:`Instance`})]})}),(0,h.jsx)(`tbody`,{children:r.slices.map(P)})]}),n[16]=r.mig_enabled,n[17]=r.slices,n[18]=d):d=n[18];let f;return n[19]!==u||n[20]!==d?(f=(0,h.jsxs)(`div`,{className:`rounded border p-2 text-xs`,children:[u,d]}),n[19]=u,n[20]=d,n[21]=f):f=n[21],f}function P(e){return(0,h.jsxs)(`tr`,{children:[(0,h.jsx)(`td`,{className:`py-0.5 pr-4 font-mono`,children:e.gi_id}),(0,h.jsx)(`td`,{className:`py-0.5 pr-4 font-mono`,children:e.profile}),(0,h.jsx)(`td`,{className:`py-0.5 pr-4`,children:t(e.vram_mib)}),(0,h.jsx)(`td`,{className:e.instance_id?`py-0.5 font-mono text-amber-500`:`py-0.5 text-green-600`,children:e.instance_id??`free`})]},e.gi_id)}function F(e){let t=(0,m.c)(6),{nodes:n}=e,r,i;if(t[0]!==n){let e=n.filter(R);r=`space-y-4`,i=e.map(I),t[0]=n,t[1]=r,t[2]=i}else r=t[1],i=t[2];let a;return t[3]!==r||t[4]!==i?(a=(0,h.jsx)(`div`,{className:r,children:i}),t[3]=r,t[4]=i,t[5]=a):a=t[5],a}function I(e){return(0,h.jsxs)(`div`,{children:[(0,h.jsx)(`h4`,{className:`mb-1.5 text-xs font-medium text-muted-foreground`,children:e.node}),(0,h.jsx)(`div`,{className:`space-y-2`,children:e.gpus?.map(L)})]},e.node)}function L(e){return(0,h.jsx)(N,{gpu:e},e.pci_address)}function R(e){return(e.gpus?.length??0)>0}export{y as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/page-heading.js b/spinifex/services/spinifexui/frontend/dist/assets/page-heading.js index 7cdafe49d..15a67f4fc 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/page-heading.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/page-heading.js @@ -1 +1 @@ -import{fs as e,ys as t}from"./index.js";var n=e(),r=t();function i(e){let t=(0,n.c)(12),{title:i,subtitle:a,actions:o}=e,s;t[0]===i?s=t[1]:(s=(0,r.jsx)(`h1`,{className:`text-3xl`,children:i}),t[0]=i,t[1]=s);let c;t[2]===a?c=t[3]:(c=a&&(0,r.jsx)(`p`,{className:`mt-1 text-muted-foreground`,children:a}),t[2]=a,t[3]=c);let l;t[4]!==s||t[5]!==c?(l=(0,r.jsxs)(`div`,{children:[s,c]}),t[4]=s,t[5]=c,t[6]=l):l=t[6];let u;t[7]===o?u=t[8]:(u=o&&(0,r.jsx)(`div`,{children:o}),t[7]=o,t[8]=u);let d;return t[9]!==l||t[10]!==u?(d=(0,r.jsxs)(`div`,{className:`mb-6 flex items-start justify-between`,children:[l,u]}),t[9]=l,t[10]=u,t[11]=d):d=t[11],d}export{i as t}; \ No newline at end of file +import{bs as e,ps as t}from"./index.js";var n=t(),r=e();function i(e){let t=(0,n.c)(12),{title:i,subtitle:a,actions:o}=e,s;t[0]===i?s=t[1]:(s=(0,r.jsx)(`h1`,{className:`text-3xl`,children:i}),t[0]=i,t[1]=s);let c;t[2]===a?c=t[3]:(c=a&&(0,r.jsx)(`p`,{className:`mt-1 text-muted-foreground`,children:a}),t[2]=a,t[3]=c);let l;t[4]!==s||t[5]!==c?(l=(0,r.jsxs)(`div`,{children:[s,c]}),t[4]=s,t[5]=c,t[6]=l):l=t[6];let u;t[7]===o?u=t[8]:(u=o&&(0,r.jsx)(`div`,{children:o}),t[7]=o,t[8]=u);let d;return t[9]!==l||t[10]!==u?(d=(0,r.jsxs)(`div`,{className:`mb-6 flex items-start justify-between`,children:[l,u]}),t[9]=l,t[10]=u,t[11]=d):d=t[11],d}export{i as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/plus.js b/spinifex/services/spinifexui/frontend/dist/assets/plus.js index d5abc903d..361252536 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/plus.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/plus.js @@ -1 +1 @@ -import{ts as e}from"./index.js";var t=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t}; \ No newline at end of file +import{ns as e}from"./index.js";var t=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/policy-document-viewer.js b/spinifex/services/spinifexui/frontend/dist/assets/policy-document-viewer.js index cb7b55122..0dc435460 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/policy-document-viewer.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/policy-document-viewer.js @@ -1 +1 @@ -import{fs as e,ys as t}from"./index.js";var n=e(),r=t();function i(e){let t=(0,n.c)(4),{document:i}=e,a;try{let e;t[0]===i?e=t[1]:(e=JSON.stringify(JSON.parse(i),null,2),t[0]=i,t[1]=e),a=e}catch{a=i}let o;return t[2]===a?o=t[3]:(o=(0,r.jsx)(`pre`,{className:`overflow-auto rounded-md border bg-muted p-4 font-mono text-sm`,children:a}),t[2]=a,t[3]=o),o}export{i as t}; \ No newline at end of file +import{bs as e,ps as t}from"./index.js";var n=t(),r=e();function i(e){let t=(0,n.c)(4),{document:i}=e,a;try{let e;t[0]===i?e=t[1]:(e=JSON.stringify(JSON.parse(i),null,2),t[0]=i,t[1]=e),a=e}catch{a=i}let o;return t[2]===a?o=t[3]:(o=(0,r.jsx)(`pre`,{className:`overflow-auto rounded-md border bg-muted p-4 font-mono text-sm`,children:a}),t[2]=a,t[3]=o),o}export{i as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/route.js b/spinifex/services/spinifexui/frontend/dist/assets/route.js index 191055d5b..2b8ab570e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/route.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/route.js @@ -1 +1 @@ -import{fs as e,ps as t,ys as n}from"./index.js";var r=e(),i=n(),a=()=>{let e=(0,r.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,i.jsx)(t,{}),e[0]=n):n=e[0],n};export{a as component}; \ No newline at end of file +import{bs as e,ms as t,ps as n}from"./index.js";var r=n(),i=e(),a=()=>{let e=(0,r.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,i.jsx)(t,{}),e[0]=n):n=e[0],n};export{a as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/route2.js b/spinifex/services/spinifexui/frontend/dist/assets/route2.js index 191055d5b..2b8ab570e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/route2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/route2.js @@ -1 +1 @@ -import{fs as e,ps as t,ys as n}from"./index.js";var r=e(),i=n(),a=()=>{let e=(0,r.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,i.jsx)(t,{}),e[0]=n):n=e[0],n};export{a as component}; \ No newline at end of file +import{bs as e,ms as t,ps as n}from"./index.js";var r=n(),i=e(),a=()=>{let e=(0,r.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,i.jsx)(t,{}),e[0]=n):n=e[0],n};export{a as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js b/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js index 360bfe4d9..a3a06d47f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js @@ -1,16 +1,16 @@ -import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./chevron-down.js";import{a as i,c as a,i as o,n as s,o as c,r as l,s as u,t as d}from"./select.js";import{t as f}from"./cli-command-panel.js";import{d as ee}from"./ec2.js";import{Da as p,Do as m,Et as h,Fo as g,St as _,bs as v,hs as y,it as te,lt as b,nt as x,pt as ne,vt as S,ys as C,zs as w}from"./index.js";import{i as re,n as T,t as E}from"./zod.js";import{t as D}from"./page-heading.js";import{a as O,n as k,r as A,t as j}from"./field.js";import{i as ie,t as ae,v as oe}from"./ec22.js";import{n as se,r as ce,t as le}from"./collapsible.js";var ue=w(v()),M=C(),N=`/dev/sda1`,de=`gp3`,fe=1,pe=16384;function me(){let v=y(),{data:C}=t(x),{data:w}=t(b),{data:N}=t(te),{data:me}=t(_),{data:ge}=t(ne),{data:_e}=t(h),{data:ve}=t(S),F=ee(),I=C.Images??[],ye=w.KeyPairs??[],be=me.Subnets??[],xe=ge.PlacementGroups??[],Se=_e.Vpcs??[],L=ve.SecurityGroups??[],Ce=(Se.find(e=>e.IsDefault)??Se[0])?.VpcId,we=oe(L.map(e=>e.GroupName??``)),R={},z=new Map;for(let e of N.InstanceTypes??[]){let t=e.InstanceType;if(t&&(R[t]=(R[t]??0)+1,!z.has(t))){let n=e.GpuInfo?.Gpus;n&&n.length>0&&z.set(t,{totalMiB:e.GpuInfo?.TotalGpuMemoryInMiB??0,gpuName:n[0]?.Name??``})}}let B=Object.keys(R).toSorted(),V=B.filter(e=>z.has(e)),H=B.filter(e=>!z.has(e)),Te=I[0]?.ImageId,Ee=ye[0]?.KeyName,De=B.find(e=>e.endsWith(`.nano`))??B[0],Oe=P(I.find(e=>e.ImageId===Te)),{control:U,handleSubmit:ke,register:W,setValue:G,getValues:Ae,watch:K,formState:{errors:q,isSubmitting:J}}=re({resolver:E(ie.refine(e=>e.count<=(R[e.instanceType]??1),{message:`Cannot exceed available capacity`,path:[`count`]}).superRefine((e,t)=>{let n=P(I.find(t=>t.ImageId===e.imageId)).snapshotSize;e.rootVolumeSize!==void 0&&n!==void 0&&e.rootVolumeSizee.ImageId===Z)),Me=K(`subnetId`),Ne=K(`securityGroupMode`),Pe=K(`ruleSource`),Fe=K(`securityGroupIds`)??[],$=be.find(e=>e.SubnetId===Me)?.VpcId??Ce,Ie=$?L.filter(e=>e.VpcId===$):L,Le=e=>{let t=Ae(`securityGroupIds`)??[];G(`securityGroupIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e],{shouldValidate:!0})};return(0,ue.useEffect)(()=>{G(`rootDeviceName`,Q.deviceName)},[Z,Q.deviceName,G]),(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(n,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,M.jsx)(D,{title:`Run Instances`}),B.length===0&&(0,M.jsx)(e,{msg:`No compute available. No new instances can be created until compute is available.`}),F.error&&(0,M.jsx)(e,{error:F.error,msg:`Failed to create instance`}),(0,M.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:ke(async e=>{await F.mutateAsync({...e,resolvedVpcId:$}),v({to:`/ec2/describe-instances`})}),children:[(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`imageId`,children:`Image`})}),(0,M.jsx)(T,{control:U,name:`imageId`,render:({field:e})=>{let t=I.find(t=>t.ImageId===e.value);return(0,M.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,M.jsx)(u,{"aria-invalid":!!q.imageId,className:`w-full`,id:`imageId`,children:(0,M.jsx)(a,{children:t?`${t.Name??`Unnamed`} (${t.Architecture})`:``})}),(0,M.jsx)(s,{children:I.map(e=>(0,M.jsxs)(o,{value:e.ImageId??``,children:[e.Name??`Unnamed`,` (`,e.Architecture,`)`]},e.ImageId))})]})}}),(0,M.jsx)(A,{errors:[q.imageId]})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,M.jsx)(T,{control:U,name:`instanceType`,render:({field:e})=>(0,M.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,M.jsx)(u,{"aria-invalid":!!q.instanceType,className:`w-full`,id:`instanceType`,children:(0,M.jsx)(a,{})}),(0,M.jsxs)(s,{children:[H.length>0&&(0,M.jsxs)(l,{children:[V.length>0&&(0,M.jsx)(i,{children:`Standard`}),H.map(e=>(0,M.jsxs)(o,{value:e,children:[e,` (`,R[e],` available)`]},e))]}),V.length>0&&H.length>0&&(0,M.jsx)(c,{}),V.length>0&&(0,M.jsxs)(l,{children:[(0,M.jsx)(i,{children:`GPU-Accelerated`}),V.map(e=>{let t=z.get(e);return(0,M.jsxs)(o,{value:e,children:[e,t?` — ${g(t.totalMiB)}`:``,` (`,R[e],` available)`]},e)})]})]})]})}),X&&(0,M.jsxs)(k,{children:[`GPU: `,X.gpuName,` ·`,` `,g(X.totalMiB),` VRAM`]}),(0,M.jsx)(A,{errors:[q.instanceType]})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair`})}),(0,M.jsx)(T,{control:U,name:`keyName`,render:({field:e})=>(0,M.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,M.jsx)(u,{"aria-invalid":!!q.keyName,className:`w-full`,id:`keyName`,children:(0,M.jsx)(a,{})}),(0,M.jsx)(s,{children:ye.map(e=>(0,M.jsx)(o,{value:e.KeyName??``,children:e.KeyName},e.KeyPairId))})]})}),(0,M.jsx)(A,{errors:[q.keyName]})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`subnetId`,children:`Subnet`})}),(0,M.jsx)(T,{control:U,name:`subnetId`,render:({field:e})=>(0,M.jsxs)(d,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,M.jsx)(u,{className:`w-full`,id:`subnetId`,children:(0,M.jsx)(a,{})}),(0,M.jsxs)(s,{children:[(0,M.jsx)(o,{value:`none`,children:`none`}),be.map(e=>(0,M.jsx)(o,{value:e.SubnetId??``,children:e.SubnetId},e.SubnetId))]})]})})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:`Security Group`}),(0,M.jsx)(k,{children:$?`Applies to VPC ${$}`:`No VPC resolved — select a subnet`}),(0,M.jsx)(T,{control:U,name:`securityGroupMode`,render:({field:e})=>(0,M.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,M.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,M.jsx)(`input`,{"aria-label":`Create new security group`,checked:e.value===`create`,onChange:()=>e.onChange(`create`),type:`radio`}),`Create new`]}),(0,M.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,M.jsx)(`input`,{"aria-label":`Select existing security group`,checked:e.value===`existing`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Select existing`]})]})}),Ne===`create`?(0,M.jsxs)(`div`,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`newSgName`,children:`Name`})}),(0,M.jsx)(p,{"aria-invalid":!!q.newSgName,id:`newSgName`,type:`text`,...W(`newSgName`)}),(0,M.jsx)(A,{errors:[q.newSgName]})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`newSgDescription`,children:`Description`})}),(0,M.jsx)(p,{id:`newSgDescription`,type:`text`,...W(`newSgDescription`)})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:`Inbound rules`}),(0,M.jsxs)(`div`,{className:`space-y-1`,children:[(0,M.jsx)(T,{control:U,name:`allowSsh`,render:({field:e})=>(0,M.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,M.jsx)(`input`,{"aria-label":`Allow SSH`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow SSH (tcp/22)`]})}),(0,M.jsx)(T,{control:U,name:`allowHttp`,render:({field:e})=>(0,M.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,M.jsx)(`input`,{"aria-label":`Allow HTTP`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow HTTP (tcp/80)`]})}),(0,M.jsx)(T,{control:U,name:`allowHttps`,render:({field:e})=>(0,M.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,M.jsx)(`input`,{"aria-label":`Allow HTTPS`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow HTTPS (tcp/443)`]})})]})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:`Source`}),(0,M.jsx)(T,{control:U,name:`ruleSource`,render:({field:e})=>(0,M.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,M.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,M.jsx)(`input`,{"aria-label":`Source anywhere`,checked:e.value===`anywhere`,onChange:()=>e.onChange(`anywhere`),type:`radio`}),`Anywhere (0.0.0.0/0)`]}),(0,M.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,M.jsx)(`input`,{"aria-label":`Source custom CIDR`,checked:e.value===`custom`,onChange:()=>e.onChange(`custom`),type:`radio`}),`Custom CIDR`]})]})}),Pe===`custom`&&(0,M.jsxs)(`div`,{className:`mt-2`,children:[(0,M.jsx)(p,{"aria-invalid":!!q.customCidr,placeholder:`203.0.113.0/24`,type:`text`,...W(`customCidr`)}),(0,M.jsx)(A,{errors:[q.customCidr]})]})]})]}):(0,M.jsxs)(`div`,{className:`mt-3`,children:[Ie.length===0?(0,M.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the resolved VPC.`}):(0,M.jsx)(`div`,{className:`space-y-1`,children:Ie.map(e=>(0,M.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,M.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:Fe.includes(e.GroupId??``),onChange:()=>Le(e.GroupId??``),type:`checkbox`}),(0,M.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))}),(0,M.jsx)(A,{errors:[q.securityGroupIds]})]})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`placementGroupName`,children:`Placement Group`})}),(0,M.jsx)(T,{control:U,name:`placementGroupName`,render:({field:e})=>(0,M.jsxs)(d,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,M.jsx)(u,{className:`w-full`,id:`placementGroupName`,children:(0,M.jsx)(a,{})}),(0,M.jsxs)(s,{children:[(0,M.jsx)(o,{value:`none`,children:`none`}),xe.map(e=>(0,M.jsxs)(o,{value:e.GroupName??``,children:[e.GroupName,` (`,e.Strategy,`)`]},e.GroupId))]})]})})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`count`,children:`Number of Instances`})}),(0,M.jsx)(p,{"aria-describedby":`count-description`,"aria-invalid":!!q.count,id:`count`,type:`number`,...W(`count`,{valueAsNumber:!0})}),(0,M.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`count-description`,children:Y&&`Available capacity for ${Y}: ${je}`}),(0,M.jsx)(A,{errors:[q.count]})]}),(0,M.jsxs)(le,{children:[(0,M.jsxs)(ce,{className:`group flex h-7 w-full items-center justify-between rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none hover:bg-input/40 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 md:text-xs/relaxed dark:bg-input/30 dark:hover:bg-input/50`,render:(0,M.jsx)(`button`,{"aria-label":`Block Device Mappings (root volume)`,type:`button`}),children:[(0,M.jsx)(`span`,{children:`Block Device Mappings (root volume)`}),(0,M.jsx)(r,{className:`size-3.5 text-muted-foreground transition-transform group-data-[panel-open]:rotate-180`})]}),(0,M.jsxs)(se,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`rootDeviceName`,children:`Device Name`})}),(0,M.jsx)(p,{"aria-invalid":!!q.rootDeviceName,id:`rootDeviceName`,type:`text`,...W(`rootDeviceName`)}),(0,M.jsx)(A,{errors:[q.rootDeviceName]})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`rootVolumeSize`,children:`Volume Size (GiB)`})}),(0,M.jsx)(p,{"aria-invalid":!!q.rootVolumeSize,id:`rootVolumeSize`,max:pe,min:Q.snapshotSize??fe,placeholder:Q.snapshotSize?`${Q.snapshotSize} (AMI default)`:`use AMI / backend default`,type:`number`,...W(`rootVolumeSize`,{setValueAs:e=>e===``||e==null?void 0:Number(e)})}),Q.snapshotSize!==void 0&&(0,M.jsxs)(k,{children:[`AMI snapshot size: `,Q.snapshotSize,` GiB`]}),(0,M.jsx)(A,{errors:[q.rootVolumeSize]})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`rootVolumeType`,children:`Volume Type`})}),(0,M.jsx)(T,{control:U,name:`rootVolumeType`,render:({field:e})=>(0,M.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value??de,children:[(0,M.jsx)(u,{"aria-invalid":!!q.rootVolumeType,className:`w-full`,id:`rootVolumeType`,children:(0,M.jsx)(a,{})}),(0,M.jsx)(s,{children:ae.map(e=>(0,M.jsx)(o,{value:e,children:e},e))})]})}),(0,M.jsx)(A,{errors:[q.rootVolumeType]})]}),(0,M.jsx)(j,{children:(0,M.jsx)(T,{control:U,name:`rootDeleteOnTermination`,render:({field:e})=>(0,M.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,M.jsx)(`input`,{"aria-label":`Delete on termination`,checked:e.value??!0,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Delete on termination`]})})})]})]}),(0,M.jsx)(f,{commands:he(K,$)}),(0,M.jsxs)(`div`,{className:`flex gap-2`,children:[(0,M.jsx)(m,{disabled:J||F.isPending,onClick:async()=>await v({to:`/ec2/describe-instances`}),type:`button`,variant:`outline`,children:`Cancel`}),(0,M.jsx)(m,{disabled:J||F.isPending||B.length===0,type:`submit`,children:J||F.isPending?`Creating…`:`Create Instance`})]})]})]})}function P(e){let t=e?.RootDeviceName??N,n=e?.BlockDeviceMappings??[];return{deviceName:t,snapshotSize:(n.find(e=>e.DeviceName===t)??n[0])?.Ebs?.VolumeSize}}function he(e,t){let n=e(`imageId`),r=typeof n==`string`?n:``,i=e(`instanceType`),a=typeof i==`string`?i:``,o=e(`keyName`),s=typeof o==`string`?o:``,c=e(`subnetId`),l=typeof c==`string`?c:``,u=e(`placementGroupName`),d=typeof u==`string`?u:``,f=e(`count`),ee=typeof f==`number`?f:0,p=e(`rootDeviceName`),m=typeof p==`string`?p:``,h=e(`rootVolumeSize`),g=typeof h==`number`?h:void 0,_=e(`rootVolumeType`),v=typeof _==`string`?_:``,y=e(`rootDeleteOnTermination`),te=typeof y==`boolean`?y:!0,b=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 run-instances`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./chevron-down.js";import{a as i,c as a,i as o,n as s,o as c,r as l,s as u,t as d}from"./select.js";import{t as f}from"./cli-command-panel.js";import{d as ee}from"./ec2.js";import{Bs as p,Et as te,Io as m,Oa as h,Oo as g,St as _,bs as v,gs as y,it as b,lt as x,nt as ne,pt as S,vt as re,xs as C}from"./index.js";import{i as w,n as T,t as ie}from"./zod.js";import{t as E}from"./page-heading.js";import{a as D,n as O,r as k,t as A}from"./field.js";import{i as ae,t as oe,v as se}from"./ec22.js";import{n as ce,r as le,t as ue}from"./collapsible.js";var de=p(C()),j=v(),M=`/dev/sda1`,fe=`gp3`,pe=1,me=16384;function he(){let p=y(),{data:v}=t(ne),{data:C}=t(x),{data:M}=t(b),{data:he}=t(_),{data:_e}=t(S),{data:ve}=t(te),{data:ye}=t(re),P=ee(),F=v.Images??[],be=C.KeyPairs??[],xe=he.Subnets??[],Se=_e.PlacementGroups??[],Ce=ve.Vpcs??[],I=ye.SecurityGroups??[],we=(Ce.find(e=>e.IsDefault)??Ce[0])?.VpcId,Te=se(I.map(e=>e.GroupName??``)),L={},R=new Map;for(let e of M.InstanceTypes??[]){let t=e.InstanceType;if(t&&(L[t]=(L[t]??0)+1,!R.has(t))){let n=e.GpuInfo?.Gpus;n&&n.length>0&&R.set(t,{totalMiB:e.GpuInfo?.TotalGpuMemoryInMiB??0,gpuName:n[0]?.Name??``})}}let z=Object.keys(L).toSorted(),B=z.filter(e=>R.has(e)),V=z.filter(e=>!R.has(e)),Ee=F[0]?.ImageId,De=be[0]?.KeyName,Oe=z.find(e=>e.endsWith(`.nano`))??z[0],ke=N(F.find(e=>e.ImageId===Ee)),{control:H,handleSubmit:Ae,register:U,setValue:W,getValues:je,watch:G,formState:{errors:K,isSubmitting:q}}=w({resolver:ie(ae.refine(e=>e.count<=(L[e.instanceType]??1),{message:`Cannot exceed available capacity`,path:[`count`]}).superRefine((e,t)=>{let n=N(F.find(t=>t.ImageId===e.imageId)).snapshotSize;e.rootVolumeSize!==void 0&&n!==void 0&&e.rootVolumeSizee.ImageId===X)),Ne=G(`subnetId`),Pe=G(`securityGroupMode`),Fe=G(`ruleSource`),Ie=G(`securityGroupIds`)??[],Q=xe.find(e=>e.SubnetId===Ne)?.VpcId??we,$=Q?I.filter(e=>e.VpcId===Q):I,Le=e=>{let t=je(`securityGroupIds`)??[];W(`securityGroupIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e],{shouldValidate:!0})};return(0,de.useEffect)(()=>{W(`rootDeviceName`,Z.deviceName)},[X,Z.deviceName,W]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(n,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,j.jsx)(E,{title:`Run Instances`}),z.length===0&&(0,j.jsx)(e,{msg:`No compute available. No new instances can be created until compute is available.`}),P.error&&(0,j.jsx)(e,{error:P.error,msg:`Failed to create instance`}),(0,j.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:Ae(async e=>{await P.mutateAsync({...e,resolvedVpcId:Q}),p({to:`/ec2/describe-instances`})}),children:[(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`imageId`,children:`Image`})}),(0,j.jsx)(T,{control:H,name:`imageId`,render:({field:e})=>{let t=F.find(t=>t.ImageId===e.value);return(0,j.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,j.jsx)(u,{"aria-invalid":!!K.imageId,className:`w-full`,id:`imageId`,children:(0,j.jsx)(a,{children:t?`${t.Name??`Unnamed`} (${t.Architecture})`:``})}),(0,j.jsx)(s,{children:F.map(e=>(0,j.jsxs)(o,{value:e.ImageId??``,children:[e.Name??`Unnamed`,` (`,e.Architecture,`)`]},e.ImageId))})]})}}),(0,j.jsx)(k,{errors:[K.imageId]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,j.jsx)(T,{control:H,name:`instanceType`,render:({field:e})=>(0,j.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,j.jsx)(u,{"aria-invalid":!!K.instanceType,className:`w-full`,id:`instanceType`,children:(0,j.jsx)(a,{})}),(0,j.jsxs)(s,{children:[V.length>0&&(0,j.jsxs)(l,{children:[B.length>0&&(0,j.jsx)(i,{children:`Standard`}),V.map(e=>(0,j.jsxs)(o,{value:e,children:[e,` (`,L[e],` available)`]},e))]}),B.length>0&&V.length>0&&(0,j.jsx)(c,{}),B.length>0&&(0,j.jsxs)(l,{children:[(0,j.jsx)(i,{children:`GPU-Accelerated`}),B.map(e=>{let t=R.get(e);return(0,j.jsxs)(o,{value:e,children:[e,t?` — ${m(t.totalMiB)}`:``,` (`,L[e],` available)`]},e)})]})]})]})}),Y&&(0,j.jsxs)(O,{children:[`GPU: `,Y.gpuName,` ·`,` `,m(Y.totalMiB),` VRAM`]}),(0,j.jsx)(k,{errors:[K.instanceType]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair`})}),(0,j.jsx)(T,{control:H,name:`keyName`,render:({field:e})=>(0,j.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,j.jsx)(u,{"aria-invalid":!!K.keyName,className:`w-full`,id:`keyName`,children:(0,j.jsx)(a,{})}),(0,j.jsx)(s,{children:be.map(e=>(0,j.jsx)(o,{value:e.KeyName??``,children:e.KeyName},e.KeyPairId))})]})}),(0,j.jsx)(k,{errors:[K.keyName]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`subnetId`,children:`Subnet`})}),(0,j.jsx)(T,{control:H,name:`subnetId`,render:({field:e})=>(0,j.jsxs)(d,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,j.jsx)(u,{className:`w-full`,id:`subnetId`,children:(0,j.jsx)(a,{})}),(0,j.jsxs)(s,{children:[(0,j.jsx)(o,{value:`none`,children:`none`}),xe.map(e=>(0,j.jsx)(o,{value:e.SubnetId??``,children:e.SubnetId},e.SubnetId))]})]})})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:`Security Group`}),(0,j.jsx)(O,{children:Q?`Applies to VPC ${Q}`:`No VPC resolved — select a subnet`}),(0,j.jsx)(T,{control:H,name:`securityGroupMode`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`input`,{"aria-label":`Create new security group`,checked:e.value===`create`,onChange:()=>e.onChange(`create`),type:`radio`}),`Create new`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`input`,{"aria-label":`Select existing security group`,checked:e.value===`existing`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Select existing`]})]})}),Pe===`create`?(0,j.jsxs)(`div`,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`newSgName`,children:`Name`})}),(0,j.jsx)(h,{"aria-invalid":!!K.newSgName,id:`newSgName`,type:`text`,...U(`newSgName`)}),(0,j.jsx)(k,{errors:[K.newSgName]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`newSgDescription`,children:`Description`})}),(0,j.jsx)(h,{id:`newSgDescription`,type:`text`,...U(`newSgDescription`)})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:`Inbound rules`}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(T,{control:H,name:`allowSsh`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`input`,{"aria-label":`Allow SSH`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow SSH (tcp/22)`]})}),(0,j.jsx)(T,{control:H,name:`allowHttp`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`input`,{"aria-label":`Allow HTTP`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow HTTP (tcp/80)`]})}),(0,j.jsx)(T,{control:H,name:`allowHttps`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`input`,{"aria-label":`Allow HTTPS`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow HTTPS (tcp/443)`]})})]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:`Source`}),(0,j.jsx)(T,{control:H,name:`ruleSource`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`input`,{"aria-label":`Source anywhere`,checked:e.value===`anywhere`,onChange:()=>e.onChange(`anywhere`),type:`radio`}),`Anywhere (0.0.0.0/0)`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`input`,{"aria-label":`Source custom CIDR`,checked:e.value===`custom`,onChange:()=>e.onChange(`custom`),type:`radio`}),`Custom CIDR`]})]})}),Fe===`custom`&&(0,j.jsxs)(`div`,{className:`mt-2`,children:[(0,j.jsx)(h,{"aria-invalid":!!K.customCidr,placeholder:`203.0.113.0/24`,type:`text`,...U(`customCidr`)}),(0,j.jsx)(k,{errors:[K.customCidr]})]})]})]}):(0,j.jsxs)(`div`,{className:`mt-3`,children:[$.length===0?(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the resolved VPC.`}):(0,j.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:Ie.includes(e.GroupId??``),onChange:()=>Le(e.GroupId??``),type:`checkbox`}),(0,j.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))}),(0,j.jsx)(k,{errors:[K.securityGroupIds]})]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`placementGroupName`,children:`Placement Group`})}),(0,j.jsx)(T,{control:H,name:`placementGroupName`,render:({field:e})=>(0,j.jsxs)(d,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,j.jsx)(u,{className:`w-full`,id:`placementGroupName`,children:(0,j.jsx)(a,{})}),(0,j.jsxs)(s,{children:[(0,j.jsx)(o,{value:`none`,children:`none`}),Se.map(e=>(0,j.jsxs)(o,{value:e.GroupName??``,children:[e.GroupName,` (`,e.Strategy,`)`]},e.GroupId))]})]})})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`count`,children:`Number of Instances`})}),(0,j.jsx)(h,{"aria-describedby":`count-description`,"aria-invalid":!!K.count,id:`count`,type:`number`,...U(`count`,{valueAsNumber:!0})}),(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`count-description`,children:J&&`Available capacity for ${J}: ${Me}`}),(0,j.jsx)(k,{errors:[K.count]})]}),(0,j.jsxs)(ue,{children:[(0,j.jsxs)(le,{className:`group flex h-7 w-full items-center justify-between rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none hover:bg-input/40 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 md:text-xs/relaxed dark:bg-input/30 dark:hover:bg-input/50`,render:(0,j.jsx)(`button`,{"aria-label":`Block Device Mappings (root volume)`,type:`button`}),children:[(0,j.jsx)(`span`,{children:`Block Device Mappings (root volume)`}),(0,j.jsx)(r,{className:`size-3.5 text-muted-foreground transition-transform group-data-[panel-open]:rotate-180`})]}),(0,j.jsxs)(ce,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`rootDeviceName`,children:`Device Name`})}),(0,j.jsx)(h,{"aria-invalid":!!K.rootDeviceName,id:`rootDeviceName`,type:`text`,...U(`rootDeviceName`)}),(0,j.jsx)(k,{errors:[K.rootDeviceName]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`rootVolumeSize`,children:`Volume Size (GiB)`})}),(0,j.jsx)(h,{"aria-invalid":!!K.rootVolumeSize,id:`rootVolumeSize`,max:me,min:Z.snapshotSize??pe,placeholder:Z.snapshotSize?`${Z.snapshotSize} (AMI default)`:`use AMI / backend default`,type:`number`,...U(`rootVolumeSize`,{setValueAs:e=>e===``||e==null?void 0:Number(e)})}),Z.snapshotSize!==void 0&&(0,j.jsxs)(O,{children:[`AMI snapshot size: `,Z.snapshotSize,` GiB`]}),(0,j.jsx)(k,{errors:[K.rootVolumeSize]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`rootVolumeType`,children:`Volume Type`})}),(0,j.jsx)(T,{control:H,name:`rootVolumeType`,render:({field:e})=>(0,j.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value??fe,children:[(0,j.jsx)(u,{"aria-invalid":!!K.rootVolumeType,className:`w-full`,id:`rootVolumeType`,children:(0,j.jsx)(a,{})}),(0,j.jsx)(s,{children:oe.map(e=>(0,j.jsx)(o,{value:e,children:e},e))})]})}),(0,j.jsx)(k,{errors:[K.rootVolumeType]})]}),(0,j.jsx)(A,{children:(0,j.jsx)(T,{control:H,name:`rootDeleteOnTermination`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`input`,{"aria-label":`Delete on termination`,checked:e.value??!0,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Delete on termination`]})})})]})]}),(0,j.jsx)(f,{commands:ge(G,Q)}),(0,j.jsxs)(`div`,{className:`flex gap-2`,children:[(0,j.jsx)(g,{disabled:q||P.isPending,onClick:async()=>await p({to:`/ec2/describe-instances`}),type:`button`,variant:`outline`,children:`Cancel`}),(0,j.jsx)(g,{disabled:q||P.isPending||z.length===0,type:`submit`,children:q||P.isPending?`Creating…`:`Create Instance`})]})]})]})}function N(e){let t=e?.RootDeviceName??M,n=e?.BlockDeviceMappings??[];return{deviceName:t,snapshotSize:(n.find(e=>e.DeviceName===t)??n[0])?.Ebs?.VolumeSize}}function ge(e,t){let n=e(`imageId`),r=typeof n==`string`?n:``,i=e(`instanceType`),a=typeof i==`string`?i:``,o=e(`keyName`),s=typeof o==`string`?o:``,c=e(`subnetId`),l=typeof c==`string`?c:``,u=e(`placementGroupName`),d=typeof u==`string`?u:``,f=e(`count`),ee=typeof f==`number`?f:0,p=e(`rootDeviceName`),te=typeof p==`string`?p:``,m=e(`rootVolumeSize`),h=typeof m==`number`?m:void 0,g=e(`rootVolumeType`),_=typeof g==`string`?g:``,v=e(`rootDeleteOnTermination`),y=typeof v==`boolean`?v:!0,b=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 run-instances`},{type:`flag`,value:` \\ --image-id`},{type:`value`,value:` ${r||``}`},{type:`flag`,value:` \\ --instance-type`},{type:`value`,value:` ${a||``}`},{type:`flag`,value:` \\ --key-name`},{type:`value`,value:` ${s||``}`}];l&&b.push({type:`flag`,value:` \\ --subnet-id`},{type:`value`,value:` ${l}`}),d&&b.push({type:`flag`,value:` \\ --placement`},{type:`value`,value:` GroupName=${d}`}),b.push({type:`flag`,value:` \\ - --count`},{type:`value`,value:` ${ee||1}`});let x=e(`securityGroupMode`),ne=typeof x==`string`?x:`create`,S=e(`newSgName`),C=typeof S==`string`?S:``,w=e(`newSgDescription`),re=typeof w==`string`?w:``,T=e(`ruleSource`),E=typeof T==`string`?T:`anywhere`,D=e(`customCidr`),O=typeof D==`string`?D:``,k=[];if(ne===`create`){k.push({label:`Create security group`,parts:[{type:`bin`,value:`SG_ID=$(AWS_PROFILE=spinifex aws ec2 create-security-group`},{type:`flag`,value:` \\ - --group-name`},{type:`value`,value:` ${C||``}`},{type:`flag`,value:` \\ - --description`},{type:`value`,value:` '${re||`Created by launch wizard`}'`},{type:`flag`,value:` \\ + --count`},{type:`value`,value:` ${ee||1}`});let x=e(`securityGroupMode`),ne=typeof x==`string`?x:`create`,S=e(`newSgName`),re=typeof S==`string`?S:``,C=e(`newSgDescription`),w=typeof C==`string`?C:``,T=e(`ruleSource`),ie=typeof T==`string`?T:`anywhere`,E=e(`customCidr`),D=typeof E==`string`?E:``,O=[];if(ne===`create`){O.push({label:`Create security group`,parts:[{type:`bin`,value:`SG_ID=$(AWS_PROFILE=spinifex aws ec2 create-security-group`},{type:`flag`,value:` \\ + --group-name`},{type:`value`,value:` ${re||``}`},{type:`flag`,value:` \\ + --description`},{type:`value`,value:` '${w||`Created by launch wizard`}'`},{type:`flag`,value:` \\ --vpc-id`},{type:`value`,value:` ${t??``}`},{type:`flag`,value:` \\ - --query`},{type:`value`,value:` 'GroupId' --output text)`}]});let n=E===`custom`&&O?O:`0.0.0.0/0`,r=[...e(`allowSsh`)===!0?[22]:[],...e(`allowHttp`)===!0?[80]:[],...e(`allowHttps`)===!0?[443]:[]];if(r.length>0){let e=JSON.stringify(r.map(e=>({IpProtocol:`tcp`,FromPort:e,ToPort:e,IpRanges:[{CidrIp:n}]})));k.push({label:`Authorize inbound rules`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 authorize-security-group-ingress`},{type:`flag`,value:` \\ + --query`},{type:`value`,value:` 'GroupId' --output text)`}]});let n=ie===`custom`&&D?D:`0.0.0.0/0`,r=[...e(`allowSsh`)===!0?[22]:[],...e(`allowHttp`)===!0?[80]:[],...e(`allowHttps`)===!0?[443]:[]];if(r.length>0){let e=JSON.stringify(r.map(e=>({IpProtocol:`tcp`,FromPort:e,ToPort:e,IpRanges:[{CidrIp:n}]})));O.push({label:`Authorize inbound rules`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 authorize-security-group-ingress`},{type:`flag`,value:` \\ --group-id`},{type:`value`,value:` $SG_ID`},{type:`flag`,value:` \\ --ip-permissions`},{type:`value`,value:` '${e}'`}]})}b.push({type:`flag`,value:` \\ --security-group-ids`},{type:`value`,value:` $SG_ID`})}else{let t=e(`securityGroupIds`),n=Array.isArray(t)?t.filter(e=>typeof e==`string`):[];n.length>0&&b.push({type:`flag`,value:` \\ - --security-group-ids`},{type:`value`,value:` ${n.join(` `)}`})}if(g!==void 0||_!==void 0||y!==void 0){let e={};g!==void 0&&(e.VolumeSize=g),v&&(e.VolumeType=v),y!==void 0&&(e.DeleteOnTermination=te);let t=JSON.stringify([{DeviceName:m||N,Ebs:e}]);b.push({type:`flag`,value:` \\ - --block-device-mappings`},{type:`value`,value:` '${t}'`})}return[...k,{label:`Run Instances`,parts:b}]}export{me as component}; \ No newline at end of file + --security-group-ids`},{type:`value`,value:` ${n.join(` `)}`})}if(h!==void 0||g!==void 0||v!==void 0){let e={};h!==void 0&&(e.VolumeSize=h),_&&(e.VolumeType=_),v!==void 0&&(e.DeleteOnTermination=y);let t=JSON.stringify([{DeviceName:te||M,Ebs:e}]);b.push({type:`flag`,value:` \\ + --block-device-mappings`},{type:`value`,value:` '${t}'`})}return[...O,{label:`Run Instances`,parts:b}]}export{he as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/s3.js b/spinifex/services/spinifexui/frontend/dist/assets/s3.js index b92a48443..fca42f1a0 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/s3.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/s3.js @@ -1,6 +1,6 @@ -import{n as e}from"./error-banner.js";import{Ar as t,Br as n,Bt as r,Fr as i,Ft as a,Gt as o,Ht as s,It as c,Jt as l,Kt as u,Lr as d,Lt as f,Mr as p,Nr as m,Nt as h,Pr as g,Pt as _,Qr as v,Rs as y,Rt as b,Ut as x,Vt as S,Wt as C,Xr as w,Yt as T,ai as E,ci as ee,fs as D,ii as te,jr as O,ni as ne,oi as re,qt as k,ri as A,si as j,ti as M,vs as N,zr as P}from"./index.js";var F=typeof ReadableStream==`function`?ReadableStream:function(){},I=class extends F{},L=({expectedChecksum:e,checksum:t,source:r,checksumSourceLocation:i,base64Encoder:a})=>{if(!P(r))throw Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let o=a??n;if(typeof TransformStream!=`function`)throw Error(`@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.`);let s=new TransformStream({start(){},async transform(e,n){t.update(e),n.enqueue(e)},async flush(n){let r=o(await t.digest());if(e!==r){let t=Error(`Checksum mismatch: expected "${e}" but received "${r}" in response header "${i}".`);n.error(t)}else n.terminate()}});r.pipeThrough(s);let c=s.readable;return Object.setPrototypeOf(c,I.prototype),c},ie=class{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){let e=this.byteArrays[0];return this.reset(),e}let e=this.allocByteArray(this.byteLength),t=0;for(let n=0;nnew Uint8Array(e))],s=-1,c=async e=>{let{value:l,done:u}=await r.read(),d=l;if(u){if(s!==-1){let t=V(o,s);H(t)>0&&e.enqueue(t)}e.close()}else{let r=U(d,!1);if(s!==r&&(s>=0&&e.enqueue(V(o,s)),s=r),s===-1){e.enqueue(d);return}let l=H(d);a+=l;let u=H(o[s]);if(l>=t&&u===0)e.enqueue(d);else{let r=B(o,s,d);!i&&a>t*2&&(i=!0,n?.warn(`@smithy/util-stream - stream chunk size ${l} is below threshold of ${t}, automatically buffering.`)),r>=t?e.enqueue(V(o,s)):await c(e)}}};return new ReadableStream({pull:c})}var z=R;function B(e,t,n){switch(t){case 0:return e[0]+=n,H(e[0]);case 1:case 2:return e[t].push(n),H(e[t])}}function V(e,t){switch(t){case 0:let n=e[0];return e[0]=``,n;case 1:case 2:return e[t].flush()}throw Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function H(e){return e?.byteLength??e?.length??0}function U(e,t=!0){return t&&typeof Buffer<`u`&&e instanceof Buffer?2:e instanceof Uint8Array?1:typeof e==`string`?0:-1}var W=(e,{requestChecksumRequired:t,requestAlgorithmMember:n,requestChecksumCalculation:r})=>{if(!n)return r===l.WHEN_SUPPORTED||t?k:void 0;if(e[n])return e[n]},G=e=>e===u.MD5?`content-md5`:`x-amz-checksum-${e.toLowerCase()}`,ae=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(n===e.toLowerCase())return!0;return!1},oe=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(e.toLowerCase().startsWith(n))return!0;return!1},se=e=>e!==void 0&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&!w(e),ce=function(){function e(){this.crc32c=new le}return e.prototype.update=function(e){j(e)||this.crc32c.update(ee(e))},e.prototype.digest=function(){return ne(this,void 0,void 0,function(){return A(this,function(e){return[2,re(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new le},e}(),le=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var r=te(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.checksum=this.checksum>>>8^ue[(this.checksum^a)&255]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}(),ue=E([0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697]),de=()=>{let e=Array(8);for(let t=0;t<8;t++){let n=Array(512);for(let e=0;e<256;e++){let r=BigInt(e);for(let e=0;e<8*(t+1);e++)r&1n?r=r>>1n^11127430586519243189n:r>>=1n;n[e*2]=Number(r>>32n&4294967295n),n[e*2+1]=Number(r&4294967295n)}e[t]=new Uint32Array(n)}return e},fe,K,pe,me,he,ge,_e,ve,ye,be=()=>{fe||(fe=de(),[K,pe,me,he,ge,_e,ve,ye]=fe)},xe=class{c1=0;c2=0;constructor(){be(),this.reset()}update(e){let t=e.length,n=0,r=this.c1,i=this.c2;for(;n+8<=t;){let t=((i^e[n++])&255)<<1,a=((i>>>8^e[n++])&255)<<1,o=((i>>>16^e[n++])&255)<<1,s=((i>>>24^e[n++])&255)<<1,c=((r^e[n++])&255)<<1,l=((r>>>8^e[n++])&255)<<1,u=((r>>>16^e[n++])&255)<<1,d=((r>>>24^e[n++])&255)<<1;r=ye[t]^ve[a]^_e[o]^ge[s]^he[c]^me[l]^pe[u]^K[d],i=ye[t+1]^ve[a+1]^_e[o+1]^ge[s+1]^he[c+1]^me[l+1]^pe[u+1]^K[d+1]}for(;n>>8|(r&255)<<24)>>>0,r=r>>>8^K[t],i^=K[t+1],n++}this.c1=r,this.c2=i}async digest(){let e=this.c1^4294967295,t=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255])}reset(){this.c1=4294967295,this.c2=4294967295}},Se={CrtCrc64Nvme:null},Ce=()=>o,we=[u.CRC32,u.CRC32C,u.CRC64NVME,u.SHA1,u.SHA256],Te=[u.SHA256,u.SHA1,u.CRC32,u.CRC32C,u.CRC64NVME],Ee=(e,t)=>{let{checksumAlgorithms:n={}}=t;switch(e){case u.MD5:return n?.MD5??t.md5;case u.CRC32:return n?.CRC32??Ce();case u.CRC32C:return n?.CRC32C??ce;case u.CRC64NVME:return typeof Se.CrtCrc64Nvme==`function`?n?.CRC64NVME??Se.CrtCrc64Nvme:n?.CRC64NVME??xe;case u.SHA1:return n?.SHA1??t.sha1;case u.SHA256:return n?.SHA256??t.sha256;default:if(n?.[e])return n[e];throw Error(`The checksum algorithm "${e}" is not supported by the client. Select one of ${we}, or provide an implementation to the client constructor checksums field.`)}},De=(e,t)=>{let n=new e;return n.update(v(t||``)),n.digest()},Oe={name:`flexibleChecksumsMiddleware`,step:`build`,tags:[`BODY_CHECKSUM`],override:!0},ke=(e,t)=>(n,r)=>async a=>{if(!M.isInstance(a.request)||oe(`x-amz-checksum-`,a.request.headers))return n(a);let{request:o,input:s}=a,{body:c,headers:d}=o,{base64Encoder:f,streamHasher:p}=e,{requestChecksumRequired:m,requestAlgorithmMember:h}=t,g=await e.requestChecksumCalculation(),_=h?.name,v=h?.httpHeader;_&&!s[_]&&(g===l.WHEN_SUPPORTED||m)&&(s[_]=k,v&&(d[v]=k));let y=W(s,{requestChecksumRequired:m,requestAlgorithmMember:h?.name,requestChecksumCalculation:g}),b=c,x=d;if(y){switch(y){case u.CRC32:i(r,`FLEXIBLE_CHECKSUMS_REQ_CRC32`,`U`);break;case u.CRC32C:i(r,`FLEXIBLE_CHECKSUMS_REQ_CRC32C`,`V`);break;case u.CRC64NVME:i(r,`FLEXIBLE_CHECKSUMS_REQ_CRC64`,`W`);break;case u.SHA1:i(r,`FLEXIBLE_CHECKSUMS_REQ_SHA1`,`X`);break;case u.SHA256:i(r,`FLEXIBLE_CHECKSUMS_REQ_SHA256`,`Y`);break}let t=G(y),n=Ee(y,e);if(se(c)){let{getAwsChunkedEncodingStream:i,bodyLengthChecker:a}=e;b=i(typeof e.requestStreamBufferSize==`number`&&e.requestStreamBufferSize>=8*1024?z(c,e.requestStreamBufferSize,r.logger):c,{base64Encoder:f,bodyLengthChecker:a,checksumLocationName:t,checksumAlgorithmFn:n,streamHasher:p}),x={...d,"content-encoding":d[`content-encoding`]?`${d[`content-encoding`]},aws-chunked`:`aws-chunked`,"transfer-encoding":`chunked`,"x-amz-decoded-content-length":d[`content-length`],"x-amz-content-sha256":`STREAMING-UNSIGNED-PAYLOAD-TRAILER`,"x-amz-trailer":t},delete x[`content-length`]}else if(!ae(t,d)){let e=await De(n,c);x={...d,[t]:f(e)}}}try{return await n({...a,request:{...o,headers:x,body:b}})}catch(e){if(e instanceof Error&&e.name===`InvalidChunkSizeError`)try{e.message.endsWith(`.`)||(e.message+=`.`),e.message+=` Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream.`}catch{}throw e}},Ae={name:`flexibleChecksumsInputMiddleware`,toMiddleware:`serializerMiddleware`,relation:`before`,tags:[`BODY_CHECKSUM`],override:!0},je=(e,t)=>(n,r)=>async a=>{let o=a.input,{requestValidationModeMember:s}=t,c=await e.requestChecksumCalculation(),u=await e.responseChecksumValidation();switch(c){case l.WHEN_REQUIRED:i(r,`FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED`,`a`);break;case l.WHEN_SUPPORTED:i(r,`FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED`,`Z`);break}switch(u){case T.WHEN_REQUIRED:i(r,`FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED`,`c`);break;case T.WHEN_SUPPORTED:i(r,`FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED`,`b`);break}return s&&!o[s]&&u===T.WHEN_SUPPORTED&&(o[s]=`ENABLED`),n(a)},Me=(e=[])=>{let t=[],n=Te.length;for(let r of e){let e=Te.indexOf(r);e===-1?t[n++]=r:t[e]=r}return t.filter(Boolean)},Ne=e=>{let t=e.lastIndexOf(`-`);if(t!==-1){let n=e.slice(t+1);if(!n.startsWith(`0`)){let e=parseInt(n,10);if(!isNaN(e)&&e>=1&&e<=1e4)return!0}}return!1},Pe=async(e,{checksumAlgorithmFn:t,base64Encoder:n})=>n(await De(t,e)),Fe=async(e,{config:t,responseAlgorithms:n,logger:r})=>{let i=Me(n),{body:a,headers:o}=e;for(let n of i){let i=G(n),s=o[i];if(s){let o;try{o=Ee(n,t)}catch(e){if(n===u.CRC64NVME){r?.warn(`Skipping ${u.CRC64NVME} checksum validation: ${e.message}`);continue}throw e}let{base64Encoder:c}=t;if(se(a)){e.body=L({expectedChecksum:s,checksumSourceLocation:i,checksum:new o,source:a,base64Encoder:c});return}let l=await Pe(a,{checksumAlgorithmFn:o,base64Encoder:c});if(l===s)break;throw Error(`Checksum mismatch: expected "${l}" but received "${s}" in response header "${i}".`)}}},Ie={name:`flexibleChecksumsResponseMiddleware`,toMiddleware:`deserializerMiddleware`,relation:`after`,tags:[`BODY_CHECKSUM`],override:!0},Le=(e,t)=>(n,r)=>async i=>{if(!M.isInstance(i.request))return n(i);let a=i.input,o=await n(i),s=o.response,{requestValidationModeMember:c,responseAlgorithms:l}=t;if(c&&a[c]===`ENABLED`){let{clientName:t,commandName:n}=r,i=Object.keys(e.checksumAlgorithms??{}).filter(e=>{let t=G(e);return s.headers[t]!==void 0}),a=Me([...l??[],...i]);if(t===`S3Client`&&n===`GetObjectCommand`&&a.every(e=>{let t=G(e),n=s.headers[t];return!n||Ne(n)}))return o;await Fe(s,{config:e,responseAlgorithms:a,logger:r.logger})}return o},Re=(e,t)=>({applyToStack:n=>{n.add(ke(e,t),Oe),n.addRelativeTo(je(e,t),Ae),n.addRelativeTo(Le(e,t),Ie)}}),ze=`content-length`,Be=`x-amz-decoded-content-length`;function Ve(){return(e,n)=>async r=>{let{request:i}=r;if(M.isInstance(i)&&!(ze in i.headers)&&!(Be in i.headers)){let e=`Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`;typeof n?.logger?.warn==`function`&&!(n.logger instanceof t)?n.logger.warn(e):console.warn(e)}return e({...r})}}var He={step:`finalizeRequest`,tags:[`CHECK_CONTENT_LENGTH_HEADER`],name:`getCheckContentLengthHeaderPlugin`,override:!0},Ue=e=>({applyToStack:e=>{e.add(Ve(),He)}}),We=class extends O.classBuilder().ep({...x,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions()),C(n)]}).s(`AmazonS3`,`AbortMultipartUpload`,{}).n(`S3Client`,`AbortMultipartUploadCommand`).sc(_).build(){};function Ge(e){return t=>async n=>{let r={...n.input};for(let t of[{target:`SSECustomerKey`,hash:`SSECustomerKeyMD5`},{target:`CopySourceSSECustomerKey`,hash:`CopySourceSSECustomerKeyMD5`}]){let n=r[t.target];if(n){let i;typeof n==`string`?qe(n,e)?i=e.base64Decoder(n):(i=e.utf8Decoder(n),r[t.target]=e.base64Encoder(i)):(i=ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n),r[t.target]=e.base64Encoder(i));let a=new e.md5;a.update(i),r[t.hash]=e.base64Encoder(await a.digest())}}return t({...n,input:r})}}var Ke={name:`ssecMiddleware`,step:`initialize`,tags:[`SSE`],override:!0},q=e=>({applyToStack:t=>{t.add(Ge(e),Ke)}});function qe(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return t.base64Decoder(e).length===32}catch{return!1}}var Je=class extends O.classBuilder().ep({...x,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions()),C(n),q(n)]}).s(`AmazonS3`,`CompleteMultipartUpload`,{}).n(`S3Client`,`CompleteMultipartUploadCommand`).sc(a).build(){};function Ye(e){return t=>async n=>{let{CreateBucketConfiguration:r}=n.input,i=await e.region();return!r?.LocationConstraint&&!r?.Location&&i!==`us-east-1`&&(n.input.CreateBucketConfiguration=n.input.CreateBucketConfiguration??{},n.input.CreateBucketConfiguration.LocationConstraint=i),t(n)}}var Xe={step:`initialize`,tags:[`LOCATION_CONSTRAINT`,`CREATE_BUCKET_CONFIGURATION`],name:`locationConstraintMiddleware`,override:!0},Ze=e=>({applyToStack:t=>{t.add(Ye(e),Xe)}}),Qe=class extends O.classBuilder().ep({...x,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},DisableAccessPoints:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions()),C(n),Ze(n)]}).s(`AmazonS3`,`CreateBucket`,{}).n(`S3Client`,`CreateBucketCommand`).sc(c).build(){},$e=class extends O.classBuilder().ep({...x,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions()),C(n),q(n)]}).s(`AmazonS3`,`CreateMultipartUpload`,{}).n(`S3Client`,`CreateMultipartUploadCommand`).sc(f).build(){},et=class extends O.classBuilder().ep({...x,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions()),C(n)]}).s(`AmazonS3`,`DeleteObject`,{}).n(`S3Client`,`DeleteObjectCommand`).sc(b).build(){},tt=class extends O.classBuilder().ep({...x,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions()),Re(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),Ue(n),C(n),q(n)]}).s(`AmazonS3`,`PutObject`,{}).n(`S3Client`,`PutObjectCommand`).sc(r).build(){},nt=class extends O.classBuilder().ep({...x,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions()),Re(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),C(n)]}).s(`AmazonS3`,`PutObjectTagging`,{}).n(`S3Client`,`PutObjectTaggingCommand`).sc(S).build(){},rt=class extends O.classBuilder().ep({...x,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions()),Re(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),C(n),q(n)]}).s(`AmazonS3`,`UploadPart`,{}).n(`S3Client`,`UploadPartCommand`).sc(s).build(){},it={CRC32:`CRC32`,CRC32C:`CRC32C`,CRC64NVME:`CRC64NVME`,MD5:`MD5`,SHA1:`SHA1`,SHA256:`SHA256`,SHA512:`SHA512`,XXHASH128:`XXHASH128`,XXHASH3:`XXHASH3`,XXHASH64:`XXHASH64`},at=y(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,`defaultMaxListeners`,{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;ac?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),st=y((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),J=y((e=>{var t=ot(),n=st(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,`parent`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,`offset`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return p(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(W(e,ArrayBuffer)||e&&W(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(W(e,SharedArrayBuffer)||e&&W(e.buffer,SharedArrayBuffer)))return m(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);var i=h(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:g(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=v(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){for(var t=e.length<0?0:g(e.length)|0,n=o(t),r=0;r=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function _(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(W(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),W(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return z(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return H(e).length;default:if(i)return r?-1:z(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=v;function y(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return j(this,t,n);case`utf8`:case`utf-8`:return O(this,t,n);case`ascii`:return k(this,t,n);case`latin1`:case`binary`:return A(this,t,n);case`base64`:return te(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return M(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;tn&&(t+=` ... `),``},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(W(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),d=0;d2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,G(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:S(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function S(e,t,n,r,i){var a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}var l;if(i){var u=-1;for(l=n;lo&&(n=o-s),l=n;l>=0;l--){for(var d=!0,f=0;fi&&(r=i)):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return C(this,e,t,n);case`utf8`:case`utf-8`:return w(this,e,t,n);case`ascii`:return T(this,e,t,n);case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return ee(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return D(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function te(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:a>223?3:a>191?2:1;if(i+s<=n){var c,l,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],(c&192)==128&&(d=(a&31)<<6|c&63,d>127&&(o=d));break;case 3:c=e[i+1],l=e[i+2],(c&192)==128&&(l&192)==128&&(d=(a&15)<<12|(c&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[i+1],l=e[i+2],u=e[i+3],(c&192)==128&&(l&192)==128&&(u&192)==128&&(d=(a&15)<<18|(c&63)<<12|(l&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return re(r)}var ne=4096;function re(e){var t=e.length;if(t<=ne)return String.fromCharCode.apply(String,e);for(var n=``,r=0;rr)&&(n=r);for(var i=``,a=t;an&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tn)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||N(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);for(var r=this[e],i=1,a=0;++a=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||N(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),n.read(this,e,!1,52,8)};function P(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||te.length)throw RangeError(`Index out of range`)}s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;P(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=e&255;++o>>=0,n>>>=0,!r){var i=2**(8*n)-1;P(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);P(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=e&255;++a>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);P(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function F(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function I(e,t,r,i,a){return t=+t,r>>>=0,a||F(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return I(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return I(this,e,t,!1,n)};function L(e,t,r,i,a){return t=+t,r>>>=0,a||F(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||=0;var a;if(typeof e==`number`)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function B(e){for(var t=[],n=0;n>8,i=n%256,a.push(i),a.push(r);return a}function H(e){return t.toByteArray(R(e))}function U(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function W(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function G(e){return e!==e}var ae=(function(){for(var e=`0123456789abcdef`,t=Array(256),n=0;n<16;++n)for(var r=n*16,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t})()})),ct=D(),lt=at(),Y=J(),ut={lstatSync:()=>{},isFileReadStream(e){return!1},runtime:`browser`},dt=e=>{if(e==null)return 0;if(typeof e==`string`)return Y.Buffer.byteLength(e);if(typeof e.byteLength==`number`)return e.byteLength;if(typeof e.length==`number`)return e.length;if(typeof e.size==`number`)return e.size;if(typeof e.start==`number`&&typeof e.end==`number`)return e.end+1-e.start;if(ut.isFileReadStream(e))try{return ut.lstatSync(e.path).size}catch{return}},X;(function(e){e.EMPTY_INPUT=`a null or undefined Body`,e.CONTENT_LENGTH=`the ContentLength property of the params set by the caller`,e.STRING_LENGTH=`the encoded byte length of the Body string`,e.TYPED_ARRAY=`the byteLength of a typed byte array such as Uint8Array`,e.LENGTH=`the value of Body.length`,e.SIZE=`the value of Body.size`,e.START_END_DIFF=`the numeric difference between Body.start and Body.end`,e.LSTAT=`the size of the file given by Body.path on disk as reported by lstatSync`})(X||={});var ft=(e,t)=>{if(t!=null)return X.CONTENT_LENGTH;if(e==null)return X.EMPTY_INPUT;if(typeof e==`string`)return X.STRING_LENGTH;if(typeof e.byteLength==`number`)return X.TYPED_ARRAY;if(typeof e.length==`number`)return X.LENGTH;if(typeof e.size==`number`)return X.SIZE;if(typeof e.start==`number`&&typeof e.end==`number`)return X.START_END_DIFF;if(ut.isFileReadStream(e))try{return ut.lstatSync(e.path).size,X.LSTAT}catch{return}},Z=y(((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),pt=y(((e,t)=>{t.exports=at().EventEmitter})),mt=y(((e,t)=>{t.exports={}})),ht=y(((e,t)=>{function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return ei.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),gt=y(((e,t)=>{function n(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,e)):process.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(r,n,e)):process.nextTick(r,n,e):t?(process.nextTick(i,n),t(e)):process.nextTick(i,n)}),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit(`error`,t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}})),Q=y(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function i(e,t,i){i||=Error;function a(e,n,r){return typeof t==`string`?t:t(e,n,r)}var o=function(e){n(t,e);function t(t,n,r){return e.call(this,a(t,n,r))||this}return t}(i);o.prototype.name=i.name,o.prototype.code=e,r[e]=o}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function o(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function s(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return typeof n!=`number`&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}i(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),i(`ERR_INVALID_ARG_TYPE`,function(e,t,n){var r;typeof t==`string`&&o(t,`not `)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;var i=s(e,` argument`)?`The ${e} ${r} ${a(t,`type`)}`:`The "${e}" ${c(e,`.`)?`property`:`argument`} ${r} ${a(t,`type`)}`;return i+=`. Received type ${typeof n}`,i},TypeError),i(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),i(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),i(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),i(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),i(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),i(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),i(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),i(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),i(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),i(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=r})),_t=y(((e,t)=>{var n=Q().codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function i(e,t,i,a){var o=r(t,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:`highWaterMark`,o);return Math.floor(o)}return e.objectMode?16:16*1024}t.exports={getHighWaterMark:i}})),vt=y(((e,t)=>{t.exports=n;function n(e,t){if(r(`noDeprecation`))return e;var n=!1;function i(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()===`true`}})),yt=y(((e,t)=>{t.exports=T;function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){ie(t,e)}}var r;T.WritableState=C;var i={deprecate:vt()},a=pt(),o=J().Buffer,s=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function c(e){return o.from(e)}function l(e){return o.isBuffer(e)||e instanceof s}var u=gt(),d=_t().getHighWaterMark,f=Q().codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,_=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,y=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;Z()(T,a);function S(){}function C(e,t,i){r||=$(),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){k(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(C.prototype,`buffer`,{get:i.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var w;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return w.call(this,e)?!0:this===T?e&&e._writableState instanceof C:!1}})):w=function(e){return e instanceof this};function T(e){r||=$();var t=this instanceof r;if(!t&&!w.call(T,this))return new T(e);this._writableState=new C(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),a.call(this)}T.prototype.pipe=function(){x(this,new g)};function E(e,t){var n=new y;x(e,n),process.nextTick(t,n)}function ee(e,t,n,r){var i;return n===null?i=new v:typeof n!=`string`&&!t.objectMode&&(i=new p(`chunk`,[`string`,`Buffer`],n)),i?(x(e,i),process.nextTick(r,i),!1):!0}T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&l(e);return a&&!o.isBuffer(e)&&(e=c(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=S),r.ending?E(this,n):(a||ee(this,r,e,n))&&(r.pendingcb++,i=te(this,r,a,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&M(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function D(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=o.from(t,n)),t}Object.defineProperty(T.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function te(e,t,n,r,i,a){if(!n){var o=D(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length{var n=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var r=Tt(),i=yt();Z()(c,r);for(var a=n(i.prototype),o=0;o{var n=J(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),xt=y((e=>{var t=bt().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),St=y(((e,t)=>{var n=Q().codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;var n=[...arguments];e.apply(this,n)}}}function i(){}function a(e){return e.setHeader&&typeof e.abort==`function`}function o(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=r(s||i);var c=t.readable||t.readable!==!1&&e.readable,l=t.writable||t.writable!==!1&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){l=!1,d=!0,c||s.call(e)},p=e._readableState&&e._readableState.endEmitted,m=function(){c=!1,p=!0,l||s.call(e)},h=function(t){s.call(e,t)},g=function(){var t;if(c&&!p)return(!e._readableState||!e._readableState.ended)&&(t=new n),s.call(e,t);if(l&&!d)return(!e._writableState||!e._writableState.ended)&&(t=new n),s.call(e,t)},_=function(){e.req.on(`finish`,f)};return a(e)?(e.on(`complete`,f),e.on(`abort`,g),e.req?_():e.on(`request`,_)):l&&!e._writableState&&(e.on(`end`,u),e.on(`close`,u)),e.on(`end`,m),e.on(`finish`,f),t.error!==!1&&e.on(`error`,h),e.on(`close`,g),function(){e.removeListener(`complete`,f),e.removeListener(`abort`,g),e.removeListener(`request`,_),e.req&&e.req.removeListener(`finish`,f),e.removeListener(`end`,u),e.removeListener(`close`,u),e.removeListener(`finish`,f),e.removeListener(`end`,m),e.removeListener(`error`,h),e.removeListener(`close`,g)}}t.exports=o})),Ct=y(((e,t)=>{var n;function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=a(e,`string`);return typeof t==`symbol`?t:String(t)}function a(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o=St(),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){process.nextTick(h,e)}function _(e,t){return function(n,r){e.then(function(){if(t[u]){n(m(void 0,!0));return}t[f](n,r)},r)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[l]?n(e[l]):t(m(void 0,!0))})});var n=this[d],r;if(n)r=new Promise(_(n,this));else{var i=this[p].read();if(i!==null)return Promise.resolve(m(i,!1));r=new Promise(this[f])}return this[d]=r,r}},r(n,Symbol.asyncIterator,function(){return this}),r(n,`return`,function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(m(void 0,!0))})})}),n),v);t.exports=function(e){var t,n=Object.create(y,(t={},r(t,p,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0}),e.on(`readable`,g.bind(null,n)),n}})),wt=y(((e,t)=>{t.exports=function(){throw Error(`Readable.from is not available in the browser`)}})),Tt=y(((e,t)=>{t.exports=E;var n;E.ReadableState=T,at().EventEmitter;var r=function(e,t){return e.listeners(t).length},i=pt(),a=J().Buffer,o=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=mt(),u=l&&l.debuglog?l.debuglog(`stream`):function(){},d=ht(),f=gt(),p=_t().getHighWaterMark,m=Q().codes,h=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,b,x;Z()(E,i);var S=f.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t,r){n||=$(),e||={},typeof r!=`boolean`&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,`readableHighWaterMark`,r),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(y||=xt().StringDecoder,this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(n||=$(),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),i.call(this)}Object.defineProperty(E.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=``),r=!0),ee(this,e,t,!1,r)},E.prototype.unshift=function(e){return ee(this,e,null,!0,!1)};function ee(e,t,n,r,i){u(`readableAddChunk`,t);var o=e._readableState;if(t===null)o.reading=!1,k(e,o);else{var c;if(i||(c=te(o,t)),c)S(e,c);else if(o.objectMode||t&&t.length>0)if(typeof t!=`string`&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),r)o.endEmitted?S(e,new v):D(e,o,t,!0);else if(o.ended)S(e,new g);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?D(e,o,t,!1):M(e,o)):D(e,o,t,!1);else r||(o.reading=!1,M(e,o))}return!o.ended&&(o.length=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function re(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=ne(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){u(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return u(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?B(this):A(this),null;if(e=re(e,t),e===0&&t.ended)return t.length===0&&B(this),null;var r=t.needReadable;u(`need readable`,r),(t.length===0||t.length-e0?z(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&B(this)),i!==null&&this.emit(`data`,i),i};function k(e,t){if(u(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?A(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}function A(e){var t=e._readableState;u(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u(`emitReadable`,t.flowing),t.emittedReadable=!0,process.nextTick(j,e))}function j(e){var t=e._readableState;u(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,R(e)}function M(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(N,e,t))}function N(e,t){for(;!t.reading&&!t.ended&&(t.length1&&H(i.pipes,e)!==-1)&&!l&&(u(`false write response, pause`,i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){u(`onerror`,t),g(),e.removeListener(`error`,p),r(e,`error`)===0&&S(e,t)}w(e,`error`,p);function m(){e.removeListener(`finish`,h),g()}e.once(`close`,m);function h(){u(`onfinish`),e.removeListener(`close`,m),g()}e.once(`finish`,h);function g(){u(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(u(`pipe resume`),n.resume()),e};function P(e){return function(){var t=e._readableState;u(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,`data`)&&(t.flowing=!0,R(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,r.flowing!==!1&&this.resume()):e===`readable`&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u(`on readable`,r.length,r.reading),r.length?A(this):r.reading||process.nextTick(I,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return e===`readable`&&process.nextTick(F,this),n},E.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&process.nextTick(F,this),t};function F(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function I(e){u(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u(`resume`),e.flowing=!e.readableListening,L(this,e)),e.paused=!1,this};function L(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(ie,e,t))}function ie(e,t){u(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),R(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return u(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(u(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function R(e){var t=e._readableState;for(u(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(u(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){u(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function B(e){var t=e._readableState;u(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(V,t,e))}function V(e,t){if(u(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(E.from=function(e,t){return x===void 0&&(x=wt()),x(E,e,t)});function H(e,t){for(var n=0,r=e.length;n{t.exports=l;var n=Q().codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,s=$();Z()(l,s);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new i);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{t.exports=r;var n=Et();Z()(r,n);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}r.prototype._transform=function(e,t,n){n(null,e)}})),Ot=y(((e,t)=>{var n;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=Q().codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){return e.setHeader&&typeof e.abort==`function`}function l(e,t,i,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),n===void 0&&(n=St()),n(e,{readable:t,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(t){if(!s&&!l){if(l=!0,c(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();a(t||new o(`pipe`))}}}function u(e){e()}function d(e,t){return e.pipe(t)}function f(e){return!e.length||typeof e[e.length-1]!=`function`?s:e.pop()}function p(){var e=[...arguments],t=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a(`streams`);var n,r=e.map(function(i,a){var o=a0,function(e){n||=e,e&&r.forEach(u),!o&&(r.forEach(u),t(n))})});return e.reduce(d)}t.exports=p})),kt=y(((e,t)=>{t.exports=r;var n=at().EventEmitter;Z()(r,n),r.Readable=Tt(),r.Writable=yt(),r.Duplex=$(),r.Transform=Et(),r.PassThrough=Dt(),r.finished=St(),r.pipeline=Ot(),r.Stream=r;function r(){n.call(this)}r.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}r.on(`data`,i);function a(){r.readable&&r.resume&&r.resume()}e.on(`drain`,a),!e._isStdio&&(!t||t.end!==!1)&&(r.on(`end`,s),r.on(`close`,c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,typeof e.destroy==`function`&&e.destroy())}function l(e){if(u(),n.listenerCount(this,`error`)===0)throw e}r.on(`error`,l),e.on(`error`,l);function u(){r.removeListener(`data`,i),e.removeListener(`drain`,a),r.removeListener(`end`,s),r.removeListener(`close`,c),r.removeListener(`error`,l),e.removeListener(`error`,l),r.removeListener(`end`,u),r.removeListener(`close`,u),e.removeListener(`close`,u)}return r.on(`end`,u),r.on(`close`,u),e.on(`close`,u),e.emit(`pipe`,r),e}}))();async function*At(e,t,n){let r=1,i={chunks:[],length:0};for await(let a of n(e))for(i.chunks.push(a),i.length+=a.byteLength;i.length>t;){let e=i.chunks.length>1?Y.Buffer.concat(i.chunks):i.chunks[0];yield{partNumber:r,data:e.subarray(0,t)},i.chunks=[e.subarray(t)],i.length=i.chunks[0].byteLength,r+=1}yield{partNumber:r,data:i.chunks.length===1?i.chunks[0]:Y.Buffer.concat(i.chunks),lastPart:!0}}async function*jt(e,t){let n=1,r=0,i=t;for(;i{if(e instanceof Uint8Array)return jt(e,t);if(e instanceof kt.Readable)return At(e,t,Mt);if(e instanceof String||typeof e==`string`)return jt(Y.Buffer.from(e),t);if(typeof e.stream==`function`)return At(e.stream(),t,Nt);if(e instanceof ReadableStream)return At(e,t,Nt);throw Error(`Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.`)},Ft=class e extends lt.EventEmitter{static MIN_PART_SIZE=1024*1024*5;MAX_PARTS=1e4;queueSize=4;partSize;leavePartsOnError=!1;tags=[];client;params;totalBytes;totalBytesSource;bytesUploadedSoFar;abortController;concurrentUploaders=[];createMultiPartPromise;abortMultipartUploadCommand=null;uploadedParts=[];uploadEnqueuedPartsCount=0;expectedPartsCount;uploadId;uploadEvent;isMultiPart=!0;singleUploadResult;sent=!1;constructor(t){if(super(),this.queueSize=t.queueSize||this.queueSize,this.leavePartsOnError=t.leavePartsOnError||this.leavePartsOnError,this.tags=t.tags||this.tags,this.client=t.client,this.params=t.params,!this.params)throw Error(`InputError: Upload requires params to be passed to upload.`);this.totalBytes=this.params.ContentLength??dt(this.params.Body),this.totalBytesSource=ft(this.params.Body,this.params.ContentLength),this.bytesUploadedSoFar=0,this.abortController=t.abortController??new AbortController,this.partSize=t.partSize||Math.max(e.MIN_PART_SIZE,Math.ceil((this.totalBytes||0)/this.MAX_PARTS)),this.totalBytes!==void 0&&(this.expectedPartsCount=Math.ceil(this.totalBytes/this.partSize)),this.__validateInput()}async abort(){this.abortController.abort()}async done(){if(this.sent)throw Error(`@aws-sdk/lib-storage: this instance of Upload has already executed .done(). Create a new instance.`);return this.sent=!0,await Promise.race([this.__doMultipartUpload(),this.__abortTimeout(this.abortController.signal)])}on(e,t){return this.uploadEvent=e,super.on(e,t)}async __uploadUsingPut(e){this.isMultiPart=!1;let t={...this.params,Body:e.data},n=this.client.config,r=n.requestHandler,i=r instanceof lt.EventEmitter?r:null,a=t=>{this.bytesUploadedSoFar=t.loaded,this.totalBytes=t.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:e.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};i!==null&&i.on(`xhr.upload.progress`,a);let o=await Promise.all([this.client.send(new tt(t)),n?.endpoint?.()]),s=o[0],c=o[1];if(c||=g(await m(t,tt,{...n})),!c)throw Error(`Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.`);i!==null&&i.off(`xhr.upload.progress`,a);let l=this.params.Key.split(`/`).map(e=>d(e)).join(`/`),u=d(this.params.Bucket),f=(()=>{let e=c.hostname.startsWith(`${u}.`),t=this.client.config.forcePathStyle,n=c.port?`:${c.port}`:``;return t?`${c.protocol}//${c.hostname}${n}/${u}/${l}`:e?`${c.protocol}//${c.hostname}${n}/${l}`:`${c.protocol}//${u}.${c.hostname}${n}/${l}`})();this.singleUploadResult={...s,Bucket:this.params.Bucket,Key:this.params.Key,Location:f};let p=dt(e.data);this.__notifyProgress({loaded:p,total:p,part:1,Key:this.params.Key,Bucket:this.params.Bucket})}async __createMultipartUpload(){let e=await this.client.config.requestChecksumCalculation();if(!this.createMultiPartPromise){let t={...this.params,Body:void 0};e===`WHEN_SUPPORTED`&&(t.ChecksumAlgorithm=this.params.ChecksumAlgorithm||it.CRC32),this.createMultiPartPromise=this.client.send(new $e(t)).then(e=>(this.abortMultipartUploadCommand=new We({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:e.UploadId}),e))}return this.createMultiPartPromise}async __doConcurrentUpload(e){for await(let t of e){if(this.uploadEnqueuedPartsCount>this.MAX_PARTS)throw Error(`Exceeded ${this.MAX_PARTS} parts in multipart upload to Bucket: ${this.params.Bucket} Key: ${this.params.Key}.`);if(this.abortController.signal.aborted)return;if(t.partNumber===1&&t.lastPart)return await this.__uploadUsingPut(t);if(!this.uploadId){let{UploadId:e}=await this.__createMultipartUpload();if(this.uploadId=e,this.abortController.signal.aborted)return}let e=dt(t.data)||0,n=this.client.config.requestHandler,r=n instanceof lt.EventEmitter?n:null,i=0,a=(n,r)=>{(Number(r.query.partNumber)||-1)===t.partNumber&&(n.total&&e&&(this.bytesUploadedSoFar+=n.loaded-i,i=n.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};r!==null&&r.on(`xhr.upload.progress`,a),this.uploadEnqueuedPartsCount+=1,this.__validateUploadPart(t);let o=await this.client.send(new rt({...this.params,ContentLength:void 0,UploadId:this.uploadId,Body:t.data,PartNumber:t.partNumber}));if(r!==null&&r.off(`xhr.upload.progress`,a),this.abortController.signal.aborted)return;if(!o.ETag)throw Error(`Part ${t.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push({PartNumber:t.partNumber,ETag:o.ETag,...o.ChecksumCRC32&&{ChecksumCRC32:o.ChecksumCRC32},...o.ChecksumCRC32C&&{ChecksumCRC32C:o.ChecksumCRC32C},...o.ChecksumSHA1&&{ChecksumSHA1:o.ChecksumSHA1},...o.ChecksumSHA256&&{ChecksumSHA256:o.ChecksumSHA256}}),r===null&&(this.bytesUploadedSoFar+=e),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}}async __doMultipartUpload(){let e=Pt(this.params.Body,this.partSize),t=[];for(let n=0;n{t.push(e)});this.concurrentUploaders.push(n)}if(await Promise.all(this.concurrentUploaders),t.length>=1)throw await this.markUploadAsAborted(),t[0];if(this.abortController.signal.aborted)throw await this.markUploadAsAborted(),Object.assign(Error(`Upload aborted.`),{name:`AbortError`});let n;if(this.isMultiPart){let{expectedPartsCount:e,uploadedParts:t,totalBytes:r,totalBytesSource:i}=this;if(r!==void 0&&e!==void 0&&t.length!==e)throw Error(`Expected ${e} part(s) but uploaded ${t.length} part(s). +import{n as e}from"./error-banner.js";import{$r as t,Br as n,Bt as r,Fr as i,Ft as a,Gt as o,Ht as s,Ir as c,It as l,Jt as u,Kt as d,Lt as f,Mr as p,Nr as m,Nt as h,Pr as g,Pt as _,Rr as v,Rt as y,Ut as b,Vr as x,Vt as S,Wt as C,Yt as w,Zr as T,ai as E,ci as D,ii as O,jr as ee,li as k,ni as A,oi as j,ps as te,qt as M,ri as ne,si as N,ys as P,zs as F}from"./index.js";var I=typeof ReadableStream==`function`?ReadableStream:function(){},L=class extends I{},R=({expectedChecksum:e,checksum:t,source:r,checksumSourceLocation:i,base64Encoder:a})=>{if(!n(r))throw Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let o=a??x;if(typeof TransformStream!=`function`)throw Error(`@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.`);let s=new TransformStream({start(){},async transform(e,n){t.update(e),n.enqueue(e)},async flush(n){let r=o(await t.digest());if(e!==r){let t=Error(`Checksum mismatch: expected "${e}" but received "${r}" in response header "${i}".`);n.error(t)}else n.terminate()}});r.pipeThrough(s);let c=s.readable;return Object.setPrototypeOf(c,L.prototype),c},re=class{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){let e=this.byteArrays[0];return this.reset(),e}let e=this.allocByteArray(this.byteLength),t=0;for(let n=0;nnew Uint8Array(e))],s=-1,c=async e=>{let{value:l,done:u}=await r.read(),d=l;if(u){if(s!==-1){let t=ie(o,s);H(t)>0&&e.enqueue(t)}e.close()}else{let r=U(d,!1);if(s!==r&&(s>=0&&e.enqueue(ie(o,s)),s=r),s===-1){e.enqueue(d);return}let l=H(d);a+=l;let u=H(o[s]);if(l>=t&&u===0)e.enqueue(d);else{let r=V(o,s,d);!i&&a>t*2&&(i=!0,n?.warn(`@smithy/util-stream - stream chunk size ${l} is below threshold of ${t}, automatically buffering.`)),r>=t?e.enqueue(ie(o,s)):await c(e)}}};return new ReadableStream({pull:c})}var B=z;function V(e,t,n){switch(t){case 0:return e[0]+=n,H(e[0]);case 1:case 2:return e[t].push(n),H(e[t])}}function ie(e,t){switch(t){case 0:let n=e[0];return e[0]=``,n;case 1:case 2:return e[t].flush()}throw Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function H(e){return e?.byteLength??e?.length??0}function U(e,t=!0){return t&&typeof Buffer<`u`&&e instanceof Buffer?2:e instanceof Uint8Array?1:typeof e==`string`?0:-1}var W=(e,{requestChecksumRequired:t,requestAlgorithmMember:n,requestChecksumCalculation:r})=>{if(!n)return r===u.WHEN_SUPPORTED||t?M:void 0;if(e[n])return e[n]},G=e=>e===d.MD5?`content-md5`:`x-amz-checksum-${e.toLowerCase()}`,ae=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(n===e.toLowerCase())return!0;return!1},oe=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(e.toLowerCase().startsWith(n))return!0;return!1},se=e=>e!==void 0&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&!T(e),ce=function(){function e(){this.crc32c=new le}return e.prototype.update=function(e){D(e)||this.crc32c.update(k(e))},e.prototype.digest=function(){return ne(this,void 0,void 0,function(){return O(this,function(e){return[2,N(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new le},e}(),le=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var r=E(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.checksum=this.checksum>>>8^ue[(this.checksum^a)&255]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}(),ue=j([0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697]),de=()=>{let e=Array(8);for(let t=0;t<8;t++){let n=Array(512);for(let e=0;e<256;e++){let r=BigInt(e);for(let e=0;e<8*(t+1);e++)r&1n?r=r>>1n^11127430586519243189n:r>>=1n;n[e*2]=Number(r>>32n&4294967295n),n[e*2+1]=Number(r&4294967295n)}e[t]=new Uint32Array(n)}return e},fe,K,pe,me,he,ge,_e,ve,ye,be=()=>{fe||(fe=de(),[K,pe,me,he,ge,_e,ve,ye]=fe)},xe=class{c1=0;c2=0;constructor(){be(),this.reset()}update(e){let t=e.length,n=0,r=this.c1,i=this.c2;for(;n+8<=t;){let t=((i^e[n++])&255)<<1,a=((i>>>8^e[n++])&255)<<1,o=((i>>>16^e[n++])&255)<<1,s=((i>>>24^e[n++])&255)<<1,c=((r^e[n++])&255)<<1,l=((r>>>8^e[n++])&255)<<1,u=((r>>>16^e[n++])&255)<<1,d=((r>>>24^e[n++])&255)<<1;r=ye[t]^ve[a]^_e[o]^ge[s]^he[c]^me[l]^pe[u]^K[d],i=ye[t+1]^ve[a+1]^_e[o+1]^ge[s+1]^he[c+1]^me[l+1]^pe[u+1]^K[d+1]}for(;n>>8|(r&255)<<24)>>>0,r=r>>>8^K[t],i^=K[t+1],n++}this.c1=r,this.c2=i}async digest(){let e=this.c1^4294967295,t=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255])}reset(){this.c1=4294967295,this.c2=4294967295}},Se={CrtCrc64Nvme:null},Ce=()=>o,we=[d.CRC32,d.CRC32C,d.CRC64NVME,d.SHA1,d.SHA256],Te=[d.SHA256,d.SHA1,d.CRC32,d.CRC32C,d.CRC64NVME],Ee=(e,t)=>{let{checksumAlgorithms:n={}}=t;switch(e){case d.MD5:return n?.MD5??t.md5;case d.CRC32:return n?.CRC32??Ce();case d.CRC32C:return n?.CRC32C??ce;case d.CRC64NVME:return typeof Se.CrtCrc64Nvme==`function`?n?.CRC64NVME??Se.CrtCrc64Nvme:n?.CRC64NVME??xe;case d.SHA1:return n?.SHA1??t.sha1;case d.SHA256:return n?.SHA256??t.sha256;default:if(n?.[e])return n[e];throw Error(`The checksum algorithm "${e}" is not supported by the client. Select one of ${we}, or provide an implementation to the client constructor checksums field.`)}},De=(e,n)=>{let r=new e;return r.update(t(n||``)),r.digest()},Oe={name:`flexibleChecksumsMiddleware`,step:`build`,tags:[`BODY_CHECKSUM`],override:!0},ke=(e,t)=>(n,r)=>async i=>{if(!A.isInstance(i.request)||oe(`x-amz-checksum-`,i.request.headers))return n(i);let{request:a,input:o}=i,{body:s,headers:l}=a,{base64Encoder:f,streamHasher:p}=e,{requestChecksumRequired:m,requestAlgorithmMember:h}=t,g=await e.requestChecksumCalculation(),_=h?.name,v=h?.httpHeader;_&&!o[_]&&(g===u.WHEN_SUPPORTED||m)&&(o[_]=M,v&&(l[v]=M));let y=W(o,{requestChecksumRequired:m,requestAlgorithmMember:h?.name,requestChecksumCalculation:g}),b=s,x=l;if(y){switch(y){case d.CRC32:c(r,`FLEXIBLE_CHECKSUMS_REQ_CRC32`,`U`);break;case d.CRC32C:c(r,`FLEXIBLE_CHECKSUMS_REQ_CRC32C`,`V`);break;case d.CRC64NVME:c(r,`FLEXIBLE_CHECKSUMS_REQ_CRC64`,`W`);break;case d.SHA1:c(r,`FLEXIBLE_CHECKSUMS_REQ_SHA1`,`X`);break;case d.SHA256:c(r,`FLEXIBLE_CHECKSUMS_REQ_SHA256`,`Y`);break}let t=G(y),n=Ee(y,e);if(se(s)){let{getAwsChunkedEncodingStream:i,bodyLengthChecker:a}=e;b=i(typeof e.requestStreamBufferSize==`number`&&e.requestStreamBufferSize>=8*1024?B(s,e.requestStreamBufferSize,r.logger):s,{base64Encoder:f,bodyLengthChecker:a,checksumLocationName:t,checksumAlgorithmFn:n,streamHasher:p}),x={...l,"content-encoding":l[`content-encoding`]?`${l[`content-encoding`]},aws-chunked`:`aws-chunked`,"transfer-encoding":`chunked`,"x-amz-decoded-content-length":l[`content-length`],"x-amz-content-sha256":`STREAMING-UNSIGNED-PAYLOAD-TRAILER`,"x-amz-trailer":t},delete x[`content-length`]}else if(!ae(t,l)){let e=await De(n,s);x={...l,[t]:f(e)}}}try{return await n({...i,request:{...a,headers:x,body:b}})}catch(e){if(e instanceof Error&&e.name===`InvalidChunkSizeError`)try{e.message.endsWith(`.`)||(e.message+=`.`),e.message+=` Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream.`}catch{}throw e}},Ae={name:`flexibleChecksumsInputMiddleware`,toMiddleware:`serializerMiddleware`,relation:`before`,tags:[`BODY_CHECKSUM`],override:!0},je=(e,t)=>(n,r)=>async i=>{let a=i.input,{requestValidationModeMember:o}=t,s=await e.requestChecksumCalculation(),l=await e.responseChecksumValidation();switch(s){case u.WHEN_REQUIRED:c(r,`FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED`,`a`);break;case u.WHEN_SUPPORTED:c(r,`FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED`,`Z`);break}switch(l){case w.WHEN_REQUIRED:c(r,`FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED`,`c`);break;case w.WHEN_SUPPORTED:c(r,`FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED`,`b`);break}return o&&!a[o]&&l===w.WHEN_SUPPORTED&&(a[o]=`ENABLED`),n(i)},Me=(e=[])=>{let t=[],n=Te.length;for(let r of e){let e=Te.indexOf(r);e===-1?t[n++]=r:t[e]=r}return t.filter(Boolean)},Ne=e=>{let t=e.lastIndexOf(`-`);if(t!==-1){let n=e.slice(t+1);if(!n.startsWith(`0`)){let e=parseInt(n,10);if(!isNaN(e)&&e>=1&&e<=1e4)return!0}}return!1},Pe=async(e,{checksumAlgorithmFn:t,base64Encoder:n})=>n(await De(t,e)),Fe=async(e,{config:t,responseAlgorithms:n,logger:r})=>{let i=Me(n),{body:a,headers:o}=e;for(let n of i){let i=G(n),s=o[i];if(s){let o;try{o=Ee(n,t)}catch(e){if(n===d.CRC64NVME){r?.warn(`Skipping ${d.CRC64NVME} checksum validation: ${e.message}`);continue}throw e}let{base64Encoder:c}=t;if(se(a)){e.body=R({expectedChecksum:s,checksumSourceLocation:i,checksum:new o,source:a,base64Encoder:c});return}let l=await Pe(a,{checksumAlgorithmFn:o,base64Encoder:c});if(l===s)break;throw Error(`Checksum mismatch: expected "${l}" but received "${s}" in response header "${i}".`)}}},Ie={name:`flexibleChecksumsResponseMiddleware`,toMiddleware:`deserializerMiddleware`,relation:`after`,tags:[`BODY_CHECKSUM`],override:!0},Le=(e,t)=>(n,r)=>async i=>{if(!A.isInstance(i.request))return n(i);let a=i.input,o=await n(i),s=o.response,{requestValidationModeMember:c,responseAlgorithms:l}=t;if(c&&a[c]===`ENABLED`){let{clientName:t,commandName:n}=r,i=Object.keys(e.checksumAlgorithms??{}).filter(e=>{let t=G(e);return s.headers[t]!==void 0}),a=Me([...l??[],...i]);if(t===`S3Client`&&n===`GetObjectCommand`&&a.every(e=>{let t=G(e),n=s.headers[t];return!n||Ne(n)}))return o;await Fe(s,{config:e,responseAlgorithms:a,logger:r.logger})}return o},Re=(e,t)=>({applyToStack:n=>{n.add(ke(e,t),Oe),n.addRelativeTo(je(e,t),Ae),n.addRelativeTo(Le(e,t),Ie)}}),ze=`content-length`,Be=`x-amz-decoded-content-length`;function Ve(){return(e,t)=>async n=>{let{request:r}=n;if(A.isInstance(r)&&!(ze in r.headers)&&!(Be in r.headers)){let e=`Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`;typeof t?.logger?.warn==`function`&&!(t.logger instanceof ee)?t.logger.warn(e):console.warn(e)}return e({...n})}}var He={step:`finalizeRequest`,tags:[`CHECK_CONTENT_LENGTH_HEADER`],name:`getCheckContentLengthHeaderPlugin`,override:!0},Ue=e=>({applyToStack:e=>{e.add(Ve(),He)}}),We=class extends p.classBuilder().ep({...b,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions()),C(n)]}).s(`AmazonS3`,`AbortMultipartUpload`,{}).n(`S3Client`,`AbortMultipartUploadCommand`).sc(_).build(){};function Ge(e){return t=>async n=>{let r={...n.input};for(let t of[{target:`SSECustomerKey`,hash:`SSECustomerKeyMD5`},{target:`CopySourceSSECustomerKey`,hash:`CopySourceSSECustomerKeyMD5`}]){let n=r[t.target];if(n){let i;typeof n==`string`?qe(n,e)?i=e.base64Decoder(n):(i=e.utf8Decoder(n),r[t.target]=e.base64Encoder(i)):(i=ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n),r[t.target]=e.base64Encoder(i));let a=new e.md5;a.update(i),r[t.hash]=e.base64Encoder(await a.digest())}}return t({...n,input:r})}}var Ke={name:`ssecMiddleware`,step:`initialize`,tags:[`SSE`],override:!0},q=e=>({applyToStack:t=>{t.add(Ge(e),Ke)}});function qe(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return t.base64Decoder(e).length===32}catch{return!1}}var Je=class extends p.classBuilder().ep({...b,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions()),C(n),q(n)]}).s(`AmazonS3`,`CompleteMultipartUpload`,{}).n(`S3Client`,`CompleteMultipartUploadCommand`).sc(a).build(){};function Ye(e){return t=>async n=>{let{CreateBucketConfiguration:r}=n.input,i=await e.region();return!r?.LocationConstraint&&!r?.Location&&i!==`us-east-1`&&(n.input.CreateBucketConfiguration=n.input.CreateBucketConfiguration??{},n.input.CreateBucketConfiguration.LocationConstraint=i),t(n)}}var Xe={step:`initialize`,tags:[`LOCATION_CONSTRAINT`,`CREATE_BUCKET_CONFIGURATION`],name:`locationConstraintMiddleware`,override:!0},Ze=e=>({applyToStack:t=>{t.add(Ye(e),Xe)}}),Qe=class extends p.classBuilder().ep({...b,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},DisableAccessPoints:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions()),C(n),Ze(n)]}).s(`AmazonS3`,`CreateBucket`,{}).n(`S3Client`,`CreateBucketCommand`).sc(l).build(){},$e=class extends p.classBuilder().ep({...b,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions()),C(n),q(n)]}).s(`AmazonS3`,`CreateMultipartUpload`,{}).n(`S3Client`,`CreateMultipartUploadCommand`).sc(f).build(){},et=class extends p.classBuilder().ep({...b,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions()),C(n)]}).s(`AmazonS3`,`DeleteObject`,{}).n(`S3Client`,`DeleteObjectCommand`).sc(y).build(){},tt=class extends p.classBuilder().ep({...b,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions()),Re(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),Ue(n),C(n),q(n)]}).s(`AmazonS3`,`PutObject`,{}).n(`S3Client`,`PutObjectCommand`).sc(r).build(){},nt=class extends p.classBuilder().ep({...b,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions()),Re(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),C(n)]}).s(`AmazonS3`,`PutObjectTagging`,{}).n(`S3Client`,`PutObjectTaggingCommand`).sc(S).build(){},rt=class extends p.classBuilder().ep({...b,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions()),Re(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),C(n),q(n)]}).s(`AmazonS3`,`UploadPart`,{}).n(`S3Client`,`UploadPartCommand`).sc(s).build(){},it={CRC32:`CRC32`,CRC32C:`CRC32C`,CRC64NVME:`CRC64NVME`,MD5:`MD5`,SHA1:`SHA1`,SHA256:`SHA256`,SHA512:`SHA512`,XXHASH128:`XXHASH128`,XXHASH3:`XXHASH3`,XXHASH64:`XXHASH64`},at=F(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,`defaultMaxListeners`,{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;ac?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),st=F((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),J=F((e=>{var t=ot(),n=st(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,`parent`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,`offset`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return p(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(W(e,ArrayBuffer)||e&&W(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(W(e,SharedArrayBuffer)||e&&W(e.buffer,SharedArrayBuffer)))return m(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);var i=h(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:g(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=v(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){for(var t=e.length<0?0:g(e.length)|0,n=o(t),r=0;r=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function _(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(W(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),W(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return B(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return H(e).length;default:if(i)return r?-1:B(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=v;function y(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return ne(this,t,n);case`utf8`:case`utf-8`:return k(this,t,n);case`ascii`:return te(this,t,n);case`latin1`:case`binary`:return M(this,t,n);case`base64`:return ee(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return N(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;tn&&(t+=` ... `),``},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(W(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),d=0;d2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,G(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:S(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function S(e,t,n,r,i){var a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}var l;if(i){var u=-1;for(l=n;lo&&(n=o-s),l=n;l>=0;l--){for(var d=!0,f=0;fi&&(r=i)):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return C(this,e,t,n);case`utf8`:case`utf-8`:return w(this,e,t,n);case`ascii`:return T(this,e,t,n);case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function ee(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:a>223?3:a>191?2:1;if(i+s<=n){var c,l,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],(c&192)==128&&(d=(a&31)<<6|c&63,d>127&&(o=d));break;case 3:c=e[i+1],l=e[i+2],(c&192)==128&&(l&192)==128&&(d=(a&15)<<12|(c&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[i+1],l=e[i+2],u=e[i+3],(c&192)==128&&(l&192)==128&&(u&192)==128&&(d=(a&15)<<18|(c&63)<<12|(l&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return j(r)}var A=4096;function j(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);for(var n=``,r=0;rr)&&(n=r);for(var i=``,a=t;an&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tn)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),n.read(this,e,!1,52,8)};function F(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||te.length)throw RangeError(`Index out of range`)}s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;F(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=e&255;++o>>=0,n>>>=0,!r){var i=2**(8*n)-1;F(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);F(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=e&255;++a>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);F(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function I(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function L(e,t,r,i,a){return t=+t,r>>>=0,a||I(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)};function R(e,t,r,i,a){return t=+t,r>>>=0,a||I(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||=0;var a;if(typeof e==`number`)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function V(e){for(var t=[],n=0;n>8,i=n%256,a.push(i),a.push(r);return a}function H(e){return t.toByteArray(z(e))}function U(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function W(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function G(e){return e!==e}var ae=(function(){for(var e=`0123456789abcdef`,t=Array(256),n=0;n<16;++n)for(var r=n*16,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t})()})),ct=te(),lt=at(),Y=J(),ut={lstatSync:()=>{},isFileReadStream(e){return!1},runtime:`browser`},dt=e=>{if(e==null)return 0;if(typeof e==`string`)return Y.Buffer.byteLength(e);if(typeof e.byteLength==`number`)return e.byteLength;if(typeof e.length==`number`)return e.length;if(typeof e.size==`number`)return e.size;if(typeof e.start==`number`&&typeof e.end==`number`)return e.end+1-e.start;if(ut.isFileReadStream(e))try{return ut.lstatSync(e.path).size}catch{return}},X;(function(e){e.EMPTY_INPUT=`a null or undefined Body`,e.CONTENT_LENGTH=`the ContentLength property of the params set by the caller`,e.STRING_LENGTH=`the encoded byte length of the Body string`,e.TYPED_ARRAY=`the byteLength of a typed byte array such as Uint8Array`,e.LENGTH=`the value of Body.length`,e.SIZE=`the value of Body.size`,e.START_END_DIFF=`the numeric difference between Body.start and Body.end`,e.LSTAT=`the size of the file given by Body.path on disk as reported by lstatSync`})(X||={});var ft=(e,t)=>{if(t!=null)return X.CONTENT_LENGTH;if(e==null)return X.EMPTY_INPUT;if(typeof e==`string`)return X.STRING_LENGTH;if(typeof e.byteLength==`number`)return X.TYPED_ARRAY;if(typeof e.length==`number`)return X.LENGTH;if(typeof e.size==`number`)return X.SIZE;if(typeof e.start==`number`&&typeof e.end==`number`)return X.START_END_DIFF;if(ut.isFileReadStream(e))try{return ut.lstatSync(e.path).size,X.LSTAT}catch{return}},Z=F(((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),pt=F(((e,t)=>{t.exports=at().EventEmitter})),mt=F(((e,t)=>{t.exports={}})),ht=F(((e,t)=>{function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return ei.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),gt=F(((e,t)=>{function n(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,e)):process.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(r,n,e)):process.nextTick(r,n,e):t?(process.nextTick(i,n),t(e)):process.nextTick(i,n)}),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit(`error`,t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}})),Q=F(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function i(e,t,i){i||=Error;function a(e,n,r){return typeof t==`string`?t:t(e,n,r)}var o=function(e){n(t,e);function t(t,n,r){return e.call(this,a(t,n,r))||this}return t}(i);o.prototype.name=i.name,o.prototype.code=e,r[e]=o}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function o(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function s(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return typeof n!=`number`&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}i(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),i(`ERR_INVALID_ARG_TYPE`,function(e,t,n){var r;typeof t==`string`&&o(t,`not `)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;var i=s(e,` argument`)?`The ${e} ${r} ${a(t,`type`)}`:`The "${e}" ${c(e,`.`)?`property`:`argument`} ${r} ${a(t,`type`)}`;return i+=`. Received type ${typeof n}`,i},TypeError),i(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),i(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),i(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),i(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),i(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),i(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),i(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),i(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),i(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),i(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=r})),_t=F(((e,t)=>{var n=Q().codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function i(e,t,i,a){var o=r(t,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:`highWaterMark`,o);return Math.floor(o)}return e.objectMode?16:16*1024}t.exports={getHighWaterMark:i}})),vt=F(((e,t)=>{t.exports=n;function n(e,t){if(r(`noDeprecation`))return e;var n=!1;function i(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()===`true`}})),yt=F(((e,t)=>{t.exports=T;function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){re(t,e)}}var r;T.WritableState=C;var i={deprecate:vt()},a=pt(),o=J().Buffer,s=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function c(e){return o.from(e)}function l(e){return o.isBuffer(e)||e instanceof s}var u=gt(),d=_t().getHighWaterMark,f=Q().codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,_=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,y=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;Z()(T,a);function S(){}function C(e,t,i){r||=$(),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){te(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(C.prototype,`buffer`,{get:i.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var w;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return w.call(this,e)?!0:this===T?e&&e._writableState instanceof C:!1}})):w=function(e){return e instanceof this};function T(e){r||=$();var t=this instanceof r;if(!t&&!w.call(T,this))return new T(e);this._writableState=new C(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),a.call(this)}T.prototype.pipe=function(){x(this,new g)};function E(e,t){var n=new y;x(e,n),process.nextTick(t,n)}function D(e,t,n,r){var i;return n===null?i=new v:typeof n!=`string`&&!t.objectMode&&(i=new p(`chunk`,[`string`,`Buffer`],n)),i?(x(e,i),process.nextTick(r,i),!1):!0}T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&l(e);return a&&!o.isBuffer(e)&&(e=c(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=S),r.ending?E(this,n):(a||D(this,r,e,n))&&(r.pendingcb++,i=ee(this,r,a,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&N(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=o.from(t,n)),t}Object.defineProperty(T.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ee(e,t,n,r,i,a){if(!n){var o=O(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length{var n=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var r=Tt(),i=yt();Z()(c,r);for(var a=n(i.prototype),o=0;o{var n=J(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),xt=F((e=>{var t=bt().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),St=F(((e,t)=>{var n=Q().codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;var n=[...arguments];e.apply(this,n)}}}function i(){}function a(e){return e.setHeader&&typeof e.abort==`function`}function o(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=r(s||i);var c=t.readable||t.readable!==!1&&e.readable,l=t.writable||t.writable!==!1&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){l=!1,d=!0,c||s.call(e)},p=e._readableState&&e._readableState.endEmitted,m=function(){c=!1,p=!0,l||s.call(e)},h=function(t){s.call(e,t)},g=function(){var t;if(c&&!p)return(!e._readableState||!e._readableState.ended)&&(t=new n),s.call(e,t);if(l&&!d)return(!e._writableState||!e._writableState.ended)&&(t=new n),s.call(e,t)},_=function(){e.req.on(`finish`,f)};return a(e)?(e.on(`complete`,f),e.on(`abort`,g),e.req?_():e.on(`request`,_)):l&&!e._writableState&&(e.on(`end`,u),e.on(`close`,u)),e.on(`end`,m),e.on(`finish`,f),t.error!==!1&&e.on(`error`,h),e.on(`close`,g),function(){e.removeListener(`complete`,f),e.removeListener(`abort`,g),e.removeListener(`request`,_),e.req&&e.req.removeListener(`finish`,f),e.removeListener(`end`,u),e.removeListener(`close`,u),e.removeListener(`finish`,f),e.removeListener(`end`,m),e.removeListener(`error`,h),e.removeListener(`close`,g)}}t.exports=o})),Ct=F(((e,t)=>{var n;function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=a(e,`string`);return typeof t==`symbol`?t:String(t)}function a(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o=St(),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){process.nextTick(h,e)}function _(e,t){return function(n,r){e.then(function(){if(t[u]){n(m(void 0,!0));return}t[f](n,r)},r)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[l]?n(e[l]):t(m(void 0,!0))})});var n=this[d],r;if(n)r=new Promise(_(n,this));else{var i=this[p].read();if(i!==null)return Promise.resolve(m(i,!1));r=new Promise(this[f])}return this[d]=r,r}},r(n,Symbol.asyncIterator,function(){return this}),r(n,`return`,function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(m(void 0,!0))})})}),n),v);t.exports=function(e){var t,n=Object.create(y,(t={},r(t,p,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0}),e.on(`readable`,g.bind(null,n)),n}})),wt=F(((e,t)=>{t.exports=function(){throw Error(`Readable.from is not available in the browser`)}})),Tt=F(((e,t)=>{t.exports=E;var n;E.ReadableState=T,at().EventEmitter;var r=function(e,t){return e.listeners(t).length},i=pt(),a=J().Buffer,o=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=mt(),u=l&&l.debuglog?l.debuglog(`stream`):function(){},d=ht(),f=gt(),p=_t().getHighWaterMark,m=Q().codes,h=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,b,x;Z()(E,i);var S=f.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t,r){n||=$(),e||={},typeof r!=`boolean`&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,`readableHighWaterMark`,r),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(y||=xt().StringDecoder,this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(n||=$(),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),i.call(this)}Object.defineProperty(E.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=``),r=!0),D(this,e,t,!1,r)},E.prototype.unshift=function(e){return D(this,e,null,!0,!1)};function D(e,t,n,r,i){u(`readableAddChunk`,t);var o=e._readableState;if(t===null)o.reading=!1,te(e,o);else{var c;if(i||(c=ee(o,t)),c)S(e,c);else if(o.objectMode||t&&t.length>0)if(typeof t!=`string`&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),r)o.endEmitted?S(e,new v):O(e,o,t,!0);else if(o.ended)S(e,new g);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?O(e,o,t,!1):N(e,o)):O(e,o,t,!1);else r||(o.reading=!1,N(e,o))}return!o.ended&&(o.length=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function j(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=A(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){u(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return u(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?V(this):M(this),null;if(e=j(e,t),e===0&&t.ended)return t.length===0&&V(this),null;var r=t.needReadable;u(`need readable`,r),(t.length===0||t.length-e0?B(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&V(this)),i!==null&&this.emit(`data`,i),i};function te(e,t){if(u(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?M(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,ne(e)))}}function M(e){var t=e._readableState;u(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u(`emitReadable`,t.flowing),t.emittedReadable=!0,process.nextTick(ne,e))}function ne(e){var t=e._readableState;u(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,z(e)}function N(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length1&&H(i.pipes,e)!==-1)&&!l&&(u(`false write response, pause`,i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){u(`onerror`,t),g(),e.removeListener(`error`,p),r(e,`error`)===0&&S(e,t)}w(e,`error`,p);function m(){e.removeListener(`finish`,h),g()}e.once(`close`,m);function h(){u(`onfinish`),e.removeListener(`close`,m),g()}e.once(`finish`,h);function g(){u(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(u(`pipe resume`),n.resume()),e};function F(e){return function(){var t=e._readableState;u(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,`data`)&&(t.flowing=!0,z(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,r.flowing!==!1&&this.resume()):e===`readable`&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u(`on readable`,r.length,r.reading),r.length?M(this):r.reading||process.nextTick(L,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return e===`readable`&&process.nextTick(I,this),n},E.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&process.nextTick(I,this),t};function I(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function L(e){u(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u(`resume`),e.flowing=!e.readableListening,R(this,e)),e.paused=!1,this};function R(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(re,e,t))}function re(e,t){u(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),z(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return u(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(u(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function z(e){var t=e._readableState;for(u(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(u(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){u(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function V(e){var t=e._readableState;u(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(ie,t,e))}function ie(e,t){if(u(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(E.from=function(e,t){return x===void 0&&(x=wt()),x(E,e,t)});function H(e,t){for(var n=0,r=e.length;n{t.exports=l;var n=Q().codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,s=$();Z()(l,s);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new i);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{t.exports=r;var n=Et();Z()(r,n);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}r.prototype._transform=function(e,t,n){n(null,e)}})),Ot=F(((e,t)=>{var n;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=Q().codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){return e.setHeader&&typeof e.abort==`function`}function l(e,t,i,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),n===void 0&&(n=St()),n(e,{readable:t,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(t){if(!s&&!l){if(l=!0,c(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();a(t||new o(`pipe`))}}}function u(e){e()}function d(e,t){return e.pipe(t)}function f(e){return!e.length||typeof e[e.length-1]!=`function`?s:e.pop()}function p(){var e=[...arguments],t=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a(`streams`);var n,r=e.map(function(i,a){var o=a0,function(e){n||=e,e&&r.forEach(u),!o&&(r.forEach(u),t(n))})});return e.reduce(d)}t.exports=p})),kt=F(((e,t)=>{t.exports=r;var n=at().EventEmitter;Z()(r,n),r.Readable=Tt(),r.Writable=yt(),r.Duplex=$(),r.Transform=Et(),r.PassThrough=Dt(),r.finished=St(),r.pipeline=Ot(),r.Stream=r;function r(){n.call(this)}r.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}r.on(`data`,i);function a(){r.readable&&r.resume&&r.resume()}e.on(`drain`,a),!e._isStdio&&(!t||t.end!==!1)&&(r.on(`end`,s),r.on(`close`,c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,typeof e.destroy==`function`&&e.destroy())}function l(e){if(u(),n.listenerCount(this,`error`)===0)throw e}r.on(`error`,l),e.on(`error`,l);function u(){r.removeListener(`data`,i),e.removeListener(`drain`,a),r.removeListener(`end`,s),r.removeListener(`close`,c),r.removeListener(`error`,l),e.removeListener(`error`,l),r.removeListener(`end`,u),r.removeListener(`close`,u),e.removeListener(`close`,u)}return r.on(`end`,u),r.on(`close`,u),e.on(`close`,u),e.emit(`pipe`,r),e}}))();async function*At(e,t,n){let r=1,i={chunks:[],length:0};for await(let a of n(e))for(i.chunks.push(a),i.length+=a.byteLength;i.length>t;){let e=i.chunks.length>1?Y.Buffer.concat(i.chunks):i.chunks[0];yield{partNumber:r,data:e.subarray(0,t)},i.chunks=[e.subarray(t)],i.length=i.chunks[0].byteLength,r+=1}yield{partNumber:r,data:i.chunks.length===1?i.chunks[0]:Y.Buffer.concat(i.chunks),lastPart:!0}}async function*jt(e,t){let n=1,r=0,i=t;for(;i{if(e instanceof Uint8Array)return jt(e,t);if(e instanceof kt.Readable)return At(e,t,Mt);if(e instanceof String||typeof e==`string`)return jt(Y.Buffer.from(e),t);if(typeof e.stream==`function`)return At(e.stream(),t,Nt);if(e instanceof ReadableStream)return At(e,t,Nt);throw Error(`Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.`)},Ft=class e extends lt.EventEmitter{static MIN_PART_SIZE=1024*1024*5;MAX_PARTS=1e4;queueSize=4;partSize;leavePartsOnError=!1;tags=[];client;params;totalBytes;totalBytesSource;bytesUploadedSoFar;abortController;concurrentUploaders=[];createMultiPartPromise;abortMultipartUploadCommand=null;uploadedParts=[];uploadEnqueuedPartsCount=0;expectedPartsCount;uploadId;uploadEvent;isMultiPart=!0;singleUploadResult;sent=!1;constructor(t){if(super(),this.queueSize=t.queueSize||this.queueSize,this.leavePartsOnError=t.leavePartsOnError||this.leavePartsOnError,this.tags=t.tags||this.tags,this.client=t.client,this.params=t.params,!this.params)throw Error(`InputError: Upload requires params to be passed to upload.`);this.totalBytes=this.params.ContentLength??dt(this.params.Body),this.totalBytesSource=ft(this.params.Body,this.params.ContentLength),this.bytesUploadedSoFar=0,this.abortController=t.abortController??new AbortController,this.partSize=t.partSize||Math.max(e.MIN_PART_SIZE,Math.ceil((this.totalBytes||0)/this.MAX_PARTS)),this.totalBytes!==void 0&&(this.expectedPartsCount=Math.ceil(this.totalBytes/this.partSize)),this.__validateInput()}async abort(){this.abortController.abort()}async done(){if(this.sent)throw Error(`@aws-sdk/lib-storage: this instance of Upload has already executed .done(). Create a new instance.`);return this.sent=!0,await Promise.race([this.__doMultipartUpload(),this.__abortTimeout(this.abortController.signal)])}on(e,t){return this.uploadEvent=e,super.on(e,t)}async __uploadUsingPut(e){this.isMultiPart=!1;let t={...this.params,Body:e.data},n=this.client.config,r=n.requestHandler,a=r instanceof lt.EventEmitter?r:null,o=t=>{this.bytesUploadedSoFar=t.loaded,this.totalBytes=t.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:e.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};a!==null&&a.on(`xhr.upload.progress`,o);let s=await Promise.all([this.client.send(new tt(t)),n?.endpoint?.()]),c=s[0],l=s[1];if(l||=i(await g(t,tt,{...n})),!l)throw Error(`Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.`);a!==null&&a.off(`xhr.upload.progress`,o);let u=this.params.Key.split(`/`).map(e=>v(e)).join(`/`),d=v(this.params.Bucket),f=(()=>{let e=l.hostname.startsWith(`${d}.`),t=this.client.config.forcePathStyle,n=l.port?`:${l.port}`:``;return t?`${l.protocol}//${l.hostname}${n}/${d}/${u}`:e?`${l.protocol}//${l.hostname}${n}/${u}`:`${l.protocol}//${d}.${l.hostname}${n}/${u}`})();this.singleUploadResult={...c,Bucket:this.params.Bucket,Key:this.params.Key,Location:f};let p=dt(e.data);this.__notifyProgress({loaded:p,total:p,part:1,Key:this.params.Key,Bucket:this.params.Bucket})}async __createMultipartUpload(){let e=await this.client.config.requestChecksumCalculation();if(!this.createMultiPartPromise){let t={...this.params,Body:void 0};e===`WHEN_SUPPORTED`&&(t.ChecksumAlgorithm=this.params.ChecksumAlgorithm||it.CRC32),this.createMultiPartPromise=this.client.send(new $e(t)).then(e=>(this.abortMultipartUploadCommand=new We({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:e.UploadId}),e))}return this.createMultiPartPromise}async __doConcurrentUpload(e){for await(let t of e){if(this.uploadEnqueuedPartsCount>this.MAX_PARTS)throw Error(`Exceeded ${this.MAX_PARTS} parts in multipart upload to Bucket: ${this.params.Bucket} Key: ${this.params.Key}.`);if(this.abortController.signal.aborted)return;if(t.partNumber===1&&t.lastPart)return await this.__uploadUsingPut(t);if(!this.uploadId){let{UploadId:e}=await this.__createMultipartUpload();if(this.uploadId=e,this.abortController.signal.aborted)return}let e=dt(t.data)||0,n=this.client.config.requestHandler,r=n instanceof lt.EventEmitter?n:null,i=0,a=(n,r)=>{(Number(r.query.partNumber)||-1)===t.partNumber&&(n.total&&e&&(this.bytesUploadedSoFar+=n.loaded-i,i=n.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};r!==null&&r.on(`xhr.upload.progress`,a),this.uploadEnqueuedPartsCount+=1,this.__validateUploadPart(t);let o=await this.client.send(new rt({...this.params,ContentLength:void 0,UploadId:this.uploadId,Body:t.data,PartNumber:t.partNumber}));if(r!==null&&r.off(`xhr.upload.progress`,a),this.abortController.signal.aborted)return;if(!o.ETag)throw Error(`Part ${t.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push({PartNumber:t.partNumber,ETag:o.ETag,...o.ChecksumCRC32&&{ChecksumCRC32:o.ChecksumCRC32},...o.ChecksumCRC32C&&{ChecksumCRC32C:o.ChecksumCRC32C},...o.ChecksumSHA1&&{ChecksumSHA1:o.ChecksumSHA1},...o.ChecksumSHA256&&{ChecksumSHA256:o.ChecksumSHA256}}),r===null&&(this.bytesUploadedSoFar+=e),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}}async __doMultipartUpload(){let e=Pt(this.params.Body,this.partSize),t=[];for(let n=0;n{t.push(e)});this.concurrentUploaders.push(n)}if(await Promise.all(this.concurrentUploaders),t.length>=1)throw await this.markUploadAsAborted(),t[0];if(this.abortController.signal.aborted)throw await this.markUploadAsAborted(),Object.assign(Error(`Upload aborted.`),{name:`AbortError`});let n;if(this.isMultiPart){let{expectedPartsCount:e,uploadedParts:t,totalBytes:r,totalBytesSource:i}=this;if(r!==void 0&&e!==void 0&&t.length!==e)throw Error(`Expected ${e} part(s) but uploaded ${t.length} part(s). The expected part count is based on the byte-count of the input.params.Body, which was read from ${i} and is ${r}. If this is not correct, provide an override value by setting a number to input.params.ContentLength in bytes. -`);this.uploadedParts.sort((e,t)=>e.PartNumber-t.PartNumber);let a={...this.params,Body:void 0,UploadId:this.uploadId,MultipartUpload:{Parts:this.uploadedParts}};n=await this.client.send(new Je(a)),typeof n?.Location==`string`&&n.Location.includes(`%2F`)&&(n.Location=n.Location.replace(/%2F/g,`/`))}else n=this.singleUploadResult;return this.abortMultipartUploadCommand=null,this.tags.length&&await this.client.send(new nt({...this.params,Tagging:{TagSet:this.tags}})),n}async markUploadAsAborted(){this.uploadId&&!this.leavePartsOnError&&this.abortMultipartUploadCommand!==null&&(await this.client.send(this.abortMultipartUploadCommand),this.abortMultipartUploadCommand=null)}__notifyProgress(e){this.uploadEvent&&this.emit(this.uploadEvent,e)}async __abortTimeout(e){return new Promise((t,n)=>{e.onabort=()=>{let e=Error(`Upload aborted.`);e.name=`AbortError`,n(e)}})}__validateUploadPart(e){let t=dt(e.data);if(t===void 0)throw Error(`A dataPart was generated without a measurable data chunk size for part number ${e.partNumber}`);if(!(e.partNumber===1&&e.lastPart)&&!e.lastPart&&t!==this.partSize)throw Error(`The byte size for part number ${e.partNumber}, size ${t} does not match expected size ${this.partSize}`)}__validateInput(){if(!this.client)throw Error(`InputError: Upload requires a AWS client to do uploads with.`);if(this.partSize{n.invalidateQueries({queryKey:[`s3`,`buckets`,t.bucket,`objects`]})}},t[0]=n,t[1]=r),e(r)}async function Lt(e){let{bucket:t,key:n,file:r}=e;return await new Ft({client:h(),params:{Bucket:t,Key:n,Body:r,ContentType:r.type}}).done()}function Rt(){let t=(0,ct.c)(2),n=N(),r;return t[0]===n?r=t[1]:(r={mutationFn:zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`s3`,`buckets`]})}},t[0]=n,t[1]=r),e(r)}async function zt(e){let{bucketName:t}=e,n=new Qe({Bucket:t});return await h().send(n)}function Bt(){let t=(0,ct.c)(2),n=N(),r;return t[0]===n?r=t[1]:(r={mutationFn:Vt,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`s3`,`buckets`,t.bucket,`objects`]})}},t[0]=n,t[1]=r),e(r)}async function Vt(e){let{bucket:t,key:n}=e,r=new et({Bucket:t,Key:n});return await h().send(r)}export{Re as a,q as i,Bt as n,It as r,Rt as t}; \ No newline at end of file +`);this.uploadedParts.sort((e,t)=>e.PartNumber-t.PartNumber);let a={...this.params,Body:void 0,UploadId:this.uploadId,MultipartUpload:{Parts:this.uploadedParts}};n=await this.client.send(new Je(a)),typeof n?.Location==`string`&&n.Location.includes(`%2F`)&&(n.Location=n.Location.replace(/%2F/g,`/`))}else n=this.singleUploadResult;return this.abortMultipartUploadCommand=null,this.tags.length&&await this.client.send(new nt({...this.params,Tagging:{TagSet:this.tags}})),n}async markUploadAsAborted(){this.uploadId&&!this.leavePartsOnError&&this.abortMultipartUploadCommand!==null&&(await this.client.send(this.abortMultipartUploadCommand),this.abortMultipartUploadCommand=null)}__notifyProgress(e){this.uploadEvent&&this.emit(this.uploadEvent,e)}async __abortTimeout(e){return new Promise((t,n)=>{e.onabort=()=>{let e=Error(`Upload aborted.`);e.name=`AbortError`,n(e)}})}__validateUploadPart(e){let t=dt(e.data);if(t===void 0)throw Error(`A dataPart was generated without a measurable data chunk size for part number ${e.partNumber}`);if(!(e.partNumber===1&&e.lastPart)&&!e.lastPart&&t!==this.partSize)throw Error(`The byte size for part number ${e.partNumber}, size ${t} does not match expected size ${this.partSize}`)}__validateInput(){if(!this.client)throw Error(`InputError: Upload requires a AWS client to do uploads with.`);if(this.partSize{n.invalidateQueries({queryKey:[`s3`,`buckets`,t.bucket,`objects`]})}},t[0]=n,t[1]=r),e(r)}async function Lt(e){let{bucket:t,key:n,file:r}=e;return await new Ft({client:h(),params:{Bucket:t,Key:n,Body:r,ContentType:r.type}}).done()}function Rt(){let t=(0,ct.c)(2),n=P(),r;return t[0]===n?r=t[1]:(r={mutationFn:zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`s3`,`buckets`]})}},t[0]=n,t[1]=r),e(r)}async function zt(e){let{bucketName:t}=e,n=new Qe({Bucket:t});return await h().send(n)}function Bt(){let t=(0,ct.c)(2),n=P(),r;return t[0]===n?r=t[1]:(r={mutationFn:Vt,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`s3`,`buckets`,t.bucket,`objects`]})}},t[0]=n,t[1]=r),e(r)}async function Vt(e){let{bucket:t,key:n}=e,r=new et({Bucket:t,Key:n});return await h().send(r)}export{Re as a,q as i,Bt as n,It as r,Rt as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/select.js b/spinifex/services/spinifexui/frontend/dist/assets/select.js index 46b260e78..9e4b68f4d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/select.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/select.js @@ -1 +1 @@ -import{t as e}from"./check.js";import{t}from"./chevron-down.js";import{$a as n,Aa as r,Ao as i,Ba as a,Ca as o,Co as s,Di as c,Ea as l,Ei as u,Eo as d,Fa as f,Fi as p,Ga as m,Ho as h,Ia as g,Ja as _,Ka as v,Ki as y,La as b,Li as x,Ma as S,Mi as C,Na as ee,Ni as w,Oa as T,Pi as E,Qa as D,Ra as O,Ri as k,Ro as A,Sa as j,So as te,Ti as M,To as N,Ua as P,Uo as ne,Vo as F,Wo as re,Xa as ie,Ya as ae,Za as I,_a as L,_o as R,aa as z,ao as B,as as V,bo as oe,bs as H,ca as U,co as W,cs as G,da as K,do as se,ds as ce,eo as q,fa as le,fo as ue,fs as de,ga as fe,go as pe,ha as me,ho as he,ia as J,io as ge,is as Y,ja as _e,ka as ve,la as ye,lo as be,ls as xe,ma as Se,mo as Ce,na as we,no as Te,oa as Ee,oo as De,os as Oe,pa as ke,po as Ae,ra as je,ro as Me,sa as Ne,so as X,ss as Pe,ta as Fe,to as Ie,ts as Le,ua as Re,uo as ze,us as Be,vo as Ve,wi as He,wo as Ue,xa as We,xo as Ge,yo as Ke,ys as qe,za as Je,zs as Ye}from"./index.js";var Xe=Le(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Z=qe(),Q=Ye(H()),Ze=Q.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:Pe,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function Qe(){return Q.useContext(Ze)}function $e(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,{enabled:i=!0,event:a=`click`,toggle:o=!0,ignoreMouse:s=!1,stickIfOpen:c=!0,touchOpenDelay:l=0,reason:u=f}=t,d=Q.useRef(void 0),p=m(),h=v(),g=Q.useMemo(()=>({onPointerDown(e){d.current=e.pointerType},onMouseDown(e){let t=d.current,i=e.nativeEvent,f=n.select(`open`);if(e.button!==0||a===`click`||De(t,!0)&&s)return;let m=r.current.openEvent,g=m?.type,_=n.select(`domReferenceElement`)!==e.currentTarget,v=f&&_||!(f&&o&&(!(m&&c)||g===`click`||g===`mousedown`)),y=he(i);if(ue(y)){let e=T(u,i,y);v&&t===`touch`&&l>0?h.start(l,()=>{n.setOpen(!0,e)}):n.setOpen(v,e);return}let b=e.currentTarget;p.request(()=>{let e=T(u,i,b);v&&t===`touch`&&l>0?h.start(l,()=>{n.setOpen(!0,e)}):n.setOpen(v,e)})},onClick(e){if(a===`mousedown-only`)return;let t=d.current;if(a===`mousedown`&&t){d.current=void 0;return}if(De(t,!0)&&s)return;let i=n.select(`open`),f=r.current.openEvent,p=n.select(`domReferenceElement`)!==e.currentTarget,m=i&&p||!(i&&o&&(!(f&&c)||B(f))),g=T(u,e.nativeEvent,e.currentTarget);m&&t===`touch`&&l>0?h.start(l,()=>{n.setOpen(!0,g)}):n.setOpen(m,g)},onKeyDown(){d.current=void 0}}),[r,a,s,n,c,o,p,h,l,u]);return Q.useMemo(()=>i?{reference:g}:Oe,[i,g])}var et=`Escape`;function tt(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function nt(e,t){return tt(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function rt(e,t,n){return tt(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function it(e,t,n){return tt(t,n?e===R:e===Ve,e===pe)}function at(e,t,n,r){return t===`both`||t===`horizontal`&&r&&r>1?e===et:tt(t,n?e===Ve:e===R,e===Ke)}function ot(e,t){let i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,{listRef:l,activeIndex:u,onNavigate:d=()=>{},enabled:f=!0,selectedIndex:p=null,allowEscape:m=!1,loopFocus:g=!1,nested:v=!1,rtl:y=!1,virtual:b=!1,focusItemOnOpen:x=`auto`,focusItemOnHover:C=!0,openOnArrowKeyDown:ee=!0,disabledIndices:w=void 0,orientation:E=`vertical`,parentOrientation:O,cols:k=1,id:A,resetOnPointerLeave:j=!0,externalTree:te}=t,M=fe(ze(o)),N=ye(),P=Re(te);F(()=>{c.current.orientation=E},[c,E]);let ne=se(s),L=Q.useRef(x),R=Q.useRef(p??-1),z=Q.useRef(null),B=Q.useRef(!0),V=h(e=>{d(R.current===-1?null:R.current,e)}),oe=Q.useRef(V),H=Q.useRef(!!o),U=Q.useRef(a),G=Q.useRef(!1),K=Q.useRef(!1),ce=Q.useRef(null),le=fe(w),ue=fe(a),de=fe(p),pe=fe(j),me=h(()=>{function e(e){b?P?.events.emit(`virtualfocus`,e):ce.current=ke(e,{sync:G.current,preventScroll:!0})}let t=l.current[R.current],n=K.current;t&&e(t),(G.current?e=>e():requestAnimationFrame)(()=>{let r=l.current[R.current]||t;r&&(t||e(r),Y&&(n||!B.current)&&r.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});F(()=>{f&&(a&&o?(R.current=p??-1,L.current&&p!=null&&(K.current=!0,V())):H.current&&(R.current=-1,oe.current()))},[f,a,o,p,V]),F(()=>{if(f){if(!a){G.current=!1;return}if(o)if(u==null){if(G.current=!1,de.current!=null)return;if(H.current&&(R.current=-1,me()),(!U.current||!H.current)&&L.current&&(z.current!=null||L.current===!0&&z.current==null)){let e=0,t=()=>{l.current[0]==null?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(R.current=z.current==null||rt(z.current,E,y)||v?q(l):n(l),z.current=null,V())};t()}}else Te(l.current,u)||(R.current=u,me(),K.current=!1)}},[f,a,o,u,de,v,l,E,y,V,me,le]),F(()=>{if(!f||o||!P||b||!H.current)return;let e=P.nodesRef.current,t=e.find(e=>e.id===N)?.context?.elements.floating,n=Ae(Ge(o)),r=e.some(e=>e.context&&Ce(e.context.elements.floating,n));t&&!r&&B.current&&t.focus({preventScroll:!0})},[f,o,P,N,b]),F(()=>{oe.current=V,U.current=a,H.current=!!o}),F(()=>{a||(z.current=null,L.current=x)},[a,x]);let J=u!=null,ge=h(e=>{if(!ue.current)return;let t=l.current.indexOf(e.currentTarget);t!==-1&&(R.current!==t||u!==t)&&(R.current=t,V(e))}),Y=Q.useMemo(()=>({onFocus(e){G.current=!0,ge(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){G.current=!0,K.current=!1,C&&ge(e)},onPointerLeave(e){if(!ue.current||!B.current||e.pointerType===`touch`)return;G.current=!0;let t=e.relatedTarget;if(!(!C||l.current.includes(t))&&pe.current&&(ce.current?.(),ce.current=null,R.current=-1,V(e),!b)){let e=M.current,t=Ae(Ge(e));e&&Ce(e,t)&&e.focus({preventScroll:!0})}}}),[ge,ue,M,C,l,V,pe,b]),_e=Q.useCallback(()=>O??P?.nodesRef.current.find(e=>e.id===N)?.context?.dataRef?.current.orientation,[N,P,O]),ve=h(e=>{if(B.current=!1,G.current=!0,e.which===229||!ue.current&&e.currentTarget===M.current)return;if(v&&at(e.key,E,y,k)){nt(e.key,_e())||be(e),i.setOpen(!1,T(S,e.nativeEvent)),re(s)&&(b?P?.events.emit(`virtualfocus`,s):s.focus());return}let t=R.current,r=q(l,w),o=n(l,w);if(ne||(e.key===`Home`&&(be(e),R.current=r,V(e)),e.key===`End`&&(be(e),R.current=o,V(e))),k>1){let t=Array.from({length:l.current.length},()=>({width:1,height:1})),n=_(t,k,!1),i=n.findIndex(e=>e!=null&&!Me(l.current,e,w)),a=n.reduce((e,t,n)=>t!=null&&!Me(l.current,t,w)?n:e,-1),s=n[D(n.map(e=>e==null?null:l.current[e]),{event:e,orientation:E,loopFocus:g,rtl:y,cols:k,disabledIndices:I([...(typeof w==`function`?null:w)||l.current.map((e,t)=>Me(l.current,t,w)?t:void 0),void 0],n),minIndex:i,maxIndex:a,prevIndex:ie(R.current>o?r:R.current,t,n,k,e.key===`ArrowDown`?`bl`:e.key===(y?`ArrowLeft`:`ArrowRight`)?`tr`:`tl`),stopEvent:!0})];if(s!=null&&(R.current=s,V(e)),E===`both`)return}if(nt(e.key,E)){if(be(e),a&&!b&&Ae(e.currentTarget.ownerDocument)===e.currentTarget){R.current=rt(e.key,E,y)?r:o,V(e);return}rt(e.key,E,y)?g?t>=o?m&&t!==l.current.length?R.current=-1:(G.current=!1,R.current=r):R.current=ae(l.current,{startingIndex:t,disabledIndices:w}):R.current=Math.min(o,ae(l.current,{startingIndex:t,disabledIndices:w})):g?t<=r?m&&t!==-1?R.current=l.current.length:(G.current=!1,R.current=o):R.current=ae(l.current,{startingIndex:t,decrement:!0,disabledIndices:w}):R.current=Math.max(r,ae(l.current,{startingIndex:t,decrement:!0,disabledIndices:w})),Te(l.current,R.current)&&(R.current=-1),V(e)}}),xe=Q.useMemo(()=>b&&a&&J&&{"aria-activedescendant":`${A}-${u}`},[b,a,J,A,u]),Se=Q.useMemo(()=>({"aria-orientation":E===`both`?void 0:E,...ne?{}:xe,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&a&&!b){let t=he(e.nativeEvent);if(t&&!Ce(M.current,t))return;be(e),i.setOpen(!1,T(r,e.nativeEvent)),re(s)&&s.focus();return}ve(e)},onPointerMove(){B.current=!0}}),[xe,ve,M,E,ne,i,a,b,s]),we=Q.useMemo(()=>{function e(e){x===`auto`&&X(e.nativeEvent)&&(L.current=!b)}function t(e){L.current=x,x===`auto`&&W(e.nativeEvent)&&(L.current=!0)}return{onKeyDown(e){let t=i.select(`open`);B.current=!1;let n=e.key.startsWith(`Arrow`),r=it(e.key,_e(),y),a=nt(e.key,E),o=(v?r:a)||e.key===`Enter`||e.key.trim()===``;if(b&&t)return ve(e);if(!(!t&&!ee&&n)){if(o){let t=nt(e.key,_e());z.current=v&&t?null:e.key}if(v){r&&(be(e),t?(R.current=q(l,le.current),V(e)):i.setOpen(!0,T(S,e.nativeEvent,e.currentTarget)));return}a&&(de.current!=null&&(R.current=de.current),be(e),!t&&ee?i.setOpen(!0,T(S,e.nativeEvent,e.currentTarget)):ve(e),t&&V(e))}},onFocus(e){i.select(`open`)&&!b&&(R.current=-1,V(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[ve,le,x,l,v,V,i,ee,E,_e,y,de,b]),Ee=Q.useMemo(()=>({...xe,...we}),[xe,we]);return Q.useMemo(()=>f?{reference:Ee,floating:Se,item:Y,trigger:we}:{},[f,Ee,Se,we,Y])}function st(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,i=n.useState(`open`),{listRef:a,elementsRef:o,activeIndex:s,onMatch:c,onTypingChange:l,enabled:u=!0,resetMs:d=750,selectedIndex:f=null}=t,p=v(),m=Q.useRef(``),g=Q.useRef(f??s??-1),_=Q.useRef(null);F(()=>{!i&&f!==null||(p.clear(),_.current=null,m.current!==``&&(m.current=``))},[i,f,p]),F(()=>{i&&m.current===``&&(g.current=f??s??-1)},[i,f,s]);let y=h(e=>{e?r.current.typing||(r.current.typing=e,l?.(e)):r.current.typing&&(r.current.typing=e,l?.(e))}),b=h(e=>{function t(e){let t=o?.current[e];return!t||Ie(t)}function n(e,n,r=0){if(e.length===0)return-1;let i=(r%e.length+e.length)%e.length,a=n.toLocaleLowerCase();for(let n=0;n0&&e.key===` `&&(be(e),y(!0)),m.current.length>0&&m.current[0]!==` `&&n(r,m.current)===-1&&e.key!==` `&&y(!1),r==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;i&&e.key!==` `&&(be(e),y(!0));let l=m.current===``;l&&(g.current=f??s??-1),r.every(e=>e?e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase():!0)&&m.current===e.key&&(m.current=``,g.current=_.current),m.current+=e.key,p.start(d,()=>{m.current=``,g.current=_.current,y(!1)});let u=((l?f??s??-1:g.current)??0)+1,h=n(r,m.current,u);h===-1?e.key!==` `&&(m.current=``,y(!1)):(c?.(h),_.current=h)}),x=h(e=>{let t=e.relatedTarget,r=n.select(`domReferenceElement`),i=n.select(`floatingElement`),a=Ce(r,t),o=Ce(i,t);a||o||(p.clear(),m.current=``,g.current=_.current,y(!1))}),S=Q.useMemo(()=>({onKeyDown:b,onBlur:x}),[b,x]),C=Q.useMemo(()=>({onKeyDown:b,onBlur:x}),[b,x]);return Q.useMemo(()=>u?{reference:S,floating:C}:{},[u,S,C])}function ct(e){let[t,n]=Q.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}var lt=Q.createContext(null),ut=Q.createContext(null);function dt(){let e=Q.useContext(lt);if(e===null)throw Error(Be(60));return e}function ft(){let e=Q.useContext(ut);if(e===null)throw Error(Be(61));return e}var pt=(e,t)=>Object.is(e,t);function mt(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function ht(e,t,n){return!e||e.length===0?!1:e.some(e=>e===void 0?!1:mt(t,e,n))}function gt(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e===void 0?!1:mt(e,t,n))}function _t(e,t,n){return e.filter(e=>!mt(t,e,n))}function vt(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function yt(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function bt(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(yt(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function xt(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return vt(e)}function St(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?vt(e.value):vt(e)}function Ct(e,t,n){function r(){return xt(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=yt(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function wt(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,Z.jsx)(Q.Fragment,{children:Ct(r,t,n)},i)),e),[])}var $={id:z(e=>e.id),labelId:z(e=>e.labelId),modal:z(e=>e.modal),multiple:z(e=>e.multiple),items:z(e=>e.items),itemToStringLabel:z(e=>e.itemToStringLabel),itemToStringValue:z(e=>e.itemToStringValue),isItemEqualToValue:z(e=>e.isItemEqualToValue),value:z(e=>e.value),hasSelectedValue:z(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:St(t,r)!==``}),hasNullItemLabel:z((e,t)=>t?bt(e.items):!1),open:z(e=>e.open),mounted:z(e=>e.mounted),forceMount:z(e=>e.forceMount),transitionStatus:z(e=>e.transitionStatus),openMethod:z(e=>e.openMethod),activeIndex:z(e=>e.activeIndex),selectedIndex:z(e=>e.selectedIndex),isActive:z((e,t)=>e.activeIndex===t),isSelected:z((e,t,n)=>{let r=e.isItemEqualToValue,i=e.value;return e.multiple?Array.isArray(i)&&i.some(e=>mt(n,e,r)):e.selectedIndex===t&&e.selectedIndex!==null?!0:mt(n,i,r)}),isSelectedByFocus:z((e,t)=>e.selectedIndex===t),popupProps:z(e=>e.popupProps),triggerProps:z(e=>e.triggerProps),triggerElement:z(e=>e.triggerElement),positionerElement:z(e=>e.positionerElement),listElement:z(e=>e.listElement),scrollUpArrowVisible:z(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:z(e=>e.scrollDownArrowVisible),hasScrollArrows:z(e=>e.hasScrollArrows)};function Tt(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function Et(e,t){return Math.max(0,e-t)}function Dt(e,t){if(t<=0)return 0;let n=Tt(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}function Ot(e){let{id:t,value:n,defaultValue:r=null,onValueChange:i,open:o,defaultOpen:s=!1,onOpenChange:c,name:l,form:u,autoComplete:d,disabled:f=!1,readOnly:m=!1,required:g=!1,modal:_=!0,actionsRef:v,inputRef:y,onOpenChangeComplete:x,items:S,multiple:E=!1,itemToStringLabel:D,itemToStringValue:k,isItemEqualToValue:A=pt,highlightItemOnHover:j=!0,children:M}=e,{clearErrors:P}=Qe(),{setDirty:ne,setTouched:re,setFocused:ie,shouldValidateOnChange:ae,validityData:I,setFilled:L,name:R,disabled:z,validation:B,validationMode:oe}=N(),H=te({id:t}),U=z||f,W=R??l,[K,se]=O({controlled:n,default:E?r??V:r,name:`Select`,state:`value`}),[q,le]=O({controlled:o,default:s,name:`Select`,state:`open`}),ue=Q.useRef([]),de=Q.useRef([]),pe=Q.useRef(null),he=Q.useRef(null),ge=Q.useRef(0),Y=Q.useRef(null),_e=Q.useRef([]),ve=Q.useRef(!1),ye=Q.useRef(!1),be=Q.useRef(null),Ce=Q.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),Te=Q.useRef(!1),{mounted:Ee,setMounted:De,transitionStatus:ke}=Je(q),{openMethod:Ae,triggerProps:Me}=C(q),X=xe(()=>new je({id:H,labelId:void 0,modal:_,multiple:E,itemToStringLabel:D,itemToStringValue:k,isItemEqualToValue:A,value:K,open:q,mounted:Ee,transitionStatus:ke,items:S,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,Pe=J(X,$.activeIndex),Ie=J(X,$.selectedIndex),Le=J(X,$.triggerElement),Re=J(X,$.positionerElement),ze=ct(Ae),Be=Ae??ze,Ve=Q.useMemo(()=>E&&Array.isArray(K)&&K.length===0?``:St(K,k),[E,K,k]),He=Q.useMemo(()=>E&&Array.isArray(K)?K.map(e=>St(e,k)):St(K,k),[E,K,k]);b(fe(X.state.triggerElement),{id:H,value:K,getValue:h(()=>He)});let Ue=Q.useRef(K);F(()=>{K!==Ue.current&&X.set(`forceMount`,!0)},[X,K]),F(()=>{L(E?Array.isArray(K)&&K.length>0:K!=null)},[E,K,L]),F(function(){if(q)return;let e=_e.current;if(E){let t=Array.isArray(K)?K:[];if(t.length===0){X.set(`selectedIndex`,null);return}let n=t[t.length-1],r=gt(e,n,A);X.set(`selectedIndex`,r===-1?null:r);return}let t=gt(e,K,A);X.set(`selectedIndex`,t===-1?null:t)},[E,q,K,_e,A,X]),w(K,()=>{P(W),ne(K!==I.initialValue),ae()?B.commit(K):B.commit(K,!0)});let We=h((e,t)=>{if(c?.(e,t),!t.isCanceled&&(le(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(re(!0),ie(!1),oe===`onBlur`&&B.commit(K)),!e&&X.state.activeIndex!==null)){let e=ue.current[X.state.activeIndex];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}}),Ge=h(()=>{De(!1),X.update({activeIndex:null,openMethod:null}),x?.(!1)});a({enabled:!v,open:q,ref:pe,onComplete(){q||Ge()}}),Q.useImperativeHandle(v,()=>({unmount:Ge}),[Ge]);let Ke=h((e,t)=>{i?.(e,t),!t.isCanceled&&se(e)}),qe=h(()=>{let e=X.state.listElement||pe.current;if(!e)return;let t=Et(e.scrollHeight,e.clientHeight),n=Dt(e.scrollTop,t),r=n>0,i=nce(Xe(),Me,H?{id:H}:Oe),[Xe,Me,H]);p(()=>{X.update({popupProps:Ze(),triggerProps:tt})}),F(()=>{X.update({id:H,modal:_,multiple:E,value:K,open:q,mounted:Ee,transitionStatus:ke,popupProps:Ze(),triggerProps:tt,items:S,itemToStringLabel:D,itemToStringValue:k,isItemEqualToValue:A,openMethod:Be})},[X,H,_,E,K,q,Ee,ke,Ze,tt,S,D,k,A,Be]);let nt=Q.useMemo(()=>({store:X,name:W,required:g,disabled:U,readOnly:m,multiple:E,highlightItemOnHover:j,setValue:Ke,setOpen:We,listRef:ue,popupRef:pe,scrollHandlerRef:he,handleScrollArrowVisibility:qe,scrollArrowsMountedCountRef:ge,getItemProps:et,events:Ye.context.events,valueRef:Y,valuesRef:_e,labelsRef:de,typingRef:ve,selectionRef:Ce,selectedItemTextRef:be,validation:B,onOpenChangeComplete:x,keyboardActiveRef:ye,alignItemWithTriggerActiveRef:Te,initialValueRef:Ue}),[X,W,g,U,m,E,j,Ke,We,et,Ye.context.events,B,x,qe]),rt=G(y,B.inputRef),it=E&&Array.isArray(K)&&K.length>0,at=E?void 0:W,dt=Q.useMemo(()=>!E||!Array.isArray(K)||!W?null:K.map(e=>{let t=St(e,k);return(0,Z.jsx)(`input`,{type:`hidden`,form:u,name:W,value:t},t)}),[E,K,u,W,k]);return(0,Z.jsx)(lt.Provider,{value:nt,children:(0,Z.jsxs)(ut.Provider,{value:Ye,children:[M,(0,Z.jsx)(`input`,{...B.getInputValidationProps({onFocus(){X.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.currentTarget.value,n=T(ee,e.nativeEvent);function r(){if(E)return;let e=_e.current.find(e=>St(e,k).toLowerCase()===t.toLowerCase()||xt(e,D).toLowerCase()===t.toLowerCase());e!=null&&(ne(e!==I.initialValue),Ke(e,n),ae()&&B.commit(e))}X.set(`forceMount`,!0),queueMicrotask(r)}}),id:H&&at==null?`${H}-hidden-input`:void 0,form:u,name:at,autoComplete:d,value:Ve,disabled:U,required:g&&!it,readOnly:m,ref:rt,style:W?me:Se,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),dt]})})}function kt(e,t){return e??t}function At(e){let t=e.getBoundingClientRect(),n=ne(e),r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(!(r.content!==`none`||i.content!==`none`))return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}var jt=2,Mt=400,Nt=200,Pt={...j,...d,value:()=>null},Ft=Q.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:o=!0,style:c,...l}=e,{setTouched:u,setFocused:d,validationMode:f,state:p,disabled:m}=N(),{labelId:g}=s(),{store:_,setOpen:y,selectionRef:b,validation:x,readOnly:S,required:C,alignItemWithTriggerActiveRef:w,disabled:E,keyboardActiveRef:D}=dt(),O=m||E||a,k=J(_,$.open),j=J(_,$.value),M=J(_,$.triggerProps),P=J(_,$.positionerElement),ne=J(_,$.listElement),F=J(_,$.id),re=J(_,$.labelId),ie=J(_,$.hasSelectedValue),ae=!ie&&k,I=J(_,$.hasNullItemLabel,ae),L=i??F,R=kt(g,re);te({id:L});let z=fe(P),B=Q.useRef(null),{getButtonProps:V,buttonRef:oe}=A({disabled:O,native:o}),H=G(t,B,oe,h(e=>{_.set(`triggerElement`,e)})),U=v(),W=v(),K=v(),se=v();Q.useEffect(()=>{if(k)return ie||I?se.start(Nt,()=>{b.current.allowUnselectedMouseUp=!0,K.start(Nt,()=>{b.current.allowSelectedMouseUp=!0})}):K.start(Mt,()=>{b.current.allowUnselectedMouseUp=!0,b.current.allowSelectedMouseUp=!0}),()=>{K.clear(),se.clear()};b.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},W.clear()},[k,ie,I,b,W,K,se]);let q=Q.useMemo(()=>ne?.id??ze(P)?.id,[ne,P]),le=ce(M,{id:L,role:`combobox`,"aria-expanded":k?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":k?q:void 0,"aria-labelledby":R,"aria-readonly":S||void 0,"aria-required":C||void 0,tabIndex:O?-1:0,ref:H,onFocus(e){d(!0),k&&w.current&&y(!1,T(ee,e.nativeEvent)),U.start(0,()=>{_.set(`forceMount`,!0)})},onBlur(e){Ce(P,e.relatedTarget)||(u(!0),d(!1),f===`onBlur`&&x.commit(j))},onPointerMove(){D.current=!1},onKeyDown(){D.current=!0},onMouseDown(e){if(k)return;let t=Ge(e.currentTarget);function n(e){if(!B.current)return;let t=e.target;if(Ce(B.current,t)||Ce(z.current,t)||t===B.current)return;let n=At(B.current);e.clientX>=n.left-jt&&e.clientX<=n.right+jt&&e.clientY>=n.top-jt&&e.clientY<=n.bottom+jt||y(!1,T(ve,e))}W.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},x.getValidationProps,l,V);le.role=`combobox`;let ue={...p,open:k,disabled:O,value:j,readOnly:S,placeholder:!ie};return Y(`button`,e,{ref:[t,B],state:ue,stateAttributesMapping:Pt,props:le})}),It={value:()=>null},Lt=Q.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:l}=dt(),u=J(c,$.value),d=J(c,$.items),f=J(c,$.itemToStringLabel),p=J(c,$.hasSelectedValue),m=!p&&a!=null&&i==null,h=J(c,$.hasNullItemLabel,m),g={value:u,placeholder:!p},_=null;return _=typeof i==`function`?i(u):i??(!p&&a!=null&&!h?a:Array.isArray(u)?wt(u,d,f):Ct(u,d,f)),Y(`span`,e,{state:g,ref:[t,l],props:[{children:_},s],stateAttributesMapping:It})}),Rt=Q.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{store:s}=dt();return Y(`span`,e,{state:{open:J(s,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:o})}),zt=Q.createContext(void 0),Bt=Q.forwardRef(function(e,t){let{store:n}=dt(),r=J(n,$.mounted),i=J(n,$.forceMount);return r||i?(0,Z.jsx)(zt.Provider,{value:!0,children:(0,Z.jsx)(K,{ref:t,...e})}):null}),Vt=Q.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Ht(){return Q.useContext(Vt)}function Ut(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=h(i),o=Q.useRef(0),s=xe(Gt).current,c=xe(Wt).current,[l,u]=Q.useState(0),d=Q.useRef(l),f=h((e,t)=>{c.set(e,t??null),d.current+=1,u(d.current)}),p=h(e=>{c.delete(e),d.current+=1,u(d.current)}),m=Q.useMemo(()=>{let e=new Map;return Array.from(c.keys()).filter(e=>e.isConnected).sort(Kt).forEach((t,n)=>{let r=c.get(t)??{};e.set(t,{...r,index:n})}),e},[c,l]);F(()=>{if(typeof MutationObserver!=`function`||m.size===0)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),t.size===0&&(d.current+=1,u(d.current))});return m.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[m]),F(()=>{d.current===l&&(n.current.length!==m.size&&(n.current.length=m.size),r&&r.current.length!==m.size&&(r.current.length=m.size),o.current=m.size),a(m)},[a,m,n,r,l]),F(()=>()=>{n.current=[]},[n]),F(()=>()=>{r&&(r.current=[])},[r]);let g=h(e=>(s.add(e),()=>{s.delete(e)}));F(()=>{s.forEach(e=>e(m))},[s,m]);let _=Q.useMemo(()=>({register:f,unregister:p,subscribeMapChange:g,elementsRef:n,labelsRef:r,nextIndexRef:o}),[f,p,g,n,r,o]);return(0,Z.jsx)(Vt.Provider,{value:_,children:t})}function Wt(){return new Map}function Gt(){return new Set}function Kt(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}var qt=Q.createContext(void 0);function Jt(){let e=Q.useContext(qt);if(!e)throw Error(Be(59));return e}function Yt(e,t){e&&Object.assign(e.style,t)}var Xt={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Zt=20;function Qt(e,t,n,r){let[i,a]=Q.useState(!1);F(()=>{if(!e||!t||n==null){a(!1);return}let r=Ge(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Zt)},[e,t,n]),E(e&&(!t||i),r)}var $t={position:`fixed`},en=Q.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:p=5,sticky:m=!1,disableAnchorTracking:g,alignItemWithTrigger:_=!0,collisionAvoidance:v=le,style:y,...b}=e,{store:S,listRef:C,labelsRef:w,alignItemWithTriggerActiveRef:E,selectedItemTextRef:D,valuesRef:O,initialValueRef:A,popupRef:j,setValue:te}=dt(),M=ft(),N=J(S,$.open),P=J(S,$.mounted),ne=J(S,$.modal),re=J(S,$.value),ie=J(S,$.openMethod),ae=J(S,$.positionerElement),I=J(S,$.triggerElement),L=J(S,$.isItemEqualToValue),R=J(S,$.transitionStatus),z=Q.useRef(null),B=Q.useRef(null),[V,oe]=Q.useState(_),H=P&&V&&ie!==`touch`;!P&&V!==_&&oe(_),F(()=>{P||($.scrollUpArrowVisible(S.state)&&S.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(S.state)&&S.set(`scrollDownArrowVisible`,!1))},[S,P]),Q.useImperativeHandle(E,()=>H),Qt((H||ne)&&N,ie===`touch`,ae,I);let U=u({anchor:n,floatingRootContext:M,positionMethod:r,mounted:P,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:g??H,collisionAvoidance:v,keepMounted:!0}),W=H?`none`:U.side,G=H?$t:U.positionerStyles,K=He(e,{open:N,side:W,align:U.align,anchorHidden:U.anchorHidden},{styles:G,transitionStatus:R,props:b,refs:[t,h(e=>{S.set(`positionerElement`,e)})],hidden:!P,inert:!N}),se=Q.useRef(0),ce=h(e=>{if(e.size===0&&se.current===0||O.current.length===0)return;let t=se.current;if(se.current=e.size,e.size===t)return;let n=T(ee);if(t!==0&&!S.state.multiple&&re!==null&>(O.current,re,L)===-1){let e=A.current,t=e!=null&>(O.current,e,L)!==-1?e:null;te(t,n),t===null&&(S.set(`selectedIndex`,null),D.current=null)}if(t!==0&&S.state.multiple&&Array.isArray(re)){let e=e=>gt(O.current,e,L)!==-1,t=re.filter(t=>e(t));(t.length!==re.length||t.some(e=>!ht(re,e,L)))&&(te(t,n),t.length===0&&(S.set(`selectedIndex`,null),D.current=null))}if(N&&H){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};Yt(ae,e),Yt(j.current,e)}}),q=Q.useMemo(()=>({...U,side:W,alignItemWithTriggerActive:H,setControlledAlignItemWithTrigger:oe,scrollUpArrowRef:z,scrollDownArrowRef:B}),[U,W,H,oe]);return(0,Z.jsx)(Ut,{elementsRef:C,labelsRef:w,onMapChange:ce,children:(0,Z.jsxs)(qt.Provider,{value:q,children:[P&&ne&&(0,Z.jsx)(x,{inert:k(!N),cutout:I}),K]})})}),tn=`base-ui-disable-scrollbar`,nn={className:tn,getElement(e){return(0,Z.jsx)(`style`,{nonce:e,href:tn,precedence:`base-ui:low`,children:`.${tn}{scrollbar-width:none}.${tn}::-webkit-scrollbar{display:none}`})}},rn=Q.createContext(void 0);function an(e){let t=Q.useContext(rn);if(t===void 0&&!e)throw Error(Be(69));return t}var on=Q.createContext(void 0),sn={disableStyleElements:!1};function cn(){return Q.useContext(on)??sn}var ln={...We,...P},un=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:o,...s}=e,{store:l,popupRef:u,onOpenChangeComplete:d,setOpen:f,valueRef:p,selectedItemTextRef:_,keyboardActiveRef:v,multiple:b,handleScrollArrowVisibility:x,scrollHandlerRef:S,listRef:C,highlightItemOnHover:ee}=dt(),{side:w,align:E,alignItemWithTriggerActive:D,isPositioned:O,setControlledAlignItemWithTrigger:k,scrollDownArrowRef:A,scrollUpArrowRef:j}=Jt(),te=an(!0)!=null,N=ft(),P=c(),{nonce:re,disableStyleElements:ie}=cn(),ae=J(l,$.id),I=J(l,$.open),R=J(l,$.mounted),z=J(l,$.popupProps),B=J(l,$.transitionStatus),V=J(l,$.triggerElement),H=J(l,$.positionerElement),W=J(l,$.listElement),G=Q.useRef(!1),K=Q.useRef(!1),se=Q.useRef({}),ce=m(),q=h(e=>{if(!H||!u.current||!K.current)return;if(G.current||!D){x();return}let t=H.style.top===`0px`,n=H.style.bottom===`0px`;if(!t&&!n){x();return}let r=pn(H),i=mn(H.getBoundingClientRect().height,`y`,r),a=Ge(H),o=getComputedStyle(H),s=parseFloat(o.marginTop),c=parseFloat(o.marginBottom),l=dn(getComputedStyle(u.current)),d=Math.min(a.documentElement.clientHeight-s-c,l),f=e.scrollTop,p=fn(e),m=0,h=null,g=!1,_=!1,v=e=>{H.style.height=`${e}px`},y=(t,n)=>{let r=Tt(t,0,d-i);r>0&&v(i+r),e.scrollTop=n,d-(i+r)<=1&&(G.current=!0),x()},b=t?p-f:f,S=Math.min(i+b,d);if(m=S,b<=1){y(b,t?p:0);return}if(d-S>1?t?_=!0:h=0:(g=!0,n&&f1&&(e.scrollTop=n)}(g||m>=d-1)&&(G.current=!0),x()});Q.useImperativeHandle(S,()=>q,[q]),a({open:I,ref:u,onComplete(){I&&d?.(!0)}});let le={open:I,transitionStatus:B,side:w,align:E};F(()=>{!H||!u.current||Object.keys(se.current).length||(se.current={top:H.style.top||`0`,left:H.style.left||`0`,right:H.style.right,height:H.style.height,bottom:H.style.bottom,minHeight:H.style.minHeight,maxHeight:H.style.maxHeight,marginTop:H.style.marginTop,marginBottom:H.style.marginBottom})},[u,H]),F(()=>{I||D||(K.current=!1,G.current=!1,Yt(H,se.current))},[I,D,H,u]),F(()=>{let e=u.current;if(!I||!V||!H||!e||D&&!O||l.state.transitionStatus===`ending`)return;if(!D){K.current=!0,ce.request(x),e.style.removeProperty(`--transform-origin`);return}let t=_n(e);e.style.removeProperty(`--transform-origin`);try{let t=_.current,n=p.current,r=getComputedStyle(H),i=getComputedStyle(e),a=Ge(V),o=ne(H),s=pn(V),c=hn(V.getBoundingClientRect(),s),u=hn(H.getBoundingClientRect(),s),d=c.height,f=W||e,m=f.scrollHeight,h=parseFloat(i.borderBottomWidth),g=parseFloat(r.marginTop)||10,v=parseFloat(r.marginBottom)||10,y=parseFloat(r.minHeight)||100,b=dn(i),S=a.documentElement.clientHeight-g-v,w=a.documentElement.clientWidth,T=S-c.bottom+d,E,D=P===`rtl`?c.right-u.width:c.left,O=0;if(t&&n){let e=hn(n.getBoundingClientRect(),s);E=hn(t.getBoundingClientRect(),s),D=u.left+(P===`rtl`?e.right-E.right:e.left-E.left);let r=e.top-c.top+e.height/2;O=E.top-u.top+E.height/2-r}let A=T+O+v+h,j=Math.min(S,A),te=S-g-v,M=A-j,N=w-5;H.style.left=`${Tt(D,5,N-u.width)}px`,H.style.height=`${j}px`,H.style.maxHeight=`auto`,H.style.marginTop=`${g}px`,H.style.marginBottom=`${v}px`,e.style.height=`100%`;let F=fn(f),re=M>=F-1;re&&(j=Math.min(S,u.height)-(M-F));let ie=c.top<20||c.bottom>S-20||Math.ceil(j)+1=te?`0`:`${e}px`,H.style.height=`${j}px`,f.scrollTop=fn(f)}else H.style.bottom=`0`,f.scrollTop=M;if(E){let t=u.top,n=u.height,r=E.top+E.height/2,i=Tt(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(I===S||j>=b)&&(G.current=!0),x(),ee&&l.state.selectedIndex===null&&l.state.activeIndex===null&&C.current[0]!=null&&l.set(`activeIndex`,0),K.current=!0}finally{t()}},[l,I,H,V,p,_,u,x,D,k,ce,A,j,W,C,ee,P,O]),Q.useEffect(()=>{if(!D||!H||!I)return;let e=ne(H);function t(e){f(!1,T(g,e))}return L(e,`resize`,t)},[f,D,H,I]);let ue={...W?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":b||void 0,id:`${ae}-list`},onKeyDown(e){v.current=!0,te&&y.has(e.key)&&e.stopPropagation()},onMouseMove(){v.current=!1},onScroll(e){W||q(e.currentTarget)},...D&&{style:W?{height:`100%`}:Xt}},de=Y(`div`,e,{ref:[t,u],state:le,stateAttributesMapping:ln,props:[z,ue,M(B),{className:!W&&D?nn.className:void 0},s]});return(0,Z.jsxs)(Q.Fragment,{children:[!ie&&nn.getElement(re),(0,Z.jsx)(U,{context:N,modal:!1,disabled:!R,returnFocus:o,restoreFocus:!0,children:de})]})});function dn(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function fn(e){return Et(e.scrollHeight,e.clientHeight)}function pn(e){return Ee.getScale(e)}function mn(e,t,n){return e/n[t]}function hn(e,t){return ge({x:mn(e.x,`x`,t),y:mn(e.y,`y`,t),width:mn(e.width,`x`,t),height:mn(e.height,`y`,t)})}var gn=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function _n(e){let{style:t}=e,n={};for(let[e,r]of gn)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of gn){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var vn=Q.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=dt(),{alignItemWithTriggerActive:c}=Jt(),l=J(o,$.hasScrollArrows),u=J(o,$.openMethod),d=J(o,$.multiple),f={id:`${J(o,$.id)}-list`,role:`listbox`,"aria-multiselectable":d||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:Xt},className:l&&u!==`touch`?nn.className:void 0};return Y(`div`,e,{ref:[t,h(e=>{o.set(`listElement`,e)})],props:[f,a]})}),yn=function(e){return e[e.None=0]=`None`,e[e.GuessFromOrder=1]=`GuessFromOrder`,e}({});function bn(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,elementsRef:l,labelsRef:u,nextIndexRef:d}=Ht(),f=Q.useRef(-1),[p,m]=Q.useState(a??(i===yn.GuessFromOrder?()=>{if(f.current===-1){let e=d.current;d.current+=1,f.current=e}return f.current}:-1)),h=Q.useRef(null),g=Q.useCallback(e=>{if(h.current=e,p!==-1&&e!==null&&(l.current[p]=e,u)){let n=t!==void 0;u.current[p]=n?t:r?.current?.textContent??e.textContent}},[p,l,u,t,r]);return F(()=>{if(a!=null)return;let e=h.current;if(e)return o(e,n),()=>{s(e)}},[a,o,s,n]),F(()=>{if(a==null)return c(e=>{let t=h.current?e.get(h.current)?.index:null;t!=null&&m(t)})},[a,c,m]),Q.useMemo(()=>({ref:g,index:p}),[p,g])}var xn=Q.createContext(void 0);function Sn(){let e=Q.useContext(xn);if(!e)throw Error(Be(57));return e}var Cn=Q.memo(Q.forwardRef(function(e,t){let{render:n,className:r,value:i=null,label:a,disabled:o=!1,nativeButton:s=!1,style:c,...l}=e,u=Q.useRef(null),d=bn({label:a,textRef:u,indexGuessBehavior:yn.GuessFromOrder}),{store:f,getItemProps:p,setOpen:m,setValue:h,selectionRef:g,typingRef:_,valuesRef:v,multiple:y,selectedItemTextRef:b}=dt(),x=J(f,$.isActive,d.index),S=J(f,$.isSelected,d.index,i),C=J(f,$.isSelectedByFocus,d.index),ee=J(f,$.isItemEqualToValue),w=d.index,E=w!==-1,D=Q.useRef(null),O=fe(w);F(()=>{if(!E)return;let e=v.current;return e[w]=i,()=>{delete e[w]}},[E,w,i,v]),F(()=>{if(!E)return;let e=f.state.value,t=e;y&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),t!==void 0&&mt(i,t,ee)&&(f.set(`selectedIndex`,w),u.current&&(b.current=u.current))},[E,w,y,ee,f,i,b]);let k={disabled:o,selected:S,highlighted:x},j=p({active:x,selected:S});j.id=void 0;let te=Q.useRef(null),M=Q.useRef(`mouse`),N=Q.useRef(!1),{getButtonProps:P,buttonRef:ne}=A({disabled:o,focusableWhenDisabled:!0,native:s,composite:!0});function re(e){let t=f.state.value;if(y){let n=Array.isArray(t)?t:[];h(S?_t(n,i,ee):[...n,i],T(_e,e))}else h(i,T(_e,e)),m(!1,T(_e,e))}let ie={role:`option`,"aria-selected":S,tabIndex:x?0:-1,onTouchStart(){g.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(e){te.current=e.key,f.set(`activeIndex`,w),e.key===` `&&_.current&&e.preventDefault()},onClick(e){N.current=!1,!(e.type===`keydown`&&te.current===null)&&(o||e.type===`keydown`&&te.current===` `&&_.current||M.current!==`touch`&&!x||(te.current=null,re(e.nativeEvent)))},onPointerEnter(e){M.current=e.pointerType},onPointerDown(e){M.current=e.pointerType,N.current=!0},onMouseUp(){if(o)return;if(N.current){N.current=!1;return}let e=!g.current.allowSelectedMouseUp&&S,t=!g.current.allowUnselectedMouseUp&&!S;e||t||M.current!==`touch`&&!x||D.current?.click()}},ae=Y(`div`,e,{ref:[ne,t,d.ref,D],state:k,props:[j,ie,l,P]}),I=Q.useMemo(()=>({selected:S,indexRef:O,textRef:u,selectedByFocus:C,hasRegistered:E}),[S,O,u,C,E]);return(0,Z.jsx)(xn.Provider,{value:I,children:ae})})),wn=Q.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=Sn();return n||r?(0,Z.jsx)(Tn,{...e,ref:t}):null}),Tn=Q.memo(Q.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:o,...s}=e,{selected:c}=Sn(),l=Q.useRef(null),{transitionStatus:u,setMounted:d}=Je(c),f=Y(`span`,e,{ref:[t,l],state:{selected:c,transitionStatus:u},props:[{"aria-hidden":!0,children:`✔️`},s],stateAttributesMapping:P});return a({open:c,ref:l,onComplete(){c||d(!1)}}),f})),En=Q.memo(Q.forwardRef(function(e,t){let{indexRef:n,textRef:r,selectedByFocus:i,hasRegistered:a}=Sn(),{selectedItemTextRef:o}=dt(),{className:s,render:c,style:l,...u}=e;return Y(`div`,e,{ref:[Q.useCallback(e=>{if(!e||!a)return;let t=o.current===null||!o.current.isConnected;(i||t&&n.current===0)&&(o.current=e)},[o,n,i,a]),t,r],props:u})})),Dn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:o,keepMounted:s=!1,...c}=e,l=o===`up`,{store:u,popupRef:d,listRef:f,handleScrollArrowVisibility:p,scrollArrowsMountedCountRef:m}=dt(),{side:h,scrollDownArrowRef:g,scrollUpArrowRef:_}=Jt(),y=J(u,l?$.scrollUpArrowVisible:$.scrollDownArrowVisible),b=J(u,$.openMethod),x=y&&b!==`touch`,S=v(),C=l?_:g,{transitionStatus:ee,setMounted:w}=Je(x);F(()=>(m.current+=1,u.state.hasScrollArrows||u.set(`hasScrollArrows`,!0),()=>{m.current=Math.max(0,m.current-1),m.current===0&&u.state.hasScrollArrows&&u.set(`hasScrollArrows`,!1)}),[u,m]),a({open:x,ref:C,onComplete(){x||w(!1)}});let T=Y(`div`,e,{ref:[t,C],state:{direction:o,visible:x,side:h,transitionStatus:ee},props:[{"aria-hidden":!0,children:l?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||S.isStarted())return;u.set(`activeIndex`,null);function t(){let e=u.state.listElement??d.current;if(!e)return;u.set(`activeIndex`,null),p();let n=Et(e.scrollHeight,e.clientHeight),r=Dt(e.scrollTop,n),i=r===(l?0:n),a=f.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&u.set(l?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i){S.clear();return}if(a.length>0){let t=C.current?.offsetHeight||0;e.scrollTop=On(a,l,r,e.clientHeight,t,n)}S.start(40,t)}S.start(40,t)},onMouseLeave(){S.clear()}},c]});return x||s?T:null});function On(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return os){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?Dt(l.offsetTop+l.offsetHeight-r+i,a):a}var kn=Q.forwardRef(function(e,t){return(0,Z.jsx)(Dn,{...e,ref:t,direction:`down`})}),An=Q.forwardRef(function(e,t){return(0,Z.jsx)(Dn,{...e,ref:t,direction:`up`})}),jn=Q.createContext(void 0);function Mn(){let e=Q.useContext(jn);if(e===void 0)throw Error(Be(56));return e}var Nn=Q.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,[o,s]=Q.useState(),c=Q.useMemo(()=>({labelId:o,setLabelId:s}),[o,s]),l=Y(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":o},a]});return(0,Z.jsx)(jn.Provider,{value:c,children:l})}),Pn=Q.forwardRef(function(e,t){let{className:n,render:r,id:i,style:a,...o}=e,{setLabelId:s}=Mn(),c=Ue(i);return F(()=>{s(c)},[c,s]),Y(`div`,e,{ref:t,props:[{id:c},o]})}),Fn=de(),In=Ot;function Ln(e){let t=(0,Fn.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 a;t[3]===n?a=t[4]:(a=i(`scroll-my-1 p-1`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,Z.jsx)(Nn,{className:a,"data-slot":`select-group`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function Rn(e){let t=(0,Fn.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 a;t[3]===n?a=t[4]:(a=i(`flex flex-1 text-left`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,Z.jsx)(Lt,{className:a,"data-slot":`select-value`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function zn(e){let n=(0,Fn.c)(15),r,a,o,s,c;n[0]===e?(r=n[1],a=n[2],o=n[3],s=n[4],c=n[5]):({className:a,size:c,id:o,children:r,...s}=e,n[0]=e,n[1]=r,n[2]=a,n[3]=o,n[4]=s,n[5]=c);let l=c===void 0?`default`:c,u;n[6]===a?u=n[7]:(u=i(`flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-input/20 px-2 py-1.5 text-xs/relaxed whitespace-nowrap transition-colors outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5`,a),n[6]=a,n[7]=u);let d;n[8]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Z.jsx)(Rt,{render:(0,Z.jsx)(t,{className:`pointer-events-none size-3.5 text-muted-foreground`})}),n[8]=d):d=n[8];let f;return n[9]!==r||n[10]!==o||n[11]!==s||n[12]!==l||n[13]!==u?(f=(0,Z.jsxs)(Ft,{className:u,"data-size":l,"data-slot":`select-trigger`,id:o,...s,children:[r,d]}),n[9]=r,n[10]=o,n[11]=s,n[12]=l,n[13]=u,n[14]=f):f=n[14],f}function Bn(e){let t=(0,Fn.c)(26),n,r,a,o,s,c,l,u;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8]):({className:r,children:n,side:o,sideOffset:s,align:c,alignOffset:l,alignItemWithTrigger:u,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u);let d=o===void 0?`bottom`:o,f=s===void 0?4:s,p=c===void 0?`center`:c,m=l===void 0?0:l,h=u===void 0?!0:u,g;t[9]===r?g=t[10]:(g=i(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-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-closed:animate-out data-open:animate-in relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100`,r),t[9]=r,t[10]=g);let _;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Z.jsx)(Wn,{}),t[11]=_):_=t[11];let v;t[12]===n?v=t[13]:(v=(0,Z.jsx)(vn,{children:n}),t[12]=n,t[13]=v);let y;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Z.jsx)(Gn,{}),t[14]=y):y=t[14];let b;t[15]!==a||t[16]!==g||t[17]!==v?(b=(0,Z.jsxs)(un,{className:g,"data-slot":`select-content`,...a,children:[_,v,y]}),t[15]=a,t[16]=g,t[17]=v,t[18]=b):b=t[18];let x;return t[19]!==p||t[20]!==h||t[21]!==m||t[22]!==d||t[23]!==f||t[24]!==b?(x=(0,Z.jsx)(Bt,{children:(0,Z.jsx)(en,{align:p,alignItemWithTrigger:h,alignOffset:m,className:`isolate z-50`,side:d,sideOffset:f,children:b})}),t[19]=p,t[20]=h,t[21]=m,t[22]=d,t[23]=f,t[24]=b,t[25]=x):x=t[25],x}function Vn(e){let t=(0,Fn.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 a;t[3]===n?a=t[4]:(a=i(`px-2 py-1.5 text-xs text-muted-foreground`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,Z.jsx)(Pn,{className:a,"data-slot":`select-label`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function Hn(t){let n=(0,Fn.c)(13),r,a,o;n[0]===t?(r=n[1],a=n[2],o=n[3]):({className:a,children:r,...o}=t,n[0]=t,n[1]=r,n[2]=a,n[3]=o);let s;n[4]===a?s=n[5]:(s=i(`relative flex min-h-7 w-full cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,a),n[4]=a,n[5]=s);let c;n[6]===r?c=n[7]:(c=(0,Z.jsx)(En,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:r}),n[6]=r,n[7]=c);let l;n[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Z.jsx)(wn,{render:(0,Z.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`}),children:(0,Z.jsx)(e,{className:`pointer-events-none`})}),n[8]=l):l=n[8];let u;return n[9]!==o||n[10]!==s||n[11]!==c?(u=(0,Z.jsxs)(Cn,{className:s,"data-slot":`select-item`,...o,children:[c,l]}),n[9]=o,n[10]=s,n[11]=c,n[12]=u):u=n[12],u}function Un(e){let t=(0,Fn.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 a;t[3]===n?a=t[4]:(a=i(`pointer-events-none -mx-1 my-1 h-px bg-border/50`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,Z.jsx)(l,{className:a,"data-slot":`select-separator`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function Wn(e){let t=(0,Fn.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 a;t[3]===n?a=t[4]:(a=i(`top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=a);let o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Z.jsx)(Xe,{}),t[5]=o):o=t[5];let s;return t[6]!==r||t[7]!==a?(s=(0,Z.jsx)(An,{className:a,"data-slot":`select-scroll-up-button`,...r,children:o}),t[6]=r,t[7]=a,t[8]=s):s=t[8],s}function Gn(e){let n=(0,Fn.c)(9),r,a;n[0]===e?(r=n[1],a=n[2]):({className:r,...a}=e,n[0]=e,n[1]=r,n[2]=a);let o;n[3]===r?o=n[4]:(o=i(`bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,r),n[3]=r,n[4]=o);let s;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Z.jsx)(t,{}),n[5]=s):s=n[5];let c;return n[6]!==a||n[7]!==o?(c=(0,Z.jsx)(kn,{className:o,"data-slot":`select-scroll-down-button`,...a,children:s}),n[6]=a,n[7]=o,n[8]=c):c=n[8],c}export{Vn as a,Rn as c,Hn as i,bn as l,Bn as n,Un as o,Ln as r,zn as s,In as t,Ut as u}; \ No newline at end of file +import{t as e}from"./check.js";import{t}from"./chevron-down.js";import{$a as n,Aa as r,Ba as i,Bs as a,Ca as o,Co as s,Da as c,Di as l,Do as u,Ei as d,Eo as f,Fi as p,Go as m,Ho as h,Ia as g,Ii as _,Ka as v,La as y,Ma as b,Na as x,Ni as S,Oi as C,Pa as w,Pi as T,Qa as E,Ra as D,Ri as O,Sa as k,So as A,Ti as ee,To as te,Uo as j,Va as M,Wa as N,Wo as P,Xa as ne,Ya as re,Za as ie,_a as ae,_o as F,aa as I,ao as L,as as R,bo as oe,bs as z,ca as B,co as V,cs as H,da as U,do as W,ds as G,eo as K,fa as q,fo as J,fs as se,ga as ce,go as le,ha as ue,ho as de,ia as fe,io as pe,ja as me,jo as he,ka as ge,la as _e,lo as ve,ls as ye,ma as be,mo as xe,na as Se,no as Ce,ns as we,oa as Y,oo as Te,os as Ee,pa as De,po as Oe,ps as ke,qa as Ae,qi as je,ra as Me,ro as X,sa as Ne,so as Pe,ss as Fe,to as Ie,ua as Le,uo as Re,us as ze,va as Be,vo as Ve,wa as He,wo as Ue,xo as We,xs as Ge,yo as Ke,za as qe,zi as Je,zo as Ye}from"./index.js";var Xe=we(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Z=z(),Q=a(Ge()),Ze=Q.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:H,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function Qe(){return Q.useContext(Ze)}function $e(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,{enabled:i=!0,event:a=`click`,toggle:o=!0,ignoreMouse:s=!1,stickIfOpen:c=!0,touchOpenDelay:l=0,reason:u=g}=t,d=Q.useRef(void 0),f=v(),p=Ae(),m=Q.useMemo(()=>({onPointerDown(e){d.current=e.pointerType},onMouseDown(e){let t=d.current,i=e.nativeEvent,m=n.select(`open`);if(e.button!==0||a===`click`||Pe(t,!0)&&s)return;let h=r.current.openEvent,g=h?.type,_=n.select(`domReferenceElement`)!==e.currentTarget,v=m&&_||!(m&&o&&(!(h&&c)||g===`click`||g===`mousedown`)),y=le(i);if(Oe(y)){let e=ge(u,i,y);v&&t===`touch`&&l>0?p.start(l,()=>{n.setOpen(!0,e)}):n.setOpen(v,e);return}let b=e.currentTarget;f.request(()=>{let e=ge(u,i,b);v&&t===`touch`&&l>0?p.start(l,()=>{n.setOpen(!0,e)}):n.setOpen(v,e)})},onClick(e){if(a===`mousedown-only`)return;let t=d.current;if(a===`mousedown`&&t){d.current=void 0;return}if(Pe(t,!0)&&s)return;let i=n.select(`open`),f=r.current.openEvent,m=n.select(`domReferenceElement`)!==e.currentTarget,h=i&&m||!(i&&o&&(!(f&&c)||Te(f))),g=ge(u,e.nativeEvent,e.currentTarget);h&&t===`touch`&&l>0?p.start(l,()=>{n.setOpen(!0,g)}):n.setOpen(h,g)},onKeyDown(){d.current=void 0}}),[r,a,s,n,c,o,f,p,l,u]);return Q.useMemo(()=>i?{reference:m}:Fe,[i,m])}var et=`Escape`;function tt(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function nt(e,t){return tt(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function rt(e,t,n){return tt(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function it(e,t,n){return tt(t,n?e===Ve:e===Ke,e===F)}function at(e,t,n,r){return t===`both`||t===`horizontal`&&r&&r>1?e===et:tt(t,n?e===Ke:e===Ve,e===oe)}function ot(e,t){let r=`rootStore`in e?e.rootStore:e,i=r.useState(`open`),a=r.useState(`floatingElement`),o=r.useState(`domReferenceElement`),s=r.context.dataRef,{listRef:c,activeIndex:l,onNavigate:u=()=>{},enabled:d=!0,selectedIndex:f=null,allowEscape:p=!1,loopFocus:g=!1,nested:_=!1,rtl:v=!1,virtual:y=!1,focusItemOnOpen:b=`auto`,focusItemOnHover:S=!0,openOnArrowKeyDown:C=!0,disabledIndices:w=void 0,orientation:T=`vertical`,parentOrientation:D,cols:O=1,id:k,resetOnPointerLeave:ee=!0,externalTree:te}=t,M=ae(W(a)),N=Le(),P=U(te);h(()=>{s.current.orientation=T},[s,T]);let F=J(o),I=Q.useRef(b),L=Q.useRef(f??-1),R=Q.useRef(null),oe=Q.useRef(!0),z=j(e=>{u(L.current===-1?null:L.current,e)}),B=Q.useRef(z),H=Q.useRef(!!a),G=Q.useRef(i),q=Q.useRef(!1),se=Q.useRef(!1),ce=Q.useRef(null),ue=ae(w),fe=ae(i),he=ae(f),_e=ae(ee),ye=j(()=>{function e(e){y?P?.events.emit(`virtualfocus`,e):ce.current=be(e,{sync:q.current,preventScroll:!0})}let t=c.current[L.current],n=se.current;t&&e(t),(q.current?e=>e():requestAnimationFrame)(()=>{let r=c.current[L.current]||t;r&&(t||e(r),we&&(n||!oe.current)&&r.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});h(()=>{d&&(i&&a?(L.current=f??-1,I.current&&f!=null&&(se.current=!0,z())):H.current&&(L.current=-1,B.current()))},[d,i,a,f,z]),h(()=>{if(d){if(!i){q.current=!1;return}if(a)if(l==null){if(q.current=!1,he.current!=null)return;if(H.current&&(L.current=-1,ye()),(!G.current||!H.current)&&I.current&&(R.current!=null||I.current===!0&&R.current==null)){let e=0,t=()=>{c.current[0]==null?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(L.current=R.current==null||rt(R.current,T,v)||_?Ie(c):K(c),R.current=null,z())};t()}}else X(c.current,l)||(L.current=l,ye(),se.current=!1)}},[d,i,a,l,he,_,c,T,v,z,ye,ue]),h(()=>{if(!d||a||!P||y||!H.current)return;let e=P.nodesRef.current,t=e.find(e=>e.id===N)?.context?.elements.floating,n=xe(A(a)),r=e.some(e=>e.context&&de(e.context.elements.floating,n));t&&!r&&oe.current&&t.focus({preventScroll:!0})},[d,a,P,N,y]),h(()=>{B.current=z,G.current=i,H.current=!!a}),h(()=>{i||(R.current=null,I.current=b)},[i,b]);let Se=l!=null,Ce=j(e=>{if(!fe.current)return;let t=c.current.indexOf(e.currentTarget);t!==-1&&(L.current!==t||l!==t)&&(L.current=t,z(e))}),we=Q.useMemo(()=>({onFocus(e){q.current=!0,Ce(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){q.current=!0,se.current=!1,S&&Ce(e)},onPointerLeave(e){if(!fe.current||!oe.current||e.pointerType===`touch`)return;q.current=!0;let t=e.relatedTarget;if(!(!S||c.current.includes(t))&&_e.current&&(ce.current?.(),ce.current=null,L.current=-1,z(e),!y)){let e=M.current,t=xe(A(e));e&&de(e,t)&&e.focus({preventScroll:!0})}}}),[Ce,fe,M,S,c,z,_e,y]),Y=Q.useCallback(()=>D??P?.nodesRef.current.find(e=>e.id===N)?.context?.dataRef?.current.orientation,[N,P,D]),Te=j(e=>{if(oe.current=!1,q.current=!0,e.which===229||!fe.current&&e.currentTarget===M.current)return;if(_&&at(e.key,T,v,O)){nt(e.key,Y())||Re(e),r.setOpen(!1,ge(x,e.nativeEvent)),m(o)&&(y?P?.events.emit(`virtualfocus`,o):o.focus());return}let t=L.current,a=Ie(c,w),s=K(c,w);if(F||(e.key===`Home`&&(Re(e),L.current=a,z(e)),e.key===`End`&&(Re(e),L.current=s,z(e))),O>1){let t=Array.from({length:c.current.length},()=>({width:1,height:1})),r=re(t,O,!1),i=r.findIndex(e=>e!=null&&!pe(c.current,e,w)),o=r.reduce((e,t,n)=>t!=null&&!pe(c.current,t,w)?n:e,-1),l=r[n(r.map(e=>e==null?null:c.current[e]),{event:e,orientation:T,loopFocus:g,rtl:v,cols:O,disabledIndices:E([...(typeof w==`function`?null:w)||c.current.map((e,t)=>pe(c.current,t,w)?t:void 0),void 0],r),minIndex:i,maxIndex:o,prevIndex:ie(L.current>s?a:L.current,t,r,O,e.key===`ArrowDown`?`bl`:e.key===(v?`ArrowLeft`:`ArrowRight`)?`tr`:`tl`),stopEvent:!0})];if(l!=null&&(L.current=l,z(e)),T===`both`)return}if(nt(e.key,T)){if(Re(e),i&&!y&&xe(e.currentTarget.ownerDocument)===e.currentTarget){L.current=rt(e.key,T,v)?a:s,z(e);return}rt(e.key,T,v)?g?t>=s?p&&t!==c.current.length?L.current=-1:(q.current=!1,L.current=a):L.current=ne(c.current,{startingIndex:t,disabledIndices:w}):L.current=Math.min(s,ne(c.current,{startingIndex:t,disabledIndices:w})):g?t<=a?p&&t!==-1?L.current=c.current.length:(q.current=!1,L.current=s):L.current=ne(c.current,{startingIndex:t,decrement:!0,disabledIndices:w}):L.current=Math.max(a,ne(c.current,{startingIndex:t,decrement:!0,disabledIndices:w})),X(c.current,L.current)&&(L.current=-1),z(e)}}),Ee=Q.useMemo(()=>y&&i&&Se&&{"aria-activedescendant":`${k}-${l}`},[y,i,Se,k,l]),De=Q.useMemo(()=>({"aria-orientation":T===`both`?void 0:T,...F?{}:Ee,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&i&&!y){let t=le(e.nativeEvent);if(t&&!de(M.current,t))return;Re(e),r.setOpen(!1,ge(me,e.nativeEvent)),m(o)&&o.focus();return}Te(e)},onPointerMove(){oe.current=!0}}),[Ee,Te,M,T,F,r,i,y,o]),Oe=Q.useMemo(()=>{function e(e){b===`auto`&&V(e.nativeEvent)&&(I.current=!y)}function t(e){I.current=b,b===`auto`&&ve(e.nativeEvent)&&(I.current=!0)}return{onKeyDown(e){let t=r.select(`open`);oe.current=!1;let n=e.key.startsWith(`Arrow`),i=it(e.key,Y(),v),a=nt(e.key,T),o=(_?i:a)||e.key===`Enter`||e.key.trim()===``;if(y&&t)return Te(e);if(!(!t&&!C&&n)){if(o){let t=nt(e.key,Y());R.current=_&&t?null:e.key}if(_){i&&(Re(e),t?(L.current=Ie(c,ue.current),z(e)):r.setOpen(!0,ge(x,e.nativeEvent,e.currentTarget)));return}a&&(he.current!=null&&(L.current=he.current),Re(e),!t&&C?r.setOpen(!0,ge(x,e.nativeEvent,e.currentTarget)):Te(e),t&&z(e))}},onFocus(e){r.select(`open`)&&!y&&(L.current=-1,z(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[Te,ue,b,c,_,z,r,C,T,Y,v,he,y]),ke=Q.useMemo(()=>({...Ee,...Oe}),[Ee,Oe]);return Q.useMemo(()=>d?{reference:ke,floating:De,item:we,trigger:Oe}:{},[d,ke,De,Oe,we])}function st(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,i=n.useState(`open`),{listRef:a,elementsRef:o,activeIndex:s,onMatch:c,onTypingChange:l,enabled:u=!0,resetMs:d=750,selectedIndex:f=null}=t,p=Ae(),m=Q.useRef(``),g=Q.useRef(f??s??-1),_=Q.useRef(null);h(()=>{!i&&f!==null||(p.clear(),_.current=null,m.current!==``&&(m.current=``))},[i,f,p]),h(()=>{i&&m.current===``&&(g.current=f??s??-1)},[i,f,s]);let v=j(e=>{e?r.current.typing||(r.current.typing=e,l?.(e)):r.current.typing&&(r.current.typing=e,l?.(e))}),y=j(e=>{function t(e){let t=o?.current[e];return!t||Ce(t)}function n(e,n,r=0){if(e.length===0)return-1;let i=(r%e.length+e.length)%e.length,a=n.toLocaleLowerCase();for(let n=0;n0&&e.key===` `&&(Re(e),v(!0)),m.current.length>0&&m.current[0]!==` `&&n(r,m.current)===-1&&e.key!==` `&&v(!1),r==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;i&&e.key!==` `&&(Re(e),v(!0));let l=m.current===``;l&&(g.current=f??s??-1),r.every(e=>e?e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase():!0)&&m.current===e.key&&(m.current=``,g.current=_.current),m.current+=e.key,p.start(d,()=>{m.current=``,g.current=_.current,v(!1)});let u=((l?f??s??-1:g.current)??0)+1,h=n(r,m.current,u);h===-1?e.key!==` `&&(m.current=``,v(!1)):(c?.(h),_.current=h)}),b=j(e=>{let t=e.relatedTarget,r=n.select(`domReferenceElement`),i=n.select(`floatingElement`),a=de(r,t),o=de(i,t);a||o||(p.clear(),m.current=``,g.current=_.current,v(!1))}),x=Q.useMemo(()=>({onKeyDown:y,onBlur:b}),[y,b]),S=Q.useMemo(()=>({onKeyDown:y,onBlur:b}),[y,b]);return Q.useMemo(()=>u?{reference:x,floating:S}:{},[u,x,S])}function ct(e){let[t,n]=Q.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}var lt=Q.createContext(null),ut=Q.createContext(null);function dt(){let e=Q.useContext(lt);if(e===null)throw Error(G(60));return e}function ft(){let e=Q.useContext(ut);if(e===null)throw Error(G(61));return e}var pt=(e,t)=>Object.is(e,t);function mt(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function ht(e,t,n){return!e||e.length===0?!1:e.some(e=>e===void 0?!1:mt(t,e,n))}function gt(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e===void 0?!1:mt(e,t,n))}function _t(e,t,n){return e.filter(e=>!mt(t,e,n))}function vt(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function yt(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function bt(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(yt(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function xt(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return vt(e)}function St(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?vt(e.value):vt(e)}function Ct(e,t,n){function r(){return xt(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=yt(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function wt(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,Z.jsx)(Q.Fragment,{children:Ct(r,t,n)},i)),e),[])}var $={id:Y(e=>e.id),labelId:Y(e=>e.labelId),modal:Y(e=>e.modal),multiple:Y(e=>e.multiple),items:Y(e=>e.items),itemToStringLabel:Y(e=>e.itemToStringLabel),itemToStringValue:Y(e=>e.itemToStringValue),isItemEqualToValue:Y(e=>e.isItemEqualToValue),value:Y(e=>e.value),hasSelectedValue:Y(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:St(t,r)!==``}),hasNullItemLabel:Y((e,t)=>t?bt(e.items):!1),open:Y(e=>e.open),mounted:Y(e=>e.mounted),forceMount:Y(e=>e.forceMount),transitionStatus:Y(e=>e.transitionStatus),openMethod:Y(e=>e.openMethod),activeIndex:Y(e=>e.activeIndex),selectedIndex:Y(e=>e.selectedIndex),isActive:Y((e,t)=>e.activeIndex===t),isSelected:Y((e,t,n)=>{let r=e.isItemEqualToValue,i=e.value;return e.multiple?Array.isArray(i)&&i.some(e=>mt(n,e,r)):e.selectedIndex===t&&e.selectedIndex!==null?!0:mt(n,i,r)}),isSelectedByFocus:Y((e,t)=>e.selectedIndex===t),popupProps:Y(e=>e.popupProps),triggerProps:Y(e=>e.triggerProps),triggerElement:Y(e=>e.triggerElement),positionerElement:Y(e=>e.positionerElement),listElement:Y(e=>e.listElement),scrollUpArrowVisible:Y(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:Y(e=>e.scrollDownArrowVisible),hasScrollArrows:Y(e=>e.hasScrollArrows)};function Tt(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function Et(e,t){return Math.max(0,e-t)}function Dt(e,t){if(t<=0)return 0;let n=Tt(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}function Ot(e){let{id:t,value:n,defaultValue:r=null,onValueChange:a,open:o,defaultOpen:c=!1,onOpenChange:l,name:u,form:d,autoComplete:p,disabled:m=!1,readOnly:g=!1,required:v=!1,modal:y=!0,actionsRef:b,inputRef:x,onOpenChangeComplete:C,items:E,multiple:O=!1,itemToStringLabel:k,itemToStringValue:A,isItemEqualToValue:ee=pt,highlightItemOnHover:te=!0,children:N}=e,{clearErrors:P}=Qe(),{setDirty:ne,setTouched:re,setFocused:ie,shouldValidateOnChange:F,validityData:L,setFilled:R,name:oe,disabled:z,validation:V,validationMode:H}=f(),U=s({id:t}),W=z||m,G=oe??u,[K,q]=qe({controlled:n,default:O?r??Ee:r,name:`Select`,state:`value`}),[J,le]=qe({controlled:o,default:c,name:`Select`,state:`open`}),de=Q.useRef([]),pe=Q.useRef([]),me=Q.useRef(null),he=Q.useRef(null),_e=Q.useRef(0),ve=Q.useRef(null),be=Q.useRef([]),xe=Q.useRef(!1),Ce=Q.useRef(!1),we=Q.useRef(null),Y=Q.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),Te=Q.useRef(!1),{mounted:De,setMounted:Oe,transitionStatus:ke}=i(J),{openMethod:Ae,triggerProps:je}=S(J),X=ze(()=>new fe({id:U,labelId:void 0,modal:y,multiple:O,itemToStringLabel:k,itemToStringValue:A,isItemEqualToValue:ee,value:K,open:J,mounted:De,transitionStatus:ke,items:E,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,Ne=I(X,$.activeIndex),Pe=I(X,$.selectedIndex),Ie=I(X,$.triggerElement),Le=I(X,$.positionerElement),Re=ct(Ae),Be=Ae??Re,Ve=Q.useMemo(()=>O&&Array.isArray(K)&&K.length===0?``:St(K,A),[O,K,A]),He=Q.useMemo(()=>O&&Array.isArray(K)?K.map(e=>St(e,A)):St(K,A),[O,K,A]);D(ae(X.state.triggerElement),{id:U,value:K,getValue:j(()=>He)});let Ue=Q.useRef(K);h(()=>{K!==Ue.current&&X.set(`forceMount`,!0)},[X,K]),h(()=>{R(O?Array.isArray(K)&&K.length>0:K!=null)},[O,K,R]),h(function(){if(J)return;let e=be.current;if(O){let t=Array.isArray(K)?K:[];if(t.length===0){X.set(`selectedIndex`,null);return}let n=t[t.length-1],r=gt(e,n,ee);X.set(`selectedIndex`,r===-1?null:r);return}let t=gt(e,K,ee);X.set(`selectedIndex`,t===-1?null:t)},[O,J,K,be,ee,X]),T(K,()=>{P(G),ne(K!==L.initialValue),F()?V.commit(K):V.commit(K,!0)});let We=j((e,t)=>{if(l?.(e,t),!t.isCanceled&&(le(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(re(!0),ie(!1),H===`onBlur`&&V.commit(K)),!e&&X.state.activeIndex!==null)){let e=de.current[X.state.activeIndex];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}}),Ge=j(()=>{Oe(!1),X.update({activeIndex:null,openMethod:null}),C?.(!1)});M({enabled:!b,open:J,ref:me,onComplete(){J||Ge()}}),Q.useImperativeHandle(b,()=>({unmount:Ge}),[Ge]);let Ke=j((e,t)=>{a?.(e,t),!t.isCanceled&&q(e)}),Je=j(()=>{let e=X.state.listElement||me.current;if(!e)return;let t=Et(e.scrollHeight,e.clientHeight),n=Dt(e.scrollTop,t),r=n>0,i=nse(Xe(),je,U?{id:U}:Fe),[Xe,je,U]);_(()=>{X.update({popupProps:Ze(),triggerProps:tt})}),h(()=>{X.update({id:U,modal:y,multiple:O,value:K,open:J,mounted:De,transitionStatus:ke,popupProps:Ze(),triggerProps:tt,items:E,itemToStringLabel:k,itemToStringValue:A,isItemEqualToValue:ee,openMethod:Be})},[X,U,y,O,K,J,De,ke,Ze,tt,E,k,A,ee,Be]);let nt=Q.useMemo(()=>({store:X,name:G,required:v,disabled:W,readOnly:g,multiple:O,highlightItemOnHover:te,setValue:Ke,setOpen:We,listRef:de,popupRef:me,scrollHandlerRef:he,handleScrollArrowVisibility:Je,scrollArrowsMountedCountRef:_e,getItemProps:et,events:Ye.context.events,valueRef:ve,valuesRef:be,labelsRef:pe,typingRef:xe,selectionRef:Y,selectedItemTextRef:we,validation:V,onOpenChangeComplete:C,keyboardActiveRef:Ce,alignItemWithTriggerActiveRef:Te,initialValueRef:Ue}),[X,G,v,W,g,O,te,Ke,We,et,Ye.context.events,V,C,Je]),rt=ye(x,V.inputRef),it=O&&Array.isArray(K)&&K.length>0,at=O?void 0:G,dt=Q.useMemo(()=>!O||!Array.isArray(K)||!G?null:K.map(e=>{let t=St(e,A);return(0,Z.jsx)(`input`,{type:`hidden`,form:d,name:G,value:t},t)}),[O,K,d,G,A]);return(0,Z.jsx)(lt.Provider,{value:nt,children:(0,Z.jsxs)(ut.Provider,{value:Ye,children:[N,(0,Z.jsx)(`input`,{...V.getInputValidationProps({onFocus(){X.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.currentTarget.value,n=ge(w,e.nativeEvent);function r(){if(O)return;let e=be.current.find(e=>St(e,A).toLowerCase()===t.toLowerCase()||xt(e,k).toLowerCase()===t.toLowerCase());e!=null&&(ne(e!==L.initialValue),Ke(e,n),F()&&V.commit(e))}X.set(`forceMount`,!0),queueMicrotask(r)}}),id:U&&at==null?`${U}-hidden-input`:void 0,form:d,name:at,autoComplete:p,value:Ve,disabled:W,required:v&&!it,readOnly:g,ref:rt,style:G?ce:ue,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),dt]})})}function kt(e,t){return e??t}function At(e){let t=e.getBoundingClientRect(),n=P(e),r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(!(r.content!==`none`||i.content!==`none`))return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}var jt=2,Mt=400,Nt=200,Pt={...o,...u,value:()=>null},Ft=Q.forwardRef(function(e,t){let{render:n,className:i,id:a,disabled:o=!1,nativeButton:c=!0,style:l,...u}=e,{setTouched:d,setFocused:p,validationMode:m,state:h,disabled:g}=f(),{labelId:_}=Ue(),{store:v,setOpen:y,selectionRef:b,validation:x,readOnly:S,required:C,alignItemWithTriggerActiveRef:T,disabled:E,keyboardActiveRef:D}=dt(),O=g||E||o,k=I(v,$.open),ee=I(v,$.value),te=I(v,$.triggerProps),M=I(v,$.positionerElement),N=I(v,$.listElement),P=I(v,$.id),ne=I(v,$.labelId),re=I(v,$.hasSelectedValue),ie=!re&&k,F=I(v,$.hasNullItemLabel,ie),L=a??P,oe=kt(_,ne);s({id:L});let z=ae(M),B=Q.useRef(null),{getButtonProps:V,buttonRef:H}=Ye({disabled:O,native:c}),U=ye(t,B,H,j(e=>{v.set(`triggerElement`,e)})),G=Ae(),K=Ae(),q=Ae(),J=Ae();Q.useEffect(()=>{if(k)return re||F?J.start(Nt,()=>{b.current.allowUnselectedMouseUp=!0,q.start(Nt,()=>{b.current.allowSelectedMouseUp=!0})}):q.start(Mt,()=>{b.current.allowUnselectedMouseUp=!0,b.current.allowSelectedMouseUp=!0}),()=>{q.clear(),J.clear()};b.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},K.clear()},[k,re,F,b,K,q,J]);let ce=Q.useMemo(()=>N?.id??W(M)?.id,[N,M]),le=se(te,{id:L,role:`combobox`,"aria-expanded":k?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":k?ce:void 0,"aria-labelledby":oe,"aria-readonly":S||void 0,"aria-required":C||void 0,tabIndex:O?-1:0,ref:U,onFocus(e){p(!0),k&&T.current&&y(!1,ge(w,e.nativeEvent)),G.start(0,()=>{v.set(`forceMount`,!0)})},onBlur(e){de(M,e.relatedTarget)||(d(!0),p(!1),m===`onBlur`&&x.commit(ee))},onPointerMove(){D.current=!1},onKeyDown(){D.current=!0},onMouseDown(e){if(k)return;let t=A(e.currentTarget);function n(e){if(!B.current)return;let t=e.target;if(de(B.current,t)||de(z.current,t)||t===B.current)return;let n=At(B.current);e.clientX>=n.left-jt&&e.clientX<=n.right+jt&&e.clientY>=n.top-jt&&e.clientY<=n.bottom+jt||y(!1,ge(r,e))}K.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},x.getValidationProps,u,V);le.role=`combobox`;let ue={...h,open:k,disabled:O,value:ee,readOnly:S,placeholder:!re};return R(`button`,e,{ref:[t,B],state:ue,stateAttributesMapping:Pt,props:le})}),It={value:()=>null},Lt=Q.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:l}=dt(),u=I(c,$.value),d=I(c,$.items),f=I(c,$.itemToStringLabel),p=I(c,$.hasSelectedValue),m=!p&&a!=null&&i==null,h=I(c,$.hasNullItemLabel,m),g={value:u,placeholder:!p},_=null;return _=typeof i==`function`?i(u):i??(!p&&a!=null&&!h?a:Array.isArray(u)?wt(u,d,f):Ct(u,d,f)),R(`span`,e,{state:g,ref:[t,l],props:[{children:_},s],stateAttributesMapping:It})}),Rt=Q.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{store:o}=dt();return R(`span`,e,{state:{open:I(o,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:He})}),zt=Q.createContext(void 0),Bt=Q.forwardRef(function(e,t){let{store:n}=dt(),r=I(n,$.mounted),i=I(n,$.forceMount);return r||i?(0,Z.jsx)(zt.Provider,{value:!0,children:(0,Z.jsx)(q,{ref:t,...e})}):null}),Vt=Q.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Ht(){return Q.useContext(Vt)}function Ut(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=j(i),o=Q.useRef(0),s=ze(Gt).current,c=ze(Wt).current,[l,u]=Q.useState(0),d=Q.useRef(l),f=j((e,t)=>{c.set(e,t??null),d.current+=1,u(d.current)}),p=j(e=>{c.delete(e),d.current+=1,u(d.current)}),m=Q.useMemo(()=>{let e=new Map;return Array.from(c.keys()).filter(e=>e.isConnected).sort(Kt).forEach((t,n)=>{let r=c.get(t)??{};e.set(t,{...r,index:n})}),e},[c,l]);h(()=>{if(typeof MutationObserver!=`function`||m.size===0)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),t.size===0&&(d.current+=1,u(d.current))});return m.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[m]),h(()=>{d.current===l&&(n.current.length!==m.size&&(n.current.length=m.size),r&&r.current.length!==m.size&&(r.current.length=m.size),o.current=m.size),a(m)},[a,m,n,r,l]),h(()=>()=>{n.current=[]},[n]),h(()=>()=>{r&&(r.current=[])},[r]);let g=j(e=>(s.add(e),()=>{s.delete(e)}));h(()=>{s.forEach(e=>e(m))},[s,m]);let _=Q.useMemo(()=>({register:f,unregister:p,subscribeMapChange:g,elementsRef:n,labelsRef:r,nextIndexRef:o}),[f,p,g,n,r,o]);return(0,Z.jsx)(Vt.Provider,{value:_,children:t})}function Wt(){return new Map}function Gt(){return new Set}function Kt(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}var qt=Q.createContext(void 0);function Jt(){let e=Q.useContext(qt);if(!e)throw Error(G(59));return e}function Yt(e,t){e&&Object.assign(e.style,t)}var Xt={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Zt=20;function Qt(e,t,n,r){let[i,a]=Q.useState(!1);h(()=>{if(!e||!t||n==null){a(!1);return}let r=A(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Zt)},[e,t,n]),p(e&&(!t||i),r)}var $t={position:`fixed`},en=Q.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:u=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:p=5,sticky:m=!1,disableAnchorTracking:g,alignItemWithTrigger:_=!0,collisionAvoidance:v=De,style:y,...b}=e,{store:x,listRef:S,labelsRef:C,alignItemWithTriggerActiveRef:T,selectedItemTextRef:E,valuesRef:D,initialValueRef:k,popupRef:A,setValue:te}=dt(),M=ft(),N=I(x,$.open),P=I(x,$.mounted),ne=I(x,$.modal),re=I(x,$.value),ie=I(x,$.openMethod),ae=I(x,$.positionerElement),F=I(x,$.triggerElement),L=I(x,$.isItemEqualToValue),R=I(x,$.transitionStatus),oe=Q.useRef(null),z=Q.useRef(null),[B,V]=Q.useState(_),H=P&&B&&ie!==`touch`;!P&&B!==_&&V(_),h(()=>{P||($.scrollUpArrowVisible(x.state)&&x.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(x.state)&&x.set(`scrollDownArrowVisible`,!1))},[x,P]),Q.useImperativeHandle(T,()=>H),Qt((H||ne)&&N,ie===`touch`,ae,F);let U=l({anchor:n,floatingRootContext:M,positionMethod:r,mounted:P,side:o,sideOffset:c,align:s,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:g??H,collisionAvoidance:v,keepMounted:!0}),W=H?`none`:U.side,G=H?$t:U.positionerStyles,K=ee(e,{open:N,side:W,align:U.align,anchorHidden:U.anchorHidden},{styles:G,transitionStatus:R,props:b,refs:[t,j(e=>{x.set(`positionerElement`,e)})],hidden:!P,inert:!N}),q=Q.useRef(0),J=j(e=>{if(e.size===0&&q.current===0||D.current.length===0)return;let t=q.current;if(q.current=e.size,e.size===t)return;let n=ge(w);if(t!==0&&!x.state.multiple&&re!==null&>(D.current,re,L)===-1){let e=k.current,t=e!=null&>(D.current,e,L)!==-1?e:null;te(t,n),t===null&&(x.set(`selectedIndex`,null),E.current=null)}if(t!==0&&x.state.multiple&&Array.isArray(re)){let e=e=>gt(D.current,e,L)!==-1,t=re.filter(t=>e(t));(t.length!==re.length||t.some(e=>!ht(re,e,L)))&&(te(t,n),t.length===0&&(x.set(`selectedIndex`,null),E.current=null))}if(N&&H){x.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};Yt(ae,e),Yt(A.current,e)}}),se=Q.useMemo(()=>({...U,side:W,alignItemWithTriggerActive:H,setControlledAlignItemWithTrigger:V,scrollUpArrowRef:oe,scrollDownArrowRef:z}),[U,W,H,V]);return(0,Z.jsx)(Ut,{elementsRef:S,labelsRef:C,onMapChange:J,children:(0,Z.jsxs)(qt.Provider,{value:se,children:[P&&ne&&(0,Z.jsx)(O,{inert:Je(!N),cutout:F}),K]})})}),tn=`base-ui-disable-scrollbar`,nn={className:tn,getElement(e){return(0,Z.jsx)(`style`,{nonce:e,href:tn,precedence:`base-ui:low`,children:`.${tn}{scrollbar-width:none}.${tn}::-webkit-scrollbar{display:none}`})}},rn=Q.createContext(void 0);function an(e){let t=Q.useContext(rn);if(t===void 0&&!e)throw Error(G(69));return t}var on=Q.createContext(void 0),sn={disableStyleElements:!1};function cn(){return Q.useContext(on)??sn}var ln={...k,...N},un=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,{store:s,popupRef:c,onOpenChangeComplete:l,setOpen:u,valueRef:f,selectedItemTextRef:p,keyboardActiveRef:m,multiple:g,handleScrollArrowVisibility:_,scrollHandlerRef:b,listRef:x,highlightItemOnHover:S}=dt(),{side:w,align:T,alignItemWithTriggerActive:E,isPositioned:D,setControlledAlignItemWithTrigger:O,scrollDownArrowRef:k,scrollUpArrowRef:ee}=Jt(),te=an(!0)!=null,N=ft(),ne=C(),{nonce:re,disableStyleElements:ie}=cn(),ae=I(s,$.id),F=I(s,$.open),L=I(s,$.mounted),oe=I(s,$.popupProps),z=I(s,$.transitionStatus),B=I(s,$.triggerElement),V=I(s,$.positionerElement),H=I(s,$.listElement),U=Q.useRef(!1),W=Q.useRef(!1),G=Q.useRef({}),K=v(),q=j(e=>{if(!V||!c.current||!W.current)return;if(U.current||!E){_();return}let t=V.style.top===`0px`,n=V.style.bottom===`0px`;if(!t&&!n){_();return}let r=pn(V),i=mn(V.getBoundingClientRect().height,`y`,r),a=A(V),o=getComputedStyle(V),s=parseFloat(o.marginTop),l=parseFloat(o.marginBottom),u=dn(getComputedStyle(c.current)),d=Math.min(a.documentElement.clientHeight-s-l,u),f=e.scrollTop,p=fn(e),m=0,h=null,g=!1,v=!1,y=e=>{V.style.height=`${e}px`},b=(t,n)=>{let r=Tt(t,0,d-i);r>0&&y(i+r),e.scrollTop=n,d-(i+r)<=1&&(U.current=!0),_()},x=t?p-f:f,S=Math.min(i+x,d);if(m=S,x<=1){b(x,t?p:0);return}if(d-S>1?t?v=!0:h=0:(g=!0,n&&f1&&(e.scrollTop=n)}(g||m>=d-1)&&(U.current=!0),_()});Q.useImperativeHandle(b,()=>q,[q]),M({open:F,ref:c,onComplete(){F&&l?.(!0)}});let J={open:F,transitionStatus:z,side:w,align:T};h(()=>{!V||!c.current||Object.keys(G.current).length||(G.current={top:V.style.top||`0`,left:V.style.left||`0`,right:V.style.right,height:V.style.height,bottom:V.style.bottom,minHeight:V.style.minHeight,maxHeight:V.style.maxHeight,marginTop:V.style.marginTop,marginBottom:V.style.marginBottom})},[c,V]),h(()=>{F||E||(W.current=!1,U.current=!1,Yt(V,G.current))},[F,E,V,c]),h(()=>{let e=c.current;if(!F||!B||!V||!e||E&&!D||s.state.transitionStatus===`ending`)return;if(!E){W.current=!0,K.request(_),e.style.removeProperty(`--transform-origin`);return}let t=_n(e);e.style.removeProperty(`--transform-origin`);try{let t=p.current,n=f.current,r=getComputedStyle(V),i=getComputedStyle(e),a=A(B),o=P(V),c=pn(B),l=hn(B.getBoundingClientRect(),c),u=hn(V.getBoundingClientRect(),c),d=l.height,m=H||e,h=m.scrollHeight,g=parseFloat(i.borderBottomWidth),v=parseFloat(r.marginTop)||10,y=parseFloat(r.marginBottom)||10,b=parseFloat(r.minHeight)||100,C=dn(i),w=a.documentElement.clientHeight-v-y,T=a.documentElement.clientWidth,E=w-l.bottom+d,D,k=ne===`rtl`?l.right-u.width:l.left,ee=0;if(t&&n){let e=hn(n.getBoundingClientRect(),c);D=hn(t.getBoundingClientRect(),c),k=u.left+(ne===`rtl`?e.right-D.right:e.left-D.left);let r=e.top-l.top+e.height/2;ee=D.top-u.top+D.height/2-r}let te=E+ee+y+g,j=Math.min(w,te),M=w-v-y,N=te-j,re=T-5;V.style.left=`${Tt(k,5,re-u.width)}px`,V.style.height=`${j}px`,V.style.maxHeight=`auto`,V.style.marginTop=`${v}px`,V.style.marginBottom=`${y}px`,e.style.height=`100%`;let ie=fn(m),ae=N>=ie-1;ae&&(j=Math.min(w,u.height)-(N-ie));let F=l.top<20||l.bottom>w-20||Math.ceil(j)+1=M?`0`:`${e}px`,V.style.height=`${j}px`,m.scrollTop=fn(m)}else V.style.bottom=`0`,m.scrollTop=N;if(D){let t=u.top,n=u.height,r=D.top+D.height/2,i=Tt(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(L===w||j>=C)&&(U.current=!0),_(),S&&s.state.selectedIndex===null&&s.state.activeIndex===null&&x.current[0]!=null&&s.set(`activeIndex`,0),W.current=!0}finally{t()}},[s,F,V,B,f,p,c,_,E,O,K,k,ee,H,x,S,ne,D]),Q.useEffect(()=>{if(!E||!V||!F)return;let e=P(V);function t(e){u(!1,ge(y,e))}return Be(e,`resize`,t)},[u,E,V,F]);let se={...H?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":g||void 0,id:`${ae}-list`},onKeyDown(e){m.current=!0,te&&je.has(e.key)&&e.stopPropagation()},onMouseMove(){m.current=!1},onScroll(e){H||q(e.currentTarget)},...E&&{style:H?{height:`100%`}:Xt}},ce=R(`div`,e,{ref:[t,c],state:J,stateAttributesMapping:ln,props:[oe,se,d(z),{className:!H&&E?nn.className:void 0},o]});return(0,Z.jsxs)(Q.Fragment,{children:[!ie&&nn.getElement(re),(0,Z.jsx)(_e,{context:N,modal:!1,disabled:!L,returnFocus:a,restoreFocus:!0,children:ce})]})});function dn(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function fn(e){return Et(e.scrollHeight,e.clientHeight)}function pn(e){return Ne.getScale(e)}function mn(e,t,n){return e/n[t]}function hn(e,t){return L({x:mn(e.x,`x`,t),y:mn(e.y,`y`,t),width:mn(e.width,`x`,t),height:mn(e.height,`y`,t)})}var gn=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function _n(e){let{style:t}=e,n={};for(let[e,r]of gn)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of gn){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var vn=Q.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=dt(),{alignItemWithTriggerActive:c}=Jt(),l=I(o,$.hasScrollArrows),u=I(o,$.openMethod),d=I(o,$.multiple),f={id:`${I(o,$.id)}-list`,role:`listbox`,"aria-multiselectable":d||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:Xt},className:l&&u!==`touch`?nn.className:void 0};return R(`div`,e,{ref:[t,j(e=>{o.set(`listElement`,e)})],props:[f,a]})}),yn=function(e){return e[e.None=0]=`None`,e[e.GuessFromOrder=1]=`GuessFromOrder`,e}({});function bn(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,elementsRef:l,labelsRef:u,nextIndexRef:d}=Ht(),f=Q.useRef(-1),[p,m]=Q.useState(a??(i===yn.GuessFromOrder?()=>{if(f.current===-1){let e=d.current;d.current+=1,f.current=e}return f.current}:-1)),g=Q.useRef(null),_=Q.useCallback(e=>{if(g.current=e,p!==-1&&e!==null&&(l.current[p]=e,u)){let n=t!==void 0;u.current[p]=n?t:r?.current?.textContent??e.textContent}},[p,l,u,t,r]);return h(()=>{if(a!=null)return;let e=g.current;if(e)return o(e,n),()=>{s(e)}},[a,o,s,n]),h(()=>{if(a==null)return c(e=>{let t=g.current?e.get(g.current)?.index:null;t!=null&&m(t)})},[a,c,m]),Q.useMemo(()=>({ref:_,index:p}),[p,_])}var xn=Q.createContext(void 0);function Sn(){let e=Q.useContext(xn);if(!e)throw Error(G(57));return e}var Cn=Q.memo(Q.forwardRef(function(e,t){let{render:n,className:r,value:i=null,label:a,disabled:o=!1,nativeButton:s=!1,style:c,...l}=e,u=Q.useRef(null),d=bn({label:a,textRef:u,indexGuessBehavior:yn.GuessFromOrder}),{store:f,getItemProps:p,setOpen:m,setValue:g,selectionRef:_,typingRef:v,valuesRef:y,multiple:x,selectedItemTextRef:S}=dt(),C=I(f,$.isActive,d.index),w=I(f,$.isSelected,d.index,i),T=I(f,$.isSelectedByFocus,d.index),E=I(f,$.isItemEqualToValue),D=d.index,O=D!==-1,k=Q.useRef(null),A=ae(D);h(()=>{if(!O)return;let e=y.current;return e[D]=i,()=>{delete e[D]}},[O,D,i,y]),h(()=>{if(!O)return;let e=f.state.value,t=e;x&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),t!==void 0&&mt(i,t,E)&&(f.set(`selectedIndex`,D),u.current&&(S.current=u.current))},[O,D,x,E,f,i,S]);let ee={disabled:o,selected:w,highlighted:C},te=p({active:C,selected:w});te.id=void 0;let j=Q.useRef(null),M=Q.useRef(`mouse`),N=Q.useRef(!1),{getButtonProps:P,buttonRef:ne}=Ye({disabled:o,focusableWhenDisabled:!0,native:s,composite:!0});function re(e){let t=f.state.value;if(x){let n=Array.isArray(t)?t:[];g(w?_t(n,i,E):[...n,i],ge(b,e))}else g(i,ge(b,e)),m(!1,ge(b,e))}let ie={role:`option`,"aria-selected":w,tabIndex:C?0:-1,onTouchStart(){_.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(e){j.current=e.key,f.set(`activeIndex`,D),e.key===` `&&v.current&&e.preventDefault()},onClick(e){N.current=!1,!(e.type===`keydown`&&j.current===null)&&(o||e.type===`keydown`&&j.current===` `&&v.current||M.current!==`touch`&&!C||(j.current=null,re(e.nativeEvent)))},onPointerEnter(e){M.current=e.pointerType},onPointerDown(e){M.current=e.pointerType,N.current=!0},onMouseUp(){if(o)return;if(N.current){N.current=!1;return}let e=!_.current.allowSelectedMouseUp&&w,t=!_.current.allowUnselectedMouseUp&&!w;e||t||M.current!==`touch`&&!C||k.current?.click()}},F=R(`div`,e,{ref:[ne,t,d.ref,k],state:ee,props:[te,ie,l,P]}),L=Q.useMemo(()=>({selected:w,indexRef:A,textRef:u,selectedByFocus:T,hasRegistered:O}),[w,A,u,T,O]);return(0,Z.jsx)(xn.Provider,{value:L,children:F})})),wn=Q.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=Sn();return n||r?(0,Z.jsx)(Tn,{...e,ref:t}):null}),Tn=Q.memo(Q.forwardRef((e,t)=>{let{render:n,className:r,style:a,keepMounted:o,...s}=e,{selected:c}=Sn(),l=Q.useRef(null),{transitionStatus:u,setMounted:d}=i(c),f=R(`span`,e,{ref:[t,l],state:{selected:c,transitionStatus:u},props:[{"aria-hidden":!0,children:`✔️`},s],stateAttributesMapping:N});return M({open:c,ref:l,onComplete(){c||d(!1)}}),f})),En=Q.memo(Q.forwardRef(function(e,t){let{indexRef:n,textRef:r,selectedByFocus:i,hasRegistered:a}=Sn(),{selectedItemTextRef:o}=dt(),{className:s,render:c,style:l,...u}=e;return R(`div`,e,{ref:[Q.useCallback(e=>{if(!e||!a)return;let t=o.current===null||!o.current.isConnected;(i||t&&n.current===0)&&(o.current=e)},[o,n,i,a]),t,r],props:u})})),Dn=Q.forwardRef(function(e,t){let{render:n,className:r,style:a,direction:o,keepMounted:s=!1,...c}=e,l=o===`up`,{store:u,popupRef:d,listRef:f,handleScrollArrowVisibility:p,scrollArrowsMountedCountRef:m}=dt(),{side:g,scrollDownArrowRef:_,scrollUpArrowRef:v}=Jt(),y=I(u,l?$.scrollUpArrowVisible:$.scrollDownArrowVisible),b=I(u,$.openMethod),x=y&&b!==`touch`,S=Ae(),C=l?v:_,{transitionStatus:w,setMounted:T}=i(x);h(()=>(m.current+=1,u.state.hasScrollArrows||u.set(`hasScrollArrows`,!0),()=>{m.current=Math.max(0,m.current-1),m.current===0&&u.state.hasScrollArrows&&u.set(`hasScrollArrows`,!1)}),[u,m]),M({open:x,ref:C,onComplete(){x||T(!1)}});let E=R(`div`,e,{ref:[t,C],state:{direction:o,visible:x,side:g,transitionStatus:w},props:[{"aria-hidden":!0,children:l?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||S.isStarted())return;u.set(`activeIndex`,null);function t(){let e=u.state.listElement??d.current;if(!e)return;u.set(`activeIndex`,null),p();let n=Et(e.scrollHeight,e.clientHeight),r=Dt(e.scrollTop,n),i=r===(l?0:n),a=f.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&u.set(l?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i){S.clear();return}if(a.length>0){let t=C.current?.offsetHeight||0;e.scrollTop=On(a,l,r,e.clientHeight,t,n)}S.start(40,t)}S.start(40,t)},onMouseLeave(){S.clear()}},c]});return x||s?E:null});function On(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return os){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?Dt(l.offsetTop+l.offsetHeight-r+i,a):a}var kn=Q.forwardRef(function(e,t){return(0,Z.jsx)(Dn,{...e,ref:t,direction:`down`})}),An=Q.forwardRef(function(e,t){return(0,Z.jsx)(Dn,{...e,ref:t,direction:`up`})}),jn=Q.createContext(void 0);function Mn(){let e=Q.useContext(jn);if(e===void 0)throw Error(G(56));return e}var Nn=Q.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,[o,s]=Q.useState(),c=Q.useMemo(()=>({labelId:o,setLabelId:s}),[o,s]),l=R(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":o},a]});return(0,Z.jsx)(jn.Provider,{value:c,children:l})}),Pn=Q.forwardRef(function(e,t){let{className:n,render:r,id:i,style:a,...o}=e,{setLabelId:s}=Mn(),c=te(i);return h(()=>{s(c)},[c,s]),R(`div`,e,{ref:t,props:[{id:c},o]})}),Fn=ke(),In=Ot;function Ln(e){let t=(0,Fn.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=he(`scroll-my-1 p-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(Nn,{className:i,"data-slot":`select-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Rn(e){let t=(0,Fn.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=he(`flex flex-1 text-left`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(Lt,{className:i,"data-slot":`select-value`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function zn(e){let n=(0,Fn.c)(15),r,i,a,o,s;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5]):({className:i,size:s,id:a,children:r,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s);let c=s===void 0?`default`:s,l;n[6]===i?l=n[7]:(l=he(`flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-input/20 px-2 py-1.5 text-xs/relaxed whitespace-nowrap transition-colors outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5`,i),n[6]=i,n[7]=l);let u;n[8]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Z.jsx)(Rt,{render:(0,Z.jsx)(t,{className:`pointer-events-none size-3.5 text-muted-foreground`})}),n[8]=u):u=n[8];let d;return n[9]!==r||n[10]!==a||n[11]!==o||n[12]!==c||n[13]!==l?(d=(0,Z.jsxs)(Ft,{className:l,"data-size":c,"data-slot":`select-trigger`,id:a,...o,children:[r,u]}),n[9]=r,n[10]=a,n[11]=o,n[12]=c,n[13]=l,n[14]=d):d=n[14],d}function Bn(e){let t=(0,Fn.c)(26),n,r,i,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8]):({className:r,children:n,side:a,sideOffset:o,align:s,alignOffset:c,alignItemWithTrigger:l,...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,t[8]=l);let u=a===void 0?`bottom`:a,d=o===void 0?4:o,f=s===void 0?`center`:s,p=c===void 0?0:c,m=l===void 0?!0:l,h;t[9]===r?h=t[10]:(h=he(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-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-closed:animate-out data-open:animate-in relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100`,r),t[9]=r,t[10]=h);let g;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Z.jsx)(Wn,{}),t[11]=g):g=t[11];let _;t[12]===n?_=t[13]:(_=(0,Z.jsx)(vn,{children:n}),t[12]=n,t[13]=_);let v;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,Z.jsx)(Gn,{}),t[14]=v):v=t[14];let y;t[15]!==i||t[16]!==h||t[17]!==_?(y=(0,Z.jsxs)(un,{className:h,"data-slot":`select-content`,...i,children:[g,_,v]}),t[15]=i,t[16]=h,t[17]=_,t[18]=y):y=t[18];let b;return t[19]!==f||t[20]!==m||t[21]!==p||t[22]!==u||t[23]!==d||t[24]!==y?(b=(0,Z.jsx)(Bt,{children:(0,Z.jsx)(en,{align:f,alignItemWithTrigger:m,alignOffset:p,className:`isolate z-50`,side:u,sideOffset:d,children:y})}),t[19]=f,t[20]=m,t[21]=p,t[22]=u,t[23]=d,t[24]=y,t[25]=b):b=t[25],b}function Vn(e){let t=(0,Fn.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=he(`px-2 py-1.5 text-xs text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(Pn,{className:i,"data-slot":`select-label`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Hn(t){let n=(0,Fn.c)(13),r,i,a;n[0]===t?(r=n[1],i=n[2],a=n[3]):({className:i,children:r,...a}=t,n[0]=t,n[1]=r,n[2]=i,n[3]=a);let o;n[4]===i?o=n[5]:(o=he(`relative flex min-h-7 w-full cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,i),n[4]=i,n[5]=o);let s;n[6]===r?s=n[7]:(s=(0,Z.jsx)(En,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:r}),n[6]=r,n[7]=s);let c;n[8]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Z.jsx)(wn,{render:(0,Z.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`}),children:(0,Z.jsx)(e,{className:`pointer-events-none`})}),n[8]=c):c=n[8];let l;return n[9]!==a||n[10]!==o||n[11]!==s?(l=(0,Z.jsxs)(Cn,{className:o,"data-slot":`select-item`,...a,children:[s,c]}),n[9]=a,n[10]=o,n[11]=s,n[12]=l):l=n[12],l}function Un(e){let t=(0,Fn.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=he(`pointer-events-none -mx-1 my-1 h-px bg-border/50`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(c,{className:i,"data-slot":`select-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Wn(e){let t=(0,Fn.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 i;t[3]===n?i=t[4]:(i=he(`top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(Xe,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Z.jsx)(An,{className:i,"data-slot":`select-scroll-up-button`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function Gn(e){let n=(0,Fn.c)(9),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=he(`bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,r),n[3]=r,n[4]=a);let o;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Z.jsx)(t,{}),n[5]=o):o=n[5];let s;return n[6]!==i||n[7]!==a?(s=(0,Z.jsx)(kn,{className:a,"data-slot":`select-scroll-down-button`,...i,children:o}),n[6]=i,n[7]=a,n[8]=s):s=n[8],s}export{Vn as a,Rn as c,Hn as i,bn as l,Bn as n,Un as o,Ln as r,zn as s,In as t,Ut as u}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/service-metrics.js b/spinifex/services/spinifexui/frontend/dist/assets/service-metrics.js index f4bd4bd69..1a6b7180f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/service-metrics.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/service-metrics.js @@ -1 +1 @@ -import{t as e}from"./useQuery.js";import{fs as t,gs as n,qr as r,ys as i}from"./index.js";import{t as a}from"./page-heading.js";import{n as o}from"./admin.js";import{t as s}from"./badge.js";import{a as c,o as l,r as u,t as d}from"./card.js";var f=t(),p=i();function m(){let t=(0,f.c)(46),{isAdmin:i}=r(),m;t[0]===i?m=t[1]:(m={...o,enabled:i,refetchInterval:5e3},t[0]=i,t[1]=m);let{data:y}=e(m);if(!i)throw n({to:`/`});let x=y?.encoding,S;t[2]===y?.db_nodes?S=t[3]:(S=y?.db_nodes??[],t[2]=y?.db_nodes,t[3]=S);let C=S,w;t[4]===y?.shard_nodes?w=t[5]:(w=y?.shard_nodes??[],t[4]=y?.shard_nodes,t[5]=w);let T=w,E;t[6]===C?E=t[7]:(E=C.length>0&&C.every(g),t[6]=C,t[7]=E);let D=E,O;t[8]===C?O=t[9]:(O=C.some(h),t[8]=C,t[9]=O);let k=O,A;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,p.jsx)(a,{title:`Service Metrics`}),t[10]=A):A=t[10];let j;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,p.jsx)(c,{children:(0,p.jsx)(l,{className:`text-sm`,children:`Predastore (S3) Overview`})}),t[11]=j):j=t[11];let M;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Encoding`}),t[12]=M):M=t[12];let N;t[13]===x?N=t[14]:(N=(0,p.jsxs)(`div`,{children:[M,(0,p.jsx)(`div`,{className:`mt-1`,children:x?(0,p.jsxs)(s,{variant:`outline`,children:[x.type,` RS(`,x.data_shards,`,`,x.parity_shards,`)`]}):(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})})]}),t[13]=x,t[14]=N);let P;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`DB Nodes`}),t[15]=P):P=t[15];let F;t[16]===C.length?F=t[17]:(F=(0,p.jsxs)(`div`,{children:[P,(0,p.jsx)(`div`,{className:`mt-1 font-mono font-medium`,children:C.length})]}),t[16]=C.length,t[17]=F);let I;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Shard Nodes`}),t[18]=I):I=t[18];let L;t[19]===T.length?L=t[20]:(L=(0,p.jsxs)(`div`,{children:[I,(0,p.jsx)(`div`,{className:`mt-1 font-mono font-medium`,children:T.length})]}),t[19]=T.length,t[20]=L);let R;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Cluster Health`}),t[21]=R):R=t[21];let z;t[22]!==D||t[23]!==k||t[24]!==C.length?(z=(0,p.jsxs)(`div`,{children:[R,(0,p.jsx)(`div`,{className:`mt-1`,children:(0,p.jsx)(_,{nodeCount:C.length,allHealthy:D,anyUnhealthy:k})})]}),t[22]=D,t[23]=k,t[24]=C.length,t[25]=z):z=t[25];let B;t[26]!==F||t[27]!==L||t[28]!==z||t[29]!==N?(B=(0,p.jsxs)(`div`,{className:`grid grid-cols-2 gap-4 text-xs md:grid-cols-4`,children:[N,F,L,z]}),t[26]=F,t[27]=L,t[28]=z,t[29]=N,t[30]=B):B=t[30];let V;t[31]===x?V=t[32]:(V=x&&(0,p.jsxs)(`p`,{className:`mt-3 text-[0.625rem] text-muted-foreground`,children:[`Reed-Solomon erasure coding: `,x.data_shards,` data shards + `,x.parity_shards,` parity`,` `,x.parity_shards===1?`shard`:`shards`,`. Can tolerate `,x.parity_shards,` shard`,` `,x.parity_shards===1?`failure`:`failures`,` without data loss.`]}),t[31]=x,t[32]=V);let H;t[33]!==B||t[34]!==V?(H=(0,p.jsxs)(d,{children:[j,(0,p.jsxs)(u,{children:[B,V]})]}),t[33]=B,t[34]=V,t[35]=H):H=t[35];let U;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,p.jsx)(c,{children:(0,p.jsx)(l,{className:`text-sm`,children:`DB Consensus Nodes (Raft)`})}),t[36]=U):U=t[36];let W;t[37]===C?W=t[38]:(W=(0,p.jsxs)(d,{children:[U,(0,p.jsx)(u,{children:C.length===0?(0,p.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,p.jsx)(v,{nodes:C})})]}),t[37]=C,t[38]=W);let G;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,p.jsx)(c,{children:(0,p.jsx)(l,{className:`text-sm`,children:`Object Storage Shard Nodes`})}),t[39]=G):G=t[39];let K;t[40]===T?K=t[41]:(K=(0,p.jsxs)(d,{children:[G,(0,p.jsx)(u,{children:T.length===0?(0,p.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,p.jsx)(b,{nodes:T})})]}),t[40]=T,t[41]=K);let q;return t[42]!==H||t[43]!==W||t[44]!==K?(q=(0,p.jsxs)(p.Fragment,{children:[A,(0,p.jsxs)(`div`,{className:`space-y-6`,children:[H,W,K]})]}),t[42]=H,t[43]=W,t[44]=K,t[45]=q):q=t[45],q}function h(e){return!e.healthy}function g(e){return e.healthy}function _(e){let t=(0,f.c)(4),{nodeCount:n,allHealthy:r,anyUnhealthy:i}=e;if(n===0){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(s,{variant:`secondary`,children:`Unknown`}),t[0]=e):e=t[0],e}if(r){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(s,{variant:`default`,children:`Healthy`}),t[1]=e):e=t[1],e}if(i){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(s,{variant:`destructive`,children:`Degraded`}),t[2]=e):e=t[2],e}let a;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,p.jsx)(s,{variant:`secondary`,children:`Unknown`}),t[3]=a):a=t[3],a}function v(e){let t=(0,f.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Host`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Port`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Health`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`State`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Leader`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Term`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Commit Index`}),(0,p.jsx)(`th`,{className:`pb-1 font-medium`,children:`Applied Index`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(y),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,p.jsx)(`div`,{className:`overflow-x-auto`,children:(0,p.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,p.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function y(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.id}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.port}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,p.jsx)(s,{variant:e.healthy?`default`:`destructive`,className:`text-[0.625rem]`,children:e.healthy?`Healthy`:`Unreachable`})}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.state?(0,p.jsx)(s,{variant:e.state===`Leader`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.state}):(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.leader??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.term??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.commit_index??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 font-mono`,children:e.applied_index??`-`})]},e.id)}function b(e){let t=(0,f.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Host`}),(0,p.jsx)(`th`,{className:`pb-1 font-medium`,children:`Port`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(x),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,p.jsx)(`div`,{className:`overflow-x-auto`,children:(0,p.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,p.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function x(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.id}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,p.jsx)(`td`,{className:`py-1.5 font-mono`,children:e.port})]},e.id)}export{m as component}; \ No newline at end of file +import{t as e}from"./useQuery.js";import{Jr as t,_s as n,bs as r,ps as i}from"./index.js";import{t as a}from"./page-heading.js";import{n as o}from"./admin.js";import{t as s}from"./badge.js";import{a as c,o as l,r as u,t as d}from"./card.js";var f=i(),p=r();function m(){let r=(0,f.c)(46),{isAdmin:i}=t(),m;r[0]===i?m=r[1]:(m={...o,enabled:i,refetchInterval:5e3},r[0]=i,r[1]=m);let{data:y}=e(m);if(!i)throw n({to:`/`});let x=y?.encoding,S;r[2]===y?.db_nodes?S=r[3]:(S=y?.db_nodes??[],r[2]=y?.db_nodes,r[3]=S);let C=S,w;r[4]===y?.shard_nodes?w=r[5]:(w=y?.shard_nodes??[],r[4]=y?.shard_nodes,r[5]=w);let T=w,E;r[6]===C?E=r[7]:(E=C.length>0&&C.every(g),r[6]=C,r[7]=E);let D=E,O;r[8]===C?O=r[9]:(O=C.some(h),r[8]=C,r[9]=O);let k=O,A;r[10]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,p.jsx)(a,{title:`Service Metrics`}),r[10]=A):A=r[10];let j;r[11]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,p.jsx)(c,{children:(0,p.jsx)(l,{className:`text-sm`,children:`Predastore (S3) Overview`})}),r[11]=j):j=r[11];let M;r[12]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Encoding`}),r[12]=M):M=r[12];let N;r[13]===x?N=r[14]:(N=(0,p.jsxs)(`div`,{children:[M,(0,p.jsx)(`div`,{className:`mt-1`,children:x?(0,p.jsxs)(s,{variant:`outline`,children:[x.type,` RS(`,x.data_shards,`,`,x.parity_shards,`)`]}):(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})})]}),r[13]=x,r[14]=N);let P;r[15]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`DB Nodes`}),r[15]=P):P=r[15];let F;r[16]===C.length?F=r[17]:(F=(0,p.jsxs)(`div`,{children:[P,(0,p.jsx)(`div`,{className:`mt-1 font-mono font-medium`,children:C.length})]}),r[16]=C.length,r[17]=F);let I;r[18]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Shard Nodes`}),r[18]=I):I=r[18];let L;r[19]===T.length?L=r[20]:(L=(0,p.jsxs)(`div`,{children:[I,(0,p.jsx)(`div`,{className:`mt-1 font-mono font-medium`,children:T.length})]}),r[19]=T.length,r[20]=L);let R;r[21]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Cluster Health`}),r[21]=R):R=r[21];let z;r[22]!==D||r[23]!==k||r[24]!==C.length?(z=(0,p.jsxs)(`div`,{children:[R,(0,p.jsx)(`div`,{className:`mt-1`,children:(0,p.jsx)(_,{nodeCount:C.length,allHealthy:D,anyUnhealthy:k})})]}),r[22]=D,r[23]=k,r[24]=C.length,r[25]=z):z=r[25];let B;r[26]!==F||r[27]!==L||r[28]!==z||r[29]!==N?(B=(0,p.jsxs)(`div`,{className:`grid grid-cols-2 gap-4 text-xs md:grid-cols-4`,children:[N,F,L,z]}),r[26]=F,r[27]=L,r[28]=z,r[29]=N,r[30]=B):B=r[30];let V;r[31]===x?V=r[32]:(V=x&&(0,p.jsxs)(`p`,{className:`mt-3 text-[0.625rem] text-muted-foreground`,children:[`Reed-Solomon erasure coding: `,x.data_shards,` data shards + `,x.parity_shards,` parity`,` `,x.parity_shards===1?`shard`:`shards`,`. Can tolerate `,x.parity_shards,` shard`,` `,x.parity_shards===1?`failure`:`failures`,` without data loss.`]}),r[31]=x,r[32]=V);let H;r[33]!==B||r[34]!==V?(H=(0,p.jsxs)(d,{children:[j,(0,p.jsxs)(u,{children:[B,V]})]}),r[33]=B,r[34]=V,r[35]=H):H=r[35];let U;r[36]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,p.jsx)(c,{children:(0,p.jsx)(l,{className:`text-sm`,children:`DB Consensus Nodes (Raft)`})}),r[36]=U):U=r[36];let W;r[37]===C?W=r[38]:(W=(0,p.jsxs)(d,{children:[U,(0,p.jsx)(u,{children:C.length===0?(0,p.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,p.jsx)(v,{nodes:C})})]}),r[37]=C,r[38]=W);let G;r[39]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,p.jsx)(c,{children:(0,p.jsx)(l,{className:`text-sm`,children:`Object Storage Shard Nodes`})}),r[39]=G):G=r[39];let K;r[40]===T?K=r[41]:(K=(0,p.jsxs)(d,{children:[G,(0,p.jsx)(u,{children:T.length===0?(0,p.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,p.jsx)(b,{nodes:T})})]}),r[40]=T,r[41]=K);let q;return r[42]!==H||r[43]!==W||r[44]!==K?(q=(0,p.jsxs)(p.Fragment,{children:[A,(0,p.jsxs)(`div`,{className:`space-y-6`,children:[H,W,K]})]}),r[42]=H,r[43]=W,r[44]=K,r[45]=q):q=r[45],q}function h(e){return!e.healthy}function g(e){return e.healthy}function _(e){let t=(0,f.c)(4),{nodeCount:n,allHealthy:r,anyUnhealthy:i}=e;if(n===0){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(s,{variant:`secondary`,children:`Unknown`}),t[0]=e):e=t[0],e}if(r){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(s,{variant:`default`,children:`Healthy`}),t[1]=e):e=t[1],e}if(i){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(s,{variant:`destructive`,children:`Degraded`}),t[2]=e):e=t[2],e}let a;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,p.jsx)(s,{variant:`secondary`,children:`Unknown`}),t[3]=a):a=t[3],a}function v(e){let t=(0,f.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Host`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Port`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Health`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`State`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Leader`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Term`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Commit Index`}),(0,p.jsx)(`th`,{className:`pb-1 font-medium`,children:`Applied Index`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(y),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,p.jsx)(`div`,{className:`overflow-x-auto`,children:(0,p.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,p.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function y(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.id}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.port}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,p.jsx)(s,{variant:e.healthy?`default`:`destructive`,className:`text-[0.625rem]`,children:e.healthy?`Healthy`:`Unreachable`})}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.state?(0,p.jsx)(s,{variant:e.state===`Leader`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.state}):(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.leader??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.term??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.commit_index??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 font-mono`,children:e.applied_index??`-`})]},e.id)}function b(e){let t=(0,f.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Host`}),(0,p.jsx)(`th`,{className:`pb-1 font-medium`,children:`Port`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(x),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,p.jsx)(`div`,{className:`overflow-x-auto`,children:(0,p.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,p.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function x(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.id}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,p.jsx)(`td`,{className:`py-1.5 font-mono`,children:e.port})]},e.id)}export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/state-badge.js b/spinifex/services/spinifexui/frontend/dist/assets/state-badge.js index 2c6d48cc7..b5110e3ab 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/state-badge.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/state-badge.js @@ -1 +1 @@ -import{Ao as e,fs as t,ys as n}from"./index.js";var r=t(),i=n(),a=new Set([`running`,`available`,`completed`,`Active`]),o=new Set([`stopped`,`error`]),s=new Set([`pending`,`shutting-down`,`stopping`]);function c(e){return e&&a.has(e)?`bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100`:e&&o.has(e)?`bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100`:e&&s.has(e)?`bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100`:e===`terminated`?`bg-zinc-100 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400`:`bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100`}function l(t){let n=(0,r.c)(5),{state:a}=t,o;n[0]===a?o=n[1]:(o=e(`rounded-full px-2 py-1 text-xs`,c(a)),n[0]=a,n[1]=o);let s;return n[2]!==a||n[3]!==o?(s=(0,i.jsx)(`div`,{className:o,children:a}),n[2]=a,n[3]=o,n[4]=s):s=n[4],s}export{l as t}; \ No newline at end of file +import{bs as e,jo as t,ps as n}from"./index.js";var r=n(),i=e(),a=new Set([`running`,`available`,`completed`,`Active`]),o=new Set([`stopped`,`error`]),s=new Set([`pending`,`shutting-down`,`stopping`]);function c(e){return e&&a.has(e)?`bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100`:e&&o.has(e)?`bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100`:e&&s.has(e)?`bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100`:e===`terminated`?`bg-zinc-100 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400`:`bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100`}function l(e){let n=(0,r.c)(5),{state:a}=e,o;n[0]===a?o=n[1]:(o=t(`rounded-full px-2 py-1 text-xs`,c(a)),n[0]=a,n[1]=o);let s;return n[2]!==a||n[3]!==o?(s=(0,i.jsx)(`div`,{className:o,children:a}),n[2]=a,n[3]=o,n[4]=s):s=n[4],s}export{l as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/tabs.js b/spinifex/services/spinifexui/frontend/dist/assets/tabs.js index 7ef663572..cfe4aec48 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/tabs.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/tabs.js @@ -1 +1 @@ -import{c as e,i as t,l as n,n as r,s as i,t as a,u as o}from"./select.js";import{t as s}from"./plus.js";import{t as c}from"./trash-2.js";import{$a as l,$i as u,Ao as d,Ba as f,Bi as p,Bo as m,Da as h,Di as g,Do as _,Gi as v,Ha as y,Hi as b,Ho as x,Ja as S,Ji as C,Na as w,Oa as T,Qa as E,Qi as D,Ra as O,Ri as k,Ro as A,Ua as j,Ui as M,Vi as N,Vo as P,Wi as F,Xa as I,Xi as L,Ya as R,Yi as z,Za as B,Zi as V,as as H,bs as U,cs as W,ea as G,eo as K,fs as q,ho as ee,is as J,mo as Y,no as X,os as te,po as ne,ro as re,us as ie,wo as ae,xo as oe,ys as se,za as ce,zo as le,zs as ue}from"./index.js";import{a as de,r as fe,t as pe}from"./field.js";var Z=q(),Q=ue(U(),1),$=se();function me(e,t){let n=new Map;for(let e of t)e.Key!==void 0&&n.set(e.Key,e.Value??``);let r={};for(let t of e)r[t.key]=n.get(t.key)??``;return r}function he(e,t){if(e.type===`int`){if(t.trim()===``)return`Value is required`;if(!/^-?\d+$/.test(t))return`Must be a whole number`;let n=Number(t);if(e.min!==void 0&&ne.max)return`Must be at most ${e.max}`}}function ge(t){let n=(0,Z.c)(56),{specs:o,attributes:s,onSubmit:c,isPending:l,error:u,isSuccess:d}=t,f;n[0]!==s||n[1]!==o?(f=me(o,s),n[0]=s,n[1]=o,n[2]=f):f=n[2];let p=f,[m,g]=(0,Q.useState)(p),v;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(v=(e,t)=>{g(n=>({...n,[e]:t}))},n[3]=v):v=n[3];let y=v,b;if(n[4]!==o||n[5]!==m){b={};for(let e of o)b[e.key]=he(e,m[e.key]??``);n[4]=o,n[5]=m,n[6]=b}else b=n[6];let x=Object.values(b).some(Boolean),S;if(n[7]!==p||n[8]!==o||n[9]!==m){let e;n[11]!==p||n[12]!==m?(e=e=>(m[e.key]??``)!==(p[e.key]??``),n[11]=p,n[12]=m,n[13]=e):e=n[13];let t;n[14]===m?t=n[15]:(t=e=>({key:e.key,value:m[e.key]??``}),n[14]=m,n[15]=t),S=o.filter(e).map(t),n[7]=p,n[8]=o,n[9]=m,n[10]=S}else S=n[10];let C=S,w;n[16]===p?w=n[17]:(w=()=>{g(p)},n[16]=p,n[17]=w);let T=w,E;n[18]!==C||n[19]!==x||n[20]!==c?(E=e=>{e.preventDefault(),!(x||C.length===0)&&c(C)},n[18]=C,n[19]=x,n[20]=c,n[21]=E):E=n[21];let D;n[22]===u?D=n[23]:(D=u&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:u.message||`Failed to save attributes`}),n[22]=u,n[23]=D);let O;n[24]!==C.length||n[25]!==d?(O=d&&C.length===0&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Attributes saved.`}),n[24]=C.length,n[25]=d,n[26]=O):O=n[26];let k;if(n[27]!==b||n[28]!==o||n[29]!==m){let t;n[31]!==b||n[32]!==m?(t=t=>{let n=`attr-${t.key}`,o=m[t.key]??``,s=b[t.key];return(0,$.jsxs)(pe,{children:[(0,$.jsx)(de,{children:(0,$.jsx)(`label`,{htmlFor:n,children:t.label})}),t.type===`bool`&&(0,$.jsx)(`input`,{"aria-label":t.label,checked:o===`true`,id:n,onChange:e=>y(t.key,e.target.checked?`true`:`false`),type:`checkbox`}),t.type===`int`&&(0,$.jsx)(h,{"aria-invalid":!!s,id:n,inputMode:`numeric`,onChange:e=>y(t.key,e.target.value),value:o}),t.type===`text`&&(0,$.jsx)(h,{id:n,onChange:e=>y(t.key,e.target.value),placeholder:t.placeholder,value:o}),t.type===`select`&&(0,$.jsxs)(a,{onValueChange:e=>y(t.key,e??``),value:o,children:[(0,$.jsx)(i,{className:`w-full`,id:n,children:(0,$.jsx)(e,{})}),(0,$.jsx)(r,{children:t.options.map(_e)})]}),t.description&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:t.description}),(0,$.jsx)(fe,{errors:[s?{message:s}:void 0]})]},t.key)},n[31]=b,n[32]=m,n[33]=t):t=n[33],k=o.map(t),n[27]=b,n[28]=o,n[29]=m,n[30]=k}else k=n[30];let A;n[34]===k?A=n[35]:(A=(0,$.jsx)(`div`,{className:`grid gap-4 p-4 sm:grid-cols-2`,children:k}),n[34]=k,n[35]=A);let j=C.length===0?`No changes`:`${C.length} change${C.length===1?``:`s`} pending`,M;n[36]===j?M=n[37]:(M=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:j}),n[36]=j,n[37]=M);let N=l||C.length===0,P;n[38]!==T||n[39]!==N?(P=(0,$.jsx)(_,{disabled:N,onClick:T,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),n[38]=T,n[39]=N,n[40]=P):P=n[40];let F=l||x||C.length===0,I=l?`Saving…`:`Save changes`,L;n[41]!==F||n[42]!==I?(L=(0,$.jsx)(_,{disabled:F,size:`sm`,type:`submit`,children:I}),n[41]=F,n[42]=I,n[43]=L):L=n[43];let R;n[44]!==M||n[45]!==P||n[46]!==L?(R=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[M,P,L]}),n[44]=M,n[45]=P,n[46]=L,n[47]=R):R=n[47];let z;n[48]!==R||n[49]!==A?(z=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[A,R]}),n[48]=R,n[49]=A,n[50]=z):z=n[50];let B;return n[51]!==z||n[52]!==E||n[53]!==D||n[54]!==O?(B=(0,$.jsxs)(`form`,{onSubmit:E,children:[D,O,z]}),n[51]=z,n[52]=E,n[53]=D,n[54]=O,n[55]=B):B=n[55],B}function _e(e){return(0,$.jsx)(t,{value:e,children:e},e)}var ve=[{key:`deletion_protection.enabled`,label:`Deletion protection`,type:`bool`},{key:`load_balancing.cross_zone.enabled`,label:`Cross-zone load balancing`,type:`bool`},{key:`idle_timeout.timeout_seconds`,label:`Idle timeout (s)`,type:`int`,min:1,max:4e3},{key:`client_keep_alive.seconds`,label:`Client keep-alive (s)`,type:`int`,min:60,max:604800},{key:`routing.http2.enabled`,label:`HTTP/2`,type:`bool`},{key:`routing.http.drop_invalid_header_fields.enabled`,label:`Drop invalid header fields`,type:`bool`},{key:`routing.http.preserve_host_header.enabled`,label:`Preserve host header`,type:`bool`},{key:`routing.http.xff_client_port.enabled`,label:`XFF client port`,type:`bool`},{key:`routing.http.xff_header_processing.mode`,label:`XFF header processing`,type:`select`,options:[`append`,`preserve`,`remove`]},{key:`routing.http.desync_mitigation_mode`,label:`Desync mitigation mode`,type:`select`,options:[`defensive`,`strictest`,`monitor`]},{key:`routing.http.x_amzn_tls_version_and_cipher_suite.enabled`,label:`Add TLS version & cipher headers`,type:`bool`},{key:`waf.fail_open.enabled`,label:`WAF fail open`,type:`bool`},{key:`zonal_shift.config.enabled`,label:`Zonal shift`,type:`bool`},{key:`access_logs.s3.enabled`,label:`Access logs: enabled`,type:`bool`},{key:`access_logs.s3.bucket`,label:`Access logs: S3 bucket`,type:`text`},{key:`access_logs.s3.prefix`,label:`Access logs: S3 prefix`,type:`text`},{key:`connection_logs.s3.enabled`,label:`Connection logs: enabled`,type:`bool`},{key:`connection_logs.s3.bucket`,label:`Connection logs: S3 bucket`,type:`text`},{key:`connection_logs.s3.prefix`,label:`Connection logs: S3 prefix`,type:`text`}],ye=[{key:`deregistration_delay.timeout_seconds`,label:`Deregistration delay (s)`,type:`int`,min:0,max:3600},{key:`stickiness.enabled`,label:`Stickiness`,type:`bool`},{key:`stickiness.type`,label:`Stickiness type`,type:`select`,options:[`lb_cookie`,`source_ip`]},{key:`stickiness.lb_cookie.duration_seconds`,label:`Stickiness lb_cookie duration (s)`,type:`int`,min:1,max:604800},{key:`load_balancing.cross_zone.enabled`,label:`Cross-zone load balancing`,type:`select`,options:[`true`,`false`,`use_load_balancer_configuration`]},{key:`load_balancing.algorithm.type`,label:`Load balancing algorithm`,type:`select`,options:[`round_robin`,`least_outstanding_requests`]},{key:`slow_start.duration_seconds`,label:`Slow start duration (s)`,type:`int`,min:0,max:900}];function be(e){return e.map((e,t)=>({id:t,key:e.Key??``,value:e.Value??``}))}function xe(e){return e.map(e=>({key:e.key.trim(),value:e.value})).filter(e=>e.key.length>0)}function Se(e){let t=(0,Z.c)(66),{tags:n,onSubmit:r,isPending:i,error:a,isSuccess:o}=e,l;t[0]===n?l=t[1]:(l=be(n),t[0]=n,t[1]=l);let u=l,[d,f]=(0,Q.useState)(u),[p,m]=(0,Q.useState)(u.length),g;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(g=(e,t)=>{f(n=>n.map(n=>n.id===e?{...n,...t}:n))},t[2]=g):g=t[2];let v=g,y;t[3]===p?y=t[4]:(y=()=>{f(e=>[...e,{id:p,key:``,value:``}]),m(Te)},t[3]=p,t[4]=y);let b=y,x;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>{f(t=>t.filter(t=>t.id!==e))},t[5]=x):x=t[5];let S=x,C;t[6]===u?C=t[7]:(C=()=>{f(u)},t[6]=u,t[7]=C);let w=C,T;t[8]===d?T=t[9]:(T=d.some(we),t[8]=d,t[9]=T);let E=T,D,O,k,A;if(t[10]!==E||t[11]!==d){k=xe(d);let e=k.map(Ce);D=new Set(e).size!==e.length,O=E||D,A=JSON.stringify(k),t[10]=E,t[11]=d,t[12]=D,t[13]=O,t[14]=k,t[15]=A}else D=t[12],O=t[13],k=t[14],A=t[15];let j;t[16]===u?j=t[17]:(j=JSON.stringify(xe(u)),t[16]=u,t[17]=j);let M=A!==j,N;t[18]!==M||t[19]!==O||t[20]!==k||t[21]!==r?(N=e=>{e.preventDefault(),!(O||!M)&&r(k)},t[18]=M,t[19]=O,t[20]=k,t[21]=r,t[22]=N):N=t[22];let P;t[23]===a?P=t[24]:(P=a&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:a.message||`Failed to save tags`}),t[23]=a,t[24]=P);let F;t[25]!==M||t[26]!==o?(F=o&&!M&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Tags saved.`}),t[25]=M,t[26]=o,t[27]=F):F=t[27];let I;t[28]===d.length?I=t[29]:(I=d.length===0&&(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No tags.`}),t[28]=d.length,t[29]=I);let L;if(t[30]!==d){let e;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(e=e=>(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(h,{"aria-label":`Tag key`,onChange:t=>v(e.id,{key:t.target.value}),placeholder:`Key`,value:e.key}),(0,$.jsx)(h,{"aria-label":`Tag value`,onChange:t=>v(e.id,{value:t.target.value}),placeholder:`Value`,value:e.value}),(0,$.jsx)(_,{"aria-label":`Remove tag`,onClick:()=>S(e.id),size:`icon`,type:`button`,variant:`ghost`,children:(0,$.jsx)(c,{className:`size-4`})})]},e.id),t[32]=e):e=t[32],L=d.map(e),t[30]=d,t[31]=L}else L=t[31];let R;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,$.jsx)(s,{className:`size-4`}),t[33]=R):R=t[33];let z;t[34]===b?z=t[35]:(z=(0,$.jsx)(`div`,{children:(0,$.jsxs)(_,{onClick:b,size:`sm`,type:`button`,variant:`secondary`,children:[R,` Add tag`]})}),t[34]=b,t[35]=z);let B;t[36]===E?B=t[37]:(B=E&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`Every tag with a value needs a key.`}),t[36]=E,t[37]=B);let V;t[38]===D?V=t[39]:(V=D&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`Tag keys must be unique.`}),t[38]=D,t[39]=V);let H;t[40]!==I||t[41]!==L||t[42]!==z||t[43]!==B||t[44]!==V?(H=(0,$.jsxs)(`div`,{className:`flex flex-col gap-2 p-4`,children:[I,L,z,B,V]}),t[40]=I,t[41]=L,t[42]=z,t[43]=B,t[44]=V,t[45]=H):H=t[45];let U=M?`Unsaved changes`:`No changes`,W;t[46]===U?W=t[47]:(W=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:U}),t[46]=U,t[47]=W);let G=i||!M,K;t[48]!==w||t[49]!==G?(K=(0,$.jsx)(_,{disabled:G,onClick:w,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[48]=w,t[49]=G,t[50]=K):K=t[50];let q=i||O||!M,ee=i?`Saving…`:`Save changes`,J;t[51]!==q||t[52]!==ee?(J=(0,$.jsx)(_,{disabled:q,size:`sm`,type:`submit`,children:ee}),t[51]=q,t[52]=ee,t[53]=J):J=t[53];let Y;t[54]!==W||t[55]!==K||t[56]!==J?(Y=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[W,K,J]}),t[54]=W,t[55]=K,t[56]=J,t[57]=Y):Y=t[57];let X;t[58]!==H||t[59]!==Y?(X=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[H,Y]}),t[58]=H,t[59]=Y,t[60]=X):X=t[60];let te;return t[61]!==P||t[62]!==F||t[63]!==X||t[64]!==N?(te=(0,$.jsxs)(`form`,{onSubmit:N,children:[P,F,X]}),t[61]=P,t[62]=F,t[63]=X,t[64]=N,t[65]=te):te=t[65],te}function Ce(e){return e.key}function we(e){return e.key.trim().length===0&&e.value.length>0}function Te(e){return e+1}var Ee=Q.createContext(void 0);function De(){let e=Q.useContext(Ee);if(e===void 0)throw Error(ie(64));return e}var Oe=function(e){return e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e}({}),ke={tabActivationDirection:e=>({[Oe.activationDirection]:e})},Ae=Q.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:a=`horizontal`,render:s,value:c,style:l,...u}=e,d=Object.hasOwn(e,`defaultValue`),f=Q.useRef([]),[p,m]=Q.useState(()=>new Map),[h,g]=O({controlled:c,default:r,name:`Tabs`,state:`value`}),_=c!==void 0,[v,y]=Q.useState(()=>new Map),b=Q.useCallback(e=>{if(e===void 0)return null;for(let[t,n]of v.entries())if(n!=null&&e===(n.value??n.index))return t;return null},[v]),[S,C]=Q.useState(()=>({previousValue:h,tabActivationDirection:`none`})),{previousValue:w,tabActivationDirection:T}=S,E=T,D=!1;w!==h&&(E=je(w,h,a,v),D=w!=null&&h!=null&&b(h)==null);let k=D?w:h,A=w!==k||T!==E;P(()=>{A&&C({previousValue:k,tabActivationDirection:E})},[k,A,E]);let j=x((e,t)=>{t.activationDirection=je(h,e,a,v),i?.(e,t),!t.isCanceled&&g(e)}),M=x((e,t)=>{m(n=>{if(n.get(e)===t)return n;let r=new Map(n);return r.set(e,t),r})}),N=x((e,t)=>{m(n=>{if(!n.has(e)||n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})}),F=Q.useCallback(e=>p.get(e),[p]),I=Q.useCallback(e=>{for(let t of v.values())if(e===t?.value)return t?.id},[v]),L=Q.useMemo(()=>({getTabElementBySelectedValue:b,getTabIdByPanelValue:I,getTabPanelIdByValue:F,onValueChange:j,orientation:a,registerMountedTabPanel:M,setTabMap:y,unregisterMountedTabPanel:N,tabActivationDirection:E,value:h}),[b,I,F,j,a,M,y,N,E,h]),R=Q.useMemo(()=>{for(let e of v.values())if(e!=null&&e.value===h)return e},[v,h]),z=Q.useMemo(()=>{for(let e of v.values())if(e!=null&&!e.disabled)return e.value},[v]);P(()=>{if(_||v.size===0)return;let e=R?.disabled;if(d&&e&&h===r||!e&&!(R==null&&h!==null))return;let t=z??null;h!==t&&(g(t),C(e=>e.tabActivationDirection===`none`?e:{...e,tabActivationDirection:`none`}))},[r,z,d,_,R,g,v,h]);let B=J(`div`,e,{state:{orientation:a,tabActivationDirection:E},ref:t,props:u,stateAttributesMapping:ke});return(0,$.jsx)(Ee.Provider,{value:L,children:(0,$.jsx)(o,{elementsRef:f,children:B})})});function je(e,t,n,r){if(e==null||t==null)return`none`;let i=null,a=null;for(let[n,o]of r.entries()){if(o==null)continue;let r=o.value??o.index;if(e===r&&(i=n),t===r&&(a=n),i!=null&&a!=null)break}if(i==null||a==null)return i!==a&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?n===`horizontal`?t>e?`right`:`left`:t>e?`down`:`up`:`none`;let o=i.getBoundingClientRect(),s=a.getBoundingClientRect();if(n===`horizontal`){if(s.lefto.left)return`right`}else{if(s.topo.top)return`down`}return`none`}var Me=`data-composite-item-active`;function Ne(e={}){let{highlightItemOnHover:t,highlightedIndex:r,onHighlightedIndexChange:i}=m(),{ref:a,index:o}=n(e),s=r===o,c=Q.useRef(null),l=W(a,c);return{compositeProps:Q.useMemo(()=>({tabIndex:s?0:-1,onFocus(){i(o)},onMouseMove(){let e=c.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!s&&!n&&e.focus()}}),[s,i,o,t]),compositeRef:l,index:o}}var Pe=Q.createContext(void 0);function Fe(){let e=Q.useContext(Pe);if(e===void 0)throw Error(ie(65));return e}var Ie=Q.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:o,nativeButton:s=!0,style:c,...l}=e,{value:u,getTabPanelIdByValue:d,orientation:f}=De(),{activateOnFocus:p,highlightedTabIndex:m,onTabActivation:h,registerTabResizeObserverElement:g,setHighlightedTabIndex:_,tabsListElement:v}=Fe(),y=ae(o),{compositeProps:b,compositeRef:x,index:S}=Ne({metadata:Q.useMemo(()=>({disabled:r,id:y,value:a}),[r,y,a])}),C=a===u,E=Q.useRef(!1),D=Q.useRef(null);Q.useEffect(()=>{let e=D.current;if(e)return g(e)},[g]),P(()=>{if(E.current){E.current=!1;return}if(!(C&&S>-1&&m!==S))return;let e=v;if(e!=null){let t=ne(oe(e));if(t&&Y(e,t))return}r||_(S)},[C,S,m,_,r,v]);let{getButtonProps:O,buttonRef:k}=A({disabled:r,native:s,focusableWhenDisabled:!0}),j=d(a),M=Q.useRef(!1),N=Q.useRef(!1);function F(e){C||r||h(a,T(w,e.nativeEvent,void 0,{activationDirection:`none`}))}function I(e){C||(S>-1&&!r&&_(S),!r&&p&&(!M.current||M.current&&N.current)&&h(a,T(w,e.nativeEvent,void 0,{activationDirection:`none`})))}function L(e){if(C||r)return;M.current=!0;function t(){M.current=!1,N.current=!1}(!e.button||e.button===0)&&(N.current=!0,oe(e.currentTarget).addEventListener(`pointerup`,t,{once:!0}))}return J(`button`,e,{state:{disabled:r,active:C,orientation:f},ref:[t,k,x,D],props:[b,{role:`tab`,"aria-controls":j,"aria-selected":C,id:y,onClick:F,onFocus:I,onPointerDown:L,[Me]:C?``:void 0,onKeyDownCapture(){E.current=!0}},l,O]})}),Le=function(e){return e.index=`data-index`,e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e.hidden=`data-hidden`,e[e.startingStyle=y.startingStyle]=`startingStyle`,e[e.endingStyle=y.endingStyle]=`endingStyle`,e}({}),Re={...ke,...j},ze=Q.forwardRef(function(e,t){let{className:r,value:i,render:a,keepMounted:o=!1,style:s,...c}=e,{value:l,getTabIdByPanelValue:u,orientation:d,tabActivationDirection:p,registerMountedTabPanel:m,unregisterMountedTabPanel:h}=De(),g=ae(),{ref:_,index:v}=n({metadata:Q.useMemo(()=>({id:g,value:i}),[g,i])}),y=i===l,{mounted:b,transitionStatus:x,setMounted:S}=ce(y),C=!b,w=u(i),T={hidden:C,orientation:d,tabActivationDirection:p,transitionStatus:x},E=Q.useRef(null),D=J(`div`,e,{state:T,ref:[t,_,E],props:[{"aria-labelledby":w,hidden:C,id:g,role:`tabpanel`,tabIndex:y?0:-1,inert:k(!y),[Le.index]:v},c],stateAttributesMapping:Re});return f({open:y,ref:E,onComplete(){y||S(!1)}}),P(()=>{if(!(C&&!o)&&g!=null)return m(i,g),()=>{h(i,g)}},[C,o,i,g,m,h]),o||b?D:null});function Be(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var Ve=[];function He(e){let{itemSizes:t,cols:n=1,loopFocus:r=!0,onLoop:i,dense:a=!1,orientation:o=`both`,direction:s,highlightedIndex:c,onHighlightedIndexChange:d,rootRef:f,enableHomeAndEndKeys:m=!1,stopEventPropagation:h=!1,disabledIndices:g,modifierKeys:_=Ve}=e,[y,w]=Q.useState(0),T=n>1,O=Q.useRef(null),k=W(O,f),A=Q.useRef([]),j=Q.useRef(!1),P=c??y,L=x((e,t=!1)=>{if((d??w)(e),t){let t=A.current[e];G(O.current,t,s,o)}}),H=x(e=>{if(e.size===0||j.current)return;j.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,r=n?t.indexOf(n):-1;r!==-1&&L(r),G(O.current,n,s,o)}),U=x((e,t,n)=>i?i?.(e,t,n,A):n),q=Q.useMemo(()=>({"aria-orientation":o===`both`?void 0:o,ref:k,onFocus(e){let t=O.current,n=ee(e.nativeEvent);!t||n==null||!u(n)||n.setSelectionRange(0,n.value.length??0)},onKeyDown(e){let c=m?p:b;if(!c.has(e.key)||Ue(e,_)||!O.current)return;let d=s===`rtl`,f=d?M:F,y={horizontal:f,vertical:N,both:f}[o],x=d?F:M,w={horizontal:x,vertical:v,both:x}[o],k=ee(e.nativeEvent);if(k!=null&&u(k)&&!Be(k)){let t=k.selectionStart,n=k.selectionEnd,r=k.value??``;if(t==null||e.shiftKey||t!==n||e.key!==w&&t0)return}let j=P,H=K(A,g),W=l(A,g);if(T){let i=t||Array.from({length:A.current.length},()=>({width:1,height:1})),s=S(i,n,a),c=s.findIndex(e=>e!=null&&!re(A.current,e,g)),l=s.reduce((e,t,n)=>t!=null&&!re(A.current,t,g)?n:e,-1);j=s[E(s.map(e=>e==null?null:A.current[e]),{event:e,orientation:o,loopFocus:r,onLoop:U,cols:n,disabledIndices:B([...g||A.current.map((e,t)=>re(A.current,t)?t:void 0),void 0],s),minIndex:c,maxIndex:l,prevIndex:I(P>W?H:P,i,s,n,e.key===`ArrowDown`?`bl`:e.key===`ArrowRight`?`tr`:`tl`),rtl:d})]}let G={horizontal:[f],vertical:[N],both:[f,N]}[o],q={horizontal:[x],vertical:[v],both:[x,v]}[o],J=T?c:{horizontal:m?z:C,vertical:m?D:V,both:c}[o];m&&(e.key===`Home`?j=H:e.key===`End`&&(j=W)),j===P&&(G.includes(e.key)||q.includes(e.key))&&(r&&j===W&&G.includes(e.key)?(j=H,i&&(j=i(e,P,j,A))):r&&j===H&&q.includes(e.key)?(j=W,i&&(j=i(e,P,j,A))):j=R(A.current,{startingIndex:j,decrement:q.includes(e.key),disabledIndices:g})),j!==P&&!X(A.current,j)&&(h&&e.stopPropagation(),J.has(e.key)&&e.preventDefault(),L(j,!0),queueMicrotask(()=>{A.current[j]?.focus()}))}}),[n,a,s,g,A,m,P,T,t,r,i,U,k,_,L,o,h]);return Q.useMemo(()=>({props:q,highlightedIndex:P,onHighlightedIndexChange:L,elementsRef:A,disabledIndices:g,onMapChange:H,relayKeyboardEvent:q.onKeyDown}),[q,P,L,A,g,H])}function Ue(e,t){for(let n of L.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function We(e){let{render:t,className:n,style:r,refs:i=H,props:a=H,state:s=te,stateAttributesMapping:c,highlightedIndex:l,onHighlightedIndexChange:u,orientation:d,dense:f,itemSizes:p,loopFocus:m,onLoop:h,cols:_,enableHomeAndEndKeys:v,onMapChange:y,stopEventPropagation:b=!0,rootRef:x,disabledIndices:S,modifierKeys:C,highlightItemOnHover:w=!1,tag:T=`div`,...E}=e,{props:D,highlightedIndex:O,onHighlightedIndexChange:k,elementsRef:A,onMapChange:j,relayKeyboardEvent:M}=He({itemSizes:p,cols:_,loopFocus:m,onLoop:h,dense:f,orientation:d,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:x,stopEventPropagation:b,enableHomeAndEndKeys:v,direction:g(),disabledIndices:S,modifierKeys:C}),N=J(T,e,{state:s,ref:i,props:[D,...a,E],stateAttributesMapping:c}),P=Q.useMemo(()=>({highlightedIndex:O,onHighlightedIndexChange:k,highlightItemOnHover:w,relayKeyboardEvent:M}),[O,k,w,M]);return(0,$.jsx)(le.Provider,{value:P,children:(0,$.jsx)(o,{elementsRef:A,onMapChange:e=>{y?.(e),j(e)},children:N})})}var Ge=Q.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:o,...s}=e,{onValueChange:c,orientation:l,value:u,setTabMap:d,tabActivationDirection:f}=De(),[p,m]=Q.useState(0),[h,g]=Q.useState(null),_=Q.useRef(new Set),v=Q.useRef(new Set),y=Q.useRef(null),b=x(()=>{_.current.forEach(e=>{e()})});Q.useEffect(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{_.current.size&&b()});return y.current=e,h&&e.observe(h),v.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),y.current=null}},[h,b]);let S=x(e=>(_.current.add(e),()=>{_.current.delete(e)})),C=x(e=>(v.current.add(e),y.current?.observe(e),()=>{v.current.delete(e),y.current?.unobserve(e)})),w=x((e,t)=>{e!==u&&c(e,t)}),T={orientation:l,tabActivationDirection:f},E={"aria-orientation":l===`vertical`?`vertical`:void 0,role:`tablist`},D=Q.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:p,registerIndicatorUpdateListener:S,registerTabResizeObserverElement:C,onTabActivation:w,setHighlightedTabIndex:m,tabsListElement:h}),[n,p,S,C,w,m,h]);return(0,$.jsx)(Pe.Provider,{value:D,children:(0,$.jsx)(We,{render:a,className:r,style:o,state:T,refs:[t,g],props:[E,s],stateAttributesMapping:ke,highlightedIndex:p,enableHomeAndEndKeys:!0,loopFocus:i,orientation:l,onHighlightedIndexChange:m,onMapChange:d,disabledIndices:H})})});function Ke(e){let t=(0,Z.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=d(`flex flex-col gap-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(Ae,{className:i,"data-slot":`tabs`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function qe(e){let t=(0,Z.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=d(`inline-flex items-center gap-1 border-b`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(Ge,{className:i,"data-slot":`tabs-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Je(e){let t=(0,Z.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=d(`inline-flex items-center justify-center border-b-2 border-transparent px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/30 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-selected:border-primary data-selected:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(Ie,{className:i,"data-slot":`tabs-tab`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ye(e){let t=(0,Z.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=d(`focus-visible:outline-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(ze,{className:i,"data-slot":`tabs-panel`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{Se as a,ye as c,Je as i,qe as n,ge as o,Ye as r,ve as s,Ke as t}; \ No newline at end of file +import{c as e,i as t,l as n,n as r,s as i,t as a,u as o}from"./select.js";import{t as s}from"./plus.js";import{t as c}from"./trash-2.js";import{$a as l,$i as u,Ba as d,Bo as f,Bs as p,Gi as m,Hi as h,Ho as g,Ki as _,Oa as v,Oi as y,Oo as b,Pa as x,Qa as S,Qi as C,So as w,To as T,Ua as E,Ui as D,Uo as O,Va as k,Vi as A,Vo as j,Wa as M,Wi as N,Xa as P,Xi as F,Ya as I,Yi as L,Za as R,Zi as z,as as B,bs as V,ds as H,ea as ee,eo as U,go as te,ho as W,io as G,jo as K,ka as q,ls as J,mo as Y,os as X,ps as ne,ro as re,ss as ie,ta as ae,to as oe,xs as se,za as ce,zi as le,zo as ue}from"./index.js";import{a as de,r as fe,t as pe}from"./field.js";var Z=ne(),Q=p(se(),1),$=V();function me(e,t){let n=new Map;for(let e of t)e.Key!==void 0&&n.set(e.Key,e.Value??``);let r={};for(let t of e)r[t.key]=n.get(t.key)??``;return r}function he(e,t){if(e.type===`int`){if(t.trim()===``)return`Value is required`;if(!/^-?\d+$/.test(t))return`Must be a whole number`;let n=Number(t);if(e.min!==void 0&&ne.max)return`Must be at most ${e.max}`}}function ge(t){let n=(0,Z.c)(56),{specs:o,attributes:s,onSubmit:c,isPending:l,error:u,isSuccess:d}=t,f;n[0]!==s||n[1]!==o?(f=me(o,s),n[0]=s,n[1]=o,n[2]=f):f=n[2];let p=f,[m,h]=(0,Q.useState)(p),g;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(g=(e,t)=>{h(n=>({...n,[e]:t}))},n[3]=g):g=n[3];let _=g,y;if(n[4]!==o||n[5]!==m){y={};for(let e of o)y[e.key]=he(e,m[e.key]??``);n[4]=o,n[5]=m,n[6]=y}else y=n[6];let x=Object.values(y).some(Boolean),S;if(n[7]!==p||n[8]!==o||n[9]!==m){let e;n[11]!==p||n[12]!==m?(e=e=>(m[e.key]??``)!==(p[e.key]??``),n[11]=p,n[12]=m,n[13]=e):e=n[13];let t;n[14]===m?t=n[15]:(t=e=>({key:e.key,value:m[e.key]??``}),n[14]=m,n[15]=t),S=o.filter(e).map(t),n[7]=p,n[8]=o,n[9]=m,n[10]=S}else S=n[10];let C=S,w;n[16]===p?w=n[17]:(w=()=>{h(p)},n[16]=p,n[17]=w);let T=w,E;n[18]!==C||n[19]!==x||n[20]!==c?(E=e=>{e.preventDefault(),!(x||C.length===0)&&c(C)},n[18]=C,n[19]=x,n[20]=c,n[21]=E):E=n[21];let D;n[22]===u?D=n[23]:(D=u&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:u.message||`Failed to save attributes`}),n[22]=u,n[23]=D);let O;n[24]!==C.length||n[25]!==d?(O=d&&C.length===0&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Attributes saved.`}),n[24]=C.length,n[25]=d,n[26]=O):O=n[26];let k;if(n[27]!==y||n[28]!==o||n[29]!==m){let t;n[31]!==y||n[32]!==m?(t=t=>{let n=`attr-${t.key}`,o=m[t.key]??``,s=y[t.key];return(0,$.jsxs)(pe,{children:[(0,$.jsx)(de,{children:(0,$.jsx)(`label`,{htmlFor:n,children:t.label})}),t.type===`bool`&&(0,$.jsx)(`input`,{"aria-label":t.label,checked:o===`true`,id:n,onChange:e=>_(t.key,e.target.checked?`true`:`false`),type:`checkbox`}),t.type===`int`&&(0,$.jsx)(v,{"aria-invalid":!!s,id:n,inputMode:`numeric`,onChange:e=>_(t.key,e.target.value),value:o}),t.type===`text`&&(0,$.jsx)(v,{id:n,onChange:e=>_(t.key,e.target.value),placeholder:t.placeholder,value:o}),t.type===`select`&&(0,$.jsxs)(a,{onValueChange:e=>_(t.key,e??``),value:o,children:[(0,$.jsx)(i,{className:`w-full`,id:n,children:(0,$.jsx)(e,{})}),(0,$.jsx)(r,{children:t.options.map(_e)})]}),t.description&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:t.description}),(0,$.jsx)(fe,{errors:[s?{message:s}:void 0]})]},t.key)},n[31]=y,n[32]=m,n[33]=t):t=n[33],k=o.map(t),n[27]=y,n[28]=o,n[29]=m,n[30]=k}else k=n[30];let A;n[34]===k?A=n[35]:(A=(0,$.jsx)(`div`,{className:`grid gap-4 p-4 sm:grid-cols-2`,children:k}),n[34]=k,n[35]=A);let j=C.length===0?`No changes`:`${C.length} change${C.length===1?``:`s`} pending`,M;n[36]===j?M=n[37]:(M=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:j}),n[36]=j,n[37]=M);let N=l||C.length===0,P;n[38]!==T||n[39]!==N?(P=(0,$.jsx)(b,{disabled:N,onClick:T,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),n[38]=T,n[39]=N,n[40]=P):P=n[40];let F=l||x||C.length===0,I=l?`Saving…`:`Save changes`,L;n[41]!==F||n[42]!==I?(L=(0,$.jsx)(b,{disabled:F,size:`sm`,type:`submit`,children:I}),n[41]=F,n[42]=I,n[43]=L):L=n[43];let R;n[44]!==M||n[45]!==P||n[46]!==L?(R=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[M,P,L]}),n[44]=M,n[45]=P,n[46]=L,n[47]=R):R=n[47];let z;n[48]!==R||n[49]!==A?(z=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[A,R]}),n[48]=R,n[49]=A,n[50]=z):z=n[50];let B;return n[51]!==z||n[52]!==E||n[53]!==D||n[54]!==O?(B=(0,$.jsxs)(`form`,{onSubmit:E,children:[D,O,z]}),n[51]=z,n[52]=E,n[53]=D,n[54]=O,n[55]=B):B=n[55],B}function _e(e){return(0,$.jsx)(t,{value:e,children:e},e)}var ve=[{key:`deletion_protection.enabled`,label:`Deletion protection`,type:`bool`},{key:`load_balancing.cross_zone.enabled`,label:`Cross-zone load balancing`,type:`bool`},{key:`idle_timeout.timeout_seconds`,label:`Idle timeout (s)`,type:`int`,min:1,max:4e3},{key:`client_keep_alive.seconds`,label:`Client keep-alive (s)`,type:`int`,min:60,max:604800},{key:`routing.http2.enabled`,label:`HTTP/2`,type:`bool`},{key:`routing.http.drop_invalid_header_fields.enabled`,label:`Drop invalid header fields`,type:`bool`},{key:`routing.http.preserve_host_header.enabled`,label:`Preserve host header`,type:`bool`},{key:`routing.http.xff_client_port.enabled`,label:`XFF client port`,type:`bool`},{key:`routing.http.xff_header_processing.mode`,label:`XFF header processing`,type:`select`,options:[`append`,`preserve`,`remove`]},{key:`routing.http.desync_mitigation_mode`,label:`Desync mitigation mode`,type:`select`,options:[`defensive`,`strictest`,`monitor`]},{key:`routing.http.x_amzn_tls_version_and_cipher_suite.enabled`,label:`Add TLS version & cipher headers`,type:`bool`},{key:`waf.fail_open.enabled`,label:`WAF fail open`,type:`bool`},{key:`zonal_shift.config.enabled`,label:`Zonal shift`,type:`bool`},{key:`access_logs.s3.enabled`,label:`Access logs: enabled`,type:`bool`},{key:`access_logs.s3.bucket`,label:`Access logs: S3 bucket`,type:`text`},{key:`access_logs.s3.prefix`,label:`Access logs: S3 prefix`,type:`text`},{key:`connection_logs.s3.enabled`,label:`Connection logs: enabled`,type:`bool`},{key:`connection_logs.s3.bucket`,label:`Connection logs: S3 bucket`,type:`text`},{key:`connection_logs.s3.prefix`,label:`Connection logs: S3 prefix`,type:`text`}],ye=[{key:`deregistration_delay.timeout_seconds`,label:`Deregistration delay (s)`,type:`int`,min:0,max:3600},{key:`stickiness.enabled`,label:`Stickiness`,type:`bool`},{key:`stickiness.type`,label:`Stickiness type`,type:`select`,options:[`lb_cookie`,`source_ip`]},{key:`stickiness.lb_cookie.duration_seconds`,label:`Stickiness lb_cookie duration (s)`,type:`int`,min:1,max:604800},{key:`load_balancing.cross_zone.enabled`,label:`Cross-zone load balancing`,type:`select`,options:[`true`,`false`,`use_load_balancer_configuration`]},{key:`load_balancing.algorithm.type`,label:`Load balancing algorithm`,type:`select`,options:[`round_robin`,`least_outstanding_requests`]},{key:`slow_start.duration_seconds`,label:`Slow start duration (s)`,type:`int`,min:0,max:900}];function be(e){return e.map((e,t)=>({id:t,key:e.Key??``,value:e.Value??``}))}function xe(e){return e.map(e=>({key:e.key.trim(),value:e.value})).filter(e=>e.key.length>0)}function Se(e){let t=(0,Z.c)(66),{tags:n,onSubmit:r,isPending:i,error:a,isSuccess:o}=e,l;t[0]===n?l=t[1]:(l=be(n),t[0]=n,t[1]=l);let u=l,[d,f]=(0,Q.useState)(u),[p,m]=(0,Q.useState)(u.length),h;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=(e,t)=>{f(n=>n.map(n=>n.id===e?{...n,...t}:n))},t[2]=h):h=t[2];let g=h,_;t[3]===p?_=t[4]:(_=()=>{f(e=>[...e,{id:p,key:``,value:``}]),m(Te)},t[3]=p,t[4]=_);let y=_,x;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>{f(t=>t.filter(t=>t.id!==e))},t[5]=x):x=t[5];let S=x,C;t[6]===u?C=t[7]:(C=()=>{f(u)},t[6]=u,t[7]=C);let w=C,T;t[8]===d?T=t[9]:(T=d.some(we),t[8]=d,t[9]=T);let E=T,D,O,k,A;if(t[10]!==E||t[11]!==d){k=xe(d);let e=k.map(Ce);D=new Set(e).size!==e.length,O=E||D,A=JSON.stringify(k),t[10]=E,t[11]=d,t[12]=D,t[13]=O,t[14]=k,t[15]=A}else D=t[12],O=t[13],k=t[14],A=t[15];let j;t[16]===u?j=t[17]:(j=JSON.stringify(xe(u)),t[16]=u,t[17]=j);let M=A!==j,N;t[18]!==M||t[19]!==O||t[20]!==k||t[21]!==r?(N=e=>{e.preventDefault(),!(O||!M)&&r(k)},t[18]=M,t[19]=O,t[20]=k,t[21]=r,t[22]=N):N=t[22];let P;t[23]===a?P=t[24]:(P=a&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:a.message||`Failed to save tags`}),t[23]=a,t[24]=P);let F;t[25]!==M||t[26]!==o?(F=o&&!M&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Tags saved.`}),t[25]=M,t[26]=o,t[27]=F):F=t[27];let I;t[28]===d.length?I=t[29]:(I=d.length===0&&(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No tags.`}),t[28]=d.length,t[29]=I);let L;if(t[30]!==d){let e;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(e=e=>(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(v,{"aria-label":`Tag key`,onChange:t=>g(e.id,{key:t.target.value}),placeholder:`Key`,value:e.key}),(0,$.jsx)(v,{"aria-label":`Tag value`,onChange:t=>g(e.id,{value:t.target.value}),placeholder:`Value`,value:e.value}),(0,$.jsx)(b,{"aria-label":`Remove tag`,onClick:()=>S(e.id),size:`icon`,type:`button`,variant:`ghost`,children:(0,$.jsx)(c,{className:`size-4`})})]},e.id),t[32]=e):e=t[32],L=d.map(e),t[30]=d,t[31]=L}else L=t[31];let R;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,$.jsx)(s,{className:`size-4`}),t[33]=R):R=t[33];let z;t[34]===y?z=t[35]:(z=(0,$.jsx)(`div`,{children:(0,$.jsxs)(b,{onClick:y,size:`sm`,type:`button`,variant:`secondary`,children:[R,` Add tag`]})}),t[34]=y,t[35]=z);let B;t[36]===E?B=t[37]:(B=E&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`Every tag with a value needs a key.`}),t[36]=E,t[37]=B);let V;t[38]===D?V=t[39]:(V=D&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`Tag keys must be unique.`}),t[38]=D,t[39]=V);let H;t[40]!==I||t[41]!==L||t[42]!==z||t[43]!==B||t[44]!==V?(H=(0,$.jsxs)(`div`,{className:`flex flex-col gap-2 p-4`,children:[I,L,z,B,V]}),t[40]=I,t[41]=L,t[42]=z,t[43]=B,t[44]=V,t[45]=H):H=t[45];let ee=M?`Unsaved changes`:`No changes`,U;t[46]===ee?U=t[47]:(U=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:ee}),t[46]=ee,t[47]=U);let te=i||!M,W;t[48]!==w||t[49]!==te?(W=(0,$.jsx)(b,{disabled:te,onClick:w,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[48]=w,t[49]=te,t[50]=W):W=t[50];let G=i||O||!M,K=i?`Saving…`:`Save changes`,q;t[51]!==G||t[52]!==K?(q=(0,$.jsx)(b,{disabled:G,size:`sm`,type:`submit`,children:K}),t[51]=G,t[52]=K,t[53]=q):q=t[53];let J;t[54]!==U||t[55]!==W||t[56]!==q?(J=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[U,W,q]}),t[54]=U,t[55]=W,t[56]=q,t[57]=J):J=t[57];let Y;t[58]!==H||t[59]!==J?(Y=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[H,J]}),t[58]=H,t[59]=J,t[60]=Y):Y=t[60];let X;return t[61]!==P||t[62]!==F||t[63]!==Y||t[64]!==N?(X=(0,$.jsxs)(`form`,{onSubmit:N,children:[P,F,Y]}),t[61]=P,t[62]=F,t[63]=Y,t[64]=N,t[65]=X):X=t[65],X}function Ce(e){return e.key}function we(e){return e.key.trim().length===0&&e.value.length>0}function Te(e){return e+1}var Ee=Q.createContext(void 0);function De(){let e=Q.useContext(Ee);if(e===void 0)throw Error(H(64));return e}var Oe=function(e){return e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e}({}),ke={tabActivationDirection:e=>({[Oe.activationDirection]:e})},Ae=Q.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:a=`horizontal`,render:s,value:c,style:l,...u}=e,d=Object.hasOwn(e,`defaultValue`),f=Q.useRef([]),[p,m]=Q.useState(()=>new Map),[h,_]=ce({controlled:c,default:r,name:`Tabs`,state:`value`}),v=c!==void 0,[y,b]=Q.useState(()=>new Map),x=Q.useCallback(e=>{if(e===void 0)return null;for(let[t,n]of y.entries())if(n!=null&&e===(n.value??n.index))return t;return null},[y]),[S,C]=Q.useState(()=>({previousValue:h,tabActivationDirection:`none`})),{previousValue:w,tabActivationDirection:T}=S,E=T,D=!1;w!==h&&(E=je(w,h,a,y),D=w!=null&&h!=null&&x(h)==null);let k=D?w:h,A=w!==k||T!==E;g(()=>{A&&C({previousValue:k,tabActivationDirection:E})},[k,A,E]);let j=O((e,t)=>{t.activationDirection=je(h,e,a,y),i?.(e,t),!t.isCanceled&&_(e)}),M=O((e,t)=>{m(n=>{if(n.get(e)===t)return n;let r=new Map(n);return r.set(e,t),r})}),N=O((e,t)=>{m(n=>{if(!n.has(e)||n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})}),P=Q.useCallback(e=>p.get(e),[p]),F=Q.useCallback(e=>{for(let t of y.values())if(e===t?.value)return t?.id},[y]),I=Q.useMemo(()=>({getTabElementBySelectedValue:x,getTabIdByPanelValue:F,getTabPanelIdByValue:P,onValueChange:j,orientation:a,registerMountedTabPanel:M,setTabMap:b,unregisterMountedTabPanel:N,tabActivationDirection:E,value:h}),[x,F,P,j,a,M,b,N,E,h]),L=Q.useMemo(()=>{for(let e of y.values())if(e!=null&&e.value===h)return e},[y,h]),R=Q.useMemo(()=>{for(let e of y.values())if(e!=null&&!e.disabled)return e.value},[y]);g(()=>{if(v||y.size===0)return;let e=L?.disabled;if(d&&e&&h===r||!e&&!(L==null&&h!==null))return;let t=R??null;h!==t&&(_(t),C(e=>e.tabActivationDirection===`none`?e:{...e,tabActivationDirection:`none`}))},[r,R,d,v,L,_,y,h]);let z=B(`div`,e,{state:{orientation:a,tabActivationDirection:E},ref:t,props:u,stateAttributesMapping:ke});return(0,$.jsx)(Ee.Provider,{value:I,children:(0,$.jsx)(o,{elementsRef:f,children:z})})});function je(e,t,n,r){if(e==null||t==null)return`none`;let i=null,a=null;for(let[n,o]of r.entries()){if(o==null)continue;let r=o.value??o.index;if(e===r&&(i=n),t===r&&(a=n),i!=null&&a!=null)break}if(i==null||a==null)return i!==a&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?n===`horizontal`?t>e?`right`:`left`:t>e?`down`:`up`:`none`;let o=i.getBoundingClientRect(),s=a.getBoundingClientRect();if(n===`horizontal`){if(s.lefto.left)return`right`}else{if(s.topo.top)return`down`}return`none`}var Me=`data-composite-item-active`;function Ne(e={}){let{highlightItemOnHover:t,highlightedIndex:r,onHighlightedIndexChange:i}=j(),{ref:a,index:o}=n(e),s=r===o,c=Q.useRef(null),l=J(a,c);return{compositeProps:Q.useMemo(()=>({tabIndex:s?0:-1,onFocus(){i(o)},onMouseMove(){let e=c.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!s&&!n&&e.focus()}}),[s,i,o,t]),compositeRef:l,index:o}}var Pe=Q.createContext(void 0);function Fe(){let e=Q.useContext(Pe);if(e===void 0)throw Error(H(65));return e}var Ie=Q.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:o,nativeButton:s=!0,style:c,...l}=e,{value:u,getTabPanelIdByValue:d,orientation:f}=De(),{activateOnFocus:p,highlightedTabIndex:m,onTabActivation:h,registerTabResizeObserverElement:_,setHighlightedTabIndex:v,tabsListElement:y}=Fe(),b=T(o),{compositeProps:S,compositeRef:C,index:E}=Ne({metadata:Q.useMemo(()=>({disabled:r,id:b,value:a}),[r,b,a])}),D=a===u,O=Q.useRef(!1),k=Q.useRef(null);Q.useEffect(()=>{let e=k.current;if(e)return _(e)},[_]),g(()=>{if(O.current){O.current=!1;return}if(!(D&&E>-1&&m!==E))return;let e=y;if(e!=null){let t=Y(w(e));if(t&&W(e,t))return}r||v(E)},[D,E,m,v,r,y]);let{getButtonProps:A,buttonRef:j}=ue({disabled:r,native:s,focusableWhenDisabled:!0}),M=d(a),N=Q.useRef(!1),P=Q.useRef(!1);function F(e){D||r||h(a,q(x,e.nativeEvent,void 0,{activationDirection:`none`}))}function I(e){D||(E>-1&&!r&&v(E),!r&&p&&(!N.current||N.current&&P.current)&&h(a,q(x,e.nativeEvent,void 0,{activationDirection:`none`})))}function L(e){if(D||r)return;N.current=!0;function t(){N.current=!1,P.current=!1}(!e.button||e.button===0)&&(P.current=!0,w(e.currentTarget).addEventListener(`pointerup`,t,{once:!0}))}return B(`button`,e,{state:{disabled:r,active:D,orientation:f},ref:[t,j,C,k],props:[S,{role:`tab`,"aria-controls":M,"aria-selected":D,id:b,onClick:F,onFocus:I,onPointerDown:L,[Me]:D?``:void 0,onKeyDownCapture(){O.current=!0}},l,A]})}),Le=function(e){return e.index=`data-index`,e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e.hidden=`data-hidden`,e[e.startingStyle=E.startingStyle]=`startingStyle`,e[e.endingStyle=E.endingStyle]=`endingStyle`,e}({}),Re={...ke,...M},ze=Q.forwardRef(function(e,t){let{className:r,value:i,render:a,keepMounted:o=!1,style:s,...c}=e,{value:l,getTabIdByPanelValue:u,orientation:f,tabActivationDirection:p,registerMountedTabPanel:m,unregisterMountedTabPanel:h}=De(),_=T(),{ref:v,index:y}=n({metadata:Q.useMemo(()=>({id:_,value:i}),[_,i])}),b=i===l,{mounted:x,transitionStatus:S,setMounted:C}=d(b),w=!x,E=u(i),D={hidden:w,orientation:f,tabActivationDirection:p,transitionStatus:S},O=Q.useRef(null),A=B(`div`,e,{state:D,ref:[t,v,O],props:[{"aria-labelledby":E,hidden:w,id:_,role:`tabpanel`,tabIndex:b?0:-1,inert:le(!b),[Le.index]:y},c],stateAttributesMapping:Re});return k({open:b,ref:O,onComplete(){b||C(!1)}}),g(()=>{if(!(w&&!o)&&_!=null)return m(i,_),()=>{h(i,_)}},[w,o,i,_,m,h]),o||x?A:null});function Be(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var Ve=[];function He(e){let{itemSizes:t,cols:n=1,loopFocus:r=!0,onLoop:i,dense:a=!1,orientation:o=`both`,direction:s,highlightedIndex:c,onHighlightedIndexChange:d,rootRef:f,enableHomeAndEndKeys:p=!1,stopEventPropagation:g=!1,disabledIndices:v,modifierKeys:y=Ve}=e,[b,x]=Q.useState(0),w=n>1,T=Q.useRef(null),E=J(T,f),k=Q.useRef([]),j=Q.useRef(!1),M=c??b,z=O((e,t=!1)=>{if((d??x)(e),t){let t=k.current[e];ae(T.current,t,s,o)}}),B=O(e=>{if(e.size===0||j.current)return;j.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,r=n?t.indexOf(n):-1;r!==-1&&z(r),ae(T.current,n,s,o)}),V=O((e,t,n)=>i?i?.(e,t,n,k):n),H=Q.useMemo(()=>({"aria-orientation":o===`both`?void 0:o,ref:E,onFocus(e){let t=T.current,n=te(e.nativeEvent);!t||n==null||!ee(n)||n.setSelectionRange(0,n.value.length??0)},onKeyDown(e){let c=p?A:D;if(!c.has(e.key)||Ue(e,y)||!T.current)return;let d=s===`rtl`,f=d?N:m,b={horizontal:f,vertical:h,both:f}[o],x=d?m:N,E={horizontal:x,vertical:_,both:x}[o],O=te(e.nativeEvent);if(O!=null&&ee(O)&&!Be(O)){let t=O.selectionStart,n=O.selectionEnd,r=O.value??``;if(t==null||e.shiftKey||t!==n||e.key!==E&&t0)return}let j=M,B=oe(k,v),H=U(k,v);if(w){let i=t||Array.from({length:k.current.length},()=>({width:1,height:1})),s=I(i,n,a),c=s.findIndex(e=>e!=null&&!G(k.current,e,v)),u=s.reduce((e,t,n)=>t!=null&&!G(k.current,t,v)?n:e,-1);j=s[l(s.map(e=>e==null?null:k.current[e]),{event:e,orientation:o,loopFocus:r,onLoop:V,cols:n,disabledIndices:S([...v||k.current.map((e,t)=>G(k.current,t)?t:void 0),void 0],s),minIndex:c,maxIndex:u,prevIndex:R(M>H?B:M,i,s,n,e.key===`ArrowDown`?`bl`:e.key===`ArrowRight`?`tr`:`tl`),rtl:d})]}let W={horizontal:[f],vertical:[h],both:[f,h]}[o],K={horizontal:[x],vertical:[_],both:[x,_]}[o],q=w?c:{horizontal:p?F:L,vertical:p?u:C,both:c}[o];p&&(e.key===`Home`?j=B:e.key===`End`&&(j=H)),j===M&&(W.includes(e.key)||K.includes(e.key))&&(r&&j===H&&W.includes(e.key)?(j=B,i&&(j=i(e,M,j,k))):r&&j===B&&K.includes(e.key)?(j=H,i&&(j=i(e,M,j,k))):j=P(k.current,{startingIndex:j,decrement:K.includes(e.key),disabledIndices:v})),j!==M&&!re(k.current,j)&&(g&&e.stopPropagation(),q.has(e.key)&&e.preventDefault(),z(j,!0),queueMicrotask(()=>{k.current[j]?.focus()}))}}),[n,a,s,v,k,p,M,w,t,r,i,V,E,y,z,o,g]);return Q.useMemo(()=>({props:H,highlightedIndex:M,onHighlightedIndexChange:z,elementsRef:k,disabledIndices:v,onMapChange:B,relayKeyboardEvent:H.onKeyDown}),[H,M,z,k,v,B])}function Ue(e,t){for(let n of z.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function We(e){let{render:t,className:n,style:r,refs:i=X,props:a=X,state:s=ie,stateAttributesMapping:c,highlightedIndex:l,onHighlightedIndexChange:u,orientation:d,dense:p,itemSizes:m,loopFocus:h,onLoop:g,cols:_,enableHomeAndEndKeys:v,onMapChange:b,stopEventPropagation:x=!0,rootRef:S,disabledIndices:C,modifierKeys:w,highlightItemOnHover:T=!1,tag:E=`div`,...D}=e,{props:O,highlightedIndex:k,onHighlightedIndexChange:A,elementsRef:j,onMapChange:M,relayKeyboardEvent:N}=He({itemSizes:m,cols:_,loopFocus:h,onLoop:g,dense:p,orientation:d,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:S,stopEventPropagation:x,enableHomeAndEndKeys:v,direction:y(),disabledIndices:C,modifierKeys:w}),P=B(E,e,{state:s,ref:i,props:[O,...a,D],stateAttributesMapping:c}),F=Q.useMemo(()=>({highlightedIndex:k,onHighlightedIndexChange:A,highlightItemOnHover:T,relayKeyboardEvent:N}),[k,A,T,N]);return(0,$.jsx)(f.Provider,{value:F,children:(0,$.jsx)(o,{elementsRef:j,onMapChange:e=>{b?.(e),M(e)},children:P})})}var Ge=Q.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:o,...s}=e,{onValueChange:c,orientation:l,value:u,setTabMap:d,tabActivationDirection:f}=De(),[p,m]=Q.useState(0),[h,g]=Q.useState(null),_=Q.useRef(new Set),v=Q.useRef(new Set),y=Q.useRef(null),b=O(()=>{_.current.forEach(e=>{e()})});Q.useEffect(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{_.current.size&&b()});return y.current=e,h&&e.observe(h),v.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),y.current=null}},[h,b]);let x=O(e=>(_.current.add(e),()=>{_.current.delete(e)})),S=O(e=>(v.current.add(e),y.current?.observe(e),()=>{v.current.delete(e),y.current?.unobserve(e)})),C=O((e,t)=>{e!==u&&c(e,t)}),w={orientation:l,tabActivationDirection:f},T={"aria-orientation":l===`vertical`?`vertical`:void 0,role:`tablist`},E=Q.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:p,registerIndicatorUpdateListener:x,registerTabResizeObserverElement:S,onTabActivation:C,setHighlightedTabIndex:m,tabsListElement:h}),[n,p,x,S,C,m,h]);return(0,$.jsx)(Pe.Provider,{value:E,children:(0,$.jsx)(We,{render:a,className:r,style:o,state:w,refs:[t,g],props:[T,s],stateAttributesMapping:ke,highlightedIndex:p,enableHomeAndEndKeys:!0,loopFocus:i,orientation:l,onHighlightedIndexChange:m,onMapChange:d,disabledIndices:X})})});function Ke(e){let t=(0,Z.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=K(`flex flex-col gap-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(Ae,{className:i,"data-slot":`tabs`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function qe(e){let t=(0,Z.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=K(`inline-flex items-center gap-1 border-b`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(Ge,{className:i,"data-slot":`tabs-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Je(e){let t=(0,Z.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=K(`inline-flex items-center justify-center border-b-2 border-transparent px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/30 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-selected:border-primary data-selected:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(Ie,{className:i,"data-slot":`tabs-tab`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ye(e){let t=(0,Z.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=K(`focus-visible:outline-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(ze,{className:i,"data-slot":`tabs-panel`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{Se as a,ye as c,Je as i,qe as n,ge as o,Ye as r,ve as s,Ke as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js b/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js index 703591608..0a98567c5 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js @@ -1 +1 @@ -import{c as e,i as t,n as ee,s as te,t as ne}from"./select.js";import{t as re}from"./plus.js";import{t as ie}from"./trash-2.js";import{Da as n,Do as ae,Io as r,fs as oe,ys as se}from"./index.js";import{a as ce,n as le}from"./zod.js";import{a as i,r as a,t as o}from"./field.js";import{n as ue,r as de,t as fe}from"./collapsible.js";var pe=oe(),s=se();function me(t){let r=(0,pe.c)(147),{form:oe,vpcs:se,allowedProtocols:me}=t,_e;r[0]===me?_e=r[1]:(_e=me===void 0?[`HTTP`,`HTTPS`,`TCP`,`UDP`,`TLS`,`TCP_UDP`]:me,r[0]=me,r[1]=_e);let ve=_e,{control:c,register:l,setValue:u,getValues:d,formState:ye}=oe,{errors:f}=ye,be;r[2]===c?be=r[3]:(be={control:c,name:`tags`},r[2]=c,r[3]=be);let xe=ce(be),Se;r[4]===c?Se=r[5]:(Se={control:c,name:`protocol`},r[4]=c,r[5]=Se);let Ce=ce(Se),p=Ce===`HTTP`||Ce===`HTTPS`,we;r[6]===u?we=r[7]:(we=e=>{e&&(u(`protocol`,e),u(`healthCheck.protocol`,e===`HTTP`||e===`HTTPS`?`HTTP`:`TCP`))},r[6]=u,r[7]=we);let Te=we,Ee;r[8]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`tg-name`,children:`Name`})}),r[8]=Ee):Ee=r[8];let De=!!f.name,m;r[9]===l?m=r[10]:(m=l(`name`),r[9]=l,r[10]=m);let h;r[11]!==De||r[12]!==m?(h=(0,s.jsx)(n,{"aria-invalid":De,id:`tg-name`,placeholder:`my-target-group`,...m}),r[11]=De,r[12]=m,r[13]=h):h=r[13];let g;r[14]===f.name?g=r[15]:(g=(0,s.jsx)(a,{errors:[f.name]}),r[14]=f.name,r[15]=g);let _;r[16]!==h||r[17]!==g?(_=(0,s.jsxs)(o,{children:[Ee,h,g]}),r[16]=h,r[17]=g,r[18]=_):_=r[18];let Oe;r[19]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`tg-protocol`,children:`Protocol`})}),r[19]=Oe):Oe=r[19];let v;r[20]!==ve||r[21]!==Te?(v=t=>{let{field:re}=t;return(0,s.jsxs)(ne,{onValueChange:Te,value:re.value,children:[(0,s.jsx)(te,{className:`w-full`,id:`tg-protocol`,children:(0,s.jsx)(e,{})}),(0,s.jsx)(ee,{children:ve.map(ge)})]})},r[20]=ve,r[21]=Te,r[22]=v):v=r[22];let y;r[23]!==c||r[24]!==v?(y=(0,s.jsxs)(o,{children:[Oe,(0,s.jsx)(le,{control:c,name:`protocol`,render:v})]}),r[23]=c,r[24]=v,r[25]=y):y=r[25];let ke;r[26]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`tg-port`,children:`Port`})}),r[26]=ke):ke=r[26];let Ae=!!f.port,b;r[27]===l?b=r[28]:(b=l(`port`,{valueAsNumber:!0}),r[27]=l,r[28]=b);let x;r[29]!==Ae||r[30]!==b?(x=(0,s.jsx)(n,{"aria-invalid":Ae,id:`tg-port`,inputMode:`numeric`,placeholder:`80`,type:`number`,...b}),r[29]=Ae,r[30]=b,r[31]=x):x=r[31];let S;r[32]===f.port?S=r[33]:(S=(0,s.jsx)(a,{errors:[f.port]}),r[32]=f.port,r[33]=S);let C;r[34]!==x||r[35]!==S?(C=(0,s.jsxs)(o,{children:[ke,x,S]}),r[34]=x,r[35]=S,r[36]=C):C=r[36];let je;r[37]===Symbol.for(`react.memo_cache_sentinel`)?(je=(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`tg-vpc`,children:`VPC`})}),r[37]=je):je=r[37];let w;r[38]!==f.vpcId||r[39]!==se?(w=t=>{let{field:re}=t;return(0,s.jsxs)(ne,{onValueChange:e=>re.onChange(e),value:re.value??``,children:[(0,s.jsx)(te,{"aria-invalid":!!f.vpcId,className:`w-full`,id:`tg-vpc`,children:(0,s.jsx)(e,{placeholder:`Select VPC`})}),(0,s.jsx)(ee,{children:se.map(he)})]})},r[38]=f.vpcId,r[39]=se,r[40]=w):w=r[40];let T;r[41]!==c||r[42]!==w?(T=(0,s.jsx)(le,{control:c,name:`vpcId`,render:w}),r[41]=c,r[42]=w,r[43]=T):T=r[43];let E;r[44]===f.vpcId?E=r[45]:(E=(0,s.jsx)(a,{errors:[f.vpcId]}),r[44]=f.vpcId,r[45]=E);let D;r[46]!==T||r[47]!==E?(D=(0,s.jsxs)(o,{children:[je,T,E]}),r[46]=T,r[47]=E,r[48]=D):D=r[48];let Me;r[49]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,s.jsx)(de,{className:`text-left text-sm font-medium text-muted-foreground hover:text-foreground`,render:(0,s.jsx)(`button`,{"aria-label":`Health check settings`,type:`button`}),children:`Health check settings`}),r[49]=Me):Me=r[49];let O;r[50]!==f.healthCheck?.path||r[51]!==p||r[52]!==l?(O=p&&(0,s.jsxs)(o,{children:[(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`hc-path`,children:`Path`})}),(0,s.jsx)(n,{"aria-invalid":!!f.healthCheck?.path,id:`hc-path`,placeholder:`/`,...l(`healthCheck.path`)}),(0,s.jsx)(a,{errors:[f.healthCheck?.path]})]}),r[50]=f.healthCheck?.path,r[51]=p,r[52]=l,r[53]=O):O=r[53];let Ne;r[54]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`hc-port`,children:`Port`})}),r[54]=Ne):Ne=r[54];let Pe=!!f.healthCheck?.port,k;r[55]===l?k=r[56]:(k=l(`healthCheck.port`),r[55]=l,r[56]=k);let A;r[57]!==Pe||r[58]!==k?(A=(0,s.jsx)(n,{"aria-invalid":Pe,id:`hc-port`,placeholder:`traffic-port or numeric`,...k}),r[57]=Pe,r[58]=k,r[59]=A):A=r[59];let Fe=f.healthCheck?.port,Ie;r[60]===Fe?Ie=r[61]:(Ie=(0,s.jsx)(a,{errors:[Fe]}),r[60]=Fe,r[61]=Ie);let j;r[62]!==A||r[63]!==Ie?(j=(0,s.jsxs)(o,{children:[Ne,A,Ie]}),r[62]=A,r[63]=Ie,r[64]=j):j=r[64];let Le;r[65]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`hc-interval`,children:`Interval (seconds)`})}),r[65]=Le):Le=r[65];let Re=!!f.healthCheck?.intervalSeconds,M;r[66]===l?M=r[67]:(M=l(`healthCheck.intervalSeconds`,{valueAsNumber:!0}),r[66]=l,r[67]=M);let N;r[68]!==Re||r[69]!==M?(N=(0,s.jsx)(n,{"aria-invalid":Re,id:`hc-interval`,inputMode:`numeric`,type:`number`,...M}),r[68]=Re,r[69]=M,r[70]=N):N=r[70];let ze=f.healthCheck?.intervalSeconds,P;r[71]===ze?P=r[72]:(P=(0,s.jsx)(a,{errors:[ze]}),r[71]=ze,r[72]=P);let F;r[73]!==N||r[74]!==P?(F=(0,s.jsxs)(o,{children:[Le,N,P]}),r[73]=N,r[74]=P,r[75]=F):F=r[75];let Be;r[76]===Symbol.for(`react.memo_cache_sentinel`)?(Be=(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`hc-timeout`,children:`Timeout (seconds)`})}),r[76]=Be):Be=r[76];let Ve=!!f.healthCheck?.timeoutSeconds,I;r[77]===l?I=r[78]:(I=l(`healthCheck.timeoutSeconds`,{valueAsNumber:!0}),r[77]=l,r[78]=I);let L;r[79]!==Ve||r[80]!==I?(L=(0,s.jsx)(n,{"aria-invalid":Ve,id:`hc-timeout`,inputMode:`numeric`,type:`number`,...I}),r[79]=Ve,r[80]=I,r[81]=L):L=r[81];let He=f.healthCheck?.timeoutSeconds,R;r[82]===He?R=r[83]:(R=(0,s.jsx)(a,{errors:[He]}),r[82]=He,r[83]=R);let z;r[84]!==L||r[85]!==R?(z=(0,s.jsxs)(o,{children:[Be,L,R]}),r[84]=L,r[85]=R,r[86]=z):z=r[86];let Ue;r[87]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`hc-healthy`,children:`Healthy threshold`})}),r[87]=Ue):Ue=r[87];let We=!!f.healthCheck?.healthyThresholdCount,B;r[88]===l?B=r[89]:(B=l(`healthCheck.healthyThresholdCount`,{valueAsNumber:!0}),r[88]=l,r[89]=B);let V;r[90]!==We||r[91]!==B?(V=(0,s.jsx)(n,{"aria-invalid":We,id:`hc-healthy`,inputMode:`numeric`,type:`number`,...B}),r[90]=We,r[91]=B,r[92]=V):V=r[92];let Ge=f.healthCheck?.healthyThresholdCount,H;r[93]===Ge?H=r[94]:(H=(0,s.jsx)(a,{errors:[Ge]}),r[93]=Ge,r[94]=H);let U;r[95]!==V||r[96]!==H?(U=(0,s.jsxs)(o,{children:[Ue,V,H]}),r[95]=V,r[96]=H,r[97]=U):U=r[97];let Ke;r[98]===Symbol.for(`react.memo_cache_sentinel`)?(Ke=(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`hc-unhealthy`,children:`Unhealthy threshold`})}),r[98]=Ke):Ke=r[98];let qe=!!f.healthCheck?.unhealthyThresholdCount,W;r[99]===l?W=r[100]:(W=l(`healthCheck.unhealthyThresholdCount`,{valueAsNumber:!0}),r[99]=l,r[100]=W);let G;r[101]!==qe||r[102]!==W?(G=(0,s.jsx)(n,{"aria-invalid":qe,id:`hc-unhealthy`,inputMode:`numeric`,type:`number`,...W}),r[101]=qe,r[102]=W,r[103]=G):G=r[103];let Je=f.healthCheck?.unhealthyThresholdCount,K;r[104]===Je?K=r[105]:(K=(0,s.jsx)(a,{errors:[Je]}),r[104]=Je,r[105]=K);let q;r[106]!==G||r[107]!==K?(q=(0,s.jsxs)(o,{children:[Ke,G,K]}),r[106]=G,r[107]=K,r[108]=q):q=r[108];let J;r[109]!==f.healthCheck?.matcher||r[110]!==p||r[111]!==l?(J=p&&(0,s.jsxs)(o,{children:[(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`hc-matcher`,children:`Matcher (HTTP codes)`})}),(0,s.jsx)(n,{"aria-invalid":!!f.healthCheck?.matcher,id:`hc-matcher`,placeholder:`200 or 200-299 or 200,201`,...l(`healthCheck.matcher`)}),(0,s.jsx)(a,{errors:[f.healthCheck?.matcher]})]}),r[109]=f.healthCheck?.matcher,r[110]=p,r[111]=l,r[112]=J):J=r[112];let Y;r[113]!==O||r[114]!==j||r[115]!==F||r[116]!==z||r[117]!==U||r[118]!==q||r[119]!==J?(Y=(0,s.jsxs)(fe,{children:[Me,(0,s.jsxs)(ue,{className:`mt-3 space-y-4 border-l-2 border-muted pl-4`,children:[O,j,F,z,U,q,J]})]}),r[113]=O,r[114]=j,r[115]=F,r[116]=z,r[117]=U,r[118]=q,r[119]=J,r[120]=Y):Y=r[120];let Ye;r[121]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=(0,s.jsx)(i,{children:`Tags`}),r[121]=Ye):Ye=r[121];let X;if(r[122]!==d||r[123]!==l||r[124]!==u||r[125]!==xe){let e;r[127]!==d||r[128]!==l||r[129]!==u?(e=(e,t)=>(0,s.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,s.jsx)(n,{placeholder:`Key`,...l(`tags.${t}.key`)}),(0,s.jsx)(n,{placeholder:`Value`,...l(`tags.${t}.value`)}),(0,s.jsx)(ae,{onClick:()=>u(`tags`,d(`tags`).filter((e,ee)=>ee!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,s.jsx)(ie,{className:`size-3.5`})})]},t),r[127]=d,r[128]=l,r[129]=u,r[130]=e):e=r[130],X=xe.map(e),r[122]=d,r[123]=l,r[124]=u,r[125]=xe,r[126]=X}else X=r[126];let Z;r[131]!==d||r[132]!==u?(Z=()=>u(`tags`,[...d(`tags`),{key:``,value:``}]),r[131]=d,r[132]=u,r[133]=Z):Z=r[133];let Xe;r[134]===Symbol.for(`react.memo_cache_sentinel`)?(Xe=(0,s.jsx)(re,{className:`size-3.5`}),r[134]=Xe):Xe=r[134];let Q;r[135]===Z?Q=r[136]:(Q=(0,s.jsxs)(ae,{onClick:Z,size:`sm`,type:`button`,variant:`outline`,children:[Xe,`Add tag`]}),r[135]=Z,r[136]=Q);let $;r[137]!==X||r[138]!==Q?($=(0,s.jsxs)(o,{children:[Ye,(0,s.jsxs)(`div`,{className:`space-y-2`,children:[X,Q]})]}),r[137]=X,r[138]=Q,r[139]=$):$=r[139];let Ze;return r[140]!==_||r[141]!==y||r[142]!==C||r[143]!==D||r[144]!==Y||r[145]!==$?(Ze=(0,s.jsxs)(s.Fragment,{children:[_,y,C,D,Y,$]}),r[140]=_,r[141]=y,r[142]=C,r[143]=D,r[144]=Y,r[145]=$,r[146]=Ze):Ze=r[146],Ze}function he(e){let ee=r(e.Tags);return(0,s.jsx)(t,{value:e.VpcId??``,children:ee?`${e.VpcId} (${ee})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function ge(e){return(0,s.jsx)(t,{value:e,children:e},e)}export{me as t}; \ No newline at end of file +import{c as e,i as t,n as ee,s as te,t as ne}from"./select.js";import{t as re}from"./plus.js";import{t as ie}from"./trash-2.js";import{Lo as n,Oa as r,Oo as ae,bs as oe,ps as se}from"./index.js";import{a as ce,n as le}from"./zod.js";import{a as i,r as a,t as o}from"./field.js";import{n as ue,r as de,t as fe}from"./collapsible.js";var pe=se(),s=oe();function me(t){let n=(0,pe.c)(147),{form:oe,vpcs:se,allowedProtocols:me}=t,_e;n[0]===me?_e=n[1]:(_e=me===void 0?[`HTTP`,`HTTPS`,`TCP`,`UDP`,`TLS`,`TCP_UDP`]:me,n[0]=me,n[1]=_e);let ve=_e,{control:c,register:l,setValue:u,getValues:d,formState:ye}=oe,{errors:f}=ye,be;n[2]===c?be=n[3]:(be={control:c,name:`tags`},n[2]=c,n[3]=be);let xe=ce(be),Se;n[4]===c?Se=n[5]:(Se={control:c,name:`protocol`},n[4]=c,n[5]=Se);let Ce=ce(Se),p=Ce===`HTTP`||Ce===`HTTPS`,we;n[6]===u?we=n[7]:(we=e=>{e&&(u(`protocol`,e),u(`healthCheck.protocol`,e===`HTTP`||e===`HTTPS`?`HTTP`:`TCP`))},n[6]=u,n[7]=we);let Te=we,Ee;n[8]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`tg-name`,children:`Name`})}),n[8]=Ee):Ee=n[8];let De=!!f.name,m;n[9]===l?m=n[10]:(m=l(`name`),n[9]=l,n[10]=m);let h;n[11]!==De||n[12]!==m?(h=(0,s.jsx)(r,{"aria-invalid":De,id:`tg-name`,placeholder:`my-target-group`,...m}),n[11]=De,n[12]=m,n[13]=h):h=n[13];let g;n[14]===f.name?g=n[15]:(g=(0,s.jsx)(a,{errors:[f.name]}),n[14]=f.name,n[15]=g);let _;n[16]!==h||n[17]!==g?(_=(0,s.jsxs)(o,{children:[Ee,h,g]}),n[16]=h,n[17]=g,n[18]=_):_=n[18];let Oe;n[19]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`tg-protocol`,children:`Protocol`})}),n[19]=Oe):Oe=n[19];let v;n[20]!==ve||n[21]!==Te?(v=t=>{let{field:re}=t;return(0,s.jsxs)(ne,{onValueChange:Te,value:re.value,children:[(0,s.jsx)(te,{className:`w-full`,id:`tg-protocol`,children:(0,s.jsx)(e,{})}),(0,s.jsx)(ee,{children:ve.map(ge)})]})},n[20]=ve,n[21]=Te,n[22]=v):v=n[22];let y;n[23]!==c||n[24]!==v?(y=(0,s.jsxs)(o,{children:[Oe,(0,s.jsx)(le,{control:c,name:`protocol`,render:v})]}),n[23]=c,n[24]=v,n[25]=y):y=n[25];let ke;n[26]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`tg-port`,children:`Port`})}),n[26]=ke):ke=n[26];let Ae=!!f.port,b;n[27]===l?b=n[28]:(b=l(`port`,{valueAsNumber:!0}),n[27]=l,n[28]=b);let x;n[29]!==Ae||n[30]!==b?(x=(0,s.jsx)(r,{"aria-invalid":Ae,id:`tg-port`,inputMode:`numeric`,placeholder:`80`,type:`number`,...b}),n[29]=Ae,n[30]=b,n[31]=x):x=n[31];let S;n[32]===f.port?S=n[33]:(S=(0,s.jsx)(a,{errors:[f.port]}),n[32]=f.port,n[33]=S);let C;n[34]!==x||n[35]!==S?(C=(0,s.jsxs)(o,{children:[ke,x,S]}),n[34]=x,n[35]=S,n[36]=C):C=n[36];let je;n[37]===Symbol.for(`react.memo_cache_sentinel`)?(je=(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`tg-vpc`,children:`VPC`})}),n[37]=je):je=n[37];let w;n[38]!==f.vpcId||n[39]!==se?(w=t=>{let{field:re}=t;return(0,s.jsxs)(ne,{onValueChange:e=>re.onChange(e),value:re.value??``,children:[(0,s.jsx)(te,{"aria-invalid":!!f.vpcId,className:`w-full`,id:`tg-vpc`,children:(0,s.jsx)(e,{placeholder:`Select VPC`})}),(0,s.jsx)(ee,{children:se.map(he)})]})},n[38]=f.vpcId,n[39]=se,n[40]=w):w=n[40];let T;n[41]!==c||n[42]!==w?(T=(0,s.jsx)(le,{control:c,name:`vpcId`,render:w}),n[41]=c,n[42]=w,n[43]=T):T=n[43];let E;n[44]===f.vpcId?E=n[45]:(E=(0,s.jsx)(a,{errors:[f.vpcId]}),n[44]=f.vpcId,n[45]=E);let D;n[46]!==T||n[47]!==E?(D=(0,s.jsxs)(o,{children:[je,T,E]}),n[46]=T,n[47]=E,n[48]=D):D=n[48];let Me;n[49]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,s.jsx)(de,{className:`text-left text-sm font-medium text-muted-foreground hover:text-foreground`,render:(0,s.jsx)(`button`,{"aria-label":`Health check settings`,type:`button`}),children:`Health check settings`}),n[49]=Me):Me=n[49];let O;n[50]!==f.healthCheck?.path||n[51]!==p||n[52]!==l?(O=p&&(0,s.jsxs)(o,{children:[(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`hc-path`,children:`Path`})}),(0,s.jsx)(r,{"aria-invalid":!!f.healthCheck?.path,id:`hc-path`,placeholder:`/`,...l(`healthCheck.path`)}),(0,s.jsx)(a,{errors:[f.healthCheck?.path]})]}),n[50]=f.healthCheck?.path,n[51]=p,n[52]=l,n[53]=O):O=n[53];let Ne;n[54]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`hc-port`,children:`Port`})}),n[54]=Ne):Ne=n[54];let Pe=!!f.healthCheck?.port,k;n[55]===l?k=n[56]:(k=l(`healthCheck.port`),n[55]=l,n[56]=k);let A;n[57]!==Pe||n[58]!==k?(A=(0,s.jsx)(r,{"aria-invalid":Pe,id:`hc-port`,placeholder:`traffic-port or numeric`,...k}),n[57]=Pe,n[58]=k,n[59]=A):A=n[59];let Fe=f.healthCheck?.port,Ie;n[60]===Fe?Ie=n[61]:(Ie=(0,s.jsx)(a,{errors:[Fe]}),n[60]=Fe,n[61]=Ie);let j;n[62]!==A||n[63]!==Ie?(j=(0,s.jsxs)(o,{children:[Ne,A,Ie]}),n[62]=A,n[63]=Ie,n[64]=j):j=n[64];let Le;n[65]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`hc-interval`,children:`Interval (seconds)`})}),n[65]=Le):Le=n[65];let Re=!!f.healthCheck?.intervalSeconds,M;n[66]===l?M=n[67]:(M=l(`healthCheck.intervalSeconds`,{valueAsNumber:!0}),n[66]=l,n[67]=M);let N;n[68]!==Re||n[69]!==M?(N=(0,s.jsx)(r,{"aria-invalid":Re,id:`hc-interval`,inputMode:`numeric`,type:`number`,...M}),n[68]=Re,n[69]=M,n[70]=N):N=n[70];let ze=f.healthCheck?.intervalSeconds,P;n[71]===ze?P=n[72]:(P=(0,s.jsx)(a,{errors:[ze]}),n[71]=ze,n[72]=P);let F;n[73]!==N||n[74]!==P?(F=(0,s.jsxs)(o,{children:[Le,N,P]}),n[73]=N,n[74]=P,n[75]=F):F=n[75];let Be;n[76]===Symbol.for(`react.memo_cache_sentinel`)?(Be=(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`hc-timeout`,children:`Timeout (seconds)`})}),n[76]=Be):Be=n[76];let Ve=!!f.healthCheck?.timeoutSeconds,I;n[77]===l?I=n[78]:(I=l(`healthCheck.timeoutSeconds`,{valueAsNumber:!0}),n[77]=l,n[78]=I);let L;n[79]!==Ve||n[80]!==I?(L=(0,s.jsx)(r,{"aria-invalid":Ve,id:`hc-timeout`,inputMode:`numeric`,type:`number`,...I}),n[79]=Ve,n[80]=I,n[81]=L):L=n[81];let He=f.healthCheck?.timeoutSeconds,R;n[82]===He?R=n[83]:(R=(0,s.jsx)(a,{errors:[He]}),n[82]=He,n[83]=R);let z;n[84]!==L||n[85]!==R?(z=(0,s.jsxs)(o,{children:[Be,L,R]}),n[84]=L,n[85]=R,n[86]=z):z=n[86];let Ue;n[87]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`hc-healthy`,children:`Healthy threshold`})}),n[87]=Ue):Ue=n[87];let We=!!f.healthCheck?.healthyThresholdCount,B;n[88]===l?B=n[89]:(B=l(`healthCheck.healthyThresholdCount`,{valueAsNumber:!0}),n[88]=l,n[89]=B);let V;n[90]!==We||n[91]!==B?(V=(0,s.jsx)(r,{"aria-invalid":We,id:`hc-healthy`,inputMode:`numeric`,type:`number`,...B}),n[90]=We,n[91]=B,n[92]=V):V=n[92];let Ge=f.healthCheck?.healthyThresholdCount,H;n[93]===Ge?H=n[94]:(H=(0,s.jsx)(a,{errors:[Ge]}),n[93]=Ge,n[94]=H);let U;n[95]!==V||n[96]!==H?(U=(0,s.jsxs)(o,{children:[Ue,V,H]}),n[95]=V,n[96]=H,n[97]=U):U=n[97];let Ke;n[98]===Symbol.for(`react.memo_cache_sentinel`)?(Ke=(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`hc-unhealthy`,children:`Unhealthy threshold`})}),n[98]=Ke):Ke=n[98];let qe=!!f.healthCheck?.unhealthyThresholdCount,W;n[99]===l?W=n[100]:(W=l(`healthCheck.unhealthyThresholdCount`,{valueAsNumber:!0}),n[99]=l,n[100]=W);let G;n[101]!==qe||n[102]!==W?(G=(0,s.jsx)(r,{"aria-invalid":qe,id:`hc-unhealthy`,inputMode:`numeric`,type:`number`,...W}),n[101]=qe,n[102]=W,n[103]=G):G=n[103];let Je=f.healthCheck?.unhealthyThresholdCount,K;n[104]===Je?K=n[105]:(K=(0,s.jsx)(a,{errors:[Je]}),n[104]=Je,n[105]=K);let q;n[106]!==G||n[107]!==K?(q=(0,s.jsxs)(o,{children:[Ke,G,K]}),n[106]=G,n[107]=K,n[108]=q):q=n[108];let J;n[109]!==f.healthCheck?.matcher||n[110]!==p||n[111]!==l?(J=p&&(0,s.jsxs)(o,{children:[(0,s.jsx)(i,{children:(0,s.jsx)(`label`,{htmlFor:`hc-matcher`,children:`Matcher (HTTP codes)`})}),(0,s.jsx)(r,{"aria-invalid":!!f.healthCheck?.matcher,id:`hc-matcher`,placeholder:`200 or 200-299 or 200,201`,...l(`healthCheck.matcher`)}),(0,s.jsx)(a,{errors:[f.healthCheck?.matcher]})]}),n[109]=f.healthCheck?.matcher,n[110]=p,n[111]=l,n[112]=J):J=n[112];let Y;n[113]!==O||n[114]!==j||n[115]!==F||n[116]!==z||n[117]!==U||n[118]!==q||n[119]!==J?(Y=(0,s.jsxs)(fe,{children:[Me,(0,s.jsxs)(ue,{className:`mt-3 space-y-4 border-l-2 border-muted pl-4`,children:[O,j,F,z,U,q,J]})]}),n[113]=O,n[114]=j,n[115]=F,n[116]=z,n[117]=U,n[118]=q,n[119]=J,n[120]=Y):Y=n[120];let Ye;n[121]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=(0,s.jsx)(i,{children:`Tags`}),n[121]=Ye):Ye=n[121];let X;if(n[122]!==d||n[123]!==l||n[124]!==u||n[125]!==xe){let e;n[127]!==d||n[128]!==l||n[129]!==u?(e=(e,t)=>(0,s.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,s.jsx)(r,{placeholder:`Key`,...l(`tags.${t}.key`)}),(0,s.jsx)(r,{placeholder:`Value`,...l(`tags.${t}.value`)}),(0,s.jsx)(ae,{onClick:()=>u(`tags`,d(`tags`).filter((e,ee)=>ee!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,s.jsx)(ie,{className:`size-3.5`})})]},t),n[127]=d,n[128]=l,n[129]=u,n[130]=e):e=n[130],X=xe.map(e),n[122]=d,n[123]=l,n[124]=u,n[125]=xe,n[126]=X}else X=n[126];let Z;n[131]!==d||n[132]!==u?(Z=()=>u(`tags`,[...d(`tags`),{key:``,value:``}]),n[131]=d,n[132]=u,n[133]=Z):Z=n[133];let Xe;n[134]===Symbol.for(`react.memo_cache_sentinel`)?(Xe=(0,s.jsx)(re,{className:`size-3.5`}),n[134]=Xe):Xe=n[134];let Q;n[135]===Z?Q=n[136]:(Q=(0,s.jsxs)(ae,{onClick:Z,size:`sm`,type:`button`,variant:`outline`,children:[Xe,`Add tag`]}),n[135]=Z,n[136]=Q);let $;n[137]!==X||n[138]!==Q?($=(0,s.jsxs)(o,{children:[Ye,(0,s.jsxs)(`div`,{className:`space-y-2`,children:[X,Q]})]}),n[137]=X,n[138]=Q,n[139]=$):$=n[139];let Ze;return n[140]!==_||n[141]!==y||n[142]!==C||n[143]!==D||n[144]!==Y||n[145]!==$?(Ze=(0,s.jsxs)(s.Fragment,{children:[_,y,C,D,Y,$]}),n[140]=_,n[141]=y,n[142]=C,n[143]=D,n[144]=Y,n[145]=$,n[146]=Ze):Ze=n[146],Ze}function he(e){let ee=n(e.Tags);return(0,s.jsx)(t,{value:e.VpcId??``,children:ee?`${e.VpcId} (${ee})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function ge(e){return(0,s.jsx)(t,{value:e,children:e},e)}export{me as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/textarea.js b/spinifex/services/spinifexui/frontend/dist/assets/textarea.js index 8a2490a06..d562c0845 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/textarea.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/textarea.js @@ -1 +1 @@ -import{Ao as e,fs as t,ys as n}from"./index.js";var r=t(),i=n();function a(t){let n=(0,r.c)(8),a,o;n[0]===t?(a=n[1],o=n[2]):({className:a,...o}=t,n[0]=t,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=e(`flex field-sizing-content min-h-16 w-full resize-none rounded-md border border-input bg-input/20 px-2 py-2 text-sm transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 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`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`textarea`,{className:s,"data-slot":`textarea`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}export{a as t}; \ No newline at end of file +import{bs as e,jo as t,ps as n}from"./index.js";var r=n(),i=e();function a(e){let n=(0,r.c)(8),a,o;n[0]===e?(a=n[1],o=n[2]):({className:a,...o}=e,n[0]=e,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=t(`flex field-sizing-content min-h-16 w-full resize-none rounded-md border border-input bg-input/20 px-2 py-2 text-sm transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 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`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`textarea`,{className:s,"data-slot":`textarea`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}export{a as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/trash-2.js b/spinifex/services/spinifexui/frontend/dist/assets/trash-2.js index 72e62c620..bdd35d423 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/trash-2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/trash-2.js @@ -1 +1 @@ -import{ts as e}from"./index.js";var t=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t}; \ No newline at end of file +import{ns as e}from"./index.js";var t=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js b/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js index c9d980736..dd377fbae 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js @@ -1 +1 @@ -import{ts as e}from"./index.js";var t=e(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]);export{t}; \ No newline at end of file +import{ns as e}from"./index.js";var t=e(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]);export{t}; \ 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 64aa0e960..a0aa6226a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js @@ -1 +1 @@ -import{t as e}from"./error-banner.js";import{t}from"./download.js";import{t as n}from"./trash-2.js";import{a as r,i,n as a}from"./s3.js";import{Do as o,Ir as s,Mr as c,No as l,Nt as u,Po as d,Ut as f,bs as p,ei as m,fs as h,jr as g,ms as _,ts as v,ys as y,zs as b,zt as x}from"./index.js";import{t as S}from"./delete-confirmation-dialog.js";var C=v(`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=v(`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=v(`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(m.isInstance(i)&&i.headers.expires){i.headers.expiresstring=i.headers.expires;try{s(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 g.classBuilder().ep({...f,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,a){return[c(n,e.getEndpointParameterInstructions()),r(n,{requestChecksumRequired:!1,requestValidationModeMember:`ChecksumMode`,responseAlgorithms:[`CRC64NVME`,`CRC32`,`CRC32C`,`SHA256`,`SHA1`,`SHA512`,`MD5`,`XXHASH64`,`XXHASH3`,`XXHASH128`]}),i(n),O(n)]}).s(`AmazonS3`,`GetObject`,{}).n(`S3Client`,`GetObjectCommand`).sc(x).build(){},A=h(),j=y();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 o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,j.jsx)(w,{className:`size-5 text-muted-foreground`}),t[3]=o):o=t[3];let s;t[4]===n?s=t[5]:(s=(0,j.jsx)(`span`,{className:`font-medium`,children:n}),t[4]=n,t[5]=s);let c;return t[6]!==a||t[7]!==s?(c=(0,j.jsxs)(_,{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:[o,s]}),t[6]=a,t[7]=s,t[8]=c):c=t[8],c}var N=b(p(),1);function P({object:r,bucketName:i,displayName:o,fullKey:s}){let[c,f]=(0,N.useState)(!1),[p,m]=(0,N.useState)(null),h=a();async function g(){m(null);try{let e=new k({Bucket:i,Key:s}),t=await u().send(e);if(t.Body){let e=await t.Body.transformToByteArray(),n=URL.createObjectURL(new Blob([e])),r=document.createElement(`a`);r.href=n,r.download=o,document.body.append(r),r.click(),r.remove(),URL.revokeObjectURL(n)}}catch(e){m(Error(`Failed to download object`,{cause:e}))}}async function _(){try{await h.mutateAsync({bucket:i,key:s})}finally{f(!1)}}return(0,j.jsxs)(`div`,{children:[h.error&&(0,j.jsx)(e,{error:h.error,msg:`Failed to delete object`}),p&&(0,j.jsx)(e,{error:p,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:o}),r.LastModified&&(0,j.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Last Modified: `,l(r.LastModified)]})]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:d(r.Size??0)}),(0,j.jsx)(`button`,{"aria-label":`Download ${o}`,className:`rounded-md p-2 transition-colors hover:bg-accent`,onClick:g,type:`button`,children:(0,j.jsx)(t,{className:`size-4`})}),(0,j.jsx)(`button`,{"aria-label":`Delete ${o}`,className:`rounded-md p-2 text-destructive transition-colors hover:bg-accent`,onClick:()=>f(!0),type:`button`,children:(0,j.jsx)(n,{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:o}),`? This action cannot be undone.`]}),isPending:h.isPending,onConfirm:_,onOpenChange:f,open:c,title:`Delete Object`})]})]},r.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)(o,{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{t as e}from"./error-banner.js";import{t}from"./download.js";import{t as n}from"./trash-2.js";import{a as r,i,n as a}from"./s3.js";import{Bs as o,Fo as s,Lr as c,Mr as l,Nr as u,Nt as d,Oo as f,Po as p,Ut as m,bs as h,hs as g,ns as _,ps as v,ti as y,xs as b,zt as x}from"./index.js";import{t as S}from"./delete-confirmation-dialog.js";var C=_(`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=_(`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=_(`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(y.isInstance(i)&&i.headers.expires){i.headers.expiresstring=i.headers.expires;try{c(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 l.classBuilder().ep({...m,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,a){return[u(n,e.getEndpointParameterInstructions()),r(n,{requestChecksumRequired:!1,requestValidationModeMember:`ChecksumMode`,responseAlgorithms:[`CRC64NVME`,`CRC32`,`CRC32C`,`SHA256`,`SHA1`,`SHA512`,`MD5`,`XXHASH64`,`XXHASH3`,`XXHASH128`]}),i(n),O(n)]}).s(`AmazonS3`,`GetObject`,{}).n(`S3Client`,`GetObjectCommand`).sc(x).build(){},A=v(),j=h();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 o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,j.jsx)(w,{className:`size-5 text-muted-foreground`}),t[3]=o):o=t[3];let s;t[4]===n?s=t[5]:(s=(0,j.jsx)(`span`,{className:`font-medium`,children:n}),t[4]=n,t[5]=s);let c;return t[6]!==a||t[7]!==s?(c=(0,j.jsxs)(g,{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:[o,s]}),t[6]=a,t[7]=s,t[8]=c):c=t[8],c}var N=o(b(),1);function P({object:r,bucketName:i,displayName:o,fullKey:c}){let[l,u]=(0,N.useState)(!1),[f,m]=(0,N.useState)(null),h=a();async function g(){m(null);try{let e=new k({Bucket:i,Key:c}),t=await d().send(e);if(t.Body){let e=await t.Body.transformToByteArray(),n=URL.createObjectURL(new Blob([e])),r=document.createElement(`a`);r.href=n,r.download=o,document.body.append(r),r.click(),r.remove(),URL.revokeObjectURL(n)}}catch(e){m(Error(`Failed to download object`,{cause:e}))}}async function _(){try{await h.mutateAsync({bucket:i,key:c})}finally{u(!1)}}return(0,j.jsxs)(`div`,{children:[h.error&&(0,j.jsx)(e,{error:h.error,msg:`Failed to delete object`}),f&&(0,j.jsx)(e,{error:f,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:o}),r.LastModified&&(0,j.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Last Modified: `,p(r.LastModified)]})]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:s(r.Size??0)}),(0,j.jsx)(`button`,{"aria-label":`Download ${o}`,className:`rounded-md p-2 transition-colors hover:bg-accent`,onClick:g,type:`button`,children:(0,j.jsx)(t,{className:`size-4`})}),(0,j.jsx)(`button`,{"aria-label":`Delete ${o}`,className:`rounded-md p-2 text-destructive transition-colors hover:bg-accent`,onClick:()=>u(!0),type:`button`,children:(0,j.jsx)(n,{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:o}),`? This action cannot be undone.`]}),isPending:h.isPending,onConfirm:_,onOpenChange:u,open:l,title:`Delete Object`})]})]},r.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)(f,{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/dist/assets/use-copy-to-clipboard.js b/spinifex/services/spinifexui/frontend/dist/assets/use-copy-to-clipboard.js index 32ae3dffd..b81e956c3 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/use-copy-to-clipboard.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/use-copy-to-clipboard.js @@ -1 +1 @@ -import{bs as e,fs as t,zs as n}from"./index.js";var r=t(),i=n(e(),1),a=2e3;function o(){let e=(0,r.c)(5),[t,n]=(0,i.useState)(!1),o=(0,i.useRef)(null),s,c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>()=>{o.current&&clearTimeout(o.current)},c=[],e[0]=s,e[1]=c):(s=e[0],c=e[1]),(0,i.useEffect)(s,c);let l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=async e=>{await navigator.clipboard.writeText(e),n(!0),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>n(!1),a)},e[2]=l):l=e[2];let u=l,d;return e[3]===t?d=e[4]:(d={copied:t,copy:u},e[3]=t,e[4]=d),d}export{o as t}; \ No newline at end of file +import{Bs as e,ps as t,xs as n}from"./index.js";var r=t(),i=e(n(),1),a=2e3;function o(){let e=(0,r.c)(5),[t,n]=(0,i.useState)(!1),o=(0,i.useRef)(null),s,c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>()=>{o.current&&clearTimeout(o.current)},c=[],e[0]=s,e[1]=c):(s=e[0],c=e[1]),(0,i.useEffect)(s,c);let l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=async e=>{await navigator.clipboard.writeText(e),n(!0),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>n(!1),a)},e[2]=l):l=e[2];let u=l,d;return e[3]===t?d=e[4]:(d={copied:t,copy:u},e[3]=t,e[4]=d),d}export{o as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/useBaseQuery.js b/spinifex/services/spinifexui/frontend/dist/assets/useBaseQuery.js index cd0135835..93caf92dc 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/useBaseQuery.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/useBaseQuery.js @@ -1 +1 @@ -import{As as e,Cs as t,Ds as n,Fs as r,Is as i,Ls as a,Ms as o,Ns as s,Os as c,Ps as l,Ss as u,Ts as d,bs as f,js as p,ks as m,vs as h,ws as g,ys as _,zs as v}from"./index.js";var y=class extends a{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=g(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),x(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return S(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return S(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(t){let n=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof e(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),n._defaulted&&!o(this.options,n)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let i=this.hasListeners();i&&C(this.#t,r,this.options,n)&&this.#h(),this.updateResult(),i&&(this.#t!==r||e(this.options.enabled,this.#t)!==e(n.enabled,this.#t)||p(this.options.staleTime,this.#t)!==p(n.staleTime,this.#t))&&this.#g();let a=this.#_();i&&(this.#t!==r||e(this.options.enabled,this.#t)!==e(n.enabled,this.#t)||a!==this.#p)&&this.#v(a)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return T(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(c)),t}#g(){this.#b();let e=p(this.options.staleTime,this.#t);if(d.isServer()||this.#r.isStale||!n(e))return;let t=l(this.#r.dataUpdatedAt,e)+1;this.#d=r.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(t){this.#x(),this.#p=t,!(d.isServer()||e(this.options.enabled,this.#t)===!1||!n(this.#p)||this.#p===0)&&(this.#f=r.setInterval(()=>{(this.options.refetchIntervalInBackground||i.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(r.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(r.clearInterval(this.#f),this.#f=void 0)}createResult(t,n){let r=this.#t,i=this.options,a=this.#r,o=this.#i,s=this.#a,c=t===r?this.#n:t.state,{state:l}=t,d={...l},f=!1,p;if(n._optimisticResults){let e=this.hasListeners(),a=!e&&x(t,n),o=e&&C(t,r,n,i);(a||o)&&(d={...d,...u(l.data,t.options)}),n._optimisticResults===`isRestoring`&&(d.fetchStatus=`idle`)}let{error:h,errorUpdatedAt:_,status:v}=d;p=d.data;let y=!1;if(n.placeholderData!==void 0&&p===void 0&&v===`pending`){let e;a?.isPlaceholderData&&n.placeholderData===s?.placeholderData?(e=a.data,y=!0):e=typeof n.placeholderData==`function`?n.placeholderData(this.#u?.state.data,this.#u):n.placeholderData,e!==void 0&&(v=`success`,p=m(a?.data,e,n),f=!0)}if(n.select&&p!==void 0&&!y)if(a&&p===o?.data&&n.select===this.#c)p=this.#l;else try{this.#c=n.select,p=n.select(p),p=m(a?.data,p,n),this.#l=p,this.#s=null}catch(e){this.#s=e}this.#s&&(h=this.#s,p=this.#l,_=Date.now(),v=`error`);let b=d.fetchStatus===`fetching`,S=v===`pending`,T=v===`error`,E=S&&b,D=p!==void 0,O={status:v,fetchStatus:d.fetchStatus,isPending:S,isSuccess:v===`success`,isError:T,isInitialLoading:E,isLoading:E,data:p,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:_,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!S,isLoadingError:T&&!D,isPaused:d.fetchStatus===`paused`,isPlaceholderData:f,isRefetchError:T&&D,isStale:w(t,n),refetch:this.refetch,promise:this.#o,isEnabled:e(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){let e=O.data!==void 0,n=O.status===`error`&&!e,i=t=>{n?t.reject(O.error):e&&t.resolve(O.data)},a=()=>{i(this.#o=O.promise=g())},o=this.#o;switch(o.status){case`pending`:t.queryHash===r.queryHash&&i(o);break;case`fulfilled`:(n||O.data!==o.value)&&a();break;case`rejected`:(!n||O.error!==o.reason)&&a();break}}return O}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!o(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){t.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function b(t,n){return e(n.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status===`error`&&e(n.retryOnMount,t)===!1)}function x(e,t){return b(e,t)||e.state.data!==void 0&&S(e,t,t.refetchOnMount)}function S(t,n,r){if(e(n.enabled,t)!==!1&&p(n.staleTime,t)!==`static`){let e=typeof r==`function`?r(t):r;return e===`always`||e!==!1&&w(t,n)}return!1}function C(t,n,r,i){return(t!==n||e(i.enabled,t)===!1)&&(!r.suspense||t.state.status!==`error`)&&w(t,r)}function w(t,n){return e(n.enabled,t)!==!1&&t.isStaleByTime(p(n.staleTime,t))}function T(e,t){return!o(e.getCurrentResult(),t)}_();var E=v(f(),1),D=E.createContext(!1),O=()=>E.useContext(D);D.Provider;function k(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var A=E.createContext(k()),j=()=>E.useContext(A),M=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?s(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},N=e=>{E.useEffect(()=>{e.clearReset()},[e])},P=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||s(n,[e.error,r])),F=(e,t)=>t.state.data===void 0,I=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},L=(e,t)=>e.isLoading&&e.isFetching&&!t,R=(e,t)=>e?.suspense&&t.isPending,z=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function B(e,n,r){let i=O(),a=j(),o=h(r),s=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(s);let l=o.getQueryCache().get(s.queryHash);s._optimisticResults=i?`isRestoring`:`optimistic`,I(s),M(s,a,l),N(a);let u=!o.getQueryCache().get(s.queryHash),[f]=E.useState(()=>new n(o,s)),p=f.getOptimisticResult(s),m=!i&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(e=>{let n=m?f.subscribe(t.batchCalls(e)):c;return f.updateResult(),n},[f,m]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),E.useEffect(()=>{f.setOptions(s)},[s,f]),R(s,p))throw z(s,f,a);if(P({result:p,errorResetBoundary:a,throwOnError:s.throwOnError,query:l,suspense:s.suspense}))throw p.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(s,p),s.experimental_prefetchInRender&&!d.isServer()&&L(p,i)&&(u?z(s,f,a):l?.promise)?.catch(c).finally(()=>{f.updateResult()}),s.notifyOnChangeProps?p:f.trackResult(p)}export{F as n,y as r,B as t}; \ No newline at end of file +import{As as e,Bs as t,Cs as n,Es as r,Fs as i,Is as a,Ls as o,Ms as s,Ns as c,Os as l,Ps as u,Rs as d,Ts as f,bs as p,js as m,ks as h,ws as g,xs as _,ys as v}from"./index.js";var y=class extends d{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=f(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),x(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return S(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return S(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof m(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!c(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&C(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||m(this.options.enabled,this.#t)!==m(t.enabled,this.#t)||s(this.options.staleTime,this.#t)!==s(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||m(this.options.enabled,this.#t)!==m(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return T(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(h)),t}#g(){this.#b();let e=s(this.options.staleTime,this.#t);if(r.isServer()||this.#r.isStale||!l(e))return;let t=i(this.#r.dataUpdatedAt,e)+1;this.#d=a.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(r.isServer()||m(this.options.enabled,this.#t)===!1||!l(this.#p)||this.#p===0)&&(this.#f=a.setInterval(()=>{(this.options.refetchIntervalInBackground||o.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(a.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(a.clearInterval(this.#f),this.#f=void 0)}createResult(t,r){let i=this.#t,a=this.options,o=this.#r,s=this.#i,c=this.#a,l=t===i?this.#n:t.state,{state:u}=t,d={...u},p=!1,h;if(r._optimisticResults){let e=this.hasListeners(),o=!e&&x(t,r),s=e&&C(t,i,r,a);(o||s)&&(d={...d,...n(u.data,t.options)}),r._optimisticResults===`isRestoring`&&(d.fetchStatus=`idle`)}let{error:g,errorUpdatedAt:_,status:v}=d;h=d.data;let y=!1;if(r.placeholderData!==void 0&&h===void 0&&v===`pending`){let t;o?.isPlaceholderData&&r.placeholderData===c?.placeholderData?(t=o.data,y=!0):t=typeof r.placeholderData==`function`?r.placeholderData(this.#u?.state.data,this.#u):r.placeholderData,t!==void 0&&(v=`success`,h=e(o?.data,t,r),p=!0)}if(r.select&&h!==void 0&&!y)if(o&&h===s?.data&&r.select===this.#c)h=this.#l;else try{this.#c=r.select,h=r.select(h),h=e(o?.data,h,r),this.#l=h,this.#s=null}catch(e){this.#s=e}this.#s&&(g=this.#s,h=this.#l,_=Date.now(),v=`error`);let b=d.fetchStatus===`fetching`,S=v===`pending`,T=v===`error`,E=S&&b,D=h!==void 0,O={status:v,fetchStatus:d.fetchStatus,isPending:S,isSuccess:v===`success`,isError:T,isInitialLoading:E,isLoading:E,data:h,dataUpdatedAt:d.dataUpdatedAt,error:g,errorUpdatedAt:_,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!S,isLoadingError:T&&!D,isPaused:d.fetchStatus===`paused`,isPlaceholderData:p,isRefetchError:T&&D,isStale:w(t,r),refetch:this.refetch,promise:this.#o,isEnabled:m(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){let e=O.data!==void 0,n=O.status===`error`&&!e,r=t=>{n?t.reject(O.error):e&&t.resolve(O.data)},a=()=>{r(this.#o=O.promise=f())},o=this.#o;switch(o.status){case`pending`:t.queryHash===i.queryHash&&r(o);break;case`fulfilled`:(n||O.data!==o.value)&&a();break;case`rejected`:(!n||O.error!==o.reason)&&a();break}}return O}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!c(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){g.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function b(e,t){return m(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&m(t.retryOnMount,e)===!1)}function x(e,t){return b(e,t)||e.state.data!==void 0&&S(e,t,t.refetchOnMount)}function S(e,t,n){if(m(t.enabled,e)!==!1&&s(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&w(e,t)}return!1}function C(e,t,n,r){return(e!==t||m(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&w(e,n)}function w(e,t){return m(t.enabled,e)!==!1&&e.isStaleByTime(s(t.staleTime,e))}function T(e,t){return!c(e.getCurrentResult(),t)}p();var E=t(_(),1),D=E.createContext(!1),O=()=>E.useContext(D);D.Provider;function k(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var A=E.createContext(k()),j=()=>E.useContext(A),M=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?u(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},N=e=>{E.useEffect(()=>{e.clearReset()},[e])},P=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||u(n,[e.error,r])),F=(e,t)=>t.state.data===void 0,I=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},L=(e,t)=>e.isLoading&&e.isFetching&&!t,R=(e,t)=>e?.suspense&&t.isPending,z=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function B(e,t,n){let i=O(),a=j(),o=v(n),s=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(s);let c=o.getQueryCache().get(s.queryHash);s._optimisticResults=i?`isRestoring`:`optimistic`,I(s),M(s,a,c),N(a);let l=!o.getQueryCache().get(s.queryHash),[u]=E.useState(()=>new t(o,s)),d=u.getOptimisticResult(s),f=!i&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(e=>{let t=f?u.subscribe(g.batchCalls(e)):h;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),E.useEffect(()=>{u.setOptions(s)},[s,u]),R(s,d))throw z(s,u,a);if(P({result:d,errorResetBoundary:a,throwOnError:s.throwOnError,query:c,suspense:s.suspense}))throw d.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(s,d),s.experimental_prefetchInRender&&!r.isServer()&&L(d,i)&&(l?z(s,u,a):c?.promise)?.catch(h).finally(()=>{u.updateResult()}),s.notifyOnChangeProps?d:u.trackResult(d)}export{F as n,y as r,B as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/zod.js b/spinifex/services/spinifexui/frontend/dist/assets/zod.js index af16b0abe..ad1e922f4 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/zod.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/zod.js @@ -1 +1 @@ -import{Ci as e,Si as t,bs as n,xi as r,zs as i}from"./index.js";var a=i(n(),1),o=e=>e.type===`checkbox`,s=e=>e instanceof Date,c=e=>e==null,l=e=>typeof e==`object`,u=e=>!c(e)&&!Array.isArray(e)&&l(e)&&!s(e),d=e=>u(e)&&e.target?o(e.target)?e.target.checked:e.target.value:e,f=(e,t)=>{let n=t.split(`.`),r=[],i=n[0];for(let t=1;t{let t=e.constructor&&e.constructor.prototype;return u(t)&&t.hasOwnProperty(`isPrototypeOf`)},m=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function h(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(m&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(u(e)&&p(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=h(e[t]));return r}var g=e=>/^\w*$/.test(e),_=e=>e===void 0,v=e=>Array.isArray(e)?e.filter(Boolean):[],y=e=>v(e.replace(/["|']|\]/g,``).split(/\.|\[/)),b=(e,t,n)=>{if(!t||!u(e))return n;let r=(g(t)?[t]:y(t)).reduce((e,t)=>c(e)?void 0:e[t],e);return _(r)||r===e?_(e[t])?n:e[t]:r},x=e=>typeof e==`boolean`,S=e=>typeof e==`function`,C=(e,t,n)=>{let r=-1,i=g(t)?[t]:y(t),a=i.length,o=a-1;for(;++ra.useContext(k),j=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==T.all&&(t._proxyFormState[i]=!r||T.all),n&&(n[i]=!0),e[i]}});return i},M=typeof window<`u`?a.useLayoutEffect:a.useEffect;function N(e){let t=A(),{control:n=t,disabled:r,name:i,exact:o}=e||{},[s,c]=a.useState(()=>({...n._formState,defaultValues:n._defaultValues})),l=a.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return M(()=>n._subscribe({name:i,formState:l.current,exact:o,callback:e=>{!r&&c({...n._formState,...e,defaultValues:n._defaultValues})}}),[i,r,o]),a.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),a.useMemo(()=>j(s,n,l.current,!1),[s,n])}var P=e=>typeof e==`string`,F=(e,t,n,r,i)=>P(e)?(r&&t.watch.add(e),b(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),b(n,e))):(r&&(t.watchAll=!0),n),I=e=>c(e)||!l(e);function L(e,t,n=new WeakSet){if(e===t)return!0;if(I(e)||I(t))return Object.is(e,t);if(s(e)&&s(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(s(r)&&s(e)||(u(r)||Array.isArray(r))&&(u(e)||Array.isArray(e))?!L(r,e,n):!Object.is(r,e))return!1}}return!0}function ee(e){let t=A(),{control:n=t,name:r,defaultValue:i,disabled:o,exact:s,compute:c}=e||{},l=a.useRef(i),u=a.useRef(c),d=a.useRef(void 0),f=a.useRef(n),p=a.useRef(r);u.current=c;let[m,h]=a.useState(()=>{let e=n._getWatch(r,l.current);return u.current?u.current(e):e}),g=a.useCallback(e=>{let t=F(r,n._names,e||n._formValues,!1,l.current);return u.current?u.current(t):t},[n._formValues,n._names,r]),_=a.useCallback(e=>{if(!o){let t=F(r,n._names,e||n._formValues,!1,l.current);if(u.current){let e=u.current(t);L(e,d.current)||(h(e),d.current=e)}else h(t)}},[n._formValues,n._names,o,r]);M(()=>((f.current!==n||!L(p.current,r))&&(f.current=n,p.current=r,_()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:e=>{_(e.values)}})),[n,s,r,_]),a.useEffect(()=>n._removeUnmounted());let v=f.current!==n,y=p.current,b=a.useMemo(()=>{if(o)return null;let e=!v&&!L(y,r);return v||e?g():null},[o,v,r,y,g]);return b===null?m:b}function te(e){let t=A(),{name:n,disabled:r,control:i=t,shouldUnregister:o,defaultValue:s,exact:c=!0}=e,l=!!f(i._names.array,n).length,u=ee({control:i,name:n,defaultValue:a.useMemo(()=>b(i._formValues,n,b(i._defaultValues,n,s)),[i,n,s]),exact:c}),p=N({control:i,name:n,exact:c}),m=a.useRef(e),g=a.useRef(i.register(n,{...e.rules,value:u,...x(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;let v=a.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!b(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!b(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!b(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!b(p.validatingFields,n)},error:{enumerable:!0,get:()=>b(p.errors,n)}}),[p,n]),y=a.useCallback(e=>g.current.onChange({target:{value:d(e),name:n},type:w.CHANGE}),[n]),T=a.useCallback(()=>g.current.onBlur({target:{value:b(i._formValues,n),name:n},type:w.BLUR}),[n,i._formValues]),E=a.useCallback(e=>{let t=b(i._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>S(e.focus)&&e.focus(),select:()=>S(e.select)&&e.select(),setCustomValidity:t=>S(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>S(e.reportValidity)&&e.reportValidity()})},[i._fields,n]),D=a.useMemo(()=>({name:n,value:u,...x(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:y,onBlur:T,ref:E}),[n,r,p.disabled,y,T,E,u]);return a.useEffect(()=>{let e=i._options.shouldUnregister||o;i.register(n,{...m.current.rules,...x(m.current.disabled)?{disabled:m.current.disabled}:{}});let t=(e,t)=>{let n=b(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=h(b(i._defaultValues,n,b(i._options.defaultValues,n,m.current.defaultValue)));C(i._defaultValues,n,e),_(b(i._formValues,n))&&C(i._formValues,n,e)}return!l&&i.register(n),()=>{(l?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,l,o]),a.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),a.useMemo(()=>({field:D,formState:p,fieldState:v}),[D,p,v])}var R=e=>e.render(te(e)),z=a.createContext(null);z.displayName=`HookFormContext`;var ne=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},B=e=>Array.isArray(e)?e:[e],re=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function ie(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&u(i)&&a){let e=ie(i,a);u(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var V=e=>u(e)&&!Object.keys(e).length,ae=e=>e.type===`file`,oe=e=>{if(!m)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},se=e=>e.type===`select-multiple`,ce=e=>e.type===`radio`,le=e=>ce(e)||o(e),ue=e=>oe(e)&&e.isConnected;function de(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let t in e)if(S(e[t]))return!0;return!1};function me(e){return Array.isArray(e)||u(e)&&!pe(e)}function he(e,t={}){for(let n in e){let r=e[n];me(r)?(t[n]=Array.isArray(r)?[]:{},he(r,t[n])):_(r)||(t[n]=!0)}return t}function ge(e){if(e!==!1){if(e===!0)return!0;if(Array.isArray(e)){let t=e.map(e=>ge(e));return t.some(e=>e!==void 0)?t:void 0}if(u(e)){let t={};for(let n in e){let r=ge(e[n]);_(r)||(t[n]=r)}return Object.keys(t).length?t:void 0}}}function U(e,t,n){n||=he(t);for(let r in e){let i=e[r];if(me(i))_(t)||I(n[r])?n[r]=he(i,Array.isArray(i)?[]:{}):U(i,c(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!L(i,e)}}return ge(n)||{}}var W={value:!1,isValid:!1},_e={value:!0,isValid:!0},ve=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!_(e[0].attributes.value)?_(e[0].value)||e[0].value===``?_e:{value:e[0].value,isValid:!0}:_e:W}return W},ye=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>_(e)?e:t?e===``?NaN:e&&+e:n&&P(e)?new Date(e):r?r(e):e,G={isValid:!1,value:null},be=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,G):G;function xe(e){let t=e.ref;return ae(t)?t.files:ce(t)?be(e.refs).value:se(t)?[...t.selectedOptions].map(({value:e})=>e):o(t)?ve(e.refs).value:ye(_(t.value)?e.ref.value:t.value,e)}var Se=(e,t,n,r)=>{let i={};for(let n of e){let e=b(t,n);e&&C(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},K=e=>e instanceof RegExp,Ce=e=>_(e)?e:K(e)?e.source:u(e)?K(e.value)?e.value.source:e.value:e,q=e=>({isOnSubmit:!e||e===T.onSubmit,isOnBlur:e===T.onBlur,isOnChange:e===T.onChange,isOnAll:e===T.all,isOnTouch:e===T.onTouched}),we=`AsyncFunction`,Te=e=>!!e&&!!e.validate&&!!(S(e.validate)&&e.validate.constructor.name===we||u(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===we)),Ee=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),De=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),J=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=b(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(J(a,t))break}else if(u(a)&&J(a,t))break}}};function Oe(e,t,n){let r=b(e,n);if(r||g(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=b(t,r),o=b(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var ke=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return V(a)||r&&Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||T.all))},Ae=(e,t,n)=>!e||!t||e===t||B(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),je=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Me=(e,t)=>!v(b(e,t)).length&&H(e,t),Ne=(e,t,n)=>{let r=B(b(e,n));return C(r,O,t[n]),C(e,n,r),e};function Pe(e,t,n=`validate`){if(P(e)||Array.isArray(e)&&e.every(P)||x(e)&&!e)return{type:n,message:P(e)?e:``,ref:t}}var Y=e=>u(e)&&!K(e)?e:{value:e,message:``},Fe=async(e,t,n,r,i,a)=>{let{ref:s,refs:l,required:d,maxLength:f,minLength:p,min:m,max:h,pattern:g,validate:v,name:y,valueAsNumber:C,mount:w}=e._f,T=b(n,y);if(!w||t.has(y))return{};let D=l?l[0]:s,O=e=>{i&&D.reportValidity&&(D.setCustomValidity(x(e)?``:e||``),D.reportValidity())},k={},A=ce(s),j=o(s),M=A||j,N=(C||ae(s))&&_(s.value)&&_(T)||oe(s)&&s.value===``||T===``||Array.isArray(T)&&!T.length||C&&typeof T==`number`&&isNaN(T),F=ne.bind(null,y,r,k),I=(e,t,n,r=E.maxLength,i=E.minLength)=>{let a=e?t:n;k[y]={type:e?r:i,message:a,ref:s,...F(e?r:i,a)}};if(a?!Array.isArray(T)||!T.length:d&&(!M&&(N||c(T))||x(T)&&!T||j&&!ve(l).isValid||A&&!be(l).isValid)){let{value:e,message:t}=P(d)?{value:!!d,message:d}:Y(d);if(e&&(k[y]={type:E.required,message:t,ref:D,...F(E.required,t)},!r))return O(t),k}if(!N&&(!c(m)||!c(h))){let e,t,n=Y(h),i=Y(m);if(!c(T)&&!isNaN(T)){let r=s.valueAsNumber||T&&+T;c(n.value)||(e=r>n.value),c(i.value)||(t=rnew Date(new Date().toDateString()+` `+e),o=s.type==`time`,c=s.type==`week`;P(n.value)&&T&&(e=o?a(T)>a(n.value):c?T>n.value:r>new Date(n.value)),P(i.value)&&T&&(t=o?a(T)+e.value,i=!c(t.value)&&T.length<+t.value;if((n||i)&&(I(n,e.message,t.message),!r))return O(k[y].message),k}if(g&&!N&&P(T)){let{value:e,message:t}=Y(g);if(K(e)&&!T.match(e)&&(k[y]={type:E.pattern,message:t,ref:s,...F(E.pattern,t)},!r))return O(t),k}if(v){if(S(v)){let e=Pe(await v(T,n),D);if(e&&(k[y]={...e,...F(E.validate,e.message)},!r))return O(e.message),k}else if(u(v)){let e={};for(let t in v){if(!V(e)&&!r)break;let i=Pe(await v[t](T,n),D,t);i&&(e={...i,...F(t,i.message)},O(i.message),r&&(k[y]=e))}if(!V(e)&&(k[y]={ref:D,...e},!r))return k}}return O(!0),k},Ie={mode:T.onSubmit,reValidateMode:T.onChange,shouldFocusError:!0},Le={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function Re(e={}){let t={...Ie,...e},n={...h(Le),isLoading:S(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(u(t.defaultValues)||u(t.values))&&h(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:h(i),l={action:!1,mount:!1,watch:!1,keepIsValid:!1},p={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},k,A=0,j={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},M={...j},N={...M},I={array:re(),state:re()},ee=t.criteriaMode===T.all,te=e=>t=>{clearTimeout(A),A=setTimeout(e,t)},R=async e=>{if(!l.keepIsValid&&!t.disabled&&(M.isValid||N.isValid||e)){let e;t.resolver?(e=V((await W()).errors),z()):e=await G({fields:r,onlyCheckValid:!0,eventType:w.VALID}),e!==n.isValid&&I.state.next({isValid:e})}},z=(e,r)=>{!t.disabled&&(M.isValidating||M.validatingFields||N.isValidating||N.validatingFields)&&((e||Array.from(p.mount)).forEach(e=>{e&&(r?C(n.validatingFields,e,r):H(n.validatingFields,e))}),I.state.next({validatingFields:n.validatingFields,isValidating:!V(n.validatingFields)}))},ne=()=>{n.dirtyFields=U(i,a)},ce=(e,i=[],o,s,c=!0,u=!0)=>{if(s&&o&&!t.disabled){if(l.action=!0,u&&Array.isArray(b(r,e))){let t=o(b(r,e),s.argA,s.argB);c&&C(r,e,t)}if(u&&Array.isArray(b(n.errors,e))){let t=o(b(n.errors,e),s.argA,s.argB);c&&C(n.errors,e,t),Me(n.errors,e)}if((M.touchedFields||N.touchedFields)&&u&&Array.isArray(b(n.touchedFields,e))){let t=o(b(n.touchedFields,e),s.argA,s.argB);c&&C(n.touchedFields,e,t)}(M.dirtyFields||N.dirtyFields)&&ne(),I.state.next({name:e,isDirty:K(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else C(a,e,i)},de=(e,t)=>{C(n.errors,e,t),I.state.next({errors:n.errors})},fe=e=>{n.errors=e,I.state.next({errors:n.errors,isValid:!1})},pe=e=>{let t=g(e)?[e]:y(e),n=a,r=i;for(let e=0;e{let c=b(r,e);if(c){if(pe(e))return;let r=_(b(a,e)),u=b(a,e,_(o)?b(i,e):o);_(u)||s&&s.defaultChecked||t?C(a,e,t?u:xe(c._f)):Y(e,u),l.mount&&!l.action&&(R(),r&&n.isDirty&&(M.isDirty||N.isDirty)&&(K()||(n.isDirty=!1,I.state.next({...n}))))}},he=(e,r,o,s,c)=>{let l=!1,u=!1,d={name:e};if(!t.disabled){if(!o||s){(M.isDirty||N.isDirty)&&(u=n.isDirty,n.isDirty=d.isDirty=K(),l=u!==d.isDirty);let t=L(b(i,e),r);u=!!b(n.dirtyFields,e),t===n.isDirty?t?H(n.dirtyFields,e):C(n.dirtyFields,e,!0):n.dirtyFields=U(i,a),d.dirtyFields=n.dirtyFields,l||=(M.dirtyFields||N.dirtyFields)&&u!==!t}if(o){let t=b(n.touchedFields,e);t||(C(n.touchedFields,e,o),d.touchedFields=n.touchedFields,l||=(M.touchedFields||N.touchedFields)&&t!==o)}l&&c&&I.state.next(d)}return l?d:{}},ge=(e,r,i,a)=>{let o=b(n.errors,e),s=(M.isValid||N.isValid)&&x(r)&&n.isValid!==r;if(t.delayError&&i?(k=te(()=>de(e,i)),k(t.delayError)):(clearTimeout(A),k=null,i?C(n.errors,e,i):H(n.errors,e)),(i?!L(o,i):o)||!V(a)||s){let t={...a,...s&&x(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},I.state.next(t)}},W=async e=>(z(e,!0),await t.resolver(a,t.context,Se(e||p.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),_e=async e=>{let{errors:t}=await W(e);if(z(e),e)for(let r of e){let e=b(t,r);e?p.array.has(r)&&u(e)?Ne(n.errors,{[r]:e},r):C(n.errors,r,e):H(n.errors,r)}else n.errors=t;return t},ve=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(u(i))for(let e in i){let t=i[e];t&&Q(`${D}.${e}`,{message:P(t.message)?t.message:``,type:t.type||E.validate})}else P(i)||!i?Q(D,{message:i||``,type:E.validate}):We(D);return i}return!0},G=async({fields:r,onlyCheckValid:i,name:o,eventType:s,context:c={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(c.runRootValidation=!0,!await ve({name:o,eventType:s})&&(c.valid=!1,i)))return c.valid;for(let o in r){let l=r[o];if(l){let{_f:r,...u}=l;if(r){let o=p.array.has(r.name),s=l._f&&Te(l._f),u=M.validatingFields||M.isValidating||N.validatingFields||N.isValidating;s&&u&&z([r.name],!0);let d=await Fe(l,p.disabled,a,ee,t.shouldUseNativeValidation&&!i,o);if(s&&u&&z([r.name]),d[r.name]&&(c.valid=!1,i)||(!i&&(b(d,r.name)?o?Ne(n.errors,d,r.name):C(n.errors,r.name,d[r.name]):H(n.errors,r.name)),e.shouldUseNativeValidation&&d[r.name]))break}!V(u)&&await G({context:c,onlyCheckValid:i,fields:u,name:o,eventType:s})}}return c.valid},be=()=>{for(let e of p.unMount){let t=b(r,e);t&&(t._f.refs?t._f.refs.every(e=>!ue(e)):!ue(t._f.ref))&&Je(e)}p.unMount=new Set},K=(e,n)=>!t.disabled&&(e&&n&&C(a,e,n),!L(He(),i)),we=(e,t,n)=>F(e,p,{...l.mount?a:_(t)?i:P(e)?{[e]:t}:t},n,t),Pe=e=>v(b(l.mount?a:i,e,t.shouldUnregister?b(i,e,[]):[])),Y=(e,t,n={})=>{let i=b(r,e),s=t;if(i){let n=i._f;n&&(!n.disabled&&C(a,e,ye(t,n)),s=oe(n.ref)&&c(t)?``:t,se(n.ref)?[...n.ref.options].forEach(e=>e.selected=s.includes(e.value)):n.refs?o(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(s)?e.checked=!!s.find(t=>t===e.value):e.checked=s===e.value||!!s)}):n.refs.forEach(e=>e.checked=e.value===s):ae(n.ref)?n.ref.value=``:(n.ref.value=s,n.ref.type||I.state.next({name:e,values:h(a)})))}(n.shouldDirty||n.shouldTouch)&&he(e,s,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&Z(e)},Re=(e,t,n)=>{for(let i in t){if(!t.hasOwnProperty(i))return;let a=t[i],o=e+`.`+i,c=b(r,o);(p.array.has(e)||u(a)||c&&!c._f)&&!s(a)?Re(o,a,n):Y(o,a,n)}},X=(e,t,i={})=>{let o=b(r,e),s=p.array.has(e),u=h(t),d=L(b(a,e),u);if(d||C(a,e,u),s)I.array.next({name:e,values:h(a)}),(M.isDirty||M.dirtyFields||N.isDirty||N.dirtyFields)&&i.shouldDirty&&(ne(),I.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:K(e,u)}));else{let t=Array.isArray(u)&&!u.length||V(u);!o||o._f||c(u)||t?Y(e,u,i):Re(e,u,i)}if(!d){let t=De(e,p),r=h(a);if(!s)for(let t of f(p.array,e))I.array.next({name:t,values:r});I.state.next({...t&&n,name:l.mount||t?e:void 0,values:r})}},ze=e=>{let t=S(e)?e(a):e;if(!L(a,t)){a={...a,...t};for(let e of p.mount)X(e,b(t,e));I.state.next({...n,values:a})}},Be=async i=>{l.mount=!0;let o=i.target,c=o.name,u=!0,f=b(r,c),m=e=>{u=Number.isNaN(e)||s(e)&&isNaN(e.getTime())||L(e,b(a,c,e))},g=q(t.mode),_=q(t.reValidateMode);if(f){let s,l,v=o.type?xe(f._f):d(i),y=i.type===w.BLUR||i.type===w.FOCUS_OUT,x=!Ee(f._f)&&!e.validate&&!t.resolver&&!b(n.errors,c)&&!f._f.deps||je(y,b(n.touchedFields,c),n.isSubmitted,_,g),S=De(c,p,y);C(a,c,v),y?(!o||!o.readOnly)&&(f._f.onBlur&&f._f.onBlur(i),k&&k(0)):f._f.onChange&&f._f.onChange(i);let T=he(c,v,y),E=!V(T)||S;if(!y&&I.state.next({name:c,type:i.type,values:h(a)}),x)return(M.isValid||N.isValid)&&(t.mode===`onBlur`?y&&R():y||R()),E&&I.state.next({name:c,...S?{}:T});if(!t.resolver&&e.validate&&await ve({name:c,eventType:i.type}),!y&&S&&I.state.next({...n}),t.resolver){let{errors:e}=await W([c]);if(z([c]),m(v),u){let t=Oe(n.errors,r,c),i=Oe(e,r,t.name||c);s=i.error,c=i.name,l=V(e)}}else z([c],!0),s=(await Fe(f,p.disabled,a,ee,t.shouldUseNativeValidation))[c],z([c]),m(v),u&&(s?l=!1:(M.isValid||N.isValid)&&(l=await G({fields:r,onlyCheckValid:!0,name:c,eventType:i.type})));u&&(f._f.deps&&(!Array.isArray(f._f.deps)||f._f.deps.length>0)&&Z(f._f.deps),ge(c,l,s,T))}},Ve=(e,t)=>{if(b(n.errors,t)&&e.focus)return e.focus(),1},Z=async(e,i={})=>{let a,o,s=B(e);if(t.resolver){let t=await _e(_(e)?e:s);a=V(t),o=e?!s.some(e=>b(t,e)):a}else e?(o=(await Promise.all(s.map(async e=>{let t=b(r,e);return await G({fields:t&&t._f?{[e]:t}:t,eventType:w.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&R()):o=a=await G({fields:r,name:e,eventType:w.TRIGGER});return I.state.next({...!P(e)||(M.isValid||N.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&J(r,Ve,e?s:p.mount),o},He=(e,t)=>{let r={...l.mount?a:i};return t&&(r=ie(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),_(e)?r:P(e)?b(r,e):e.map(e=>b(r,e))},Ue=(e,t)=>({invalid:!!b((t||n).errors,e),isDirty:!!b((t||n).dirtyFields,e),error:b((t||n).errors,e),isValidating:!!b(n.validatingFields,e),isTouched:!!b((t||n).touchedFields,e)}),We=e=>{let t=e?B(e):void 0;t?.forEach(e=>H(n.errors,e)),t?t.forEach(e=>{I.state.next({name:e,errors:n.errors})}):I.state.next({errors:{}})},Q=(e,t,i)=>{let a=(b(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=b(n.errors,e)||{};C(n.errors,e,{...l,...t,ref:a}),I.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},Ge=(e,t)=>S(e)?I.state.subscribe({next:n=>`values`in n&&e(n.values||we(void 0,t),n)}):we(e,t,!0),Ke=e=>I.state.subscribe({next:t=>{if(Ae(e.name,t.name,e.exact)&&ke(t,e.formState||M,rt,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}}).unsubscribe,qe=e=>(l.mount=!0,N={...N,...e.formState},Ke({...e,formState:{...j,...e.formState}})),Je=(e,o={})=>{for(let s of e?B(e):p.mount)p.mount.delete(s),p.array.delete(s),o.keepValue||(H(r,s),H(a,s)),!o.keepError&&H(n.errors,s),!o.keepDirty&&H(n.dirtyFields,s),!o.keepTouched&&H(n.touchedFields,s),!o.keepIsValidating&&H(n.validatingFields,s),!t.shouldUnregister&&!o.keepDefaultValue&&H(i,s);I.state.next({values:h(a)}),I.state.next({...n,...o.keepDirty?{isDirty:K()}:{}}),!o.keepIsValid&&R()},Ye=({disabled:e,name:t})=>{if(x(e)&&l.mount||e||p.disabled.has(t)){let n=p.disabled.has(t)!==!!e;e?p.disabled.add(t):p.disabled.delete(t),n&&l.mount&&!l.action&&R()}},$=(e,n={})=>{let a=b(r,e),o=x(n.disabled)||x(t.disabled),s=!p.registerName.has(e)&&a&&a._f&&!a._f.mount;return C(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),p.mount.add(e),a&&!s?Ye({disabled:x(n.disabled)?n.disabled:t.disabled,name:e}):me(e,!0,n.value),{...o?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Ce(n.min),max:Ce(n.max),minLength:Ce(n.minLength),maxLength:Ce(n.maxLength),pattern:Ce(n.pattern)}:{},name:e,onChange:Be,onBlur:Be,ref:o=>{if(o){p.registerName.add(e),$(e,n),p.registerName.delete(e),a=b(r,e);let t=_(o.value)&&o.querySelectorAll&&o.querySelectorAll(`input,select,textarea`)[0]||o,s=le(t),c=a._f.refs||[];if(s?c.find(e=>e===t):t===a._f.ref)return;C(r,e,{_f:{...a._f,...s?{refs:[...c.filter(ue),t,...Array.isArray(b(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),me(e,!1,void 0,t)}else a=b(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(f(p.array,e).length&&l.action)&&p.unMount.add(e)}}},Xe=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&J(r,Ve,p.mount),Ze=e=>{x(e)&&(I.state.next({disabled:e}),J(r,(t,n)=>{let i=b(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},Qe=(e,i)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=h(a);if(I.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await W();z(),n.errors=e,c=h(t)}else await G({fields:r,eventType:w.SUBMIT});if(p.disabled.size)for(let e of p.disabled)H(c,e);if(H(n.errors,O),V(n.errors)){I.state.next({errors:{}});try{await e(c,o)}catch(e){s=e}}else i&&await i({...n.errors},o),Xe(),setTimeout(Xe);if(I.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:V(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},$e=(e,t={})=>{b(r,e)&&(_(t.defaultValue)?X(e,h(b(i,e))):(X(e,t.defaultValue),C(i,e,h(t.defaultValue))),t.keepTouched||H(n.touchedFields,e),t.keepDirty||(H(n.dirtyFields,e),n.isDirty=t.defaultValue?K(e,h(b(i,e))):K()),t.keepError||(H(n.errors,e),M.isValid&&R()),I.state.next({...n}))},et=(e,o={})=>{let s=e?h(e):i,c=h(s),u=V(e),d=u?i:c;if(o.keepDefaultValues||(i=s),!o.keepValues){if(o.keepDirtyValues){let e=new Set([...p.mount,...Object.keys(U(i,a))]);for(let t of Array.from(e)){let e=b(n.dirtyFields,t),r=b(a,t),i=b(d,t);e&&!_(r)?C(d,t,r):!e&&!_(i)&&X(t,i)}}else{if(m&&_(e))for(let e of p.mount){let t=b(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(oe(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(o.keepFieldsRef)for(let e of p.mount)X(e,b(d,e));else r={}}a=t.shouldUnregister?o.keepDefaultValues?h(i):{}:h(d),I.array.next({values:{...d}}),I.state.next({values:{...d}})}p={mount:o.keepDirtyValues?p.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},l.mount=!M.isValid||!!o.keepIsValid||!!o.keepDirtyValues||!t.shouldUnregister&&!V(d),l.watch=!!t.shouldUnregister,l.keepIsValid=!!o.keepIsValid,l.action=!1,o.keepErrors||(n.errors={}),I.state.next({submitCount:o.keepSubmitCount?n.submitCount:0,isDirty:u?!1:o.keepDirty?n.isDirty:!!(o.keepDefaultValues&&!L(e,i)),isSubmitted:o.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:u?{}:o.keepDirtyValues?o.keepDefaultValues&&a?U(i,a):n.dirtyFields:o.keepDefaultValues&&e?U(i,e):o.keepDirty?n.dirtyFields:{},touchedFields:o.keepTouched?n.touchedFields:{},errors:o.keepErrors?n.errors:{},isSubmitSuccessful:o.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},tt=(e,n)=>et(S(e)?e(a):e,{...t.resetOptions,...n}),nt=(e,t={})=>{let n=b(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&S(e.select)&&e.select()})}},rt=e=>{n={...n,...e}},it={control:{register:$,unregister:Je,getFieldState:Ue,handleSubmit:Qe,setError:Q,_subscribe:Ke,_runSchema:W,_updateIsValidating:z,_focusError:Xe,_getWatch:we,_getDirty:K,_setValid:R,_setFieldArray:ce,_setDisabledField:Ye,_setErrors:fe,_getFieldArray:Pe,_reset:et,_resetDefaultValues:()=>S(t.defaultValues)&&t.defaultValues().then(e=>{tt(e,t.resetOptions),I.state.next({isLoading:!1})}),_removeUnmounted:be,_disableForm:Ze,_subjects:I,_proxyFormState:M,get _fields(){return r},get _formValues(){return a},get _state(){return l},set _state(e){l=e},get _defaultValues(){return i},get _names(){return p},set _names(e){p=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:qe,trigger:Z,register:$,handleSubmit:Qe,watch:Ge,setValue:X,setValues:ze,getValues:He,reset:tt,resetField:$e,clearErrors:We,unregister:Je,setError:Q,setFocus:nt,getFieldState:Ue};return{...it,formControl:it}}var X=()=>{if(typeof crypto<`u`&&crypto.randomUUID)return crypto.randomUUID();let e=typeof performance>`u`?Date.now():performance.now()*1e3;return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,t=>{let n=(Math.random()*16+e)%16|0;return(t==`x`?n:n&3|8).toString(16)})},ze=(e,t,n={})=>n.shouldFocus||_(n.shouldFocus)?n.focusName||`${e}.${_(n.focusIndex)?t:n.focusIndex}.`:``,Be=(e,t)=>[...e,...B(t)],Ve=e=>Array.isArray(e)?e.map(()=>void 0):void 0;function Z(e,t,n){return[...e.slice(0,t),...B(n),...e.slice(t)]}var He=(e,t,n)=>Array.isArray(e)?(_(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],Ue=(e,t)=>[...B(t),...B(e)];function We(e,t){let n=0,r=[...e];for(let e of t)r.splice(e-n,1),n++;return v(r).length?r:[]}var Q=(e,t)=>_(t)?[]:We(e,B(t).sort((e,t)=>e-t)),Ge=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},Ke=(e,t,n)=>(e[t]=n,e);function qe(e){let t=A(),{control:n=t,name:r,keyName:i=`id`,shouldUnregister:o,rules:s}=e,[c,l]=a.useState(n._getFieldArray(r)),u=a.useRef(n._getFieldArray(r).map(X)),d=a.useRef(!1);n._names.array.add(r),a.useMemo(()=>s&&c.length>=0&&n.register(r,s),[n,r,c.length,s]),M(()=>n._subjects.array.subscribe({next:({values:e,name:t})=>{if(t===r||!t){let t=b(e,r);Array.isArray(t)&&(l(t),u.current=t.map(X))}}}).unsubscribe,[n,r]);let f=a.useCallback(e=>{d.current=!0,n._setFieldArray(r,e)},[n,r]);return a.useEffect(()=>{n._state.action=!1,De(r,n._names)&&n._subjects.state.next({...n._formState});let e=q(n._options.mode);if(d.current&&(!e.isOnSubmit||n._formState.isSubmitted)&&!q(n._options.reValidateMode).isOnSubmit&&!e.isOnBlur)if(n._options.resolver)n._runSchema([r]).then(e=>{n._updateIsValidating([r]);let t=b(e.errors,r),i=b(n._formState.errors,r);(i?!t&&i.type||t&&(i.type!==t.type||i.message!==t.message):t&&t.type)&&(t?C(n._formState.errors,r,t):H(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{let e=b(n._fields,r);e&&e._f&&!(q(n._options.reValidateMode).isOnSubmit&&q(n._options.mode).isOnSubmit)&&Fe(e,n._names.disabled,n._formValues,n._options.criteriaMode===T.all,n._options.shouldUseNativeValidation,!0).then(e=>!V(e)&&n._subjects.state.next({errors:Ne(n._formState.errors,e,r)}))}n._subjects.state.next({name:r,values:h(n._formValues)}),n._names.focus&&J(n._fields,(e,t)=>{if(n._names.focus&&t.startsWith(n._names.focus)&&e.focus)return e.focus(),1}),n._names.focus=``,n._setValid(),d.current=!1},[c,r,n]),a.useEffect(()=>(!b(n._formValues,r)&&n._setFieldArray(r),()=>{let e=!(n._options.shouldUnregister||o);d.current&&e&&n._subjects.state.next({name:r,values:h(n._formValues)}),e?((e,t)=>{let r=b(n._fields,e);r&&r._f&&(r._f.mount=t)})(r,!1):n.unregister(r)}),[r,n,i,o]),{swap:a.useCallback((e,t)=>{let i=n._getFieldArray(r);Ge(i,e,t),Ge(u.current,e,t),f(i),l(i),n._setFieldArray(r,i,Ge,{argA:e,argB:t},!1)},[f,r,n]),move:a.useCallback((e,t)=>{let i=n._getFieldArray(r);He(i,e,t),He(u.current,e,t),f(i),l(i),n._setFieldArray(r,i,He,{argA:e,argB:t},!1)},[f,r,n]),prepend:a.useCallback((e,t)=>{let i=B(h(e)),a=Ue(n._getFieldArray(r),i);n._names.focus=ze(r,0,t),u.current=Ue(u.current,i.map(X)),f(a),l(a),n._setFieldArray(r,a,Ue,{argA:Ve(e)})},[f,r,n]),append:a.useCallback((e,t)=>{let i=B(h(e)),a=Be(n._getFieldArray(r),i);n._names.focus=ze(r,a.length-1,t),u.current=Be(u.current,i.map(X)),f(a),l(a),n._setFieldArray(r,a,Be,{argA:Ve(e)})},[f,r,n]),remove:a.useCallback(e=>{let t=Q(n._getFieldArray(r),e);u.current=Q(u.current,e),f(t),l(t),!Array.isArray(b(n._fields,r))&&C(n._fields,r,void 0),n._setFieldArray(r,t,Q,{argA:e})},[f,r,n]),insert:a.useCallback((e,t,i)=>{let a=B(h(t)),o=Z(n._getFieldArray(r),e,a);n._names.focus=ze(r,e,i),u.current=Z(u.current,e,a.map(X)),f(o),l(o),n._setFieldArray(r,o,Z,{argA:e,argB:Ve(t)})},[f,r,n]),update:a.useCallback((e,t)=>{let i=h(t),a=Ke(n._getFieldArray(r),e,i);u.current=[...a].map((t,n)=>!t||n===e?X():u.current[n]),f(a),l([...a]),n._setFieldArray(r,a,Ke,{argA:e,argB:i},!0,!1)},[f,r,n]),replace:a.useCallback(e=>{let t=B(h(e));u.current=t.map(X),f([...t]),l([...t]),n._setFieldArray(r,[...t],e=>e,{},!0,!1)},[f,r,n]),fields:a.useMemo(()=>c.map((e,t)=>({...e,[i]:u.current[t]||X()})),[c,i])}}function Je(e={}){let t=a.useRef(void 0),n=a.useRef(void 0),[r,i]=a.useState(()=>({...h(Le),isLoading:S(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:S(e.defaultValues)?void 0:e.defaultValues}));if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!S(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...i}=Re(e);t.current={...i,formState:r}}let o=t.current.control;return o._options=e,M(()=>{let e=o._subscribe({formState:o._proxyFormState,callback:()=>i({...o._formState,defaultValues:o._defaultValues}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),o._formState.isReady=!0,e},[o]),a.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),a.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),a.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),a.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),a.useEffect(()=>{if(o._proxyFormState.isDirty){let e=o._getDirty();e!==r.isDirty&&o._subjects.state.next({isDirty:e})}},[o,r.isDirty]),a.useEffect(()=>{e.values&&!L(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),o._options.resetOptions?.keepIsValid||o._setValid(),n.current=e.values,i(e=>({...e}))):o._resetDefaultValues()},[o,e.values]),a.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=a.useMemo(()=>j(r,o),[o,r]),t.current}var Ye=(e,t,n)=>{if(e&&`reportValidity`in e){let r=b(n,t);e.setCustomValidity(r&&r.message||``),e.reportValidity()}},$=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&`reportValidity`in r.ref?Ye(r.ref,n,e):r&&r.refs&&r.refs.forEach(t=>Ye(t,n,e))}},Xe=(e,t)=>{t.shouldUseNativeValidation&&$(e,t);let n={};for(let r in e){let i=b(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(Ze(t.names||Object.keys(e),r)){let e=Object.assign({},b(n,r));C(e,`root`,a),C(n,r,e)}else C(n,r,a)}return n},Ze=(e,t)=>{let n=Qe(t);return e.some(e=>Qe(e).match(`^${n}\\.\\d+`))};function Qe(e){return e.replace(/\]|\[/g,``)}function $e(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}function et(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(`unionErrors`in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(`unionErrors`in r&&r.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=ne(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function tt(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(r.code===`invalid_union`&&r.errors.length>0){var s=r.errors[0][0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(r.code===`invalid_union`&&r.errors.forEach(function(t){return t.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=ne(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function nt(n,i,a){if(a===void 0&&(a={}),function(e){return`_def`in e&&typeof e._def==`object`&&`typeName`in e._def}(n))return function(e,t,r){try{return Promise.resolve($e(function(){return Promise.resolve(n[a.mode===`sync`?`parse`:`parseAsync`](e,i)).then(function(t){return r.shouldUseNativeValidation&&$({},r),{errors:{},values:a.raw?Object.assign({},e):t}})},function(e){if(function(e){return Array.isArray(e?.issues)}(e))return{values:{},errors:Xe(et(e.errors,!r.shouldUseNativeValidation&&r.criteriaMode===`all`),r)};throw e}))}catch(e){return Promise.reject(e)}};if(function(e){return`_zod`in e&&typeof e._zod==`object`}(n))return function(o,s,c){try{return Promise.resolve($e(function(){return Promise.resolve((a.mode===`sync`?r:t)(n,o,i)).then(function(e){return c.shouldUseNativeValidation&&$({},c),{errors:{},values:a.raw?Object.assign({},o):e}})},function(t){if(function(t){return t instanceof e}(t))return{values:{},errors:Xe(tt(t.issues,!c.shouldUseNativeValidation&&c.criteriaMode===`all`),c)};throw t}))}catch(e){return Promise.reject(e)}};throw Error(`Invalid input: not a Zod schema`)}export{ee as a,Je as i,R as n,qe as r,nt as t}; \ No newline at end of file +import{Bs as e,Ci as t,Si as n,wi as r,xs as i}from"./index.js";var a=e(i(),1),o=e=>e.type===`checkbox`,s=e=>e instanceof Date,c=e=>e==null,l=e=>typeof e==`object`,u=e=>!c(e)&&!Array.isArray(e)&&l(e)&&!s(e),d=e=>u(e)&&e.target?o(e.target)?e.target.checked:e.target.value:e,f=(e,t)=>{let n=t.split(`.`),r=[],i=n[0];for(let t=1;t{let t=e.constructor&&e.constructor.prototype;return u(t)&&t.hasOwnProperty(`isPrototypeOf`)},m=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function h(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(m&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(u(e)&&p(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=h(e[t]));return r}var g=e=>/^\w*$/.test(e),_=e=>e===void 0,v=e=>Array.isArray(e)?e.filter(Boolean):[],y=e=>v(e.replace(/["|']|\]/g,``).split(/\.|\[/)),b=(e,t,n)=>{if(!t||!u(e))return n;let r=(g(t)?[t]:y(t)).reduce((e,t)=>c(e)?void 0:e[t],e);return _(r)||r===e?_(e[t])?n:e[t]:r},x=e=>typeof e==`boolean`,S=e=>typeof e==`function`,C=(e,t,n)=>{let r=-1,i=g(t)?[t]:y(t),a=i.length,o=a-1;for(;++ra.useContext(k),j=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==T.all&&(t._proxyFormState[i]=!r||T.all),n&&(n[i]=!0),e[i]}});return i},M=typeof window<`u`?a.useLayoutEffect:a.useEffect;function N(e){let t=A(),{control:n=t,disabled:r,name:i,exact:o}=e||{},[s,c]=a.useState(()=>({...n._formState,defaultValues:n._defaultValues})),l=a.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return M(()=>n._subscribe({name:i,formState:l.current,exact:o,callback:e=>{!r&&c({...n._formState,...e,defaultValues:n._defaultValues})}}),[i,r,o]),a.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),a.useMemo(()=>j(s,n,l.current,!1),[s,n])}var P=e=>typeof e==`string`,F=(e,t,n,r,i)=>P(e)?(r&&t.watch.add(e),b(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),b(n,e))):(r&&(t.watchAll=!0),n),I=e=>c(e)||!l(e);function L(e,t,n=new WeakSet){if(e===t)return!0;if(I(e)||I(t))return Object.is(e,t);if(s(e)&&s(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(s(r)&&s(e)||(u(r)||Array.isArray(r))&&(u(e)||Array.isArray(e))?!L(r,e,n):!Object.is(r,e))return!1}}return!0}function ee(e){let t=A(),{control:n=t,name:r,defaultValue:i,disabled:o,exact:s,compute:c}=e||{},l=a.useRef(i),u=a.useRef(c),d=a.useRef(void 0),f=a.useRef(n),p=a.useRef(r);u.current=c;let[m,h]=a.useState(()=>{let e=n._getWatch(r,l.current);return u.current?u.current(e):e}),g=a.useCallback(e=>{let t=F(r,n._names,e||n._formValues,!1,l.current);return u.current?u.current(t):t},[n._formValues,n._names,r]),_=a.useCallback(e=>{if(!o){let t=F(r,n._names,e||n._formValues,!1,l.current);if(u.current){let e=u.current(t);L(e,d.current)||(h(e),d.current=e)}else h(t)}},[n._formValues,n._names,o,r]);M(()=>((f.current!==n||!L(p.current,r))&&(f.current=n,p.current=r,_()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:e=>{_(e.values)}})),[n,s,r,_]),a.useEffect(()=>n._removeUnmounted());let v=f.current!==n,y=p.current,b=a.useMemo(()=>{if(o)return null;let e=!v&&!L(y,r);return v||e?g():null},[o,v,r,y,g]);return b===null?m:b}function te(e){let t=A(),{name:n,disabled:r,control:i=t,shouldUnregister:o,defaultValue:s,exact:c=!0}=e,l=!!f(i._names.array,n).length,u=ee({control:i,name:n,defaultValue:a.useMemo(()=>b(i._formValues,n,b(i._defaultValues,n,s)),[i,n,s]),exact:c}),p=N({control:i,name:n,exact:c}),m=a.useRef(e),g=a.useRef(i.register(n,{...e.rules,value:u,...x(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;let v=a.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!b(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!b(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!b(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!b(p.validatingFields,n)},error:{enumerable:!0,get:()=>b(p.errors,n)}}),[p,n]),y=a.useCallback(e=>g.current.onChange({target:{value:d(e),name:n},type:w.CHANGE}),[n]),T=a.useCallback(()=>g.current.onBlur({target:{value:b(i._formValues,n),name:n},type:w.BLUR}),[n,i._formValues]),E=a.useCallback(e=>{let t=b(i._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>S(e.focus)&&e.focus(),select:()=>S(e.select)&&e.select(),setCustomValidity:t=>S(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>S(e.reportValidity)&&e.reportValidity()})},[i._fields,n]),D=a.useMemo(()=>({name:n,value:u,...x(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:y,onBlur:T,ref:E}),[n,r,p.disabled,y,T,E,u]);return a.useEffect(()=>{let e=i._options.shouldUnregister||o;i.register(n,{...m.current.rules,...x(m.current.disabled)?{disabled:m.current.disabled}:{}});let t=(e,t)=>{let n=b(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=h(b(i._defaultValues,n,b(i._options.defaultValues,n,m.current.defaultValue)));C(i._defaultValues,n,e),_(b(i._formValues,n))&&C(i._formValues,n,e)}return!l&&i.register(n),()=>{(l?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,l,o]),a.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),a.useMemo(()=>({field:D,formState:p,fieldState:v}),[D,p,v])}var R=e=>e.render(te(e)),z=a.createContext(null);z.displayName=`HookFormContext`;var ne=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},B=e=>Array.isArray(e)?e:[e],re=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function ie(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&u(i)&&a){let e=ie(i,a);u(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var V=e=>u(e)&&!Object.keys(e).length,ae=e=>e.type===`file`,oe=e=>{if(!m)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},se=e=>e.type===`select-multiple`,ce=e=>e.type===`radio`,le=e=>ce(e)||o(e),ue=e=>oe(e)&&e.isConnected;function de(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let t in e)if(S(e[t]))return!0;return!1};function me(e){return Array.isArray(e)||u(e)&&!pe(e)}function he(e,t={}){for(let n in e){let r=e[n];me(r)?(t[n]=Array.isArray(r)?[]:{},he(r,t[n])):_(r)||(t[n]=!0)}return t}function ge(e){if(e!==!1){if(e===!0)return!0;if(Array.isArray(e)){let t=e.map(e=>ge(e));return t.some(e=>e!==void 0)?t:void 0}if(u(e)){let t={};for(let n in e){let r=ge(e[n]);_(r)||(t[n]=r)}return Object.keys(t).length?t:void 0}}}function U(e,t,n){n||=he(t);for(let r in e){let i=e[r];if(me(i))_(t)||I(n[r])?n[r]=he(i,Array.isArray(i)?[]:{}):U(i,c(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!L(i,e)}}return ge(n)||{}}var W={value:!1,isValid:!1},_e={value:!0,isValid:!0},ve=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!_(e[0].attributes.value)?_(e[0].value)||e[0].value===``?_e:{value:e[0].value,isValid:!0}:_e:W}return W},ye=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>_(e)?e:t?e===``?NaN:e&&+e:n&&P(e)?new Date(e):r?r(e):e,G={isValid:!1,value:null},be=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,G):G;function xe(e){let t=e.ref;return ae(t)?t.files:ce(t)?be(e.refs).value:se(t)?[...t.selectedOptions].map(({value:e})=>e):o(t)?ve(e.refs).value:ye(_(t.value)?e.ref.value:t.value,e)}var Se=(e,t,n,r)=>{let i={};for(let n of e){let e=b(t,n);e&&C(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},K=e=>e instanceof RegExp,Ce=e=>_(e)?e:K(e)?e.source:u(e)?K(e.value)?e.value.source:e.value:e,q=e=>({isOnSubmit:!e||e===T.onSubmit,isOnBlur:e===T.onBlur,isOnChange:e===T.onChange,isOnAll:e===T.all,isOnTouch:e===T.onTouched}),we=`AsyncFunction`,Te=e=>!!e&&!!e.validate&&!!(S(e.validate)&&e.validate.constructor.name===we||u(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===we)),Ee=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),De=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),J=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=b(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(J(a,t))break}else if(u(a)&&J(a,t))break}}};function Oe(e,t,n){let r=b(e,n);if(r||g(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=b(t,r),o=b(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var ke=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return V(a)||r&&Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||T.all))},Ae=(e,t,n)=>!e||!t||e===t||B(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),je=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Me=(e,t)=>!v(b(e,t)).length&&H(e,t),Ne=(e,t,n)=>{let r=B(b(e,n));return C(r,O,t[n]),C(e,n,r),e};function Pe(e,t,n=`validate`){if(P(e)||Array.isArray(e)&&e.every(P)||x(e)&&!e)return{type:n,message:P(e)?e:``,ref:t}}var Y=e=>u(e)&&!K(e)?e:{value:e,message:``},Fe=async(e,t,n,r,i,a)=>{let{ref:s,refs:l,required:d,maxLength:f,minLength:p,min:m,max:h,pattern:g,validate:v,name:y,valueAsNumber:C,mount:w}=e._f,T=b(n,y);if(!w||t.has(y))return{};let D=l?l[0]:s,O=e=>{i&&D.reportValidity&&(D.setCustomValidity(x(e)?``:e||``),D.reportValidity())},k={},A=ce(s),j=o(s),M=A||j,N=(C||ae(s))&&_(s.value)&&_(T)||oe(s)&&s.value===``||T===``||Array.isArray(T)&&!T.length||C&&typeof T==`number`&&isNaN(T),F=ne.bind(null,y,r,k),I=(e,t,n,r=E.maxLength,i=E.minLength)=>{let a=e?t:n;k[y]={type:e?r:i,message:a,ref:s,...F(e?r:i,a)}};if(a?!Array.isArray(T)||!T.length:d&&(!M&&(N||c(T))||x(T)&&!T||j&&!ve(l).isValid||A&&!be(l).isValid)){let{value:e,message:t}=P(d)?{value:!!d,message:d}:Y(d);if(e&&(k[y]={type:E.required,message:t,ref:D,...F(E.required,t)},!r))return O(t),k}if(!N&&(!c(m)||!c(h))){let e,t,n=Y(h),i=Y(m);if(!c(T)&&!isNaN(T)){let r=s.valueAsNumber||T&&+T;c(n.value)||(e=r>n.value),c(i.value)||(t=rnew Date(new Date().toDateString()+` `+e),o=s.type==`time`,c=s.type==`week`;P(n.value)&&T&&(e=o?a(T)>a(n.value):c?T>n.value:r>new Date(n.value)),P(i.value)&&T&&(t=o?a(T)+e.value,i=!c(t.value)&&T.length<+t.value;if((n||i)&&(I(n,e.message,t.message),!r))return O(k[y].message),k}if(g&&!N&&P(T)){let{value:e,message:t}=Y(g);if(K(e)&&!T.match(e)&&(k[y]={type:E.pattern,message:t,ref:s,...F(E.pattern,t)},!r))return O(t),k}if(v){if(S(v)){let e=Pe(await v(T,n),D);if(e&&(k[y]={...e,...F(E.validate,e.message)},!r))return O(e.message),k}else if(u(v)){let e={};for(let t in v){if(!V(e)&&!r)break;let i=Pe(await v[t](T,n),D,t);i&&(e={...i,...F(t,i.message)},O(i.message),r&&(k[y]=e))}if(!V(e)&&(k[y]={ref:D,...e},!r))return k}}return O(!0),k},Ie={mode:T.onSubmit,reValidateMode:T.onChange,shouldFocusError:!0},Le={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function Re(e={}){let t={...Ie,...e},n={...h(Le),isLoading:S(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(u(t.defaultValues)||u(t.values))&&h(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:h(i),l={action:!1,mount:!1,watch:!1,keepIsValid:!1},p={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},k,A=0,j={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},M={...j},N={...M},I={array:re(),state:re()},ee=t.criteriaMode===T.all,te=e=>t=>{clearTimeout(A),A=setTimeout(e,t)},R=async e=>{if(!l.keepIsValid&&!t.disabled&&(M.isValid||N.isValid||e)){let e;t.resolver?(e=V((await W()).errors),z()):e=await G({fields:r,onlyCheckValid:!0,eventType:w.VALID}),e!==n.isValid&&I.state.next({isValid:e})}},z=(e,r)=>{!t.disabled&&(M.isValidating||M.validatingFields||N.isValidating||N.validatingFields)&&((e||Array.from(p.mount)).forEach(e=>{e&&(r?C(n.validatingFields,e,r):H(n.validatingFields,e))}),I.state.next({validatingFields:n.validatingFields,isValidating:!V(n.validatingFields)}))},ne=()=>{n.dirtyFields=U(i,a)},ce=(e,i=[],o,s,c=!0,u=!0)=>{if(s&&o&&!t.disabled){if(l.action=!0,u&&Array.isArray(b(r,e))){let t=o(b(r,e),s.argA,s.argB);c&&C(r,e,t)}if(u&&Array.isArray(b(n.errors,e))){let t=o(b(n.errors,e),s.argA,s.argB);c&&C(n.errors,e,t),Me(n.errors,e)}if((M.touchedFields||N.touchedFields)&&u&&Array.isArray(b(n.touchedFields,e))){let t=o(b(n.touchedFields,e),s.argA,s.argB);c&&C(n.touchedFields,e,t)}(M.dirtyFields||N.dirtyFields)&&ne(),I.state.next({name:e,isDirty:K(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else C(a,e,i)},de=(e,t)=>{C(n.errors,e,t),I.state.next({errors:n.errors})},fe=e=>{n.errors=e,I.state.next({errors:n.errors,isValid:!1})},pe=e=>{let t=g(e)?[e]:y(e),n=a,r=i;for(let e=0;e{let c=b(r,e);if(c){if(pe(e))return;let r=_(b(a,e)),u=b(a,e,_(o)?b(i,e):o);_(u)||s&&s.defaultChecked||t?C(a,e,t?u:xe(c._f)):Y(e,u),l.mount&&!l.action&&(R(),r&&n.isDirty&&(M.isDirty||N.isDirty)&&(K()||(n.isDirty=!1,I.state.next({...n}))))}},he=(e,r,o,s,c)=>{let l=!1,u=!1,d={name:e};if(!t.disabled){if(!o||s){(M.isDirty||N.isDirty)&&(u=n.isDirty,n.isDirty=d.isDirty=K(),l=u!==d.isDirty);let t=L(b(i,e),r);u=!!b(n.dirtyFields,e),t===n.isDirty?t?H(n.dirtyFields,e):C(n.dirtyFields,e,!0):n.dirtyFields=U(i,a),d.dirtyFields=n.dirtyFields,l||=(M.dirtyFields||N.dirtyFields)&&u!==!t}if(o){let t=b(n.touchedFields,e);t||(C(n.touchedFields,e,o),d.touchedFields=n.touchedFields,l||=(M.touchedFields||N.touchedFields)&&t!==o)}l&&c&&I.state.next(d)}return l?d:{}},ge=(e,r,i,a)=>{let o=b(n.errors,e),s=(M.isValid||N.isValid)&&x(r)&&n.isValid!==r;if(t.delayError&&i?(k=te(()=>de(e,i)),k(t.delayError)):(clearTimeout(A),k=null,i?C(n.errors,e,i):H(n.errors,e)),(i?!L(o,i):o)||!V(a)||s){let t={...a,...s&&x(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},I.state.next(t)}},W=async e=>(z(e,!0),await t.resolver(a,t.context,Se(e||p.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),_e=async e=>{let{errors:t}=await W(e);if(z(e),e)for(let r of e){let e=b(t,r);e?p.array.has(r)&&u(e)?Ne(n.errors,{[r]:e},r):C(n.errors,r,e):H(n.errors,r)}else n.errors=t;return t},ve=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(u(i))for(let e in i){let t=i[e];t&&Q(`${D}.${e}`,{message:P(t.message)?t.message:``,type:t.type||E.validate})}else P(i)||!i?Q(D,{message:i||``,type:E.validate}):We(D);return i}return!0},G=async({fields:r,onlyCheckValid:i,name:o,eventType:s,context:c={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(c.runRootValidation=!0,!await ve({name:o,eventType:s})&&(c.valid=!1,i)))return c.valid;for(let o in r){let l=r[o];if(l){let{_f:r,...u}=l;if(r){let o=p.array.has(r.name),s=l._f&&Te(l._f),u=M.validatingFields||M.isValidating||N.validatingFields||N.isValidating;s&&u&&z([r.name],!0);let d=await Fe(l,p.disabled,a,ee,t.shouldUseNativeValidation&&!i,o);if(s&&u&&z([r.name]),d[r.name]&&(c.valid=!1,i)||(!i&&(b(d,r.name)?o?Ne(n.errors,d,r.name):C(n.errors,r.name,d[r.name]):H(n.errors,r.name)),e.shouldUseNativeValidation&&d[r.name]))break}!V(u)&&await G({context:c,onlyCheckValid:i,fields:u,name:o,eventType:s})}}return c.valid},be=()=>{for(let e of p.unMount){let t=b(r,e);t&&(t._f.refs?t._f.refs.every(e=>!ue(e)):!ue(t._f.ref))&&Je(e)}p.unMount=new Set},K=(e,n)=>!t.disabled&&(e&&n&&C(a,e,n),!L(He(),i)),we=(e,t,n)=>F(e,p,{...l.mount?a:_(t)?i:P(e)?{[e]:t}:t},n,t),Pe=e=>v(b(l.mount?a:i,e,t.shouldUnregister?b(i,e,[]):[])),Y=(e,t,n={})=>{let i=b(r,e),s=t;if(i){let n=i._f;n&&(!n.disabled&&C(a,e,ye(t,n)),s=oe(n.ref)&&c(t)?``:t,se(n.ref)?[...n.ref.options].forEach(e=>e.selected=s.includes(e.value)):n.refs?o(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(s)?e.checked=!!s.find(t=>t===e.value):e.checked=s===e.value||!!s)}):n.refs.forEach(e=>e.checked=e.value===s):ae(n.ref)?n.ref.value=``:(n.ref.value=s,n.ref.type||I.state.next({name:e,values:h(a)})))}(n.shouldDirty||n.shouldTouch)&&he(e,s,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&Z(e)},Re=(e,t,n)=>{for(let i in t){if(!t.hasOwnProperty(i))return;let a=t[i],o=e+`.`+i,c=b(r,o);(p.array.has(e)||u(a)||c&&!c._f)&&!s(a)?Re(o,a,n):Y(o,a,n)}},X=(e,t,i={})=>{let o=b(r,e),s=p.array.has(e),u=h(t),d=L(b(a,e),u);if(d||C(a,e,u),s)I.array.next({name:e,values:h(a)}),(M.isDirty||M.dirtyFields||N.isDirty||N.dirtyFields)&&i.shouldDirty&&(ne(),I.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:K(e,u)}));else{let t=Array.isArray(u)&&!u.length||V(u);!o||o._f||c(u)||t?Y(e,u,i):Re(e,u,i)}if(!d){let t=De(e,p),r=h(a);if(!s)for(let t of f(p.array,e))I.array.next({name:t,values:r});I.state.next({...t&&n,name:l.mount||t?e:void 0,values:r})}},ze=e=>{let t=S(e)?e(a):e;if(!L(a,t)){a={...a,...t};for(let e of p.mount)X(e,b(t,e));I.state.next({...n,values:a})}},Be=async i=>{l.mount=!0;let o=i.target,c=o.name,u=!0,f=b(r,c),m=e=>{u=Number.isNaN(e)||s(e)&&isNaN(e.getTime())||L(e,b(a,c,e))},g=q(t.mode),_=q(t.reValidateMode);if(f){let s,l,v=o.type?xe(f._f):d(i),y=i.type===w.BLUR||i.type===w.FOCUS_OUT,x=!Ee(f._f)&&!e.validate&&!t.resolver&&!b(n.errors,c)&&!f._f.deps||je(y,b(n.touchedFields,c),n.isSubmitted,_,g),S=De(c,p,y);C(a,c,v),y?(!o||!o.readOnly)&&(f._f.onBlur&&f._f.onBlur(i),k&&k(0)):f._f.onChange&&f._f.onChange(i);let T=he(c,v,y),E=!V(T)||S;if(!y&&I.state.next({name:c,type:i.type,values:h(a)}),x)return(M.isValid||N.isValid)&&(t.mode===`onBlur`?y&&R():y||R()),E&&I.state.next({name:c,...S?{}:T});if(!t.resolver&&e.validate&&await ve({name:c,eventType:i.type}),!y&&S&&I.state.next({...n}),t.resolver){let{errors:e}=await W([c]);if(z([c]),m(v),u){let t=Oe(n.errors,r,c),i=Oe(e,r,t.name||c);s=i.error,c=i.name,l=V(e)}}else z([c],!0),s=(await Fe(f,p.disabled,a,ee,t.shouldUseNativeValidation))[c],z([c]),m(v),u&&(s?l=!1:(M.isValid||N.isValid)&&(l=await G({fields:r,onlyCheckValid:!0,name:c,eventType:i.type})));u&&(f._f.deps&&(!Array.isArray(f._f.deps)||f._f.deps.length>0)&&Z(f._f.deps),ge(c,l,s,T))}},Ve=(e,t)=>{if(b(n.errors,t)&&e.focus)return e.focus(),1},Z=async(e,i={})=>{let a,o,s=B(e);if(t.resolver){let t=await _e(_(e)?e:s);a=V(t),o=e?!s.some(e=>b(t,e)):a}else e?(o=(await Promise.all(s.map(async e=>{let t=b(r,e);return await G({fields:t&&t._f?{[e]:t}:t,eventType:w.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&R()):o=a=await G({fields:r,name:e,eventType:w.TRIGGER});return I.state.next({...!P(e)||(M.isValid||N.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&J(r,Ve,e?s:p.mount),o},He=(e,t)=>{let r={...l.mount?a:i};return t&&(r=ie(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),_(e)?r:P(e)?b(r,e):e.map(e=>b(r,e))},Ue=(e,t)=>({invalid:!!b((t||n).errors,e),isDirty:!!b((t||n).dirtyFields,e),error:b((t||n).errors,e),isValidating:!!b(n.validatingFields,e),isTouched:!!b((t||n).touchedFields,e)}),We=e=>{let t=e?B(e):void 0;t?.forEach(e=>H(n.errors,e)),t?t.forEach(e=>{I.state.next({name:e,errors:n.errors})}):I.state.next({errors:{}})},Q=(e,t,i)=>{let a=(b(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=b(n.errors,e)||{};C(n.errors,e,{...l,...t,ref:a}),I.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},Ge=(e,t)=>S(e)?I.state.subscribe({next:n=>`values`in n&&e(n.values||we(void 0,t),n)}):we(e,t,!0),Ke=e=>I.state.subscribe({next:t=>{if(Ae(e.name,t.name,e.exact)&&ke(t,e.formState||M,rt,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}}).unsubscribe,qe=e=>(l.mount=!0,N={...N,...e.formState},Ke({...e,formState:{...j,...e.formState}})),Je=(e,o={})=>{for(let s of e?B(e):p.mount)p.mount.delete(s),p.array.delete(s),o.keepValue||(H(r,s),H(a,s)),!o.keepError&&H(n.errors,s),!o.keepDirty&&H(n.dirtyFields,s),!o.keepTouched&&H(n.touchedFields,s),!o.keepIsValidating&&H(n.validatingFields,s),!t.shouldUnregister&&!o.keepDefaultValue&&H(i,s);I.state.next({values:h(a)}),I.state.next({...n,...o.keepDirty?{isDirty:K()}:{}}),!o.keepIsValid&&R()},Ye=({disabled:e,name:t})=>{if(x(e)&&l.mount||e||p.disabled.has(t)){let n=p.disabled.has(t)!==!!e;e?p.disabled.add(t):p.disabled.delete(t),n&&l.mount&&!l.action&&R()}},$=(e,n={})=>{let a=b(r,e),o=x(n.disabled)||x(t.disabled),s=!p.registerName.has(e)&&a&&a._f&&!a._f.mount;return C(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),p.mount.add(e),a&&!s?Ye({disabled:x(n.disabled)?n.disabled:t.disabled,name:e}):me(e,!0,n.value),{...o?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Ce(n.min),max:Ce(n.max),minLength:Ce(n.minLength),maxLength:Ce(n.maxLength),pattern:Ce(n.pattern)}:{},name:e,onChange:Be,onBlur:Be,ref:o=>{if(o){p.registerName.add(e),$(e,n),p.registerName.delete(e),a=b(r,e);let t=_(o.value)&&o.querySelectorAll&&o.querySelectorAll(`input,select,textarea`)[0]||o,s=le(t),c=a._f.refs||[];if(s?c.find(e=>e===t):t===a._f.ref)return;C(r,e,{_f:{...a._f,...s?{refs:[...c.filter(ue),t,...Array.isArray(b(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),me(e,!1,void 0,t)}else a=b(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(f(p.array,e).length&&l.action)&&p.unMount.add(e)}}},Xe=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&J(r,Ve,p.mount),Ze=e=>{x(e)&&(I.state.next({disabled:e}),J(r,(t,n)=>{let i=b(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},Qe=(e,i)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=h(a);if(I.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await W();z(),n.errors=e,c=h(t)}else await G({fields:r,eventType:w.SUBMIT});if(p.disabled.size)for(let e of p.disabled)H(c,e);if(H(n.errors,O),V(n.errors)){I.state.next({errors:{}});try{await e(c,o)}catch(e){s=e}}else i&&await i({...n.errors},o),Xe(),setTimeout(Xe);if(I.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:V(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},$e=(e,t={})=>{b(r,e)&&(_(t.defaultValue)?X(e,h(b(i,e))):(X(e,t.defaultValue),C(i,e,h(t.defaultValue))),t.keepTouched||H(n.touchedFields,e),t.keepDirty||(H(n.dirtyFields,e),n.isDirty=t.defaultValue?K(e,h(b(i,e))):K()),t.keepError||(H(n.errors,e),M.isValid&&R()),I.state.next({...n}))},et=(e,o={})=>{let s=e?h(e):i,c=h(s),u=V(e),d=u?i:c;if(o.keepDefaultValues||(i=s),!o.keepValues){if(o.keepDirtyValues){let e=new Set([...p.mount,...Object.keys(U(i,a))]);for(let t of Array.from(e)){let e=b(n.dirtyFields,t),r=b(a,t),i=b(d,t);e&&!_(r)?C(d,t,r):!e&&!_(i)&&X(t,i)}}else{if(m&&_(e))for(let e of p.mount){let t=b(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(oe(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(o.keepFieldsRef)for(let e of p.mount)X(e,b(d,e));else r={}}a=t.shouldUnregister?o.keepDefaultValues?h(i):{}:h(d),I.array.next({values:{...d}}),I.state.next({values:{...d}})}p={mount:o.keepDirtyValues?p.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},l.mount=!M.isValid||!!o.keepIsValid||!!o.keepDirtyValues||!t.shouldUnregister&&!V(d),l.watch=!!t.shouldUnregister,l.keepIsValid=!!o.keepIsValid,l.action=!1,o.keepErrors||(n.errors={}),I.state.next({submitCount:o.keepSubmitCount?n.submitCount:0,isDirty:u?!1:o.keepDirty?n.isDirty:!!(o.keepDefaultValues&&!L(e,i)),isSubmitted:o.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:u?{}:o.keepDirtyValues?o.keepDefaultValues&&a?U(i,a):n.dirtyFields:o.keepDefaultValues&&e?U(i,e):o.keepDirty?n.dirtyFields:{},touchedFields:o.keepTouched?n.touchedFields:{},errors:o.keepErrors?n.errors:{},isSubmitSuccessful:o.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},tt=(e,n)=>et(S(e)?e(a):e,{...t.resetOptions,...n}),nt=(e,t={})=>{let n=b(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&S(e.select)&&e.select()})}},rt=e=>{n={...n,...e}},it={control:{register:$,unregister:Je,getFieldState:Ue,handleSubmit:Qe,setError:Q,_subscribe:Ke,_runSchema:W,_updateIsValidating:z,_focusError:Xe,_getWatch:we,_getDirty:K,_setValid:R,_setFieldArray:ce,_setDisabledField:Ye,_setErrors:fe,_getFieldArray:Pe,_reset:et,_resetDefaultValues:()=>S(t.defaultValues)&&t.defaultValues().then(e=>{tt(e,t.resetOptions),I.state.next({isLoading:!1})}),_removeUnmounted:be,_disableForm:Ze,_subjects:I,_proxyFormState:M,get _fields(){return r},get _formValues(){return a},get _state(){return l},set _state(e){l=e},get _defaultValues(){return i},get _names(){return p},set _names(e){p=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:qe,trigger:Z,register:$,handleSubmit:Qe,watch:Ge,setValue:X,setValues:ze,getValues:He,reset:tt,resetField:$e,clearErrors:We,unregister:Je,setError:Q,setFocus:nt,getFieldState:Ue};return{...it,formControl:it}}var X=()=>{if(typeof crypto<`u`&&crypto.randomUUID)return crypto.randomUUID();let e=typeof performance>`u`?Date.now():performance.now()*1e3;return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,t=>{let n=(Math.random()*16+e)%16|0;return(t==`x`?n:n&3|8).toString(16)})},ze=(e,t,n={})=>n.shouldFocus||_(n.shouldFocus)?n.focusName||`${e}.${_(n.focusIndex)?t:n.focusIndex}.`:``,Be=(e,t)=>[...e,...B(t)],Ve=e=>Array.isArray(e)?e.map(()=>void 0):void 0;function Z(e,t,n){return[...e.slice(0,t),...B(n),...e.slice(t)]}var He=(e,t,n)=>Array.isArray(e)?(_(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],Ue=(e,t)=>[...B(t),...B(e)];function We(e,t){let n=0,r=[...e];for(let e of t)r.splice(e-n,1),n++;return v(r).length?r:[]}var Q=(e,t)=>_(t)?[]:We(e,B(t).sort((e,t)=>e-t)),Ge=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},Ke=(e,t,n)=>(e[t]=n,e);function qe(e){let t=A(),{control:n=t,name:r,keyName:i=`id`,shouldUnregister:o,rules:s}=e,[c,l]=a.useState(n._getFieldArray(r)),u=a.useRef(n._getFieldArray(r).map(X)),d=a.useRef(!1);n._names.array.add(r),a.useMemo(()=>s&&c.length>=0&&n.register(r,s),[n,r,c.length,s]),M(()=>n._subjects.array.subscribe({next:({values:e,name:t})=>{if(t===r||!t){let t=b(e,r);Array.isArray(t)&&(l(t),u.current=t.map(X))}}}).unsubscribe,[n,r]);let f=a.useCallback(e=>{d.current=!0,n._setFieldArray(r,e)},[n,r]);return a.useEffect(()=>{n._state.action=!1,De(r,n._names)&&n._subjects.state.next({...n._formState});let e=q(n._options.mode);if(d.current&&(!e.isOnSubmit||n._formState.isSubmitted)&&!q(n._options.reValidateMode).isOnSubmit&&!e.isOnBlur)if(n._options.resolver)n._runSchema([r]).then(e=>{n._updateIsValidating([r]);let t=b(e.errors,r),i=b(n._formState.errors,r);(i?!t&&i.type||t&&(i.type!==t.type||i.message!==t.message):t&&t.type)&&(t?C(n._formState.errors,r,t):H(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{let e=b(n._fields,r);e&&e._f&&!(q(n._options.reValidateMode).isOnSubmit&&q(n._options.mode).isOnSubmit)&&Fe(e,n._names.disabled,n._formValues,n._options.criteriaMode===T.all,n._options.shouldUseNativeValidation,!0).then(e=>!V(e)&&n._subjects.state.next({errors:Ne(n._formState.errors,e,r)}))}n._subjects.state.next({name:r,values:h(n._formValues)}),n._names.focus&&J(n._fields,(e,t)=>{if(n._names.focus&&t.startsWith(n._names.focus)&&e.focus)return e.focus(),1}),n._names.focus=``,n._setValid(),d.current=!1},[c,r,n]),a.useEffect(()=>(!b(n._formValues,r)&&n._setFieldArray(r),()=>{let e=!(n._options.shouldUnregister||o);d.current&&e&&n._subjects.state.next({name:r,values:h(n._formValues)}),e?((e,t)=>{let r=b(n._fields,e);r&&r._f&&(r._f.mount=t)})(r,!1):n.unregister(r)}),[r,n,i,o]),{swap:a.useCallback((e,t)=>{let i=n._getFieldArray(r);Ge(i,e,t),Ge(u.current,e,t),f(i),l(i),n._setFieldArray(r,i,Ge,{argA:e,argB:t},!1)},[f,r,n]),move:a.useCallback((e,t)=>{let i=n._getFieldArray(r);He(i,e,t),He(u.current,e,t),f(i),l(i),n._setFieldArray(r,i,He,{argA:e,argB:t},!1)},[f,r,n]),prepend:a.useCallback((e,t)=>{let i=B(h(e)),a=Ue(n._getFieldArray(r),i);n._names.focus=ze(r,0,t),u.current=Ue(u.current,i.map(X)),f(a),l(a),n._setFieldArray(r,a,Ue,{argA:Ve(e)})},[f,r,n]),append:a.useCallback((e,t)=>{let i=B(h(e)),a=Be(n._getFieldArray(r),i);n._names.focus=ze(r,a.length-1,t),u.current=Be(u.current,i.map(X)),f(a),l(a),n._setFieldArray(r,a,Be,{argA:Ve(e)})},[f,r,n]),remove:a.useCallback(e=>{let t=Q(n._getFieldArray(r),e);u.current=Q(u.current,e),f(t),l(t),!Array.isArray(b(n._fields,r))&&C(n._fields,r,void 0),n._setFieldArray(r,t,Q,{argA:e})},[f,r,n]),insert:a.useCallback((e,t,i)=>{let a=B(h(t)),o=Z(n._getFieldArray(r),e,a);n._names.focus=ze(r,e,i),u.current=Z(u.current,e,a.map(X)),f(o),l(o),n._setFieldArray(r,o,Z,{argA:e,argB:Ve(t)})},[f,r,n]),update:a.useCallback((e,t)=>{let i=h(t),a=Ke(n._getFieldArray(r),e,i);u.current=[...a].map((t,n)=>!t||n===e?X():u.current[n]),f(a),l([...a]),n._setFieldArray(r,a,Ke,{argA:e,argB:i},!0,!1)},[f,r,n]),replace:a.useCallback(e=>{let t=B(h(e));u.current=t.map(X),f([...t]),l([...t]),n._setFieldArray(r,[...t],e=>e,{},!0,!1)},[f,r,n]),fields:a.useMemo(()=>c.map((e,t)=>({...e,[i]:u.current[t]||X()})),[c,i])}}function Je(e={}){let t=a.useRef(void 0),n=a.useRef(void 0),[r,i]=a.useState(()=>({...h(Le),isLoading:S(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:S(e.defaultValues)?void 0:e.defaultValues}));if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!S(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...i}=Re(e);t.current={...i,formState:r}}let o=t.current.control;return o._options=e,M(()=>{let e=o._subscribe({formState:o._proxyFormState,callback:()=>i({...o._formState,defaultValues:o._defaultValues}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),o._formState.isReady=!0,e},[o]),a.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),a.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),a.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),a.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),a.useEffect(()=>{if(o._proxyFormState.isDirty){let e=o._getDirty();e!==r.isDirty&&o._subjects.state.next({isDirty:e})}},[o,r.isDirty]),a.useEffect(()=>{e.values&&!L(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),o._options.resetOptions?.keepIsValid||o._setValid(),n.current=e.values,i(e=>({...e}))):o._resetDefaultValues()},[o,e.values]),a.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=a.useMemo(()=>j(r,o),[o,r]),t.current}var Ye=(e,t,n)=>{if(e&&`reportValidity`in e){let r=b(n,t);e.setCustomValidity(r&&r.message||``),e.reportValidity()}},$=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&`reportValidity`in r.ref?Ye(r.ref,n,e):r&&r.refs&&r.refs.forEach(t=>Ye(t,n,e))}},Xe=(e,t)=>{t.shouldUseNativeValidation&&$(e,t);let n={};for(let r in e){let i=b(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(Ze(t.names||Object.keys(e),r)){let e=Object.assign({},b(n,r));C(e,`root`,a),C(n,r,e)}else C(n,r,a)}return n},Ze=(e,t)=>{let n=Qe(t);return e.some(e=>Qe(e).match(`^${n}\\.\\d+`))};function Qe(e){return e.replace(/\]|\[/g,``)}function $e(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}function et(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(`unionErrors`in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(`unionErrors`in r&&r.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=ne(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function tt(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(r.code===`invalid_union`&&r.errors.length>0){var s=r.errors[0][0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(r.code===`invalid_union`&&r.errors.forEach(function(t){return t.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=ne(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function nt(e,i,a){if(a===void 0&&(a={}),function(e){return`_def`in e&&typeof e._def==`object`&&`typeName`in e._def}(e))return function(t,n,r){try{return Promise.resolve($e(function(){return Promise.resolve(e[a.mode===`sync`?`parse`:`parseAsync`](t,i)).then(function(e){return r.shouldUseNativeValidation&&$({},r),{errors:{},values:a.raw?Object.assign({},t):e}})},function(e){if(function(e){return Array.isArray(e?.issues)}(e))return{values:{},errors:Xe(et(e.errors,!r.shouldUseNativeValidation&&r.criteriaMode===`all`),r)};throw e}))}catch(e){return Promise.reject(e)}};if(function(e){return`_zod`in e&&typeof e._zod==`object`}(e))return function(o,s,c){try{return Promise.resolve($e(function(){return Promise.resolve((a.mode===`sync`?n:t)(e,o,i)).then(function(e){return c.shouldUseNativeValidation&&$({},c),{errors:{},values:a.raw?Object.assign({},o):e}})},function(e){if(function(e){return e instanceof r}(e))return{values:{},errors:Xe(tt(e.issues,!c.shouldUseNativeValidation&&c.criteriaMode===`all`),c)};throw e}))}catch(e){return Promise.reject(e)}};throw Error(`Invalid input: not a Zod schema`)}export{ee as a,Je as i,R as n,qe as r,nt as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/src/components/elbv2/subnets-editor.test.tsx b/spinifex/services/spinifexui/frontend/src/components/elbv2/subnets-editor.test.tsx new file mode 100644 index 000000000..e57c3ca27 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/src/components/elbv2/subnets-editor.test.tsx @@ -0,0 +1,139 @@ +import type { Subnet } from "@aws-sdk/client-ec2" +import { render, screen } from "@testing-library/react" +import userEvent from "@testing-library/user-event" +import { describe, expect, it, vi } from "vitest" + +import { SubnetsEditor } from "./subnets-editor" + +const AVAILABLE: Subnet[] = [ + { + SubnetId: "subnet-1", + VpcId: "vpc-a", + AvailabilityZone: "az-1", + CidrBlock: "10.0.1.0/24", + }, + { + SubnetId: "subnet-2", + VpcId: "vpc-a", + AvailabilityZone: "az-2", + CidrBlock: "10.0.2.0/24", + }, + { + SubnetId: "subnet-3", + VpcId: "vpc-a", + AvailabilityZone: "az-3", + CidrBlock: "10.0.3.0/24", + }, +] + +describe("SubnetsEditor", () => { + it("always warns about the relaunch data-plane interruption", () => { + render( + {}} + />, + ) + expect(screen.getByRole("note")).toHaveTextContent(/relaunch/i) + }) + + it("seeds selection from current and disables Save with no changes", () => { + render( + {}} + />, + ) + + expect(screen.getByLabelText("Subnet subnet-1")).toBeChecked() + expect(screen.getByLabelText("Subnet subnet-2")).not.toBeChecked() + expect(screen.getByText("No changes")).toBeInTheDocument() + expect(screen.getByRole("button", { name: /save changes/i })).toBeDisabled() + }) + + it("submits the new selection set", async () => { + const user = userEvent.setup() + const onSubmit = vi.fn() + render( + , + ) + + await user.click(screen.getByLabelText("Subnet subnet-2")) + await user.click(screen.getByRole("button", { name: /save changes/i })) + + expect(onSubmit).toHaveBeenCalledWith(["subnet-1", "subnet-2"]) + }) + + it("blocks submit when no subnet is selected", async () => { + const user = userEvent.setup() + const onSubmit = vi.fn() + render( + , + ) + + await user.click(screen.getByLabelText("Subnet subnet-1")) + + expect(screen.getByText(/at least one subnet/i)).toBeInTheDocument() + expect(screen.getByRole("button", { name: /save changes/i })).toBeDisabled() + expect(onSubmit).not.toHaveBeenCalled() + }) + + it("Reset reverts selection back to initial", async () => { + const user = userEvent.setup() + render( + {}} + />, + ) + + await user.click(screen.getByLabelText("Subnet subnet-2")) + expect(screen.getByText("Unsaved changes")).toBeInTheDocument() + + await user.click(screen.getByRole("button", { name: /reset/i })) + + expect(screen.getByLabelText("Subnet subnet-2")).not.toBeChecked() + expect(screen.getByText("No changes")).toBeInTheDocument() + }) + + it("shows an empty state when the VPC has no subnets", () => { + render( + {}} + />, + ) + expect(screen.getByText("No subnets in this VPC.")).toBeInTheDocument() + }) + + it("renders an error banner when the mutation fails", () => { + render( + {}} + />, + ) + expect(screen.getByRole("alert")).toHaveTextContent("boom") + }) +}) diff --git a/spinifex/services/spinifexui/frontend/src/components/elbv2/subnets-editor.tsx b/spinifex/services/spinifexui/frontend/src/components/elbv2/subnets-editor.tsx new file mode 100644 index 000000000..93ba2c6bf --- /dev/null +++ b/spinifex/services/spinifexui/frontend/src/components/elbv2/subnets-editor.tsx @@ -0,0 +1,141 @@ +import type { Subnet } from "@aws-sdk/client-ec2" +import { useMemo, useState } from "react" + +import { Button } from "@/components/ui/button" +import { getNameTag } from "@/lib/utils" + +interface SubnetsEditorProps { + // Subnets in the load balancer's VPC, selectable for attachment. + available: Subnet[] + // Currently attached subnet IDs. + current: string[] + onSubmit: (subnetIds: string[]) => void + isPending: boolean + error?: Error | null + isSuccess?: boolean +} + +function sameSet(a: string[], b: string[]): boolean { + if (a.length !== b.length) { + return false + } + const setB = new Set(b) + return a.every((id) => setB.has(id)) +} + +function subnetLabel(subnet: Subnet): string { + const name = getNameTag(subnet.Tags) + const az = subnet.AvailabilityZone ? ` · ${subnet.AvailabilityZone}` : "" + const cidr = subnet.CidrBlock ? ` (${subnet.CidrBlock})` : "" + return `${subnet.SubnetId}${name ? ` — ${name}` : ""}${cidr}${az}` +} + +export function SubnetsEditor({ + available, + current, + onSubmit, + isPending, + error, + isSuccess, +}: SubnetsEditorProps) { + const initial = useMemo(() => [...current], [current]) + const [selected, setSelected] = useState(initial) + + const toggle = (id: string) => { + setSelected((prev) => + prev.includes(id) ? prev.filter((x) => x !== id) : [...prev, id], + ) + } + const handleReset = () => setSelected(initial) + + const dirty = !sameSet(selected, initial) + // A load balancer must front at least one subnet. + const isEmpty = selected.length === 0 + + return ( +
{ + e.preventDefault() + if (!dirty || isEmpty) { + return + } + onSubmit(selected) + }} + > +
+ Applying a subnet change re-homes the load balancer by relaunching its + underlying system VM. Expect a brief data-plane interruption while it + restarts. +
+ {error && ( +
+ {error.message || "Failed to update subnets"} +
+ )} + {isSuccess && !dirty && ( +
+ Subnets updated. +
+ )} +
+
+ {available.length === 0 ? ( +

+ No subnets in this VPC. +

+ ) : ( + available.map((subnet) => ( + + )) + )} + {isEmpty && ( +

+ At least one subnet is required. +

+ )} +
+
+ + {dirty ? "Unsaved changes" : "No changes"} + + + +
+
+
+ ) +} diff --git a/spinifex/services/spinifexui/frontend/src/mutations/elbv2.ts b/spinifex/services/spinifexui/frontend/src/mutations/elbv2.ts index 14d3e770b..106c184d1 100644 --- a/spinifex/services/spinifexui/frontend/src/mutations/elbv2.ts +++ b/spinifex/services/spinifexui/frontend/src/mutations/elbv2.ts @@ -22,6 +22,7 @@ import { RemoveTagsCommand, SetRulePrioritiesCommand, SetSecurityGroupsCommand, + SetSubnetsCommand, } from "@aws-sdk/client-elastic-load-balancing-v2" import { useMutation, useQueryClient } from "@tanstack/react-query" @@ -149,6 +150,32 @@ export function useSetSecurityGroups() { }) } +export interface SetSubnetsParams { + loadBalancerArn: string + subnetIds: string[] +} + +// useSetSubnets replaces the subnets a load balancer fronts (SetSubnets). +// Server-side this re-homes the LB by relaunching its system VM, so the LB +// query is invalidated to reflect the new availability zones once it settles. +export function useSetSubnets() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: async (params: SetSubnetsParams) => { + const command = new SetSubnetsCommand({ + LoadBalancerArn: params.loadBalancerArn, + Subnets: params.subnetIds, + }) + return await getElbv2Client().send(command) + }, + onSuccess: (_data, variables) => { + void queryClient.invalidateQueries({ + queryKey: ["elbv2", "loadBalancers", variables.loadBalancerArn], + }) + }, + }) +} + export function useCreateTargetGroup() { const queryClient = useQueryClient() return useMutation({ diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(load-balancers)/-components/load-balancer-detail-page.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(load-balancers)/-components/load-balancer-detail-page.tsx index b20481156..42db14efa 100644 --- a/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(load-balancers)/-components/load-balancer-detail-page.tsx +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(load-balancers)/-components/load-balancer-detail-page.tsx @@ -14,6 +14,7 @@ import { } from "@/components/elbv2/attributes-editor" import { ListenersTab } from "@/components/elbv2/listeners-tab" import { SecurityGroupsEditor } from "@/components/elbv2/security-groups-editor" +import { SubnetsEditor } from "@/components/elbv2/subnets-editor" import { TagsEditor } from "@/components/elbv2/tags-editor" import { ErrorBanner } from "@/components/error-banner" import { PageHeading } from "@/components/page-heading" @@ -25,6 +26,7 @@ import { useDeleteLoadBalancer, useModifyLoadBalancerAttributes, useSetSecurityGroups, + useSetSubnets, useUpdateTags, } from "@/mutations/elbv2" import { @@ -55,6 +57,7 @@ export function LoadBalancerDetailPage({ arn }: Props) { const modifyAttrsMutation = useModifyLoadBalancerAttributes() const updateTagsMutation = useUpdateTags() const setSecurityGroupsMutation = useSetSecurityGroups() + const setSubnetsMutation = useSetSubnets() const [showDeleteDialog, setShowDeleteDialog] = useState(false) const lb = lbData.LoadBalancers?.[0] @@ -99,6 +102,10 @@ export function LoadBalancerDetailPage({ arn }: Props) { const vpcSecurityGroups = (sgsData.SecurityGroups ?? []).filter( (sg) => sg.VpcId === lb.VpcId, ) + const vpcSubnets = subnets.filter((s) => s.VpcId === lb.VpcId) + const currentSubnets = (lb.AvailabilityZones ?? []) + .map((az) => az.SubnetId) + .filter((id): id is string => id !== undefined) // NLBs carry no security groups, so the editor tab is hidden for them. const isNlb = lb.Type === "network" @@ -138,6 +145,7 @@ export function LoadBalancerDetailPage({ arn }: Props) { Overview Listeners + Subnets {!isNlb && ( Security groups )} @@ -203,6 +211,22 @@ export function LoadBalancerDetailPage({ arn }: Props) { /> + + + setSubnetsMutation.mutate({ + loadBalancerArn: arn, + subnetIds, + }) + } + /> + + {!isNlb && (