diff --git a/ododevapispec.yaml b/ododevapispec.yaml index ba0fbdf302..2c2ad2c516 100644 --- a/ododevapispec.yaml +++ b/ododevapispec.yaml @@ -649,6 +649,126 @@ paths: example: message: "Error deleting the container" + patch: + tags: + - devstate + description: Update a container + parameters: + - name: containerName + in: path + description: Container name to update + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + required: + - name + - image + properties: + image: + description: Container image + type: string + command: + description: Entrypoint of the container + type: array + items: { + type: string + } + args: + description: Args passed to the Container entrypoint + type: array + items: { + type: string + } + env: + description: Environment variables to define + type: array + items: + $ref: '#/components/schemas/Env' + memReq: + description: Requested memory for the deployed container + type: string + memLimit: + description: Memory limit for the deployed container + type: string + cpuReq: + description: Requested CPU for the deployed container + type: string + cpuLimit: + description: CPU limit for the deployed container + type: string + volumeMounts: + description: Volume to mount into the container filesystem + type: array + items: + $ref: '#/components/schemas/VolumeMount' + configureSources: + description: If false, mountSources and sourceMapping values are not considered + type: boolean + mountSources: + description: If true, sources are mounted into container's filesystem + type: boolean + sourceMapping: + description: Specific directory on which to mount sources + type: string + annotation: + description: Annotations added to the resources created for this container + $ref: '#/components/schemas/Annotation' + endpoints: + description: Endpoints exposed by the container + type: array + items: + $ref: '#/components/schemas/Endpoint' + + responses: + '200': + description: container was successfully updated + content: + application/json: + schema: + $ref: '#/components/schemas/DevfileContent' + example: + { + "content": "schemaVersion: 2.2.0\n", + "commands": [], + "containers": [], + "images": [], + "resources": [], + "events": { + "preStart": null, + "postStart": null, + "preStop": null, + "postStop": null + }, + "metadata": { + "name": "", + "version": "", + "displayName": "", + description": "", + "tags": "", + "architectures": "", + "icon": "", + "globalMemoryLimit": "", + "projectType": "", + "language": "", + "website": "", + "provider": "", + "supportUrl": "" + } + } + '500': + description: Error updating the container + content: + application/json: + schema: + $ref: '#/components/schemas/GeneralError' + example: + message: "Error updating the container" + /devstate/image: post: tags: diff --git a/pkg/apiserver-gen/.openapi-generator/FILES b/pkg/apiserver-gen/.openapi-generator/FILES index cebe475495..f53bcd1e74 100644 --- a/pkg/apiserver-gen/.openapi-generator/FILES +++ b/pkg/apiserver-gen/.openapi-generator/FILES @@ -16,6 +16,7 @@ go/model__devstate_command__command_name__move_post_request.go go/model__devstate_command__command_name__set_default_post_request.go go/model__devstate_composite_command__command_name__patch_request.go go/model__devstate_composite_command_post_request.go +go/model__devstate_container__container_name__patch_request.go go/model__devstate_container_post_request.go go/model__devstate_events_put_request.go go/model__devstate_exec_command__command_name__patch_request.go diff --git a/pkg/apiserver-gen/go/api.go b/pkg/apiserver-gen/go/api.go index 4323c48741..aa74917b85 100644 --- a/pkg/apiserver-gen/go/api.go +++ b/pkg/apiserver-gen/go/api.go @@ -41,6 +41,7 @@ type DevstateApiRouter interface { DevstateCompositeCommandCommandNamePatch(http.ResponseWriter, *http.Request) DevstateCompositeCommandPost(http.ResponseWriter, *http.Request) DevstateContainerContainerNameDelete(http.ResponseWriter, *http.Request) + DevstateContainerContainerNamePatch(http.ResponseWriter, *http.Request) DevstateContainerPost(http.ResponseWriter, *http.Request) DevstateDevfileDelete(http.ResponseWriter, *http.Request) DevstateDevfileGet(http.ResponseWriter, *http.Request) @@ -90,6 +91,7 @@ type DevstateApiServicer interface { DevstateCompositeCommandCommandNamePatch(context.Context, string, DevstateCompositeCommandCommandNamePatchRequest) (ImplResponse, error) DevstateCompositeCommandPost(context.Context, DevstateCompositeCommandPostRequest) (ImplResponse, error) DevstateContainerContainerNameDelete(context.Context, string) (ImplResponse, error) + DevstateContainerContainerNamePatch(context.Context, string, DevstateContainerContainerNamePatchRequest) (ImplResponse, error) DevstateContainerPost(context.Context, DevstateContainerPostRequest) (ImplResponse, error) DevstateDevfileDelete(context.Context) (ImplResponse, error) DevstateDevfileGet(context.Context) (ImplResponse, error) diff --git a/pkg/apiserver-gen/go/api_devstate.go b/pkg/apiserver-gen/go/api_devstate.go index d54e4b5371..9f81e93b47 100644 --- a/pkg/apiserver-gen/go/api_devstate.go +++ b/pkg/apiserver-gen/go/api_devstate.go @@ -110,6 +110,12 @@ func (c *DevstateApiController) Routes() Routes { "/api/v1/devstate/container/{containerName}", c.DevstateContainerContainerNameDelete, }, + { + "DevstateContainerContainerNamePatch", + strings.ToUpper("Patch"), + "/api/v1/devstate/container/{containerName}", + c.DevstateContainerContainerNamePatch, + }, { "DevstateContainerPost", strings.ToUpper("Post"), @@ -431,6 +437,32 @@ func (c *DevstateApiController) DevstateContainerContainerNameDelete(w http.Resp } +// DevstateContainerContainerNamePatch - +func (c *DevstateApiController) DevstateContainerContainerNamePatch(w http.ResponseWriter, r *http.Request) { + params := mux.Vars(r) + containerNameParam := params["containerName"] + devstateContainerContainerNamePatchRequestParam := DevstateContainerContainerNamePatchRequest{} + d := json.NewDecoder(r.Body) + d.DisallowUnknownFields() + if err := d.Decode(&devstateContainerContainerNamePatchRequestParam); err != nil { + c.errorHandler(w, r, &ParsingError{Err: err}, nil) + return + } + if err := AssertDevstateContainerContainerNamePatchRequestRequired(devstateContainerContainerNamePatchRequestParam); err != nil { + c.errorHandler(w, r, err, nil) + return + } + result, err := c.service.DevstateContainerContainerNamePatch(r.Context(), containerNameParam, devstateContainerContainerNamePatchRequestParam) + // If an error occurred, encode the error with the status code + if err != nil { + c.errorHandler(w, r, err, &result) + return + } + // If no error, encode the body and the result code + EncodeJSONResponse(result.Body, &result.Code, w) + +} + // DevstateContainerPost - func (c *DevstateApiController) DevstateContainerPost(w http.ResponseWriter, r *http.Request) { devstateContainerPostRequestParam := DevstateContainerPostRequest{} diff --git a/pkg/apiserver-gen/go/model__devstate_container__container_name__patch_request.go b/pkg/apiserver-gen/go/model__devstate_container__container_name__patch_request.go new file mode 100644 index 0000000000..027e90648d --- /dev/null +++ b/pkg/apiserver-gen/go/model__devstate_container__container_name__patch_request.go @@ -0,0 +1,98 @@ +/* + * odo dev + * + * API interface for 'odo dev' + * + * API version: 0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +type DevstateContainerContainerNamePatchRequest struct { + + // Container image + Image string `json:"image"` + + // Entrypoint of the container + Command []string `json:"command,omitempty"` + + // Args passed to the Container entrypoint + Args []string `json:"args,omitempty"` + + // Environment variables to define + Env []Env `json:"env,omitempty"` + + // Requested memory for the deployed container + MemReq string `json:"memReq,omitempty"` + + // Memory limit for the deployed container + MemLimit string `json:"memLimit,omitempty"` + + // Requested CPU for the deployed container + CpuReq string `json:"cpuReq,omitempty"` + + // CPU limit for the deployed container + CpuLimit string `json:"cpuLimit,omitempty"` + + // Volume to mount into the container filesystem + VolumeMounts []VolumeMount `json:"volumeMounts,omitempty"` + + // If false, mountSources and sourceMapping values are not considered + ConfigureSources bool `json:"configureSources,omitempty"` + + // If true, sources are mounted into container's filesystem + MountSources bool `json:"mountSources,omitempty"` + + // Specific directory on which to mount sources + SourceMapping string `json:"sourceMapping,omitempty"` + + Annotation Annotation `json:"annotation,omitempty"` + + // Endpoints exposed by the container + Endpoints []Endpoint `json:"endpoints,omitempty"` +} + +// AssertDevstateContainerContainerNamePatchRequestRequired checks if the required fields are not zero-ed +func AssertDevstateContainerContainerNamePatchRequestRequired(obj DevstateContainerContainerNamePatchRequest) error { + elements := map[string]interface{}{ + "image": obj.Image, + } + for name, el := range elements { + if isZero := IsZeroValue(el); isZero { + return &RequiredError{Field: name} + } + } + + for _, el := range obj.Env { + if err := AssertEnvRequired(el); err != nil { + return err + } + } + for _, el := range obj.VolumeMounts { + if err := AssertVolumeMountRequired(el); err != nil { + return err + } + } + if err := AssertAnnotationRequired(obj.Annotation); err != nil { + return err + } + for _, el := range obj.Endpoints { + if err := AssertEndpointRequired(el); err != nil { + return err + } + } + return nil +} + +// AssertRecurseDevstateContainerContainerNamePatchRequestRequired recursively checks if required fields are not zero-ed in a nested slice. +// Accepts only nested slice of DevstateContainerContainerNamePatchRequest (e.g. [][]DevstateContainerContainerNamePatchRequest), otherwise ErrTypeAssertionError is thrown. +func AssertRecurseDevstateContainerContainerNamePatchRequestRequired(objSlice interface{}) error { + return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error { + aDevstateContainerContainerNamePatchRequest, ok := obj.(DevstateContainerContainerNamePatchRequest) + if !ok { + return ErrTypeAssertionError + } + return AssertDevstateContainerContainerNamePatchRequestRequired(aDevstateContainerContainerNamePatchRequest) + }) +} diff --git a/pkg/apiserver-impl/devstate.go b/pkg/apiserver-impl/devstate.go index 0a0b229574..51f2aa60ef 100644 --- a/pkg/apiserver-impl/devstate.go +++ b/pkg/apiserver-impl/devstate.go @@ -384,7 +384,33 @@ func (s *DevstateApiService) DevstateCompositeCommandCommandNamePatch(ctx contex ) if err != nil { return openapi.Response(http.StatusInternalServerError, openapi.GeneralError{ - Message: fmt.Sprintf("Error updating the Image Command: %s", err), + Message: fmt.Sprintf("Error updating the Composite Command: %s", err), + }), nil + } + return openapi.Response(http.StatusOK, newContent), nil +} + +func (s *DevstateApiService) DevstateContainerContainerNamePatch(ctx context.Context, name string, patch openapi.DevstateContainerContainerNamePatchRequest) (openapi.ImplResponse, error) { + newContent, err := s.devfileState.PatchContainer( + name, + patch.Image, + patch.Command, + patch.Args, + patch.Env, + patch.MemReq, + patch.MemLimit, + patch.CpuReq, + patch.CpuLimit, + patch.VolumeMounts, + patch.ConfigureSources, + patch.MountSources, + patch.SourceMapping, + patch.Annotation, + patch.Endpoints, + ) + if err != nil { + return openapi.Response(http.StatusInternalServerError, openapi.GeneralError{ + Message: fmt.Sprintf("Error updating the container: %s", err), }), nil } return openapi.Response(http.StatusOK, newContent), nil diff --git a/pkg/apiserver-impl/devstate/components.go b/pkg/apiserver-impl/devstate/components.go index 47baefbfc9..7dc86479d9 100644 --- a/pkg/apiserver-impl/devstate/components.go +++ b/pkg/apiserver-impl/devstate/components.go @@ -27,44 +27,6 @@ func (o *DevfileState) AddContainer( annotation Annotation, endpoints []Endpoint, ) (DevfileContent, error) { - v1alpha2VolumeMounts := make([]v1alpha2.VolumeMount, 0, len(volumeMounts)) - for _, vm := range volumeMounts { - v1alpha2VolumeMounts = append(v1alpha2VolumeMounts, v1alpha2.VolumeMount{ - Name: vm.Name, - Path: vm.Path, - }) - } - - v1alpha2Envs := make([]v1alpha2.EnvVar, 0, len(envs)) - for _, env := range envs { - v1alpha2Envs = append(v1alpha2Envs, v1alpha2.EnvVar{ - Name: env.Name, - Value: env.Value, - }) - } - var annotations *v1alpha2.Annotation - if len(annotation.Deployment) > 0 || len(annotation.Service) > 0 { - annotations = &v1alpha2.Annotation{} - if len(annotation.Deployment) > 0 { - annotations.Deployment = annotation.Deployment - } - if len(annotation.Service) > 0 { - annotations.Service = annotation.Service - } - } - - v1alpha2Endpoints := make([]v1alpha2.Endpoint, 0, len(endpoints)) - for _, endpoint := range endpoints { - endpoint := endpoint - v1alpha2Endpoints = append(v1alpha2Endpoints, v1alpha2.Endpoint{ - Name: endpoint.Name, - TargetPort: int(endpoint.TargetPort), - Exposure: v1alpha2.EndpointExposure(endpoint.Exposure), - Protocol: v1alpha2.EndpointProtocol(endpoint.Protocol), - Secure: &endpoint.Secure, - Path: endpoint.Path, - }) - } container := v1alpha2.Component{ Name: name, @@ -74,15 +36,15 @@ func (o *DevfileState) AddContainer( Image: image, Command: command, Args: args, - Env: v1alpha2Envs, + Env: tov1alpha2EnvVars(envs), MemoryRequest: memRequest, MemoryLimit: memLimit, CpuRequest: cpuRequest, CpuLimit: cpuLimit, - VolumeMounts: v1alpha2VolumeMounts, - Annotation: annotations, + VolumeMounts: tov1alpha2VolumeMounts(volumeMounts), + Annotation: tov1alpha2Annotation(annotation), }, - Endpoints: v1alpha2Endpoints, + Endpoints: tov1alpha2Endpoints(endpoints), }, }, } @@ -97,6 +59,115 @@ func (o *DevfileState) AddContainer( return o.GetContent() } +func (o *DevfileState) PatchContainer( + name string, + image string, + command []string, + args []string, + envs []Env, + memRequest string, + memLimit string, + cpuRequest string, + cpuLimit string, + volumeMounts []VolumeMount, + configureSources bool, + mountSources bool, + sourceMapping string, + annotation Annotation, + endpoints []Endpoint, +) (DevfileContent, error) { + found, err := o.Devfile.Data.GetComponents(common.DevfileOptions{ + ComponentOptions: common.ComponentOptions{ + ComponentType: v1alpha2.ContainerComponentType, + }, + FilterByName: name, + }) + if err != nil { + return DevfileContent{}, err + } + if len(found) != 1 { + return DevfileContent{}, fmt.Errorf("%d Container found with name %q", len(found), name) + } + + container := found[0] + container.Container.Image = image + container.Container.Command = command + container.Container.Args = args + container.Container.Env = tov1alpha2EnvVars(envs) + container.Container.MemoryRequest = memRequest + container.Container.MemoryLimit = memLimit + container.Container.CpuRequest = cpuRequest + container.Container.CpuLimit = cpuLimit + container.Container.VolumeMounts = tov1alpha2VolumeMounts(volumeMounts) + + container.Container.MountSources = nil + container.Container.SourceMapping = "" + if configureSources { + container.Container.MountSources = &mountSources + container.Container.SourceMapping = sourceMapping + } + container.Container.Annotation = tov1alpha2Annotation(annotation) + container.Container.Endpoints = tov1alpha2Endpoints(endpoints) + + err = o.Devfile.Data.UpdateComponent(container) + if err != nil { + return DevfileContent{}, err + } + return o.GetContent() +} + +func tov1alpha2EnvVars(envs []Env) []v1alpha2.EnvVar { + result := make([]v1alpha2.EnvVar, 0, len(envs)) + for _, env := range envs { + result = append(result, v1alpha2.EnvVar{ + Name: env.Name, + Value: env.Value, + }) + } + return result +} + +func tov1alpha2VolumeMounts(volumeMounts []VolumeMount) []v1alpha2.VolumeMount { + result := make([]v1alpha2.VolumeMount, 0, len(volumeMounts)) + for _, vm := range volumeMounts { + result = append(result, v1alpha2.VolumeMount{ + Name: vm.Name, + Path: vm.Path, + }) + } + return result +} + +func tov1alpha2Annotation(annotation Annotation) *v1alpha2.Annotation { + var result *v1alpha2.Annotation + if len(annotation.Deployment) > 0 || len(annotation.Service) > 0 { + result = &v1alpha2.Annotation{} + if len(annotation.Deployment) > 0 { + result.Deployment = annotation.Deployment + } + if len(annotation.Service) > 0 { + result.Service = annotation.Service + } + } + return result +} + +func tov1alpha2Endpoints(endpoints []Endpoint) []v1alpha2.Endpoint { + result := make([]v1alpha2.Endpoint, 0, len(endpoints)) + for _, endpoint := range endpoints { + endpoint := endpoint + result = append(result, v1alpha2.Endpoint{ + Name: endpoint.Name, + TargetPort: int(endpoint.TargetPort), + Exposure: v1alpha2.EndpointExposure(endpoint.Exposure), + Protocol: v1alpha2.EndpointProtocol(endpoint.Protocol), + Secure: &endpoint.Secure, + Path: endpoint.Path, + }) + } + return result +} + func (o *DevfileState) DeleteContainer(name string) (DevfileContent, error) { err := o.checkContainerUsed(name) diff --git a/pkg/apiserver-impl/swagger-ui/swagger.yaml b/pkg/apiserver-impl/swagger-ui/swagger.yaml index ba0fbdf302..2c2ad2c516 100644 --- a/pkg/apiserver-impl/swagger-ui/swagger.yaml +++ b/pkg/apiserver-impl/swagger-ui/swagger.yaml @@ -649,6 +649,126 @@ paths: example: message: "Error deleting the container" + patch: + tags: + - devstate + description: Update a container + parameters: + - name: containerName + in: path + description: Container name to update + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + required: + - name + - image + properties: + image: + description: Container image + type: string + command: + description: Entrypoint of the container + type: array + items: { + type: string + } + args: + description: Args passed to the Container entrypoint + type: array + items: { + type: string + } + env: + description: Environment variables to define + type: array + items: + $ref: '#/components/schemas/Env' + memReq: + description: Requested memory for the deployed container + type: string + memLimit: + description: Memory limit for the deployed container + type: string + cpuReq: + description: Requested CPU for the deployed container + type: string + cpuLimit: + description: CPU limit for the deployed container + type: string + volumeMounts: + description: Volume to mount into the container filesystem + type: array + items: + $ref: '#/components/schemas/VolumeMount' + configureSources: + description: If false, mountSources and sourceMapping values are not considered + type: boolean + mountSources: + description: If true, sources are mounted into container's filesystem + type: boolean + sourceMapping: + description: Specific directory on which to mount sources + type: string + annotation: + description: Annotations added to the resources created for this container + $ref: '#/components/schemas/Annotation' + endpoints: + description: Endpoints exposed by the container + type: array + items: + $ref: '#/components/schemas/Endpoint' + + responses: + '200': + description: container was successfully updated + content: + application/json: + schema: + $ref: '#/components/schemas/DevfileContent' + example: + { + "content": "schemaVersion: 2.2.0\n", + "commands": [], + "containers": [], + "images": [], + "resources": [], + "events": { + "preStart": null, + "postStart": null, + "preStop": null, + "postStop": null + }, + "metadata": { + "name": "", + "version": "", + "displayName": "", + description": "", + "tags": "", + "architectures": "", + "icon": "", + "globalMemoryLimit": "", + "projectType": "", + "language": "", + "website": "", + "provider": "", + "supportUrl": "" + } + } + '500': + description: Error updating the container + content: + application/json: + schema: + $ref: '#/components/schemas/GeneralError' + example: + message: "Error updating the container" + /devstate/image: post: tags: diff --git a/pkg/apiserver-impl/ui/index.html b/pkg/apiserver-impl/ui/index.html index 254ed66218..aca7f8586e 100644 --- a/pkg/apiserver-impl/ui/index.html +++ b/pkg/apiserver-impl/ui/index.html @@ -11,6 +11,6 @@
Loading, please wait...
- + \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/main.30e0dd4eb9375796.js b/pkg/apiserver-impl/ui/main.d81b67faa7ca223c.js similarity index 61% rename from pkg/apiserver-impl/ui/main.30e0dd4eb9375796.js rename to pkg/apiserver-impl/ui/main.d81b67faa7ca223c.js index c4baa41167..5e6417dd82 100644 --- a/pkg/apiserver-impl/ui/main.30e0dd4eb9375796.js +++ b/pkg/apiserver-impl/ui/main.d81b67faa7ca223c.js @@ -1 +1 @@ -(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[179],{6780:(on,Ae)=>{"use strict";Ae.N=void 0;var X=/^([^\w]*)(javascript|data|vbscript)/im,me=/&#(\w+)(^\w|;)?/g,se=/&(newline|tab);/gi,te=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,re=/^.+(:|:)/gim,Ue=[".","/"];Ae.N=function he(Q){var ue=function H(Q){return Q.replace(me,function(ue,At){return String.fromCharCode(At)})}(Q||"").replace(se,"").replace(te,"").trim();if(!ue)return"about:blank";if(function Ye(Q){return Ue.indexOf(Q[0])>-1}(ue))return ue;var At=ue.match(re);return At&&X.test(At[0])?"about:blank":ue}},8066:(on,Ae,L)=>{"use strict";function X(n){return"function"==typeof n}function me(n){const e=n(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const se=me(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function te(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class re{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(X(i))try{i()}catch(o){t=o instanceof se?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{H(o)}catch(a){t=t??[],a instanceof se?t=[...t,...a.errors]:t.push(a)}}if(t)throw new se(t)}}add(t){var e;if(t&&t!==this)if(this.closed)H(t);else{if(t instanceof re){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&te(e,t)}remove(t){const{_finalizers:e}=this;e&&te(e,t),t instanceof re&&t._removeParent(this)}}re.EMPTY=(()=>{const n=new re;return n.closed=!0,n})();const Ue=re.EMPTY;function Ye(n){return n instanceof re||n&&"closed"in n&&X(n.remove)&&X(n.add)&&X(n.unsubscribe)}function H(n){X(n)?n():n.unsubscribe()}const he={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Q={setTimeout(n,t,...e){const{delegate:i}=Q;return i?.setTimeout?i.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=Q;return(t?.clearTimeout||clearTimeout)(n)},delegate:void 0};function ue(n){Q.setTimeout(()=>{const{onUnhandledError:t}=he;if(!t)throw n;t(n)})}function At(){}const nn=Te("C",void 0,void 0);function Te(n,t,e){return{kind:n,value:t,error:e}}let be=null;function xt(n){if(he.useDeprecatedSynchronousErrorHandling){const t=!be;if(t&&(be={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=be;if(be=null,e)throw i}}else n()}class _t extends re{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ye(t)&&t.add(this)):this.destination=we}static create(t,e,i){return new cn(t,e,i)}next(t){this.isStopped?We(function J(n){return Te("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?We(function Se(n){return Te("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?We(nn,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Gt=Function.prototype.bind;function Yt(n,t){return Gt.call(n,t)}class lt{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){Qn(i)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){Qn(i)}else Qn(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){Qn(e)}}}class cn extends _t{constructor(t,e,i){let r;if(super(),X(t)||!t)r={next:t??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&he.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&Yt(t.next,o),error:t.error&&Yt(t.error,o),complete:t.complete&&Yt(t.complete,o)}):r=t}this.destination=new lt(r)}}function Qn(n){he.useDeprecatedSynchronousErrorHandling?function It(n){he.useDeprecatedSynchronousErrorHandling&&be&&(be.errorThrown=!0,be.error=n)}(n):ue(n)}function We(n,t){const{onStoppedNotification:e}=he;e&&Q.setTimeout(()=>e(n,t))}const we={closed:!0,next:At,error:function Tt(n){throw n},complete:At},qe="function"==typeof Symbol&&Symbol.observable||"@@observable";function He(n){return n}let ye=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function mn(n){return n&&n instanceof _t||function Cn(n){return n&&X(n.next)&&X(n.error)&&X(n.complete)}(n)&&Ye(n)}(e)?e:new cn(e,i,r);return xt(()=>{const{operator:a,source:c}=this;o.add(a?a.call(o,c):c?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Mn(i))((r,o)=>{const a=new cn({next:c=>{try{e(c)}catch(d){o(d),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[qe](){return this}pipe(...e){return function mt(n){return 0===n.length?He:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=Mn(e))((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return n.create=t=>new n(t),n})();function Mn(n){var t;return null!==(t=n??he.Promise)&&void 0!==t?t:Promise}const di=me(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ee=(()=>{class n extends ye{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new qi(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new di}next(e){xt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){xt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){xt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:o}=this;return i||r?Ue:(this.currentObservers=null,o.push(e),new re(()=>{this.currentObservers=null,te(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new ye;return e.source=this,e}}return n.create=(t,e)=>new qi(t,e),n})();class qi extends Ee{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)}error(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==i?i:Ue}}function Ke(n){return t=>{if(function yt(n){return X(n?.lift)}(t))return t.lift(function(e){try{return n(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ot(n,t,e,i,r){return new Jn(n,t,e,i,r)}class Jn extends _t{constructor(t,e,i,r,o,a){super(t),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(c){try{e(c)}catch(d){t.error(d)}}:super._next,this._error=r?function(c){try{r(c)}catch(d){t.error(d)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Nn(n,t){return Ke((e,i)=>{let r=0;e.subscribe(Ot(i,o=>{i.next(n.call(t,o,r++))}))})}function vi(n){return this instanceof vi?(this.v=n,this):new vi(n)}function pi(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function Xe(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=n[o]&&function(a){return new Promise(function(c,d){!function r(o,a,c,d){Promise.resolve(d).then(function(h){o({value:h,done:c})},a)}(c,d,(a=n[o](a)).done,a.value)})}}}const B=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Ie(n){return X(n?.then)}function ft(n){return X(n[qe])}function gi(n){return Symbol.asyncIterator&&X(n?.[Symbol.asyncIterator])}function wn(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const ho=function ds(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function mo(n){return X(n?.[ho])}function Aa(n){return function Ki(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(M){i[M]&&(r[M]=function(A){return new Promise(function(N,j){o.push([M,A,N,j])>1||c(M,A)})})}function c(M,A){try{!function d(M){M.value instanceof vi?Promise.resolve(M.value.v).then(h,p):_(o[0][2],M)}(i[M](A))}catch(N){_(o[0][3],N)}}function h(M){c("next",M)}function p(M){c("throw",M)}function _(M,A){M(A),o.shift(),o.length&&c(o[0][0],o[0][1])}}(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:r}=yield vi(e.read());if(r)return yield vi(void 0);yield yield vi(i)}}finally{e.releaseLock()}})}function Js(n){return X(n?.getReader)}function Ci(n){if(n instanceof ye)return n;if(null!=n){if(ft(n))return function us(n){return new ye(t=>{const e=n[qe]();if(X(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(B(n))return function Fo(n){return new ye(t=>{for(let e=0;e{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,ue)})}(n);if(gi(n))return Ro(n);if(mo(n))return function Oo(n){return new ye(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(Js(n))return function ks(n){return Ro(Aa(n))}(n)}throw wn(n)}function Ro(n){return new ye(t=>{(function Tr(n,t){var e,i,r,o;return function as(n,t,e,i){return new(e||(e=Promise))(function(o,a){function c(p){try{h(i.next(p))}catch(_){a(_)}}function d(p){try{h(i.throw(p))}catch(_){a(_)}}function h(p){p.done?o(p.value):function r(o){return o instanceof e?o:new e(function(a){a(o)})}(p.value).then(c,d)}h((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=pi(n);!(i=yield e.next()).done;)if(t.next(i.value),t.closed)return}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function Xi(n,t,e,i=0,r=!1){const o=t.schedule(function(){e(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(o),!r)return o}function Po(n,t,e=1/0){return X(t)?Po((i,r)=>Nn((o,a)=>t(i,o,r,a))(Ci(n(i,r))),e):("number"==typeof t&&(e=t),Ke((i,r)=>function Fa(n,t,e,i,r,o,a,c){const d=[];let h=0,p=0,_=!1;const M=()=>{_&&!d.length&&!h&&t.complete()},A=j=>h{o&&t.next(j),h++;let ee=!1;Ci(e(j,p++)).subscribe(Ot(t,de=>{r?.(de),o?A(de):t.next(de)},()=>{ee=!0},void 0,()=>{if(ee)try{for(h--;d.length&&hN(de)):N(de)}M()}catch(de){t.error(de)}}))};return n.subscribe(Ot(t,A,()=>{_=!0,M()})),()=>{c?.()}}(i,r,n,e)))}function Lo(n=1/0){return Po(He,n)}const Zn=new ye(n=>n.complete());function ic(n){return n&&X(n.schedule)}function oi(n){return n[n.length-1]}function No(n){return X(oi(n))?n.pop():void 0}function Bo(n){return ic(oi(n))?n.pop():void 0}function ea(n,t=0){return Ke((e,i)=>{e.subscribe(Ot(i,r=>Xi(i,n,()=>i.next(r),t),()=>Xi(i,n,()=>i.complete(),t),r=>Xi(i,n,()=>i.error(r),t)))})}function ar(n,t=0){return Ke((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function Ho(n,t){if(!n)throw new Error("Iterable cannot be null");return new ye(e=>{Xi(e,t,()=>{const i=n[Symbol.asyncIterator]();Xi(e,t,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function hs(n,t){return t?function ta(n,t){if(null!=n){if(ft(n))return function Qi(n,t){return Ci(n).pipe(ar(t),ea(t))}(n,t);if(B(n))return function Vo(n,t){return new ye(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(Ie(n))return function xi(n,t){return Ci(n).pipe(ar(t),ea(t))}(n,t);if(gi(n))return Ho(n,t);if(mo(n))return function oc(n,t){return new ye(e=>{let i;return Xi(e,t,()=>{i=n[ho](),Xi(e,t,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){return void e.error(a)}o?e.complete():e.next(r)},0,!0)}),()=>X(i?.return)&&i.return()})}(n,t);if(Js(n))return function Ss(n,t){return Ho(Aa(n),t)}(n,t)}throw wn(n)}(n,t):Ci(n)}function si(...n){const t=Bo(n),e=function rc(n,t){return"number"==typeof oi(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?Ci(i[0]):Lo(e)(hs(i,t)):Zn}function na(n={}){const{connector:t=(()=>new Ee),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return o=>{let a,c,d,h=0,p=!1,_=!1;const M=()=>{c?.unsubscribe(),c=void 0},A=()=>{M(),a=d=void 0,p=_=!1},N=()=>{const j=a;A(),j?.unsubscribe()};return Ke((j,ee)=>{h++,!_&&!p&&M();const de=d=d??t();ee.add(()=>{h--,0===h&&!_&&!p&&(c=Er(N,r))}),de.subscribe(ee),!a&&h>0&&(a=new cn({next:Ve=>de.next(Ve),error:Ve=>{_=!0,M(),c=Er(A,e,Ve),de.error(Ve)},complete:()=>{p=!0,M(),c=Er(A,i),de.complete()}}),Ci(j).subscribe(a))})(o)}}function Er(n,t,...e){if(!0===t)return void n();if(!1===t)return;const i=new cn({next:()=>{i.unsubscribe(),n()}});return Ci(t(...e)).subscribe(i)}function Rn(n){for(let t in n)if(n[t]===Rn)return t;throw Error("Could not find renamed property on target object.")}function fo(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function ze(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ze).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function to(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const Mi=Rn({__forward_ref__:Rn});function Jt(n){return n.__forward_ref__=Jt,n.toString=function(){return ze(this())},n}function zt(n){return cr(n)?n():n}function cr(n){return"function"==typeof n&&n.hasOwnProperty(Mi)&&n.__forward_ref__===Jt}function po(n){return n&&!!n.\u0275providers}const Ai="https://g.co/ng/security#xss";class ve extends Error{constructor(t,e){super(Is(t,e)),this.code=t}}function Is(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}function Qt(n){return"string"==typeof n?n:null==n?"":String(n)}function ui(n,t){throw new ve(-201,!1)}function Ji(n,t){null==n&&function Pn(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function rt(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function en(n){return{providers:n.providers||[],imports:n.imports||[]}}function Fs(n){return W(n,Ti)||W(n,On)}function W(n,t){return n.hasOwnProperty(t)?n[t]:null}function Tn(n){return n&&(n.hasOwnProperty($n)||n.hasOwnProperty(ms))?n[$n]:null}const Ti=Rn({\u0275prov:Rn}),$n=Rn({\u0275inj:Rn}),On=Rn({ngInjectableDef:Rn}),ms=Rn({ngInjectorDef:Rn});var vt=(()=>((vt=vt||{})[vt.Default=0]="Default",vt[vt.Host=1]="Host",vt[vt.Self=2]="Self",vt[vt.SkipSelf=4]="SkipSelf",vt[vt.Optional=8]="Optional",vt))();let $o;function Ui(n){const t=$o;return $o=n,t}function jo(n,t,e){const i=Fs(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&vt.Optional?null:void 0!==t?t:void ui(ze(n))}const jn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Pa={},La="__NG_DI_FLAG__",ac="ngTempTokenPath",ad="ngTokenPath",bl=/\n/gm,Oc="\u0275",Os="__source";let fs;function Zr(n){const t=fs;return fs=n,t}function ps(n,t=vt.Default){if(void 0===fs)throw new ve(-203,!1);return null===fs?jo(n,void 0,t):fs.get(n,t&vt.Optional?null:void 0,t)}function ie(n,t=vt.Default){return(function er(){return $o}()||ps)(zt(n),t)}function _i(n,t=vt.Default){return ie(n,Sr(t))}function Sr(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function cc(n){const t=[];for(let e=0;e((bo=bo||{})[bo.OnPush=0]="OnPush",bo[bo.Default=1]="Default",bo))(),Ir=(()=>{return(n=Ir||(Ir={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Ir;var n})();const yo={},Ln=[],Wo=Rn({\u0275cmp:Rn}),Ps=Rn({\u0275dir:Rn}),Go=Rn({\u0275pipe:Rn}),aa=Rn({\u0275mod:Rn}),qr=Rn({\u0275fac:Rn}),no=Rn({__NG_ELEMENT_ID__:Rn});let Ls=0;function I(n){return Uo(()=>{const e=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===bo.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||Ln,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Ir.Emulated,id:"c"+Ls++,styles:n.styles||Ln,_:null,setInput:null,schemas:n.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=n.dependencies,a=n.features;return r.inputs=g(n.inputs,i),r.outputs=g(n.outputs),a&&a.forEach(c=>c(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Me).filter(nt):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(z).filter(nt):null,r})}function Me(n){return F(n)||$(n)}function nt(n){return null!==n}function Re(n){return Uo(()=>({type:n.type,bootstrap:n.bootstrap||Ln,declarations:n.declarations||Ln,imports:n.imports||Ln,exports:n.exports||Ln,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function g(n,t){if(null==n)return yo;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const C=I;function O(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function F(n){return n[Wo]||null}function $(n){return n[Ps]||null}function z(n){return n[Go]||null}const Le=0,oe=1,_e=2,at=3,$e=4,Nt=5,ln=6,En=7,Zt=8,Et=9,Pc=10,kn=11,qd=12,ca=13,yl=14,dc=15,ur=16,vo=17,Na=18,Co=19,io=20,qf=21,wi=22,Rh=1,Kf=2,Kd=7,Xd=8,vl=9,ro=10;function Yo(n){return Array.isArray(n)&&"object"==typeof n[Rh]}function Ns(n){return Array.isArray(n)&&!0===n[Rh]}function Ph(n){return 0!=(4&n.flags)}function ld(n){return n.componentOffset>-1}function Qd(n){return 1==(1&n.flags)}function Bs(n){return null!==n.template}function kb(n){return 0!=(256&n[_e])}function Lc(n,t){return n.hasOwnProperty(qr)?n[qr]:null}class Ab{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Ei(){return Qf}function Qf(n){return n.type.prototype.ngOnChanges&&(n.setInput=Ob),Fb}function Fb(){const n=ep(this),t=n?.current;if(t){const e=n.previous;if(e===yo)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function Ob(n,t,e,i){const r=this.declaredInputs[e],o=ep(n)||function Rb(n,t){return n[Jf]=t}(n,{previous:yo,current:null}),a=o.current||(o.current={}),c=o.previous,d=c[r];a[r]=new Ab(d&&d.currentValue,t,c===yo),n[i]=t}Ei.ngInherit=!0;const Jf="__ngSimpleChanges__";function ep(n){return n[Jf]||null}const gs=function(n,t,e){},la="svg";function hr(n){for(;Array.isArray(n);)n=n[Le];return n}function Bh(n,t){return hr(t[n])}function _s(n,t){return hr(t[n.index])}function np(n,t){return n.data[t]}function Cl(n,t){return n[t]}function Zo(n,t){const e=t[n];return Yo(e)?e:e[Le]}function xl(n){return 64==(64&n[_e])}function qo(n,t){return null==t?null:n[t]}function Vh(n){n[Na]=0}function mr(n,t){n[Nt]+=t;let e=n,i=n[at];for(;null!==i&&(1===t&&1===e[Nt]||-1===t&&0===e[Nt]);)i[Nt]+=t,e=i,i=i[at]}const Ht={lFrame:Hb(null),bindingsEnabled:!0};function da(){return Ht.bindingsEnabled}function ke(){return Ht.lFrame.lView}function Vn(){return Ht.lFrame.tView}function Je(n){return Ht.lFrame.contextLView=n,n[Zt]}function st(n){return Ht.lFrame.contextLView=null,n}function Ar(){let n=ap();for(;null!==n&&64===n.type;)n=n.parent;return n}function ap(){return Ht.lFrame.currentTNode}function ua(n,t){const e=Ht.lFrame;e.currentTNode=n,e.isParent=t}function cp(){return Ht.lFrame.isParent}function lp(){Ht.lFrame.isParent=!1}function oo(){const n=Ht.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function dd(){return Ht.lFrame.bindingIndex++}function uc(n){const t=Ht.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function Vb(n,t){const e=Ht.lFrame;e.bindingIndex=e.bindingRootIndex=n,ru(t)}function ru(n){Ht.lFrame.currentDirectiveIndex=n}function ou(n){const t=Ht.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function zh(){return Ht.lFrame.currentQueryIndex}function su(n){Ht.lFrame.currentQueryIndex=n}function Dl(n){const t=n[oe];return 2===t.type?t.declTNode:1===t.type?n[ln]:null}function $h(n,t,e){if(e&vt.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&vt.Host||(r=Dl(o),null===r||(o=o[dc],10&r.type))););if(null===r)return!1;t=r,n=o}const i=Ht.lFrame=Uh();return i.currentTNode=t,i.lView=n,!0}function jh(n){const t=Uh(),e=n[oe];Ht.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Uh(){const n=Ht.lFrame,t=null===n?null:n.child;return null===t?Hb(n):t}function Hb(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function up(){const n=Ht.lFrame;return Ht.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const bs=up;function ud(){const n=up();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Fr(){return Ht.lFrame.selectedIndex}function hc(n){Ht.lFrame.selectedIndex=n}function Pi(){const n=Ht.lFrame;return np(n.tView,n.selectedIndex)}function mc(){Ht.lFrame.currentNamespace=la}function au(){!function hp(){Ht.lFrame.currentNamespace=null}()}function cu(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[d]<0&&(n[Na]+=65536),(c>11>16&&(3&n[_e])===t){n[_e]+=2048,gs(4,c,o);try{o.call(c)}finally{gs(5,c,o)}}}else{gs(4,c,o);try{o.call(c)}finally{gs(5,c,o)}}}const fc=-1;class pc{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function gp(n,t,e){let i=0;for(;it){a=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[dc],e--;return i}let qh=!0;function hu(n){const t=qh;return qh=n,t}const Kh=255,Bc=5;let Xh=0;const ma={};function mu(n,t){const e=vp(n,t);if(-1!==e)return e;const i=t[oe];i.firstCreatePass&&(n.injectorIndex=t.length,fu(i.data,n),fu(t,null),fu(i.blueprint,null));const r=pu(n,t),o=n.injectorIndex;if(yp(r)){const a=uu(r),c=El(r,t),d=c[oe].data;for(let h=0;h<8;h++)t[o+h]=c[a+h]|d[a+h]}return t[o+8]=r,o}function fu(n,t){n.push(0,0,0,0,0,0,0,0,t)}function vp(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function pu(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=Qh(r),null===i)return fc;if(e++,r=r[dc],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return fc}function hd(n,t,e){!function Wb(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(no)&&(i=e[no]),null==i&&(i=e[no]=Xh++);const r=i&Kh;t.data[n+(r>>Bc)]|=1<=0?t&Kh:Yb:t}(e);if("function"==typeof o){if(!$h(t,n,i))return i&vt.Host?Cp(r,0,i):md(t,e,i,r);try{const a=o(i);if(null!=a||i&vt.Optional)return a;ui()}finally{bs()}}else if("number"==typeof o){let a=null,c=vp(n,t),d=fc,h=i&vt.Host?t[ur][ln]:null;for((-1===c||i&vt.SkipSelf)&&(d=-1===c?pu(n,t):t[c+8],d!==fc&&Dp(i,!1)?(a=t[oe],c=uu(d),t=El(d,t)):c=-1);-1!==c;){const p=t[oe];if(wp(o,c,p.data)){const _=_u(c,t,e,a,i,h);if(_!==ma)return _}d=t[c+8],d!==fc&&Dp(i,t[oe].data[c+8]===h)&&wp(o,c,t)?(a=p,c=uu(d),t=El(d,t)):c=-1}}return r}function _u(n,t,e,i,r,o){const a=t[oe],c=a.data[n+8],p=Ha(c,a,e,null==i?ld(c)&&qh:i!=a&&0!=(3&c.type),r&vt.Host&&o===c);return null!==p?Vc(t,a,p,c):ma}function Ha(n,t,e,i,r){const o=n.providerIndexes,a=t.data,c=1048575&o,d=n.directiveStart,p=o>>20,M=r?c+p:n.directiveEnd;for(let A=i?c:c+p;A=d&&N.type===e)return A}if(r){const A=a[d];if(A&&Bs(A)&&A.type===e)return d}return null}function Vc(n,t,e,i){let r=n[e];const o=t.data;if(function $b(n){return n instanceof pc}(r)){const a=r;a.resolving&&function kr(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new ve(-200,`Circular dependency in DI detected for ${n}${e}`)}(function Fn(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Qt(n)}(o[e]));const c=hu(a.canSeeViewProviders);a.resolving=!0;const d=a.injectImpl?Ui(a.injectImpl):null;$h(n,i,vt.Default);try{r=n[e]=a.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function tw(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const a=Qf(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,a),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,a)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==d&&Ui(d),hu(c),a.resolving=!1,bs()}}return r}function wp(n,t,e){return!!(e[t+(n>>Bc)]&1<{const t=n.prototype.constructor,e=t[qr]||bu(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[qr]||bu(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function bu(n){return cr(n)?()=>{const t=bu(zt(n));return t&&t()}:Lc(n)}function Qh(n){const t=n[oe],e=t.type;return 2===e?t.declTNode:1===e?n[ln]:null}function Vs(n){return function sw(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function em(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const a=new r(...o);return c.annotation=a,c;function c(d,h,p){const _=d.hasOwnProperty(za)?d[za]:Object.defineProperty(d,za,{value:[]})[za];for(;_.length<=p;)_.push(null);return(_[p]=_[p]||[]).push(a),d}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class De{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=rt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function $a(n,t){n.forEach(e=>Array.isArray(e)?$a(e,t):t(e))}function yu(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Al(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Fi(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function Fl(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function Ep(n,t){const e=$c(n,t);if(e>=0)return n[1|e]}function $c(n,t){return function fd(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),a=n[o<t?r=o:i=o+1}return~(r<({token:n})),-1),xo=sa(Sl("Optional"),8),_c=sa(Sl("SkipSelf"),4);var Xr=(()=>((Xr=Xr||{})[Xr.Important=1]="Important",Xr[Xr.DashCase=2]="DashCase",Xr))();const om=new Map;let dy=0;const am="__ngContext__";function Or(n,t){Yo(t)?(n[am]=t[io],function uy(n){om.set(n[io],n)}(t)):n[am]=t}let dm;function um(n,t){return dm(n,t)}function Nl(n){const t=n[at];return Ns(t)?t[at]:t}function hm(n){return Up(n[ca])}function Tu(n){return Up(n[$e])}function Up(n){for(;null!==n&&!Ns(n);)n=n[$e];return n}function Bl(n,t,e,i,r){if(null!=i){let o,a=!1;Ns(i)?o=i:Yo(i)&&(a=!0,i=i[Le]);const c=hr(i);0===n&&null!==e?null==r?Kp(t,e,c):Wc(t,e,c,r||null,!0):1===n&&null!==e?Wc(t,e,c,r||null,!0):2===n?function Fu(n,t,e){const i=ku(n,t);i&&function Sy(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,c,a):3===n&&t.destroyNode(c),null!=o&&function Iy(n,t,e,i,r){const o=e[Kd];o!==hr(e)&&Bl(t,n,i,o,r);for(let c=ro;c0&&(n[e-1][$e]=i[$e]);const o=Al(n,ro+t);!function Gp(n,t){pa(n,t,t[kn],2,null,null),t[Le]=null,t[ln]=null}(i[oe],i);const a=o[Co];null!==a&&a.detachView(o[oe]),i[at]=null,i[$e]=null,i[_e]&=-65}return i}function Zp(n,t){if(!(128&t[_e])){const e=t[kn];e.destroyNode&&pa(n,t,e,3,null,null),function Dy(n){let t=n[ca];if(!t)return Eu(n[oe],n);for(;t;){let e=null;if(Yo(t))e=t[ca];else{const i=t[ro];i&&(e=i)}if(!e){for(;t&&!t[$e]&&t!==n;)Yo(t)&&Eu(t[oe],t),t=t[at];null===t&&(t=n),Yo(t)&&Eu(t[oe],t),e=t&&t[$e]}t=e}}(t)}}function Eu(n,t){if(!(128&t[_e])){t[_e]&=-65,t[_e]|=128,function ky(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=a]():i[r=-a].unsubscribe(),o+=2}else{const a=i[r=e[o+1]];e[o].call(a)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=n.data[i.directiveStart+r];if(o===Ir.None||o===Ir.Emulated)return null}return _s(i,e)}}(n,t.parent,e)}function Wc(n,t,e,i,r){n.insertBefore(t,e,i,r)}function Kp(n,t,e){n.appendChild(t,e)}function Xp(n,t,e,i,r){null!==i?Wc(n,t,e,i,r):Kp(n,t,e)}function ku(n,t){return n.parentNode(t)}function Jp(n,t,e){return tg(n,t,e)}let _m,Ru,fr,Hl,tg=function eg(n,t,e){return 40&n.type?_s(n,e):null};function Su(n,t,e,i){const r=qp(n,i,t),o=t[kn],c=Jp(i.parent||t[ln],i,t);if(null!=r)if(Array.isArray(e))for(let d=0;dn,createScript:n=>n,createScriptURL:n=>n})}catch{}return Ru}()?.createHTML(n)||n}function Yc(n){return function ys(){if(void 0===Hl&&(Hl=null,jn.trustedTypes))try{Hl=jn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Hl}()?.createHTML(n)||n}class ga{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ai})`}}class Lu extends ga{getTypeName(){return"HTML"}}class Py extends ga{getTypeName(){return"Style"}}class lg extends ga{getTypeName(){return"Script"}}class ym extends ga{getTypeName(){return"URL"}}class vm extends ga{getTypeName(){return"ResourceURL"}}function nr(n){return n instanceof ga?n.changingThisBreaksApplicationSecurity:n}function _a(n,t){const e=function dg(n){return n instanceof ga&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${Ai})`)}return e===t}class By{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Vl(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class Vy{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const e=this.inertDocument.createElement("template");return e.innerHTML=Vl(t),e}}const zy=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function Bu(n){return(n=String(n)).match(zy)?n:"unsafe:"+n}function vs(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function yd(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const $y=vs("area,br,col,hr,img,wbr"),Cm=vs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),xm=vs("rp,rt"),wm=yd($y,yd(Cm,vs("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),yd(xm,vs("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),yd(xm,Cm)),Dm=vs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ua=yd(Dm,vs("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),vs("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Vu=vs("script,style,template");class Hu{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!wm.hasOwnProperty(e))return this.sanitizedSomething=!0,!Vu.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();wm.hasOwnProperty(e)&&!$y.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(fg(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Uy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,mg=/([^\#-~ |!])/g;function fg(n){return n.replace(/&/g,"&").replace(Uy,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(mg,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let vd;function pg(n,t){let e=null;try{vd=vd||function hg(n){const t=new Vy(n);return function Hy(){try{return!!(new window.DOMParser).parseFromString(Vl(""),"text/html")}catch{return!1}}()?new By(t):t}(n);let i=t?String(t):"";e=vd.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=vd.getInertBodyElement(i)}while(i!==o);return Vl((new Hu).sanitizeChildren(zu(e)||e))}finally{if(e){const i=zu(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function zu(n){return"content"in n&&function Wy(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var qn=(()=>((qn=qn||{})[qn.NONE=0]="NONE",qn[qn.HTML=1]="HTML",qn[qn.STYLE=2]="STYLE",qn[qn.SCRIPT=3]="SCRIPT",qn[qn.URL=4]="URL",qn[qn.RESOURCE_URL=5]="RESOURCE_URL",qn))();function gg(n){const t=function Zc(){const n=ke();return n&&n[qd]}();return t?Yc(t.sanitize(qn.HTML,n)||""):_a(n,"HTML")?Yc(nr(n)):pg(function cg(){return void 0!==fr?fr:typeof document<"u"?document:void 0}(),Qt(n))}const km=new De("ENVIRONMENT_INITIALIZER"),yg=new De("INJECTOR",-1),Sm=new De("INJECTOR_DEF_TYPES");class vg{get(t,e=Pa){if(e===Pa){const i=new Error(`NullInjectorError: No provider for ${ze(t)}!`);throw i.name="NullInjectorError",i}return e}}function Zy(...n){return{\u0275providers:Im(0,n),\u0275fromNgModule:!0}}function Im(n,...t){const e=[],i=new Set;let r;return $a(t,o=>{const a=o;ju(a,e,[],i)&&(r||(r=[]),r.push(a))}),void 0!==r&&xg(r,e),e}function xg(n,t){for(let e=0;e{t.push(o)})}}function ju(n,t,e,i){if(!(n=zt(n)))return!1;let r=null,o=Tn(n);const a=!o&&F(n);if(o||a){if(a&&!a.standalone)return!1;r=n}else{const d=n.ngModule;if(o=Tn(d),!o)return!1;r=d}const c=i.has(r);if(a){if(c)return!1;if(i.add(r),a.dependencies){const d="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const h of d)ju(h,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!c){let h;i.add(r);try{$a(o.imports,p=>{ju(p,t,e,i)&&(h||(h=[]),h.push(p))})}finally{}void 0!==h&&xg(h,t)}if(!c){const h=Lc(r)||(()=>new r);t.push({provide:r,useFactory:h,deps:Ln},{provide:Sm,useValue:r,multi:!0},{provide:km,useValue:()=>ie(r),multi:!0})}const d=o.providers;null==d||c||Uu(d,p=>{t.push(p)})}}return r!==n&&void 0!==n.providers}function Uu(n,t){for(let e of n)po(e)&&(e=e.\u0275providers),Array.isArray(e)?Uu(e,t):t(e)}const Am=Rn({provide:String,useValue:Rn});function $l(n){return null!==n&&"object"==typeof n&&Am in n}function qc(n){return"function"==typeof n}const Wu=new De("Set Injector scope."),Cd={},Xy={};let jl;function Gu(){return void 0===jl&&(jl=new vg),jl}class Kc{}class wg extends Kc{get destroyed(){return this._destroyed}constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Rm(t,a=>this.processProvider(a)),this.records.set(yg,Ul(void 0,this)),r.has("environment")&&this.records.set(Kc,Ul(void 0,this));const o=this.records.get(Wu);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Sm.multi,Ln,vt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=Zr(this),i=Ui(void 0);try{return t()}finally{Zr(e),Ui(i)}}get(t,e=Pa,i=vt.Default){this.assertNotDestroyed(),i=Sr(i);const r=Zr(this),o=Ui(void 0);try{if(!(i&vt.SkipSelf)){let c=this.records.get(t);if(void 0===c){const d=function tv(n){return"function"==typeof n||"object"==typeof n&&n instanceof De}(t)&&Fs(t);c=d&&this.injectableDefInScope(d)?Ul(yc(t),Cd):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(i&vt.Self?Gu():this.parent).get(t,e=i&vt.Optional&&e===Pa?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[ac]=a[ac]||[]).unshift(ze(t)),r)throw a;return function cd(n,t,e,i){const r=n[ac];throw t[Os]&&r.unshift(t[Os]),n.message=function Rc(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&n.charAt(1)==Oc?n.slice(2):n;let r=ze(t);if(Array.isArray(t))r=t.map(ze).join(" -> ");else if("object"==typeof t){let o=[];for(let a in t)if(t.hasOwnProperty(a)){let c=t[a];o.push(a+":"+("string"==typeof c?JSON.stringify(c):ze(c)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(bl,"\n ")}`}("\n"+n.message,r,e,i),n[ad]=r,n[ac]=null,n}(a,t,"R3InjectorError",this.source)}throw a}finally{Ui(o),Zr(r)}}resolveInjectorInitializers(){const t=Zr(this),e=Ui(void 0);try{const i=this.get(km.multi,Ln,vt.Self);for(const r of i)r()}finally{Zr(t),Ui(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(ze(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ve(205,!1)}processProvider(t){let e=qc(t=zt(t))?t:zt(t&&t.provide);const i=function Jy(n){return $l(n)?Ul(void 0,n.useValue):Ul(Dg(n),Cd)}(t);if(qc(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Ul(void 0,Cd,!0),r.factory=()=>cc(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Cd&&(e.value=Xy,e.value=e.factory()),"object"==typeof e.value&&e.value&&function ev(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=zt(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function yc(n){const t=Fs(n),e=null!==t?t.factory:Lc(n);if(null!==e)return e;if(n instanceof De)throw new ve(204,!1);if(n instanceof Function)return function Qy(n){const t=n.length;if(t>0)throw Fi(t,"?"),new ve(204,!1);const e=function Oe(n){const t=n&&(n[Ti]||n[On]);return t?(function it(n){if(n.hasOwnProperty("name"))return n.name;(""+n).match(/^function\s*([^\s(]+)/)}(n),t):null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new ve(204,!1)}function Dg(n,t,e){let i;if(qc(n)){const r=zt(n);return Lc(r)||yc(r)}if($l(n))i=()=>zt(n.useValue);else if(function Om(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...cc(n.deps||[]));else if(function Fm(n){return!(!n||!n.useExisting)}(n))i=()=>ie(zt(n.useExisting));else{const r=zt(n&&(n.useClass||n.provide));if(!function Mg(n){return!!n.deps}(n))return Lc(r)||yc(r);i=()=>new r(...cc(n.deps))}return i}function Ul(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function Rm(n,t){for(const e of n)Array.isArray(e)?Rm(e,t):e&&po(e)?Rm(e.\u0275providers,t):t(e)}class Dw{}class s{}class v{resolveComponentFactory(t){throw function l(n){const t=Error(`No component factory found for ${ze(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let x=(()=>{class n{}return n.NULL=new v,n})();function w(){return T(Ar(),ke())}function T(n,t){return new k(_s(n,t))}let k=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=w,n})();function R(n){return n instanceof k?n.nativeElement:n}class V{}let ne=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function Z(){const n=ke(),e=Zo(Ar().index,n);return(Yo(e)?e:n)[kn]}(),n})(),le=(()=>{class n{}return n.\u0275prov=rt({token:n,providedIn:"root",factory:()=>null}),n})();class dt{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const $t=new dt("15.2.2"),xe={},fe="ngOriginalError";function Fe(n){return n[fe]}class Qe{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&Fe(t);for(;e&&Fe(e);)e=Fe(e);return e||null}}function Lt(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const o=t.length;if(r+o===i||n.charCodeAt(r+o)<=32)return r}e=r+1}}const Xt="ng-template";function dn(n,t,e){let i=0;for(;io?"":r[_+1].toLowerCase();const A=8&i?M:null;if(A&&-1!==Lt(A,h,0)||2&i&&h!==M){if(ii(i))return!1;a=!0}}}}else{if(!a&&!ii(i)&&!ii(d))return!1;if(a&&ii(d))continue;a=!1,i=d|1&i}}return ii(i)||a}function ii(n){return 0==(1&n)}function Wn(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+c+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""!==r&&!ii(a)&&(t+=Oi(o,r),r=""),i=a,o=o||!ii(i);e++}return""!==r&&(t+=Oi(o,r)),t}const Be={};function S(n){Wl(Vn(),ke(),Fr()+n,!1)}function Wl(n,t,e,i){if(!i)if(3==(3&t[_e])){const o=n.preOrderCheckHooks;null!==o&&lu(t,o,e)}else{const o=n.preOrderHooks;null!==o&&du(t,o,0,e)}hc(e)}function Ew(n,t=null,e=null,i){const r=kw(n,t,e,i);return r.resolveInjectorInitializers(),r}function kw(n,t=null,e=null,i,r=new Set){const o=[e||Ln,Zy(n)];return i=i||("object"==typeof n?void 0:ze(n)),new wg(o,t||Gu(),i||null,r)}let Qo=(()=>{class n{static create(e,i){if(Array.isArray(e))return Ew({name:""},i,e,"");{const r=e.name??"";return Ew({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=Pa,n.NULL=new vg,n.\u0275prov=rt({token:n,providedIn:"any",factory:()=>ie(yg)}),n.__NG_ELEMENT_ID__=-1,n})();function D(n,t=vt.Default){const e=ke();return null===e?ie(n,t):gu(Ar(),e,zt(n),t)}function Pm(){throw new Error("invalid")}function Pw(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;iwi&&Wl(n,t,wi,!1),gs(a?2:0,r),e(i,r)}finally{hc(o),gs(a?3:1,r)}}function cv(n,t,e){if(Ph(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=c&&a.push(c),a.push(e,i,o)}}(n,t,i,Lm(n,e,r.hostVars,Be),r)}function vc(n,t,e,i,r,o){const a=_s(n,t);!function fv(n,t,e,i,r,o,a){if(null==o)n.removeAttribute(t,r,e);else{const c=null==a?Qt(o):a(o,i||"",r);n.setAttribute(t,r,c,e)}}(t[kn],a,o,n.value,e,i,r)}function kF(n,t,e,i,r,o){const a=o[t];if(null!==a){const c=i.setInput;for(let d=0;d0&&pv(e)}}function pv(n){for(let i=hm(n);null!==i;i=Tu(i))for(let r=ro;r0&&pv(o)}const e=n[oe].components;if(null!==e)for(let i=0;i0&&pv(r)}}function OF(n,t){const e=Zo(t,n),i=e[oe];(function RF(n,t){for(let e=t.length;e-1&&(pm(t,i),Al(e,i))}this._attachedToViewContainer=!1}Zp(this._lView[oe],this._lView)}onDestroy(t){Bw(this._lView[oe],this._lView,null,t)}markForCheck(){gv(this._cdRefInjectingView||this._lView)}detach(){this._lView[_e]&=-65}reattach(){this._lView[_e]|=64}detectChanges(){Ig(this._lView[oe],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ve(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function wy(n,t){pa(n,t,t[kn],2,null,null)}(this._lView[oe],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ve(902,!1);this._appRef=t}}class PF extends Nm{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Ig(t[oe],t,t[Zt],!1)}checkNoChanges(){}get context(){return null}}class qw extends x{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=F(t);return new Bm(e,this.ngModule)}}function Kw(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class NF{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){i=Sr(i);const r=this.injector.get(t,xe,i);return r!==xe||e===xe?r:this.parentInjector.get(t,e,i)}}class Bm extends s{get inputs(){return Kw(this.componentDef.inputs)}get outputs(){return Kw(this.componentDef.outputs)}constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function so(n){return n.map(ci).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof Kc?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new NF(t,o):t,c=a.get(V,null);if(null===c)throw new ve(407,!1);const d=a.get(le,null),h=c.createRenderer(null,this.componentDef),p=this.componentDef.selectors[0][0]||"div",_=i?function mF(n,t,e){return n.selectRootElement(t,e===Ir.ShadowDom)}(h,i,this.componentDef.encapsulation):fm(h,p,function LF(n){const t=n.toLowerCase();return"svg"===t?la:"math"===t?"math":null}(p)),M=this.componentDef.onPush?288:272,A=uv(0,null,null,1,0,null,null,null,null,null),N=Eg(null,A,null,M,null,null,c,h,d,a,null);let j,ee;jh(N);try{const de=this.componentDef;let Ve,ge=null;de.findHostDirectiveDefs?(Ve=[],ge=new Map,de.findHostDirectiveDefs(de,Ve,ge),Ve.push(de)):Ve=[de];const Mt=function VF(n,t){const e=n[oe],i=wi;return n[i]=t,Zu(e,i,2,"#host",null)}(N,_),Yn=function HF(n,t,e,i,r,o,a,c){const d=r[oe];!function zF(n,t,e,i){for(const r of n)t.mergedAttrs=Tl(t.mergedAttrs,r.hostAttrs);null!==t.mergedAttrs&&(Ag(t,t.mergedAttrs,!0),null!==e&&sg(i,e,t))}(i,n,t,a);const h=o.createRenderer(t,e),p=Eg(r,Nw(e),null,e.onPush?32:16,r[n.index],n,o,h,c||null,null,null);return d.firstCreatePass&&mv(d,n,i.length-1),Sg(r,p),r[n.index]=p}(Mt,_,de,Ve,N,c,h);ee=np(A,wi),_&&function jF(n,t,e,i){if(i)gp(n,e,["ng-version",$t.full]);else{const{attrs:r,classes:o}=function ao(n){const t=[],e=[];let i=1,r=2;for(;i0&&og(n,e,o.join(" "))}}(h,de,_,i),void 0!==e&&function UF(n,t,e){const i=n.projection=[];for(let r=0;r=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Tl(r.hostAttrs,e=Tl(e,r.hostAttrs))}}(i)}function yv(n){return n===yo?{}:n===Ln?[]:n}function YF(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function ZF(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function qF(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}function Og(n){return!!vv(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function vv(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Cc(n,t,e){return n[t]=e}function Do(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function xd(n,t,e,i){const r=Do(n,t,e);return Do(n,t+1,i)||r}function jt(n,t,e,i){const r=ke();return Do(r,dd(),t)&&(Vn(),vc(Pi(),r,n,t,e,i)),jt}function Ku(n,t,e,i){return Do(n,dd(),e)?t+Qt(e)+i:Be}function Xu(n,t,e,i,r,o){const c=xd(n,function Va(){return Ht.lFrame.bindingIndex}(),e,r);return uc(2),c?t+Qt(e)+i+Qt(r)+o:Be}function Y(n,t,e,i,r,o,a,c){const d=ke(),h=Vn(),p=n+wi,_=h.firstCreatePass?function oO(n,t,e,i,r,o,a,c,d){const h=t.consts,p=Zu(t,n,4,a||null,qo(h,c));hv(t,e,p,qo(h,d)),cu(t,p);const _=p.tView=uv(2,p,i,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,h);return null!==t.queries&&(t.queries.template(t,p),_.queries=t.queries.embeddedTView(p)),p}(p,h,d,t,e,i,r,o,a):h.data[p];ua(_,!1);const M=d[kn].createComment("");Su(h,d,M,_),Or(M,d),Sg(d,d[p]=Uw(M,d,M,_)),Qd(_)&&lv(h,d,_),null!=a&&dv(d,_,c)}function Jo(n){return Cl(function ew(){return Ht.lFrame.contextLView}(),wi+n)}function P(n,t,e){const i=ke();return Do(i,dd(),t)&&zs(Vn(),Pi(),i,n,t,i[kn],e,!1),P}function Cv(n,t,e,i,r){const a=r?"class":"style";bv(n,e,t.inputs[a],a,i)}function y(n,t,e,i){const r=ke(),o=Vn(),a=wi+n,c=r[kn],d=o.firstCreatePass?function aO(n,t,e,i,r,o){const a=t.consts,d=Zu(t,n,2,i,qo(a,r));return hv(t,e,d,qo(a,o)),null!==d.attrs&&Ag(d,d.attrs,!1),null!==d.mergedAttrs&&Ag(d,d.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,d),d}(a,o,r,t,e,i):o.data[a],h=r[a]=fm(c,t,function zb(){return Ht.lFrame.currentNamespace}()),p=Qd(d);return ua(d,!0),sg(c,h,d),32!=(32&d.flags)&&Su(o,r,h,d),0===function Jd(){return Ht.lFrame.elementDepthCount}()&&Or(h,r),function eu(){Ht.lFrame.elementDepthCount++}(),p&&(lv(o,r,d),cv(o,d,r)),null!==i&&dv(r,d),y}function b(){let n=Ar();cp()?lp():(n=n.parent,ua(n,!1));const t=n;!function Nb(){Ht.lFrame.elementDepthCount--}();const e=Vn();return e.firstCreatePass&&(cu(e,n),Ph(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function iw(n){return 0!=(8&n.flags)}(t)&&Cv(e,t,ke(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function pp(n){return 0!=(16&n.flags)}(t)&&Cv(e,t,ke(),t.stylesWithoutHost,!1),b}function Pe(n,t,e,i){return y(n,t,e,i),b(),Pe}function Pr(n,t,e){const i=ke(),r=Vn(),o=n+wi,a=r.firstCreatePass?function cO(n,t,e,i,r){const o=t.consts,a=qo(o,i),c=Zu(t,n,8,"ng-container",a);return null!==a&&Ag(c,a,!0),hv(t,e,c,qo(o,r)),null!==t.queries&&t.queries.elementStart(t,c),c}(o,r,i,t,e):r.data[o];ua(a,!0);const c=i[o]=i[kn].createComment("");return Su(r,i,c,a),Or(c,i),Qd(a)&&(lv(r,i,a),cv(r,a,i)),null!=e&&dv(i,a),Pr}function Lr(){let n=Ar();const t=Vn();return cp()?lp():(n=n.parent,ua(n,!1)),t.firstCreatePass&&(cu(t,n),Ph(n)&&t.queries.elementEnd(n)),Lr}function Bt(){return ke()}function Pg(n){return!!n&&"function"==typeof n.then}function h1(n){return!!n&&"function"==typeof n.subscribe}const m1=h1;function ce(n,t,e,i){const r=ke(),o=Vn(),a=Ar();return f1(o,r,r[kn],a,n,t,i),ce}function xv(n,t){const e=Ar(),i=ke(),r=Vn();return f1(r,i,Yw(ou(r.data),e,i),e,n,t),xv}function f1(n,t,e,i,r,o,a){const c=Qd(i),h=n.firstCreatePass&&Gw(n),p=t[Zt],_=Ww(t);let M=!0;if(3&i.type||a){const j=_s(i,t),ee=a?a(j):j,de=_.length,Ve=a?Mt=>a(hr(Mt[i.index])):i.index;let ge=null;if(!a&&c&&(ge=function lO(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;od?c[d]:null}"string"==typeof a&&(o+=2)}return null}(n,t,r,i.index)),null!==ge)(ge.__ngLastListenerFn__||ge).__ngNextListenerFn__=o,ge.__ngLastListenerFn__=o,M=!1;else{o=g1(i,t,p,o,!1);const Mt=e.listen(ee,r,o);_.push(o,Mt),h&&h.push(r,Ve,de,de+1)}}else o=g1(i,t,p,o,!1);const A=i.outputs;let N;if(M&&null!==A&&(N=A[r])){const j=N.length;if(j)for(let ee=0;ee-1?Zo(n.index,t):t);let d=p1(t,e,i,a),h=o.__ngNextListenerFn__;for(;h;)d=p1(t,e,h,a)&&d,h=h.__ngNextListenerFn__;return r&&!1===d&&(a.preventDefault(),a.returnValue=!1),d}}function q(n=1){return function Wh(n){return(Ht.lFrame.contextLView=function Gh(n,t){for(;n>0;)t=t[dc],n--;return t}(n,Ht.lFrame.contextLView))[Zt]}(n)}function dO(n,t){let e=null;const i=function gt(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(!(1&e))return t[e+1]}return null}(n);for(let r=0;r>17&32767}function Dv(n){return 2|n}function wd(n){return(131068&n)>>2}function Mv(n,t){return-131069&n|t<<2}function Tv(n){return 1|n}function M1(n,t,e,i,r){const o=n[e+1],a=null===t;let c=i?Gl(o):wd(o),d=!1;for(;0!==c&&(!1===d||a);){const p=n[c+1];gO(n[c],t)&&(d=!0,n[c+1]=i?Tv(p):Dv(p)),c=i?Gl(p):wd(p)}d&&(n[e+1]=i?Dv(o):Tv(o))}function gO(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&$c(n,t)>=0}const Nr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function T1(n){return n.substring(Nr.key,Nr.keyEnd)}function E1(n,t){const e=Nr.textEnd;return e===t?-1:(t=Nr.keyEnd=function vO(n,t,e){for(;t32;)t++;return t}(n,Nr.key=t,e),rh(n,t,e))}function rh(n,t,e){for(;t=0;e=E1(t,e))Kr(n,T1(t),!0)}function Ga(n,t,e,i){const r=ke(),o=Vn(),a=uc(2);o.firstUpdatePass&&O1(o,n,a,i),t!==Be&&Do(r,a,t)&&P1(o,o.data[Fr()],r,r[kn],n,r[a+1]=function AO(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=ze(nr(n)))),n}(t,e),i,a)}function F1(n,t){return t>=n.expandoStartIndex}function O1(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[Fr()],a=F1(n,e);N1(o,i)&&null===t&&!a&&(t=!1),t=function MO(n,t,e,i){const r=ou(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=$m(e=Ev(null,n,t,e,i),t.attrs,i),o=null);else{const a=t.directiveStylingLast;if(-1===a||n[a]!==r)if(e=Ev(r,n,t,e,i),null===o){let d=function TO(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==wd(i))return n[Gl(i)]}(n,t,i);void 0!==d&&Array.isArray(d)&&(d=Ev(null,n,t,d[1],i),d=$m(d,t.attrs,i),function EO(n,t,e,i){n[Gl(e?t.classBindings:t.styleBindings)]=i}(n,t,i,d))}else o=function kO(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(h=!0)):p=e,r)if(0!==d){const M=Gl(n[c+1]);n[i+1]=Lg(M,c),0!==M&&(n[M+1]=Mv(n[M+1],i)),n[c+1]=function hO(n,t){return 131071&n|t<<17}(n[c+1],i)}else n[i+1]=Lg(c,0),0!==c&&(n[c+1]=Mv(n[c+1],i)),c=i;else n[i+1]=Lg(d,0),0===c?c=i:n[d+1]=Mv(n[d+1],i),d=i;h&&(n[i+1]=Dv(n[i+1])),M1(n,p,i,!0),M1(n,p,i,!1),function pO(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&$c(o,t)>=0&&(e[i+1]=Tv(e[i+1]))}(t,p,n,i,o),a=Lg(c,d),o?t.classBindings=a:t.styleBindings=a}(r,o,t,e,a,i)}}function Ev(n,t,e,i,r){let o=null;const a=e.directiveEnd;let c=e.directiveStylingLast;for(-1===c?c=e.directiveStart:c++;c0;){const d=n[r],h=Array.isArray(d),p=h?d[1]:d,_=null===p;let M=e[r+1];M===Be&&(M=_?Ln:void 0);let A=_?Ep(M,i):p===i?M:void 0;if(h&&!Ng(A)&&(A=Ep(d,i)),Ng(A)&&(c=A,a))return c;const N=n[r+1];r=a?Gl(N):wd(N)}if(null!==t){let d=o?t.residualClasses:t.residualStyles;null!=d&&(c=Ep(d,i))}return c}function Ng(n){return void 0!==n}function N1(n,t){return 0!=(n.flags&(t?8:16))}function E(n,t=""){const e=ke(),i=Vn(),r=n+wi,o=i.firstCreatePass?Zu(i,r,1,t,null):i.data[r],a=e[r]=function mm(n,t){return n.createText(t)}(e[kn],t);Su(i,e,a,o),ua(o,!1)}function Ut(n){return bi("",n,""),Ut}function bi(n,t,e){const i=ke(),r=Ku(i,n,t,e);return r!==Be&&Xc(i,Fr(),r),bi}function jm(n,t,e,i,r){const o=ke(),a=Xu(o,n,t,e,i,r);return a!==Be&&Xc(o,Fr(),a),jm}function W1(n,t,e){!function Ya(n,t,e,i){const r=Vn(),o=uc(2);r.firstUpdatePass&&O1(r,null,o,i);const a=ke();if(e!==Be&&Do(a,o,e)){const c=r.data[Fr()];if(N1(c,i)&&!F1(r,o)){let d=i?c.classesWithoutHost:c.stylesWithoutHost;null!==d&&(e=to(d,e||"")),Cv(r,c,a,e,i)}else!function IO(n,t,e,i,r,o,a,c){r===Be&&(r=Ln);let d=0,h=0,p=0>20;if(qc(n)||!n.multi){const A=new pc(d,r,D),N=Ov(c,t,r?p:p+M,_);-1===N?(hd(mu(h,a),o,c),Fv(o,n,t.length),t.push(c),h.directiveStart++,h.directiveEnd++,r&&(h.providerIndexes+=1048576),e.push(A),a.push(A)):(e[N]=A,a[N]=A)}else{const A=Ov(c,t,p+M,_),N=Ov(c,t,p,p+M),ee=N>=0&&e[N];if(r&&!ee||!r&&!(A>=0&&e[A])){hd(mu(h,a),o,c);const de=function q2(n,t,e,i,r){const o=new pc(n,e,D);return o.multi=[],o.index=t,o.componentProviders=0,kD(o,r,i&&!e),o}(r?Z2:Y2,e.length,r,i,d);!r&&ee&&(e[N].providerFactory=de),Fv(o,n,t.length,0),t.push(c),h.directiveStart++,h.directiveEnd++,r&&(h.providerIndexes+=1048576),e.push(de),a.push(de)}else Fv(o,n,A>-1?A:N,kD(e[r?N:A],d,!r&&i));!r&&i&&ee&&e[N].componentProviders++}}}function Fv(n,t,e,i){const r=qc(t),o=function Ky(n){return!!n.useClass}(t);if(r||o){const d=(o?zt(t.useClass):t).prototype.ngOnDestroy;if(d){const h=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const p=h.indexOf(e);-1===p?h.push(e,[i,d]):h[p+1].push(i,d)}else h.push(e,d)}}}function kD(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Ov(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function G2(n,t,e){const i=Vn();if(i.firstCreatePass){const r=Bs(n);Av(e,i.data,i.blueprint,r,!0),Av(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class ah{}class K2{}class SD extends ah{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new qw(this);const i=function pe(n,t){const e=n[aa]||null;if(!e&&!0===t)throw new Error(`Type ${ze(n)} does not have '\u0275mod' property.`);return e}(t);this._bootstrapComponents=function Ge(n){return n instanceof Function?n():n}(i.bootstrap),this._r3Injector=kw(t,e,[{provide:ah,useValue:this},{provide:x,useValue:this.componentFactoryResolver}],ze(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Pv extends K2{constructor(t){super(),this.moduleType=t}create(t){return new SD(this.moduleType,t)}}class Q2 extends ah{constructor(t,e,i){super(),this.componentFactoryResolver=new qw(this),this.instance=null;const r=new wg([...t,{provide:ah,useValue:this},{provide:x,useValue:this.componentFactoryResolver}],e||Gu(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}let J2=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=Im(0,e.type),r=i.length>0?function ID(n,t,e=null){return new Q2(n,t,e).injector}([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=rt({token:n,providedIn:"environment",factory:()=>new n(ie(Kc))}),n})();function AD(n){n.getStandaloneInjector=t=>t.get(J2).getOrCreateStandaloneInjector(n)}function Za(n,t,e){const i=oo()+n,r=ke();return r[i]===Be?Cc(r,i,e?t.call(e):t()):function Vm(n,t){return n[t]}(r,i)}function VD(n,t,e,i,r){return function zD(n,t,e,i,r,o,a){const c=t+e;return xd(n,c,r,o)?Cc(n,c+2,a?i.call(a,r,o):i(r,o)):qm(n,c+2)}(ke(),oo(),n,t,e,i,r)}function qm(n,t){const e=n[t];return e===Be?void 0:e}function HD(n,t,e,i,r,o){const a=t+e;return Do(n,a,r)?Cc(n,a+1,o?i.call(o,r):i(r)):qm(n,a+1)}function Km(n,t){const e=Vn();let i;const r=n+wi;e.firstCreatePass?(i=function pR(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Lc(i.type)),a=Ui(D);try{const c=hu(!1),d=o();return hu(c),function sO(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,ke(),r,d),d}finally{Ui(a)}}function Xm(n,t,e){const i=n+wi,r=ke(),o=Cl(r,i);return function Qm(n,t){return n[oe].data[t].pure}(r,i)?HD(r,oo(),t,o.transform,e,o):o.transform(e)}function Nv(n){return t=>{setTimeout(n,void 0,t)}}const Ze=class vR extends Ee{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),a=i;if(t&&"object"==typeof t){const d=t;r=d.next?.bind(d),o=d.error?.bind(d),a=d.complete?.bind(d)}this.__isAsync&&(o=Nv(o),r&&(r=Nv(r)),a&&(a=Nv(a)));const c=super.subscribe({next:r,error:o,complete:a});return t instanceof re&&t.add(c),c}};function CR(){return this._results[Symbol.iterator]()}class Yl{get changes(){return this._changes||(this._changes=new Ze)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Yl.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=CR)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=function Xo(n){return n.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function tm(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=DR,n})();const xR=pr,wR=class extends xR{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tView,r=Eg(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[vo]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[Co];return null!==a&&(r[Co]=a.createEmbeddedView(i)),av(i,r,t),new Nm(r)}};function DR(){return $g(Ar(),ke())}function $g(n,t){return 4&n.type?new wR(t,n,T(n,t)):null}let gr=(()=>{class n{}return n.__NG_ELEMENT_ID__=MR,n})();function MR(){return YD(Ar(),ke())}const TR=gr,WD=class extends TR{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return T(this._hostTNode,this._hostLView)}get injector(){return new Hc(this._hostTNode,this._hostLView)}get parentInjector(){const t=pu(this._hostTNode,this._hostLView);if(yp(t)){const e=El(t,this._hostLView),i=uu(t);return new Hc(e[oe].data[i+8],e)}return new Hc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=GD(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ro}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const a=t.createEmbeddedView(e||{},o);return this.insert(a,r),a}createComponent(t,e,i,r,o){const a=t&&!function Ko(n){return"function"==typeof n}(t);let c;if(a)c=e;else{const _=e||{};c=_.index,i=_.injector,r=_.projectableNodes,o=_.environmentInjector||_.ngModuleRef}const d=a?t:new Bm(F(t)),h=i||this.parentInjector;if(!o&&null==d.ngModule){const M=(a?h:this.parentInjector).get(Kc,null);M&&(o=M)}const p=d.create(h,r,void 0,o);return this.insert(p.hostView,c),p}insert(t,e){const i=t._lView,r=i[oe];if(function wl(n){return Ns(n[at])}(i)){const p=this.indexOf(t);if(-1!==p)this.detach(p);else{const _=i[at],M=new WD(_,_[ln],_[at]);M.detach(M.indexOf(t))}}const o=this._adjustIndex(e),a=this._lContainer;!function My(n,t,e,i){const r=ro+i,o=e.length;i>0&&(e[r-1][$e]=t),i0)i.push(a[c/2]);else{const h=o[c+1],p=t[-d];for(let _=ro;_{class n{constructor(e){this.appInits=e,this.resolve=Wg,this.reject=Wg,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:c,error:d})});e.push(a)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(ie(_M,8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const dh=new De("AppId",{providedIn:"root",factory:function bM(){return`${Zv()}${Zv()}${Zv()}`}});function Zv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const yM=new De("Platform Initializer"),ef=new De("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Br=new De("AnimationModuleType"),Dc=new De("LocaleId",{providedIn:"root",factory:()=>_i(Dc,vt.Optional|vt.SkipSelf)||function QR(){return typeof $localize<"u"&&$localize.locale||sh}()}),iP=(()=>Promise.resolve(0))();function qv(n){typeof Zone>"u"?iP.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Kt{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ze(!1),this.onMicrotaskEmpty=new Ze(!1),this.onStable=new Ze(!1),this.onError=new Ze(!1),typeof Zone>"u")throw new ve(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function rP(){let n=jn.requestAnimationFrame,t=jn.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function aP(n){const t=()=>{!function sP(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(jn,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Xv(n),n.isCheckStableRunning=!0,Kv(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Xv(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,a,c)=>{try{return xM(n),e.invokeTask(r,o,a,c)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),wM(n)}},onInvoke:(e,i,r,o,a,c,d)=>{try{return xM(n),e.invoke(r,o,a,c,d)}finally{n.shouldCoalesceRunChangeDetection&&t(),wM(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Xv(n),Kv(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Kt.isInAngularZone())throw new ve(909,!1)}static assertNotInAngularZone(){if(Kt.isInAngularZone())throw new ve(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,t,oP,Wg,Wg);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const oP={};function Kv(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Xv(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function xM(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function wM(n){n._nesting--,Kv(n)}class cP{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ze,this.onMicrotaskEmpty=new Ze,this.onStable=new Ze,this.onError=new Ze}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const DM=new De(""),Yg=new De("");let e0,Qv=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,e0||(function lP(n){e0=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Kt.assertNotInAngularZone(),qv(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())qv(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(ie(Kt),ie(Jv),ie(Yg))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})(),Jv=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return e0?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Qc=!1;let Zl=null;const MM=new De("AllowMultipleToken"),t0=new De("PlatformDestroyListeners"),dP=new De("appBootstrapListener");function EM(n,t,e=[]){const i=`Platform: ${t}`,r=new De(i);return(o=[])=>{let a=n0();if(!a||a.injector.get(MM,!1)){const c=[...e,...o,{provide:r,useValue:!0}];n?n(c):function mP(n){if(Zl&&!Zl.get(MM,!1))throw new ve(400,!1);Zl=n;const t=n.get(SM);(function TM(n){const t=n.get(yM,null);t&&t.forEach(e=>e())})(n)}(function kM(n=[],t){return Qo.create({name:t,providers:[{provide:Wu,useValue:"platform"},{provide:t0,useValue:new Set([()=>Zl=null])},...n]})}(c,i))}return function pP(n){const t=n0();if(!t)throw new ve(401,!1);return t}()}}function n0(){return Zl?.get(SM)??null}let SM=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function AM(n,t){let e;return e="noop"===n?new cP:("zone.js"===n?void 0:n)||new Kt(t),e}(i?.ngZone,function IM(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Kt,useValue:r}];return r.run(()=>{const a=Qo.create({providers:o,parent:this.injector,name:e.moduleType.name}),c=e.create(a),d=c.injector.get(Qe,null);if(!d)throw new ve(402,!1);return r.runOutsideAngular(()=>{const h=r.onError.subscribe({next:p=>{d.handleError(p)}});c.onDestroy(()=>{Zg(this._modules,c),h.unsubscribe()})}),function FM(n,t,e){try{const i=e();return Pg(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(d,r,()=>{const h=c.injector.get(Gg);return h.runInitializers(),h.donePromise.then(()=>(function rD(n){Ji(n,"Expected localeId to be defined"),"string"==typeof n&&(iD=n.toLowerCase().replace(/_/g,"-"))}(c.injector.get(Dc,sh)||sh),this._moduleDoBootstrap(c),c))})})}bootstrapModule(e,i=[]){const r=OM({},i);return function uP(n,t,e){const i=new Pv(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(tf);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new ve(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ve(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(t0,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(ie(Qo))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function OM(n,t){return Array.isArray(t)?t.reduce(OM,n):{...n,...t}}let tf=(()=>{class n{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new ye(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),a=new ye(c=>{let d;this._zone.runOutsideAngular(()=>{d=this._zone.onStable.subscribe(()=>{Kt.assertNotInAngularZone(),qv(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const h=this._zone.onUnstable.subscribe(()=>{Kt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{d.unsubscribe(),h.unsubscribe()}});this.isStable=si(o,a.pipe(na()))}bootstrap(e,i){const r=e instanceof s;if(!this._injector.get(Gg).done){!r&&function ae(n){const t=F(n)||$(n)||z(n);return null!==t&&t.standalone}(e);throw new ve(405,Qc)}let a;a=r?e:this._injector.get(x).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const c=function hP(n){return n.isBoundToModule}(a)?void 0:this._injector.get(ah),h=a.create(Qo.NULL,[],i||a.selector,c),p=h.location.nativeElement,_=h.injector.get(DM,null);return _?.registerApplication(p),h.onDestroy(()=>{this.detachView(h.hostView),Zg(this.components,h),_?.unregisterApplication(p)}),this._loadComponent(h),h}tick(){if(this._runningTick)throw new ve(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Zg(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(dP,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Zg(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ve(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(ie(Kt),ie(Kc),ie(Qe))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Zg(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let li=(()=>{class n{}return n.__NG_ELEMENT_ID__=_P,n})();function _P(n){return function bP(n,t,e){if(ld(n)&&!e){const i=Zo(n.index,t);return new Nm(i,i)}return 47&n.type?new Nm(t[ur],t):null}(Ar(),ke(),16==(16&n))}class BM{constructor(){}supports(t){return Og(t)}create(t){return new DP(t)}}const wP=(n,t)=>t;class DP{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||wP}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(r,c),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,c,a,r)),Object.is(e.item,c)||this._addIdentityChange(e,c)):(e=this._mismatch(e,c,a,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new MP(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new VM),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new VM),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class MP{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class TP{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class VM{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new TP,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function HM(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const o=r._prev,a=r._next;return o&&(o._next=a),a&&(a._prev=o),r._next=null,r._prev=null,r}const i=new kP(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class kP{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function $M(){return new Xg([new BM])}let Xg=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||$M()),deps:[[n,new _c,new xo]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new ve(901,!1)}}return n.\u0275prov=rt({token:n,providedIn:"root",factory:$M}),n})();function jM(){return new nf([new zM])}let nf=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||jM()),deps:[[n,new _c,new xo]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new ve(901,!1)}}return n.\u0275prov=rt({token:n,providedIn:"root",factory:jM}),n})();const AP=EM(null,"core",[]);let FP=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(ie(tf))},n.\u0275mod=Re({type:n}),n.\u0275inj=en({}),n})();let l0=null;function Jc(){return l0}class PP{}const hn=new De("DocumentToken");let UM=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:function(){return function LP(){return ie(WM)}()},providedIn:"platform"}),n})(),WM=(()=>{class n extends UM{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Jc().getBaseHref(this._doc)}onPopState(e){const i=Jc().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Jc().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){GM()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){GM()?this._history.replaceState(e,i,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(ie(hn))},n.\u0275prov=rt({token:n,factory:function(){return function NP(){return new WM(ie(hn))}()},providedIn:"platform"}),n})();function GM(){return!!window.history.pushState}function YM(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function ZM(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Td(n){return n&&"?"!==n[0]?"?"+n:n}let d0=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:function(){return _i(VP)},providedIn:"root"}),n})();const BP=new De("appBaseHref");let VP=(()=>{class n extends d0{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??_i(hn).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return YM(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Td(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const a=this.prepareExternalUrl(r+Td(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){const a=this.prepareExternalUrl(r+Td(o));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(ie(UM),ie(BP,8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qM=(()=>{class n{constructor(e){this._subject=new Ze,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function $P(n){if(new RegExp("^(https?:)?//").test(n)){const[,e]=n.split(/\/\/[^\/]+/);return e}return n}(ZM(KM(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Td(i))}normalize(e){return n.stripTrailingSlash(function zP(n,t){if(!n||!t.startsWith(n))return t;const e=t.substring(n.length);return""===e||["/",";","?","#"].includes(e[0])?e:t}(this._basePath,KM(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Td(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Td(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=Td,n.joinWithSlash=YM,n.stripTrailingSlash=ZM,n.\u0275fac=function(e){return new(e||n)(ie(d0))},n.\u0275prov=rt({token:n,factory:function(){return function HP(){return new qM(ie(d0))}()},providedIn:"root"}),n})();function KM(n){return n.replace(/\/index.html$/,"")}function oT(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}const v0=/\s+/,sT=[];let uh=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=sT,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(v0):sT}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(v0):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(v0).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(D(Xg),D(nf),D(k),D(ne))},n.\u0275dir=C({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class TL{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let xs=(()=>{class n{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,a)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new TL(r.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===o?void 0:o);else if(null!==o){const c=i.get(o);i.move(c,a),lT(c,r)}});for(let r=0,o=i.length;r{lT(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(D(gr),D(pr),D(Xg))},n.\u0275dir=C({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function lT(n,t){n.context.$implicit=t.item}let yi=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new kL,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){dT("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){dT("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(D(gr),D(pr))},n.\u0275dir=C({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class kL{constructor(){this.$implicit=null,this.ngIf=null}}function dT(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${ze(t)}'.`)}class C0{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let hh=(()=>{class n{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),n})(),a_=(()=>{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new C0(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(D(gr),D(pr),D(hh,9))},n.\u0275dir=C({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),uT=(()=>{class n{constructor(e,i,r){r._addDefault(new C0(e,i))}}return n.\u0275fac=function(e){return new(e||n)(D(gr),D(pr),D(hh,9))},n.\u0275dir=C({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),mT=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:a}=this;this._viewRef=i.createEmbeddedView(r,o,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(D(gr))},n.\u0275dir=C({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ei]}),n})();class AL{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class FL{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const OL=new FL,RL=new AL;let x0=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Pg(e))return OL;if(h1(e))return RL;throw function Xa(n,t){return new ve(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(D(li,16))},n.\u0275pipe=O({name:"async",type:n,pure:!1,standalone:!0}),n})(),fT=(()=>{class n{constructor(e){this.differs=e,this.keyValues=[],this.compareFn=pT}transform(e,i=pT){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const r=this.differ.diff(e),o=i!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(a=>{this.keyValues.push(function YL(n,t){return{key:n,value:t}}(a.key,a.currentValue))})),(r||o)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}}return n.\u0275fac=function(e){return new(e||n)(D(nf,16))},n.\u0275pipe=O({name:"keyvalue",type:n,pure:!1,standalone:!0}),n})();function pT(n,t){const e=n.key,i=t.key;if(e===i)return 0;if(void 0===e)return 1;if(void 0===i)return-1;if(null===e)return 1;if(null===i)return-1;if("string"==typeof e&&"string"==typeof i)return e{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({}),n})();const gT="browser";function _T(n){return n===gT}class yT{}class EN extends PP{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class E0 extends EN{static makeCurrent(){!function RP(n){l0||(l0=n)}(new E0)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function kN(){return cf=cf||document.querySelector("base"),cf?cf.getAttribute("href"):null}();return null==e?null:function SN(n){d_=d_||document.createElement("a"),d_.setAttribute("href",n);const t=d_.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){cf=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return oT(document.cookie,t)}}let d_,cf=null;const DT=new De("TRANSITION_ID"),AN=[{provide:_M,useFactory:function IN(n,t,e){return()=>{e.get(Gg).donePromise.then(()=>{const i=Jc(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();const u_=new De("EventManagerPlugins");let h_=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class n{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const r=this.usageCount;let o=r.get(e)??0;return o+=i,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})(),lf=(()=>{class n extends TT{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(o=>o.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const r=this.doc.createElement("style");r.textContent=i,e.appendChild(r);const o=this.styleRef.get(i);o?o.push(r):this.styleRef.set(i,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return n.\u0275fac=function(e){return new(e||n)(ie(hn))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();const k0={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},S0=/%COMP%/g,ST=new De("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function IT(n,t){return t.flat(100).map(e=>e.replace(S0,n))}function AT(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let m_=(()=>{class n{constructor(e,i,r,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new I0(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,i);return r instanceof RT?r.applyToHost(e):r instanceof A0&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const a=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestory;switch(i.encapsulation){case Ir.Emulated:o=new RT(a,c,i,this.appId,d);break;case Ir.ShadowDom:return new HN(a,c,e,i);default:o=new A0(a,c,i,d)}o.onDestroy=()=>r.delete(i.id),r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(ie(h_),ie(lf),ie(dh),ie(ST))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();class I0{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(k0[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(OT(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(OT(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=k0[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=k0[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(Xr.DashCase|Xr.Important)?t.style.setProperty(e,i,r&Xr.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Xr.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,AT(i)):this.eventManager.addEventListener(t,e,AT(i))}}function OT(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class HN extends I0{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=IT(r.id,r.styles);for(const a of o){const c=document.createElement("style");c.textContent=a,this.shadowRoot.appendChild(c)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class A0 extends I0{constructor(t,e,i,r,o=i.id){super(t),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=IT(o,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class RT extends A0{constructor(t,e,i,r,o){const a=r+"-"+i.id;super(t,e,i,o,a),this.contentAttr=function NN(n){return"_ngcontent-%COMP%".replace(S0,n)}(a),this.hostAttr=function BN(n){return"_nghost-%COMP%".replace(S0,n)}(a)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}let zN=(()=>{class n extends MT{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(ie(hn))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();const PT=["alt","control","meta","shift"],$N={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},jN={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let UN=(()=>{class n extends MT{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),a=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Jc().onAndCancel(e,o.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),PT.forEach(h=>{const p=i.indexOf(h);p>-1&&(i.splice(p,1),a+=h+".")}),a+=o,0!=i.length||0===o.length)return null;const d={};return d.domEventName=r,d.fullKey=a,d}static matchEventFullKeyCode(e,i){let r=$N[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),PT.forEach(a=>{a!==r&&(0,jN[a])(e)&&(o+=a+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{n.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(ie(hn))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();const ZN=EM(AP,"browser",[{provide:ef,useValue:gT},{provide:yM,useValue:function WN(){E0.makeCurrent()},multi:!0},{provide:hn,useFactory:function YN(){return function Gc(n){fr=n}(document),document},deps:[]}]),BT=new De(""),VT=[{provide:Yg,useClass:class FN{addToWindow(t){jn.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},jn.getAllAngularTestabilities=()=>t.getAllTestabilities(),jn.getAllAngularRootElements=()=>t.getAllRootElements(),jn.frameworkStabilizers||(jn.frameworkStabilizers=[]),jn.frameworkStabilizers.push(i=>{const r=jn.getAllAngularTestabilities();let o=r.length,a=!1;const c=function(d){a=a||d,o--,0==o&&i(a)};r.forEach(function(d){d.whenStable(c)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?Jc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:DM,useClass:Qv,deps:[Kt,Jv,Yg]},{provide:Qv,useClass:Qv,deps:[Kt,Jv,Yg]}],HT=[{provide:Wu,useValue:"root"},{provide:Qe,useFactory:function GN(){return new Qe},deps:[]},{provide:u_,useClass:zN,multi:!0,deps:[hn,Kt,ef]},{provide:u_,useClass:UN,multi:!0,deps:[hn]},{provide:m_,useClass:m_,deps:[h_,lf,dh,ST]},{provide:V,useExisting:m_},{provide:TT,useExisting:lf},{provide:lf,useClass:lf,deps:[hn]},{provide:h_,useClass:h_,deps:[u_,Kt]},{provide:yT,useClass:ON,deps:[]},[]];let zT=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:dh,useValue:e.appId},{provide:DT,useExisting:dh},AN]}}}return n.\u0275fac=function(e){return new(e||n)(ie(BT,12))},n.\u0275mod=Re({type:n}),n.\u0275inj=en({providers:[...HT,...VT],imports:[Ca,FP]}),n})();typeof window<"u"&&window;let f_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:function(e){let i=null;return i=e?new(e||n):ie(UT),i},providedIn:"root"}),n})(),UT=(()=>{class n extends f_{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case qn.NONE:return i;case qn.HTML:return _a(i,"HTML")?nr(i):pg(this._doc,String(i)).toString();case qn.STYLE:return _a(i,"Style")?nr(i):i;case qn.SCRIPT:if(_a(i,"Script"))return nr(i);throw new Error("unsafe value used in a script context");case qn.URL:return _a(i,"URL")?nr(i):Bu(String(i));case qn.RESOURCE_URL:if(_a(i,"ResourceURL"))return nr(i);throw new Error(`unsafe value used in a resource URL context (see ${Ai})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${Ai})`)}}bypassSecurityTrustHtml(e){return function Ly(n){return new Lu(n)}(e)}bypassSecurityTrustStyle(e){return function Nu(n){return new Py(n)}(e)}bypassSecurityTrustScript(e){return function Ny(n){return new lg(n)}(e)}bypassSecurityTrustUrl(e){return function _w(n){return new ym(n)}(e)}bypassSecurityTrustResourceUrl(e){return function ug(n){return new vm(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(ie(hn))},n.\u0275prov=rt({token:n,factory:function(e){let i=null;return i=e?new e:function tB(n){return new UT(n.get(hn))}(ie(Qo)),i},providedIn:"root"}),n})();class WT{}class nB{}const tl="*";function nl(n,t){return{type:7,name:n,definitions:t,options:{}}}function Mo(n,t=null){return{type:4,styles:t,timings:n}}function iB(n,t=null){return{type:3,steps:n,options:t}}function GT(n,t=null){return{type:2,steps:n,options:t}}function Si(n){return{type:6,styles:n,offset:null}}function xa(n,t,e){return{type:0,name:n,styles:t,options:e}}function To(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function rB(n=null){return{type:9,options:n}}function oB(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function YT(n){Promise.resolve().then(n)}class df{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){YT(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class ZT{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?YT(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish()}),a.onDestroy(()=>{++i==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,c)=>Math.max(a,c.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const R0="!";function qT(n){return new ve(3e3,!1)}function HB(){return typeof window<"u"&&typeof window.document<"u"}function P0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Kl(n){switch(n.length){case 0:return new df;case 1:return n[0];default:return new ZT(n)}}function KT(n,t,e,i,r=new Map,o=new Map){const a=[],c=[];let d=-1,h=null;if(i.forEach(p=>{const _=p.get("offset"),M=_==d,A=M&&h||new Map;p.forEach((N,j)=>{let ee=j,de=N;if("offset"!==j)switch(ee=t.normalizePropertyName(ee,a),de){case R0:de=r.get(j);break;case tl:de=o.get(j);break;default:de=t.normalizeStyleValue(j,ee,de,a)}A.set(ee,de)}),M||c.push(A),h=A,d=_}),a.length)throw function kB(n){return new ve(3502,!1)}();return c}function L0(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&N0(e,"start",n)));break;case"done":n.onDone(()=>i(e&&N0(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&N0(e,"destroy",n)))}}function N0(n,t,e){const o=B0(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),a=n._data;return null!=a&&(o._data=a),o}function B0(n,t,e,i,r="",o=0,a){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function js(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function XT(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let V0=(n,t)=>!1,QT=(n,t,e)=>[],JT=null;function H0(n){const t=n.parentNode||n.host;return t===JT?null:t}(P0()||typeof Element<"u")&&(HB()?(JT=(()=>document.documentElement)(),V0=(n,t)=>{for(;t;){if(t===n)return!0;t=H0(t)}return!1}):V0=(n,t)=>n.contains(t),QT=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let Ed=null,eE=!1;const tE=V0,nE=QT;let iE=(()=>{class n{validateStyleProperty(e){return function $B(n){Ed||(Ed=function jB(){return typeof document<"u"?document.body:null}()||{},eE=!!Ed.style&&"WebkitAppearance"in Ed.style);let t=!0;return Ed.style&&!function zB(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Ed.style,!t&&eE&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Ed.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return tE(e,i)}getParentElement(e){return H0(e)}query(e,i,r){return nE(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,a,c=[],d){return new df(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})(),z0=(()=>{class n{}return n.NOOP=new iE,n})();const UB=1e3,$0="ng-enter",p_="ng-leave",g_="ng-trigger",__=".ng-trigger",oE="ng-animating",j0=".ng-animating";function il(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:U0(parseFloat(t[1]),t[2])}function U0(n,t){return"s"===t?n*UB:n}function b_(n,t,e){return n.hasOwnProperty("duration")?n:function GB(n,t,e){let r,o=0,a="";if("string"==typeof n){const c=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===c)return t.push(qT()),{duration:0,delay:0,easing:""};r=U0(parseFloat(c[1]),c[2]);const d=c[3];null!=d&&(o=U0(parseFloat(d),c[4]));const h=c[5];h&&(a=h)}else r=n;if(!e){let c=!1,d=t.length;r<0&&(t.push(function sB(){return new ve(3100,!1)}()),c=!0),o<0&&(t.push(function aB(){return new ve(3101,!1)}()),c=!0),c&&t.splice(d,0,qT())}return{duration:r,delay:o,easing:a}}(n,t,e)}function uf(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function sE(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function Xl(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function cE(n,t,e){return e?t+":"+e+";":""}function lE(n){let t="";for(let e=0;e{const o=G0(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),P0()&&lE(n))}function kd(n,t){n.style&&(t.forEach((e,i)=>{const r=G0(i);n.style[r]=""}),P0()&&lE(n))}function hf(n){return Array.isArray(n)?1==n.length?n[0]:GT(n):n}const W0=new RegExp("{{\\s*(.+?)\\s*}}","g");function dE(n){let t=[];if("string"==typeof n){let e;for(;e=W0.exec(n);)t.push(e[1]);W0.lastIndex=0}return t}function mf(n,t,e){const i=n.toString(),r=i.replace(W0,(o,a)=>{let c=t[a];return null==c&&(e.push(function lB(n){return new ve(3003,!1)}()),c=""),c.toString()});return r==i?n:r}function y_(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const qB=/-+([a-z0-9])/g;function G0(n){return n.replace(qB,(...t)=>t[1].toUpperCase())}function KB(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Us(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function dB(n){return new ve(3004,!1)}()}}function uE(n,t){return window.getComputedStyle(n)[t]}const x_="*";function n3(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function r3(n,t,e){if(":"==n[0]){const d=function o3(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof d)return void t.push(d);n=d}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function wB(n){return new ve(3015,!1)}()),t;const r=i[1],o=i[2],a=i[3];t.push(hE(r,a));"<"==o[0]&&!(r==x_&&a==x_)&&t.push(hE(a,r))}(i,e,t)):e.push(n),e}const w_=new Set(["true","1"]),D_=new Set(["false","0"]);function hE(n,t){const e=w_.has(n)||D_.has(n),i=w_.has(t)||D_.has(t);return(r,o)=>{let a=n==x_||n==r,c=t==x_||t==o;return!a&&e&&"boolean"==typeof r&&(a=r?w_.has(n):D_.has(n)),!c&&i&&"boolean"==typeof o&&(c=o?w_.has(t):D_.has(t)),a&&c}}const s3=new RegExp("s*:selfs*,?","g");function Y0(n,t,e,i){return new a3(n).build(t,e,i)}class a3{constructor(t){this._driver=t}build(t,e,i){const r=new d3(e);return this._resetContextStyleTimingState(r),Us(this,hf(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push(function hB(){return new ve(3006,!1)}()),t.definitions.forEach(c=>{if(this._resetContextStyleTimingState(e),0==c.type){const d=c,h=d.name;h.toString().split(/\s*,\s*/).forEach(p=>{d.name=p,o.push(this.visitState(d,e))}),d.name=h}else if(1==c.type){const d=this.visitTransition(c,e);i+=d.queryCount,r+=d.depCount,a.push(d)}else e.errors.push(function mB(){return new ve(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,a=r||{};i.styles.forEach(c=>{c instanceof Map&&c.forEach(d=>{dE(d).forEach(h=>{a.hasOwnProperty(h)||o.add(h)})})}),o.size&&(y_(o.values()),e.errors.push(function fB(n,t){return new ve(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Us(this,hf(t.animation),e);return{type:1,matchers:n3(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Sd(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Us(this,i,e)),options:Sd(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(a=>{e.currentTime=i;const c=Us(this,a,e);return r=Math.max(r,e.currentTime),c});return e.currentTime=r,{type:3,steps:o,options:Sd(t.options)}}visitAnimate(t,e){const i=function h3(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Z0(b_(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Z0(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=b_(e,t);return Z0(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:Si({});if(5==o.type)r=this.visitKeyframes(o,e);else{let a=t.styles,c=!1;if(!a){c=!0;const h={};i.easing&&(h.easing=i.easing),a=Si(h)}e.currentTime+=i.duration+i.delay;const d=this.visitStyle(a,e);d.isEmptyStep=c,r=d}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let c of r)"string"==typeof c?c===tl?i.push(c):e.errors.push(new ve(3002,!1)):i.push(sE(c));let o=!1,a=null;return i.forEach(c=>{if(c instanceof Map&&(c.has("easing")&&(a=c.get("easing"),c.delete("easing")),!o))for(let d of c.values())if(d.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:a,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(a=>{"string"!=typeof a&&a.forEach((c,d)=>{const h=e.collectedStyles.get(e.currentQuerySelector),p=h.get(d);let _=!0;p&&(o!=r&&o>=p.startTime&&r<=p.endTime&&(e.errors.push(function gB(n,t,e,i,r){return new ve(3010,!1)}()),_=!1),o=p.startTime),_&&h.set(d,{startTime:o,endTime:r}),e.options&&function ZB(n,t,e){const i=t.params||{},r=dE(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function cB(n){return new ve(3001,!1)}())})}(c,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function _B(){return new ve(3011,!1)}()),i;let o=0;const a=[];let c=!1,d=!1,h=0;const p=t.steps.map(de=>{const Ve=this._makeStyleAst(de,e);let ge=null!=Ve.offset?Ve.offset:function u3(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(Ve.styles),Mt=0;return null!=ge&&(o++,Mt=Ve.offset=ge),d=d||Mt<0||Mt>1,c=c||Mt0&&o<_?e.errors.push(function vB(){return new ve(3202,!1)}()):0==o&&(M=1/(_-1));const A=_-1,N=e.currentTime,j=e.currentAnimateTimings,ee=j.duration;return p.forEach((de,Ve)=>{const ge=M>0?Ve==A?1:M*Ve:a[Ve],Mt=ge*ee;e.currentTime=N+j.delay+Mt,j.duration=Mt,this._validateStyleAst(de,e),de.offset=ge,i.styles.push(de)}),i}visitReference(t,e){return{type:8,animation:Us(this,hf(t.animation),e),options:Sd(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Sd(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Sd(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,a]=function c3(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(s3,"")),n=n.replace(/@\*/g,__).replace(/@\w+/g,e=>__+"-"+e.slice(1)).replace(/:animating/g,j0),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,js(e.collectedStyles,e.currentQuerySelector,new Map);const c=Us(this,hf(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:c,originalSelector:t.selector,options:Sd(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function CB(){return new ve(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:b_(t.timings,e.errors,!0);return{type:12,animation:Us(this,hf(t.animation),e),timings:i,options:null}}}class d3{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Sd(n){return n?(n=uf(n)).params&&(n.params=function l3(n){return n?uf(n):null}(n.params)):n={},n}function Z0(n,t,e){return{duration:n,delay:t,easing:e}}function q0(n,t,e,i,r,o,a=null,c=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:c}}class M_{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const p3=new RegExp(":enter","g"),_3=new RegExp(":leave","g");function K0(n,t,e,i,r,o=new Map,a=new Map,c,d,h=[]){return(new b3).buildKeyframes(n,t,e,i,r,o,a,c,d,h)}class b3{buildKeyframes(t,e,i,r,o,a,c,d,h,p=[]){h=h||new M_;const _=new X0(t,e,h,r,o,p,[]);_.options=d;const M=d.delay?il(d.delay):0;_.currentTimeline.delayNextStep(M),_.currentTimeline.setStyles([a],null,_.errors,d),Us(this,i,_);const A=_.timelines.filter(N=>N.containsAnimation());if(A.length&&c.size){let N;for(let j=A.length-1;j>=0;j--){const ee=A[j];if(ee.element===e){N=ee;break}}N&&!N.allowOnlyTimelineStyles()&&N.setStyles([c],null,_.errors,d)}return A.length?A.map(N=>N.buildKeyframes()):[q0(e,[],[],[],0,M,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(const r of t){const o=r?.delay;if(o){const a="number"==typeof o?o:il(mf(o,r?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const a=null!=i.duration?il(i.duration):null,c=null!=i.delay?il(i.delay):null;return 0!==a&&t.forEach(d=>{const h=e.appendInstructionToTimeline(d,a,c);o=Math.max(o,h.duration+h.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Us(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=T_);const a=il(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach(a=>Us(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?il(t.options.delay):0;t.steps.forEach(a=>{const c=e.createSubContext(t.options);o&&c.delayNextStep(o),Us(this,a,c),r=Math.max(r,c.currentTimeline.currentTime),i.push(c.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return b_(e.params?mf(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,c=e.createSubContext().currentTimeline;c.easing=i.easing,t.styles.forEach(d=>{c.forwardTime((d.offset||0)*o),c.setStyles(d.styles,d.easing,e.errors,e.options),c.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(c),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?il(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=T_);let a=i;const c=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=c.length;let d=null;c.forEach((h,p)=>{e.currentQueryIndex=p;const _=e.createSubContext(t.options,h);o&&_.delayNextStep(o),h===e.element&&(d=_.currentTimeline),Us(this,t.animation,_),_.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,_.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),d&&(e.currentTimeline.mergeTimelineCollectedStyles(d),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,a=Math.abs(o.duration),c=a*(e.currentQueryTotal-1);let d=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":d=c-d;break;case"full":d=i.currentStaggerTime}const p=e.currentTimeline;d&&p.delayNextStep(d);const _=p.currentTime;Us(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-_+(r.startTime-i.currentTimeline.startTime)}}const T_={};class X0{constructor(t,e,i,r,o,a,c,d){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=T_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=d||new E_(this._driver,e,0),c.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=il(i.duration)),null!=i.delay&&(r.delay=il(i.delay));const o=i.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(c=>{(!e||!a.hasOwnProperty(c))&&(a[c]=mf(o[c],a,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new X0(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=T_,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},o=new y3(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,a){let c=[];if(r&&c.push(this.element),t.length>0){t=(t=t.replace(p3,"."+this._enterClassName)).replace(_3,"."+this._leaveClassName);let h=this._driver.query(this.element,t,1!=i);0!==i&&(h=i<0?h.slice(h.length+i,h.length):h.slice(0,i)),c.push(...h)}return!o&&0==c.length&&a.push(function xB(n){return new ve(3014,!1)}()),c}}class E_{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new E_(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||tl),this._currentKeyframe.set(e,tl);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},a=function v3(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,tl)}else Xl(r,e)}),e}(t,this._globalTimelineStyles);for(let[c,d]of a){const h=mf(d,o,i);this._pendingStyles.set(c,h),this._localTimelineStyles.has(c)||this._backFill.set(c,this._globalTimelineStyles.get(c)??tl),this._updateStyle(c,h)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((c,d)=>{const h=Xl(c,new Map,this._backFill);h.forEach((p,_)=>{p===R0?t.add(_):p===tl&&e.add(_)}),i||h.set("offset",d/this.duration),r.push(h)});const o=t.size?y_(t.values()):[],a=e.size?y_(e.values()):[];if(i){const c=r[0],d=new Map(c);c.set("offset",0),d.set("offset",1),r=[c,d]}return q0(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class y3 extends E_{constructor(t,e,i,r,o,a,c=!1){super(t,e,a.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=c,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],a=i+e,c=e/a,d=Xl(t[0]);d.set("offset",0),o.push(d);const h=Xl(t[0]);h.set("offset",pE(c)),o.push(h);const p=t.length-1;for(let _=1;_<=p;_++){let M=Xl(t[_]);const A=M.get("offset");M.set("offset",pE((e+A*i)/a)),o.push(M)}i=a,e=0,r="",t=o}return q0(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function pE(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class Q0{}const C3=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class x3 extends Q0{normalizePropertyName(t,e){return G0(t)}normalizeStyleValue(t,e,i,r){let o="";const a=i.toString().trim();if(C3.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const c=i.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&r.push(function uB(n,t){return new ve(3005,!1)}())}return a+o}}function gE(n,t,e,i,r,o,a,c,d,h,p,_,M){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:a,timelines:c,queriedElements:d,preStyleProps:h,postStyleProps:p,totalTime:_,errors:M}}const J0={};class _E{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function w3(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,a,c,d,h,p){const _=[],M=this.ast.options&&this.ast.options.params||J0,N=this.buildStyles(i,c&&c.params||J0,_),j=d&&d.params||J0,ee=this.buildStyles(r,j,_),de=new Set,Ve=new Map,ge=new Map,Mt="void"===r,Yn={params:D3(j,M),delay:this.ast.options?.delay},ri=p?[]:K0(t,e,this.ast.animation,o,a,N,ee,Yn,h,_);let Eo=0;if(ri.forEach(ul=>{Eo=Math.max(ul.duration+ul.delay,Eo)}),_.length)return gE(e,this._triggerName,i,r,Mt,N,ee,[],[],Ve,ge,Eo,_);ri.forEach(ul=>{const hl=ul.element,kA=js(Ve,hl,new Set);ul.preStyleProps.forEach(Gd=>kA.add(Gd));const Zf=js(ge,hl,new Set);ul.postStyleProps.forEach(Gd=>Zf.add(Gd)),hl!==e&&de.add(hl)});const dl=y_(de.values());return gE(e,this._triggerName,i,r,Mt,N,ee,ri,dl,Ve,ge,Eo)}}function D3(n,t){const e=uf(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class M3{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=uf(this.defaultParams);return Object.keys(t).forEach(o=>{const a=t[o];null!==a&&(r[o]=a)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,c)=>{a&&(a=mf(a,r,e));const d=this.normalizer.normalizePropertyName(c,e);a=this.normalizer.normalizeStyleValue(c,d,a,e),i.set(c,a)})}),i}}class E3{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new M3(r.style,r.options&&r.options.params||{},i))}),bE(this.states,"true","1"),bE(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new _E(t,r,this.states))}),this.fallbackTransition=function k3(n,t,e){return new _E(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,c)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(a=>a.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function bE(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const S3=new M_;class I3{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],r=[],o=Y0(this._driver,e,i,r);if(i.length)throw function SB(n){return new ve(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=KT(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let a;const c=new Map;if(o?(a=K0(this._driver,e,o,$0,p_,new Map,new Map,i,S3,r),a.forEach(p=>{const _=js(c,p.element,new Map);p.postStyleProps.forEach(M=>_.set(M,null))})):(r.push(function IB(){return new ve(3300,!1)}()),a=[]),r.length)throw function AB(n){return new ve(3504,!1)}();c.forEach((p,_)=>{p.forEach((M,A)=>{p.set(A,this._driver.computeStyle(_,A,tl))})});const h=Kl(a.map(p=>{const _=c.get(p.element);return this._buildPlayer(p,new Map,_)}));return this._playersById.set(t,h),h.onDestroy(()=>this.destroy(t)),this.players.push(h),h}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function FB(n){return new ve(3301,!1)}();return e}listen(t,e,i,r){const o=B0(e,"","","");return L0(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const yE="ng-animate-queued",eC="ng-animate-disabled",P3=[],vE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},L3={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},wa="__ng_removed";class tC{get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function H3(n){return n??null}(i?t.value:t),i){const o=uf(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const ff="void",nC=new tC(ff);class N3{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Da(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function OB(n,t){return new ve(3302,!1)}();if(null==i||0==i.length)throw function RB(n){return new ve(3303,!1)}();if(!function z3(n){return"start"==n||"done"==n}(i))throw function PB(n,t){return new ve(3400,!1)}();const o=js(this._elementListeners,t,[]),a={name:e,phase:i,callback:r};o.push(a);const c=js(this._engine.statesByElement,t,new Map);return c.has(e)||(Da(t,g_),Da(t,g_+"-"+e),c.set(e,nC)),()=>{this._engine.afterFlush(()=>{const d=o.indexOf(a);d>=0&&o.splice(d,1),this._triggers.has(e)||c.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function LB(n){return new ve(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),a=new iC(this.id,e,t);let c=this._engine.statesByElement.get(t);c||(Da(t,g_),Da(t,g_+"-"+e),this._engine.statesByElement.set(t,c=new Map));let d=c.get(e);const h=new tC(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&d&&h.absorbOptions(d.options),c.set(e,h),d||(d=nC),h.value!==ff&&d.value===h.value){if(!function U3(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{kd(t,ee),Mc(t,de)})}return}const M=js(this._engine.playersByElement,t,[]);M.forEach(j=>{j.namespaceId==this.id&&j.triggerName==e&&j.queued&&j.destroy()});let A=o.matchTransition(d.value,h.value,t,h.params),N=!1;if(!A){if(!r)return;A=o.fallbackTransition,N=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:A,fromState:d,toState:h,player:a,isFallbackTransition:N}),N||(Da(t,yE),a.onStart(()=>{mh(t,yE)})),a.onDone(()=>{let j=this.players.indexOf(a);j>=0&&this.players.splice(j,1);const ee=this._engine.playersByElement.get(t);if(ee){let de=ee.indexOf(a);de>=0&&ee.splice(de,1)}}),this.players.push(a),M.push(a),a}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,__,!0);i.forEach(r=>{if(r[wa])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),a=new Map;if(o){const c=[];if(o.forEach((d,h)=>{if(a.set(h,d.value),this._triggers.has(h)){const p=this.trigger(t,h,ff,r);p&&c.push(p)}}),c.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,a),i&&Kl(c).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(o=>{const a=o.name;if(r.has(a))return;r.add(a);const d=this._triggers.get(a).fallbackTransition,h=i.get(a)||nC,p=new tC(ff),_=new iC(this.id,a,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:a,transition:d,fromState:h,toState:p,player:_,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let a=t;for(;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[wa];(!o||o===vE)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Da(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,a=this._elementListeners.get(o);a&&a.forEach(c=>{if(c.name==i.triggerName){const d=B0(o,i.triggerName,i.fromState.value,i.toState.value);d._data=t,L0(i.player,c.phase,d,c.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,a=r.transition.ast.depCount;return 0==o||0==a?o-a:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class B3{_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new N3(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,c=this.driver.getParentElement(e);for(;c;){const d=r.get(c);if(d){const h=i.indexOf(d);i.splice(h+1,0,t),a=!0;break}c=this.driver.getParentElement(c)}a||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(k_(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!k_(e))return;const o=e[wa];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(t){const a=this._fetchNamespace(t);a&&a.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Da(t,eC)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),mh(t,eC))}removeNode(t,e,i,r){if(k_(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const a=this.namespacesByHostElement.get(e);a&&a.id!==t&&a.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[wa]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return k_(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,__,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,j0,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Kl(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[wa];if(e&&e.setForRemoval){if(t[wa]=vE,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(eC)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Kl(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function NB(n){return new ve(3402,!1)}()}_flushAnimations(t,e){const i=new M_,r=[],o=new Map,a=[],c=new Map,d=new Map,h=new Map,p=new Set;this.disabledNodes.forEach(Vt=>{p.add(Vt);const rn=this.driver.query(Vt,".ng-animate-queued",!0);for(let gn=0;gn{const gn=$0+j++;N.set(rn,gn),Vt.forEach(Xn=>Da(Xn,gn))});const ee=[],de=new Set,Ve=new Set;for(let Vt=0;Vtde.add(Xn)):Ve.add(rn))}const ge=new Map,Mt=wE(M,Array.from(de));Mt.forEach((Vt,rn)=>{const gn=p_+j++;ge.set(rn,gn),Vt.forEach(Xn=>Da(Xn,gn))}),t.push(()=>{A.forEach((Vt,rn)=>{const gn=N.get(rn);Vt.forEach(Xn=>mh(Xn,gn))}),Mt.forEach((Vt,rn)=>{const gn=ge.get(rn);Vt.forEach(Xn=>mh(Xn,gn))}),ee.forEach(Vt=>{this.processLeaveNode(Vt)})});const Yn=[],ri=[];for(let Vt=this._namespaceList.length-1;Vt>=0;Vt--)this._namespaceList[Vt].drainQueuedTransitions(e).forEach(gn=>{const Xn=gn.player,eo=gn.element;if(Yn.push(Xn),this.collectedEnterElements.length){const ko=eo[wa];if(ko&&ko.setForMove){if(ko.previousTriggersValues&&ko.previousTriggersValues.has(gn.triggerName)){const Yd=ko.previousTriggersValues.get(gn.triggerName),Ea=this.statesByElement.get(gn.element);if(Ea&&Ea.has(gn.triggerName)){const Eb=Ea.get(gn.triggerName);Eb.value=Yd,Ea.set(gn.triggerName,Eb)}}return void Xn.destroy()}}const Ic=!_||!this.driver.containsElement(_,eo),Xs=ge.get(eo),od=N.get(eo),ji=this._buildInstruction(gn,i,od,Xs,Ic);if(ji.errors&&ji.errors.length)return void ri.push(ji);if(Ic)return Xn.onStart(()=>kd(eo,ji.fromStyles)),Xn.onDestroy(()=>Mc(eo,ji.toStyles)),void r.push(Xn);if(gn.isFallbackTransition)return Xn.onStart(()=>kd(eo,ji.fromStyles)),Xn.onDestroy(()=>Mc(eo,ji.toStyles)),void r.push(Xn);const AA=[];ji.timelines.forEach(ko=>{ko.stretchStartingKeyframe=!0,this.disabledNodes.has(ko.element)||AA.push(ko)}),ji.timelines=AA,i.append(eo,ji.timelines),a.push({instruction:ji,player:Xn,element:eo}),ji.queriedElements.forEach(ko=>js(c,ko,[]).push(Xn)),ji.preStyleProps.forEach((ko,Yd)=>{if(ko.size){let Ea=d.get(Yd);Ea||d.set(Yd,Ea=new Set),ko.forEach((Eb,Px)=>Ea.add(Px))}}),ji.postStyleProps.forEach((ko,Yd)=>{let Ea=h.get(Yd);Ea||h.set(Yd,Ea=new Set),ko.forEach((Eb,Px)=>Ea.add(Px))})});if(ri.length){const Vt=[];ri.forEach(rn=>{Vt.push(function BB(n,t){return new ve(3505,!1)}())}),Yn.forEach(rn=>rn.destroy()),this.reportError(Vt)}const Eo=new Map,dl=new Map;a.forEach(Vt=>{const rn=Vt.element;i.has(rn)&&(dl.set(rn,rn),this._beforeAnimationBuild(Vt.player.namespaceId,Vt.instruction,Eo))}),r.forEach(Vt=>{const rn=Vt.element;this._getPreviousPlayers(rn,!1,Vt.namespaceId,Vt.triggerName,null).forEach(Xn=>{js(Eo,rn,[]).push(Xn),Xn.destroy()})});const ul=ee.filter(Vt=>ME(Vt,d,h)),hl=new Map;xE(hl,this.driver,Ve,h,tl).forEach(Vt=>{ME(Vt,d,h)&&ul.push(Vt)});const Zf=new Map;A.forEach((Vt,rn)=>{xE(Zf,this.driver,new Set(Vt),d,R0)}),ul.forEach(Vt=>{const rn=hl.get(Vt),gn=Zf.get(Vt);hl.set(Vt,new Map([...Array.from(rn?.entries()??[]),...Array.from(gn?.entries()??[])]))});const Gd=[],SA=[],IA={};a.forEach(Vt=>{const{element:rn,player:gn,instruction:Xn}=Vt;if(i.has(rn)){if(p.has(rn))return gn.onDestroy(()=>Mc(rn,Xn.toStyles)),gn.disabled=!0,gn.overrideTotalTime(Xn.totalTime),void r.push(gn);let eo=IA;if(dl.size>1){let Xs=rn;const od=[];for(;Xs=Xs.parentNode;){const ji=dl.get(Xs);if(ji){eo=ji;break}od.push(Xs)}od.forEach(ji=>dl.set(ji,eo))}const Ic=this._buildAnimation(gn.namespaceId,Xn,Eo,o,Zf,hl);if(gn.setRealPlayer(Ic),eo===IA)Gd.push(gn);else{const Xs=this.playersByElement.get(eo);Xs&&Xs.length&&(gn.parentPlayer=Kl(Xs)),r.push(gn)}}else kd(rn,Xn.fromStyles),gn.onDestroy(()=>Mc(rn,Xn.toStyles)),SA.push(gn),p.has(rn)&&r.push(gn)}),SA.forEach(Vt=>{const rn=o.get(Vt.element);if(rn&&rn.length){const gn=Kl(rn);Vt.setRealPlayer(gn)}}),r.forEach(Vt=>{Vt.parentPlayer?Vt.syncPlayerEvents(Vt.parentPlayer):Vt.destroy()});for(let Vt=0;Vt!Ic.destroyed);eo.length?$3(this,rn,eo):this.processLeaveNode(rn)}return ee.length=0,Gd.forEach(Vt=>{this.players.push(Vt),Vt.onDone(()=>{Vt.destroy();const rn=this.players.indexOf(Vt);this.players.splice(rn,1)}),Vt.play()}),Gd}elementContainsData(t,e){let i=!1;const r=e[wa];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let a=[];if(e){const c=this.playersByQueriedElement.get(t);c&&(a=c)}else{const c=this.playersByElement.get(t);if(c){const d=!o||o==ff;c.forEach(h=>{h.queued||!d&&h.triggerName!=r||a.push(h)})}}return(i||r)&&(a=a.filter(c=>!(i&&i!=c.namespaceId||r&&r!=c.triggerName))),a}_beforeAnimationBuild(t,e,i){const o=e.element,a=e.isRemovalTransition?void 0:t,c=e.isRemovalTransition?void 0:e.triggerName;for(const d of e.timelines){const h=d.element,p=h!==o,_=js(i,h,[]);this._getPreviousPlayers(h,p,a,c,e.toState).forEach(A=>{const N=A.getRealPlayer();N.beforeDestroy&&N.beforeDestroy(),A.destroy(),_.push(A)})}kd(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,a){const c=e.triggerName,d=e.element,h=[],p=new Set,_=new Set,M=e.timelines.map(N=>{const j=N.element;p.add(j);const ee=j[wa];if(ee&&ee.removedBeforeQueried)return new df(N.duration,N.delay);const de=j!==d,Ve=function j3(n){const t=[];return DE(n,t),t}((i.get(j)||P3).map(Eo=>Eo.getRealPlayer())).filter(Eo=>!!Eo.element&&Eo.element===j),ge=o.get(j),Mt=a.get(j),Yn=KT(0,this._normalizer,0,N.keyframes,ge,Mt),ri=this._buildPlayer(N,Yn,Ve);if(N.subTimeline&&r&&_.add(j),de){const Eo=new iC(t,c,j);Eo.setRealPlayer(ri),h.push(Eo)}return ri});h.forEach(N=>{js(this.playersByQueriedElement,N.element,[]).push(N),N.onDone(()=>function V3(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,N.element,N))}),p.forEach(N=>Da(N,oE));const A=Kl(M);return A.onDestroy(()=>{p.forEach(N=>mh(N,oE)),Mc(d,e.toStyles)}),_.forEach(N=>{js(r,N,[]).push(A)}),A}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new df(t.duration,t.delay)}}class iC{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new df,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>L0(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){js(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function k_(n){return n&&1===n.nodeType}function CE(n,t){const e=n.style.display;return n.style.display=t??"none",e}function xE(n,t,e,i,r){const o=[];e.forEach(d=>o.push(CE(d)));const a=[];i.forEach((d,h)=>{const p=new Map;d.forEach(_=>{const M=t.computeStyle(h,_,r);p.set(_,M),(!M||0==M.length)&&(h[wa]=L3,a.push(h))}),n.set(h,p)});let c=0;return e.forEach(d=>CE(d,o[c++])),a}function wE(n,t){const e=new Map;if(n.forEach(c=>e.set(c,[])),0==t.length)return e;const i=1,r=new Set(t),o=new Map;function a(c){if(!c)return i;let d=o.get(c);if(d)return d;const h=c.parentNode;return d=e.has(h)?h:r.has(h)?i:a(h),o.set(c,d),d}return t.forEach(c=>{const d=a(c);d!==i&&e.get(d).push(c)}),e}function Da(n,t){n.classList?.add(t)}function mh(n,t){n.classList?.remove(t)}function $3(n,t,e){Kl(e).onDone(()=>n.processLeaveNode(t))}function DE(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class S_{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new B3(t,e,i),this._timelineEngine=new I3(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const a=t+"-"+r;let c=this._triggerCache[a];if(!c){const d=[],h=[],p=Y0(this._driver,o,d,h);if(d.length)throw function EB(n,t){return new ve(3404,!1)}();c=function T3(n,t,e){return new E3(n,t,e)}(r,p,this._normalizer),this._triggerCache[a]=c}this._transitionEngine.registerTrigger(e,r,c)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,a]=XT(i);this._timelineEngine.command(o,e,a,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[a,c]=XT(i);return this._timelineEngine.listen(a,e,c,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let G3=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Mc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Mc(this._element,this._initialStyles),this._endStyles&&(Mc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(kd(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(kd(this._element,this._endStyles),this._endStyles=null),Mc(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function rC(n){let t=null;return n.forEach((e,i)=>{(function Y3(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class TE{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:uE(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Z3{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return tE(t,e)}getParentElement(t){return H0(t)}query(t,e,i){return nE(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,a=[]){const d={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(d.easing=o);const h=new Map,p=a.filter(A=>A instanceof TE);(function XB(n,t){return 0===n||0===t})(i,r)&&p.forEach(A=>{A.currentSnapshot.forEach((N,j)=>h.set(j,N))});let _=function YB(n){return n.length?n[0]instanceof Map?n:n.map(t=>sE(t)):[]}(e).map(A=>Xl(A));_=function QB(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,a)=>{i.has(a)||r.push(a),i.set(a,o)}),r.length)for(let o=1;oa.set(c,uE(n,c)))}}return t}(t,_,h);const M=function W3(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=rC(t[0]),t.length>1&&(i=rC(t[t.length-1]))):t instanceof Map&&(e=rC(t)),e||i?new G3(n,e,i):null}(t,_);return new TE(t,_,d,M)}}let q3=(()=>{class n extends WT{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ir.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?GT(e):e;return EE(this._renderer,null,i,"register",[r]),new K3(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(ie(V),ie(hn))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();class K3 extends nB{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new X3(this._id,t,e||{},this._renderer)}}class X3{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return EE(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function EE(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const kE="@.disabled";let Q3=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,a)=>{const c=a?.parentNode(o);c&&a.removeChild(c,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let p=this._rendererCache.get(o);return p||(p=new SE("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,p)),p}const a=i.id,c=i.id+"-"+this._currentId;this._currentId++,this.engine.register(c,e);const d=p=>{Array.isArray(p)?p.forEach(d):this.engine.registerTrigger(a,c,e,p.name,p)};return i.data.animation.forEach(d),new J3(this,c,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[a,c]=o;a(c)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(ie(V),ie(S_),ie(Kt))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();class SE{constructor(t,e,i,r){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==kE?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class J3 extends SE{constructor(t,e,i,r,o){super(e,i,r,o),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==kE?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function eV(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),a="";return"@"!=o.charAt(0)&&([o,a]=function tV(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,a,c=>{this.factory.scheduleListenerCallback(c._data||-1,i,c)})}return this.delegate.listen(t,e,i)}}const IE=[{provide:WT,useClass:q3},{provide:Q0,useFactory:function iV(){return new x3}},{provide:S_,useClass:(()=>{class n extends S_{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(ie(hn),ie(z0),ie(Q0),ie(tf))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})()},{provide:V,useFactory:function rV(n,t,e){return new Q3(n,t,e)},deps:[m_,S_,Kt]}],oC=[{provide:z0,useFactory:()=>new Z3},{provide:Br,useValue:"BrowserAnimations"},...IE],AE=[{provide:z0,useClass:iE},{provide:Br,useValue:"NoopAnimations"},...IE];let oV=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?AE:oC}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({providers:oC,imports:[zT]}),n})();const{isArray:sV}=Array,{getPrototypeOf:aV,prototype:cV,keys:lV}=Object;function FE(n){if(1===n.length){const t=n[0];if(sV(t))return{args:t,keys:null};if(function dV(n){return n&&"object"==typeof n&&aV(n)===cV}(t)){const e=lV(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}const{isArray:uV}=Array;function sC(n){return Nn(t=>function hV(n,t){return uV(t)?n(...t):n(t)}(n,t))}function OE(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function RE(...n){const t=No(n),{args:e,keys:i}=FE(n),r=new ye(o=>{const{length:a}=e;if(!a)return void o.complete();const c=new Array(a);let d=a,h=a;for(let p=0;p{_||(_=!0,h--),c[p]=M},()=>d--,void 0,()=>{(!d||!_)&&(h||o.next(i?OE(i,c):c),o.complete())}))}});return t?r.pipe(sC(t)):r}let PE=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(D(ne),D(k))},n.\u0275dir=C({type:n}),n})(),Id=(()=>{class n extends PE{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275dir=C({type:n,features:[ht]}),n})();const yr=new De("NgValueAccessor"),fV={provide:yr,useExisting:Jt(()=>co),multi:!0},gV=new De("CompositionEventMode");let co=(()=>{class n extends PE{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function pV(){const n=Jc()?Jc().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(D(ne),D(k),D(gV,8))},n.\u0275dir=C({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&ce("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[Wt([fV]),ht]}),n})();const _V=!1;function Ql(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function NE(n){return null!=n&&"number"==typeof n.length}const $i=new De("NgValidators"),Jl=new De("NgAsyncValidators"),bV=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Sn{static min(t){return function BE(n){return t=>{if(Ql(t.value)||Ql(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(Ql(t.value)||Ql(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function HE(n){return Ql(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function zE(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function $E(n){return Ql(n.value)||bV.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function jE(n){return t=>Ql(t.value)||!NE(t.value)?null:t.value.lengthNE(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function WE(n){if(!n)return A_;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(Ql(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return XE(t)}static composeAsync(t){return QE(t)}}function A_(n){return null}function GE(n){return null!=n}function YE(n){const t=Pg(n)?hs(n):n;if(_V&&!m1(t)){let e="Expected async validator to return Promise or Observable.";throw"object"==typeof n&&(e+=" Are you using a synchronous validator where an async validator is expected?"),new ve(-1101,e)}return t}function ZE(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function qE(n,t){return t.map(e=>e(n))}function KE(n){return n.map(t=>function yV(n){return!n.validate}(t)?t:e=>t.validate(e))}function XE(n){if(!n)return null;const t=n.filter(GE);return 0==t.length?null:function(e){return ZE(qE(e,t))}}function aC(n){return null!=n?XE(KE(n)):null}function QE(n){if(!n)return null;const t=n.filter(GE);return 0==t.length?null:function(e){return RE(qE(e,t).map(YE)).pipe(Nn(ZE))}}function cC(n){return null!=n?QE(KE(n)):null}function JE(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function ek(n){return n._rawValidators}function tk(n){return n._rawAsyncValidators}function lC(n){return n?Array.isArray(n)?n:[n]:[]}function F_(n,t){return Array.isArray(n)?n.includes(t):n===t}function nk(n,t){const e=lC(t);return lC(n).forEach(r=>{F_(e,r)||e.push(r)}),e}function ik(n,t){return lC(t).filter(e=>!F_(n,e))}class rk{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=aC(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=cC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class ns extends rk{get formDirective(){return null}get path(){return null}}class Qa extends rk{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ok{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Qr=(()=>{class n extends ok{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(D(Qa,2))},n.\u0275dir=C({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&un("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[ht]}),n})(),Ws=(()=>{class n extends ok{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(D(ns,10))},n.\u0275dir=C({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&un("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[ht]}),n})();function sk(n,t){return n?`with name: '${t}'`:`at index: ${t}`}const hC=!1,pf="VALID",R_="INVALID",fh="PENDING",gf="DISABLED";function mC(n){return(P_(n)?n.validators:n)||null}function fC(n,t){return(P_(t)?t.asyncValidators:n)||null}function P_(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function ak(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new ve(1e3,hC?function wV(n){return`\n There are no form controls registered with this ${n?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(t):"");if(!i[e])throw new ve(1001,hC?function DV(n,t){return`Cannot find form control ${sk(n,t)}`}(t,e):"")}function ck(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new ve(1002,hC?function MV(n,t){return`Must supply a value for form control ${sk(n,t)}`}(t,r):"")})}class pC{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===pf}get invalid(){return this.status===R_}get pending(){return this.status==fh}get disabled(){return this.status===gf}get enabled(){return this.status!==gf}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(nk(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(nk(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(ik(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(ik(t,this._rawAsyncValidators))}hasValidator(t){return F_(this._rawValidators,t)}hasAsyncValidator(t){return F_(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=fh,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=gf,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=pf,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===pf||this.status===fh)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?gf:pf}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=fh,this._hasOwnPendingAsyncValidator=!0;const e=YE(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Ze,this.statusChanges=new Ze}_calculateStatus(){return this._allControlsDisabled()?gf:this.errors?R_:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(fh)?fh:this._anyControlsHaveStatus(R_)?R_:pf}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){P_(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function TV(n){return Array.isArray(n)?aC(n):n||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function EV(n){return Array.isArray(n)?cC(n):n||null}(this._rawAsyncValidators)}}class is extends pC{constructor(t,e,i){super(mC(e),fC(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){ck(this,!0,t),Object.keys(t).forEach(i=>{ak(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const Ad=new De("CallSetDisabledState",{providedIn:"root",factory:()=>_f}),_f="always";function L_(n,t){return[...t.path,n]}function bf(n,t,e=_f){gC(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||"always"===e)&&t.valueAccessor.setDisabledState?.(n.disabled),function IV(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&lk(n,t)})}(n,t),function FV(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function AV(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&lk(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function SV(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function N_(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),V_(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function B_(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function gC(n,t){const e=ek(n);null!==t.validator?n.setValidators(JE(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=tk(n);null!==t.asyncValidator?n.setAsyncValidators(JE(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();B_(t._rawValidators,r),B_(t._rawAsyncValidators,r)}function V_(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=ek(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=tk(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return B_(t._rawValidators,i),B_(t._rawAsyncValidators,i),e}function lk(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function dk(n,t){gC(n,t)}function bC(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function uk(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function yC(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===co?e=o:function PV(n){return Object.getPrototypeOf(n.constructor)===Id}(o)?i=o:r=o}),r||i||e||null}const NV={provide:ns,useExisting:Jt(()=>ph)},yf=(()=>Promise.resolve())();let ph=(()=>{class n extends ns{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ze,this.form=new is({},aC(e),cC(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){yf.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),bf(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){yf.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){yf.then(()=>{const i=this._findContainer(e.path),r=new is({});dk(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){yf.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){yf.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,uk(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(D($i,10),D(Jl,10),D(Ad,8))},n.\u0275dir=C({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&ce("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Wt([NV]),ht]}),n})();function hk(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function mk(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Ct=class extends pC{constructor(t=null,e,i){super(mC(e),fC(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),P_(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=mk(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){hk(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){hk(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){mk(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},HV={provide:Qa,useExisting:Jt(()=>vC)},gk=(()=>Promise.resolve())();let vC=(()=>{class n extends Qa{constructor(e,i,r,o,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new Ct,this._registered=!1,this.update=new Ze,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=yC(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),bC(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){bf(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){gk.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function c0(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);gk.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?L_(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(D(ns,9),D($i,10),D(Jl,10),D(yr,10),D(li,8),D(Ad,8))},n.\u0275dir=C({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Wt([HV]),ht,Ei]}),n})(),Tc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const zV={provide:yr,useExisting:Jt(()=>CC),multi:!0};let CC=(()=>{class n extends Id{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275dir=C({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&ce("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[Wt([zV]),ht]}),n})(),_k=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({}),n})();const xC=new De("NgModelWithFormControlWarning"),WV={provide:Qa,useExisting:Jt(()=>gh)};let gh=(()=>{class n extends Qa{set isDisabled(e){}constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new Ze,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=yC(0,r)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&N_(i,this,!1),bf(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}bC(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&N_(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(D($i,10),D(Jl,10),D(yr,10),D(xC,8),D(Ad,8))},n.\u0275dir=C({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Wt([WV]),ht,Ei]}),n})();const GV={provide:ns,useExisting:Jt(()=>Jr)};let Jr=(()=>{class n extends ns{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ze,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(V_(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return bf(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){N_(e.control||null,e,!1),function LV(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,uk(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(N_(i||null,e),(n=>n instanceof Ct)(r)&&(bf(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);dk(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function OV(n,t){return V_(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){gC(this.form,this),this._oldForm&&V_(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(D($i,10),D(Jl,10),D(Ad,8))},n.\u0275dir=C({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&ce("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Wt([GV]),ht,Ei]}),n})();const qV={provide:Qa,useExisting:Jt(()=>ws)};let ws=(()=>{class n extends Qa{set isDisabled(e){}constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new Ze,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=yC(0,o)}ngOnChanges(e){this._added||this._setUpControl(),bC(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return L_(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(D(ns,13),D($i,10),D(Jl,10),D(yr,10),D(xC,8))},n.\u0275dir=C({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Wt([qV]),ht,Ei]}),n})(),Ak=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[_k]}),n})();class _h extends pC{constructor(t,e,i){super(mC(e),fC(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){ck(this,!1,t),t.forEach((i,r)=>{ak(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}}let u5=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Ad,useValue:e.callSetDisabledState??_f}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[Ak]}),n})(),h5=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:xC,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Ad,useValue:e.callSetDisabledState??_f}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[Ak]}),n})();function Ds(...n){return hs(n,Bo(n))}function Ms(n,t){return Ke((e,i)=>{let r=0;e.subscribe(Ot(i,o=>n.call(t,o,r++)&&i.next(o)))})}class H_{}class SC{}class rl{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof rl?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new rl;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof rl?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let a=this.headers.get(e);if(!a)return;a=a.filter(c=>-1===o.indexOf(c)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class f5{encodeKey(t){return Fk(t)}encodeValue(t){return Fk(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const g5=/%(\d[a-f0-9])/gi,_5={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Fk(n){return encodeURIComponent(n).replace(g5,(t,e)=>_5[e]??t)}function z_(n){return`${n}`}class ed{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new f5,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function p5(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[a,c]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],d=e.get(a)||[];d.push(c),e.set(a,d)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(z_):[z_(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new ed({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(z_(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(z_(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class b5{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function Ok(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Rk(n){return typeof Blob<"u"&&n instanceof Blob}function Pk(n){return typeof FormData<"u"&&n instanceof FormData}class vf{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function y5(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new rl),this.context||(this.context=new b5),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const c=e.indexOf("?");this.urlWithParams=e+(-1===c?"?":c_.set(M,t.setHeaders[M]),d)),t.setParams&&(h=Object.keys(t.setParams).reduce((_,M)=>_.set(M,t.setParams[M]),h)),new vf(e,i,o,{params:h,headers:d,context:p,reportProgress:c,responseType:r,withCredentials:a})}}var vr=(()=>((vr=vr||{})[vr.Sent=0]="Sent",vr[vr.UploadProgress=1]="UploadProgress",vr[vr.ResponseHeader=2]="ResponseHeader",vr[vr.DownloadProgress=3]="DownloadProgress",vr[vr.Response=4]="Response",vr[vr.User=5]="User",vr))();class IC{constructor(t,e=200,i="OK"){this.headers=t.headers||new rl,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class AC extends IC{constructor(t={}){super(t),this.type=vr.ResponseHeader}clone(t={}){return new AC({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class $_ extends IC{constructor(t={}){super(t),this.type=vr.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new $_({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Lk extends IC{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function FC(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Cf=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof vf)o=e;else{let d,h;d=r.headers instanceof rl?r.headers:new rl(r.headers),r.params&&(h=r.params instanceof ed?r.params:new ed({fromObject:r.params})),o=new vf(e,i,void 0!==r.body?r.body:null,{headers:d,context:r.context,params:h,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const a=Ds(o).pipe(function m5(n,t){return X(t)?Po(n,t,1):Po(n,1)}(d=>this.handler.handle(d)));if(e instanceof vf||"events"===r.observe)return a;const c=a.pipe(Ms(d=>d instanceof $_));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(Nn(d=>{if(null!==d.body&&!(d.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return d.body}));case"blob":return c.pipe(Nn(d=>{if(null!==d.body&&!(d.body instanceof Blob))throw new Error("Response is not a Blob.");return d.body}));case"text":return c.pipe(Nn(d=>{if(null!==d.body&&"string"!=typeof d.body)throw new Error("Response is not a string.");return d.body}));default:return c.pipe(Nn(d=>d.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new ed).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,FC(r,i))}post(e,i,r={}){return this.request("POST",e,FC(r,i))}put(e,i,r={}){return this.request("PUT",e,FC(r,i))}}return n.\u0275fac=function(e){return new(e||n)(ie(H_))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();function Nk(n,t){return t(n)}function C5(n,t){return(e,i)=>t.intercept(e,{handle:r=>n(r,i)})}const w5=new De("HTTP_INTERCEPTORS"),xf=new De("HTTP_INTERCEPTOR_FNS");function D5(){let n=null;return(t,e)=>(null===n&&(n=(_i(w5,{optional:!0})??[]).reduceRight(C5,Nk)),n(t,e))}let Bk=(()=>{class n extends H_{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(xf)));this.chain=i.reduceRight((r,o)=>function x5(n,t,e){return(i,r)=>e.runInContext(()=>t(i,o=>n(o,r)))}(r,o,this.injector),Nk)}return this.chain(e,i=>this.backend.handle(i))}}return n.\u0275fac=function(e){return new(e||n)(ie(SC),ie(Kc))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();const k5=/^\)\]\}',?\n/;let Hk=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ye(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((A,N)=>r.setRequestHeader(A,N.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const A=e.detectContentTypeHeader();null!==A&&r.setRequestHeader("Content-Type",A)}if(e.responseType){const A=e.responseType.toLowerCase();r.responseType="json"!==A?A:"text"}const o=e.serializeBody();let a=null;const c=()=>{if(null!==a)return a;const A=r.statusText||"OK",N=new rl(r.getAllResponseHeaders()),j=function S5(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return a=new AC({headers:N,status:r.status,statusText:A,url:j}),a},d=()=>{let{headers:A,status:N,statusText:j,url:ee}=c(),de=null;204!==N&&(de=typeof r.response>"u"?r.responseText:r.response),0===N&&(N=de?200:0);let Ve=N>=200&&N<300;if("json"===e.responseType&&"string"==typeof de){const ge=de;de=de.replace(k5,"");try{de=""!==de?JSON.parse(de):null}catch(Mt){de=ge,Ve&&(Ve=!1,de={error:Mt,text:de})}}Ve?(i.next(new $_({body:de,headers:A,status:N,statusText:j,url:ee||void 0})),i.complete()):i.error(new Lk({error:de,headers:A,status:N,statusText:j,url:ee||void 0}))},h=A=>{const{url:N}=c(),j=new Lk({error:A,status:r.status||0,statusText:r.statusText||"Unknown Error",url:N||void 0});i.error(j)};let p=!1;const _=A=>{p||(i.next(c()),p=!0);let N={type:vr.DownloadProgress,loaded:A.loaded};A.lengthComputable&&(N.total=A.total),"text"===e.responseType&&r.responseText&&(N.partialText=r.responseText),i.next(N)},M=A=>{let N={type:vr.UploadProgress,loaded:A.loaded};A.lengthComputable&&(N.total=A.total),i.next(N)};return r.addEventListener("load",d),r.addEventListener("error",h),r.addEventListener("timeout",h),r.addEventListener("abort",h),e.reportProgress&&(r.addEventListener("progress",_),null!==o&&r.upload&&r.upload.addEventListener("progress",M)),r.send(o),i.next({type:vr.Sent}),()=>{r.removeEventListener("error",h),r.removeEventListener("abort",h),r.removeEventListener("load",d),r.removeEventListener("timeout",h),e.reportProgress&&(r.removeEventListener("progress",_),null!==o&&r.upload&&r.upload.removeEventListener("progress",M)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(ie(yT))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();const OC=new De("XSRF_ENABLED"),zk=new De("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),$k=new De("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class jk{}let F5=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=oT(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(ie(hn),ie(ef),ie(zk))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();function O5(n,t){const e=n.url.toLowerCase();if(!_i(OC)||"GET"===n.method||"HEAD"===n.method||e.startsWith("http://")||e.startsWith("https://"))return t(n);const i=_i(jk).getToken(),r=_i($k);return null!=i&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,i)})),t(n)}var or=(()=>((or=or||{})[or.Interceptors=0]="Interceptors",or[or.LegacyInterceptors=1]="LegacyInterceptors",or[or.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",or[or.NoXsrfProtection=3]="NoXsrfProtection",or[or.JsonpSupport=4]="JsonpSupport",or[or.RequestsMadeViaParent=5]="RequestsMadeViaParent",or))();function bh(n,t){return{\u0275kind:n,\u0275providers:t}}function R5(...n){const t=[Cf,Hk,Bk,{provide:H_,useExisting:Bk},{provide:SC,useExisting:Hk},{provide:xf,useValue:O5,multi:!0},{provide:OC,useValue:!0},{provide:jk,useClass:F5}];for(const e of n)t.push(...e.\u0275providers);return function Cg(n){return{\u0275providers:n}}(t)}const Uk=new De("LEGACY_INTERCEPTOR_FN");let L5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({providers:[R5(bh(or.LegacyInterceptors,[{provide:Uk,useFactory:D5},{provide:xf,useExisting:Uk,multi:!0}]))]}),n})();function Ft(n){return null!=n&&"false"!=`${n}`}function Ec(n,t=0){return function N5(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function wf(n){return Array.isArray(n)?n:[n]}function Cr(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Yi(n){return n instanceof k?n.nativeElement:n}const V5=["addListener","removeListener"],H5=["addEventListener","removeEventListener"],z5=["on","off"];function kc(n,t,e,i){if(X(e)&&(i=e,e=void 0),i)return kc(n,t,e).pipe(sC(i));const[r,o]=function U5(n){return X(n.addEventListener)&&X(n.removeEventListener)}(n)?H5.map(a=>c=>n[a](t,c,e)):function $5(n){return X(n.addListener)&&X(n.removeListener)}(n)?V5.map(Wk(n,t)):function j5(n){return X(n.on)&&X(n.off)}(n)?z5.map(Wk(n,t)):[];if(!r&&B(n))return Po(a=>kc(a,t,e))(Ci(n));if(!r)throw new TypeError("Invalid event target");return new ye(a=>{const c=(...d)=>a.next(1o(c)})}function Wk(n,t){return e=>i=>n[e](t,i)}class W5 extends re{constructor(t,e){super()}schedule(t,e=0){return this}}const j_={setInterval(n,t,...e){const{delegate:i}=j_;return i?.setInterval?i.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=j_;return(t?.clearInterval||clearInterval)(n)},delegate:void 0};class RC extends W5{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var i;if(this.closed)return this;this.state=t;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(t,e,i=0){return j_.setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&j_.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,te(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const Df={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=Df;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=t(o=>{e=void 0,n(o)});return new re(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:t}=Df;return(t?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:t}=Df;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0},Gk={now:()=>(Gk.delegate||Date).now(),delegate:void 0};class Mf{constructor(t,e=Mf.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}Mf.now=Gk.now;class PC extends Mf{constructor(t,e=Mf.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let i;this._active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const Yk=new class Y5 extends PC{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class G5 extends RC{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Df.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Df.cancelAnimationFrame(e),t._scheduled=void 0)}});let LC,Z5=1;const U_={};function Zk(n){return n in U_&&(delete U_[n],!0)}const q5={setImmediate(n){const t=Z5++;return U_[t]=!0,LC||(LC=Promise.resolve()),LC.then(()=>Zk(t)&&n()),t},clearImmediate(n){Zk(n)}},{setImmediate:K5,clearImmediate:X5}=q5,W_={setImmediate(...n){const{delegate:t}=W_;return(t?.setImmediate||K5)(...n)},clearImmediate(n){const{delegate:t}=W_;return(t?.clearImmediate||X5)(n)},delegate:void 0},NC=new class J5 extends PC{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class Q5 extends RC{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=W_.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(W_.clearImmediate(e),t._scheduled=void 0)}}),Tf=new PC(RC),e4=Tf;function G_(n=0,t,e=e4){let i=-1;return null!=t&&(ic(t)?e=t:i=t),new ye(r=>{let o=function n4(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function BC(n,t=Tf){return function t4(n){return Ke((t,e)=>{let i=!1,r=null,o=null,a=!1;const c=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const h=r;r=null,e.next(h)}a&&e.complete()},d=()=>{o=null,a&&e.complete()};t.subscribe(Ot(e,h=>{i=!0,r=h,o||Ci(n(h)).subscribe(o=Ot(e,c,d))},()=>{a=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>G_(n,t))}function xn(n){return Ke((t,e)=>{Ci(n).subscribe(Ot(e,()=>e.complete(),At)),!e.closed&&t.subscribe(e)})}function Y_(...n){return function r4(){return Lo(1)}()(hs(n,Bo(n)))}function Hr(...n){const t=Bo(n);return Ke((e,i)=>{(t?Y_(n,e,t):Y_(n,e)).subscribe(i)})}let VC;try{VC=typeof Intl<"u"&&Intl.v8BreakIterator}catch{VC=!1}let yh,Ri=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?_T(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!VC)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(ie(ef))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const qk=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Kk(){if(yh)return yh;if("object"!=typeof document||!document)return yh=new Set(qk),yh;let n=document.createElement("input");return yh=new Set(qk.filter(t=>(n.setAttribute("type",t),n.type===t))),yh}let Ef,Z_,Od,HC;function Ja(n){return function o4(){if(null==Ef&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ef=!0}))}finally{Ef=Ef||!1}return Ef}()?n:!!n.capture}function Xk(){if(null==Od){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Od=!1,Od;if("scrollBehavior"in document.documentElement.style)Od=!0;else{const n=Element.prototype.scrollTo;Od=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Od}function kf(){if("object"!=typeof document||!document)return 0;if(null==Z_){const n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",n.appendChild(e),document.body.appendChild(n),Z_=0,0===n.scrollLeft&&(n.scrollLeft=1,Z_=0===n.scrollLeft?1:2),n.remove()}return Z_}function zC(n){if(function s4(){if(null==HC){const n=typeof document<"u"?document.head:null;HC=!(!n||!n.createShadowRoot&&!n.attachShadow)}return HC}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Gs(n){return n.composedPath?n.composedPath()[0]:n.target}function $C(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}const a4=new De("cdk-dir-doc",{providedIn:"root",factory:function c4(){return _i(hn)}}),l4=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let zr=(()=>{class n{constructor(e){this.value="ltr",this.change=new Ze,e&&(this.value=function d4(n){const t=n?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?l4.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(ie(a4,8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Sf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({}),n})();const u4=["contentWrapper"],h4=["*"],m4=new De("VIRTUAL_SCROLL_STRATEGY");let vh=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new Ee,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ye(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(BC(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ds()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Ms(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Yi(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>kc(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(ie(Kt),ie(Ri),ie(hn,8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Qk=(()=>{class n{constructor(e,i,r,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=o,this._destroyed=new Ee,this._elementScrolled=new ye(a=>this.ngZone.runOutsideAngular(()=>kc(this.elementRef.nativeElement,"scroll").pipe(xn(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&0!=kf()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==kf()?e.left=e.right:1==kf()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;Xk()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",r="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?r:i:"end"==e&&(e=a?i:r),a&&2==kf()?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&1==kf()?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(vh),D(Kt),D(zr,8))},n.\u0275dir=C({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),n})(),ol=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new Ee,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(BC(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(ie(Ri),ie(Kt),ie(hn,8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Jk=new De("VIRTUAL_SCROLLABLE");let g4=(()=>{class n extends Qk{constructor(e,i,r,o){super(e,i,r,o)}measureViewportSize(e){const i=this.elementRef.nativeElement;return"horizontal"===e?i.clientWidth:i.clientHeight}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(vh),D(Kt),D(zr,8))},n.\u0275dir=C({type:n,features:[ht]}),n})();const b4=typeof requestAnimationFrame<"u"?Yk:NC;let y4=(()=>{class n extends g4{get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Ft(e)}constructor(e,i,r,o,a,c,d,h){super(e,c,r,a),this.elementRef=e,this._changeDetectorRef=i,this._scrollStrategy=o,this.scrollable=h,this._platform=_i(Ri),this._detachedSubject=new Ee,this._renderedRangeSubject=new Ee,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new ye(p=>this._scrollStrategy.scrolledIndexChange.subscribe(_=>Promise.resolve().then(()=>this.ngZone.run(()=>p.next(_))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=re.EMPTY,this._viewportChanges=d.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Hr(null),BC(0,b4)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(xn(this._detachedSubject)).subscribe(i=>{const r=i.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function _4(n,t){return n.start==t.start&&n.end==t.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,i="to-start"){e=this.appendOnly&&"to-start"===i?0:e;const o="horizontal"==this.orientation,a=o?"X":"Y";let d=`translate${a}(${Number((o&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===i&&(d+=` translate${a}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=d&&(this._renderedContentTransform=d,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,i="auto"){const r={behavior:i};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,i="auto"){this._scrollStrategy.scrollToIndex(e,i)}measureScrollOffset(e){let i;return i=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,i(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let i;const r="left",o="right",a="rtl"==this.dir?.value;i="start"==e?a?o:r:"end"==e?a?r:o:e||("horizontal"===this.orientation?"left":"top");const c=this.scrollable.measureBoundingClientRectWithScrollOffset(i);return this.elementRef.nativeElement.getBoundingClientRect()[i]-c}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const i of e)i()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(Kt),D(m4,8),D(zr,8),D(vh),D(ol),D(Jk,8))},n.\u0275cmp=I({type:n,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,i){if(1&e&&Hn(u4,7),2&e){let r;kt(r=St())&&(i._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,i){2&e&&un("cdk-virtual-scroll-orientation-horizontal","horizontal"===i.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==i.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[Wt([{provide:Qk,useFactory:(t,e)=>t||e,deps:[[new xo,new im(Jk)],n]}]),ht,AD],ngContentSelectors:h4,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,i){1&e&&(Di(),y(0,"div",0,1),tn(2),b(),Pe(3,"div",2)),2&e&&(S(3),zm("width",i._totalContentWidth)("height",i._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),n})(),Rd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({}),n})(),eS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[Sf,Rd,y4,Sf,Rd]}),n})();class jC extends Ee{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:i}=this;if(t)throw e;return this._throwIfClosed(),i}next(t){super.next(this._value=t)}}function Ys(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function xh(n,t,e){const i=X(n)||t||e?{next:n,error:t,complete:e}:n;return i?Ke((r,o)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let c=!0;r.subscribe(Ot(o,d=>{var h;null===(h=i.next)||void 0===h||h.call(i,d),o.next(d)},()=>{var d;c=!1,null===(d=i.complete)||void 0===d||d.call(i),o.complete()},d=>{var h;c=!1,null===(h=i.error)||void 0===h||h.call(i,d),o.error(d)},()=>{var d,h;c&&(null===(d=i.unsubscribe)||void 0===d||d.call(i)),null===(h=i.finalize)||void 0===h||h.call(i)}))}):He}function WC(n,t=Tf){return Ke((e,i)=>{let r=null,o=null,a=null;const c=()=>{if(r){r.unsubscribe(),r=null;const h=o;o=null,i.next(h)}};function d(){const h=a+n,p=t.now();if(p{o=h,a=t.now(),r||(r=t.schedule(d,n),i.add(r))},()=>{c(),i.complete()},void 0,()=>{o=r=null}))})}function GC(n){return Ms((t,e)=>n<=e)}function YC(n,t=He){return n=n??R4,Ke((e,i)=>{let r,o=!0;e.subscribe(Ot(i,a=>{const c=t(a);(o||!n(r,c))&&(o=!1,r=c,i.next(a))}))})}function R4(n,t){return n===t}let nS=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),P4=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Yi(e);return new ye(r=>{const a=this._observeElement(i).subscribe(r);return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new Ee,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(ie(nS))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),iS=(()=>{class n{get disabled(){return this._disabled}set disabled(e){this._disabled=Ft(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Ec(e),this._subscribe()}constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Ze,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(WC(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(D(P4),D(k),D(Kt))},n.\u0275dir=C({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),ZC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({providers:[nS]}),n})();function rS(n,t,e){n?Xi(e,n,t):t()}function $r(n){return n<=0?()=>Zn:Ke((t,e)=>{let i=0;t.subscribe(Ot(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}const oS=new Set;let wh,B4=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):H4}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function V4(n){if(!oS.has(n))try{wh||(wh=document.createElement("style"),wh.setAttribute("type","text/css"),document.head.appendChild(wh)),wh.sheet&&(wh.sheet.insertRule(`@media ${n} {body{ }}`,0),oS.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(ie(Ri))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function H4(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let qC=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new Ee}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return sS(wf(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=function L4(...n){const t=Bo(n),e=No(n),{args:i,keys:r}=FE(n);if(0===i.length)return hs([],t);const o=new ye(function N4(n,t,e=He){return i=>{rS(t,()=>{const{length:r}=n,o=new Array(r);let a=r,c=r;for(let d=0;d{const h=hs(n[d],t);let p=!1;h.subscribe(Ot(i,_=>{o[d]=_,p||(p=!0,c--),c||i.next(e(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,t,r?a=>OE(r,a):He));return e?o.pipe(sC(e)):o}(sS(wf(e)).map(a=>this._registerQuery(a).observable));return o=Y_(o.pipe($r(1)),o.pipe(GC(1),WC(0))),o.pipe(Nn(a=>{const c={matches:!1,breakpoints:{}};return a.forEach(({matches:d,query:h})=>{c.matches=c.matches||d,c.breakpoints[h]=d}),c}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new ye(a=>{const c=d=>this._zone.run(()=>a.next(d));return i.addListener(c),()=>{i.removeListener(c)}}).pipe(Hr(i),Nn(({matches:a})=>({query:e,matches:a})),xn(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(ie(B4),ie(Kt))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function sS(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function Q_(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const cS="cdk-describedby-message",J_="cdk-describedby-host";let KC=0,U4=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+KC++,this._document=e,this._id=_i(dh)+"-"+KC++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=XC(i,r);"string"!=typeof i?(lS(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const o=XC(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${J_}="${this._id}"]`);for(let i=0;i0!=r.indexOf(cS));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function $4(n,t,e){const i=Q_(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(J_,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function j4(n,t,e){const r=Q_(n,t).filter(o=>o!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(J_)}_isElementDescribedByMessage(e,i){const r=Q_(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&-1!=r.indexOf(a)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(ie(hn),ie(Ri))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function XC(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function lS(n,t){n.id||(n.id=`${cS}-${t}-${KC++}`)}class dS{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Ee,this._typeaheadSubscription=re.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Ee,this.change=new Ee,t instanceof Yl&&(this._itemChangesSubscription=t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(xh(e=>this._pressedLetters.push(e)),WC(t),Ms(()=>this._pressedLetters.length>0),Nn(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Yl?this._items.toArray():this._items}}class uS extends dS{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class QC extends dS{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}function eb(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function tb(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const K4=new De("cdk-input-modality-detector-options"),X4={ignoreKeys:[18,17,224,91,16]},Dh=Ja({passive:!0,capture:!0});let Q4=(()=>{class n{get mostRecentModality(){return this._modality.value}constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new jC(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Gs(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(eb(a)?"keyboard":"mouse"),this._mostRecentTarget=Gs(a))},this._onTouchstart=a=>{tb(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Gs(a))},this._options={...X4,...o},this.modalityDetected=this._modality.pipe(GC(1)),this.modalityChanged=this.modalityDetected.pipe(YC()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Dh),r.addEventListener("mousedown",this._onMousedown,Dh),r.addEventListener("touchstart",this._onTouchstart,Dh)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Dh),document.removeEventListener("mousedown",this._onMousedown,Dh),document.removeEventListener("touchstart",this._onTouchstart,Dh))}}return n.\u0275fac=function(e){return new(e||n)(ie(Ri),ie(Kt),ie(hn),ie(K4,8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const J4=new De("liveAnnouncerElement",{providedIn:"root",factory:function e8(){return null}}),t8=new De("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let n8=0,JC=(()=>{class n{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==a&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class n{constructor(e,i,r,o,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Ee,this._rootNodeFocusAndBlurListener=c=>{for(let h=Gs(c);h;h=h.parentElement)"focus"===c.type?this._onFocus(c,h):this._onBlur(c,h)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(e,i=!1){const r=Yi(e);if(!this._platform.isBrowser||1!==r.nodeType)return Ds(null);const o=zC(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;const c={checkChildren:i,subject:new Ee,rootNode:o};return this._elementInfo.set(r,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(e){const i=Yi(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=Yi(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([c,d])=>this._originChanged(c,i,d)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=Gs(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,nb),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,nb)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(xn(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,nb),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,nb),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let a=0;a{class n{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new Ze}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(td))},n.\u0275dir=C({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),n})();const fS="cdk-high-contrast-black-on-white",pS="cdk-high-contrast-white-on-black",ex="cdk-high-contrast-active";let gS=(()=>{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=_i(qC).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(ex,fS,pS),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(ex,fS):2===i&&e.add(ex,pS)}}}return n.\u0275fac=function(e){return new(e||n)(ie(Ri),ie(hn))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_S=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(ie(gS))},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[ZC]}),n})();function Sc(n,t){return Ke((e,i)=>{let r=null,o=0,a=!1;const c=()=>a&&!r&&i.complete();e.subscribe(Ot(i,d=>{r?.unsubscribe();let h=0;const p=o++;Ci(n(d,p)).subscribe(r=Ot(i,_=>i.next(t?t(d,_,p,h++):_),()=>{r=null,c()}))},()=>{a=!0,c()}))})}function tx(n,t,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];r?n.setProperty(i,r,e?.has(i)?"important":""):n.removeProperty(i)}return n}function Mh(n,t){const e=t?"":"none";tx(n.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function bS(n,t,e){tx(n.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function ib(n,t){return t&&"none"!=t?n+" "+t:n}function yS(n){const t=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*t}function nx(n,t){return n.getPropertyValue(t).split(",").map(i=>i.trim())}function ix(n){const t=n.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function rx(n,t,e){const{top:i,bottom:r,left:o,right:a}=n;return e>=i&&e<=r&&t>=o&&t<=a}function Ff(n,t,e){n.top+=t,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function vS(n,t,e,i){const{top:r,right:o,bottom:a,left:c,width:d,height:h}=n,p=d*t,_=h*t;return i>r-_&&ic-p&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:ix(e)})})}handleScroll(t){const e=Gs(t),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,a;if(e===this._document){const h=this.getViewportScrollPosition();o=h.top,a=h.left}else o=e.scrollTop,a=e.scrollLeft;const c=r.top-o,d=r.left-a;return this.positions.forEach((h,p)=>{h.clientRect&&e!==p&&e.contains(p)&&Ff(h.clientRect,c,d)}),r.top=o,r.left=a,{top:c,left:d}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function xS(n){const t=n.cloneNode(!0),e=t.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;rMh(i,e)))}constructor(t,e,i,r,o,a){this._config=e,this._document=i,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new Ee,this._pointerMoveSubscription=re.EMPTY,this._pointerUpSubscription=re.EMPTY,this._scrollSubscription=re.EMPTY,this._resizeSubscription=re.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Ee,this.started=new Ee,this.released=new Ee,this.ended=new Ee,this.entered=new Ee,this.exited=new Ee,this.dropped=new Ee,this.moved=this._moveEvents,this._pointerDown=c=>{if(this.beforeStarted.next(),this._handles.length){const d=this._getTargetHandle(c);d&&!this._disabledHandles.has(d)&&!this.disabled&&this._initializeDragSequence(d,c)}else this.disabled||this._initializeDragSequence(this._rootElement,c)},this._pointerMove=c=>{const d=this._getPointerPositionOnPage(c);if(!this._hasStartedDragging){if(Math.abs(d.x-this._pickupPositionOnPage.x)+Math.abs(d.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const A=Date.now()>=this._dragStartTime+this._getDragStartDelay(c),N=this._dropContainer;if(!A)return void this._endDragSequence(c);(!N||!N.isDragging()&&!N.isReceiving())&&(c.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(c)))}return}c.preventDefault();const h=this._getConstrainedPointerPosition(d);if(this._hasMoved=!0,this._lastKnownPointerPosition=d,this._updatePointerDirectionDelta(h),this._dropContainer)this._updateActiveDropContainer(h,d);else{const p=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,_=this._activeTransform;_.x=h.x-p.x+this._passiveTransform.x,_.y=h.y-p.y+this._passiveTransform.y,this._applyRootElementTransform(_.x,_.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:h,event:c,distance:this._getDragDistance(h),delta:this._pointerDirectionDelta})})},this._pointerUp=c=>{this._endDragSequence(c)},this._nativeDragStart=c=>{if(this._handles.length){const d=this._getTargetHandle(c);d&&!this._disabledHandles.has(d)&&!this.disabled&&c.preventDefault()}else this.disabled||c.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new CS(i),a.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>Yi(i)),this._handles.forEach(i=>Mh(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=Yi(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,rb),e.addEventListener("touchstart",this._pointerDown,TS),e.addEventListener("dragstart",this._nativeDragStart,rb)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?Yi(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Mh(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Mh(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){Of(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),c=this._getShadowRoot();r.insertBefore(a,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),bS(i,!1,ox),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,c).appendChild(this._preview),this.started.next({source:this,event:t}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=Of(e),o=!r&&0!==e.button,a=this._rootElement,c=Gs(e),d=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),h=r?tb(e):eb(e);if(c&&c.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||d||h)return;if(this._handles.length){const M=a.style;this._rootElementTapHighlight=M.webkitTapHighlightColor||"",M.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(M=>this._updateOnScroll(M)),this._boundaryElement&&(this._boundaryRect=ix(this._boundaryElement));const p=this._previewTemplate;this._pickupPositionInElement=p&&p.template&&!p.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,t,e);const _=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:_.x,y:_.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){bS(this._rootElement,!0,ox),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),o=this._getDragDistance(r),a=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,a,o,r,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let r;if(i&&t){const o=t.matchSize?this._initialClientRect:null,a=t.viewContainer.createEmbeddedView(i,t.context);a.detectChanges(),r=kS(a,this._document),this._previewRef=a,t.matchSize?SS(r,o):r.style.transform=ob(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=xS(this._rootElement),SS(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return tx(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},ox),Mh(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function s8(n){const t=getComputedStyle(n),e=nx(t,"transition-property"),i=e.find(c=>"transform"===c||"all"===c);if(!i)return 0;const r=e.indexOf(i),o=nx(t,"transition-duration"),a=nx(t,"transition-delay");return yS(o[r])+yS(a[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=a=>{(!a||Gs(a)===this._preview&&"transform"===a.propertyName)&&(this._preview?.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=kS(this._placeholderRef,this._document)):i=xS(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():t,a=Of(i)?i.targetTouches[0]:i,c=this._getViewportScrollPosition();return{x:o.left-t.left+(a.pageX-o.left-c.left),y:o.top-t.top+(a.pageY-o.top-c.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=Of(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const c=this._ownerSVGElement.createSVGPoint();return c.x=r,c.y=o,c.matrixTransform(a.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(t,this,this._initialClientRect,this._pickupPositionInElement):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:a}=this._pickupPositionInElement,c=this._boundaryRect,{width:d,height:h}=this._getPreviewRect(),p=c.top+a,_=c.bottom-(h-a);i=ES(i,c.left+o,c.right-(d-o)),r=ES(r,p,_)}return{x:i,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-o.x),c=Math.abs(i-o.y);return a>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),c>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Mh(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,rb),t.removeEventListener("touchstart",this._pointerDown,TS),t.removeEventListener("dragstart",this._nativeDragStart,rb)}_applyRootElementTransform(t,e){const i=ob(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=ib(i,this._initialTransform)}_applyPreviewTransform(t,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=ob(t,e);this._preview.style.transform=ib(r,i)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,a=i.right-r.right,c=r.top-i.top,d=i.bottom-r.bottom;r.width>i.width?(o>0&&(t+=o),a>0&&(t-=a)):t=0,r.height>i.height?(c>0&&(e+=c),d>0&&(e-=d)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:Of(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=Gs(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&Ff(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=zC(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Yi(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}}function ob(n,t){return`translate3d(${Math.round(n)}px, ${Math.round(t)}px, 0)`}function ES(n,t,e){return Math.max(t,Math.min(e,n))}function Of(n){return"t"===n.type[0]}function kS(n,t){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const i=t.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function SS(n,t){n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.transform=ob(t.left,t.top)}function Rf(n,t){return Math.max(0,Math.min(t,n))}class u8{constructor(t,e){this._element=t,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(t){this.withItems(t)}sort(t,e,i,r){const o=this._itemPositions,a=this._getItemIndexFromPointerPosition(t,e,i,r);if(-1===a&&o.length>0)return null;const c="horizontal"===this.orientation,d=o.findIndex(ee=>ee.drag===t),h=o[a],_=h.clientRect,M=d>a?1:-1,A=this._getItemOffsetPx(o[d].clientRect,_,M),N=this._getSiblingOffsetPx(d,o,M),j=o.slice();return function d8(n,t,e){const i=Rf(t,n.length-1),r=Rf(e,n.length-1);if(i===r)return;const o=n[i],a=r{if(j[de]===ee)return;const Ve=ee.drag===t,ge=Ve?A:N,Mt=Ve?t.getPlaceholderElement():ee.drag.getRootElement();ee.offset+=ge,c?(Mt.style.transform=ib(`translate3d(${Math.round(ee.offset)}px, 0, 0)`,ee.initialTransform),Ff(ee.clientRect,0,ge)):(Mt.style.transform=ib(`translate3d(0, ${Math.round(ee.offset)}px, 0)`,ee.initialTransform),Ff(ee.clientRect,ge,0))}),this._previousSwap.overlaps=rx(_,e,i),this._previousSwap.drag=h.drag,this._previousSwap.delta=c?r.x:r.y,{previousIndex:d,currentIndex:a}}enter(t,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(t,e,i):r,a=this._activeDraggables,c=a.indexOf(t),d=t.getPlaceholderElement();let h=a[o];if(h===t&&(h=a[o+1]),!h&&(null==o||-1===o||o-1&&a.splice(c,1),h&&!this._dragDropRegistry.isDragging(h)){const p=h.getRootElement();p.parentElement.insertBefore(d,p),a.splice(o,0,t)}else Yi(this._element).appendChild(d),a.push(t);d.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables.forEach(t=>{const e=t.getRootElement();if(e){const i=this._itemPositions.find(r=>r.drag===t)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{Ff(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const t="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:ix(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(t,e,i){const r="horizontal"===this.orientation;let o=r?e.left-t.left:e.top-t.top;return-1===i&&(o+=r?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,i){const r="horizontal"===this.orientation,o=e[t].clientRect,a=e[t+-1*i];let c=o[r?"width":"height"]*i;if(a){const d=r?"left":"top",h=r?"right":"bottom";-1===i?c-=a.clientRect[d]-o[h]:c+=o[d]-a.clientRect[h]}return c}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const a=i[i.length-1].clientRect;return r?t>=a.right:e>=a.bottom}{const a=i[0].clientRect;return r?t<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(t,e,i,r){const o="horizontal"===this.orientation,a=this._itemPositions.findIndex(({drag:c,clientRect:d})=>c!==t&&((!r||c!==this._previousSwap.drag||!this._previousSwap.overlaps||(o?r.x:r.y)!==this._previousSwap.delta)&&(o?e>=Math.floor(d.left)&&e=Math.floor(d.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new Ee,this.entered=new Ee,this.exited=new Ee,this.dropped=new Ee,this.sorted=new Ee,this.receivingStarted=new Ee,this.receivingStopped=new Ee,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=re.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Ee,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function o8(n=0,t=Tf){return n<0&&(n=0),G_(n,n,t)}(0,Yk).pipe(xn(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,c=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-c):2===this._verticalScrollDirection&&a.scrollBy(0,c),1===this._horizontalScrollDirection?a.scrollBy(-c,0):2===this._horizontalScrollDirection&&a.scrollBy(c,0)})},this.element=Yi(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new CS(i),this._sortStrategy=new u8(this.element,e),this._sortStrategy.withSortPredicate((a,c)=>this.sortPredicate(a,c,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,r,o,a,c,d={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:a,dropPoint:c,event:d})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._sortStrategy.direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._sortStrategy.orientation=t,this}withScrollableParents(t){const e=Yi(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,r){if(this.sortingDisabled||!this._clientRect||!vS(this._clientRect,.05,e,i))return;const o=this._sortStrategy.sort(t,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,r=0,o=0;if(this._parentPositions.positions.forEach((a,c)=>{c===this._document||!a.clientRect||i||vS(a.clientRect,.05,t,e)&&([r,o]=function m8(n,t,e,i){const r=FS(t,i),o=OS(t,e);let a=0,c=0;if(r){const d=n.scrollTop;1===r?d>0&&(a=1):n.scrollHeight-d>n.clientHeight&&(a=2)}if(o){const d=n.scrollLeft;1===o?d>0&&(c=1):n.scrollWidth-d>n.clientWidth&&(c=2)}return[a,c]}(c,a.clientRect,t,e),(r||o)&&(i=c))}),!r&&!o){const{width:a,height:c}=this._viewportRuler.getViewportSize(),d={width:a,height:c,top:0,right:a,bottom:c,left:0};r=FS(d,e),o=OS(d,t),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=Yi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=Yi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=Yi(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return null!=this._clientRect&&rx(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(r=>r._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!rx(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=Yi(this.element);return r===o||o.contains(r)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:t,receiver:this,items:e}))}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:t,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=zC(Yi(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function FS(n,t){const{top:e,bottom:i,height:r}=n,o=r*AS;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}function OS(n,t){const{left:e,right:i,width:r}=n,o=r*AS;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}const sb=Ja({passive:!1,capture:!0});let f8=(()=>{class n{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Ee,this.pointerUp=new Ee,this.scroll=new Ee,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,sb)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,sb)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:sb}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:sb}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,a)=>{this._document.addEventListener(a,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new ye(r=>this._ngZone.runOutsideAngular(()=>{const a=c=>{this._activeDragInstances.length&&r.next(c)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),si(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(ie(Kt),ie(hn))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const p8={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let sx=(()=>{class n{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=p8){return new l8(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new h8(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(ie(hn),ie(Kt),ie(ol),ie(f8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ax=new De("CDK_DRAG_PARENT"),cx=new De("CdkDropListGroup");let RS=(()=>{class n{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=Ft(e)}ngOnDestroy(){this._items.clear()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],standalone:!0,features:[Wt([{provide:cx,useExisting:n}])]}),n})();const PS=new De("CDK_DRAG_CONFIG");let g8=0;const LS=new De("CdkDropList");let NS=(()=>{class n{get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=Ft(e)}constructor(e,i,r,o,a,c,d){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=a,this._group=c,this._destroyed=new Ee,this.connectedTo=[],this.id="cdk-drop-list-"+g8++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new Ze,this.entered=new Ze,this.exited=new Ze,this.sorted=new Ze,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,d&&this._assignDefaults(d),this._dropListRef.enterPredicate=(h,p)=>this.enterPredicate(h.data,p.data),this._dropListRef.sortPredicate=(h,p,_)=>this.sortPredicate(h,p.data,_.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),c&&c._items.add(this)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,i)=>e._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(Hr(this._dir.value),xn(this._destroyed)).subscribe(i=>e.withDirection(i)),e.beforeStarted.subscribe(()=>{const i=wf(this.connectedTo).map(r=>"string"==typeof r?n._dropLists.find(a=>a.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===i.indexOf(r)&&i.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=Ft(this.sortingDisabled),e.autoScrollDisabled=Ft(this.autoScrollDisabled),e.autoScrollStep=Ec(this.autoScrollStep,2),e.connectedTo(i.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),si(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){const{lockAxis:i,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:a,listOrientation:c}=e;this.disabled=r??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=a??!1,this.orientation=c||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return n._dropLists=[],n.\u0275fac=function(e){return new(e||n)(D(k),D(sx),D(li),D(vh),D(zr,8),D(cx,12),D(PS,8))},n.\u0275dir=C({type:n,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,i){2&e&&(jt("id",i.id),un("cdk-drop-list-disabled",i.disabled)("cdk-drop-list-dragging",i._dropListRef.isDragging())("cdk-drop-list-receiving",i._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[Wt([{provide:cx,useValue:void 0},{provide:LS,useExisting:n}])]}),n})();const lx=new De("CdkDragHandle"),BS=new De("CdkDragPlaceholder"),VS=new De("CdkDragPreview");let HS=(()=>{class n{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=Ft(e),this._dragRef.disabled=this._disabled}constructor(e,i,r,o,a,c,d,h,p,_,M){this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=a,this._dir=d,this._changeDetectorRef=p,this._selfHandle=_,this._parentDrag=M,this._destroyed=new Ee,this.started=new Ze,this.released=new Ze,this.ended=new Ze,this.entered=new Ze,this.exited=new Ze,this.dropped=new Ze,this.moved=new ye(A=>{const N=this._dragRef.moved.pipe(Nn(j=>({source:this,pointerPosition:j.pointerPosition,event:j.event,delta:j.delta,distance:j.distance}))).subscribe(A);return()=>{N.unsubscribe()}}),this._dragRef=h.createDrag(e,{dragStartThreshold:c&&null!=c.dragStartThreshold?c.dragStartThreshold:5,pointerDirectionChangeThreshold:c&&null!=c.pointerDirectionChangeThreshold?c.pointerDirectionChangeThreshold:5,zIndex:c?.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),c&&this._assignDefaults(c),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe($r(1),xn(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const i=e.rootElementSelector,r=e.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let i=e;this.rootElementSelector&&(i=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):Yi(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const i=this._dir,r=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:Ec(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),i&&e.withDirection(i.value)}}),e.beforeStarted.pipe($r(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let i=this.element.nativeElement.parentElement;for(;i;){if(i.classList.contains("cdk-drag")){e.withParent(n._dragInstances.find(r=>r.element.nativeElement===i)?._dragRef||null);break}i=i.parentElement}})}_handleEvents(e){e.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),e.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(e){const{lockAxis:i,dragStartDelay:r,constrainPosition:o,previewClass:a,boundaryElement:c,draggingDisabled:d,rootElementSelector:h,previewContainer:p}=e;this.disabled=d??!1,this.dragStartDelay=r||0,i&&(this.lockAxis=i),o&&(this.constrainPosition=o),a&&(this.previewClass=a),c&&(this.boundaryElement=c),h&&(this.rootElementSelector=h),p&&(this.previewContainer=p)}_setupHandlesListener(){this._handles.changes.pipe(Hr(this._handles),xh(e=>{const i=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),Sc(e=>si(...e.map(i=>i._stateChanges.pipe(Hr(i))))),xn(this._destroyed)).subscribe(e=>{const i=this._dragRef,r=e.element.nativeElement;e.disabled?i.disableHandle(r):i.enableHandle(r)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(D(k),D(LS,12),D(hn),D(Kt),D(gr),D(PS,8),D(zr,8),D(sx),D(li),D(lx,10),D(ax,12))},n.\u0275dir=C({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,i,r){if(1&e&&(zn(r,VS,5),zn(r,BS,5),zn(r,lx,5)),2&e){let o;kt(o=St())&&(i._previewTemplate=o.first),kt(o=St())&&(i._placeholderTemplate=o.first),kt(o=St())&&(i._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,i){2&e&&un("cdk-drag-disabled",i.disabled)("cdk-drag-dragging",i._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[Wt([{provide:ax,useExisting:n}]),Ei]}),n})(),C8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({providers:[sx],imports:[Rd]}),n})();const x8=["text"];function w8(n,t){if(1&n&&Pe(0,"mat-pseudo-checkbox",6),2&n){const e=q();P("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function D8(n,t){1&n&&Pe(0,"mat-pseudo-checkbox",7),2&n&&P("disabled",q().disabled)}function M8(n,t){if(1&n&&(y(0,"span",8),E(1),b()),2&n){const e=q();S(1),bi("(",e.group.label,")")}}const T8=[[["mat-icon"]],"*"],E8=["mat-icon","*"],S8=new De("mat-sanity-checks",{providedIn:"root",factory:function k8(){return!0}});let Gn=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!$C()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(ie(gS),ie(S8,8),ie(hn))},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[Sf,Sf]}),n})();function Ld(n){return class extends n{get disabled(){return this._disabled}set disabled(t){this._disabled=Ft(t)}constructor(...t){super(...t),this._disabled=!1}}}function Th(n,t){return class extends n{get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}constructor(...e){super(...e),this.defaultColor=t,this.color=t}}}function nd(n){return class extends n{get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Ft(t)}constructor(...t){super(...t),this._disableRipple=!1}}}function Pf(n,t=0){return class extends n{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Ec(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}}}function dx(n){return class extends n{updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}constructor(...t){super(...t),this.errorState=!1}}}let ab=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class A8{constructor(t,e,i,r=!1){this._renderer=t,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const jS=Ja({passive:!0,capture:!0});class F8{constructor(){this._events=new Map,this._delegateEventHandler=t=>{const e=Gs(t);e&&this._events.get(t.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(t))})}}addHandler(t,e,i,r){const o=this._events.get(e);if(o){const a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),t.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,jS)})}removeHandler(t,e,i){const r=this._events.get(t);if(!r)return;const o=r.get(e);o&&(o.delete(i),0===o.size&&r.delete(e),0===r.size&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,jS)))}}const US={enterDuration:225,exitDuration:150},WS=Ja({passive:!0,capture:!0}),GS=["mousedown","touchstart"],YS=["mouseup","mouseleave","touchend","touchcancel"];class Nf{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Yi(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...US,...i.animation};i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const a=i.radius||function R8(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),c=t-r.left,d=e-r.top,h=o.enterDuration,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=c-a+"px",p.style.top=d-a+"px",p.style.height=2*a+"px",p.style.width=2*a+"px",null!=i.color&&(p.style.backgroundColor=i.color),p.style.transitionDuration=`${h}ms`,this._containerElement.appendChild(p);const _=window.getComputedStyle(p),A=_.transitionDuration,N="none"===_.transitionProperty||"0s"===A||"0s, 0s"===A||0===r.width&&0===r.height,j=new A8(this,p,i,N);p.style.transform="scale3d(1, 1, 1)",j.state=0,i.persistent||(this._mostRecentTransientRipple=j);let ee=null;return!N&&(h||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const de=()=>this._finishRippleTransition(j),Ve=()=>this._destroyRipple(j);p.addEventListener("transitionend",de),p.addEventListener("transitioncancel",Ve),ee={onTransitionEnd:de,onTransitionCancel:Ve}}),this._activeRipples.set(j,ee),(N||!h)&&this._finishRippleTransition(j),j}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i={...US,...t.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",t.state=2,(t._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Yi(t);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,GS.forEach(i=>{Nf._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{YS.forEach(e=>{this._triggerElement.addEventListener(e,this,WS)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){0===t.state?this._startFadeOutTransition(t):2===t.state&&this._destroyRipple(t)}_startFadeOutTransition(t){const e=t===this._mostRecentTransientRipple,{persistent:i}=t.config;t.state=1,!i&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){const e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=3,null!==e&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel)),t.element.remove()}_onMousedown(t){const e=eb(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const t=this._triggerElement;t&&(GS.forEach(e=>Nf._eventManager.removeHandler(e,t,this)),this._pointerUpEventsRegistered&&YS.forEach(e=>t.removeEventListener(e,this,WS)))}}Nf._eventManager=new F8;const ux=new De("mat-ripple-global-options");let rs=(()=>{class n{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,o,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Nf(this,i,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Kt),D(Ri),D(ux,8),D(Br,8))},n.\u0275dir=C({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&un("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),Nd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[Gn,Gn]}),n})(),P8=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return n.\u0275fac=function(e){return new(e||n)(D(Br,8))},n.\u0275cmp=I({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(e,i){2&e&&un("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("mat-pseudo-checkbox-minimal","minimal"===i.appearance)("mat-pseudo-checkbox-full","full"===i.appearance)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),n})(),L8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[Gn]}),n})();const hx=new De("MAT_OPTION_PARENT_COMPONENT"),mx=new De("MatOptgroup");let N8=0;class ZS{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let B8=(()=>{class n{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Ft(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+N8++,this.onSelectionChange=new Ze,this._stateChanges=new Ee}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Ys(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new ZS(this,e))}}return n.\u0275fac=function(e){Pm()},n.\u0275dir=C({type:n,viewQuery:function(e,i){if(1&e&&Hn(x8,7),2&e){let r;kt(r=St())&&(i._text=r.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Bd=(()=>{class n extends B8{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(hx,8),D(mx,8))},n.\u0275cmp=I({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mat-mdc-focus-indicator","mdc-list-item"],hostVars:12,hostBindings:function(e,i){1&e&&ce("click",function(){return i._selectViaInteraction()})("keydown",function(o){return i._handleKeydown(o)}),2&e&&($s("id",i.id),jt("tabindex",i._getTabIndex())("aria-selected",i.selected)("aria-disabled",i.disabled.toString()),un("mdc-list-item--selected",i.selected)("mat-mdc-option-multiple",i.multiple)("mat-mdc-option-active",i.active)("mdc-list-item--disabled",i.disabled))},exportAs:["matOption"],features:[ht],ngContentSelectors:E8,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],["state","checked","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(Di(T8),Y(0,w8,1,2,"mat-pseudo-checkbox",0),tn(1),y(2,"span",1,2),tn(4,1),b(),Y(5,D8,1,1,"mat-pseudo-checkbox",3),Y(6,M8,2,1,"span",4),Pe(7,"div",5)),2&e&&(P("ngIf",i.multiple),S(5),P("ngIf",!i.multiple&&i.selected&&!i.hideSingleSelectionIndicator),S(1),P("ngIf",i.group&&i.group._inert),S(1),P("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[rs,yi,P8],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active::before{content:""}'],encapsulation:2,changeDetection:0}),n})();function qS(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),o=0;for(let a=0;ae+i?Math.max(0,n-i+t):e}let cb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[Nd,Ca,Gn,L8]}),n})();class fx{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class lb extends fx{constructor(t,e,i,r,o){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}}class Vd extends fx{constructor(t,e,i,r){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class V8 extends fx{constructor(t){super(),this.element=t instanceof k?t.nativeElement:t}}class px{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof lb?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Vd?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof V8?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class H8 extends px{constructor(t,e,i,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=a=>{const c=a.element,d=this._document.createComment("dom-portal");c.parentNode.insertBefore(d,c),this.outletElement.appendChild(c),this._attachedPortal=a,super.setDisposeFn(()=>{d.parentNode&&d.parentNode.replaceChild(c,d)})},this._document=o}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector||Qo.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let z8=(()=>{class n extends Vd{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(D(pr),D(gr))},n.\u0275dir=C({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[ht]}),n})(),Bf=(()=>{class n extends px{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Ze,this.attachDomPortal=o=>{const a=o.element,c=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(c,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(o,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(D(x),D(gr),D(hn))},n.\u0275dir=C({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ht]}),n})(),gx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({}),n})();const XS=Xk();class j8{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Cr(-this._previousScrollPosition.left),t.style.top=Cr(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),XS&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),XS&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class U8{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class QS{enable(){}disable(){}attach(){}}function _x(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function JS(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class W8{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();_x(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let G8=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new QS,this.close=a=>new U8(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new j8(this._viewportRuler,this._document),this.reposition=a=>new W8(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(ie(vh),ie(ol),ie(Kt),ie(hn))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Vf{constructor(t){if(this.scrollStrategy=new QS,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class Y8{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let eI=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(ie(hn))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Z8=(()=>{class n extends eI{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){const c=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(r)):c.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(ie(hn),ie(Kt,8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),q8=(()=>{class n extends eI{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Gs(o)},this._clickListener=o=>{const a=Gs(o),c="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const d=this._attachedOverlays.slice();for(let h=d.length-1;h>-1;h--){const p=d[h];if(p._outsidePointerEvents.observers.length<1||!p.hasAttached())continue;if(p.overlayElement.contains(a)||p.overlayElement.contains(c))break;const _=p._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>_.next(o)):_.next(o)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(ie(hn),ie(Ri),ie(Kt,8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tI=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||$C()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(_),this._backdropTransitionendHandler=_=>{this._disposeBackdrop(_.target)},this._keydownEvents=new Ee,this._outsidePointerEvents=new Ee,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe($r(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Cr(this._config.width),t.height=Cr(this._config.height),t.minWidth=Cr(this._config.minWidth),t.minHeight=Cr(this._config.minHeight),t.maxWidth=Cr(this._config.maxWidth),t.maxHeight=Cr(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,i){const r=wf(e||[]).filter(o=>!!o);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(xn(si(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const nI="cdk-overlay-connected-position-bounding-box",X8=/([A-Za-z%]+)$/;class Q8{get positions(){return this._preferredPositions}constructor(t,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Ee,this._resizeSubscription=re.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._validatePositions(),t.hostElement.classList.add(nI),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let a;for(let c of this._preferredPositions){let d=this._getOriginPoint(t,r,c),h=this._getOverlayPoint(d,e,c),p=this._getOverlayFit(h,e,i,c);if(p.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(c,d);this._canFitWithFlexibleDimensions(p,h,i)?o.push({position:c,origin:d,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(d,c)}):(!a||a.overlayFit.visibleAread&&(d=p,c=h)}return this._isPushed=!1,void this._applyPosition(c.position,c.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Hd(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(nI),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,o;if("center"==i.originX)r=t.left+t.width/2;else{const a=this._isRtl()?t.right:t.left,c=this._isRtl()?t.left:t.right;r="start"==i.originX?a:c}return e.left<0&&(r-=e.left),o="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(t,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,i,r){const o=rI(e);let{x:a,y:c}=t,d=this._getOffset(r,"x"),h=this._getOffset(r,"y");d&&(a+=d),h&&(c+=h);let M=0-c,A=c+o.height-i.height,N=this._subtractOverflows(o.width,0-a,a+o.width-i.width),j=this._subtractOverflows(o.height,M,A),ee=N*j;return{visibleArea:ee,isCompletelyWithinViewport:o.width*o.height===ee,fitsInViewportVertically:j===o.height,fitsInViewportHorizontally:N==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,a=iI(this._overlayRef.getConfig().minHeight),c=iI(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=a&&a<=r)&&(t.fitsInViewportHorizontally||null!=c&&c<=o)}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=rI(e),o=this._viewportRect,a=Math.max(t.x+r.width-o.width,0),c=Math.max(t.y+r.height-o.height,0),d=Math.max(o.top-i.top-t.y,0),h=Math.max(o.left-i.left-t.x,0);let p=0,_=0;return p=r.width<=o.width?h||-a:t.xN&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.y-N/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)M=i.width-t.x+this._viewportMargin,p=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)_=t.x,p=i.right-t.x;else{const A=Math.min(i.right-t.x+i.left,t.x),N=this._lastBoundingBoxSize.width;p=2*A,_=t.x-A,p>N&&!this._isInitialRender&&!this._growAfterOpen&&(_=t.x-N/2)}return{top:a,left:_,bottom:c,right:M,width:p,height:o}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=Cr(i.height),r.top=Cr(i.top),r.bottom=Cr(i.bottom),r.width=Cr(i.width),r.left=Cr(i.left),r.right=Cr(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Cr(o)),a&&(r.maxWidth=Cr(a))}this._lastBoundingBoxSize=i,Hd(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Hd(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Hd(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){const p=this._viewportRuler.getViewportScrollPosition();Hd(i,this._getExactOverlayY(e,t,p)),Hd(i,this._getExactOverlayX(e,t,p))}else i.position="static";let c="",d=this._getOffset(e,"x"),h=this._getOffset(e,"y");d&&(c+=`translateX(${d}px) `),h&&(c+=`translateY(${h}px)`),i.transform=c.trim(),a.maxHeight&&(r?i.maxHeight=Cr(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=Cr(a.maxWidth):o&&(i.maxWidth="")),Hd(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Cr(o.y),r}_getExactOverlayX(t,e,i){let a,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),a=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===a?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Cr(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:JS(t,i),isOriginOutsideView:_x(t,i),isOverlayClipped:JS(e,i),isOverlayOutsideView:_x(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&wf(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof k)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Hd(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function iI(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(X8);return e&&"px"!==e?null:parseFloat(t)}return n||null}function rI(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const oI="cdk-global-overlay-wrapper";class J8{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(oI),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:c}=i,d=!("100%"!==r&&"100vw"!==r||a&&"100%"!==a&&"100vw"!==a),h=!("100%"!==o&&"100vh"!==o||c&&"100%"!==c&&"100vh"!==c),p=this._xPosition,_=this._xOffset,M="rtl"===this._overlayRef.getConfig().direction;let A="",N="",j="";d?j="flex-start":"center"===p?(j="center",M?N=_:A=_):M?"left"===p||"end"===p?(j="flex-end",A=_):("right"===p||"start"===p)&&(j="flex-start",N=_):"left"===p||"start"===p?(j="flex-start",A=_):("right"===p||"end"===p)&&(j="flex-end",N=_),t.position=this._cssPosition,t.marginLeft=d?"0":A,t.marginTop=h?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=d?"0":N,e.justifyContent=j,e.alignItems=h?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(oI),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let e6=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new J8}flexibleConnectedTo(e){return new Q8(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(ie(ol),ie(hn),ie(Ri),ie(tI))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),t6=0,Ma=(()=>{class n{constructor(e,i,r,o,a,c,d,h,p,_,M,A){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=c,this._ngZone=d,this._document=h,this._directionality=p,this._location=_,this._outsideClickDispatcher=M,this._animationsModuleType=A}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),a=new Vf(e);return a.direction=a.direction||this._directionality.value,new K8(o,i,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+t6++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(tf)),new H8(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(ie(G8),ie(tI),ie(x),ie(e6),ie(Z8),ie(Qo),ie(Kt),ie(hn),ie(zr),ie(qM),ie(q8),ie(Br,8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const n6=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],sI=new De("cdk-connected-overlay-scroll-strategy");let bx=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(D(k))},n.\u0275dir=C({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),n})(),aI=(()=>{class n{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ft(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Ft(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Ft(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Ft(e)}get push(){return this._push}set push(e){this._push=Ft(e)}constructor(e,i,r,o,a){this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=re.EMPTY,this._attachSubscription=re.EMPTY,this._detachSubscription=re.EMPTY,this._positionSubscription=re.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Ze,this.positionChange=new Ze,this.attach=new Ze,this.detach=new Ze,this.overlayKeydown=new Ze,this.overlayOutsideClick=new Ze,this._templatePortal=new Vd(i,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=n6);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!Ys(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Vf({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof bx?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function $8(n,t=!1){return Ke((e,i)=>{let r=0;e.subscribe(Ot(i,o=>{const a=n(o,r++);(a||t)&&i.next(o),!a&&i.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(D(Ma),D(pr),D(gr),D(sI),D(zr,8))},n.\u0275dir=C({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[Ei]}),n})();const r6={provide:sI,deps:[Ma],useFactory:function i6(n){return()=>n.scrollStrategies.reposition()}};let Hf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({providers:[Ma,r6],imports:[Sf,gx,eS,eS]}),n})();function cI(n){return new ye(t=>{Ci(n()).subscribe(t)})}const o6=["matFormFieldNotchedOutline",""],s6=["*"],a6=["textField"],c6=["iconPrefixContainer"],l6=["textPrefixContainer"];function d6(n,t){1&n&&Pe(0,"span",19)}function u6(n,t){if(1&n){const e=Bt();y(0,"label",17),ce("cdkObserveContent",function(){return Je(e),st(q(2)._refreshOutlineNotchWidth())}),tn(1,1),Y(2,d6,1,0,"span",18),b()}if(2&n){const e=q(2);P("floating",e._shouldLabelFloat())("cdkObserveContentDisabled",!e._hasOutline())("id",e._labelId),jt("for",e._control.id)("aria-owns",e._control.id),S(2),P("ngIf",!e.hideRequiredMarker&&e._control.required)}}function h6(n,t){1&n&&Y(0,u6,3,6,"label",16),2&n&&P("ngIf",q()._hasFloatingLabel())}function m6(n,t){1&n&&Pe(0,"div",20)}function f6(n,t){}function p6(n,t){1&n&&Y(0,f6,0,0,"ng-template",22),2&n&&(q(2),P("ngTemplateOutlet",Jo(1)))}function g6(n,t){if(1&n&&(y(0,"div",21),Y(1,p6,1,1,"ng-template",9),b()),2&n){const e=q();P("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",e._labelWidth),S(1),P("ngIf",!e._forceDisplayInfixLabel())}}function _6(n,t){1&n&&(y(0,"div",23,24),tn(2,2),b())}function b6(n,t){1&n&&(y(0,"div",25,26),tn(2,3),b())}function y6(n,t){}function v6(n,t){1&n&&Y(0,y6,0,0,"ng-template",22),2&n&&(q(),P("ngTemplateOutlet",Jo(1)))}function C6(n,t){1&n&&(y(0,"div",27),tn(1,4),b())}function x6(n,t){1&n&&(y(0,"div",28),tn(1,5),b())}function w6(n,t){1&n&&Pe(0,"div",29)}function D6(n,t){1&n&&(y(0,"div",30),tn(1,6),b()),2&n&&P("@transitionMessages",q()._subscriptAnimationState)}function M6(n,t){if(1&n&&(y(0,"mat-hint",34),E(1),b()),2&n){const e=q(2);P("id",e._hintLabelId),S(1),Ut(e.hintLabel)}}function T6(n,t){if(1&n&&(y(0,"div",31),Y(1,M6,2,2,"mat-hint",32),tn(2,7),Pe(3,"div",33),tn(4,8),b()),2&n){const e=q();P("@transitionMessages",e._subscriptAnimationState),S(1),P("ngIf",e.hintLabel)}}const E6=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],k6=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let jr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-label"]]}),n})(),S6=0;const lI=new De("MatError");let sl=(()=>{class n{constructor(e,i){this.id="mat-mdc-error-"+S6++,e||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(Vs("aria-live"),D(k))},n.\u0275dir=C({type:n,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(e,i){2&e&&$s("id",i.id)},inputs:{id:"id"},features:[Wt([{provide:lI,useExisting:n}])]}),n})(),I6=0,dI=(()=>{class n{constructor(){this.align="start",this.id="mat-mdc-hint-"+I6++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(e,i){2&e&&($s("id",i.id),jt("align",null),un("mat-mdc-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"}}),n})();const A6=new De("MatPrefix"),F6=new De("MatSuffix");let uI=(()=>{class n{constructor(e){this._elementRef=e,this.floating=!1}getWidth(){return function O6(n){if(null!==n.offsetParent)return n.scrollWidth;const e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);const i=e.scrollWidth;return e.remove(),i}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(D(k))},n.\u0275dir=C({type:n,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(e,i){2&e&&un("mdc-floating-label--float-above",i.floating)},inputs:{floating:"floating"}}),n})();const hI="mdc-line-ripple--active",db="mdc-line-ripple--deactivating";let mI=(()=>{class n{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,a=o.contains(db);"opacity"===r.propertyName&&a&&o.remove(hI,db)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(db),e.add(hI)}deactivate(){this._elementRef.nativeElement.classList.add(db)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Kt))},n.\u0275dir=C({type:n,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),n})(),fI=(()=>{class n{constructor(e,i){this._elementRef=e,this._ngZone=i,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Kt))},n.\u0275cmp=I({type:n,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(e,i){2&e&&un("mdc-notched-outline--notched",i.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:o6,ngContentSelectors:s6,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(e,i){1&e&&(Di(),Pe(0,"div",0),y(1,"div",1),tn(2),b(),Pe(3,"div",2)),2&e&&(S(1),zm("width",i._getNotchWidth()))},encapsulation:2,changeDetection:0}),n})();const R6={transitionMessages:nl("transitionMessages",[xa("enter",Si({opacity:1,transform:"translateY(0%)"})),To("void => enter",[Si({opacity:0,transform:"translateY(-5px)"}),Mo("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ub=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n}),n})();const zf=new De("MatFormField"),P6=new De("MAT_FORM_FIELD_DEFAULT_OPTIONS");let pI=0,lo=(()=>{class n{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ft(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==i&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,i,r,o,a,c,d,h){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=o,this._platform=a,this._defaults=c,this._animationMode=d,this._document=h,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+pI++,this._hintLabelId="mat-mdc-hint-"+pI++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new Ee,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,c&&(c.appearance&&(this.appearance=c.appearance),this._hideRequiredMarker=Boolean(c?.hideRequiredMarker),c.color&&(this.color=c.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(xn(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),si(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(xn(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(xn(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const e=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(e.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=i?.getBoundingClientRect().width??0,a=r?.getBoundingClientRect().width??0;e.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${o+a}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(Kt),D(zr),D(Ri),D(P6,8),D(Br,8),D(hn))},n.\u0275cmp=I({type:n,selectors:[["mat-form-field"]],contentQueries:function(e,i,r){if(1&e&&(zn(r,jr,5),zn(r,jr,7),zn(r,ub,5),zn(r,A6,5),zn(r,F6,5),zn(r,lI,5),zn(r,dI,5)),2&e){let o;kt(o=St())&&(i._labelChildNonStatic=o.first),kt(o=St())&&(i._labelChildStatic=o.first),kt(o=St())&&(i._formFieldControl=o.first),kt(o=St())&&(i._prefixChildren=o),kt(o=St())&&(i._suffixChildren=o),kt(o=St())&&(i._errorChildren=o),kt(o=St())&&(i._hintChildren=o)}},viewQuery:function(e,i){if(1&e&&(Hn(a6,5),Hn(c6,5),Hn(l6,5),Hn(uI,5),Hn(fI,5),Hn(mI,5)),2&e){let r;kt(r=St())&&(i._textField=r.first),kt(r=St())&&(i._iconPrefixContainer=r.first),kt(r=St())&&(i._textPrefixContainer=r.first),kt(r=St())&&(i._floatingLabel=r.first),kt(r=St())&&(i._notchedOutline=r.first),kt(r=St())&&(i._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(e,i){2&e&&un("mat-mdc-form-field-label-always-float",i._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",i._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",i._hasIconSuffix)("mat-form-field-invalid",i._control.errorState)("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===i._animationMode)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-hide-placeholder",i._hasFloatingLabel()&&!i._shouldLabelFloat())("mat-focused",i._control.focused)("mat-primary","accent"!==i.color&&"warn"!==i.color)("mat-accent","accent"===i.color)("mat-warn","warn"===i.color)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Wt([{provide:zf,useExisting:n}])],ngContentSelectors:k6,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(e,i){1&e&&(Di(E6),Y(0,h6,1,1,"ng-template",null,0,jg),y(2,"div",1,2),ce("click",function(o){return i._control.onContainerClick&&i._control.onContainerClick(o)}),Y(4,m6,1,0,"div",3),y(5,"div",4),Y(6,g6,2,3,"div",5),Y(7,_6,3,0,"div",6),Y(8,b6,3,0,"div",7),y(9,"div",8),Y(10,v6,1,1,"ng-template",9),tn(11),b(),Y(12,C6,2,0,"div",10),Y(13,x6,2,0,"div",11),b(),Y(14,w6,1,0,"div",12),b(),y(15,"div",13),Y(16,D6,2,1,"div",14),Y(17,T6,5,2,"div",15),b()),2&e&&(S(2),un("mdc-text-field--filled",!i._hasOutline())("mdc-text-field--outlined",i._hasOutline())("mdc-text-field--no-label",!i._hasFloatingLabel())("mdc-text-field--disabled",i._control.disabled)("mdc-text-field--invalid",i._control.errorState),S(2),P("ngIf",!i._hasOutline()&&!i._control.disabled),S(2),P("ngIf",i._hasOutline()),S(1),P("ngIf",i._hasIconPrefix),S(1),P("ngIf",i._hasTextPrefix),S(2),P("ngIf",!i._hasOutline()||i._forceDisplayInfixLabel()),S(2),P("ngIf",i._hasTextSuffix),S(1),P("ngIf",i._hasIconSuffix),S(1),P("ngIf",!i._hasOutline()),S(1),un("mat-mdc-form-field-subscript-dynamic-size","dynamic"===i.subscriptSizing),P("ngSwitch",i._getDisplayedMessages()),S(1),P("ngSwitchCase","error"),S(1),P("ngSwitchCase","hint"))},dependencies:[yi,mT,hh,a_,iS,dI,uI,fI,mI],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}'],encapsulation:2,data:{animation:[R6.transitionMessages]},changeDetection:0}),n})(),hb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[Gn,Ca,ZC,Gn]}),n})();function bI(n,t){return t?e=>Y_(t.pipe($r(1),function B6(){return Ke((n,t)=>{n.subscribe(Ot(t,At))})}()),e.pipe(bI(n))):Po((e,i)=>Ci(n(e,i)).pipe($r(1),function V6(n){return Nn(()=>n)}(e)))}function yx(n,t=Tf){const e=G_(n,t);return bI(()=>e)}const H6=["panel"];function z6(n,t){if(1&n&&(y(0,"div",0,1),tn(2),b()),2&n){const e=t.id,i=q();P("id",i.id)("ngClass",i._classList)("@panelAnimation",i.isOpen?"visible":"hidden"),jt("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const $6=["*"],j6=nl("panelAnimation",[xa("void, hidden",Si({opacity:0,transform:"scaleY(0.8)"})),To(":enter, hidden => visible",[iB([Mo("0.03s linear",Si({opacity:1})),Mo("0.12s cubic-bezier(0, 0, 0.2, 1)",Si({transform:"scaleY(1)"}))])]),To(":leave, visible => hidden",[Mo("0.075s linear",Si({opacity:0}))])]);let U6=0;class W6{constructor(t,e){this.source=t,this.option=e}}const G6=nd(class{}),yI=new De("mat-autocomplete-default-options",{providedIn:"root",factory:function Y6(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let Z6=(()=>{class n extends G6{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=Ft(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=Ft(e)}set classList(e){this._classList=e&&e.length?function B5(n,t=/\s+/){const e=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(t);for(const r of i){const o=`${r}`.trim();o&&e.push(o)}}return e}(e).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(e,i,r,o){super(),this._changeDetectorRef=e,this._elementRef=i,this._defaults=r,this._activeOptionChanges=re.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this._autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this._autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.optionSelected=new Ze,this.opened=new Ze,this.closed=new Ze,this.optionActivated=new Ze,this._classList={},this.id="mat-autocomplete-"+U6++,this.inertGroups=o?.SAFARI||!1}ngAfterContentInit(){this._keyManager=new uS(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new W6(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}_setThemeClasses(e){e["mat-primary"]="primary"===this._color,e["mat-warn"]="warn"===this._color,e["mat-accent"]="accent"===this._color}}return n.\u0275fac=function(e){return new(e||n)(D(li),D(k),D(yI),D(Ri))},n.\u0275dir=C({type:n,viewQuery:function(e,i){if(1&e&&(Hn(pr,7),Hn(H6,5)),2&e){let r;kt(r=St())&&(i.template=r.first),kt(r=St())&&(i.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[ht]}),n})(),q6=(()=>{class n extends Z6{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=Ft(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275cmp=I({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,i,r){if(1&e&&(zn(r,mx,5),zn(r,Bd,5)),2&e){let o;kt(o=St())&&(i.optionGroups=o),kt(o=St())&&(i.options=o)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[Wt([{provide:hx,useExisting:n}]),ht],ngContentSelectors:$6,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(e,i){1&e&&(Di(),Y(0,z6,3,5,"ng-template"))},dependencies:[uh],styles:[".mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface.mat-mdc-autocomplete-panel{width:100%;max-height:256px;position:static;visibility:hidden;transform-origin:center top;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-autocomplete-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) .mdc-menu-surface.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above .mdc-menu-surface.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[j6]},changeDetection:0}),n})();const K6={provide:yr,useExisting:Jt(()=>CI),multi:!0},vI=new De("mat-autocomplete-scroll-strategy"),Q6={provide:vI,deps:[Ma],useFactory:function X6(n){return()=>n.scrollStrategies.reposition()}};let J6=(()=>{class n{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=Ft(e)}constructor(e,i,r,o,a,c,d,h,p,_,M){this._element=e,this._overlay=i,this._viewContainerRef=r,this._zone=o,this._changeDetectorRef=a,this._dir=d,this._formField=h,this._document=p,this._viewportRuler=_,this._defaults=M,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=re.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Ee,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=cI(()=>{const A=this.autocomplete?this.autocomplete.options:null;return A?A.changes.pipe(Hr(A),Sc(()=>si(...A.map(N=>N.onSelectionChange)))):this._zone.onStable.pipe($r(1),Sc(()=>this.optionSelections))}),this._scrollStrategy=c}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return si(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ms(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ms(()=>this._overlayAttached)):Ds()).pipe(Nn(e=>e instanceof ZS?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return si(kc(this._document,"click"),kc(this._document,"auxclick"),kc(this._document,"touchend")).pipe(Ms(e=>{const i=Gs(e),r=this._formField?this._formField._elementRef.nativeElement:null,o=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(i))&&(!o||!o.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode,r=Ys(e);if(27===i&&!r&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const o=this.autocomplete._keyManager.activeItem,a=38===i||40===i;9===i||a&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this.openPanel(),(a||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return si(this._zone.onStable.pipe($r(1)),this.autocomplete.options.changes.pipe(xh(()=>this._positionStrategy.reapplyLastPosition()),yx(0))).pipe(Sc(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),$r(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const i=e?e.source:this._pendingAutoselectedOption;i&&(this._clearPreviousSelectedOption(i),this._assignOptionValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(i=>{i!==e&&i.selected&&i.deselect()})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Vd(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new Vf({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let a;a="above"===this.position?o:"below"===this.position?i:[...i,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(e){const i=this.autocomplete,r=qS(e,i.options,i.optionGroups);if(0===e&&1===r)i._setScrollTop(0);else if(i.panel){const o=i.options.toArray()[e];if(o){const a=o._getHostElement(),c=KS(a.offsetTop,a.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(c)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(i=>{(27===i.keyCode&&!Ys(i)||38===i.keyCode&&Ys(i,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),i.stopPropagation(),i.preventDefault())}),e.outsidePointerEvents().subscribe()}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Ma),D(gr),D(Kt),D(li),D(vI),D(zr,8),D(zf,9),D(hn,8),D(ol),D(yI,8))},n.\u0275dir=C({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[Ei]}),n})(),CI=(()=>{class n extends J6{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275dir=C({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(e,i){1&e&&ce("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(o){return i._handleInput(o)})("keydown",function(o){return i._handleKeydown(o)})("click",function(){return i._handleClick()}),2&e&&jt("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[Wt([K6]),ht]}),n})(),eH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({providers:[Q6],imports:[Hf,cb,Gn,Ca,Rd,cb,Gn]}),n})();const tH=["mat-button",""],xI=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],wI=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],iH=["mat-fab",""],rH=["mat-icon-button",""],oH=["*"],sH=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],aH=Th(Ld(nd(class{constructor(n){this._elementRef=n}})));let vx=(()=>{class n extends aH{constructor(e,i,r,o){super(e),this._platform=i,this._ngZone=r,this._animationMode=o,this._focusMonitor=_i(td),this._isFab=!1;const a=e.nativeElement.classList;for(const c of sH)this._hasHostAttributes(c.selector)&&c.mdcClasses.forEach(d=>{a.add(d)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_hasHostAttributes(...e){return e.some(i=>this._elementRef.nativeElement.hasAttribute(i))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return n.\u0275fac=function(e){Pm()},n.\u0275dir=C({type:n,viewQuery:function(e,i){if(1&e&&Hn(rs,5),2&e){let r;kt(r=St())&&(i.ripple=r.first)}},features:[ht]}),n})(),Zi=(()=>{class n extends vx{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Ri),D(Kt),D(Br,8))},n.\u0275cmp=I({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(e,i){2&e&&(jt("disabled",i.disabled||null),un("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ht],attrs:tH,ngContentSelectors:wI,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(Di(xI),Pe(0,"span",0),tn(1),y(2,"span",1),tn(3,1),b(),tn(4,2),Pe(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(un("mdc-button__ripple",!i._isFab)("mdc-fab__ripple",i._isFab),S(6),P("matRippleDisabled",i._isRippleDisabled())("matRippleTrigger",i._elementRef.nativeElement))},dependencies:[rs],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})();const lH=new De("mat-mdc-fab-default-options",{providedIn:"root",factory:DI});function DI(){return{color:"accent"}}const MI=DI();let $f=(()=>{class n extends vx{get extended(){return this._extended}set extended(e){this._extended=Ft(e)}constructor(e,i,r,o,a){super(e,i,r,o),this._options=a,this._isFab=!0,this._options=this._options||MI,this.color=this.defaultColor=this._options.color||MI.color}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Ri),D(Kt),D(Br,8),D(lH,8))},n.\u0275cmp=I({type:n,selectors:[["button","mat-fab",""]],hostVars:11,hostBindings:function(e,i){2&e&&(jt("disabled",i.disabled||null),un("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0)("mdc-fab--extended",i.extended)("mat-mdc-extended-fab",i.extended))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",extended:"extended"},exportAs:["matButton"],features:[ht],attrs:iH,ngContentSelectors:wI,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(Di(xI),Pe(0,"span",0),tn(1),y(2,"span",1),tn(3,1),b(),tn(4,2),Pe(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(un("mdc-button__ripple",!i._isFab)("mdc-fab__ripple",i._isFab),S(6),P("matRippleDisabled",i._isRippleDisabled())("matRippleTrigger",i._elementRef.nativeElement))},dependencies:[rs],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n )}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab .mdc-fab__icon{width:24px;height:24px;font-size:24px}.mdc-fab:not(.mdc-fab--extended){border-radius:50%}.mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:50%}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--mdc-fab-container-color, transparent);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);color:var(--mat-mdc-fab-color, inherit);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(:disabled) .mdc-fab__icon,.mat-mdc-mini-fab:not(:disabled) .mdc-fab__icon{color:var(--mdc-fab-icon-color, inherit)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape, 50%)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape, 50%)}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-extended-fab{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:24px}.mat-mdc-extended-fab .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab .mdc-fab__icon,.mat-mdc-extended-fab .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon,.mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0}),n})(),jf=(()=>{class n extends vx{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Ri),D(Kt),D(Br,8))},n.\u0275cmp=I({type:n,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(e,i){2&e&&(jt("disabled",i.disabled||null),un("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ht],attrs:rH,ngContentSelectors:oH,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(Di(),Pe(0,"span",0),tn(1),Pe(2,"span",1)(3,"span",2)(4,"span",3)),2&e&&(S(3),P("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",i._elementRef.nativeElement))},dependencies:[rs],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),TI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[Gn,Nd,Gn]}),n})();class EI{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,e,i=!0,r){this._multiple=t,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Ee,e&&e.length&&(t?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...t){this._verifyValueAssignment(t),t.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...t){this._verifyValueAssignment(t);const e=this.selected,i=new Set(t);t.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();const e=this._hasQueuedChanges();return t&&this._emitChangeEvent(),e}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(t){if(this.compareWith){for(let e of this._selection)if(this.compareWith(t,e))return e;return t}return t}}const dH=["button"],uH=["*"],kI=new De("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),SI=new De("MatButtonToggleGroup"),hH={provide:yr,useExisting:Jt(()=>Cx),multi:!0};let II=0;class AI{constructor(t,e){this.source=t,this.value=e}}let Cx=(()=>{class n{get name(){return this._name}set name(e){this._name=e,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(e){this._vertical=Ft(e)}get value(){const e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(i=>i.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}get selected(){const e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}get multiple(){return this._multiple}set multiple(e){this._multiple=Ft(e),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(e){this._disabled=Ft(e),this._markButtonsForCheck()}constructor(e,i){this._changeDetector=e,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+II++,this.valueChange=new Ze,this.change=new Ze,this.appearance=i&&i.appearance?i.appearance:"standard"}ngOnInit(){this._selectionModel=new EI(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked))}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_emitChangeEvent(e){const i=new AI(e,this.value);this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}_syncButtonToggle(e,i,r=!1,o=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?i?this._selectionModel.select(e):this._selectionModel.deselect(e):o=!0,o?Promise.resolve().then(()=>this._updateModelValue(e,r)):this._updateModelValue(e,r)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(i=>null!=e.value&&i===e.value):e.value===this._rawValue)}_setSelectionByValue(e){this._rawValue=e,this._buttonToggles&&(this.multiple&&e?(Array.isArray(e),this._clearSelection(),e.forEach(i=>this._selectValue(i))):(this._clearSelection(),this._selectValue(e)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>e.checked=!1)}_selectValue(e){const i=this._buttonToggles.find(r=>null!=r.value&&r.value===e);i&&(i.checked=!0,this._selectionModel.select(i))}_updateModelValue(e,i){i&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(D(li),D(kI,8))},n.\u0275dir=C({type:n,selectors:[["mat-button-toggle-group"]],contentQueries:function(e,i,r){if(1&e&&zn(r,xx,5),2&e){let o;kt(o=St())&&(i._buttonToggles=o)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(e,i){2&e&&(jt("aria-disabled",i.disabled),un("mat-button-toggle-vertical",i.vertical)("mat-button-toggle-group-appearance-standard","standard"===i.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Wt([hH,{provide:SI,useExisting:n}])]}),n})();const mH=nd(class{});let xx=(()=>{class n extends mH{get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){const i=Ft(e);i!==this._checked&&(this._checked=i,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=Ft(e)}constructor(e,i,r,o,a,c){super(),this._changeDetectorRef=i,this._elementRef=r,this._focusMonitor=o,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new Ze;const d=Number(a);this.tabIndex=d||0===d?d:null,this.buttonToggleGroup=e,this.appearance=c&&c.appearance?c.appearance:"standard"}ngOnInit(){const e=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+II++,e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){const e=!!this._isSingleSelector()||!this._checked;e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new AI(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return n.\u0275fac=function(e){return new(e||n)(D(SI,8),D(li),D(k),D(td),Vs("tabindex"),D(kI,8))},n.\u0275cmp=I({type:n,selectors:[["mat-button-toggle"]],viewQuery:function(e,i){if(1&e&&Hn(dH,5),2&e){let r;kt(r=St())&&(i._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(e,i){1&e&&ce("focus",function(){return i.focus()}),2&e&&(jt("aria-label",null)("aria-labelledby",null)("id",i.id)("name",null),un("mat-button-toggle-standalone",!i.buttonToggleGroup)("mat-button-toggle-checked",i.checked)("mat-button-toggle-disabled",i.disabled)("mat-button-toggle-appearance-standard","standard"===i.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[ht],ngContentSelectors:uH,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(e,i){if(1&e&&(Di(),y(0,"button",0,1),ce("click",function(){return i._onButtonClick()}),y(2,"span",2),tn(3),b()(),Pe(4,"span",3)(5,"span",4)),2&e){const r=Jo(1);P("id",i.buttonId)("disabled",i.disabled||null),jt("tabindex",i.disabled?-1:i.tabIndex)("aria-pressed",i.checked)("name",i._getButtonName())("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby),S(5),P("matRippleTrigger",r)("matRippleDisabled",i.disableRipple||i.disabled)}},dependencies:[rs],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),n})(),fH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[Gn,Nd,Gn]}),n})();const pH=["*"],bH=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],yH=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],vH=new De("MAT_CARD_CONFIG");let Eh=(()=>{class n{constructor(e){this.appearance=e?.appearance||"raised"}}return n.\u0275fac=function(e){return new(e||n)(D(vH,8))},n.\u0275cmp=I({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(e,i){2&e&&un("mat-mdc-card-outlined","outlined"===i.appearance)("mdc-card--outlined","outlined"===i.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:pH,decls:1,vars:0,template:function(e,i){1&e&&(Di(),tn(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mat-mdc-card{position:relative;border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px));background-color:var(--mdc-elevated-card-container-color, transparent);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color, transparent)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width, 1px);border-style:solid;border-color:var(--mdc-outlined-card-outline-color, transparent)}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0}),n})(),kh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]}),n})(),Sh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]}),n})(),Ih=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]}),n})(),Ah=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(e,i){2&e&&un("mat-mdc-card-actions-align-end","end"===i.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),n})(),Fh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=I({type:n,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:yH,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(e,i){1&e&&(Di(bH),tn(0),y(1,"div",0),tn(2,1),b(),tn(3,2))},encapsulation:2,changeDetection:0}),n})(),SH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[Gn,Ca,Gn]}),n})();const IH=["input"],AH=["label"],FH=["*"],OH=new De("mat-checkbox-default-options",{providedIn:"root",factory:FI});function FI(){return{color:"accent",clickAction:"check-indeterminate"}}const RH={provide:yr,useExisting:Jt(()=>al),multi:!0};class PH{}let LH=0;const OI=FI(),NH=Pf(Th(nd(Ld(class{constructor(n){this._elementRef=n}}))));let BH=(()=>{class n extends NH{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Ft(e)}constructor(e,i,r,o,a,c,d){super(i),this._changeDetectorRef=r,this._ngZone=o,this._animationMode=c,this._options=d,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Ze,this.indeterminateChange=new Ze,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||OI,this.color=this.defaultColor=this._options.color||OI.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`${e}${++LH}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const i=Ft(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=Ft(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=Ft(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,r=this._getAnimationTargetElement();if(i!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===i)return this._animationClasses.uncheckedToChecked;if(3==i)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===i?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===i?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===i?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){Pm()},n.\u0275dir=C({type:n,viewQuery:function(e,i){if(1&e&&(Hn(IH,5),Hn(AH,5),Hn(rs,5)),2&e){let r;kt(r=St())&&(i._inputElement=r.first),kt(r=St())&&(i._labelElement=r.first),kt(r=St())&&(i.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[ht]}),n})(),al=(()=>{class n extends BH{constructor(e,i,r,o,a,c){super("mat-mdc-checkbox-",e,i,r,o,a,c),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const i=new PH;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(Kt),Vs("tabindex"),D(Br,8),D(OH,8))},n.\u0275cmp=I({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(e,i){2&e&&($s("id",i.id),jt("tabindex",null)("aria-label",null)("aria-labelledby",null),un("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mdc-checkbox--disabled",i.disabled)("mat-mdc-checkbox-disabled",i.disabled)("mat-mdc-checkbox-checked",i.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[Wt([RH]),ht],ngContentSelectors:FH,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[3,"for"],["label",""]],template:function(e,i){if(1&e&&(Di(),y(0,"div",0),ce("click",function(o){return i._preventBubblingFromLabel(o)}),y(1,"div",1,2)(3,"div",3),ce("click",function(){return i._onTouchTargetClick()}),b(),y(4,"input",4,5),ce("blur",function(){return i._onBlur()})("click",function(){return i._onInputClick()})("change",function(o){return i._onInteractionEvent(o)}),b(),Pe(6,"div",6),y(7,"div",7),mc(),y(8,"svg",8),Pe(9,"path",9),b(),au(),Pe(10,"div",10),b(),Pe(11,"div",11),b(),y(12,"label",12,13),tn(14),b()()),2&e){const r=Jo(2);un("mdc-form-field--align-end","before"==i.labelPosition),S(4),un("mdc-checkbox--selected",i.checked),P("checked",i.checked)("disabled",i.disabled)("id",i.inputId)("required",i.required)("tabIndex",i.tabIndex),jt("aria-checked",i._getAriaChecked())("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby)("name",i.name)("value",i.value),S(7),P("matRippleTrigger",r)("matRippleDisabled",i.disableRipple||i.disabled)("matRippleCentered",!0),S(1),P("for",i.inputId)}},dependencies:[rs],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color, rgba(0, 0, 0, 0.38))}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:not([disabled])~.mdc-checkbox__ripple{opacity:.04;transform:scale(1);transition:opacity 80ms 0 cubic-bezier(0, 0, 0.2, 1),transform 80ms 0 cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:.16}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__native-control:focus:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, black)}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),RI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({}),n})(),zH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[Gn,Nd,RI,Gn,RI]}),n})();function $H(n,t){1&n&&(y(0,"span",8),tn(1,1),b())}function jH(n,t){1&n&&(y(0,"span",9),tn(1,2),b())}const PI=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],LI=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function GH(n,t){if(1&n&&(Pr(0),Pe(1,"span",9)(2,"span",10),Lr()),2&n){const e=q();S(1),P("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e._isRippleCentered)("matRippleTrigger",e._elementRef.nativeElement)}}function YH(n,t){1&n&&(y(0,"span",11),tn(1),b())}function ZH(n,t){1&n&&(Pr(0),tn(1,1),Lr())}function qH(n,t){1&n&&tn(0,2,["*ngIf","contentEditInput; else defaultMatChipEditInput"])}function KH(n,t){1&n&&Pe(0,"span",14)}function XH(n,t){if(1&n&&(Pr(0),Y(1,qH,1,0,"ng-content",12),Y(2,KH,1,0,"ng-template",null,13,jg),Lr()),2&n){const e=Jo(3),i=q();S(1),P("ngIf",i.contentEditInput)("ngIfElse",e)}}function QH(n,t){1&n&&(y(0,"span",15),tn(1,3),b())}const JH=[[["mat-chip-avatar"],["","matChipAvatar",""]],"*",[["","matChipEditInput",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],ez=["mat-chip-avatar, [matChipAvatar]","*","[matChipEditInput]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],wx=["*"],mb=new De("mat-chips-default-options"),Dx=new De("MatChipAvatar"),Mx=new De("MatChipTrailingIcon"),Tx=new De("MatChipRemove"),fb=new De("MatChip");class tz{}const nz=Pf(tz,-1);let Oh=(()=>{class n extends nz{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(e){this._disabled=Ft(e)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(e,i){super(),this._elementRef=e,this._parentChip=i,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(fb))},n.\u0275dir=C({type:n,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(e,i){1&e&&ce("click",function(o){return i._handleClick(o)})("keydown",function(o){return i._handleKeydown(o)}),2&e&&(jt("tabindex",i._getTabindex())("disabled",i._getDisabledAttribute())("aria-disabled",i.disabled),un("mdc-evolution-chip__action--primary",i._isPrimary)("mdc-evolution-chip__action--presentational",!i.isInteractive)("mdc-evolution-chip__action--trailing",!i._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[ht]}),n})(),Ex=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:["role","img",1,"mat-mdc-chip-avatar","mdc-evolution-chip__icon","mdc-evolution-chip__icon--primary"],features:[Wt([{provide:Dx,useExisting:n}])]}),n})(),VI=(()=>{class n extends Oh{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275dir=C({type:n,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(e,i){2&e&&jt("aria-hidden",null)},features:[Wt([{provide:Tx,useExisting:n}]),ht]}),n})(),rz=0;const oz=Pf(Th(nd(Ld(class{constructor(n){this._elementRef=n}})),"primary"),-1);let id=(()=>{class n extends oz{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}get removable(){return this._removable}set removable(e){this._removable=Ft(e)}get highlighted(){return this._highlighted}set highlighted(e){this._highlighted=Ft(e)}constructor(e,i,r,o,a,c,d,h){super(i),this._changeDetectorRef=e,this._ngZone=r,this._focusMonitor=o,this._globalRippleOptions=d,this._isRippleCentered=!1,this._onFocus=new Ee,this._onBlur=new Ee,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+rz++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new Ze,this.destroyed=new Ze,this.basicChipAttrName="mat-basic-chip";const p=i.nativeElement;this._document=a,this._animationsDisabled="NoopAnimations"===c,this._isBasicChip=p.hasAttribute(this.basicChipAttrName)||p.tagName.toLowerCase()===this.basicChipAttrName,null!=h&&(this.tabIndex=parseInt(h)??this.defaultTabIndex),this._monitorFocus()}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=si(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(e){(8===e.keyCode||46===e.keyCode)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{const r=i._elementRef.nativeElement;return r===e||r.contains(e)})}_getActions(){const e=[];return this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=null!==e;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe($r(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}}return n.\u0275fac=function(e){return new(e||n)(D(li),D(k),D(Kt),D(td),D(hn),D(Br,8),D(ux,8),Vs("tabindex"))},n.\u0275cmp=I({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,i,r){if(1&e&&(zn(r,Dx,5),zn(r,Mx,5),zn(r,Tx,5),zn(r,Dx,5),zn(r,Mx,5),zn(r,Tx,5)),2&e){let o;kt(o=St())&&(i.leadingIcon=o.first),kt(o=St())&&(i.trailingIcon=o.first),kt(o=St())&&(i.removeIcon=o.first),kt(o=St())&&(i._allLeadingIcons=o),kt(o=St())&&(i._allTrailingIcons=o),kt(o=St())&&(i._allRemoveIcons=o)}},viewQuery:function(e,i){if(1&e&&(Hn(rs,5),Hn(Oh,5)),2&e){let r;kt(r=St())&&(i.ripple=r.first),kt(r=St())&&(i.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(e,i){1&e&&ce("keydown",function(o){return i._handleKeydown(o)}),2&e&&($s("id",i.id),jt("role",i.role)("tabindex",i.role?i.tabIndex:null)("aria-label",i.ariaLabel),un("mdc-evolution-chip",!i._isBasicChip)("mdc-evolution-chip--disabled",i.disabled)("mdc-evolution-chip--with-trailing-action",i._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",i.leadingIcon)("mdc-evolution-chip--with-primary-icon",i.leadingIcon)("mdc-evolution-chip--with-avatar",i.leadingIcon)("mat-mdc-chip-with-avatar",i.leadingIcon)("mat-mdc-chip-highlighted",i.highlighted)("mat-mdc-chip-disabled",i.disabled)("mat-mdc-basic-chip",i._isBasicChip)("mat-mdc-standard-chip",!i._isBasicChip)("mat-mdc-chip-with-trailing-icon",i._hasTrailingIcon())("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Wt([{provide:fb,useExisting:n}]),ht],ngContentSelectors:LI,decls:9,vars:6,consts:[["matRipple","",1,"mat-mdc-chip-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(e,i){1&e&&(Di(PI),Pe(0,"span",0)(1,"span",1),y(2,"span",2)(3,"span",3),Y(4,$H,2,0,"span",4),y(5,"span",5),tn(6),Pe(7,"span",6),b()()(),Y(8,jH,2,0,"span",7)),2&e&&(P("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i._isRippleCentered)("matRippleTrigger",i._elementRef.nativeElement),S(3),P("isInteractive",!1),S(1),P("ngIf",i.leadingIcon),S(4),P("ngIf",i._hasTrailingIcon()))},dependencies:[yi,rs,Oh],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 14px 14px 14px 14px)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size, 28px);width:var(--mdc-chip-with-avatar-avatar-size, 28px);font-size:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width, 1px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-outline-width, 1px)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-unselected-outline-width, 1px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size, 18px);width:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, currentColor)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),pb=(()=>{class n{constructor(e,i){this._elementRef=e,this._document=i}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){const e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);const i=window.getSelection();i.removeAllRanges(),i.addRange(e)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(hn))},n.\u0275dir=C({type:n,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]}),n})(),kx=(()=>{class n extends id{constructor(e,i,r,o,a,c,d,h){super(e,i,r,o,a,c,d,h),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new Ze,this._isEditing=!1,this.role="row",this._onBlur.pipe(xn(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_mousedown(e){this._isEditing||(this.disabled||this.focus(),e.preventDefault())}_handleKeydown(e){13!==e.keyCode||this.disabled?this._isEditing?e.stopPropagation():super._handleKeydown(e):this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e)}_doubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_startEditing(e){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(e.target)===this.removeIcon)return;const i=this.value;this._isEditing=!0,this._editStartPending=!0,setTimeout(()=>{this._getEditInput().initialize(i),this._editStartPending=!1})}_onEditFinish(){this._isEditing=!1,this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_getEditInput(){return this.contentEditInput||this.defaultEditInput}}return n.\u0275fac=function(e){return new(e||n)(D(li),D(k),D(Kt),D(td),D(hn),D(Br,8),D(ux,8),Vs("tabindex"))},n.\u0275cmp=I({type:n,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(e,i,r){if(1&e&&zn(r,pb,5),2&e){let o;kt(o=St())&&(i.contentEditInput=o.first)}},viewQuery:function(e,i){if(1&e&&Hn(pb,5),2&e){let r;kt(r=St())&&(i.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(e,i){1&e&&ce("mousedown",function(o){return i._mousedown(o)})("dblclick",function(o){return i._doubleclick(o)}),2&e&&($s("id",i.id),jt("tabindex",null)("aria-label",null)("aria-description",null)("role",i.role),un("mat-mdc-chip-with-avatar",i.leadingIcon)("mat-mdc-chip-disabled",i.disabled)("mat-mdc-chip-editing",i._isEditing)("mat-mdc-chip-editable",i.editable)("mdc-evolution-chip--disabled",i.disabled)("mdc-evolution-chip--with-trailing-action",i._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",i.leadingIcon)("mdc-evolution-chip--with-primary-icon",i.leadingIcon)("mdc-evolution-chip--with-avatar",i.leadingIcon)("mat-mdc-chip-highlighted",i.highlighted)("mat-mdc-chip-with-trailing-icon",i._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",editable:"editable"},outputs:{edited:"edited"},features:[Wt([{provide:id,useExisting:n},{provide:fb,useExisting:n}]),ht],ngContentSelectors:ez,decls:11,vars:13,consts:[[4,"ngIf"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"tabIndex","disabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label",3,"ngSwitch"],[4,"ngSwitchCase"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing","role","gridcell",4,"ngIf"],[1,"cdk-visually-hidden",3,"id"],["matRipple","",1,"mat-mdc-chip-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[4,"ngIf","ngIfElse"],["defaultMatChipEditInput",""],["matChipEditInput",""],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(e,i){1&e&&(Di(JH),Y(0,GH,3,3,"ng-container",0),y(1,"span",1)(2,"span",2),Y(3,YH,2,0,"span",3),y(4,"span",4),Y(5,ZH,2,0,"ng-container",5),Y(6,XH,4,2,"ng-container",5),Pe(7,"span",6),b()()(),Y(8,QH,2,0,"span",7),y(9,"span",8),E(10),b()),2&e&&(P("ngIf",!i._isEditing),S(2),P("tabIndex",i.tabIndex)("disabled",i.disabled),jt("role",i.editable?"button":null)("aria-label",i.ariaLabel)("aria-describedby",i._ariaDescriptionId),S(1),P("ngIf",i.leadingIcon),S(1),P("ngSwitch",i._isEditing),S(1),P("ngSwitchCase",!1),S(1),P("ngSwitchCase",!0),S(2),P("ngIf",i._hasTrailingIcon()),S(1),P("id",i._ariaDescriptionId),S(1),Ut(i.ariaDescription))},dependencies:[yi,hh,a_,rs,Oh,pb],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 14px 14px 14px 14px)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size, 28px);width:var(--mdc-chip-with-avatar-avatar-size, 28px);font-size:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width, 1px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-outline-width, 1px)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-unselected-outline-width, 1px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size, 18px);width:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, currentColor)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})();class sz{constructor(t){}}const az=Pf(sz);let gb=(()=>{class n extends az{get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get disabled(){return this._disabled}set disabled(e){this._disabled=Ft(e),this._syncChipsState()}get empty(){return 0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(e){this._explicitRole=e}get focused(){return this._hasFocusedChip()}constructor(e,i,r){super(e),this._elementRef=e,this._changeDetectorRef=i,this._dir=r,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new Ee,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new Yl}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(e=>{e.disabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis.tabIndex=e)}}_getChipStream(e){return this._chips.changes.pipe(Hr(null),Sc(()=>si(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList&&i.classList.contains("mdc-evolution-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Hr(this._chips)).subscribe(e=>{const i=[];e.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new QC(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(xn(this._destroyed)).subscribe(({chip:e})=>{const i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(xn(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Hr(null),xn(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(xn(this._destroyed)).subscribe(e=>{const r=this._chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&e.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(zr,8))},n.\u0275cmp=I({type:n,selectors:[["mat-chip-set"]],contentQueries:function(e,i,r){if(1&e&&zn(r,id,5),2&e){let o;kt(o=St())&&(i._chips=o)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(e,i){1&e&&ce("keydown",function(o){return i._handleKeydown(o)}),2&e&&jt("role",i.role)},inputs:{disabled:"disabled",role:"role"},features:[ht],ngContentSelectors:wx,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(e,i){1&e&&(Di(),y(0,"div",0),tn(1),b())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),n})();class dz{constructor(t,e){this.source=t,this.value=e}}class uz extends gb{constructor(t,e,i,r,o,a,c){super(t,e,i),this._defaultErrorStateMatcher=r,this._parentForm=o,this._parentFormGroup=a,this.ngControl=c,this.stateChanges=new Ee}}const hz=dx(uz);let $I=(()=>{class n extends hz{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ft(e),this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||0===this._chips.length)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(Sn.required)??!1}set required(e){this._required=Ft(e),this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}constructor(e,i,r,o,a,c,d){super(e,i,r,c,o,a,d),this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new Ze,this.valueChange=new Ze,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this.chipBlurChanges.pipe(xn(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),si(this.chipFocusChanges,this._chips.changes).pipe(xn(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?.setDescribedByIds(e)}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(e){9===e.keyCode?this._chipInput.focused&&Ys(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(e),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){const e=this._chips.length?this._chips.toArray().map(i=>i.value):[];this._value=e,this.change.emit(new dz(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(zr,8),D(ph,8),D(Jr,8),D(ab),D(Qa,10))},n.\u0275cmp=I({type:n,selectors:[["mat-chip-grid"]],contentQueries:function(e,i,r){if(1&e&&zn(r,kx,5),2&e){let o;kt(o=St())&&(i._chips=o)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(e,i){1&e&&ce("focus",function(){return i.focus()})("blur",function(){return i._blur()}),2&e&&($s("tabIndex",i._chips&&0===i._chips.length?-1:i.tabIndex),jt("role",i.role)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState),un("mat-mdc-chip-list-disabled",i.disabled)("mat-mdc-chip-list-invalid",i.errorState)("mat-mdc-chip-list-required",i.required))},inputs:{tabIndex:"tabIndex",disabled:"disabled",placeholder:"placeholder",required:"required",value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Wt([{provide:ub,useExisting:n}]),ht],ngContentSelectors:wx,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(e,i){1&e&&(Di(),y(0,"div",0),tn(1),b())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),n})(),mz=0,jI=(()=>{class n{set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=Ft(e)}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=Ft(e)}get empty(){return!this.inputElement.value}constructor(e,i,r){this._elementRef=e,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new Ze,this.placeholder="",this.id="mat-mdc-chip-list-input-"+mz++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,r&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipGrid._focusLastChip(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipGrid.stateChanges.next()}_emitChipEnd(e){(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}setDescribedByIds(e){const i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.removeAttribute("aria-describedby")}_isSeparatorKey(e){return!Ys(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(mb),D(zf,8))},n.\u0275dir=C({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(e,i){1&e&&ce("keydown",function(o){return i._keydown(o)})("keyup",function(o){return i._keyup(o)})("blur",function(){return i._blur()})("focus",function(){return i._focus()})("input",function(){return i._onInput()}),2&e&&($s("id",i.id),jt("disabled",i.disabled||null)("placeholder",i.placeholder||null)("aria-invalid",i._chipGrid&&i._chipGrid.ngControl?i._chipGrid.ngControl.invalid:null)("aria-required",i._chipGrid&&i._chipGrid.required||null)("required",i._chipGrid&&i._chipGrid.required||null))},inputs:{chipGrid:["matChipInputFor","chipGrid"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Ei]}),n})(),fz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({providers:[ab,{provide:mb,useValue:{separatorKeyCodes:[13]}}],imports:[Gn,Ca,Nd,Gn]}),n})();function Sx(n){return Ke((t,e)=>{let o,i=null,r=!1;i=t.subscribe(Ot(e,void 0,void 0,a=>{o=Ci(n(a,Sx(n)(t))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}const _z=["*"];let _b;function Uf(n){return function bz(){if(void 0===_b&&(_b=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(_b=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return _b}()?.createHTML(n)||n}function UI(n){return Error(`Unable to find icon with the name "${n}"`)}function WI(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function GI(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class zd{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Wf=(()=>{class n{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new zd(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const a=this._sanitizer.sanitize(qn.HTML,r);if(!a)throw GI(r);const c=Uf(a);return this._addSvgIconConfig(e,i,new zd("",c,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new zd(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(qn.HTML,i);if(!o)throw GI(i);const a=Uf(o);return this._addSvgIconSetConfig(e,new zd("",a,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(qn.RESOURCE_URL,e);if(!i)throw WI(e);const r=this._cachedIconsByUrl.get(i);return r?Ds(bb(r)):this._loadSvgIconFromConfig(new zd(e,null)).pipe(xh(o=>this._cachedIconsByUrl.set(i,o)),Nn(o=>bb(o)))}getNamedSvgIcon(e,i=""){const r=YI(i,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):function pz(n,t){const e=X(n)?n:()=>n,i=r=>r.error(e());return new ye(t?r=>t.schedule(i,0,r):i)}(UI(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Ds(bb(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Nn(i=>bb(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?Ds(r):RE(i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Sx(c=>{const h=`Loading icon set URL: ${this._sanitizer.sanitize(qn.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(h)),Ds(null)})))).pipe(Nn(()=>{const a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw UI(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const a=this._svgElementFromConfig(o),c=this._extractSvgIconFromSet(a,e,o.options);if(c)return c}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(xh(i=>e.svgText=i),Nn(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Ds(null):this._fetchIcon(e).pipe(xh(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.querySelector(`[id="${i}"]`);if(!o)return null;const a=o.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,r);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),r);const c=this._svgElementFromString(Uf(""));return c.appendChild(a),this._setSvgAttributes(c,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(Uf("")),r=e.attributes;for(let o=0;oUf(h)),function gz(n){return Ke((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}(()=>this._inProgressUrlFetches.delete(a)),na());return this._inProgressUrlFetches.set(a,d),d}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(YI(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}}),ZI=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Tz=ZI.map(n=>`[${n}]`).join(", "),Ez=/^url\(['"]?#(.*?)['"]?\)$/;let Zs=(()=>{class n extends xz{get inline(){return this._inline}set inline(e){this._inline=Ft(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,r,o,a,c){super(e),this._iconRegistry=i,this._location=o,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=re.EMPTY,c&&(c.color&&(this.color=this.defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(Tz),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const c=i[o],d=c.getAttribute(a),h=d?d.match(Ez):null;if(h){let p=r.get(c);p||(p=[],r.set(c,p)),p.push({name:a,value:h[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe($r(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Wf),Vs("aria-hidden"),D(Dz),D(Qe),D(wz,8))},n.\u0275cmp=I({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&(jt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),un("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[ht],ngContentSelectors:_z,decls:1,vars:0,template:function(e,i){1&e&&(Di(),tn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),n})(),kz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[Gn,Gn]}),n})();const qI=Ja({passive:!0});let Sz=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Zn;const i=Yi(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new Ee,a="cdk-text-field-autofilled",c=d=>{"cdk-text-field-autofill-start"!==d.animationName||i.classList.contains(a)?"cdk-text-field-autofill-end"===d.animationName&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:d.target,isAutofilled:!1}))):(i.classList.add(a),this._ngZone.run(()=>o.next({target:d.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",c,qI),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",c,qI)}}),o}stopMonitoring(e){const i=Yi(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(ie(Ri),ie(Kt))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Iz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({}),n})();const Az=new De("MAT_INPUT_VALUE_ACCESSOR"),Fz=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Oz=0;const Rz=dx(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new Ee}});let Ts=(()=>{class n extends Rz{get disabled(){return this._disabled}set disabled(e){this._disabled=Ft(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Sn.required)??!1}set required(e){this._required=Ft(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Kk().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ft(e)}constructor(e,i,r,o,a,c,d,h,p,_){super(c,o,a,r),this._elementRef=e,this._platform=i,this._autofillMonitor=h,this._formField=_,this._uid="mat-input-"+Oz++,this.focused=!1,this.stateChanges=new Ee,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(N=>Kk().has(N)),this._iOSKeyupListener=N=>{const j=N.target;!j.value&&0===j.selectionStart&&0===j.selectionEnd&&(j.setSelectionRange(1,1),j.setSelectionRange(0,0))};const M=this._elementRef.nativeElement,A=M.nodeName.toLowerCase();this._inputValueAccessor=d||M,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&p.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===A,this._isTextarea="textarea"===A,this._isInFormField=!!_,this._isNativeSelect&&(this.controlType=M.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){const e=this._getPlaceholder();if(e!==this._previousPlaceholder){const i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Fz.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Ri),D(Qa,10),D(ph,8),D(Jr,8),D(ab),D(Az,10),D(Sz),D(Kt),D(zf,8))},n.\u0275dir=C({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(e,i){1&e&&ce("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&($s("id",i.id)("disabled",i.disabled)("required",i.required),jt("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required)("id",i.id),un("mat-input-server",i._isServer)("mat-mdc-form-field-textarea-control",i._isInFormField&&i._isTextarea)("mat-mdc-form-field-input-control",i._isInFormField)("mdc-text-field__input",i._isInFormField)("mat-mdc-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Wt([{provide:ub,useExisting:n}]),ht,Ei]}),n})(),Pz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[Gn,hb,hb,Iz,Gn]}),n})();const Lz=["mat-menu-item",""];function Nz(n,t){1&n&&(mc(),y(0,"svg",3),Pe(1,"polygon",4),b())}const Bz=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Vz=["mat-icon, [matMenuItemIcon]","*"];function Hz(n,t){if(1&n){const e=Bt();y(0,"div",0),ce("keydown",function(r){return Je(e),st(q()._handleKeydown(r))})("click",function(){return Je(e),st(q().closed.emit("click"))})("@transformMenu.start",function(r){return Je(e),st(q()._onAnimationStart(r))})("@transformMenu.done",function(r){return Je(e),st(q()._onAnimationDone(r))}),y(1,"div",1),tn(2),b()()}if(2&n){const e=q();P("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),jt("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const zz=["*"],Ix=new De("MAT_MENU_PANEL"),$z=nd(Ld(class{}));let yb=(()=>{class n extends $z{constructor(e,i,r,o,a){super(),this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new Ee,this._focused=new Ee,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r enter",Mo("120ms cubic-bezier(0, 0, 0.2, 1)",Si({opacity:1,transform:"scale(1)"}))),To("* => void",Mo("100ms 25ms linear",Si({opacity:0})))]),fadeInItems:nl("fadeInItems",[xa("showing",Si({opacity:1})),To("void => *",[Si({opacity:0}),Mo("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Uz=0;const KI=new De("mat-menu-default-options",{providedIn:"root",factory:function Wz(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Gf=(()=>{class n{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Ft(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ft(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,i,r,o){this._elementRef=e,this._ngZone=i,this._defaultOptions=r,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Yl,this._classList={},this._panelAnimationState="void",this._animationDone=new Ee,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Ze,this.close=this.closed,this.panelId="mat-menu-panel-"+Uz++}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new QC(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Hr(this._directDescendantItems),Sc(e=>si(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const i=this._keyManager;if("enter"===this._panelAnimationState&&i.activeItem?._hasFocus()){const r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(Hr(this._directDescendantItems),Sc(i=>si(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:Ys(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe($r(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Hr(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Kt),D(KI),D(li))},n.\u0275dir=C({type:n,contentQueries:function(e,i,r){if(1&e&&(zn(r,jz,5),zn(r,yb,5),zn(r,yb,4)),2&e){let o;kt(o=St())&&(i.lazyContent=o.first),kt(o=St())&&(i._allItems=o),kt(o=St())&&(i.items=o)}},viewQuery:function(e,i){if(1&e&&Hn(pr,5),2&e){let r;kt(r=St())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),Gz=(()=>{class n extends Gf{constructor(e,i,r,o){super(e,i,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Kt),D(KI),D(li))},n.\u0275cmp=I({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&jt("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Wt([{provide:Ix,useExisting:n}]),ht],ngContentSelectors:zz,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mdc-menu-surface","mdc-menu-surface--open","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content","mdc-list"]],template:function(e,i){1&e&&(Di(),Y(0,Hz,3,6,"ng-template"))},dependencies:[uh],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item.mdc-list-item{align-items:center}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item .mdc-list-item__primary-text{white-space:normal}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[vb.transformMenu,vb.fadeInItems]},changeDetection:0}),n})();const XI=new De("mat-menu-scroll-strategy"),Zz={provide:XI,deps:[Ma],useFactory:function Yz(n){return()=>n.scrollStrategies.reposition()}},QI=Ja({passive:!0});let qz=(()=>{class n{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,i,r,o,a,c,d,h,p){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=c,this._dir=d,this._focusMonitor=h,this._ngZone=p,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=re.EMPTY,this._hoverSubscription=re.EMPTY,this._menuCloseSubscription=re.EMPTY,this._changeDetectorRef=_i(li),this._handleTouchStart=_=>{tb(_)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Ze,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ze,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof Gf?a:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,QI)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,QI),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const i=this._createOverlay(e),r=i.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Gf&&(e._startAnimation(),e._directDescendantItems.changes.pipe(xn(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof Gf?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(Ms(r=>"void"===r.toState),$r(1),xn(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,r=e.parentMenu;for(;r;)i++,r=r.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){const i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Vf({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",a="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,a)):e.setPositionClasses(o,a)})}_setPosition(e,i){let[r,o]="before"===e.xPosition?["end","start"]:["start","end"],[a,c]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[d,h]=[a,c],[p,_]=[r,o],M=0;if(this.triggersSubmenu()){if(_=r="before"===e.xPosition?"start":"end",o=p="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const A=this._parentMaterialMenu.items.first;this._parentInnerPadding=A?A._getHostElement().offsetTop:0}M="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(d="top"===a?"bottom":"top",h="top"===c?"bottom":"top");i.withPositions([{originX:r,originY:d,overlayX:p,overlayY:a,offsetY:M},{originX:o,originY:d,overlayX:_,overlayY:a,offsetY:M},{originX:r,originY:h,overlayX:p,overlayY:c,offsetY:-M},{originX:o,originY:h,overlayX:_,overlayY:c,offsetY:-M}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return si(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Ds(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ms(a=>a!==this._menuItemInstance),Ms(()=>this._menuOpen)):Ds(),i)}_handleMousedown(e){eb(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Ms(e=>e===this._menuItemInstance&&!e.disabled),yx(0,NC)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Gf&&this.menu._isAnimating?this.menu._animationDone.pipe($r(1),yx(0,NC),xn(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Vd(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(D(Ma),D(k),D(gr),D(XI),D(Ix,8),D(yb,10),D(zr,8),D(td),D(Kt))},n.\u0275dir=C({type:n,hostVars:3,hostBindings:function(e,i){1&e&&ce("click",function(o){return i._handleClick(o)})("mousedown",function(o){return i._handleMousedown(o)})("keydown",function(o){return i._handleKeydown(o)}),2&e&&jt("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),Kz=(()=>{class n extends qz{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275dir=C({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[ht]}),n})(),Xz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({providers:[Zz],imports:[Ca,Nd,Gn,Hf,Rd,Gn]}),n})();const Qz=["trigger"],Jz=["panel"];function e$(n,t){if(1&n&&(y(0,"span",10),E(1),b()),2&n){const e=q();S(1),Ut(e.placeholder)}}function t$(n,t){if(1&n&&(y(0,"span",14),E(1),b()),2&n){const e=q(2);S(1),Ut(e.triggerValue)}}function n$(n,t){1&n&&tn(0,0,["*ngSwitchCase","true"])}function i$(n,t){1&n&&(y(0,"span",11),Y(1,t$,2,1,"span",12),Y(2,n$,1,0,"ng-content",13),b()),2&n&&(P("ngSwitch",!!q().customTrigger),S(2),P("ngSwitchCase",!0))}function r$(n,t){if(1&n){const e=Bt();mc(),au(),y(0,"div",15,16),ce("@transformPanel.done",function(r){return Je(e),st(q()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return Je(e),st(q()._handleKeydown(r))}),tn(2,1),b()}if(2&n){const e=q();W1("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),P("ngClass",e.panelClass)("@transformPanel","showing"),jt("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const o$=[[["mat-select-trigger"]],"*"],s$=["mat-select-trigger","*"],a$={transformPanelWrap:nl("transformPanelWrap",[To("* => void",oB("@transformPanel",[rB()],{optional:!0}))]),transformPanel:nl("transformPanel",[xa("void",Si({opacity:0,transform:"scale(1, 0.8)"})),To("void => showing",Mo("120ms cubic-bezier(0, 0, 0.2, 1)",Si({opacity:1,transform:"scale(1, 1)"}))),To("* => void",Mo("100ms linear",Si({opacity:0})))])};let JI=0;const eA=new De("mat-select-scroll-strategy"),l$=new De("MAT_SELECT_CONFIG"),d$={provide:eA,deps:[Ma],useFactory:function c$(n){return()=>n.scrollStrategies.reposition()}},u$=new De("MatSelectTrigger");class h${constructor(t,e){this.source=t,this.value=e}}const m$=nd(Pf(Ld(dx(class{constructor(n,t,e,i,r){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r,this.stateChanges=new Ee}}))));let f$=(()=>{class n extends m${get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Sn.required)??!1}set required(e){this._required=Ft(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Ft(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Ft(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Ec(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,i,r,o,a,c,d,h,p,_,M,A,N,j){super(a,o,d,h,_),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=c,this._parentFormField=p,this._liveAnnouncer=N,this._defaultOptions=j,this._panelOpen=!1,this._compareWith=(ee,de)=>ee===de,this._uid="mat-select-"+JI++,this._triggerAriaLabelledBy=null,this._destroy=new Ee,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+JI++,this._panelDoneAnimatingStream=new Ee,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=cI(()=>{const ee=this.options;return ee?ee.changes.pipe(Hr(ee),Sc(()=>si(...ee.map(de=>de.onSelectionChange)))):this._ngZone.onStable.pipe($r(1),Sc(()=>this.optionSelectionChanges))}),this.openedChange=new Ze,this._openedStream=this.openedChange.pipe(Ms(ee=>ee),Nn(()=>{})),this._closedStream=this.openedChange.pipe(Ms(ee=>!ee),Nn(()=>{})),this.selectionChange=new Ze,this.valueChange=new Ze,this.ngControl&&(this.ngControl.valueAccessor=this),null!=j?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=j.typeaheadDebounceInterval),this._scrollStrategyFactory=A,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(M)||0,this.id=this.id}ngOnInit(){this._selectionModel=new EI(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(YC(),xn(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(xn(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Hr(null),xn(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,o=13===i||32===i,a=this._keyManager;if(!a.isTyping()&&o&&!Ys(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const c=this.selected;a.onKeydown(e);const d=this.selected;d&&c!==d&&this._liveAnnouncer.announce(d.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,o=40===r||38===r,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(a||13!==r&&32!==r||!i.activeItem||Ys(e))if(!a&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const c=this.options.some(d=>!d.disabled&&!d.selected);this.options.forEach(d=>{d.disabled||(c?d.select():d.deselect())})}else{const c=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==c&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe($r(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new uS(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=si(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(xn(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),si(...this.options.map(i=>i._stateChanges)).pipe(xn(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(D(ol),D(li),D(Kt),D(ab),D(k),D(zr,8),D(ph,8),D(Jr,8),D(zf,8),D(Qa,10),Vs("tabindex"),D(eA),D(JC),D(l$,8))},n.\u0275dir=C({type:n,viewQuery:function(e,i){if(1&e&&(Hn(Qz,5),Hn(Jz,5),Hn(aI,5)),2&e){let r;kt(r=St())&&(i.trigger=r.first),kt(r=St())&&(i.panel=r.first),kt(r=St())&&(i._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[ht,Ei]}),n})(),Cb=(()=>{class n extends f${constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(xn(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(e){const i=this.options.toArray()[e];if(i){const r=this.panel.nativeElement,o=qS(e,this.options,this.optionGroups),a=i._getHostElement();r.scrollTop=0===e&&1===o?0:KS(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new h$(this,e)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof bx?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=Ft(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275cmp=I({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(zn(r,u$,5),zn(r,Bd,5),zn(r,mx,5)),2&e){let o;kt(o=St())&&(i.customTrigger=o.first),kt(o=St())&&(i.options=o),kt(o=St())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(e,i){1&e&&ce("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(jt("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),un("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[Wt([{provide:ub,useExisting:n},{provide:hx,useExisting:n}]),ht],ngContentSelectors:s$,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(Di(o$),y(0,"div",0,1),ce("click",function(){return i.toggle()}),y(3,"div",2),Y(4,e$,2,1,"span",3),Y(5,i$,3,2,"span",4),b(),y(6,"div",5)(7,"div",6),mc(),y(8,"svg",7),Pe(9,"path",8),b()()()(),Y(10,r$,3,9,"ng-template",9),ce("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=Jo(1);jt("aria-owns",i.panelOpen?i.id+"-panel":null),S(3),P("ngSwitch",i.empty),jt("id",i._valueId),S(1),P("ngSwitchCase",!0),S(1),P("ngSwitchCase",!1),S(5),P("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[uh,hh,a_,uT,aI,bx],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[a$.transformPanel]},changeDetection:0}),n})(),p$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({providers:[d$],imports:[Ca,Hf,cb,Gn,Rd,hb,cb,Gn]}),n})();function g$(n,t){if(1&n){const e=Bt();y(0,"div",2)(1,"button",3),ce("click",function(){return Je(e),st(q().action())}),E(2),b()()}if(2&n){const e=q();S(2),bi(" ",e.data.action," ")}}const _$=["label"];function b$(n,t){}const y$=Math.pow(2,31)-1;class xb{constructor(t,e){this._overlayRef=e,this._afterDismissed=new Ee,this._afterOpened=new Ee,this._onAction=new Ee,this._dismissedByAction=!1,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,y$))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const Ax=new De("MatSnackBarData");class wb{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let v$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}),n})(),C$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}),n})(),x$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}),n})(),w$=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return n.\u0275fac=function(e){return new(e||n)(D(xb),D(Ax))},n.\u0275cmp=I({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(e,i){1&e&&(y(0,"div",0),E(1),b(),Y(2,g$,3,1,"div",1)),2&e&&(S(1),bi(" ",i.data.message,"\n"),S(1),P("ngIf",i.hasAction))},dependencies:[yi,Zi,v$,C$,x$],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),n})();const D$={snackBarState:nl("state",[xa("void, hidden",Si({transform:"scale(0.8)",opacity:0})),xa("visible",Si({transform:"scale(1)",opacity:1})),To("* => visible",Mo("150ms cubic-bezier(0, 0, 0.2, 1)")),To("* => void, * => hidden",Mo("75ms cubic-bezier(0.4, 0.0, 1, 1)",Si({opacity:0})))])};let M$=0,T$=(()=>{class n extends px{constructor(e,i,r,o,a){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=a,this._document=_i(hn),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Ee,this._onExit=new Ee,this._onEnter=new Ee,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+M$++,this.attachDomPortal=c=>{this._assertNotAttached();const d=this._portalOutlet.attachDomPortal(c);return this._afterPortalAttached(),d},this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe($r(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i)),this._exposeToModals()}_exposeToModals(){const e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{const i=e.getAttribute("aria-owns");if(i){const r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return n.\u0275fac=function(e){return new(e||n)(D(Kt),D(k),D(li),D(Ri),D(wb))},n.\u0275dir=C({type:n,viewQuery:function(e,i){if(1&e&&Hn(Bf,7),2&e){let r;kt(r=St())&&(i._portalOutlet=r.first)}},features:[ht]}),n})(),E$=(()=>{class n extends T${_afterPortalAttached(){super._afterPortalAttached();const e=this._label.nativeElement,i="mdc-snackbar__label";e.classList.toggle(i,!e.querySelector(`.${i}`))}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275cmp=I({type:n,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,i){if(1&e&&Hn(_$,7),2&e){let r;kt(r=St())&&(i._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(e,i){1&e&&xv("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&kv("@state",i._animationState)},features:[ht],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(y(0,"div",0)(1,"div",1,2)(3,"div",3),Y(4,b$,0,0,"ng-template",4),b(),Pe(5,"div"),b()()),2&e&&(S(5),jt("aria-live",i._live)("role",i._role)("id",i._liveElementId))},dependencies:[Bf],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss svg,.mat-mdc-snack-bar-container .mdc-snackbar__dismiss img{width:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px));height:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size, inherit);font-family:var(--mdc-snackbar-supporting-text-font, inherit);font-weight:var(--mdc-snackbar-supporting-text-weight, inherit);line-height:var(--mdc-snackbar-supporting-text-line-height, inherit)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-mdc-snack-bar-button-color, transparent);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[D$.snackBarState]}}),n})(),tA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[Hf,gx,Ca,TI,Gn,Gn]}),n})();const nA=new De("mat-snack-bar-default-options",{providedIn:"root",factory:function k$(){return new wb}});let S$=(()=>{class n{get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,i,r,o,a,c){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=c,this._snackBarRefAtThisLevel=null}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const o=Qo.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:wb,useValue:i}]}),a=new lb(this.snackBarContainerComponent,i.viewContainerRef,o),c=e.attach(a);return c.instance.snackBarConfig=i,c.instance}_attach(e,i){const r={...new wb,...this._defaultConfig,...i},o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),c=new xb(a,o);if(e instanceof pr){const d=new Vd(e,null,{$implicit:r.data,snackBarRef:c});c.instance=a.attachTemplatePortal(d)}else{const d=this._createInjector(r,c),h=new lb(e,void 0,d),p=a.attachComponentPortal(h);c.instance=p.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(xn(o.detachments())).subscribe(d=>{o.overlayElement.classList.toggle(this.handsetCssClass,d.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(c,r),this._openedSnackBarRef=c,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new Vf;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,c=!a&&"center"!==e.horizontalPosition;return a?r.left("0"):c?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return Qo.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:xb,useValue:i},{provide:Ax,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(ie(Ma),ie(JC),ie(Qo),ie(qC),ie(n,12),ie(nA))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})(),I$=(()=>{class n extends S${constructor(e,i,r,o,a,c){super(e,i,r,o,a,c),this.simpleSnackBarComponent=w$,this.snackBarContainerComponent=E$,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return n.\u0275fac=function(e){return new(e||n)(ie(Ma),ie(JC),ie(Qo),ie(qC),ie(n,12),ie(nA))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:tA}),n})();function A$(n,t){}const F$=function(n){return{animationDuration:n}},O$=function(n,t){return{value:n,params:t}};function R$(n,t){1&n&&tn(0)}const iA=["*"],P$=["tabListContainer"],L$=["tabList"],N$=["tabListInner"],B$=["nextPaginator"],V$=["previousPaginator"],H$=["tabBodyWrapper"],z$=["tabHeader"];function $$(n,t){}function j$(n,t){1&n&&Y(0,$$,0,0,"ng-template",14),2&n&&P("cdkPortalOutlet",q().$implicit.templateLabel)}function U$(n,t){1&n&&E(0),2&n&&Ut(q().$implicit.textLabel)}function W$(n,t){if(1&n){const e=Bt();y(0,"div",6,7),ce("click",function(){const r=Je(e),o=r.$implicit,a=r.index,c=q(),d=Jo(1);return st(c._handleClick(o,d,a))})("cdkFocusChange",function(r){const a=Je(e).index;return st(q()._tabFocusChanged(r,a))}),Pe(2,"span",8)(3,"div",9),y(4,"span",10)(5,"span",11),Y(6,j$,1,1,"ng-template",12),Y(7,U$,1,1,"ng-template",null,13,jg),b()()()}if(2&n){const e=t.$implicit,i=t.index,r=Jo(1),o=Jo(8),a=q();un("mdc-tab--active",a.selectedIndex===i),P("id",a._getTabLabelId(i))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),jt("tabIndex",a._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(i))("aria-selected",a.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),S(3),P("matRippleTrigger",r)("matRippleDisabled",e.disabled||a.disableRipple),S(3),P("ngIf",e.templateLabel)("ngIfElse",o)}}function G$(n,t){if(1&n){const e=Bt();y(0,"mat-tab-body",15),ce("_onCentered",function(){return Je(e),st(q()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return Je(e),st(q()._setTabBodyWrapperHeight(r))}),b()}if(2&n){const e=t.$implicit,i=t.index,r=q();un("mat-mdc-tab-body-active",r.selectedIndex===i),P("id",r._getTabContentId(i))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),jt("tabindex",null!=r.contentTabIndex&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(i))}}const Y$={translateTab:nl("translateTab",[xa("center, void, left-origin-center, right-origin-center",Si({transform:"none"})),xa("left",Si({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),xa("right",Si({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),To("* => left, * => right, left => center, right => center",Mo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),To("void => left-origin-center",[Si({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Mo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),To("void => right-origin-center",[Si({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Mo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Z$=(()=>{class n extends Bf{constructor(e,i,r,o){super(e,i,o),this._host=r,this._centeringSub=re.EMPTY,this._leavingSub=re.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Hr(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(D(x),D(gr),D(Jt(()=>rA)),D(hn))},n.\u0275dir=C({type:n,selectors:[["","matTabBodyHost",""]],features:[ht]}),n})(),q$=(()=>{class n{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=re.EMPTY,this._translateTabComplete=new Ee,this._onCentering=new Ze,this._beforeCentering=new Ze,this._afterLeavingCenter=new Ze,this._onCentered=new Ze(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(YC((o,a)=>o.fromState===a.fromState&&o.toState===a.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(zr,8),D(li))},n.\u0275dir=C({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),rA=(()=>{class n extends q${constructor(e,i,r){super(e,i,r)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(zr,8),D(li))},n.\u0275cmp=I({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,i){if(1&e&&Hn(Bf,5),2&e){let r;kt(r=St())&&(i._portalHost=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[ht],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,i){1&e&&(y(0,"div",0,1),ce("@translateTab.start",function(o){return i._onTranslateTabStarted(o)})("@translateTab.done",function(o){return i._translateTabComplete.next(o)}),Y(2,A$,0,0,"ng-template",2),b()),2&e&&P("@translateTab",VD(3,O$,i._position,function BD(n,t,e,i){return HD(ke(),oo(),n,t,e,i)}(1,F$,i.animationDuration)))},dependencies:[Z$],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Y$.translateTab]}}),n})();const K$=new De("MatTabContent");let X$=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(D(pr))},n.\u0275dir=C({type:n,selectors:[["","matTabContent",""]],features:[Wt([{provide:K$,useExisting:n}])]}),n})();const Q$=new De("MatTabLabel"),oA=new De("MAT_TAB");let sA=(()=>{class n extends z8{constructor(e,i,r){super(e,i),this._closestTab=r}}return n.\u0275fac=function(e){return new(e||n)(D(pr),D(gr),D(oA,8))},n.\u0275dir=C({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Wt([{provide:Q$,useExisting:n}]),ht]}),n})();const Fx="mdc-tab-indicator--active",aA="mdc-tab-indicator--no-transition";class J${constructor(t){this._items=t}hide(){this._items.forEach(t=>t.deactivateInkBar())}alignToElement(t){const e=this._items.find(r=>r.elementRef.nativeElement===t),i=this._currentItem;if(i?.deactivateInkBar(),e){const r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}}function ej(n){return class extends n{constructor(...t){super(...t),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){const e=Ft(t);this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){const e=this.elementRef.nativeElement;if(!t||!e.getBoundingClientRect||!this._inkBarContentElement)return void e.classList.add(Fx);const i=e.getBoundingClientRect(),r=t.width/i.width,o=t.left-i.left;e.classList.add(aA),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${r})`),e.getBoundingClientRect(),e.classList.remove(aA),e.classList.add(Fx),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(Fx)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const t=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=t.createElement("span"),this._inkBarContentElement=t.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const nj=Ld(class{}),ij=ej((()=>{class n extends nj{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(D(k))},n.\u0275dir=C({type:n,features:[ht]}),n})());let cA=(()=>{class n extends ij{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275dir=C({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,i){2&e&&(jt("aria-disabled",!!i.disabled),un("mat-mdc-tab-disabled",i.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[ht]}),n})();const rj=Ld(class{}),lA=new De("MAT_TAB_GROUP");let oj=(()=>{class n extends rj{get content(){return this._contentPortal}constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new Ee,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Vd(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(D(gr),D(lA,8))},n.\u0275dir=C({type:n,viewQuery:function(e,i){if(1&e&&Hn(pr,7),2&e){let r;kt(r=St())&&(i._implicitContent=r.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[ht,Ei]}),n})(),dA=(()=>{class n extends oj{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275cmp=I({type:n,selectors:[["mat-tab"]],contentQueries:function(e,i,r){if(1&e&&(zn(r,X$,7,pr),zn(r,sA,5)),2&e){let o;kt(o=St())&&(i._explicitContent=o.first),kt(o=St())&&(i.templateLabel=o.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[Wt([{provide:oA,useExisting:n}]),ht],ngContentSelectors:iA,decls:1,vars:0,template:function(e,i){1&e&&(Di(),Y(0,R$,1,0,"ng-template"))},encapsulation:2}),n})();const uA=Ja({passive:!0});let cj=(()=>{class n{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Ft(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=Ec(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}constructor(e,i,r,o,a,c,d){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=r,this._dir=o,this._ngZone=a,this._platform=c,this._animationMode=d,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Ee,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Ee,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ze,this.indexFocused=new Ze,a.runOutsideAngular(()=>{kc(e.nativeElement,"mouseleave").pipe(xn(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){kc(this._previousPaginator.nativeElement,"touchstart",uA).pipe(xn(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),kc(this._nextPaginator.nativeElement,"touchstart",uA).pipe(xn(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:Ds("ltr"),i=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new QC(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe($r(1)).subscribe(r),si(e,i,this._items.changes,this._itemsResized()).pipe(xn(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?Zn:this._items.changes.pipe(Hr(this._items),Sc(e=>new ye(i=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),GC(1),Ms(e=>e.some(i=>i.contentRect.width>0&&i.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Ys(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const i=this._items.get(this.focusIndex);i&&!i.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return!this._items||!!this._items.toArray()[e]}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=i.elementRef.nativeElement;let c,d;"ltr"==this._getLayoutDirection()?(c=o,d=c+a):(d=this._tabListInner.nativeElement.offsetWidth-o,c=d-a);const h=this.scrollDistance,p=this.scrollDistance+r;cp&&(this.scrollDistance+=d-p+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),G_(650,100).pipe(xn(si(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(0===o||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(ol),D(zr,8),D(Kt),D(Ri),D(Br,8))},n.\u0275dir=C({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),lj=(()=>{class n extends cj{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ft(e)}constructor(e,i,r,o,a,c,d){super(e,i,r,o,a,c,d),this._disableRipple=!1}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(ol),D(zr,8),D(Kt),D(Ri),D(Br,8))},n.\u0275dir=C({type:n,inputs:{disableRipple:"disableRipple"},features:[ht]}),n})(),dj=(()=>{class n extends lj{constructor(e,i,r,o,a,c,d){super(e,i,r,o,a,c,d)}ngAfterContentInit(){this._inkBar=new J$(this._items),super.ngAfterContentInit()}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(ol),D(zr,8),D(Kt),D(Ri),D(Br,8))},n.\u0275cmp=I({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,i,r){if(1&e&&zn(r,cA,4),2&e){let o;kt(o=St())&&(i._items=o)}},viewQuery:function(e,i){if(1&e&&(Hn(P$,7),Hn(L$,7),Hn(N$,7),Hn(B$,5),Hn(V$,5)),2&e){let r;kt(r=St())&&(i._tabListContainer=r.first),kt(r=St())&&(i._tabList=r.first),kt(r=St())&&(i._tabListInner=r.first),kt(r=St())&&(i._nextPaginator=r.first),kt(r=St())&&(i._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,i){2&e&&un("mat-mdc-tab-header-pagination-controls-enabled",i._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==i._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ht],ngContentSelectors:iA,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,i){1&e&&(Di(),y(0,"button",0,1),ce("click",function(){return i._handlePaginatorClick("before")})("mousedown",function(o){return i._handlePaginatorPress("before",o)})("touchend",function(){return i._stopInterval()}),Pe(2,"div",2),b(),y(3,"div",3,4),ce("keydown",function(o){return i._handleKeydown(o)}),y(5,"div",5,6),ce("cdkObserveContent",function(){return i._onContentChanges()}),y(7,"div",7,8),tn(9),b()()(),y(10,"button",9,10),ce("mousedown",function(o){return i._handlePaginatorPress("after",o)})("click",function(){return i._handlePaginatorClick("after")})("touchend",function(){return i._stopInterval()}),Pe(12,"div",2),b()),2&e&&(un("mat-mdc-tab-header-pagination-disabled",i._disableScrollBefore),P("matRippleDisabled",i._disableScrollBefore||i.disableRipple)("disabled",i._disableScrollBefore||null),S(3),un("_mat-animation-noopable","NoopAnimations"===i._animationMode),S(7),un("mat-mdc-tab-header-pagination-disabled",i._disableScrollAfter),P("matRippleDisabled",i._disableScrollAfter||i.disableRipple)("disabled",i._disableScrollAfter||null))},dependencies:[rs,iS],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2}),n})();const mA=new De("MAT_TABS_CONFIG");let uj=0;const hj=Th(nd(class{constructor(n){this._elementRef=n}}),"primary");let mj=(()=>{class n extends hj{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Ft(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=Ec(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=Ec(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Ft(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=Ft(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,i,r,o){super(e),this._changeDetectorRef=i,this._animationMode=o,this._tabs=new Yl,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=re.EMPTY,this._tabLabelSubscription=re.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new Ze,this.focusChange=new Ze,this.animationDone=new Ze,this.selectedTabChange=new Ze(!0),this._groupId=uj++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const i=this._tabs.toArray();let r;for(let o=0;o{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Hr(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new pj;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=si(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(mA,8),D(Br,8))},n.\u0275dir=C({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[ht]}),n})(),fj=(()=>{class n extends mj{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=Ft(e),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(e){this._stretchTabs=Ft(e)}constructor(e,i,r,o){super(e,i,r,o),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!r||null==r.fitInkBarToContent)&&r.fitInkBarToContent}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(mA,8),D(Br,8))},n.\u0275cmp=I({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,i,r){if(1&e&&zn(r,dA,5),2&e){let o;kt(o=St())&&(i._allTabs=o)}},viewQuery:function(e,i){if(1&e&&(Hn(H$,5),Hn(z$,5)),2&e){let r;kt(r=St())&&(i._tabBodyWrapper=r.first),kt(r=St())&&(i._tabHeader=r.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:6,hostBindings:function(e,i){2&e&&un("mat-mdc-tab-group-dynamic-height",i.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===i.headerPosition)("mat-mdc-tab-group-stretch-tabs",i.stretchTabs)},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[Wt([{provide:lA,useExisting:n}]),ht],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,i){1&e&&(y(0,"mat-tab-header",0,1),ce("indexFocused",function(o){return i._focusChanged(o)})("selectFocusedIndex",function(o){return i.selectedIndex=o}),Y(2,W$,9,17,"div",2),b(),y(3,"div",3,4),Y(5,G$,1,11,"mat-tab-body",5),b()),2&e&&(P("selectedIndex",i.selectedIndex||0)("disableRipple",i.disableRipple)("disablePagination",i.disablePagination),S(2),P("ngForOf",i._tabs),S(1),un("_mat-animation-noopable","NoopAnimations"===i._animationMode),S(2),P("ngForOf",i._tabs))},dependencies:[uh,xs,yi,Bf,rs,r8,rA,cA,dj],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab .mdc-tab__text-label{display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-disabled{opacity:.4}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2}),n})();class pj{}let gj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[Ca,Gn,gx,Nd,ZC,_S,Gn]}),n})();const _j=["*",[["mat-toolbar-row"]]],bj=["*","mat-toolbar-row"],yj=Th(class{constructor(n){this._elementRef=n}});let vj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),Cj=(()=>{class n extends yj{constructor(e,i,r){super(e),this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Ri),D(hn))},n.\u0275cmp=I({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,i,r){if(1&e&&zn(r,vj,5),2&e){let o;kt(o=St())&&(i._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&un("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[ht],ngContentSelectors:bj,decls:2,vars:0,template:function(e,i){1&e&&(Di(_j),tn(0),tn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),n})(),xj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({imports:[Gn,Gn]}),n})();const wj=["tooltip"],fA=new De("mat-tooltip-scroll-strategy"),Tj={provide:fA,deps:[Ma],useFactory:function Mj(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},kj=new De("mat-tooltip-default-options",{providedIn:"root",factory:function Ej(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),pA="tooltip-panel",gA=Ja({passive:!0});let Rj=(()=>{class n{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Ft(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ft(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Ec(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Ec(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,i,r,o,a,c,d,h,p,_,M,A){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=a,this._platform=c,this._ariaDescriber=d,this._focusMonitor=h,this._dir=_,this._defaultOptions=M,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Ee,this._scrollStrategy=p,this._document=A,M&&(M.position&&(this.position=M.position),M.positionAtOrigin&&(this.positionAtOrigin=M.positionAtOrigin),M.touchGestures&&(this.touchGestures=M.touchGestures)),_.change.pipe(xn(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(xn(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,gA)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(i);this._detach(),this._portal=this._portal||new lb(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(xn(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof k)return this._overlayRef;this._detach()}const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(xn(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${pA}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(xn(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(xn(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(xn(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!Ys(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset({...r.main,...o.main}),this._addOffset({...r.fallback,...o.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={originX:"end",originY:"center"});const{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe($r(1),xn(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:o}=e;let a;if(a="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",a!==this._currentPosition){const c=this._overlayRef;if(c){const d=`${this._cssClassPrefix}-${pA}-`;c.removePanelClass(d+this._currentPosition),c.addPanelClass(d+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let i;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(i=e),this.show(void 0,i)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,r),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{const r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,gA)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){Pm()},n.\u0275dir=C({type:n,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),cl=(()=>{class n extends Rj{constructor(e,i,r,o,a,c,d,h,p,_,M,A){super(e,i,r,o,a,c,d,h,p,_,M,A),this._tooltipComponent=Lj,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(e){const r=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=r?-8:8:"end"===e.originX&&(e.offsetX=r?8:-8),e}}return n.\u0275fac=function(e){return new(e||n)(D(Ma),D(k),D(vh),D(gr),D(Kt),D(Ri),D(U4),D(td),D(fA),D(zr,8),D(kj,8),D(hn))},n.\u0275dir=C({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[ht]}),n})(),Pj=(()=>{class n{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Ee,this._animationsDisabled="NoopAnimations"===i}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(i);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(D(li),D(Br,8))},n.\u0275dir=C({type:n}),n})(),Lj=(()=>{class n extends Pj{constructor(e,i,r){super(e,r),this._elementRef=i,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}}return n.\u0275fac=function(e){return new(e||n)(D(li),D(k),D(Br,8))},n.\u0275cmp=I({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&Hn(wj,7),2&e){let r;kt(r=St())&&(i._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&ce("mouseleave",function(o){return i._handleMouseLeave(o)}),2&e&&zm("zoom",i.isVisible()?1:null)},features:[ht],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(e,i){1&e&&(y(0,"div",0,1),ce("animationend",function(o){return i._handleAnimationEnd(o)}),y(2,"div",2),E(3),b()()),2&e&&(un("mdc-tooltip--multiline",i._isMultiline),P("ngClass",i.tooltipClass),S(3),Ut(i.message))},dependencies:[uh],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:-8px;right:-8px;bottom:-8px;left:-8px;z-index:-1;position:absolute}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),n})(),Nj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=en({providers:[Tj],imports:[_S,Ca,Hf,Gn,Gn,Rd]}),n})();function Yf(n){return(Yf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(n)}function tc(n,t,e){return(t=function Vj(n){var t=function Bj(n,t){if("object"!==Yf(n)||null===n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var i=e.call(n,t||"default");if("object"!==Yf(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}(n,"string");return"symbol"===Yf(t)?t:String(t)}(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}const _A=new De("ngx-segment-analytics.config"),Hj={debug:!1,loadOnInitialization:!0,segmentHost:"cdn.segment.com",segmentUri:"/analytics.js/v1/$API_KEY$/analytics.min.js",plugins:[]};class $d{constructor(){tc(this,"analytics",void 0)}}tc($d,"\u0275fac",function(t){return new(t||$d)}),tc($d,"\u0275prov",rt({token:$d,factory:$d.\u0275fac}));class jd{constructor(t,e,i){if(tc(this,"_w",void 0),tc(this,"_doc",void 0),tc(this,"_config",void 0),this._w=t,this._doc=e,this._config={...Hj,...i},this._config.loadOnInitialization&&(typeof this._config.apiKey>"u"||""===this._config.apiKey))console.error("The API Key cannot be an empty string if Segment must be loaded on initialization.");else if(typeof this._w.analytics>"u"||typeof this._w.analytics.initialize>"u"||!1===this._w.analytics.initialize){if(typeof this._w.analytics<"u"&&!0===this._w.analytics.invoked)return void console.error("Segment snippet included twice.");!0===this._config.debug&&console.log("Segment initialization..."),this._w.analytics=[],this._w.analytics.invoked=!0,this._w.analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"],this._w.analytics.factory=r=>(...o)=>(o.unshift(r),this._w.analytics.push(o),this._w.analytics),this._w.analytics.methods.forEach(r=>{this._w.analytics[r]=this._w.analytics.factory(r)}),this._w.analytics.load=(r,o)=>{const a=this._doc.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://"+this._config.segmentHost+this._config.segmentUri.replace("$API_KEY$",r);const c=this._doc.getElementsByTagName("script")[0];c.parentNode.insertBefore(a,c),this._w.analytics._loadOptions=o},this._w.analytics._writeKey=this._config.apiKey,this._w.analytics.SNIPPET_VERSION="4.15.3",this._config.loadOnInitialization&&this.load(this._config.apiKey)}}load(t,e){this._w.analytics.load(t,e),!0===this._config.debug&&console.log("Segment initialized"),this.debug(this._config.debug)}identify(t,e,i){return new Promise(r=>{this._w.analytics.identify(t,e,i,o=>r(this))})}track(t,e,i){return new Promise(r=>{this._w.analytics.track(t,e,i,o=>r(this))})}page(t,e,i,r){return new Promise(o=>{this._w.analytics.page(t,e,i,r,a=>o(this))})}group(t,e){return new Promise(i=>{this._w.analytics.group(t,e,r=>i(this))})}alias(t,e,i){return new Promise(r=>{this._w.analytics.alias(t,e,i,o=>r(this))})}ready(){return new Promise(t=>{this._w.analytics.ready(e=>t(this))})}user(){return this._w.analytics.user()}id(){return this._w.analytics.id()}setAnonymousId(t){this._w.analytics.setAnonymousId(t)}traits(){return this._w.analytics.user().traits()}reset(){this._w.analytics.reset()}debug(t){this._w.analytics.debug(t)}on(t,e){this._w.analytics.on(t,e)}trackLink(t,e,i){this._w.analytics.trackLink(t,e,i)}trackForm(t,e,i){this._w.analytics.trackForm(t,e,i)}timeout(t){this._w.analytics.timeout(t)}addSourceMiddleware(t){this._w.analytics.addSourceMiddleware(t)}addDestinationMiddleware(t,e){this._w.analytics.addDestinationMiddleware(t,e)}register(...t){return this._w.analytics.register(...t)}get plugins(){return this._w.analytics.plugins}}tc(jd,"\u0275fac",function(t){return new(t||jd)(ie($d),ie(hn),ie(_A))}),tc(jd,"\u0275prov",rt({token:jd,factory:jd.\u0275fac,providedIn:"root"}));class ll{static forRoot(t){return{ngModule:ll,providers:[{provide:_A,useValue:t},jd]}}constructor(t){if(t)throw new Error("SegmentModule is already loaded. Import it in the AppModule only")}}tc(ll,"\u0275fac",function(t){return new(t||ll)(ie(ll,12))}),tc(ll,"\u0275mod",Re({type:ll})),tc(ll,"\u0275inj",en({providers:[{provide:$d,useFactory:function zj(n){return _T(n)?window:{}},deps:[ef]}],imports:[Ca]}));var xr=L(5861);let $j=(()=>{class n{constructor(e,i){this.snackbarRef=e,this.message=i.message,this.noLabel=i.noLabel,this.yesLabel=i.yesLabel}doNo(){this.snackbarRef.dismiss()}doYes(){this.snackbarRef.dismissWithAction()}}return n.\u0275fac=function(e){return new(e||n)(D(xb),D(Ax))},n.\u0275cmp=I({type:n,selectors:[["app-confirm"]],decls:6,vars:3,consts:[["data-cy","confirm-no","mat-raised-button","",3,"click"],["data-cy","confirm-yes","mat-raised-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"p"),E(1),b(),y(2,"button",0),ce("click",function(){return i.doNo()}),E(3),b(),y(4,"button",1),ce("click",function(){return i.doYes()}),E(5),b()),2&e&&(S(1),Ut(i.message),S(2),bi("",i.noLabel," "),S(2),Ut(i.yesLabel))},dependencies:[Zi]}),n})(),os=(()=>{class n{constructor(e){this.http=e,this.base="/api/v1/devstate"}addContainer(e){return this.http.post(this.base+"/container",{name:e.name,image:e.image,command:e.command,args:e.args,env:e.env,memReq:e.memoryRequest,memLimit:e.memoryLimit,cpuReq:e.cpuRequest,cpuLimit:e.cpuLimit,volumeMounts:e.volumeMounts,configureSources:e.configureSources,mountSources:e.mountSources,sourceMapping:e.sourceMapping,annotation:{deployment:e.annotation.deployment,service:e.annotation.service},endpoints:e.endpoints})}addImage(e){return this.http.post(this.base+"/image",{name:e.name,imageName:e.imageName,args:e.args,buildContext:e.buildContext,rootRequired:e.rootRequired,uri:e.uri,autoBuild:e.autoBuild})}saveImage(e){return this.http.patch(this.base+"/image/"+e.name,{imageName:e.imageName,args:e.args,buildContext:e.buildContext,rootRequired:e.rootRequired,uri:e.uri,autoBuild:e.autoBuild})}addResource(e){return this.http.post(this.base+"/resource",{name:e.name,inlined:e.inlined,uri:e.uri,deployByDefault:e.deployByDefault})}saveResource(e){return this.http.patch(this.base+"/resource/"+e.name,{inlined:e.inlined,uri:e.uri,deployByDefault:e.deployByDefault})}addVolume(e){return this.http.post(this.base+"/volume",{name:e.name,ephemeral:e.ephemeral,size:e.size})}saveVolume(e){return this.http.patch(this.base+"/volume/"+e.name,{ephemeral:e.ephemeral,size:e.size})}addExecCommand(e,i){return this.http.post(this.base+"/execCommand",{name:e,component:i.component,commandLine:i.commandLine,workingDir:i.workingDir,hotReloadCapable:i.hotReloadCapable})}updateExecCommand(e,i){return this.http.patch(this.base+"/execCommand/"+e,{component:i.component,commandLine:i.commandLine,workingDir:i.workingDir,hotReloadCapable:i.hotReloadCapable})}addApplyCommand(e,i){return this.http.post(this.base+"/applyCommand",{name:e,component:i.component})}updateApplyCommand(e,i){return this.http.patch(this.base+"/applyCommand/"+e,{component:i.component})}addCompositeCommand(e,i){return this.http.post(this.base+"/compositeCommand",{name:e,parallel:i.parallel,commands:i.commands})}updateCompositeCommand(e,i){return this.http.patch(this.base+"/compositeCommand/"+e,{parallel:i.parallel,commands:i.commands})}getFlowChart(){return this.http.get(this.base+"/chart")}setDevfileContent(e){return this.http.put(this.base+"/devfile",{content:e})}getDevfileContent(){return this.http.get(this.base+"/devfile")}clearDevfileContent(){return this.http.delete(this.base+"/devfile")}setMetadata(e){return this.http.put(this.base+"/metadata",{name:e.name,version:e.version,displayName:e.displayName,description:e.description,tags:e.tags,architectures:e.architectures,icon:e.icon,globalMemoryLimit:e.globalMemoryLimit,projectType:e.projectType,language:e.language,website:e.website,provider:e.provider,supportUrl:e.supportUrl})}moveCommand(e,i,r,o){return this.http.post(this.base+"/command/0/move",{fromGroup:e,fromIndex:r,toGroup:i,toIndex:o})}setDefaultCommand(e,i){return this.http.post(this.base+"/command/"+e+"/setDefault",{group:i})}unsetDefaultCommand(e){return this.http.post(this.base+"/command/"+e+"/unsetDefault",{})}deleteCommand(e){return this.http.delete(this.base+"/command/"+e)}deleteContainer(e){return this.http.delete(this.base+"/container/"+e)}deleteImage(e){return this.http.delete(this.base+"/image/"+e)}deleteResource(e){return this.http.delete(this.base+"/resource/"+e)}deleteVolume(e){return this.http.delete(this.base+"/volume/"+e)}updateEvents(e,i){return this.http.put(this.base+"/events",{eventName:e,commands:i})}isQuantityValid(e){return this.http.post(this.base+"/quantityValid",{quantity:e})}isQuantity(){return e=>{const i=e.value;return""==i?Ds(null):this.isQuantityValid(i).pipe(Nn(()=>null),Sx(()=>Ds({isQuantity:!1})))}}}return n.\u0275fac=function(e){return new(e||n)(ie(Cf))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jj=(()=>{class n{constructor(e){this.http=e,this.base="/api/v1"}getDevfile(){return this.http.get(this.base+"/devfile")}saveDevfile(e){return this.http.put(this.base+"/devfile",{content:e})}telemetry(){return this.http.get(this.base+"/telemetry")}}return n.\u0275fac=function(e){return new(e||n)(ie(Cf))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Wj=function Uj(n){for(var t=[],e=1;e{qs.l.warn(n),(0,Ud.i)(n)?(e&&e(n.str,n.hash),t.push({...n,message:n.str,error:n})):(e&&e(n),n instanceof Error&&t.push({str:n.message,message:n.message,hash:n.name,error:n}))},bA=function(){var n=(0,xr.Z)(function*(t={querySelector:".mermaid"}){try{yield Yj(t)}catch(e){if((0,Ud.i)(e)&&qs.l.error(e.str),nc.parseError&&nc.parseError(e),!t.suppressErrors)throw qs.l.error("Use the suppressErrors option to suppress these errors"),e}});return function(){return n.apply(this,arguments)}}(),Yj=function(){var n=(0,xr.Z)(function*({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=Wd.m.getConfig();let o;if(qs.l.debug((t?"":"No ")+"Callback function found"),i)o=i;else{if(!e)throw new Error("Nodes and querySelector are both undefined");o=document.querySelectorAll(e)}qs.l.debug(`Found ${o.length} diagrams`),void 0!==r?.startOnLoad&&(qs.l.debug("Start On Load: "+r?.startOnLoad),Wd.m.updateSiteConfig({startOnLoad:r?.startOnLoad}));const a=new Ud.u.initIdGenerator(r.deterministicIds,r.deterministicIDSeed);let c;const d=[];for(const h of Array.from(o)){if(qs.l.info("Rendering diagram: "+h.id),h.getAttribute("data-processed"))continue;h.setAttribute("data-processed","true");const p=`mermaid-${a.next()}`;c=h.innerHTML,c=Wj(Ud.u.entityDecode(c)).trim().replace(//gi,"
");const _=Ud.u.detectInit(c);_&&qs.l.debug("Detected early reinit: ",_);try{const{svg:M,bindFunctions:A}=yield xA(p,c,h);h.innerHTML=M,t&&(yield t(p)),A&&A(h)}catch(M){Gj(M,d,nc.parseError)}}if(d.length>0)throw d[0]});return function(){return n.apply(this,arguments)}}(),yA=function(n){Wd.m.initialize(n)},Zj=function(){var n=(0,xr.Z)(function*(t,e,i){qs.l.warn("mermaid.init is deprecated. Please use run instead."),t&&yA(t);const r={postRenderCallback:i,querySelector:".mermaid"};"string"==typeof e?r.querySelector=e:e&&(r.nodes=e instanceof HTMLElement?[e]:e),yield bA(r)});return function(e,i,r){return n.apply(this,arguments)}}(),qj=function(){var n=(0,xr.Z)(function*(t,{lazyLoad:e=!0}={}){(0,Ud.r)(...t),!1===e&&(yield(0,Ud.l)())});return function(e){return n.apply(this,arguments)}}(),vA=function(){if(nc.startOnLoad){const{startOnLoad:n}=Wd.m.getConfig();n&&nc.run().catch(t=>qs.l.error("Mermaid failed to initialize",t))}};typeof document<"u"&&window.addEventListener("load",vA,!1);const Db=[];let Ox=!1;const CA=function(){var n=(0,xr.Z)(function*(){if(!Ox){for(Ox=!0;Db.length>0;){const t=Db.shift();if(t)try{yield t()}catch(e){qs.l.error("Error executing queue",e)}}Ox=!1}});return function(){return n.apply(this,arguments)}}(),Xj=function(){var n=(0,xr.Z)(function*(t,e){return new Promise((i,r)=>{Db.push(()=>new Promise((a,c)=>{Wd.m.parse(t,e).then(d=>{a(d),i(d)},d=>{var h;qs.l.error("Error parsing",d),null==(h=nc.parseError)||h.call(nc,d),c(d),r(d)})})),CA().catch(r)})});return function(e,i){return n.apply(this,arguments)}}(),xA=(n,t,e)=>new Promise((i,r)=>{Db.push(()=>new Promise((a,c)=>{Wd.m.render(n,t,e).then(d=>{a(d),i(d)},d=>{var h;qs.l.error("Error parsing",d),null==(h=nc.parseError)||h.call(nc,d),c(d),r(d)})})),CA().catch(r)}),nc={startOnLoad:!0,mermaidAPI:Wd.m,parse:Xj,render:xA,init:Zj,run:bA,registerExternalDiagrams:qj,initialize:yA,parseError:void 0,contentLoaded:vA,setParseErrorHandler:function(n){nc.parseError=n}};let Qj=(()=>{class n{constructor(){}getMermaidAsSVG(e){return(0,xr.Z)(function*(){const{svg:i}=yield nc.render("rendered",e);return i})()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ks=(()=>{class n{constructor(){this.savedDevfile="",this._state=new jC(null),this.state=this._state.asObservable(),this._modified=new jC(null),this.modified=this._modified.asObservable()}changeDevfileYaml(e,i=!1){this._state.next(e),i&&(this.savedDevfile=e.content),""==this.savedDevfile&&(this.savedDevfile=e.content),this._modified.next(this.savedDevfile!=e.content)}isUpdated(e){return e!=this.savedDevfile}getDragAndDropEnabled(){return"true"==localStorage.getItem("dragAndDropEnabled")}saveDragAndDropEnabled(e){return localStorage.setItem("dragAndDropEnabled",e?"true":"false")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Jj=(()=>{class n{constructor(){this.base="/api/v1",this.evtSource=new EventSource(this.base+"/notifications")}subscribeTo(e){return new ye(i=>{e.forEach(r=>{this.evtSource.addEventListener(r,o=>{i.next(o)})}),this.evtSource.onerror=r=>{i.error(r)}})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ta=(()=>{class n{constructor(e){this.segment=e,this.options={context:{ip:"0.0.0.0"}}}init(e,i){this.segment.identify(i,{},this.options),this.segment.load(e),this.segment.setAnonymousId(i)}track(e){this.segment.track(e,{},this.options)}}return n.\u0275fac=function(e){return new(e||n)(ie(jd))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tU=(()=>{class n{constructor(e,i,r){this.devstate=e,this.state=i,this.telemetry=r,this.form=new is({name:new Ct(""),version:new Ct("",Sn.pattern("^([0-9]+)\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$")),displayName:new Ct(""),description:new Ct(""),tags:new Ct(""),architectures:new Ct(""),icon:new Ct(""),globalMemoryLimit:new Ct(""),projectType:new Ct(""),language:new Ct(""),website:new Ct(""),provider:new Ct(""),supportUrl:new Ct("")})}ngOnInit(){var e=this;this.state.state.subscribe(function(){var i=(0,xr.Z)(function*(r){const o=r?.metadata;null!=o&&e.form.patchValue(o)});return function(r){return i.apply(this,arguments)}}())}onSave(){this.telemetry.track("[ui] apply metadata"),this.devstate.setMetadata(this.form.value).subscribe({next:i=>{this.state.changeDevfileYaml(i)},error:i=>{alert(i.error.message)}})}}return n.\u0275fac=function(e){return new(e||n)(D(os),D(Ks),D(Ta))},n.\u0275cmp=I({type:n,selectors:[["app-metadata"]],decls:58,vars:2,consts:[[1,"main"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["data-cy","metadata-name","placeholder","Unique name to identify the devfile","matInput","","formControlName","name"],["placeholder","Version of the devfile, semver-compatible","matInput","","formControlName","version"],["appearance","outline",1,"full-width"],["placeholder","Name to display instead of the unique name","matInput","","formControlName","displayName"],["matInput","","formControlName","description","rows","4"],["placeholder","Tags to help find the devfile in a registry","matInput","","formControlName","tags"],["placeholder","Ex: amd64,arm64,ppc64le,s390x","matInput","","formControlName","architectures"],["placeholder","Can be a URI or a relative path in the project","matInput","","formControlName","icon"],["placeholder","Informative limit of memory used by the devfile. Ex: 1Gi","matInput","","formControlName","globalMemoryLimit"],["placeholder","Ex: Framework of the project","matInput","","formControlName","projectType"],["placeholder","Language of the project","matInput","","formControlName","language"],["placeholder","Official website of the devfile","matInput","","formControlName","website"],["placeholder","Information about the provider of the devfile","matInput","","formControlName","provider"],["placeholder","Link to a page providing support information","matInput","","formControlName","supportUrl"],["mat-flat-button","","color","primary",3,"disabled","click"]],template:function(e,i){1&e&&(y(0,"div",0)(1,"form",1)(2,"mat-form-field",2)(3,"mat-label"),E(4,"Name"),b(),Pe(5,"input",3),b(),y(6,"mat-form-field",2)(7,"mat-label"),E(8,"Version"),b(),y(9,"mat-error"),E(10,"Examples: 1.0.4, 1.4.7-alpha1"),b(),Pe(11,"input",4),b(),y(12,"mat-form-field",5)(13,"mat-label"),E(14,"Display Name"),b(),Pe(15,"input",6),b(),y(16,"mat-form-field",5)(17,"mat-label"),E(18,"Description"),b(),Pe(19,"textarea",7),b(),y(20,"mat-form-field",2)(21,"mat-label"),E(22,"Tags (comma-speparated)"),b(),Pe(23,"input",8),b(),y(24,"mat-form-field",2)(25,"mat-label"),E(26,"Architectures (comma-separated)"),b(),Pe(27,"input",9),b(),y(28,"mat-form-field",2)(29,"mat-label"),E(30,"Icon"),b(),Pe(31,"input",10),b(),y(32,"mat-form-field",2)(33,"mat-label"),E(34,"Global Memory Limit"),b(),Pe(35,"input",11),b(),y(36,"mat-form-field",2)(37,"mat-label"),E(38,"Project Type"),b(),Pe(39,"input",12),b(),y(40,"mat-form-field",2)(41,"mat-label"),E(42,"Language"),b(),Pe(43,"input",13),b(),y(44,"mat-form-field",2)(45,"mat-label"),E(46,"Website"),b(),Pe(47,"input",14),b(),y(48,"mat-form-field",2)(49,"mat-label"),E(50,"Provider"),b(),Pe(51,"input",15),b(),y(52,"mat-form-field",5)(53,"mat-label"),E(54,"Support URL"),b(),Pe(55,"input",16),b()(),y(56,"button",17),ce("click",function(){return i.onSave()}),E(57,"Apply"),b()()),2&e&&(S(1),P("formGroup",i.form),S(55),P("disabled",i.form.invalid))},dependencies:[Tc,co,Qr,Ws,Jr,ws,Zi,lo,jr,sl,Ts],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();const Mb="^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",Tb="^[a-z0-9]([-a-z0-9]*[a-z0-9])?$";function nU(n,t){if(1&n&&(y(0,"h3"),E(1),b()),2&n){const e=q();S(1),Ut(e.title)}}function iU(n,t){if(1&n&&(y(0,"span")(1,"mat-form-field",5)(2,"mat-label")(3,"span"),E(4),b()(),Pe(5,"input",6),b()()),2&n){const e=t.$implicit,i=q();S(4),Ut(i.label),S(1),P("formControl",e)}}function rU(n,t){if(1&n){const e=Bt();y(0,"button",7),ce("click",function(){return Je(e),st(q().addText(""))}),y(1,"mat-icon",8),E(2,"add"),b()()}}function oU(n,t){if(1&n){const e=Bt();y(0,"button",9),ce("click",function(){return Je(e),st(q().addText(""))}),E(1),b()}if(2&n){const e=q();S(1),Ut(e.addLabel)}}let wA=(()=>{class n{constructor(){this.label="",this.addLabel="",this.title="",this.onChange=e=>{},this.form=new _h([]),this.form.valueChanges.subscribe(e=>{this.onChange(e)})}newText(e){return new Ct(e,[Sn.required])}writeValue(e){e?.forEach(i=>this.addText(i))}registerOnChange(e){this.onChange=e}registerOnTouched(e){}addText(e){this.form.push(this.newText(e))}validate(e){return this.form.valid?null:{internal:!0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=I({type:n,selectors:[["app-multi-text"]],inputs:{label:"label",addLabel:"addLabel",title:"title"},features:[Wt([{provide:yr,multi:!0,useExisting:n},{provide:$i,useExisting:Jt(()=>n),multi:!0}])],decls:5,vars:4,consts:[[4,"ngIf"],[1,"group"],[4,"ngFor","ngForOf"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["appearance","outline",1,"inline"],["matInput","",3,"formControl"],["mat-icon-button","",3,"click"],[1,"tab-icon","material-icons-outlined"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(Y(0,nU,2,1,"h3",0),y(1,"div",1),Y(2,iU,6,2,"span",2),Y(3,rU,3,0,"button",3),Y(4,oU,2,1,"button",4),b()),2&e&&(P("ngIf",i.title),S(2),P("ngForOf",i.form.controls),S(1),P("ngIf",i.form.controls.length>0),S(1),P("ngIf",0==i.form.controls.length))},dependencies:[xs,yi,co,Qr,gh,Zi,jf,lo,jr,Zs,Ts],styles:["h3[_ngcontent-%COMP%]{margin-bottom:0}div.group[_ngcontent-%COMP%]{margin-bottom:16px}"]}),n})();function sU(n,t){1&n&&(y(0,"h2"),E(1,"Add a new volume"),b())}function aU(n,t){if(1&n&&(y(0,"h2"),E(1,"Edit volume "),y(2,"i"),E(3),b()()),2&n){const e=q();S(3),Ut(e.volume.name)}}function cU(n,t){if(1&n){const e=Bt();y(0,"button",11),ce("click",function(){return Je(e),st(q().create())}),E(1,"Create"),b()}2&n&&P("disabled",q().form.invalid)}function lU(n,t){if(1&n){const e=Bt();y(0,"button",12),ce("click",function(){return Je(e),st(q().save())}),E(1,"Save"),b()}2&n&&P("disabled",q().form.invalid)}function dU(n,t){if(1&n){const e=Bt();y(0,"button",13),ce("click",function(){return Je(e),st(q().cancel())}),E(1,"Cancel"),b()}}let DA=(()=>{class n{constructor(e,i){this.devstate=e,this.telemetry=i,this.cancelable=!1,this.canceled=new Ze,this.created=new Ze,this.saved=new Ze,this.form=new is({name:new Ct("",[Sn.required,Sn.pattern(Tb)]),size:new Ct("",null,[this.devstate.isQuantity()]),ephemeral:new Ct(!1)})}create(){this.telemetry.track("[ui] create volume"),this.created.emit(this.form.value)}save(){this.form.value.name=this.volume?.name,this.telemetry.track("[ui] edit volume"),this.saved.emit(this.form.value)}cancel(){this.canceled.emit()}ngOnChanges(e){if(!e.volume)return;const i=e.volume.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.get("name")?.disable())}}return n.\u0275fac=function(e){return new(e||n)(D(os),D(Ta))},n.\u0275cmp=I({type:n,selectors:[["app-volume"]],inputs:{cancelable:"cancelable",volume:"volume"},outputs:{canceled:"canceled",created:"created",saved:"saved"},features:[Ei],decls:25,vars:6,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the volume","data-cy","volume-name","matInput","","formControlName","name"],["placeholder","Minimal size of the volume","data-cy","volume-size","matInput","","formControlName","size"],["data-cy","volume-ephemeral","formControlName","ephemeral"],["data-cy","volume-create","mat-flat-button","","color","primary","matTooltip","create new volume",3,"disabled","click",4,"ngIf"],["data-cy","volume-save","mat-flat-button","","color","primary","matTooltip","save volume",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["data-cy","volume-create","mat-flat-button","","color","primary","matTooltip","create new volume",3,"disabled","click"],["data-cy","volume-save","mat-flat-button","","color","primary","matTooltip","save volume",3,"disabled","click"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"div",0),Y(1,sU,2,0,"h2",1),Y(2,aU,4,1,"h2",1),y(3,"div",2),E(4,"A volume can be mounted and shared by several containers."),b(),y(5,"form",3)(6,"mat-form-field",4)(7,"mat-label")(8,"span"),E(9,"Name"),b()(),y(10,"mat-error"),E(11,"Lowercase words separated by dashes. Ex: my-volume"),b(),Pe(12,"input",5),b(),y(13,"mat-form-field",4)(14,"mat-label")(15,"span"),E(16,"Size"),b()(),y(17,"mat-error"),E(18,"Example of valid quantities: 300k (300*1000), 30Mi(30*1024\xb2), 3Gi (3*1024\xb3), 3G (3*1000\xb3)"),b(),Pe(19,"input",6),b(),y(20,"mat-checkbox",7),E(21,"Volume is Ephemeral"),b()(),Y(22,cU,2,1,"button",8),Y(23,lU,2,1,"button",9),Y(24,dU,2,0,"button",10),b()),2&e&&(S(1),P("ngIf",!i.volume),S(1),P("ngIf",i.volume),S(3),P("formGroup",i.form),S(17),P("ngIf",!i.volume),S(1),P("ngIf",i.volume),S(1),P("ngIf",i.cancelable))},dependencies:[yi,Tc,co,Qr,Ws,Jr,ws,Zi,al,lo,jr,sl,Ts,cl],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function uU(n,t){if(1&n&&(y(0,"mat-option",11),E(1),b()),2&n){const e=t.$implicit;P("value",e),S(1),Ut(e)}}function hU(n,t){if(1&n){const e=Bt();y(0,"app-volume",12),ce("created",function(r){Je(e);const o=q().index;return st(q().onNewVolumeCreated(o,r))}),b()}}function mU(n,t){if(1&n){const e=Bt();y(0,"div"),Pr(1,4),y(2,"mat-form-field",5)(3,"mat-label")(4,"span"),E(5,"Volume"),b()(),y(6,"mat-select",6),ce("selectionChange",function(r){const a=Je(e).index;return st(q().onNameChange(a,r.value))}),Y(7,uU,2,2,"mat-option",7),y(8,"mat-option",8),E(9,"(New Volume)"),b()()(),y(10,"mat-form-field",5)(11,"mat-label")(12,"span"),E(13,"Mount Path"),b()(),Pe(14,"input",9),b(),Y(15,hU,1,0,"app-volume",10),Lr(),b()}if(2&n){const e=t.$implicit,i=t.index,r=q();S(1),P("formGroup",e),S(5),jt("data-cy","volume-mount-name-"+i),S(1),P("ngForOf",r.volumes),S(7),jt("data-cy","volume-mount-path-"+i),S(1),P("ngIf",r.showNewVolume[i])}}function fU(n,t){if(1&n){const e=Bt();y(0,"button",13),ce("click",function(){return Je(e),st(q().add("",""))}),y(1,"mat-icon",14),E(2,"add"),b()()}}function pU(n,t){if(1&n){const e=Bt();y(0,"button",15),ce("click",function(){return Je(e),st(q().add("",""))}),E(1,"Add Volume Mount"),b()}}let gU=(()=>{class n{constructor(){this.volumes=[],this.createNewVolume=new Ze,this.form=new _h([]),this.showNewVolume=[],this.onChange=e=>{},this.onValidatorChange=()=>{},this.form.valueChanges.subscribe(e=>{this.onChange(e)})}writeValue(e){e.forEach(i=>this.add(i.name,i.path))}registerOnChange(e){this.onChange=e}registerOnTouched(e){}newVolumeMount(e){return new is({name:new Ct(e.name,[Sn.required]),path:new Ct(e.path,[Sn.required])})}add(e,i){this.form.push(this.newVolumeMount({name:e,path:i}))}onNameChange(e,i){this.showNewVolume[e]="!"==i}onNewVolumeCreated(e,i){this.volumes.push(i.name),this.form.at(e).get("name")?.setValue(i.name),this.createNewVolume.next(i),this.showNewVolume[e]=!1,this.onValidatorChange()}validate(e){return this.form.valid?null:{internal:!0}}registerOnValidatorChange(e){this.onValidatorChange=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=I({type:n,selectors:[["app-volume-mounts"]],inputs:{volumes:"volumes"},outputs:{createNewVolume:"createNewVolume"},features:[Wt([{provide:yr,multi:!0,useExisting:n},{provide:$i,useExisting:Jt(()=>n),multi:!0}])],decls:4,vars:3,consts:[[1,"group"],[4,"ngFor","ngForOf"],["data-cy","volume-mount-add","mat-icon-button","",3,"click",4,"ngIf"],["data-cy","volume-mount-add","mat-flat-button","",3,"click",4,"ngIf"],[3,"formGroup"],["appearance","outline",1,"inline"],["formControlName","name",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["value","!"],["formControlName","path","matInput",""],[3,"created",4,"ngIf"],[3,"value"],[3,"created"],["data-cy","volume-mount-add","mat-icon-button","",3,"click"],[1,"tab-icon","material-icons-outlined"],["data-cy","volume-mount-add","mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"div",0),Y(1,mU,16,5,"div",1),Y(2,fU,3,0,"button",2),Y(3,pU,2,0,"button",3),b()),2&e&&(S(1),P("ngForOf",i.form.controls),S(1),P("ngIf",i.form.controls.length>0),S(1),P("ngIf",0==i.form.controls.length))},dependencies:[xs,yi,co,Qr,Ws,Jr,ws,Bd,Zi,jf,lo,jr,Zs,Ts,Cb,DA],styles:["h3[_ngcontent-%COMP%]{margin-bottom:0}div.group[_ngcontent-%COMP%]{margin-bottom:16px}"]}),n})();function _U(n,t){if(1&n&&(y(0,"div"),Pr(1,4),y(2,"mat-form-field",5)(3,"mat-label")(4,"span"),E(5,"Name"),b()(),Pe(6,"input",6),b(),y(7,"mat-form-field",5)(8,"mat-label")(9,"span"),E(10,"Value"),b()(),Pe(11,"input",7),b(),Lr(),b()),2&n){const e=t.$implicit,i=t.index,r=q();S(1),P("formGroup",e),S(5),jt("data-cy",r.dataCyPrefix+"-name-"+i),S(5),jt("data-cy",r.dataCyPrefix+"-value-"+i)}}function bU(n,t){if(1&n){const e=Bt();y(0,"button",8),ce("click",function(){return Je(e),st(q().addEntry("",""))}),y(1,"mat-icon",9),E(2,"add"),b()()}2&n&&jt("data-cy",q().dataCyPrefix+"-plus")}function yU(n,t){if(1&n){const e=Bt();y(0,"button",10),ce("click",function(){return Je(e),st(q().addEntry("",""))}),E(1),b()}if(2&n){const e=q();jt("data-cy",e.dataCyPrefix+"-add"),S(1),Ut(e.addLabel)}}let vU=(()=>{class n{constructor(){this.dataCyPrefix="",this.addLabel="",this.form=new _h([]),this.onChange=e=>{},this.onValidatorChange=()=>{},this.form.valueChanges.subscribe(e=>{this.onChange(e)})}writeValue(e){e.forEach(i=>this.addEntry(i.name,i.value))}registerOnChange(e){this.onChange=e}registerOnTouched(e){}newKeyValueForm(e){return new is({name:new Ct(e.name,[Sn.required]),value:new Ct(e.value,[Sn.required])})}addEntry(e,i){this.form.push(this.newKeyValueForm({name:e,value:i}))}validate(e){return this.form.valid?null:{internal:!0}}registerOnValidatorChange(e){this.onValidatorChange=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=I({type:n,selectors:[["app-multi-key-value"]],inputs:{dataCyPrefix:"dataCyPrefix",addLabel:"addLabel"},features:[Wt([{provide:yr,multi:!0,useExisting:n},{provide:$i,useExisting:Jt(()=>n),multi:!0}])],decls:4,vars:3,consts:[[1,"group"],[4,"ngFor","ngForOf"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["matInput","","formControlName","name"],["matInput","","formControlName","value"],["mat-icon-button","",3,"click"],[1,"tab-icon","material-icons-outlined"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"div",0),Y(1,_U,12,3,"div",1),Y(2,bU,3,1,"button",2),Y(3,yU,2,2,"button",3),b()),2&e&&(S(1),P("ngForOf",i.form.controls),S(1),P("ngIf",i.form.controls.length>0),S(1),P("ngIf",0==i.form.controls.length))},dependencies:[xs,yi,co,Qr,Ws,Jr,ws,Zi,jf,lo,jr,Zs,Ts],styles:["div.group[_ngcontent-%COMP%]{margin-bottom:16px}.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function CU(n,t){if(1&n&&(y(0,"div"),Pr(1,3),y(2,"mat-form-field",4)(3,"mat-label")(4,"span"),E(5,"Name"),b()(),Pe(6,"input",5),b(),y(7,"mat-form-field",6)(8,"mat-label")(9,"span"),E(10,"Target Port"),b()(),Pe(11,"input",7),b(),y(12,"mat-form-field",6)(13,"mat-label"),E(14,"Exposure"),b(),y(15,"mat-select",8)(16,"mat-option",9),E(17,"(default, public)"),b(),y(18,"mat-option",10),E(19,"public"),b(),y(20,"mat-option",11),E(21,"internal"),b(),y(22,"mat-option",12),E(23,"none"),b()()(),y(24,"mat-form-field",4)(25,"mat-label")(26,"span"),E(27,"Path"),b()(),Pe(28,"input",13),b(),y(29,"mat-form-field",6)(30,"mat-label"),E(31,"Protocol"),b(),y(32,"mat-select",14)(33,"mat-option",9),E(34,"(default, http)"),b(),y(35,"mat-option",15),E(36,"http"),b(),y(37,"mat-option",16),E(38,"https"),b(),y(39,"mat-option",17),E(40,"ws"),b(),y(41,"mat-option",18),E(42,"wss"),b(),y(43,"mat-option",19),E(44,"tcp"),b(),y(45,"mat-option",20),E(46,"udp"),b()()(),y(47,"mat-checkbox",21),E(48,"Protocol Is Secure"),b(),Lr(),b()),2&n){const e=t.$implicit,i=t.index;S(1),P("formGroup",e),S(5),jt("data-cy","endpoint-name-"+i),S(5),jt("data-cy","endpoint-targetPort-"+i),S(4),jt("data-cy","endpoint-exposure-"+i),S(13),jt("data-cy","endpoint-path-"+i),S(4),jt("data-cy","endpoint-protocol-"+i),S(15),jt("data-cy","endpoint-secure-"+i)}}function xU(n,t){if(1&n){const e=Bt();y(0,"button",22),ce("click",function(){return Je(e),st(q().addEndpoint())}),y(1,"mat-icon",23),E(2,"add"),b()()}}function wU(n,t){if(1&n){const e=Bt();y(0,"button",24),ce("click",function(){return Je(e),st(q().addEndpoint())}),E(1,"Add an Endpoint"),b()}}let DU=(()=>{class n{constructor(){this.onChange=e=>{},this.onValidatorChange=()=>{},this.form=new _h([]),this.form.valueChanges.subscribe(e=>{this.onChange(e)})}newEndpoint(){return new is({name:new Ct("",[Sn.required]),targetPort:new Ct("",[Sn.required,Sn.pattern("^[0-9]*$")]),exposure:new Ct(""),path:new Ct(""),protocol:new Ct(""),secure:new Ct(!1)})}addEndpoint(){this.form.push(this.newEndpoint())}writeValue(e){}registerOnChange(e){this.onChange=e}registerOnTouched(e){}validate(e){return this.form.valid?null:{internal:!0}}registerOnValidatorChange(e){this.onValidatorChange=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=I({type:n,selectors:[["app-endpoints"]],features:[Wt([{provide:yr,multi:!0,useExisting:n},{provide:$i,useExisting:Jt(()=>n),multi:!0}])],decls:3,vars:3,consts:[[4,"ngFor","ngForOf"],["data-cy","endpoints-plus","mat-icon-button","",3,"click",4,"ngIf"],["data-cy","endpoints-add","mat-flat-button","",3,"click",4,"ngIf"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["matInput","","formControlName","name"],["appearance","outline",1,"quart-width"],["type","number","matInput","","formControlName","targetPort"],["formControlName","exposure"],["value",""],["value","public"],["value","internal"],["value","none"],["matInput","","formControlName","path"],["formControlName","protocol"],["value","http"],["value","https"],["value","ws"],["value","wss"],["value","tcp"],["value","udp"],["formControlName","secure"],["data-cy","endpoints-plus","mat-icon-button","",3,"click"],[1,"tab-icon","material-icons-outlined"],["data-cy","endpoints-add","mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(Y(0,CU,49,7,"div",0),Y(1,xU,3,0,"button",1),Y(2,wU,2,0,"button",2)),2&e&&(P("ngForOf",i.form.controls),S(1),P("ngIf",i.form.value.length>0),S(1),P("ngIf",0==i.form.value.length))},dependencies:[xs,yi,co,CC,Qr,Ws,Jr,ws,Bd,Zi,jf,al,lo,jr,Zs,Ts,Cb],styles:[".mid-width[_ngcontent-%COMP%]{width:50%}.quart-width[_ngcontent-%COMP%]{width:25%}"]}),n})();function MU(n,t){if(1&n){const e=Bt();y(0,"button",18),ce("click",function(){return Je(e),st(q().more())}),E(1,"More parameters..."),b()}}function TU(n,t){1&n&&(y(0,"div",27)(1,"div",28)(2,"mat-checkbox",29),E(3,"Mount sources into container"),b(),y(4,"mat-checkbox",30),E(5,"Into specific directory"),b()(),y(6,"mat-form-field",3)(7,"mat-label")(8,"span"),E(9,"Mount sources into"),b()(),Pe(10,"input",31),b()())}function EU(n,t){if(1&n&&(y(0,"div")(1,"h3"),E(2,"Resource Usage"),b(),y(3,"div",1),E(4,"CPU and Memory resources necessary for container's execution"),b(),y(5,"mat-form-field",3)(6,"mat-label")(7,"span"),E(8,"Memory Request"),b()(),y(9,"mat-error"),E(10),b(),Pe(11,"input",19),b(),y(12,"mat-form-field",3)(13,"mat-label")(14,"span"),E(15,"Memory Limit"),b()(),y(16,"mat-error"),E(17),b(),Pe(18,"input",20),b(),y(19,"mat-form-field",3)(20,"mat-label")(21,"span"),E(22,"CPU Request"),b()(),y(23,"mat-error"),E(24),b(),Pe(25,"input",21),b(),y(26,"mat-form-field",3)(27,"mat-label")(28,"span"),E(29,"CPU Limit"),b()(),y(30,"mat-error"),E(31),b(),Pe(32,"input",22),b(),y(33,"h3"),E(34,"Sources"),b(),y(35,"div",1),E(36,"Declare if and how sources are mounted into the container's filesystem. By default, sources are automatically mounted into $PROJECTS_ROOT or /projects directory"),b(),y(37,"div")(38,"mat-checkbox",23),E(39,"Configure Source mount"),b()(),Y(40,TU,11,0,"div",24),y(41,"h3"),E(42,"Deployment Annotations"),b(),y(43,"div",1),E(44,"Annotations added to the Kubernetes Deployment created for running this container"),b(),Pe(45,"app-multi-key-value",25),y(46,"h3"),E(47,"Service Annotations"),b(),y(48,"div",1),E(49,"Annotations added to the Kubernetes Service created for accessing this container"),b(),Pe(50,"app-multi-key-value",26),b()),2&n){const e=q();let i;S(10),Ut(e.quantityErrMsgMemory),S(7),Ut(e.quantityErrMsgMemory),S(7),Ut(e.quantityErrMsgCPU),S(7),Ut(e.quantityErrMsgCPU),S(9),P("ngIf",null==(i=e.form.get("configureSources"))?null:i.value)}}function kU(n,t){if(1&n){const e=Bt();y(0,"button",32),ce("click",function(){return Je(e),st(q().less())}),E(1,"Less parameters..."),b()}}function SU(n,t){if(1&n){const e=Bt();y(0,"button",33),ce("click",function(){return Je(e),st(q().cancel())}),E(1,"Cancel"),b()}}let MA=(()=>{class n{constructor(e,i){this.devstate=e,this.telemetry=i,this.volumeNames=[],this.cancelable=!1,this.canceled=new Ze,this.created=new Ze,this.quantityErrMsgMemory="Numeric value, with optional unit Ki, Mi, Gi, Ti, Pi, Ei",this.quantityErrMsgCPU="Numeric value, with optional unit m, k, M, G, T, P, E",this.volumesToCreate=[],this.seeMore=!1,this.form=new is({name:new Ct("",[Sn.required,Sn.pattern(Tb)]),image:new Ct("",[Sn.required]),command:new Ct([]),args:new Ct([]),env:new Ct([]),volumeMounts:new Ct([]),memoryRequest:new Ct("",null,[this.devstate.isQuantity()]),memoryLimit:new Ct("",null,[this.devstate.isQuantity()]),cpuRequest:new Ct("",null,[this.devstate.isQuantity()]),cpuLimit:new Ct("",null,[this.devstate.isQuantity()]),configureSources:new Ct(!1),mountSources:new Ct(!0),_specificDir:new Ct(!1),sourceMapping:new Ct(""),deployAnnotations:new Ct([]),svcAnnotations:new Ct([]),endpoints:new Ct([])}),this.form.valueChanges.subscribe(r=>{this.updateSourceFields(r)}),this.updateSourceFields(this.form.value)}updateSourceFields(e){const i=e.mountSources&&e._specificDir;!i&&!this.form.get("sourceMapping")?.disabled&&(this.form.get("sourceMapping")?.disable(),this.form.get("sourceMapping")?.setValue(""),this.form.get("_specificDir")?.setValue(!1)),i&&!this.form.get("sourceMapping")?.enabled&&this.form.get("sourceMapping")?.enable();const r=e.mountSources;!r&&!this.form.get("_specificDir")?.disabled&&this.form.get("_specificDir")?.disable(),r&&!this.form.get("_specificDir")?.enabled&&this.form.get("_specificDir")?.enable()}create(){this.telemetry.track("[ui] create container");const e=r=>r.reduce((o,a)=>(o[a.name]=a.value,o),{}),i=this.form.value;i.annotation={deployment:e(i.deployAnnotations),service:e(i.svcAnnotations)},this.created.emit({container:this.form.value,volumes:this.volumesToCreate})}cancel(){this.canceled.emit()}onCreateNewVolume(e){this.volumesToCreate.push(e)}more(){this.seeMore=!0}less(){this.seeMore=!1}}return n.\u0275fac=function(e){return new(e||n)(D(os),D(Ta))},n.\u0275cmp=I({type:n,selectors:[["app-container"]],inputs:{volumeNames:"volumeNames",cancelable:"cancelable"},outputs:{canceled:"canceled",created:"created"},decls:48,vars:7,consts:[[1,"main"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the container","data-cy","container-name","matInput","","formControlName","name"],["placeholder","Image to start the container","data-cy","container-image","matInput","","formControlName","image"],["formControlName","command","label","Command","addLabel","Add command"],["formControlName","args","label","Arg","addLabel","Add arg"],["dataCyPrefix","container-env","addLabel","Add Environment Variable","formControlName","env"],["formControlName","volumeMounts",3,"volumes","createNewVolume"],["formControlName","endpoints"],[1,"outbutton"],["data-cy","container-more-params","mat-flat-button","",3,"click",4,"ngIf"],[4,"ngIf"],["data-cy","container-less-params","mat-flat-button","",3,"click",4,"ngIf"],[1,"buttonbar"],["data-cy","container-create","mat-flat-button","","color","primary","matTooltip","create new container",3,"disabled","click"],["mat-flat-button","",3,"click",4,"ngIf"],["data-cy","container-more-params","mat-flat-button","",3,"click"],["placeholder","memory requested for the container. Ex: 1Gi","data-cy","container-memory-request","matInput","","formControlName","memoryRequest"],["placeholder","memory limit for the container. Ex: 1Gi","data-cy","container-memory-limit","matInput","","formControlName","memoryLimit"],["placeholder","CPU requested for the container. Ex: 500m","data-cy","container-cpu-request","matInput","","formControlName","cpuRequest"],["placeholder","CPU limit for the container. Ex: 1","data-cy","container-cpu-limit","matInput","","formControlName","cpuLimit"],["data-cy","container-sources-configuration","formControlName","configureSources"],["class","source-configuration-details",4,"ngIf"],["dataCyPrefix","container-deploy-anno","addLabel","Add Annotation","formControlName","deployAnnotations"],["dataCyPrefix","container-svc-anno","addLabel","Add Annotation","formControlName","svcAnnotations"],[1,"source-configuration-details"],[1,"mid-width",2,"display","inline-flex"],["data-cy","container-mount-sources","formControlName","mountSources"],["data-cy","container-sources-specific-directory","matTooltip","${PROJECTS_ROOT} or /projects by default","formControlName","_specificDir"],["placeholder","Container's directory on which to mount sources","data-cy","container-source-mapping","matInput","","formControlName","sourceMapping"],["data-cy","container-less-params","mat-flat-button","",3,"click"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"div",0)(1,"h2"),E(2,"Add a new container"),b(),y(3,"div",1),E(4,"A Container is used to execute shell commands into a specific environment. The entrypoint of the container must be a non-terminating command. You can use an image pulled from a registry or an image built by an Image command."),b(),y(5,"form",2)(6,"mat-form-field",3)(7,"mat-label")(8,"span"),E(9,"Name"),b()(),y(10,"mat-error"),E(11,"Lowercase words separated by dashes. Ex: my-container"),b(),Pe(12,"input",4),b(),y(13,"mat-form-field",3)(14,"mat-label")(15,"span"),E(16,"Image"),b()(),Pe(17,"input",5),b(),y(18,"h3"),E(19,"Command and Arguments"),b(),y(20,"div",1),E(21,"Command and Arguments can be used to override the entrypoint of the image"),b(),Pe(22,"app-multi-text",6)(23,"app-multi-text",7),y(24,"h3"),E(25,"Environment Variables"),b(),y(26,"div",1),E(27,"Environment Variables to define in the running container"),b(),Pe(28,"app-multi-key-value",8),y(29,"h3"),E(30,"Volume Mounts"),b(),y(31,"div",1),E(32,"Volumes to mount into the container's filesystem"),b(),y(33,"app-volume-mounts",9),ce("createNewVolume",function(o){return i.onCreateNewVolume(o)}),b(),y(34,"h3"),E(35,"Endpoints"),b(),y(36,"div",1),E(37,"Endpoints exposed by the container"),b(),Pe(38,"app-endpoints",10),y(39,"div",11),Y(40,MU,2,0,"button",12),b(),Y(41,EU,51,5,"div",13),y(42,"div",11),Y(43,kU,2,0,"button",14),b()(),y(44,"div",15)(45,"button",16),ce("click",function(){return i.create()}),E(46,"Create"),b(),Y(47,SU,2,0,"button",17),b()()),2&e&&(S(5),P("formGroup",i.form),S(28),P("volumes",i.volumeNames),S(7),P("ngIf",!i.seeMore),S(1),P("ngIf",i.seeMore),S(2),P("ngIf",i.seeMore),S(2),P("disabled",i.form.invalid),S(2),P("ngIf",i.cancelable))},dependencies:[yi,Tc,co,Qr,Ws,Jr,ws,Zi,al,lo,jr,sl,Ts,cl,wA,gU,vU,DU],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}.mid-width[_ngcontent-%COMP%]{width:50%}.source-configuration-details[_ngcontent-%COMP%]{margin-left:16px}div.buttonbar[_ngcontent-%COMP%]{margin-top:16px}.outbutton[_ngcontent-%COMP%]{text-align:right}"]}),n})();function IU(n,t){if(1&n&&(y(0,"tr")(1,"td"),E(2,"Command:"),b(),y(3,"td")(4,"code"),E(5),b()()()),2&n){const e=q().$implicit;S(5),Ut(e.command.join(" "))}}function AU(n,t){if(1&n&&(y(0,"tr")(1,"td"),E(2,"Args:"),b(),y(3,"td")(4,"code"),E(5),b()()()),2&n){const e=q().$implicit;S(5),Ut(e.args.join(" "))}}function FU(n,t){if(1&n&&(y(0,"div"),E(1),b()),2&n){const e=t.$implicit;S(1),jm(" ",e.name,": ",e.value," ")}}function OU(n,t){if(1&n&&(y(0,"tr")(1,"td"),E(2,"Environment variables:"),b(),y(3,"td"),Y(4,FU,2,2,"div",8),b()()),2&n){const e=q().$implicit;S(4),P("ngForOf",e.env)}}function RU(n,t){if(1&n&&(y(0,"div",10)(1,"mat-chip",11)(2,"mat-icon",12),E(3,"storage"),b(),E(4),b(),y(5,"span",13),E(6," in "),y(7,"code"),E(8),b()()()),2&n){const e=t.$implicit;S(4),bi(" ",e.name," "),S(4),Ut(e.path)}}function PU(n,t){if(1&n&&(y(0,"tr")(1,"td"),E(2,"Volume Mounts:"),b(),y(3,"td"),Y(4,RU,9,2,"div",9),b()()),2&n){const e=q().$implicit;S(4),P("ngForOf",e.volumeMounts)}}function LU(n,t){if(1&n&&(y(0,"tr")(1,"td"),E(2,"Memory Request:"),b(),y(3,"td")(4,"code"),E(5),b()()()),2&n){const e=q().$implicit;S(5),Ut(e.memoryRequest)}}function NU(n,t){if(1&n&&(y(0,"tr")(1,"td"),E(2,"Memory Limit:"),b(),y(3,"td")(4,"code"),E(5),b()()()),2&n){const e=q().$implicit;S(5),Ut(e.memoryLimit)}}function BU(n,t){if(1&n&&(y(0,"tr")(1,"td"),E(2,"CPU Request:"),b(),y(3,"td")(4,"code"),E(5),b()()()),2&n){const e=q().$implicit;S(5),Ut(e.cpuRequest)}}function VU(n,t){if(1&n&&(y(0,"tr")(1,"td"),E(2,"CPU Limit:"),b(),y(3,"td")(4,"code"),E(5),b()()()),2&n){const e=q().$implicit;S(5),Ut(e.cpuLimit)}}function HU(n,t){if(1&n&&(y(0,"div"),E(1),b()),2&n){const e=t.$implicit;S(1),jm(" ",e.key,": ",e.value," ")}}function zU(n,t){if(1&n&&(y(0,"tr")(1,"td"),E(2,"Deployment Annotations:"),b(),y(3,"td"),Y(4,HU,2,2,"div",8),Km(5,"keyvalue"),b()()),2&n){const e=q().$implicit;S(4),P("ngForOf",Xm(5,1,e.annotation.deployment))}}function $U(n,t){if(1&n&&(y(0,"div"),E(1),b()),2&n){const e=t.$implicit;S(1),jm(" ",e.key,": ",e.value," ")}}function jU(n,t){if(1&n&&(y(0,"tr")(1,"td"),E(2,"Service Annotations:"),b(),y(3,"td"),Y(4,$U,2,2,"div",8),Km(5,"keyvalue"),b()()),2&n){const e=q().$implicit;S(4),P("ngForOf",Xm(5,1,e.annotation.service))}}function UU(n,t){if(1&n&&(y(0,"tr")(1,"td"),E(2,"Mount Sources:"),b(),y(3,"td")(4,"code"),E(5),b()()()),2&n){const e=q().$implicit;S(5),Ut(e.mountSources?"Yes":"No")}}function WU(n,t){if(1&n&&(y(0,"tr")(1,"td"),E(2,"Mount Sources Into:"),b(),y(3,"td")(4,"code"),E(5),b()()()),2&n){const e=q().$implicit;S(5),Ut(e.sourceMapping)}}function GU(n,t){1&n&&(y(0,"div"),E(1,"secure"),b())}function YU(n,t){if(1&n&&(y(0,"div"),E(1),b()),2&n){const e=q().$implicit;S(1),bi("path: ",e.path,"")}}function ZU(n,t){if(1&n&&(y(0,"mat-card",16)(1,"mat-card-header")(2,"mat-card-title"),E(3),b(),y(4,"mat-card-subtitle"),E(5),b()(),y(6,"mat-card-content")(7,"div"),E(8),b(),y(9,"div"),E(10),b(),Y(11,GU,2,0,"div",3),Y(12,YU,2,1,"div",3),b()()),2&n){const e=t.$implicit;let i,r;S(3),Ut(e.name),S(2),Ut(e.targetPort),S(3),bi("exposure: ",null!==(i=e.exposure)&&void 0!==i?i:"public",""),S(2),bi("protocol: ",null!==(r=e.protocol)&&void 0!==r?r:"http",""),S(1),P("ngIf",e.secure),S(1),P("ngIf",e.path)}}function qU(n,t){if(1&n&&(y(0,"tr")(1,"td"),E(2,"Endpoints:"),b(),y(3,"td",14),Y(4,ZU,13,6,"mat-card",15),b()()),2&n){const e=q().$implicit;S(4),P("ngForOf",e.endpoints)}}function KU(n,t){if(1&n){const e=Bt();y(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),E(3),b(),y(4,"mat-card-subtitle"),E(5,"Container"),b()(),y(6,"mat-card-content")(7,"table",6)(8,"tr")(9,"td"),E(10,"Image:"),b(),y(11,"td")(12,"code"),E(13),b()()(),Y(14,IU,6,1,"tr",3),Y(15,AU,6,1,"tr",3),Y(16,OU,5,1,"tr",3),Y(17,PU,5,1,"tr",3),Y(18,LU,6,1,"tr",3),Y(19,NU,6,1,"tr",3),Y(20,BU,6,1,"tr",3),Y(21,VU,6,1,"tr",3),Y(22,zU,6,3,"tr",3),Y(23,jU,6,3,"tr",3),Y(24,UU,6,1,"tr",3),Y(25,WU,6,1,"tr",3),Y(26,qU,5,1,"tr",3),b()(),y(27,"mat-card-actions")(28,"button",7),ce("click",function(){const o=Je(e).$implicit;return st(q().delete(o.name))}),E(29,"Delete"),b()()()}if(2&n){const e=t.$implicit;S(3),Ut(e.name),S(10),Ut(e.image),S(1),P("ngIf",null!=e.command&&e.command.length>0),S(1),P("ngIf",null!=e.args&&e.args.length>0),S(1),P("ngIf",e.env.length),S(1),P("ngIf",e.volumeMounts.length>0),S(1),P("ngIf",null!=e.memoryRequest&&e.memoryRequest.length>0),S(1),P("ngIf",null!=e.memoryLimit&&e.memoryLimit.length>0),S(1),P("ngIf",null!=e.cpuRequest&&e.cpuRequest.length>0),S(1),P("ngIf",null!=e.cpuLimit&&e.cpuLimit.length>0),S(1),P("ngIf",e.annotation.deployment),S(1),P("ngIf",e.annotation.service),S(1),P("ngIf",e.configureSources),S(1),P("ngIf",e.configureSources&&e.mountSources&&e.sourceMapping),S(1),P("ngIf",e.endpoints.length)}}const XU=function(){return[]};function QU(n,t){if(1&n){const e=Bt();y(0,"app-container",17),ce("canceled",function(){return Je(e),st(q().undisplayAddForm())})("created",function(r){return Je(e),st(q().onCreated(r))}),b()}if(2&n){const e=q();let i;P("volumeNames",null!==(i=e.volumeNames)&&void 0!==i?i:Za(2,XU))("cancelable",e.forceDisplayAdd)}}function JU(n,t){if(1&n){const e=Bt();Pr(0),y(1,"button",18),ce("click",function(){return Je(e),st(q().displayAddForm())}),y(2,"mat-icon",19),E(3,"add"),b()(),Lr()}}let e7=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayAdd=!1,this.containers=[],this.volumeNames=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,xr.Z)(function*(o){e.volumeNames=o?.volumes.map(a=>a.name),i.containers=o?.containers,null!=e.containers&&(i.forceDisplayAdd=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.forceDisplayAdd=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayAdd=!1}delete(e){confirm('You will delete the container "'+e+'". Continue?')&&this.devstate.deleteContainer(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}createVolumes(e,i,r){e.length!=i?this.devstate.addVolume(e[i]).subscribe({next:a=>{this.createVolumes(e,i+1,r)},error:a=>{alert(a.error.message)}}):r()}onCreated(e){const i=e.container;this.createVolumes(e.volumes,0,()=>{this.devstate.addContainer(i).subscribe({next:o=>{this.state.changeDevfileYaml(o)},error:o=>{alert(o.error.message)}})})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(D(Ks),D(os))},n.\u0275cmp=I({type:n,selectors:[["app-containers"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","container-info",4,"ngFor","ngForOf"],[3,"volumeNames","cancelable","canceled","created",4,"ngIf"],[4,"ngIf"],["data-cy","container-info"],[1,"colored-title"],[1,"aligned"],["mat-button","","color","warn",3,"click"],[4,"ngFor","ngForOf"],["class","volume-mount",4,"ngFor","ngForOf"],[1,"volume-mount"],["disableRipple",""],["matChipAvatar","",1,"material-icons-outlined"],[1,"path"],[1,"container-list"],["class","endpoint",4,"ngFor","ngForOf"],[1,"endpoint"],[3,"volumeNames","cancelable","canceled","created"],["data-cy","add","mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0),Y(1,KU,30,15,"mat-card",1),Y(2,QU,1,3,"app-container",2),b(),Y(3,JU,4,0,"ng-container",3)),2&e&&(S(1),P("ngForOf",i.containers),S(1),P("ngIf",i.forceDisplayAdd||null==i.containers||0==i.containers.length),S(1),P("ngIf",!i.forceDisplayAdd&&null!=i.containers&&i.containers.length>0))},dependencies:[xs,yi,Zi,$f,Eh,Ah,Sh,Fh,Ih,kh,id,Ex,Zs,MA,fT],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.volume-mount[_ngcontent-%COMP%]{margin-top:4px}.volume-mount[_ngcontent-%COMP%] > mat-chip[_ngcontent-%COMP%]{top:-11px}.volume-mount[_ngcontent-%COMP%] > span.path[_ngcontent-%COMP%]{position:relative;top:-14px}table.aligned[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{vertical-align:top}div.endpoint-list[_ngcontent-%COMP%]{display:float}mat-card.endpoint[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;float:left;margin:0 8px}mat-card.endpoint[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:8px 8px 0}mat-card.endpoint[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:16px;line-height:24px}mat-card.endpoint[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{font-size:12px;line-height:24px}mat-card.endpoint[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:8px}"]}),n})();function t7(n,t){if(1&n&&(y(0,"mat-option",4),E(1),b()),2&n){const e=t.$implicit;P("value",e),S(1),Ut(e)}}let Rx=(()=>{class n{constructor(){this.containers=[],this.label="",this.createNew=new Ze,this.onChange=e=>{},this.onValidatorChange=()=>{},this.formCtrl=new Ct("",[Sn.required,this.validatorIsNotNew()])}validatorIsNotNew(){return e=>"!"==e.value?{internal:!0}:null}writeValue(e){this.formCtrl.setValue(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){}onSelectChange(e){this.onValidatorChange(),"!"!=e&&this.onChange(e),this.createNew.emit("!"==e)}registerOnValidatorChange(e){this.onValidatorChange=e}validate(e){return this.formCtrl.valid?null:{internal:!0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=I({type:n,selectors:[["app-select-container"]],inputs:{containers:"containers",label:"label"},outputs:{createNew:"createNew"},features:[Wt([{provide:yr,multi:!0,useExisting:n},{provide:$i,useExisting:Jt(()=>n),multi:!0}])],decls:7,vars:4,consts:[["appearance","fill"],["data-cy","select-container",3,"formControl","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["value","!"],[3,"value"]],template:function(e,i){1&e&&(y(0,"mat-form-field",0)(1,"mat-label"),E(2),b(),y(3,"mat-select",1),ce("selectionChange",function(o){return i.onSelectChange(o.value)}),Y(4,t7,2,2,"mat-option",2),y(5,"mat-option",3),E(6),b()()()),2&e&&(S(2),Ut(i.label),S(1),P("formControl",i.formCtrl),S(1),P("ngForOf",i.containers),S(2),bi("(New ",i.label,")"))},dependencies:[xs,Qr,gh,Bd,lo,jr,Cb]}),n})();function n7(n,t){1&n&&(y(0,"h2"),E(1,"Add an Exec Command"),b())}function i7(n,t){if(1&n&&(y(0,"h2"),E(1,"Edit exec command "),y(2,"i"),E(3),b()()),2&n){const e=q();S(3),Ut(e.command.name)}}const r7=function(){return[]};function o7(n,t){if(1&n){const e=Bt();y(0,"app-container",15),ce("created",function(r){return Je(e),st(q().onNewContainerCreated(r))}),b()}if(2&n){let i;P("volumeNames",null!==(i=q().volumeNames)&&void 0!==i?i:Za(1,r7))}}function s7(n,t){if(1&n){const e=Bt();y(0,"button",16),ce("click",function(){return Je(e),st(q().create())}),E(1,"Create"),b()}2&n&&P("disabled",q().form.invalid)}function a7(n,t){if(1&n){const e=Bt();y(0,"button",17),ce("click",function(){return Je(e),st(q().save())}),E(1,"Save"),b()}2&n&&P("disabled",q().form.invalid)}let c7=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Ze,this.containerList=[],this.showNewContainer=!1,this.containerToCreate=null,this.volumesToCreate=[],this.volumeNames=[],this.form=new is({name:new Ct("",[Sn.required,Sn.pattern(Mb)]),component:new Ct("",[Sn.required]),commandLine:new Ct("",[Sn.required]),workingDir:new Ct("",[Sn.required]),hotReloadCapable:new Ct(!1)}),this.state.state.subscribe(function(){var a=(0,xr.Z)(function*(c){o.volumeNames=c?.volumes.map(h=>h.name);const d=c?.containers;null!=d&&(o.containerList=d.map(h=>h.name))});return function(c){return a.apply(this,arguments)}}())}createVolumes(e,i,r){e.length!=i?this.devstate.addVolume(e[i]).subscribe({next:a=>{this.createVolumes(e,i+1,r)},error:a=>{alert(a.error.message)}}):r()}create(){this.telemetry.track("[ui] create exec command");const e=()=>{this.devstate.addExecCommand(this.form.value.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};this.createVolumes(this.volumesToCreate,0,()=>{null!=this.containerToCreate&&this.containerToCreate?.name==this.form.controls.component.value?this.devstate.addContainer(this.containerToCreate).subscribe({next:()=>{e()},error:r=>{alert(r.error.message)}}):e()})}cancel(){this.canceled.emit()}onProjectsRoot(){this.form.controls.workingDir.setValue("${PROJECTS_ROOT}")}onCreateNewContainer(e){this.showNewContainer=e}onNewContainerCreated(e){const i=e.container;this.containerList.push(i.name),this.form.controls.component.setValue(i.name),this.showNewContainer=!1,this.containerToCreate=i,this.volumesToCreate.push(...e.volumes)}ngOnChanges(e){if(!e.command)return;const i=e.command.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.patchValue(i.exec),this.form.get("name")?.disable())}save(){this.telemetry.track("[ui] update exec command");const e=()=>{null!=this.command&&this.devstate.updateExecCommand(this.command.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};this.createVolumes(this.volumesToCreate,0,()=>{null!=this.containerToCreate&&this.containerToCreate?.name==this.form.controls.component.value?this.devstate.addContainer(this.containerToCreate).subscribe({next:()=>{e()},error:r=>{alert(r.error.message)}}):e()})}}return n.\u0275fac=function(e){return new(e||n)(D(os),D(Ks),D(Ta))},n.\u0275cmp=I({type:n,selectors:[["app-command-exec"]],inputs:{command:"command"},outputs:{canceled:"canceled"},features:[Ei],decls:35,vars:7,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],["formControlName","hotReloadCapable"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-exec-name","matInput","","formControlName","name"],["placeholder","command line passed to the shell","data-cy","command-exec-command-line","matInput","","formControlName","commandLine"],["placeholder","Working directory of the command","data-cy","command-exec-working-dir","matInput","","formControlName","workingDir"],["data-cy","command-exec-projects-root","mat-button","",3,"click"],["formControlName","component","label","Container",3,"containers","createNew"],[3,"volumeNames","created",4,"ngIf"],["data-cy","command-exec-create","mat-flat-button","","color","primary","matTooltip","create new Exec Command",3,"disabled","click",4,"ngIf"],["data-cy","command-exec-save","mat-flat-button","","color","primary","matTooltip","save command",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click"],[3,"volumeNames","created"],["data-cy","command-exec-create","mat-flat-button","","color","primary","matTooltip","create new Exec Command",3,"disabled","click"],["data-cy","command-exec-save","mat-flat-button","","color","primary","matTooltip","save command",3,"disabled","click"]],template:function(e,i){1&e&&(y(0,"div",0),Y(1,n7,2,0,"h2",1),Y(2,i7,4,1,"h2",1),y(3,"div",2),E(4,"An Exec command is a shell command executed into a container."),b(),y(5,"form",3)(6,"div")(7,"mat-checkbox",4),E(8,"Hot Reload Capable"),b()(),y(9,"mat-form-field",5)(10,"mat-label")(11,"span"),E(12,"Name"),b()(),y(13,"mat-error"),E(14,"Lowercase words separated by dashes. Ex: my-command"),b(),Pe(15,"input",6),b(),y(16,"mat-form-field",5)(17,"mat-label")(18,"span"),E(19,"Command Line"),b()(),Pe(20,"input",7),b(),y(21,"mat-form-field",5)(22,"mat-label")(23,"span"),E(24,"Working Dir"),b()(),Pe(25,"input",8),b(),y(26,"button",9),ce("click",function(){return i.onProjectsRoot()}),E(27,"Work on Project's Root Directory"),b(),y(28,"div")(29,"app-select-container",10),ce("createNew",function(o){return i.onCreateNewContainer(o)}),b()()(),Y(30,o7,1,2,"app-container",11),Y(31,s7,2,1,"button",12),Y(32,a7,2,1,"button",13),y(33,"button",14),ce("click",function(){return i.cancel()}),E(34,"Cancel"),b()()),2&e&&(S(1),P("ngIf",!i.command),S(1),P("ngIf",i.command),S(3),P("formGroup",i.form),S(24),P("containers",i.containerList),S(1),P("ngIf",i.showNewContainer),S(1),P("ngIf",!i.command),S(1),P("ngIf",i.command))},dependencies:[yi,Tc,co,Qr,Ws,Jr,ws,Zi,al,lo,jr,sl,Ts,cl,MA,Rx],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function l7(n,t){1&n&&(y(0,"h2"),E(1,"Add a new resource"),b())}function d7(n,t){if(1&n&&(y(0,"h2"),E(1,"Edit resource "),y(2,"i"),E(3),b()()),2&n){const e=q();S(3),Ut(e.resource.name)}}function u7(n,t){1&n&&(y(0,"mat-form-field",19)(1,"mat-label")(2,"span"),E(3,"URI"),b()(),Pe(4,"input",20),b())}function h7(n,t){1&n&&(y(0,"mat-form-field",19)(1,"mat-label"),E(2,"YAML Manifest"),b(),Pe(3,"textarea",21),b())}function m7(n,t){if(1&n){const e=Bt();y(0,"button",22),ce("click",function(){return Je(e),st(q().create())}),E(1,"Create"),b()}2&n&&P("disabled",q().form.invalid)}function f7(n,t){if(1&n){const e=Bt();y(0,"button",23),ce("click",function(){return Je(e),st(q().save())}),E(1,"Save"),b()}2&n&&P("disabled",q().form.invalid)}function p7(n,t){if(1&n){const e=Bt();y(0,"button",24),ce("click",function(){return Je(e),st(q().cancel())}),E(1,"Cancel"),b()}}let TA=(()=>{class n{constructor(e){this.telemetry=e,this.cancelable=!1,this.canceled=new Ze,this.created=new Ze,this.saved=new Ze,this.uriOrInlined="uri",this.form=new is({name:new Ct("",[Sn.required,Sn.pattern(Tb)]),_choice:new Ct("uri"),uri:new Ct("",[Sn.required]),inlined:new Ct("",[]),deployByDefault:new Ct("undefined")})}changeUriOrInlined(e){this.uriOrInlined=e,"uri"==this.uriOrInlined?(this.form.controls.inlined.removeValidators(Sn.required),this.form.controls.inlined.setValue(""),this.form.controls.uri?.addValidators(Sn.required)):"inlined"==this.uriOrInlined&&(this.form.controls.uri?.removeValidators(Sn.required),this.form.controls.uri.setValue(""),this.form.controls.inlined?.setValidators(Sn.required)),this.form.controls.uri.updateValueAndValidity(),this.form.controls.inlined.updateValueAndValidity()}create(){this.telemetry.track("[ui] create resource"),this.created.emit(this.form.value)}save(){this.form.value.name=this.resource?.name,this.telemetry.track("[ui] edit resource"),this.saved.emit(this.form.value)}cancel(){this.canceled.emit()}ngOnChanges(e){if(!e.resource)return;const i=e.resource.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),i.inlined?(this.form.get("_choice")?.setValue("inlined"),this.changeUriOrInlined("inlined")):(this.form.get("_choice")?.setValue("uri"),this.changeUriOrInlined("uri")),this.form.get("name")?.disable())}}return n.\u0275fac=function(e){return new(e||n)(D(Ta))},n.\u0275cmp=I({type:n,selectors:[["app-resource"]],inputs:{cancelable:"cancelable",resource:"resource"},outputs:{canceled:"canceled",created:"created",saved:"saved"},features:[Ei],decls:33,vars:8,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],[1,"toggle-group-div"],["formControlName","deployByDefault"],["data-cy","resource-auto-deploy-never","matTooltip","Do not deploy the resource at startup","value","never"],["data-cy","resource-auto-deploy-undefined","matTooltip","Deploy at startup only if the resource is not referenced in any command","value","undefined"],["data-cy","resource-auto-deploy-always","matTooltip","Force deploying the resource at startup","value","always"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the resource","data-cy","resource-name","matInput","","formControlName","name"],[1,"toggleUriInlined"],["formControlName","_choice",3,"change"],["data-cy","resource-toogle-uri","value","uri"],["data-cy","resource-toggle-inlined","value","inlined"],["appearance","outline","class","full-width",4,"ngIf"],["data-cy","resource-create","mat-flat-button","","color","primary","matTooltip","create new resource",3,"disabled","click",4,"ngIf"],["data-cy","resource-save","mat-flat-button","","color","primary","matTooltip","save resource",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["appearance","outline",1,"full-width"],["placeholder","Reference to a YAML manifest","data-cy","resource-uri","matInput","","formControlName","uri"],["data-cy","resource-manifest","matInput","","formControlName","inlined","rows","8"],["data-cy","resource-create","mat-flat-button","","color","primary","matTooltip","create new resource",3,"disabled","click"],["data-cy","resource-save","mat-flat-button","","color","primary","matTooltip","save resource",3,"disabled","click"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"div",0),Y(1,l7,2,0,"h2",1),Y(2,d7,4,1,"h2",1),y(3,"div",2),E(4,"A Resource defines a Kubernetes resource. Its definition can be given either by a URI pointing to a manifest file or by an inlined YAML manifest."),b(),y(5,"form",3)(6,"div",4),E(7," Deploy at Startup: "),y(8,"mat-button-toggle-group",5)(9,"mat-button-toggle",6),E(10,"Never"),b(),y(11,"mat-button-toggle",7),E(12,"If Orphan"),b(),y(13,"mat-button-toggle",8),E(14,"Always"),b()()(),y(15,"mat-form-field",9)(16,"mat-label")(17,"span"),E(18,"Name"),b()(),y(19,"mat-error"),E(20,"Lowercase words separated by dashes. Ex: my-resource"),b(),Pe(21,"input",10),b(),y(22,"span",11)(23,"mat-button-toggle-group",12),ce("change",function(o){return i.changeUriOrInlined(o.value)}),y(24,"mat-button-toggle",13),E(25,"Specify URI"),b(),y(26,"mat-button-toggle",14),E(27,"Inlined content"),b()()(),Y(28,u7,5,0,"mat-form-field",15),Y(29,h7,4,0,"mat-form-field",15),b(),Y(30,m7,2,1,"button",16),Y(31,f7,2,1,"button",17),Y(32,p7,2,0,"button",18),b()),2&e&&(S(1),P("ngIf",!i.resource),S(1),P("ngIf",i.resource),S(3),P("formGroup",i.form),S(23),P("ngIf","uri"==i.uriOrInlined),S(1),P("ngIf","inlined"==i.uriOrInlined),S(1),P("ngIf",!i.resource),S(1),P("ngIf",i.resource),S(1),P("ngIf",i.cancelable))},dependencies:[yi,Tc,co,Qr,Ws,Jr,ws,Zi,Cx,xx,lo,jr,sl,Ts,cl],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}span.toggleUriInlined[_ngcontent-%COMP%]{margin-left:16px}"]}),n})();function g7(n,t){1&n&&(y(0,"h2"),E(1,"Add an Apply Command"),b())}function _7(n,t){if(1&n&&(y(0,"h2"),E(1,"Edit apply command "),y(2,"i"),E(3),b()()),2&n){const e=q();S(3),Ut(e.command.name)}}function b7(n,t){if(1&n){const e=Bt();y(0,"app-resource",11),ce("created",function(r){return Je(e),st(q().onNewResourceCreated(r))}),b()}}function y7(n,t){if(1&n){const e=Bt();y(0,"button",12),ce("click",function(){return Je(e),st(q().create())}),E(1,"Create"),b()}2&n&&P("disabled",q().form.invalid)}function v7(n,t){if(1&n){const e=Bt();y(0,"button",13),ce("click",function(){return Je(e),st(q().save())}),E(1,"Save"),b()}2&n&&P("disabled",q().form.invalid)}let C7=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Ze,this.resourceList=[],this.showNewResource=!1,this.resourceToCreate=null,this.form=new is({name:new Ct("",[Sn.required,Sn.pattern(Mb)]),component:new Ct("",[Sn.required])}),this.state.state.subscribe(function(){var a=(0,xr.Z)(function*(c){const d=c?.resources;null!=d&&(o.resourceList=d.map(h=>h.name))});return function(c){return a.apply(this,arguments)}}())}create(){this.telemetry.track("[ui] create apply command");const e=()=>{this.devstate.addApplyCommand(this.form.value.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};null!=this.resourceToCreate&&this.resourceToCreate?.name==this.form.controls.component.value?this.devstate.addResource(this.resourceToCreate).subscribe({next:r=>{this.state.changeDevfileYaml(r),e()},error:r=>{alert(r.error.message)}}):e()}cancel(){this.canceled.emit()}onCreateNewContainer(e){this.showNewResource=e}onNewResourceCreated(e){this.resourceList.push(e.name),this.form.controls.component.setValue(e.name),this.showNewResource=!1,this.resourceToCreate=e}ngOnChanges(e){if(!e.command)return;const i=e.command.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.patchValue(i.apply),this.form.get("name")?.disable())}save(){this.telemetry.track("[ui] update apply command");const e=()=>{null!=this.command&&this.devstate.updateApplyCommand(this.command.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};null!=this.resourceToCreate&&this.resourceToCreate?.name==this.form.controls.component.value?this.devstate.addResource(this.resourceToCreate).subscribe({next:r=>{this.state.changeDevfileYaml(r),e()},error:r=>{alert(r.error.message)}}):e()}}return n.\u0275fac=function(e){return new(e||n)(D(os),D(Ks),D(Ta))},n.\u0275cmp=I({type:n,selectors:[["app-command-apply"]],inputs:{command:"command"},outputs:{canceled:"canceled"},features:[Ei],decls:22,vars:7,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-apply-name","matInput","","formControlName","name"],["formControlName","component","label","Resource",3,"containers","createNew"],[3,"created",4,"ngIf"],["data-cy","command-apply-create","mat-flat-button","","color","primary","matTooltip","create new Apply Command",3,"disabled","click",4,"ngIf"],["data-cy","command-apply-save","mat-flat-button","","color","primary","matTooltip","save Apply Command",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click"],[3,"created"],["data-cy","command-apply-create","mat-flat-button","","color","primary","matTooltip","create new Apply Command",3,"disabled","click"],["data-cy","command-apply-save","mat-flat-button","","color","primary","matTooltip","save Apply Command",3,"disabled","click"]],template:function(e,i){1&e&&(y(0,"div",0),Y(1,g7,2,0,"h2",1),Y(2,_7,4,1,"h2",1),y(3,"div",2),E(4,'An Apply command "applies" a resource to the cluster. Equivalent to '),y(5,"code"),E(6,"kubectl apply -f ..."),b()(),y(7,"form",3)(8,"mat-form-field",4)(9,"mat-label")(10,"span"),E(11,"Name"),b()(),y(12,"mat-error"),E(13,"Lowercase words separated by dashes. Ex: my-command"),b(),Pe(14,"input",5),b(),y(15,"div")(16,"app-select-container",6),ce("createNew",function(o){return i.onCreateNewContainer(o)}),b()()(),Y(17,b7,1,0,"app-resource",7),Y(18,y7,2,1,"button",8),Y(19,v7,2,1,"button",9),y(20,"button",10),ce("click",function(){return i.cancel()}),E(21,"Cancel"),b()()),2&e&&(S(1),P("ngIf",!i.command),S(1),P("ngIf",i.command),S(5),P("formGroup",i.form),S(9),P("containers",i.resourceList),S(1),P("ngIf",i.showNewResource),S(1),P("ngIf",!i.command),S(1),P("ngIf",i.command))},dependencies:[yi,Tc,co,Qr,Ws,Jr,ws,Zi,lo,jr,sl,Ts,cl,Rx,TA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function x7(n,t){if(1&n&&(y(0,"mat-option",7),E(1),b()),2&n){const e=t.$implicit;P("value",e),S(1),Ut(e)}}function w7(n,t){if(1&n&&(y(0,"span")(1,"mat-form-field",4)(2,"mat-label")(3,"span"),E(4,"Command"),b()(),y(5,"mat-select",5),Y(6,x7,2,2,"mat-option",6),b()()()),2&n){const e=t.$implicit,i=q();S(5),P("formControl",e),S(1),P("ngForOf",i.commandList)}}function D7(n,t){if(1&n){const e=Bt();y(0,"button",8),ce("click",function(){return Je(e),st(q().addCommand(""))}),y(1,"mat-icon",9),E(2,"add"),b()()}}function M7(n,t){if(1&n){const e=Bt();y(0,"button",10),ce("click",function(){return Je(e),st(q().addCommand(""))}),E(1),b()}if(2&n){const e=q();S(1),Ut(e.addLabel)}}let T7=(()=>{class n{constructor(){this.addLabel="",this.commandList=[],this.title="",this.onChange=e=>{},this.form=new _h([]),this.form.valueChanges.subscribe(e=>{this.onChange(e)})}writeValue(e){e.forEach(i=>this.addCommand(i))}registerOnChange(e){this.onChange=e}registerOnTouched(e){}newCommand(e){return new Ct(e,[Sn.required])}addCommand(e){this.form.push(this.newCommand(e))}validate(e){return this.form.valid?null:{internal:!0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=I({type:n,selectors:[["app-multi-command"]],inputs:{addLabel:"addLabel",commandList:"commandList",title:"title"},features:[Wt([{provide:yr,multi:!0,useExisting:n},{provide:$i,useExisting:Jt(()=>n),multi:!0}])],decls:6,vars:4,consts:[[1,"group"],[4,"ngFor","ngForOf"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["appearance","fill"],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["mat-icon-button","",3,"click"],[1,"tab-icon","material-icons-outlined"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"h3"),E(1),b(),y(2,"div",0),Y(3,w7,7,2,"span",1),Y(4,D7,3,0,"button",2),Y(5,M7,2,1,"button",3),b()),2&e&&(S(1),Ut(i.title),S(2),P("ngForOf",i.form.controls),S(1),P("ngIf",i.form.controls.length>0),S(1),P("ngIf",0==i.form.controls.length))},dependencies:[xs,yi,Qr,gh,Bd,Zi,jf,lo,jr,Zs,Cb],styles:["h3[_ngcontent-%COMP%]{margin-bottom:0}div.group[_ngcontent-%COMP%]{margin-bottom:16px}"]}),n})();function E7(n,t){1&n&&(y(0,"h2"),E(1,"Add a Composite Command"),b())}function k7(n,t){if(1&n&&(y(0,"h2"),E(1,"Edit composite command "),y(2,"i"),E(3),b()()),2&n){const e=q();S(3),Ut(e.command.name)}}function S7(n,t){if(1&n){const e=Bt();y(0,"button",11),ce("click",function(){return Je(e),st(q().create())}),E(1,"Create"),b()}2&n&&P("disabled",q().form.invalid)}function I7(n,t){if(1&n){const e=Bt();y(0,"button",12),ce("click",function(){return Je(e),st(q().save())}),E(1,"Save"),b()}2&n&&P("disabled",q().form.invalid)}let A7=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Ze,this.commandList=[],this.form=new is({name:new Ct("",[Sn.required,Sn.pattern(Mb)]),parallel:new Ct(!1),commands:new Ct([])}),this.state.state.subscribe(function(){var a=(0,xr.Z)(function*(c){const d=c?.commands;null!=d&&(o.commandList=d.map(h=>h.name))});return function(c){return a.apply(this,arguments)}}())}create(){this.telemetry.track("[ui] create composite command"),this.devstate.addCompositeCommand(this.form.value.name,this.form.value).subscribe({next:i=>{this.state.changeDevfileYaml(i)},error:i=>{alert(i.error.message)}})}cancel(){this.canceled.emit()}ngOnChanges(e){if(!e.command)return;const i=e.command.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.patchValue(i.composite),this.form.get("name")?.disable())}save(){this.telemetry.track("[ui] update composite command"),null!=this.command&&this.devstate.updateCompositeCommand(this.command.name,this.form.value).subscribe({next:i=>{this.state.changeDevfileYaml(i)},error:i=>{alert(i.error.message)}})}}return n.\u0275fac=function(e){return new(e||n)(D(os),D(Ks),D(Ta))},n.\u0275cmp=I({type:n,selectors:[["app-command-composite"]],inputs:{command:"command"},outputs:{canceled:"canceled"},features:[Ei],decls:21,vars:6,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-composite-name","matInput","","formControlName","name"],["formControlName","parallel"],["formControlName","commands","title","Commands","addLabel","Add a command",3,"commandList"],["data-cy","command-composite-create","mat-flat-button","","color","primary","matTooltip","create new Composite Command",3,"disabled","click",4,"ngIf"],["data-cy","command-composite-save","mat-flat-button","","color","primary","matTooltip","save Composite Command",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click"],["data-cy","command-composite-create","mat-flat-button","","color","primary","matTooltip","create new Composite Command",3,"disabled","click"],["data-cy","command-composite-save","mat-flat-button","","color","primary","matTooltip","save Composite Command",3,"disabled","click"]],template:function(e,i){1&e&&(y(0,"div",0),Y(1,E7,2,0,"h2",1),Y(2,k7,4,1,"h2",1),y(3,"div",2),E(4,"A Composite command executes several commands, either serially or in parallel."),b(),y(5,"form",3)(6,"mat-form-field",4)(7,"mat-label")(8,"span"),E(9,"Name"),b()(),y(10,"mat-error"),E(11,"Lowercase words separated by dashes. Ex: my-command"),b(),Pe(12,"input",5),b(),y(13,"div")(14,"mat-checkbox",6),E(15,"Run commands in parallel"),b()(),Pe(16,"app-multi-command",7),b(),Y(17,S7,2,1,"button",8),Y(18,I7,2,1,"button",9),y(19,"button",10),ce("click",function(){return i.cancel()}),E(20,"Cancel"),b()()),2&e&&(S(1),P("ngIf",!i.command),S(1),P("ngIf",i.command),S(3),P("formGroup",i.form),S(11),P("commandList",i.commandList),S(1),P("ngIf",!i.command),S(1),P("ngIf",i.command))},dependencies:[yi,Tc,co,Qr,Ws,Jr,ws,Zi,al,lo,jr,sl,Ts,cl,T7],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function F7(n,t){1&n&&(y(0,"h2"),E(1,"Add a new image"),b())}function O7(n,t){if(1&n&&(y(0,"h2"),E(1,"Edit image "),y(2,"i"),E(3),b()()),2&n){const e=q();S(3),Ut(e.image.name)}}function R7(n,t){if(1&n){const e=Bt();y(0,"button",19),ce("click",function(){return Je(e),st(q().create())}),E(1,"Create"),b()}2&n&&P("disabled",q().form.invalid)}function P7(n,t){if(1&n){const e=Bt();y(0,"button",20),ce("click",function(){return Je(e),st(q().save())}),E(1,"Save"),b()}2&n&&P("disabled",q().form.invalid)}function L7(n,t){if(1&n){const e=Bt();y(0,"button",21),ce("click",function(){return Je(e),st(q().cancel())}),E(1,"Cancel"),b()}}let EA=(()=>{class n{constructor(e){this.telemetry=e,this.cancelable=!1,this.canceled=new Ze,this.created=new Ze,this.saved=new Ze,this.form=new is({name:new Ct("",[Sn.required,Sn.pattern(Tb)]),imageName:new Ct("",[Sn.required]),args:new Ct([]),buildContext:new Ct(""),rootRequired:new Ct(!1),uri:new Ct("",[Sn.required]),autoBuild:new Ct("undefined")})}create(){this.telemetry.track("[ui] create image"),this.created.emit(this.form.value)}save(){this.form.value.name=this.image?.name,this.telemetry.track("[ui] edit volume"),this.saved.emit(this.form.value)}cancel(){this.canceled.emit()}ngOnChanges(e){if(console.log("changes",e),!e.image)return;const i=e.image.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.get("name")?.disable())}}return n.\u0275fac=function(e){return new(e||n)(D(Ta))},n.\u0275cmp=I({type:n,selectors:[["app-image"]],inputs:{cancelable:"cancelable",image:"image"},outputs:{canceled:"canceled",created:"created",saved:"saved"},features:[Ei],decls:43,vars:6,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],[1,"toggle-group-div"],["formControlName","autoBuild"],["data-cy","image-auto-build-never","matTooltip","Do not build the image at startup","value","never"],["data-cy","image-auto-build-undefined","matTooltip","Build at startup only if the image is not referenced in any command","value","undefined"],["data-cy","image-auto-build-always","matTooltip","Force building the image at startup","value","always"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the image","data-cy","image-name","matInput","","formControlName","name"],["placeholder","Reference to a container image","data-cy","image-image-name","matInput","","formControlName","imageName"],["formControlName","args","title","Build Args","label","Arg","addLabel","Add Build Arg"],["placeholder","Directory from which the build will be executed","data-cy","image-build-context","matInput","","formControlName","buildContext"],["placeholder","Dockerfile used to build the image","data-cy","image-dockerfile-uri","matInput","","formControlName","uri"],["formControlName","rootRequired"],["data-cy","image-create","mat-flat-button","","color","primary","matTooltip","create new image",3,"disabled","click",4,"ngIf"],["data-cy","image-save","mat-flat-button","","color","primary","matTooltip","save image",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["data-cy","image-create","mat-flat-button","","color","primary","matTooltip","create new image",3,"disabled","click"],["data-cy","image-save","mat-flat-button","","color","primary","matTooltip","save image",3,"disabled","click"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"div",0),Y(1,F7,2,0,"h2",1),Y(2,O7,4,1,"h2",1),y(3,"div",2),E(4,"An Image defines how to build a container image."),b(),y(5,"form",3)(6,"div",4),E(7," Build at Startup: "),y(8,"mat-button-toggle-group",5)(9,"mat-button-toggle",6),E(10,"Never"),b(),y(11,"mat-button-toggle",7),E(12,"If Orphan"),b(),y(13,"mat-button-toggle",8),E(14,"Always"),b()()(),y(15,"mat-form-field",9)(16,"mat-label")(17,"span"),E(18,"Name"),b()(),y(19,"mat-error"),E(20,"Lowercase words separated by dashes. Ex: my-image"),b(),Pe(21,"input",10),b(),y(22,"mat-form-field",9)(23,"mat-label")(24,"span"),E(25,"Image Name"),b()(),Pe(26,"input",11),b(),Pe(27,"app-multi-text",12),y(28,"mat-form-field",9)(29,"mat-label")(30,"span"),E(31,"Build Context"),b()(),Pe(32,"input",13),b(),y(33,"mat-form-field",9)(34,"mat-label")(35,"span"),E(36,"Dockerfile URI"),b()(),Pe(37,"input",14),b(),y(38,"mat-checkbox",15),E(39,"Root Required"),b()(),Y(40,R7,2,1,"button",16),Y(41,P7,2,1,"button",17),Y(42,L7,2,0,"button",18),b()),2&e&&(S(1),P("ngIf",!i.image),S(1),P("ngIf",i.image),S(3),P("formGroup",i.form),S(35),P("ngIf",!i.image),S(1),P("ngIf",i.image),S(1),P("ngIf",i.cancelable))},dependencies:[yi,Tc,co,Qr,Ws,Jr,ws,Zi,Cx,xx,al,lo,jr,sl,Ts,cl,wA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}div.toggle-group-div[_ngcontent-%COMP%]{margin:16px 0}"]}),n})();function N7(n,t){1&n&&(y(0,"h2"),E(1,"Add an Image Command"),b())}function B7(n,t){if(1&n&&(y(0,"h2"),E(1,"Edit image command "),y(2,"i"),E(3),b()()),2&n){const e=q();S(3),Ut(e.command.name)}}function V7(n,t){if(1&n){const e=Bt();y(0,"app-image",11),ce("created",function(r){return Je(e),st(q().onNewImageCreated(r))}),b()}}function H7(n,t){if(1&n){const e=Bt();y(0,"button",12),ce("click",function(){return Je(e),st(q().create())}),E(1,"Create"),b()}2&n&&P("disabled",q().form.invalid)}function z7(n,t){if(1&n){const e=Bt();y(0,"button",13),ce("click",function(){return Je(e),st(q().save())}),E(1,"Save"),b()}2&n&&P("disabled",q().form.invalid)}let $7=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Ze,this.imageList=[],this.showNewImage=!1,this.imageToCreate=null,this.form=new is({name:new Ct("",[Sn.required,Sn.pattern(Mb)]),component:new Ct("",[Sn.required])}),this.state.state.subscribe(function(){var a=(0,xr.Z)(function*(c){const d=c?.images;null!=d&&(o.imageList=d.map(h=>h.name))});return function(c){return a.apply(this,arguments)}}())}create(){this.telemetry.track("[ui] create image command");const e=()=>{this.devstate.addApplyCommand(this.form.value.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};null!=this.imageToCreate&&this.imageToCreate?.name==this.form.controls.component.value?this.devstate.addImage(this.imageToCreate).subscribe({next:()=>{e()},error:r=>{alert(r.error.message)}}):e()}cancel(){this.canceled.emit()}onCreateNewImage(e){this.showNewImage=e}onNewImageCreated(e){this.imageList.push(e.name),this.form.controls.component.setValue(e.name),this.showNewImage=!1,this.imageToCreate=e}ngOnChanges(e){if(!e.command)return;const i=e.command.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.patchValue(i.image),this.form.get("name")?.disable())}save(){this.telemetry.track("[ui] update image command");const e=()=>{null!=this.command&&this.devstate.updateApplyCommand(this.command.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};null!=this.imageToCreate&&this.imageToCreate?.name==this.form.controls.component.value?this.devstate.addImage(this.imageToCreate).subscribe({next:r=>{this.state.changeDevfileYaml(r),e()},error:r=>{alert(r.error.message)}}):e()}}return n.\u0275fac=function(e){return new(e||n)(D(os),D(Ks),D(Ta))},n.\u0275cmp=I({type:n,selectors:[["app-command-image"]],inputs:{command:"command"},outputs:{canceled:"canceled"},features:[Ei],decls:20,vars:7,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-image-name","matInput","","formControlName","name"],["formControlName","component","label","Image",3,"containers","createNew"],[3,"created",4,"ngIf"],["data-cy","command-image-create","mat-flat-button","","color","primary","matTooltip","create new Image Command",3,"disabled","click",4,"ngIf"],["data-cy","command-image-save","mat-flat-button","","color","primary","matTooltip","save Image Command",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click"],[3,"created"],["data-cy","command-image-create","mat-flat-button","","color","primary","matTooltip","create new Image Command",3,"disabled","click"],["data-cy","command-image-save","mat-flat-button","","color","primary","matTooltip","save Image Command",3,"disabled","click"]],template:function(e,i){1&e&&(y(0,"div",0),Y(1,N7,2,0,"h2",1),Y(2,B7,4,1,"h2",1),y(3,"div",2),E(4,"An Image command builds a container image and pushes it to a container registry."),b(),y(5,"form",3)(6,"mat-form-field",4)(7,"mat-label")(8,"span"),E(9,"Name"),b()(),y(10,"mat-error"),E(11,"Lowercase words separated by dashes. Ex: my-command"),b(),Pe(12,"input",5),b(),y(13,"div")(14,"app-select-container",6),ce("createNew",function(o){return i.onCreateNewImage(o)}),b()()(),Y(15,V7,1,0,"app-image",7),Y(16,H7,2,1,"button",8),Y(17,z7,2,1,"button",9),y(18,"button",10),ce("click",function(){return i.cancel()}),E(19,"Cancel"),b()()),2&e&&(S(1),P("ngIf",!i.command),S(1),P("ngIf",i.command),S(3),P("formGroup",i.form),S(9),P("containers",i.imageList),S(1),P("ngIf",i.showNewImage),S(1),P("ngIf",!i.command),S(1),P("ngIf",i.command))},dependencies:[yi,Tc,co,Qr,Ws,Jr,ws,Zi,lo,jr,sl,Ts,cl,Rx,EA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function j7(n,t){if(1&n&&(y(0,"div",2),E(1),b()),2&n){const e=q();S(1),bi("No ",e.kind," commands yet. You can create a command then drag&drop it here")}}function U7(n,t){1&n&&(y(0,"div",2),E(1,"No generic commands yet. New commands will appear here"),b())}function W7(n,t){if(1&n){const e=Bt();y(0,"mat-checkbox",11),ce("change",function(r){Je(e);const o=q(2).$implicit;return st(q().toggleDefault(r,o.name,o.group))}),E(1),b()}if(2&n){const e=q(2).$implicit,i=q();P("checked",e._default),S(1),bi("Default ",i.kind," command")}}function G7(n,t){1&n&&(y(0,"mat-card-subtitle"),E(1,"Exec Command"),b())}function Y7(n,t){1&n&&(y(0,"mat-card-subtitle"),E(1,"Apply Command"),b())}function Z7(n,t){1&n&&(y(0,"mat-card-subtitle"),E(1,"Image Command"),b())}function q7(n,t){1&n&&(y(0,"mat-card-subtitle"),E(1,"Composite Command"),b())}function K7(n,t){1&n&&(y(0,"span"),E(1,"Yes"),b())}function X7(n,t){1&n&&(y(0,"span"),E(1,"No"),b())}function Q7(n,t){if(1&n&&(Pr(0),y(1,"table",12)(2,"tr")(3,"td"),E(4,"Is Hot Reload Capable:"),b(),y(5,"td"),Y(6,K7,2,0,"span",8),Y(7,X7,2,0,"span",8),b()(),y(8,"tr")(9,"td"),E(10,"Command Line:"),b(),y(11,"td")(12,"code"),E(13),b()()(),y(14,"tr")(15,"td"),E(16,"Working Directory:"),b(),y(17,"td")(18,"code"),E(19),b()()(),y(20,"tr")(21,"td"),E(22,"Container:"),b(),y(23,"td")(24,"mat-chip",13)(25,"mat-icon",14),E(26,"width_normal"),b(),E(27),b()()()(),Lr()),2&n){const e=q(2).$implicit;S(6),P("ngIf",null==e.exec?null:e.exec.hotReloadCapable),S(1),P("ngIf",!(null!=e.exec&&e.exec.hotReloadCapable)),S(6),Ut(null==e.exec?null:e.exec.commandLine),S(6),Ut(null==e.exec?null:e.exec.workingDir),S(8),bi(" ",null==e.exec?null:e.exec.component," ")}}function J7(n,t){if(1&n&&(Pr(0),y(1,"table",12)(2,"tr")(3,"td"),E(4,"Cluster resource:"),b(),y(5,"td")(6,"mat-chip",13)(7,"mat-icon",14),E(8,"description"),b(),E(9),b()()()(),Lr()),2&n){const e=q(2).$implicit;S(9),bi(" ",null==e.apply?null:e.apply.component," ")}}function e9(n,t){if(1&n&&(Pr(0),y(1,"table",12)(2,"tr")(3,"td"),E(4,"Image:"),b(),y(5,"td")(6,"mat-chip",13)(7,"mat-icon",14),E(8,"image"),b(),E(9),b()()()(),Lr()),2&n){const e=q(2).$implicit;S(9),bi(" ",null==e.image?null:e.image.component," ")}}function t9(n,t){1&n&&(y(0,"div"),E(1,"Commands executed in parallel"),b())}function n9(n,t){1&n&&(y(0,"div"),E(1,"Commands executed serially"),b())}function i9(n,t){if(1&n&&(y(0,"mat-chip",13)(1,"mat-icon",14),E(2,"code"),b(),E(3),b()),2&n){const e=t.$implicit;S(3),bi(" ",e," ")}}function r9(n,t){if(1&n&&(Pr(0),y(1,"table",12)(2,"tr")(3,"td"),E(4,"Scheduling:"),b(),y(5,"td"),Y(6,t9,2,0,"div",8),Y(7,n9,2,0,"div",8),b()(),y(8,"tr")(9,"td"),E(10,"Commands:"),b(),y(11,"td")(12,"mat-chip-set"),Y(13,i9,4,1,"mat-chip",15),b()()()(),Lr()),2&n){const e=q(2).$implicit;S(6),P("ngIf",null==e.composite?null:e.composite.parallel),S(1),P("ngIf",!(null!=e.composite&&e.composite.parallel)),S(5),un("mat-mdc-chip-set-stacked",null==e.composite?null:e.composite.parallel),S(1),P("ngForOf",null==e.composite?null:e.composite.commands)}}function o9(n,t){if(1&n){const e=Bt();y(0,"mat-card",4)(1,"mat-card-header",5)(2,"div",6)(3,"mat-card-title"),E(4),b(),Y(5,W7,2,2,"mat-checkbox",7),b(),y(6,"div"),Y(7,G7,2,0,"mat-card-subtitle",8),Y(8,Y7,2,0,"mat-card-subtitle",8),Y(9,Z7,2,0,"mat-card-subtitle",8),Y(10,q7,2,0,"mat-card-subtitle",8),b()(),y(11,"mat-card-content"),Y(12,Q7,28,5,"ng-container",8),Y(13,J7,10,1,"ng-container",8),Y(14,e9,10,1,"ng-container",8),Y(15,r9,14,5,"ng-container",8),b(),y(16,"mat-card-actions")(17,"button",9),ce("click",function(){Je(e);const r=q().$implicit;return st(q().delete(r.name))}),E(18,"Delete"),b(),y(19,"button",10),ce("click",function(){Je(e);const r=q().$implicit;return st(q().edit(r))}),E(20,"Edit"),b()()()}if(2&n){const e=q().$implicit;P("cdkDragDisabled",q().dragDisabled),S(4),bi(" ",e.name," "),S(1),P("ngIf",""!=e.group),S(2),P("ngIf","exec"==e.type),S(1),P("ngIf","apply"==e.type),S(1),P("ngIf","image"==e.type),S(1),P("ngIf","composite"==e.type),S(2),P("ngIf","exec"==e.type),S(1),P("ngIf","apply"==e.type),S(1),P("ngIf","image"==e.type),S(1),P("ngIf","composite"==e.type)}}function s9(n,t){if(1&n&&(Pr(0),Y(1,o9,21,11,"mat-card",3),Lr()),2&n){const e=t.$implicit,i=q();S(1),P("ngIf",e.group==i.kind)}}let a9=(()=>{class n{constructor(e,i){this.devstate=e,this.state=i,this.kind="",this.dragDisabled=!0,this.onEdit=new Ze}toggleDefault(e,i,r){e.checked?this.setDefault(i,r):this.unsetDefault(i)}setDefault(e,i){this.devstate.setDefaultCommand(e,i).subscribe({next:o=>{this.state.changeDevfileYaml(o)},error:o=>{alert(o.error.message)}})}unsetDefault(e){this.devstate.unsetDefaultCommand(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}getCommandsByKind(e,i){return e?.filter(r=>r.group==i)}delete(e){confirm('You will delete the command "'+e+'". Continue?')&&this.devstate.deleteCommand(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}edit(e){this.onEdit.next(e)}}return n.\u0275fac=function(e){return new(e||n)(D(os),D(Ks))},n.\u0275cmp=I({type:n,selectors:[["app-commands-list"]],inputs:{commands:"commands",kind:"kind",dragDisabled:"dragDisabled"},outputs:{onEdit:"onEdit"},decls:3,vars:3,consts:[["class","nothing-here",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"nothing-here"],["data-cy","command-info","cdkDrag","",3,"cdkDragDisabled",4,"ngIf"],["data-cy","command-info","cdkDrag","",3,"cdkDragDisabled"],[1,"with-right-content","colored-title"],[1,"space-between"],[3,"checked","change",4,"ngIf"],[4,"ngIf"],["mat-button","","color","warn",3,"click"],["data-cy","command-edit","mat-button","",3,"click"],[3,"checked","change"],[1,"aligned"],["disableRipple",""],["matChipAvatar","",1,"material-icons-outlined"],["disableRipple","",4,"ngFor","ngForOf"]],template:function(e,i){if(1&e&&(Y(0,j7,2,1,"div",0),Y(1,U7,2,0,"div",0),Y(2,s9,2,1,"ng-container",1)),2&e){let r,o;P("ngIf",!(null!=(r=i.getCommandsByKind(i.commands,i.kind))&&r.length)&&""!=i.kind),S(1),P("ngIf",!(null!=(o=i.getCommandsByKind(i.commands,i.kind))&&o.length)&&""==i.kind),S(1),P("ngForOf",i.commands)}},dependencies:[xs,yi,HS,Zi,Eh,Ah,Sh,Fh,Ih,kh,al,id,Ex,gb,Zs],styles:["mat-card-header.with-right-content[_ngcontent-%COMP%]{display:block}.space-between[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.command[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;background-color:#eee;padding:4px;margin:4px}.parallel-command[_ngcontent-%COMP%]{margin:8px}.serial-commands[_ngcontent-%COMP%]{margin:4px}div.nothing-here[_ngcontent-%COMP%]{margin:0 4px 16px;color:#00000054}"]}),n})();function c9(n,t){if(1&n){const e=Bt();y(0,"app-command-exec",26),ce("canceled",function(){return Je(e),st(q().undisplayExecForm())}),b()}2&n&&P("command",q().editingCommand)}function l9(n,t){if(1&n){const e=Bt();y(0,"app-command-apply",26),ce("canceled",function(){return Je(e),st(q().undisplayApplyForm())}),b()}2&n&&P("command",q().editingCommand)}function d9(n,t){if(1&n){const e=Bt();y(0,"app-command-image",26),ce("canceled",function(){return Je(e),st(q().undisplayImageForm())}),b()}2&n&&P("command",q().editingCommand)}function u9(n,t){if(1&n){const e=Bt();y(0,"app-command-composite",26),ce("canceled",function(){return Je(e),st(q().undisplayCompositeForm())}),b()}2&n&&P("command",q().editingCommand)}function h9(n,t){if(1&n&&(Pr(0),y(1,"button",27)(2,"mat-icon",28),E(3,"add"),b()(),Lr()),2&n){q();const e=Jo(48);S(1),P("matMenuTriggerFor",e)}}let m9=(()=>{class n{constructor(e,i,r){this.state=e,this.devstate=i,this.telemetry=r,this.forceDisplayExecForm=!1,this.forceDisplayApplyForm=!1,this.forceDisplayImageForm=!1,this.forceDisplayCompositeForm=!1,this.commands=[],this.enableDragAndDrop=this.state.getDragAndDropEnabled()}ngOnInit(){var e=this;this.state.state.subscribe(function(){var i=(0,xr.Z)(function*(r){e.commands=r?.commands,null!=e.commands&&(e.forceDisplayExecForm=!1,e.forceDisplayApplyForm=!1,e.forceDisplayImageForm=!1,e.forceDisplayCompositeForm=!1)});return function(r){return i.apply(this,arguments)}}())}displayAddExecForm(){this.telemetry.track("[ui] start create exec command"),this.editingCommand=void 0,this.displayExecForm()}displayExecForm(){this.forceDisplayExecForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}displayAddApplyForm(){this.telemetry.track("[ui] start create apply command"),this.editingCommand=void 0,this.displayApplyForm()}displayApplyForm(){this.forceDisplayApplyForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}displayAddImageForm(){this.telemetry.track("[ui] start create image command"),this.editingCommand=void 0,this.displayImageForm()}displayImageForm(){this.forceDisplayImageForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}displayAddCompositeForm(){this.telemetry.track("[ui] start create composite command"),this.editingCommand=void 0,this.displayCompositeForm()}displayCompositeForm(){this.forceDisplayCompositeForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayExecForm(){this.forceDisplayExecForm=!1}undisplayApplyForm(){this.forceDisplayApplyForm=!1}undisplayImageForm(){this.forceDisplayImageForm=!1}undisplayCompositeForm(){this.forceDisplayCompositeForm=!1}drop(e){this.moveCommand(e.previousContainer.data,e.container.data,e.previousIndex,e.currentIndex)}moveCommand(e,i,r,o){this.devstate.moveCommand(e,i,r,o).subscribe({next:c=>{this.state.changeDevfileYaml(c)},error:c=>{alert(c.error.message)}})}enableDragAndDropChange(){this.state.saveDragAndDropEnabled(this.enableDragAndDrop)}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}edit(e){switch(this.editingCommand=e,this.undisplayExecForm(),this.undisplayApplyForm(),this.undisplayImageForm(),this.undisplayCompositeForm(),e.type){case"exec":this.displayExecForm();break;case"apply":this.displayApplyForm();break;case"image":this.displayImageForm();break;case"composite":this.displayCompositeForm()}}}return n.\u0275fac=function(e){return new(e||n)(D(Ks),D(os),D(Ta))},n.\u0275cmp=I({type:n,selectors:[["app-commands"]],decls:67,vars:18,consts:[[1,"main"],[1,"align-right"],[3,"ngModel","ngModelChange"],["cdkDropListGroup",""],["cdkDropList","","cdkDropListData","build",3,"cdkDropListDropped"],[1,"description"],["kind","build",3,"dragDisabled","commands","onEdit"],["cdkDropList","","cdkDropListData","run",3,"cdkDropListDropped"],["kind","run",3,"dragDisabled","commands","onEdit"],["cdkDropList","","cdkDropListData","test",3,"cdkDropListDropped"],["kind","test",3,"dragDisabled","commands","onEdit"],["cdkDropList","","cdkDropListData","debug",3,"cdkDropListDropped"],["kind","debug",3,"dragDisabled","commands","onEdit"],["cdkDropList","","cdkDropListData","deploy",3,"cdkDropListDropped"],["kind","deploy",3,"dragDisabled","commands","onEdit"],["cdkDropList","","cdkDropListData","",3,"cdkDropListDropped"],["kind","",3,"dragDisabled","commands","onEdit"],[3,"command","canceled",4,"ngIf"],[4,"ngIf"],["yPosition","above","xPosition","before"],["menu","matMenu"],["data-cy","new-command-exec","mat-menu-item","",3,"click"],[1,"tab-icon","material-icons-outlined"],["data-cy","new-command-image","mat-menu-item","",3,"click"],["data-cy","new-command-apply","mat-menu-item","",3,"click"],["data-cy","new-command-composite","mat-menu-item","",3,"click"],[3,"command","canceled"],["data-cy","add","mat-fab","","color","primary",1,"fab",3,"matMenuTriggerFor"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0)(1,"div",1)(2,"mat-checkbox",2),ce("ngModelChange",function(o){return i.enableDragAndDrop=o})("ngModelChange",function(){return i.enableDragAndDropChange()}),E(3,"Enable Drag and Drop"),b()(),y(4,"div",3)(5,"div",4),ce("cdkDropListDropped",function(o){return i.drop(o)}),y(6,"h2"),E(7,"Build Commands"),b(),y(8,"div",5),E(9,"When using odo, a Build command is the first command executed during the inner loop. The command is expected to terminate after the build is completed."),b(),y(10,"app-commands-list",6),ce("onEdit",function(o){return i.edit(o)}),b()(),y(11,"div",7),ce("cdkDropListDropped",function(o){return i.drop(o)}),y(12,"h2"),E(13,"Run Commands"),b(),y(14,"div",5),E(15,"When using odo, a Run command is executed during the inner loop after the Build command terminates. The command is expected to not terminate."),b(),y(16,"app-commands-list",8),ce("onEdit",function(o){return i.edit(o)}),b()(),y(17,"div",9),ce("cdkDropListDropped",function(o){return i.drop(o)}),y(18,"h2"),E(19,"Test Commands"),b(),y(20,"app-commands-list",10),ce("onEdit",function(o){return i.edit(o)}),b()(),y(21,"div",11),ce("cdkDropListDropped",function(o){return i.drop(o)}),y(22,"h2"),E(23,"Debug Commands"),b(),y(24,"div",5),E(25,"When using odo, a Debug command is executed during the inner loop after the Build command terminates. The command is expected to not terminate."),b(),y(26,"app-commands-list",12),ce("onEdit",function(o){return i.edit(o)}),b()(),y(27,"div",13),ce("cdkDropListDropped",function(o){return i.drop(o)}),y(28,"h2"),E(29,"Deploy Commands"),b(),y(30,"div",5),E(31,"When using odo, a Deploy command is executed with "),y(32,"code"),E(33,"odo deploy"),b(),E(34,"."),b(),y(35,"app-commands-list",14),ce("onEdit",function(o){return i.edit(o)}),b()(),y(36,"div",15),ce("cdkDropListDropped",function(o){return i.drop(o)}),y(37,"h2"),E(38,"Generic Commands"),b(),y(39,"div",5),E(40,"Generic can be executed manually, or be part of composite commands and events."),b(),y(41,"app-commands-list",16),ce("onEdit",function(o){return i.edit(o)}),b()()(),Y(42,c9,1,1,"app-command-exec",17),Y(43,l9,1,1,"app-command-apply",17),Y(44,d9,1,1,"app-command-image",17),Y(45,u9,1,1,"app-command-composite",17),b(),Y(46,h9,4,1,"ng-container",18),y(47,"mat-menu",19,20)(49,"button",21),ce("click",function(){return i.displayAddExecForm()}),y(50,"mat-icon",22),E(51,"width_normal"),b(),y(52,"span"),E(53,"Exec command"),b()(),y(54,"button",23),ce("click",function(){return i.displayAddImageForm()}),y(55,"mat-icon",22),E(56,"image"),b(),y(57,"span"),E(58,"Image command"),b()(),y(59,"button",24),ce("click",function(){return i.displayAddApplyForm()}),y(60,"mat-icon",22),E(61,"description"),b(),y(62,"span"),E(63,"Apply command"),b()(),y(64,"button",25),ce("click",function(){return i.displayAddCompositeForm()}),y(65,"span"),E(66,"Composite command"),b()()()),2&e&&(S(2),P("ngModel",i.enableDragAndDrop),S(8),P("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),S(6),P("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),S(4),P("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),S(6),P("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),S(9),P("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),S(6),P("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),S(1),P("ngIf",i.forceDisplayExecForm),S(1),P("ngIf",i.forceDisplayApplyForm),S(1),P("ngIf",i.forceDisplayImageForm),S(1),P("ngIf",i.forceDisplayCompositeForm),S(1),P("ngIf",!(i.forceDisplayExecForm||i.forceDisplayApplyForm||i.forceDisplayImageForm||i.forceDisplayCompositeForm)))},dependencies:[yi,Qr,vC,NS,RS,$f,al,Zs,Gz,yb,Kz,c7,C7,A7,$7,a9],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.command[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;background-color:#eee;padding:4px;margin:4px}.parallel-command[_ngcontent-%COMP%]{margin:8px}.serial-commands[_ngcontent-%COMP%]{margin:4px}h2[_ngcontent-%COMP%]{color:#3f51b5}div.align-right[_ngcontent-%COMP%]{text-align:right}"]}),n})();function f9(n,t){1&n&&(y(0,"td")(1,"code"),E(2,"Yes, forced"),b()())}function p9(n,t){1&n&&(y(0,"td")(1,"code"),E(2,"Yes, the resource is not referenced by any command"),b()())}function g9(n,t){1&n&&(y(0,"td")(1,"code"),E(2,"No, the resource is referenced by a command"),b()())}function _9(n,t){1&n&&(y(0,"td")(1,"code"),E(2,"No, disabled"),b()())}function b9(n,t){if(1&n&&(y(0,"div"),E(1,"URI: "),y(2,"code"),E(3),b()()),2&n){const e=q().$implicit;S(3),Ut(e.uri)}}function y9(n,t){if(1&n&&(y(0,"div")(1,"pre"),E(2),b()()),2&n){const e=q().$implicit;S(2),Ut(e.inlined)}}function v9(n,t){if(1&n){const e=Bt();y(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),E(3),b(),y(4,"mat-card-subtitle"),E(5,"Cluster Resource"),b()(),y(6,"mat-card-content")(7,"table",6)(8,"tr",7)(9,"td"),E(10,"Deploy at Startup:"),b(),Y(11,f9,3,0,"td",3),Y(12,p9,3,0,"td",3),Y(13,g9,3,0,"td",3),Y(14,_9,3,0,"td",3),b()(),Y(15,b9,4,1,"div",3),Y(16,y9,3,1,"div",3),b(),y(17,"mat-card-actions")(18,"button",8),ce("click",function(){const o=Je(e).$implicit;return st(q().delete(o.name))}),E(19,"Delete"),b(),y(20,"button",9),ce("click",function(){const o=Je(e).$implicit;return st(q().edit(o))}),E(21,"Edit"),b()()()}if(2&n){const e=t.$implicit;S(3),Ut(e.name),S(8),P("ngIf","always"==e.deployByDefault),S(1),P("ngIf","undefined"==e.deployByDefault&&e.orphan),S(1),P("ngIf","undefined"==e.deployByDefault&&!e.orphan),S(1),P("ngIf","never"==e.deployByDefault),S(1),P("ngIf",e.uri),S(1),P("ngIf",e.inlined)}}function C9(n,t){if(1&n){const e=Bt();y(0,"app-resource",10),ce("canceled",function(){return Je(e),st(q().undisplayAddForm())})("created",function(r){return Je(e),st(q().onCreated(r))})("saved",function(r){return Je(e),st(q().onSaved(r))}),b()}if(2&n){const e=q();P("cancelable",e.forceDisplayForm)("resource",e.editingResource)}}function x9(n,t){if(1&n){const e=Bt();Pr(0),y(1,"button",11),ce("click",function(){return Je(e),st(q().displayAddForm())}),y(2,"mat-icon",12),E(3,"add"),b()(),Lr()}}let w9=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayForm=!1,this.resources=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,xr.Z)(function*(o){i.resources=o?.resources,null!=e.resources&&(i.forceDisplayForm=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.editingResource=void 0,this.displayForm()}displayForm(){this.forceDisplayForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayForm=!1}delete(e){confirm('You will delete the resource "'+e+'". Continue?')&&this.devstate.deleteResource(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}edit(e){this.editingResource=e,this.displayForm()}onCreated(e){this.devstate.addResource(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}onSaved(e){this.devstate.saveResource(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(D(Ks),D(os))},n.\u0275cmp=I({type:n,selectors:[["app-resources"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","resource-info",4,"ngFor","ngForOf"],[3,"cancelable","resource","canceled","created","saved",4,"ngIf"],[4,"ngIf"],["data-cy","resource-info"],[1,"colored-title"],[1,"aligned"],["data-cy","resource-deploy-startup"],["mat-button","","color","warn",3,"click"],["data-cy","resource-edit","mat-button","",3,"click"],[3,"cancelable","resource","canceled","created","saved"],["mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0),Y(1,v9,22,7,"mat-card",1),Y(2,C9,1,2,"app-resource",2),b(),Y(3,x9,4,0,"ng-container",3)),2&e&&(S(1),P("ngForOf",i.resources),S(1),P("ngIf",i.forceDisplayForm||null==i.resources||0==i.resources.length),S(1),P("ngIf",!i.forceDisplayForm&&null!=i.resources&&i.resources.length>0))},dependencies:[xs,yi,Zi,$f,Eh,Ah,Sh,Fh,Ih,kh,Zs,TA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]}),n})();function D9(n,t){1&n&&(y(0,"td")(1,"code"),E(2,"Yes, forced"),b()())}function M9(n,t){1&n&&(y(0,"td")(1,"code"),E(2,"Yes, the image is not referenced by any command"),b()())}function T9(n,t){1&n&&(y(0,"td")(1,"code"),E(2,"No, the image is referenced by a command"),b()())}function E9(n,t){1&n&&(y(0,"td")(1,"code"),E(2,"No, disabled"),b()())}function k9(n,t){if(1&n&&(y(0,"tr")(1,"td"),E(2,"Build Args:"),b(),y(3,"td")(4,"code"),E(5),b()()()),2&n){const e=q().$implicit;S(5),Ut(e.args)}}function S9(n,t){if(1&n){const e=Bt();y(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),E(3),b(),y(4,"mat-card-subtitle"),E(5,"Image"),b()(),y(6,"mat-card-content")(7,"table",6)(8,"tr",7)(9,"td"),E(10,"Build at Startup:"),b(),Y(11,D9,3,0,"td",3),Y(12,M9,3,0,"td",3),Y(13,T9,3,0,"td",3),Y(14,E9,3,0,"td",3),b(),y(15,"tr")(16,"td"),E(17,"Image Name:"),b(),y(18,"td")(19,"code"),E(20),b()()(),y(21,"tr")(22,"td"),E(23,"Dockerfile URI:"),b(),y(24,"td")(25,"code"),E(26),b()()(),Y(27,k9,6,1,"tr",3),y(28,"tr")(29,"td"),E(30,"Build Context:"),b(),y(31,"td")(32,"code"),E(33),b()()(),y(34,"tr")(35,"td"),E(36,"Root Required:"),b(),y(37,"td")(38,"code"),E(39),b()()()()(),y(40,"mat-card-actions")(41,"button",8),ce("click",function(){const o=Je(e).$implicit;return st(q().delete(o.name))}),E(42,"Delete"),b(),y(43,"button",9),ce("click",function(){const o=Je(e).$implicit;return st(q().edit(o))}),E(44,"Edit"),b()()()}if(2&n){const e=t.$implicit;S(3),Ut(e.name),S(8),P("ngIf","always"==e.autoBuild),S(1),P("ngIf","undefined"==e.autoBuild&&e.orphan),S(1),P("ngIf","undefined"==e.autoBuild&&!e.orphan),S(1),P("ngIf","never"==e.autoBuild),S(6),Ut(e.imageName),S(6),Ut(e.uri),S(1),P("ngIf",null!=e.args&&e.args.length>0),S(6),Ut(e.buildContext),S(6),Ut(e.rootRequired?"Yes":"No")}}function I9(n,t){if(1&n){const e=Bt();y(0,"app-image",10),ce("canceled",function(){return Je(e),st(q().undisplayAddForm())})("created",function(r){return Je(e),st(q().onCreated(r))})("saved",function(r){return Je(e),st(q().onSaved(r))}),b()}if(2&n){const e=q();P("cancelable",e.forceDisplayForm)("image",e.editingImage)}}function A9(n,t){if(1&n){const e=Bt();Pr(0),y(1,"button",11),ce("click",function(){return Je(e),st(q().displayAddForm())}),y(2,"mat-icon",12),E(3,"add"),b()(),Lr()}}let F9=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayForm=!1,this.images=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,xr.Z)(function*(o){i.images=o?.images,null!=e.images&&(i.forceDisplayForm=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.editingImage=void 0,this.displayForm()}displayForm(){this.forceDisplayForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayForm=!1}delete(e){confirm('You will delete the image "'+e+'". Continue?')&&this.devstate.deleteImage(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}edit(e){this.editingImage=e,this.displayForm()}onCreated(e){this.devstate.addImage(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}onSaved(e){this.devstate.saveImage(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(D(Ks),D(os))},n.\u0275cmp=I({type:n,selectors:[["app-images"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","image-info",4,"ngFor","ngForOf"],[3,"cancelable","image","canceled","created","saved",4,"ngIf"],[4,"ngIf"],["data-cy","image-info"],[1,"colored-title"],[1,"aligned"],["data-cy","image-build-startup"],["mat-button","","color","warn",3,"click"],["data-cy","image-edit","mat-button","",3,"click"],[3,"cancelable","image","canceled","created","saved"],["mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0),Y(1,S9,45,10,"mat-card",1),Y(2,I9,1,2,"app-image",2),b(),Y(3,A9,4,0,"ng-container",3)),2&e&&(S(1),P("ngForOf",i.images),S(1),P("ngIf",i.forceDisplayForm||null==i.images||0==i.images.length),S(1),P("ngIf",!i.forceDisplayForm&&null!=i.images&&i.images.length>0))},dependencies:[xs,yi,Zi,$f,Eh,Ah,Sh,Fh,Ih,kh,Zs,EA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]}),n})();function O9(n,t){if(1&n){const e=Bt();y(0,"mat-chip-row",8),ce("removed",function(){const o=Je(e).$implicit;return st(q().remove(o))}),E(1),y(2,"button",9)(3,"mat-icon",10),E(4,"cancel"),b()()()}if(2&n){const e=t.$implicit;S(1),bi(" ",e," ")}}function R9(n,t){if(1&n&&(y(0,"mat-option",11),E(1),b()),2&n){const e=t.$implicit;P("value",e),S(1),bi(" ",e," ")}}let P9=(()=>{class n{constructor(e){this.commandInput=e,this.commands=[],this.allCommands=[],this.updated=new Ze,this.separatorKeysCodes=[13,188],this.commandCtrl=new Ct(""),this.filteredCommands=new ye}ngOnChanges(e){this.filteredCommands=this.commandCtrl.valueChanges.pipe(Hr(null),Nn(i=>i?this._filter(i):this.allCommands.slice()))}add(e){const i=(e.value||"").trim();i&&(this.commands.push(i),this.updated.emit(this.commands)),e.chipInput.clear(),this.commandCtrl.setValue(null)}remove(e){const i=this.commands.indexOf(e);i>=0&&(this.commands.splice(i,1),this.updated.emit(this.commands))}selected(e){this.commands.push(e.option.viewValue),this.updated.emit(this.commands),this.commandInput.nativeElement.value="",this.commandCtrl.setValue(null)}_filter(e){const i=e.toLowerCase();return this.allCommands.filter(r=>r.toLowerCase().includes(i))}}return n.\u0275fac=function(e){return new(e||n)(D(k))},n.\u0275cmp=I({type:n,selectors:[["app-chips-events"]],inputs:{commands:"commands",allCommands:"allCommands"},outputs:{updated:"updated"},features:[Ei],decls:12,vars:8,consts:[["appearance","fill",1,"chip-list"],["chipGrid",""],[3,"removed",4,"ngFor","ngForOf"],["data-cy","input","placeholder","New command...",3,"formControl","matChipInputFor","matAutocomplete","matChipInputSeparatorKeyCodes","matChipInputTokenEnd"],["commandInput",""],[3,"optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"removed"],["matChipRemove",""],[1,"material-icons-outlined"],[3,"value"]],template:function(e,i){if(1&e&&(y(0,"mat-form-field",0)(1,"mat-label"),E(2,"Commands"),b(),y(3,"mat-chip-grid",null,1),Y(5,O9,5,1,"mat-chip-row",2),b(),y(6,"input",3,4),ce("matChipInputTokenEnd",function(o){return i.add(o)}),b(),y(8,"mat-autocomplete",5,6),ce("optionSelected",function(o){return i.selected(o)}),Y(10,R9,2,2,"mat-option",7),Km(11,"async"),b()()),2&e){const r=Jo(4),o=Jo(9);S(5),P("ngForOf",i.commands),S(1),P("formControl",i.commandCtrl)("matChipInputFor",r)("matAutocomplete",o)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes),S(4),P("ngForOf",Xm(11,6,i.filteredCommands))}},dependencies:[xs,co,Qr,gh,q6,Bd,CI,$I,jI,VI,kx,lo,jr,Zs,x0],styles:[".chip-list[_ngcontent-%COMP%]{width:100%}"]}),n})();const rd=function(){return[]};let L9=(()=>{class n{constructor(e,i,r){this.state=e,this.devstate=i,this.telemetry=r}ngOnInit(){var e=this;this.state.state.subscribe(function(){var i=(0,xr.Z)(function*(r){e.events=r?.events,null==e.events&&(e.events={}),null==e.events.preStart&&(e.events.preStart=[]),null==e.events.preStop&&(e.events.preStop=[]),null==e.events.postStart&&(e.events.postStart=[]),null==e.events.postStop&&(e.events.postStop=[]),e.allCommands=r?.commands?.map(o=>o.name)});return function(r){return i.apply(this,arguments)}}())}onUpdate(e,i){this.telemetry.track("[ui] add "+e+" event"),this.devstate.updateEvents(e,i).subscribe({next:o=>{this.state.changeDevfileYaml(o)},error:o=>{alert(o.error.message)}})}}return n.\u0275fac=function(e){return new(e||n)(D(Ks),D(os),D(Ta))},n.\u0275cmp=I({type:n,selectors:[["app-events"]],decls:21,vars:16,consts:[[1,"main"],[1,"description"],["data-cy","prestart",3,"commands","allCommands","updated"],["data-cy","poststart",3,"commands","allCommands","updated"],["data-cy","prestop",3,"commands","allCommands","updated"],["data-cy","poststop",3,"commands","allCommands","updated"]],template:function(e,i){if(1&e&&(y(0,"div",0)(1,"h2"),E(2,"Pre-Start event"),b(),y(3,"div",1),E(4,"Pre-Start commands are executed before the inner loop is started, inside init-containers (not implemented by odo)."),b(),y(5,"app-chips-events",2),ce("updated",function(o){return i.onUpdate("preStart",o)}),b(),y(6,"h2"),E(7,"Post-Start event"),b(),y(8,"div",1),E(9,"Post-Start commands are executed at the beginning of the inner loop, inside pre-fetched containers."),b(),y(10,"app-chips-events",3),ce("updated",function(o){return i.onUpdate("postStart",o)}),b(),y(11,"h2"),E(12,"Pre-Stop event"),b(),y(13,"div",1),E(14,"Pre-Stop commands are executed at the end of the inner loop, inside pre-fetched containers."),b(),y(15,"app-chips-events",4),ce("updated",function(o){return i.onUpdate("preStop",o)}),b(),y(16,"h2"),E(17,"Post-Stop event"),b(),y(18,"div",1),E(19,"Post-Stop commands are executed after the inner loop is finished (not implemented by odo)."),b(),y(20,"app-chips-events",5),ce("updated",function(o){return i.onUpdate("postStop",o)}),b()()),2&e){let r,o,a,c,d,h,p,_;S(5),P("commands",null!==(r=null==i.events?null:i.events.preStart)&&void 0!==r?r:Za(8,rd))("allCommands",null!==(o=i.allCommands)&&void 0!==o?o:Za(9,rd)),S(5),P("commands",null!==(a=null==i.events?null:i.events.postStart)&&void 0!==a?a:Za(10,rd))("allCommands",null!==(c=i.allCommands)&&void 0!==c?c:Za(11,rd)),S(5),P("commands",null!==(d=null==i.events?null:i.events.preStop)&&void 0!==d?d:Za(12,rd))("allCommands",null!==(h=i.allCommands)&&void 0!==h?h:Za(13,rd)),S(5),P("commands",null!==(p=null==i.events?null:i.events.postStop)&&void 0!==p?p:Za(14,rd))("allCommands",null!==(_=i.allCommands)&&void 0!==_?_:Za(15,rd))}},dependencies:[P9],styles:[".main[_ngcontent-%COMP%]{padding:16px}h2[_ngcontent-%COMP%]{color:#3f51b5}"]}),n})();function N9(n,t){if(1&n&&(y(0,"tr")(1,"td"),E(2,"Size:"),b(),y(3,"td")(4,"code"),E(5),b()()()),2&n){const e=q().$implicit;S(5),Ut(e.size)}}function B9(n,t){if(1&n){const e=Bt();y(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),E(3),b(),y(4,"mat-card-subtitle"),E(5,"Volume"),b()(),y(6,"mat-card-content")(7,"table",6),Y(8,N9,6,1,"tr",3),y(9,"tr")(10,"td"),E(11,"Volume is Ephemeral:"),b(),y(12,"td")(13,"code"),E(14),b()()()()(),y(15,"mat-card-actions")(16,"button",7),ce("click",function(){const o=Je(e).$implicit;return st(q().delete(o.name))}),E(17,"Delete"),b(),y(18,"button",8),ce("click",function(){const o=Je(e).$implicit;return st(q().edit(o))}),E(19,"Edit"),b()()()}if(2&n){const e=t.$implicit;S(3),Ut(e.name),S(5),P("ngIf",e.size),S(6),Ut(e.ephemeral?"Yes":"No")}}function V9(n,t){if(1&n){const e=Bt();y(0,"app-volume",9),ce("canceled",function(){return Je(e),st(q().undisplayAddForm())})("created",function(r){return Je(e),st(q().onCreated(r))})("saved",function(r){return Je(e),st(q().onSaved(r))}),b()}if(2&n){const e=q();P("cancelable",e.forceDisplayForm)("volume",e.editingVolume)}}function H9(n,t){if(1&n){const e=Bt();Pr(0),y(1,"button",10),ce("click",function(){return Je(e),st(q().displayAddForm())}),y(2,"mat-icon",11),E(3,"add"),b()(),Lr()}}let z9=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayForm=!1,this.volumes=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,xr.Z)(function*(o){i.volumes=o?.volumes,null!=e.volumes&&(i.forceDisplayForm=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.editingVolume=void 0,this.displayForm()}displayForm(){this.forceDisplayForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayForm=!1}delete(e){confirm('You will delete the volume "'+e+'". Continue?')&&this.devstate.deleteVolume(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}edit(e){this.editingVolume=e,this.displayForm()}onCreated(e){this.devstate.addVolume(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}onSaved(e){this.devstate.saveVolume(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(D(Ks),D(os))},n.\u0275cmp=I({type:n,selectors:[["app-volumes"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","volume-info",4,"ngFor","ngForOf"],[3,"cancelable","volume","canceled","created","saved",4,"ngIf"],[4,"ngIf"],["data-cy","volume-info"],[1,"colored-title"],[1,"aligned"],["mat-button","","color","warn",3,"click"],["data-cy","volume-edit","mat-button","",3,"click"],[3,"cancelable","volume","canceled","created","saved"],["mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0),Y(1,B9,20,3,"mat-card",1),Y(2,V9,1,2,"app-volume",2),b(),Y(3,H9,4,0,"ng-container",3)),2&e&&(S(1),P("ngForOf",i.volumes),S(1),P("ngIf",i.forceDisplayForm||null==i.volumes||0==i.volumes.length),S(1),P("ngIf",!i.forceDisplayForm&&null!=i.volumes&&i.volumes.length>0))},dependencies:[xs,yi,Zi,$f,Eh,Ah,Sh,Fh,Ih,kh,Zs,DA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]}),n})();function $9(n,t){1&n&&E(0),2&n&&bi(" ",q().tabNames[2]," ")}function j9(n,t){if(1&n&&(y(0,"mat-icon",20),E(1,"code"),b(),E(2)),2&n){const e=q();S(2),bi(" ",e.tabNames[3]," ")}}function U9(n,t){if(1&n&&(y(0,"mat-icon",20),E(1,"alarm"),b(),E(2)),2&n){const e=q();S(2),bi(" ",e.tabNames[4]," ")}}function W9(n,t){if(1&n&&(y(0,"mat-icon",20),E(1,"width_normal"),b(),E(2)),2&n){const e=q();S(2),bi(" ",e.tabNames[5]," ")}}function G9(n,t){if(1&n&&(y(0,"mat-icon",20),E(1,"image"),b(),E(2)),2&n){const e=q();S(2),bi(" ",e.tabNames[6]," ")}}function Y9(n,t){if(1&n&&(y(0,"mat-icon",20),E(1,"description"),b(),E(2)),2&n){const e=q();S(2),bi(" ",e.tabNames[7]," ")}}function Z9(n,t){if(1&n&&(y(0,"mat-icon",20),E(1,"storage"),b(),E(2)),2&n){const e=q();S(2),bi(" ",e.tabNames[8]," ")}}let q9=(()=>{class n{constructor(e,i,r,o,a,c,d,h,p){this.sanitizer=e,this.matIconRegistry=i,this.wasmGo=r,this.odoApi=o,this.mermaid=a,this.state=c,this.sse=d,this.telemetry=h,this.snackbar=p,this.tabNames=["YAML","Chart","Metadata","Commands","Events","Containers","Images","Resources","Volumes"],this.mermaidContent="",this.devfileYaml="",this.snackBarRef=null,this.matIconRegistry.addSvgIcon("github",this.sanitizer.bypassSecurityTrustResourceUrl("../assets/github-24.svg"))}ngOnInit(){var e=this;const i=document.getElementById("loading");null!=i&&(i.style.visibility="hidden"),this.odoApi.getDevfile().subscribe({next:o=>{null!=o.content&&this.propagateChange(o.content,!1,!0)}}),this.state.state.subscribe(function(){var o=(0,xr.Z)(function*(a){var d;null!=a&&(e.devfileYaml=a.content,e.wasmGo.getFlowChart().subscribe({next:(d=(0,xr.Z)(function*(h){const p=yield e.mermaid.getMermaidAsSVG(h.chart);e.mermaidContent=p}),function(p){return d.apply(this,arguments)}),error:d=>{console.log(d)}}),"2.2.0"!=a.version&&e.snackbar.open("The version of the Devfile is "+a.version+".\nOnly version 2.2.0 is supported","ok"))});return function(a){return o.apply(this,arguments)}}()),this.sse.subscribeTo(["DevfileUpdated"]).subscribe(o=>{const a=JSON.parse(o.data);this.state.isUpdated(a.content)&&(null!=this.snackBarRef&&(this.snackBarRef.afterDismissed().subscribe(()=>{}),this.snackBarRef.dismiss()),this.snackBarRef=this.snackbar.openFromComponent($j,{data:{message:"The Devfile has changed on disk. Do you want to update it here?",noLabel:"Cancel",yesLabel:"Update"}}),this.snackBarRef.onAction().subscribe(()=>{null!=a.content&&this.propagateChange(a.content,!1,!0),this.snackBarRef=null}),this.snackBarRef.afterDismissed().subscribe(()=>{this.snackBarRef=null}))}),this.odoApi.telemetry().subscribe({next:o=>{if(o.enabled){if(null==o.apikey||null==o.userid)return;this.telemetry.init(o.apikey,o.userid),this.telemetry.track("[ui] start")}},error:()=>{}})}propagateChange(e,i,r){this.wasmGo.setDevfileContent(e).subscribe({next:a=>{this.state.changeDevfileYaml(a,r),i&&this.odoApi.saveDevfile(a.content).subscribe({next:()=>{},error:c=>{this.snackbar.open(c.error.message,"ok")}})},error:a=>{this.snackbar.open(a.error.message,"ok")}})}onSave(e){this.telemetry.track("[ui] save devfile to disk"),this.propagateChange(e,!0,!0)}onApply(e){this.telemetry.track("[ui] change devfile from textarea"),this.propagateChange(e,!1,!1)}clear(){confirm("You will delete the content of the Devfile. Continue?")&&(this.telemetry.track("[ui] clear devfile"),this.wasmGo.clearDevfileContent().subscribe({next:e=>{this.propagateChange(e.content,!1,!1)}}))}onSelectedTabChange(e){this.telemetry.track("[ui] change to tab "+this.tabNames[e.index])}}return n.\u0275fac=function(e){return new(e||n)(D(f_),D(Wf),D(os),D(jj),D(Qj),D(Ks),D(Jj),D(Ta),D(I$))},n.\u0275cmp=I({type:n,selectors:[["app-root"]],decls:50,vars:7,consts:[["color","primary"],[1,"spacer"],[1,"topright"],["href","https://odo.dev/docs/user-guides/advanced/using-gui/","target","_blank",1,"toplink"],["data-cy","yaml-send","matTooltip","Save Devfile to disk","mat-flat-button","","color","warn",2,"top","-8px",3,"disabled","click"],[1,"flex-container"],[1,"flex-child"],["animationDuration","0",3,"selectedTabChange"],["data-cy","tab-yaml",3,"label"],[1,"tab-content"],["appearance","outline",1,"full-width"],["data-cy","yaml-input","matInput","","id","input","rows","20",3,"value"],["input",""],["data-cy","yaml-save","matTooltip","Apply changes to other tabs","mat-flat-button","","color","primary",3,"click"],["data-cy","yaml-clear","matTooltip","Clear Devfile content","mat-flat-button","","color","normal",3,"click"],["data-cy","tab-chart",3,"label"],["id","mermaid",1,"mermaid",3,"innerHTML"],["mermaid",""],["data-cy","tab-metadata"],["mat-tab-label",""],[1,"tab-icon","material-icons-outlined"]],template:function(e,i){if(1&e){const r=Bt();y(0,"mat-toolbar",0)(1,"span"),E(2,"Devfile Builder"),b(),Pe(3,"span",1),y(4,"span",2)(5,"a",3),E(6,"Work in progress"),b()(),y(7,"button",4),ce("click",function(){Je(r);const a=Jo(20);return st(i.onSave(a.value))}),Km(8,"async"),E(9,"Save"),b()(),y(10,"main")(11,"div",5)(12,"div",6)(13,"mat-tab-group",7),ce("selectedTabChange",function(a){return i.onSelectedTabChange(a)}),y(14,"mat-tab",8)(15,"div",9)(16,"mat-form-field",10)(17,"mat-label"),E(18,"Devfile YAML"),b(),Pe(19,"textarea",11,12),b(),y(21,"button",13),ce("click",function(){Je(r);const a=Jo(20);return st(i.onApply(a.value))}),E(22,"Apply"),b(),y(23,"button",14),ce("click",function(){return i.clear()}),E(24,"Clear"),b()()(),y(25,"mat-tab",15)(26,"div",6),Pe(27,"div",16,17),b()(),y(29,"mat-tab",18),Y(30,$9,1,1,"ng-template",19),Pe(31,"app-metadata"),b(),y(32,"mat-tab"),Y(33,j9,3,1,"ng-template",19),Pe(34,"app-commands"),b(),y(35,"mat-tab"),Y(36,U9,3,1,"ng-template",19),Pe(37,"app-events"),b(),y(38,"mat-tab"),Y(39,W9,3,1,"ng-template",19),Pe(40,"app-containers"),b(),y(41,"mat-tab"),Y(42,G9,3,1,"ng-template",19),Pe(43,"app-images"),b(),y(44,"mat-tab"),Y(45,Y9,3,1,"ng-template",19),Pe(46,"app-resources"),b(),y(47,"mat-tab"),Y(48,Z9,3,1,"ng-template",19),Pe(49,"app-volumes"),b()()()()()}2&e&&(S(7),Hm("disabled",!Xm(8,5,i.state.modified)),S(7),Hm("label",i.tabNames[0]),S(5),P("value",i.devfileYaml),S(6),Hm("label",i.tabNames[1]),S(2),P("innerHTML",i.sanitizer.bypassSecurityTrustHtml(i.mermaidContent),gg))},dependencies:[Zi,lo,jr,Zs,Ts,sA,dA,fj,Cj,cl,tU,e7,m9,w9,F9,L9,z9,x0],styles:["main[_ngcontent-%COMP%]{min-height:calc(100vh - 100px)}div.mermaid[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace!important}.flex-container[_ngcontent-%COMP%]{display:flex}.flex-child[_ngcontent-%COMP%]{flex:1}.flex-child[_ngcontent-%COMP%]:first-child{margin-right:20px}#input[_ngcontent-%COMP%]{width:99%}button[_ngcontent-%COMP%]{margin-top:20px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}div.tab-content[_ngcontent-%COMP%]{padding:16px}div.error-message[_ngcontent-%COMP%]{font-size:large;margin:16px}.toplink[_ngcontent-%COMP%]{color:#fff}"]}),n})(),K9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n,bootstrap:[q9]}),n.\u0275inj=en({imports:[zT,oV,h5,u5,L5,C8,eH,TI,fH,SH,zH,fz,hb,kz,Pz,Xz,p$,tA,gj,xj,Nj,ll.forRoot({loadOnInitialization:!1})]}),n})();ZN().bootstrapModule(K9).catch(n=>console.error(n))},1764:function(on){on.exports=function(){"use strict";var L=6e4,X=36e5,me="millisecond",se="second",te="minute",re="hour",Ue="day",Ye="week",H="month",he="quarter",Q="year",ue="date",At="Invalid Date",nn=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Se=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,J={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Tt){var We=["th","st","nd","rd"],we=Tt%100;return"["+Tt+(We[(we-20)%10]||We[we]||We[0])+"]"}},Te=function(Tt,We,we){var qe=String(Tt);return!qe||qe.length>=We?Tt:""+Array(We+1-qe.length).join(we)+Tt},be={s:Te,z:function(Tt){var We=-Tt.utcOffset(),we=Math.abs(We),qe=Math.floor(we/60),He=we%60;return(We<=0?"+":"-")+Te(qe,2,"0")+":"+Te(He,2,"0")},m:function Tt(We,we){if(We.date()1)return Tt(mt[0])}else{var ye=We.name;It[ye]=We,He=ye}return!qe&&He&&(xt=He),He||!qe&&xt},Yt=function(Tt,We){if(_t(Tt))return Tt.clone();var we="object"==typeof We?We:{};return we.date=Tt,we.args=arguments,new cn(we)},lt=be;lt.l=Gt,lt.i=_t,lt.w=function(Tt,We){return Yt(Tt,{locale:We.$L,utc:We.$u,x:We.$x,$offset:We.$offset})};var cn=function(){function Tt(we){this.$L=Gt(we.locale,null,!0),this.parse(we)}var We=Tt.prototype;return We.parse=function(we){this.$d=function(qe){var He=qe.date,bt=qe.utc;if(null===He)return new Date(NaN);if(lt.u(He))return new Date;if(He instanceof Date)return new Date(He);if("string"==typeof He&&!/Z$/i.test(He)){var mt=He.match(nn);if(mt){var ye=mt[2]-1||0,Mn=(mt[7]||"0").substring(0,3);return bt?new Date(Date.UTC(mt[1],ye,mt[3]||1,mt[4]||0,mt[5]||0,mt[6]||0,Mn)):new Date(mt[1],ye,mt[3]||1,mt[4]||0,mt[5]||0,mt[6]||0,Mn)}}return new Date(He)}(we),this.$x=we.x||{},this.init()},We.init=function(){var we=this.$d;this.$y=we.getFullYear(),this.$M=we.getMonth(),this.$D=we.getDate(),this.$W=we.getDay(),this.$H=we.getHours(),this.$m=we.getMinutes(),this.$s=we.getSeconds(),this.$ms=we.getMilliseconds()},We.$utils=function(){return lt},We.isValid=function(){return this.$d.toString()!==At},We.isSame=function(we,qe){var He=Yt(we);return this.startOf(qe)<=He&&He<=this.endOf(qe)},We.isAfter=function(we,qe){return Yt(we)"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(ei,vi,Ki){var _n=[null];_n.push.apply(_n,vi);var Ao=new(Function.bind.apply(ei,_n));return Ki&&L(Ao,Ki.prototype),Ao}).apply(null,arguments)}function se(Xe){return function te(Xe){if(Array.isArray(Xe))return Ye(Xe)}(Xe)||function re(Xe){if(typeof Symbol<"u"&&null!=Xe[Symbol.iterator]||null!=Xe["@@iterator"])return Array.from(Xe)}(Xe)||function Ue(Xe,tt){if(Xe){if("string"==typeof Xe)return Ye(Xe,tt);var qt=Object.prototype.toString.call(Xe).slice(8,-1);if("Object"===qt&&Xe.constructor&&(qt=Xe.constructor.name),"Map"===qt||"Set"===qt)return Array.from(Xe);if("Arguments"===qt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(qt))return Ye(Xe,tt)}}(Xe)||function H(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ye(Xe,tt){(null==tt||tt>Xe.length)&&(tt=Xe.length);for(var qt=0,bn=new Array(tt);qt1?qt-1:0),ei=1;ei/gm),Dr=J(/\${[\w\W]*}/gm),sr=J(/^data-[\-\w.\u00B7-\uFFFF]/),ss=J(/^aria-[\-\w]+$/),ka=J(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Sa=J(/^(?:\w+script|data):/i),Io=J(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bi=J(/^html$/i),as=function(){return typeof window>"u"?null:window},Vi=function(tt,qt){if("object"!==Ae(tt)||"function"!=typeof tt.createPolicy)return null;var bn=null,ei="data-tt-policy-suffix";qt.currentScript&&qt.currentScript.hasAttribute(ei)&&(bn=qt.currentScript.getAttribute(ei));var vi="dompurify"+(bn?"#"+bn:"");try{return tt.createPolicy(vi,{createHTML:function(_n){return _n},createScriptURL:function(_n){return _n}})}catch{return console.warn("TrustedTypes policy "+vi+" could not be created."),null}};return function cs(){var Xe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:as(),tt=function(W){return cs(W)};if(tt.version="2.4.3",tt.removed=[],!Xe||!Xe.document||9!==Xe.document.nodeType)return tt.isSupported=!1,tt;var qt=Xe.document,bn=Xe.document,ei=Xe.DocumentFragment,vi=Xe.HTMLTemplateElement,Ki=Xe.Node,_n=Xe.Element,pi=Xe.NodeFilter,Ao=Xe.NamedNodeMap,Ia=void 0===Ao?Xe.NamedNodeMap||Xe.MozNamedAttrMap:Ao,ls=Xe.HTMLFormElement,Qs=Xe.DOMParser,uo=Xe.trustedTypes,Ur=_n.prototype,K=Cn(Ur,"cloneNode"),B=Cn(Ur,"nextSibling"),Ie=Cn(Ur,"childNodes"),ft=Cn(Ur,"parentNode");if("function"==typeof vi){var gi=bn.createElement("template");gi.content&&gi.content.ownerDocument&&(bn=gi.content.ownerDocument)}var wn=Vi(uo,qt),ds=wn?wn.createHTML(""):"",mo=bn.implementation,Aa=bn.createNodeIterator,Js=bn.createDocumentFragment,Ci=bn.getElementsByTagName,us=qt.importNode,Fo={};try{Fo=Mn(bn).documentMode?bn.documentMode:{}}catch{}var Wr={};tt.isSupported="function"==typeof ft&&mo&&typeof mo.createHTMLDocument<"u"&&9!==Fo;var kr,ui,Oo=Ni,Ro=So,ks=Dr,Tr=sr,Xi=ss,Fa=Sa,Po=Io,Lo=ka,Zn=null,ml=ye({},[].concat(se(mn),se(di),se(Ee),se(yt),se(Ot))),Ii=null,ic=ye({},[].concat(se(Jn),se(Nn),se(wr),se(Es))),oi=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),No=null,Bo=null,rc=!0,ea=!0,ar=!1,Qi=!1,xi=!1,Vo=!1,oc=!1,Ho=!1,Ss=!1,ta=!1,hs=!0,si=!1,Er=!0,Rn=!1,fo={},ze=null,to=ye({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Mi=null,Jt=ye({},["audio","video","img","source","image","track"]),zt=null,cr=ye({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),po="http://www.w3.org/1998/Math/MathML",ti="http://www.w3.org/2000/svg",Ai="http://www.w3.org/1999/xhtml",ve=Ai,Is=!1,Qt=null,Fn=ye({},[po,ti,Ai],cn),Oa=["application/xhtml+xml","text/html"],hi=null,Ra=bn.createElement("form"),ia=function(W){return W instanceof RegExp||W instanceof Function},lr=function(W){hi&&hi===W||((!W||"object"!==Ae(W))&&(W={}),W=Mn(W),kr=kr=-1===Oa.indexOf(W.PARSER_MEDIA_TYPE)?"text/html":W.PARSER_MEDIA_TYPE,ui="application/xhtml+xml"===kr?cn:lt,Zn="ALLOWED_TAGS"in W?ye({},W.ALLOWED_TAGS,ui):ml,Ii="ALLOWED_ATTR"in W?ye({},W.ALLOWED_ATTR,ui):ic,Qt="ALLOWED_NAMESPACES"in W?ye({},W.ALLOWED_NAMESPACES,cn):Fn,zt="ADD_URI_SAFE_ATTR"in W?ye(Mn(cr),W.ADD_URI_SAFE_ATTR,ui):cr,Mi="ADD_DATA_URI_TAGS"in W?ye(Mn(Jt),W.ADD_DATA_URI_TAGS,ui):Jt,ze="FORBID_CONTENTS"in W?ye({},W.FORBID_CONTENTS,ui):to,No="FORBID_TAGS"in W?ye({},W.FORBID_TAGS,ui):{},Bo="FORBID_ATTR"in W?ye({},W.FORBID_ATTR,ui):{},fo="USE_PROFILES"in W&&W.USE_PROFILES,rc=!1!==W.ALLOW_ARIA_ATTR,ea=!1!==W.ALLOW_DATA_ATTR,ar=W.ALLOW_UNKNOWN_PROTOCOLS||!1,Qi=W.SAFE_FOR_TEMPLATES||!1,xi=W.WHOLE_DOCUMENT||!1,Ho=W.RETURN_DOM||!1,Ss=W.RETURN_DOM_FRAGMENT||!1,ta=W.RETURN_TRUSTED_TYPE||!1,oc=W.FORCE_BODY||!1,hs=!1!==W.SANITIZE_DOM,si=W.SANITIZE_NAMED_PROPS||!1,Er=!1!==W.KEEP_CONTENT,Rn=W.IN_PLACE||!1,Lo=W.ALLOWED_URI_REGEXP||Lo,ve=W.NAMESPACE||Ai,W.CUSTOM_ELEMENT_HANDLING&&ia(W.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(oi.tagNameCheck=W.CUSTOM_ELEMENT_HANDLING.tagNameCheck),W.CUSTOM_ELEMENT_HANDLING&&ia(W.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(oi.attributeNameCheck=W.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),W.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof W.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(oi.allowCustomizedBuiltInElements=W.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qi&&(ea=!1),Ss&&(Ho=!0),fo&&(Zn=ye({},se(Ot)),Ii=[],!0===fo.html&&(ye(Zn,mn),ye(Ii,Jn)),!0===fo.svg&&(ye(Zn,di),ye(Ii,Nn),ye(Ii,Es)),!0===fo.svgFilters&&(ye(Zn,Ee),ye(Ii,Nn),ye(Ii,Es)),!0===fo.mathMl&&(ye(Zn,yt),ye(Ii,wr),ye(Ii,Es))),W.ADD_TAGS&&(Zn===ml&&(Zn=Mn(Zn)),ye(Zn,W.ADD_TAGS,ui)),W.ADD_ATTR&&(Ii===ic&&(Ii=Mn(Ii)),ye(Ii,W.ADD_ATTR,ui)),W.ADD_URI_SAFE_ATTR&&ye(zt,W.ADD_URI_SAFE_ATTR,ui),W.FORBID_CONTENTS&&(ze===to&&(ze=Mn(ze)),ye(ze,W.FORBID_CONTENTS,ui)),Er&&(Zn["#text"]=!0),xi&&ye(Zn,["html","head","body"]),Zn.table&&(ye(Zn,["tbody"]),delete No.tbody),Se&&Se(W),hi=W)},dr=ye({},["mi","mo","mn","ms","mtext"]),zo=ye({},["foreignobject","desc","title","annotation-xml"]),fl=ye({},["title","style","font","a","script"]),ra=ye({},di);ye(ra,Ee),ye(ra,qi);var Ac=ye({},yt);ye(Ac,Ke);var Gr=function(W){Yt(tt.removed,{element:W});try{W.parentNode.removeChild(W)}catch{try{W.outerHTML=ds}catch{W.remove()}}},sc=function(W,Oe){try{Yt(tt.removed,{attribute:Oe.getAttributeNode(W),from:Oe})}catch{Yt(tt.removed,{attribute:null,from:Oe})}if(Oe.removeAttribute(W),"is"===W&&!Ii[W])if(Ho||Ss)try{Gr(Oe)}catch{}else try{Oe.setAttribute(W,"")}catch{}},Fc=function(W){var Oe,it;if(oc)W=""+W;else{var Tn=Qn(W,/^[\r\n\t ]+/);it=Tn&&Tn[0]}"application/xhtml+xml"===kr&&ve===Ai&&(W=''+W+"");var Ti=wn?wn.createHTML(W):W;if(ve===Ai)try{Oe=(new Qs).parseFromString(Ti,kr)}catch{}if(!Oe||!Oe.documentElement){Oe=mo.createDocument(ve,"template",null);try{Oe.documentElement.innerHTML=Is?ds:Ti}catch{}}var $n=Oe.body||Oe.documentElement;return W&&it&&$n.insertBefore(bn.createTextNode(it),$n.childNodes[0]||null),ve===Ai?Ci.call(Oe,xi?"html":"body")[0]:xi?Oe.documentElement:$n},Ji=function(W){return Aa.call(W.ownerDocument||W,W,pi.SHOW_ELEMENT|pi.SHOW_COMMENT|pi.SHOW_TEXT,null,!1)},Yr=function(W){return"object"===Ae(Ki)?W instanceof Ki:W&&"object"===Ae(W)&&"number"==typeof W.nodeType&&"string"==typeof W.nodeName},go=function(W,Oe,it){Wr[W]&&_t(Wr[W],function(Tn){Tn.call(tt,Oe,it,hi)})},pl=function(W){var Oe;if(go("beforeSanitizeElements",W,null),function(W){return W instanceof ls&&("string"!=typeof W.nodeName||"string"!=typeof W.textContent||"function"!=typeof W.removeChild||!(W.attributes instanceof Ia)||"function"!=typeof W.removeAttribute||"function"!=typeof W.setAttribute||"string"!=typeof W.namespaceURI||"function"!=typeof W.insertBefore||"function"!=typeof W.hasChildNodes)}(W)||qe(/[\u0080-\uFFFF]/,W.nodeName))return Gr(W),!0;var it=ui(W.nodeName);if(go("uponSanitizeElement",W,{tagName:it,allowedTags:Zn}),W.hasChildNodes()&&!Yr(W.firstElementChild)&&(!Yr(W.content)||!Yr(W.content.firstElementChild))&&qe(/<[/\w]/g,W.innerHTML)&&qe(/<[/\w]/g,W.textContent)||"select"===it&&qe(/