diff --git "a/web/main.626d86e266e4a107.js" "b/web/main.626d86e266e4a107.js" deleted file mode 100644--- "a/web/main.626d86e266e4a107.js" +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkviewer=self.webpackChunkviewer||[]).push([[792],{2181:(ut,Ie,a)=>{"use strict";a.d(Ie,{DJ:()=>d,FP:()=>x,JZ:()=>c,Pq:()=>w,jc:()=>C,yY:()=>O});const c=[{path:"",redirectTo:a(4119).c.OAUTH_CLIENT_ID?"auth":"demo",pathMatch:"full"},{path:"auth",loadComponent:()=>a.e(221).then(a.bind(a,8221)).then(D=>D.LoginPageComponent)},{path:"search",loadComponent:()=>Promise.all([a.e(912),a.e(956),a.e(391),a.e(628),a.e(382)]).then(a.bind(a,5382)).then(D=>D.SearchPageComponent)},{path:"cohorts",loadComponent:()=>Promise.all([a.e(912),a.e(956),a.e(611),a.e(563),a.e(391),a.e(175)]).then(a.bind(a,9175)).then(D=>D.CohortsPageComponent)},{path:"viewer",loadComponent:()=>Promise.all([a.e(912),a.e(956),a.e(611),a.e(910),a.e(563),a.e(628),a.e(607)]).then(a.bind(a,607)).then(D=>D.ImageViewerPageComponent)},{path:"config",loadComponent:()=>a.e(111).then(a.bind(a,8111)).then(D=>D.ConfigComponent)},{path:"demo",loadComponent:()=>Promise.all([a.e(912),a.e(611),a.e(910),a.e(123)]).then(a.bind(a,123)).then(D=>D.DemoIntroComponent)}],O="/cohorts",d="/search",w="/viewer",C="/auth",x="/inspect"},4119:(ut,Ie,a)=>{"use strict";a.d(Ie,{c:()=>c});const c={VIEWER_APP_NAME:"Pathology Image Library",IMAGE_DICOM_STORE_BASE_URL:"",OAUTH_CLIENT_ID:"",OAUTH_SCOPES:"https://www.googleapis.com/auth/cloud-healthcare email",APP_BASE_SERVER_PATH:"",USE_HASH_LOCATION_STRATEGY:!1,ENABLE_SERVER_INTERPOLATION:!1,ANNOTATIONS_DICOM_STORE_BASE_URL:"",ENABLE_ANNOTATIONS:!0,ENABLE_ANNOTATION_WRITING:!0,DICOM_GUID_PREFIX:"1.3.6.1.4.1.11129.5.7.0.1",ANNOTATION_HASH_STORED_USER_EMAIL:!1,FHIR_STORE_BASE_URL:"",FHIR_STORE_SEARCH_QUERY_PARAMETERS:"''",SEARCH_UPPERCASE_ONLY:!1,ORCHESTRATOR_BASE_URL:"",ENABLE_COHORTS:!1,ID_DELIMITER:",;\\s\\t\\n\\r",ID_VALIDATOR:"\\w\\d-",IMAGE_DEID_DICOM_STORE_BASE_URL:"",FHIR_STORE_PARENT:"",ANNOTATIONS_DICOM_STORE_PARENT:"",DEFAULT_SERIES_TO_LOAD:"/studies/1.3.6.1.4.1.11129.5.7.999.186491099540.49863605.1739421115085495/series/1.3.6.1.4.1.11129.5.7.0.1.483053107310.39424756.1739422414030669",IMAGE_DICOM_STORE_BASE_URL:"/dicom",OAUTH_CLIENT_ID:"",APP_BASE_SERVER_PATH:"",USE_HASH_LOCATION_STRATEGY:!0,ANNOTATIONS_DICOM_STORE_BASE_URL:"",ENABLE_ANNOTATIONS:!0,ENABLE_ANNOTATION_WRITING:!0,ANNOTATION_HASH_STORED_USER_EMAIL:!1};c.ENABLE_ANNOTATION_WRITING=c.ENABLE_ANNOTATIONS&&c.ENABLE_ANNOTATION_WRITING},4907:(ut,Ie,a)=>{"use strict";a.d(Ie,{$K:()=>P,$q:()=>d,AH:()=>x,MV:()=>p,Oo:()=>g,SY:()=>T,VE:()=>C,Yq:()=>h,_W:()=>u,bF:()=>w,f1:()=>c,fd:()=>D,fg:()=>O,lo:()=>o,nD:()=>y});var o=function(E){return E.IMAGE_TYPE="00080008",E.SOP_CLASS_UID="00080016",E.SOP_INSTANCE_UID="00080018",E.STUDY_DATE="00080020",E.ACCESSION_NUMBER="00080050",E.MODALITY="00080060",E.PATIENT_NAME="00100010",E.PATIENT_ID="00100020",E.PATIENT_BIRTH_DATE="00100030",E.PATIENT_SEX="00100040",E.STUDY_TIME="00080030",E.STUDY_ID="00200010",E.FRAME_OF_REFERENCE_UID="00200052",E.DATE_OF_SECONDARY_CAPTURE="00181012",E.SECONDARY_CAPTURE_DEVICE_MANUFACTURER="00181016",E.SECONDARY_CAPTURE_DEVICE_MANUFACTURERS_MODEL_NAME="00181018",E.SECONDARY_CAPTURE_DEVICE_SOFTWARE_VERSIONS="00181019",E.SPECIMEN_DESCRIPTION_SEQUENCE="00400560",E.STUDY_INSTANCE_UID="0020000D",E.SERIES_INSTANCE_UID="0020000E",E.INSTANCE_NUMBER="00200013",E.OFFSET="00209228",E.NUMBER_OF_FRAMES="00280008",E.ROWS="00280010",E.COLS="00280011",E.PIXEL_SPACING="00280030",E.SPECIMEN_SHORT_DESCRIPTION="00400600",E.CONTAINER_IDENTIFIER="00400512",E.IMAGE_VOLUME_WIDTH="00480001",E.IMAGE_VOLUME_HEIGHT="00480002",E.TOTAL_PIXEL_MATRIX_COLUMNS="00480006",E.TOTAL_PIXEL_MATRIX_ROWS="00480007",E.TOTAL_PIXEL_MATRIX_ORIGIN_SEQUENCE="00480008",E.INSTANCE_CREATION_DATE="00080012",E.INSTANCE_CREATION_TIME="00080013",E.CONTENT_DATE="00080023",E.CONTENT_TIME="00080024",E.ANNOTATION_COORDINATE_TYPE="006A0001",E.ANNOTATION_GROUP_SEQUENCE="006A0002",E.ANNOTATION_GROUP_NUMBER="0040A180",E.ANNOTATION_GROUP_UID="006A0003",E.ANNOTATION_APPLIES_TO_ALL_OPTICAL_PATHS="006A000D",E.ANNOTATION_GROUP_LABEL="006A0005",E.ANNOTATION_GROUP_DESCRIPTION="006A0006",E.ANNOTATION_GROUP_GENERATION_TYPE="006A0007",E.ANNOTATION_PROPERTY_CATEGORY_CODE_SEQUENCE="006A0009",E.CODE_VALUE="00080010",E.ANNOTATION_PROPERTY_TYPE_CODE_SEQUENCE="006A000A",E.CODING_SCHEME_DESIGNATOR="00080102",E.CODING_SCHEME_VERSION="00080103",E.CONTEXT_IDENTIFIER="0008010F",E.GRAPHIC_TYPE="00700023",E.DOUBLE_POINT_COORDINATES_DATA="00660022",E.POINT_COORDINATES_DATA="00660016",E.LONG_PRIMITIVE_POINT_INDEX_LIST="00660040",E.NUMBER_OF_ANNOTATIONS="006A000C",E.OPERATOR_IDENTIFICATION_SEQUENCE="00081072",E.PERSON_IDENTIFICATION_CODE_SEQUENCE="00401101",E.LONG_CODE_VALUE="00080119",E.CODE_MEANING="00080104",E.REFERENCED_SERIES_SEQUENCE="00081115",E.REFERENCED_INSTANCE_SEQUENCE="0008114A",E.REFERENCED_SOP_CLASS_UID="00081150",E.REFERENCED_SOP_INSTANCE_UID="00081155",E.REFERENCED_IMAGE_SEQUENCE="00081140",E.LOSSY_IMAGE_COMPRESSION_RATIO="00282112",E.SAMPLES_PER_PIXEL="00280002",E.BITS_ALLOCATED="00280100",E.TRANSFER_SYNTAX_UID="00020010",E}(o||{}),c=function(E){return E.IMPLICIT_VR_LITTLE_ENDIAN="1.2.840.10008.1.2",E.EXPLICIT_VR_LITTLE_ENDIAN="1.2.840.10008.1.2.1",E}(c||{}),O=function(E){return E.VL_MICROSCOPIC_IMAGE_STORAGE="1.2.840.10008.5.1.4.1.1.77.1.2",E.VL_SLIDE_COORDINATES_MICROSCOPIC_IMAGE_STORAGE="1.2.840.10008.5.1.4.1.1.77.1.3",E.TILED_MICROSCOPE="1.2.840.10008.5.1.4.1.1.77.1.6",E.TILED_SECONDARY_CAPTURE="1.2.840.10008.5.1.4.1.1.7",E.MICROSCOPY_BULK_SIMPLE_ANNOTATIONS_STORAGE="1.2.840.10008.5.1.4.1.1.91.1",E}(O||{});function d(E){return E?.constructor===Array&&void 0!==E[0].Alphabetic}function w(E){return!("object"!=typeof E||!E)&&"number"==typeof E[0]}function C(E){return!("object"!=typeof E||!E)&&"string"==typeof E[0]}function x(E){if("object"!=typeof E||!E)return!1;const W=E[0];return"object"==typeof W&&"Alphabetic"in W}function D(E){return!("object"!=typeof E||!E||w(E)&&C(E)&&x(E))}var p=function(E){return E.THUMBNAIL="THUMBNAIL",E.LABEL="LABEL",E.OVERVIEW="OVERVIEW",E}(p||{}),g=function(E){return E.ANY="",E.SLIDE_MICROSCOPY="SM",E.ANNOTATION="ANN",E}(g||{});function y(E){if(!E?.Alphabetic)return;const[W,ne,de,ie,Z]=E.Alphabetic.split("^");let ae="";for(const Le of[ie,ne,de,W,Z])Le&&(ae+=" "+Le);return ae.trimStart()}function h(E){if(!E)return"Unknown date";const[,W,ne,de]=E.match(/(\d{4})(\d{2})(\d{2})/)??[];return W&&ne&&de?`${W}-${ne}-${de}`:"Invalid date"}function u(E,W,ne){return ne?u((E?.[W]?.Value??[])[0],ne):(E?.[W]?.Value??[""])[0]}function P(E,W){return E?.[W]?.Value??[]}function T(E,W){return{vr:E,...void 0!==W?{Value:Array.isArray(W)?W:[W]}:{}}}},5717:(ut,Ie,a)=>{"use strict";a.d(Ie,{Eb:()=>C,_l:()=>w,hs:()=>c,ow:()=>D,q5:()=>x,xI:()=>d});var o=a(4119),c=function(p){return p[p.IMAGE=0]="IMAGE",p[p.DEID=1]="DEID",p}(c||{});function O(){return{[c.IMAGE]:o.c.IMAGE_DICOM_STORE_BASE_URL,[c.DEID]:o.c.IMAGE_DEID_DICOM_STORE_BASE_URL}}const d=O();function w(){Object.assign(d,O())}function C(p){return!(!o.c.IMAGE_DEID_DICOM_STORE_BASE_URL||!p.startsWith(o.c.IMAGE_DEID_DICOM_STORE_BASE_URL))}function x(p){const g=p.split("/studies");if(g.length<1)return p;const y=g[0];for(const h of Object.values(d))if(h.endsWith(y))return`${h}/studies${g[1]?g[1]:""}`;return p}function D(p){for(const g of Object.values(d))if(p.startsWith(g))return g;throw new Error(`Invalid Dicom id prefix ${p}`)}},7161:(ut,Ie,a)=>{"use strict";function o(d){const g=d.match(/^([^?]*?)\/(?:studies|series|instances|rs)/),y=d.match(/(?:^|\/)studies\/([0-9.]+)/),h=d.match(/(?:^|\/)series\/([0-9.]+)/),u=d.match(/(?:^|\/)instances\/([0-9.]+)/),P=d.match(/\?(.*)$/),T=g?g[1]:d,E=y?y[1]:void 0,W=h?h[1]:void 0,ne=u?u[1]:void 0,de=P?P[1]:void 0,ie=de?de.split("&").reduce((ae,Le)=>{const[_e,Ce]=Le.split("=");return ae[_e]=Ce,ae},{}):void 0,Z={...E&&{studyUID:E},...W&&{seriesUID:W},...ne&&{instanceUID:ne}};return{...T&&{baseUrl:T},...Z&&{path:Z},...ie&&{queryParams:ie}}}function c(d){let w="";return d.studyUID&&(w+=`/studies/${d.studyUID}`),d.seriesUID&&(w+=`/series/${d.seriesUID}`),d.instanceUID&&(w+=`/instances/${d.instanceUID}`),w}function O(d){let w=d.baseUrl||"";if(w+=c(d.path),d.resource&&(w+=`/${d.resource}`),d.queryParams){const x=Object.entries(d.queryParams).map(([D,p])=>`${encodeURIComponent(D)}=${encodeURIComponent(p)}`).join("&");x&&(w+=`?${x}`)}return w}a.d(Ie,{LG:()=>o,hd:()=>c,rH:()=>O})},8294:(ut,Ie,a)=>{"use strict";a.d(Ie,{H:()=>o});const o={caseId:{displayText:"Case Number",dicomWebSearchToken:"AccessionNumber"},patientId:{displayText:"Patient ID",dicomWebSearchToken:"PatientID"},slideId:{displayText:"Slide ID"}}},1182:(ut,Ie,a)=>{"use strict";a.d(Ie,{PQ:()=>d,Qy:()=>o,gR:()=>w,jf:()=>O});const o={names:"",notes:"",annotatorId:"",index:0};var O=function(D){return D.DEFAULT="image/webp, image/jpeg, image/png",D.JPEG_OR_PNG="image/png, image/jpeg",D.JPEG="image/jpeg",D.WEBP="image/webp",D.PNG="image/png",D}(O||{}),d=function(D){return D.NONE="",D.NO="no",D.YES="yes",D.ADOBERGB="adobergb",D.ROMMRGB="rommrgb",D.SRGB="srgb",D}(d||{});const w=new Map([[d.NONE,"None"],[d.NO,"No"],[d.YES,"Yes"],[d.ADOBERGB,"Adobe RGB"],[d.ROMMRGB,"Reference Output Medium Metric (ROMM RGB)"],[d.SRGB,"Standard RGB"]])},7568:(ut,Ie,a)=>{"use strict";var o=a(345),c=a(1626),O=a(177),d=a(4438);let C=(()=>{class Y{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=(0,d.WQX)(d.zZn);loadingSchedulerFn=(0,d.WQX)(D,{optional:!0});_engine;constructor(De,nt,ht,jt,Nt){this.doc=De,this.delegate=nt,this.zone=ht,this.animationType=jt,this.moduleImpl=Nt}ngOnDestroy(){this._engine?.flush()}loadImpl(){const De=()=>this.moduleImpl??a.e(8).then(a.bind(a,8008)).then(ht=>ht);let nt;return nt=this.loadingSchedulerFn?this.loadingSchedulerFn(De):De(),nt.catch(ht=>{throw new d.wOt(5300,!1)}).then(({\u0275createEngine:ht,\u0275AnimationRendererFactory:jt})=>{this._engine=ht(this.animationType,this.doc);const Nt=new jt(this.delegate,this._engine,this.zone);return this.delegate=Nt,Nt})}createRenderer(De,nt){const ht=this.delegate.createRenderer(De,nt);if(0===ht.\u0275type)return ht;"boolean"==typeof ht.throwOnSyntheticProps&&(ht.throwOnSyntheticProps=!1);const jt=new x(ht);return nt?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(Nt=>{const on=Nt.createRenderer(De,nt);jt.use(on),this.scheduler??=this.injector.get(d.An2,null,{optional:!0}),this.scheduler?.notify(11)}).catch(Nt=>{jt.use(ht)}),jt}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}componentReplaced(De){this._engine?.flush(),this.delegate.componentReplaced?.(De)}static \u0275fac=function(nt){d.QTQ()};static \u0275prov=d.jDH({token:Y,factory:Y.\u0275fac})}return Y})();class x{delegate;replay=[];\u0275type=1;constructor(Re){this.delegate=Re}use(Re){if(this.delegate=Re,null!==this.replay){for(const De of this.replay)De(Re);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(Re,De){return this.delegate.createElement(Re,De)}createComment(Re){return this.delegate.createComment(Re)}createText(Re){return this.delegate.createText(Re)}get destroyNode(){return this.delegate.destroyNode}appendChild(Re,De){this.delegate.appendChild(Re,De)}insertBefore(Re,De,nt,ht){this.delegate.insertBefore(Re,De,nt,ht)}removeChild(Re,De,nt){this.delegate.removeChild(Re,De,nt)}selectRootElement(Re,De){return this.delegate.selectRootElement(Re,De)}parentNode(Re){return this.delegate.parentNode(Re)}nextSibling(Re){return this.delegate.nextSibling(Re)}setAttribute(Re,De,nt,ht){this.delegate.setAttribute(Re,De,nt,ht)}removeAttribute(Re,De,nt){this.delegate.removeAttribute(Re,De,nt)}addClass(Re,De){this.delegate.addClass(Re,De)}removeClass(Re,De){this.delegate.removeClass(Re,De)}setStyle(Re,De,nt,ht){this.delegate.setStyle(Re,De,nt,ht)}removeStyle(Re,De,nt){this.delegate.removeStyle(Re,De,nt)}setProperty(Re,De,nt){this.shouldReplay(De)&&this.replay.push(ht=>ht.setProperty(Re,De,nt)),this.delegate.setProperty(Re,De,nt)}setValue(Re,De){this.delegate.setValue(Re,De)}listen(Re,De,nt,ht){return this.shouldReplay(De)&&this.replay.push(jt=>jt.listen(Re,De,nt,ht)),this.delegate.listen(Re,De,nt,ht)}shouldReplay(Re){return null!==this.replay&&Re.startsWith("@")}}const D=new d.nKC("");var g=a(2168),y=a(2181),h=a(4119);let u=(()=>{class Y extends O.fw{prepareExternalUrl(De){return this.getBaseHref()+"/index.html#"+De}static{this.\u0275fac=(()=>{let De;return function(ht){return(De||(De=d.xGo(Y)))(ht||Y)}})()}static{this.\u0275prov=d.jDH({token:Y,factory:Y.\u0275fac})}}return Y})();const P={providers:[(0,g.lh)(y.JZ),(0,o.$x)(),function p(Y="animations"){return(0,d.ngT)("NgAsyncAnimations"),(0,d.EmA)([{provide:d._9s,useFactory:(Re,De,nt)=>new C(Re,De,nt,Y),deps:[O.qQ,o.B7,d.SKi]},{provide:d.bc$,useValue:"noop"===Y?"NoopAnimations":"BrowserAnimations"}])}(),(0,c.$R)((0,c.ZZ)()),{provide:O.kB,useValue:h.c.APP_BASE_SERVER_PATH},...h.c.USE_HASH_LOCATION_STRATEGY?[{provide:O.hb,useClass:u}]:[]]};var T=a(9417),E=a(8834),W=a(9213),ne=a(2798),de=a(4823),ie=a(2771),Z=a(6977),ae=a(8141),Le=a(5964),_e=a(3294),Ce=a(1182);let Ae=(()=>{class Y{transform(De){return Ce.gR.get(De)||Ce.gR.get(Ce.PQ.NONE)||"None"}static{this.\u0275fac=function(nt){return new(nt||Y)}}static{this.\u0275pipe=d.EJ8({name:"IccProfileTypeToLabelPipe",type:Y,pure:!0})}}return Y})();var ke=a(8472),Ue=a(6372),ve=a(9423),ye=a(2408),Se=a(3);const z=["settingsDialogTemplate"],te=()=>({});function L(Y,Re){if(1&Y&&(d.j41(0,"button",3)(1,"mat-icon",4),d.EFF(2,"list_alt"),d.k0s(),d.j41(3,"div",5),d.EFF(4,"Cohorts"),d.k0s()()),2&Y){const De=d.XpG();d.Y8G("routerLink",De.defaultCohortUrl)("queryParams",De.activatedRoute.snapshot.queryParams.cohortName===De.lastCohortUrlQueryParams.cohortName&&De.router.url.startsWith(De.defaultCohortUrl)?d.lJ4(3,te):De.lastCohortUrlQueryParams),d.R7$(),d.BMQ("data-selected",De.router.url.startsWith(De.defaultCohortUrl))}}function q(Y,Re){if(1&Y&&(d.j41(0,"mat-option",23),d.EFF(1),d.nI1(2,"IccProfileTypeToLabelPipe"),d.k0s()),2&Y){const De=Re.$implicit;d.Y8G("value",De),d.R7$(),d.SpI(" ",d.bMT(2,2,De)," ")}}function J(Y,Re){if(1&Y){const De=d.RV6();d.j41(0,"div",12)(1,"button",13),d.bIt("click",function(){const ht=d.eBV(De).dialogRef;return d.Njj(ht.close())}),d.j41(2,"mat-icon"),d.EFF(3,"close"),d.k0s()(),d.j41(4,"div",14)(5,"div",15),d.EFF(6,"Settings"),d.k0s(),d.j41(7,"div",16)(8,"div",17)(9,"div",18)(10,"div",19)(11,"button",20),d.bIt("click",function(){d.eBV(De);const ht=d.XpG();return d.Njj(ht.toggleDebugMode())}),d.j41(12,"mat-icon"),d.EFF(13),d.k0s()(),d.EFF(14," Display the tile coordinates (z, x, y). "),d.k0s(),d.j41(15,"div",19)(16,"mat-form-field")(17,"mat-label"),d.EFF(18," Select color space "),d.k0s(),d.j41(19,"mat-select",21),d.mxI("ngModelChange",function(ht){d.eBV(De);const jt=d.XpG();return d.DH7(jt.iccProfile,ht)||(jt.iccProfile=ht),d.Njj(ht)}),d.bIt("selectionChange",function(){d.eBV(De);const ht=d.XpG();return d.Njj(ht.selectIccProfile())}),d.DNE(20,q,3,4,"mat-option",22),d.k0s()()()()()()()()}if(2&Y){const De=d.XpG();d.R7$(13),d.SpI(" ",De.showXYZCoordinates?"check_box":"check_box_outline_blank"," "),d.R7$(6),d.R50("ngModel",De.iccProfile),d.R7$(),d.Y8G("ngForOf",De.iccProfileType)}}let X=(()=>{class Y{constructor(De,nt,ht,jt,Nt){this.authService=De,this.activatedRoute=nt,this.imageViewerPageStore=ht,this.dialogService=jt,this.router=Nt,this.destroyed$=new ie.m(1),this.iccProfile=Ce.PQ.NONE,this.showXYZCoordinates=!1,this.iccProfileType=[Ce.PQ.NO,Ce.PQ.ADOBERGB,Ce.PQ.ROMMRGB,Ce.PQ.SRGB],this.isSlideSelected=!1,this.lastCohortUrlQueryParams={},this.lastSearchUrlQueryParams={},this.lastViewerUrlQueryParams={},this.defaultCohortUrl=y.yY,this.defaultSearchUrl=y.DJ,this.defaultViewerUrl=y.Pq,this.defaultAuthUrl=y.jc,this.defaultInspectUrl=y.FP,this.activatedRouteParams={},this.cohortsEnabled=h.c.ENABLE_COHORTS,this.annotationsEnabled=h.c.ENABLE_ANNOTATIONS}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}ngOnInit(){this.setupRoutes(),this.imageViewerPageStore.iccProfile$.pipe((0,Z.Q)(this.destroyed$),(0,ae.M)(De=>{this.iccProfile=De})).subscribe(),this.imageViewerPageStore.showXYZCoordinates$.pipe((0,Z.Q)(this.destroyed$),(0,ae.M)(De=>{this.showXYZCoordinates=De})).subscribe(),this.router.events.pipe((0,Le.p)(De=>De instanceof g.wF),(0,ae.M)(De=>{this.setupRoutes()})).subscribe(),this.activatedRoute.queryParams.pipe((0,_e.F)(),(0,ae.M)(De=>{this.activatedRouteParams=De})).subscribe()}setupRoutes(){const De=this.router.url;De.startsWith(y.DJ)&&(this.lastSearchUrlQueryParams=this.activatedRoute.snapshot.queryParams),De.startsWith(y.yY)&&(this.lastCohortUrlQueryParams=this.activatedRoute.snapshot.queryParams),De.startsWith(y.Pq)&&(this.lastViewerUrlQueryParams=this.activatedRoute.snapshot.queryParams)}openSettingsDialog(){this.dialogService.openComponentDialog(this.settingsDialogTemplate,{autoFocus:!1,disableClose:!1}).afterClosed().subscribe(()=>{})}toggleDebugMode(){this.imageViewerPageStore.showXYZCoordinates$.next(!this.showXYZCoordinates)}selectIccProfile(){this.imageViewerPageStore.iccProfile$.next(this.iccProfile)}logout(){this.authService.logout()}static{this.\u0275fac=function(nt){return new(nt||Y)(d.rXU(ke.u),d.rXU(g.nX),d.rXU(Ue.y),d.rXU(ve.o),d.rXU(g.Ix))}}static{this.\u0275cmp=d.VBU({type:Y,selectors:[["side-nav"]],viewQuery:function(nt,ht){if(1&nt&&d.GBs(z,7),2&nt){let jt;d.mGM(jt=d.lsd())&&(ht.settingsDialogTemplate=jt.first)}},decls:27,vars:10,consts:[["settingsDialogTemplate",""],[1,"side-nav-container"],[1,"navigation-buttons"],["mat-button","",1,"navigation-button",3,"routerLink","queryParams"],["mat-list-icon",""],["mat-line",""],["class","navigation-button","mat-button","",3,"routerLink","queryParams",4,"ngIf"],[1,"viewer-button-wrapper",3,"matTooltip"],["mat-button","",1,"navigation-button",3,"routerLink","disabled","queryParams"],[1,"settings-and-logout"],["mat-button","",1,"navigation-button",3,"click"],["disabled","","mat-button","",1,"navigation-button",3,"click"],[1,"settings"],["mat-icon-button","","cdkFocusInitial","","aria-label","Close settings",1,"quickview-dialog-close-button",3,"click"],[1,"shortcuts-settings"],[1,"setting-title"],[1,"shortcuts-settings-info"],[1,"shortcut-group"],[1,"debug-settings"],[1,"shortcut"],["mat-icon-button","","color","primary",3,"click"],["disabled","",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(nt,ht){if(1&nt){const jt=d.RV6();d.j41(0,"div",1)(1,"div",2)(2,"button",3)(3,"mat-icon",4),d.EFF(4,"search"),d.k0s(),d.j41(5,"div",5),d.EFF(6,"Search"),d.k0s()(),d.DNE(7,L,5,4,"button",6),d.j41(8,"div",7)(9,"button",8)(10,"mat-icon",4),d.EFF(11,"biotech"),d.k0s(),d.j41(12,"div",5),d.EFF(13,"Viewer"),d.k0s()()()(),d.j41(14,"div",9)(15,"button",10),d.bIt("click",function(){return d.eBV(jt),d.Njj(ht.openSettingsDialog())}),d.j41(16,"mat-icon",4),d.EFF(17,"settings"),d.k0s(),d.j41(18,"div",5),d.EFF(19,"Settings"),d.k0s()(),d.j41(20,"button",11),d.bIt("click",function(){return d.eBV(jt),d.Njj(ht.logout())}),d.j41(21,"mat-icon",4),d.EFF(22,"logout"),d.k0s(),d.j41(23,"div",5),d.EFF(24,"Logout"),d.k0s()()()(),d.DNE(25,J,21,3,"ng-template",null,0,d.C5r)}2&nt&&(d.R7$(2),d.Y8G("routerLink",ht.defaultSearchUrl)("queryParams",ht.activatedRoute.snapshot.queryParams.q===ht.lastSearchUrlQueryParams.q?d.lJ4(9,te):ht.lastSearchUrlQueryParams),d.R7$(),d.BMQ("data-selected",ht.router.url.startsWith(ht.defaultSearchUrl)),d.R7$(4),d.Y8G("ngIf",ht.cohortsEnabled),d.R7$(),d.Y8G("matTooltip",ht.lastViewerUrlQueryParams.series?"":"Please select a image to view"),d.R7$(),d.Y8G("routerLink",ht.defaultViewerUrl)("disabled",!ht.lastViewerUrlQueryParams.series)("queryParams",ht.lastViewerUrlQueryParams),d.R7$(),d.BMQ("data-selected",ht.router.url.startsWith(ht.defaultViewerUrl)))},dependencies:[Ae,g.iI,g.Wk,de.uc,de.oV,ne.Ve,ye.rl,ye.nJ,ne.VO,Se.wT,W.m_,W.An,E.Hl,E.$z,E.iY,T.YN,T.BC,T.vS,O.MD,O.Sq,O.bT],styles:[".side-nav-container[_ngcontent-%COMP%]{display:grid;font-size:12px;grid-template-rows:1fr min-content;height:96%;width:max-content;padding:1em 0;display:none}.side-nav-container[_ngcontent-%COMP%] .navigation-buttons[_ngcontent-%COMP%]{display:grid;grid-template-rows:repeat(3,min-content);grid-row-gap:2em}.side-nav-container[_ngcontent-%COMP%] .navigation-buttons[_ngcontent-%COMP%] .viewer-button-wrapper[_ngcontent-%COMP%]{display:grid}.side-nav-container[_ngcontent-%COMP%] .settings-and-logout[_ngcontent-%COMP%]{display:grid;grid-row-gap:1em}.side-nav-container[_ngcontent-%COMP%] .navigation-button[_ngcontent-%COMP%]{display:grid;justify-items:center;grid-row-gap:.3em;height:auto}.side-nav-container[_ngcontent-%COMP%] .navigation-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{border-radius:8px;width:2em;margin:0;height:1em;font-size:2em}.side-nav-container[_ngcontent-%COMP%] .navigation-button[_ngcontent-%COMP%] [data-selected=true][_ngcontent-%COMP%]{background:#d3e3fd}.settings[_ngcontent-%COMP%]{display:grid;padding:2em}.settings[_ngcontent-%COMP%] .quickview-dialog-close-button[_ngcontent-%COMP%]{position:absolute;right:.2em;top:.2em;z-index:2}.settings[_ngcontent-%COMP%] .shortcuts-settings[_ngcontent-%COMP%] .setting-title[_ngcontent-%COMP%]{font-size:2em}.settings[_ngcontent-%COMP%] .shortcuts-settings[_ngcontent-%COMP%] .shortcuts-settings-info[_ngcontent-%COMP%]{display:grid}.settings[_ngcontent-%COMP%] .shortcuts-settings[_ngcontent-%COMP%] .shortcuts-settings-info[_ngcontent-%COMP%] .shortcut-group[_ngcontent-%COMP%]{font-size:16px;margin-right:30px}.settings[_ngcontent-%COMP%] .shortcuts-settings[_ngcontent-%COMP%] .shortcuts-settings-info[_ngcontent-%COMP%] .shortcut-group[_ngcontent-%COMP%] .debug-settings[_ngcontent-%COMP%]{display:grid;grid-gap:1em}.settings[_ngcontent-%COMP%] .shortcuts-settings[_ngcontent-%COMP%] .shortcuts-settings-info[_ngcontent-%COMP%] .shortcut-group[_ngcontent-%COMP%] .shortcuts[_ngcontent-%COMP%]{display:flex;grid-gap:1em}.settings[_ngcontent-%COMP%] .shortcuts-settings[_ngcontent-%COMP%] .shortcuts-settings-info[_ngcontent-%COMP%] .shortcut-group[_ngcontent-%COMP%] .shortcut[_ngcontent-%COMP%]{align-items:center;display:grid;grid-column-gap:.2em;grid-template-columns:min-content max-content}.settings[_ngcontent-%COMP%] .shortcuts-settings[_ngcontent-%COMP%] .shortcuts-settings-info[_ngcontent-%COMP%] .shortcut-group[_ngcontent-%COMP%] kbd[_ngcontent-%COMP%]{background-color:#eee;border-radius:3px;border:1px solid #b4b4b4;box-shadow:0 1px 1px #0003,0 2px #ffffffb3 inset;color:#333;display:inline-block;font-size:.85em;font-weight:700;line-height:1;padding:2px 4px;white-space:nowrap}"]})}}return Y})();var K=a(4572),N=a(2639);function V(Y,Re){if(1&Y){const De=d.RV6();d.j41(0,"div",14)(1,"mat-icon"),d.EFF(2,"chevron_right"),d.k0s(),d.j41(3,"div",15)(4,"mat-icon"),d.EFF(5,"view_stream"),d.k0s(),d.j41(6,"span",16),d.bIt("click",function(){d.eBV(De);const ht=d.XpG(3);return d.Njj(ht.routeToCohort())}),d.EFF(7),d.k0s()()()}if(2&Y){const De=d.XpG(3);d.R7$(7),d.SpI(" ",De.cohortDisplayName," ")}}function I(Y,Re){if(1&Y){const De=d.RV6();d.j41(0,"div",17)(1,"mat-icon"),d.EFF(2,"chevron_right"),d.k0s(),d.j41(3,"div",15)(4,"mat-icon"),d.EFF(5,"person"),d.k0s(),d.j41(6,"span",18),d.bIt("click",function(){d.eBV(De);const ht=d.XpG(3);return d.Njj(ht.routeToPatient())}),d.EFF(7),d.k0s()()()}if(2&Y){const De=d.XpG(3);d.R7$(6),d.AVh("clickable-text",De.allowLinks),d.R7$(),d.SpI(" ",null==De.selectedExtraMetaData?null:De.selectedExtraMetaData.patientName," ")}}function M(Y,Re){if(1&Y){const De=d.RV6();d.j41(0,"div",19)(1,"mat-icon"),d.EFF(2,"chevron_right"),d.k0s(),d.j41(3,"div",15)(4,"mat-icon"),d.EFF(5,"ballot"),d.k0s(),d.j41(6,"span",18),d.bIt("click",function(){d.eBV(De);const ht=d.XpG(3);return d.Njj(ht.routeToCase())}),d.EFF(7),d.k0s()()()}if(2&Y){const De=d.XpG(3);d.R7$(6),d.AVh("clickable-text",De.allowLinks),d.R7$(),d.SpI(" ",null==De.selectedExtraMetaData?null:De.selectedExtraMetaData.caseId," ")}}function j(Y,Re){if(1&Y&&(d.j41(0,"div",20)(1,"mat-icon"),d.EFF(2,"chevron_right"),d.k0s(),d.j41(3,"div",15)(4,"mat-icon"),d.EFF(5,"crop_7_5"),d.k0s(),d.j41(6,"span",21),d.EFF(7),d.k0s()()()),2&Y){const De=d.XpG(3);d.R7$(7),d.SpI(" ",null==De.selectedSlideDescriptor?null:De.selectedSlideDescriptor.name," ")}}function ge(Y,Re){if(1&Y&&(d.j41(0,"div",9),d.DNE(1,V,8,1,"div",10)(2,I,8,3,"div",11)(3,M,8,3,"div",12)(4,j,8,1,"div",13),d.k0s()),2&Y){const De=d.XpG(2);d.R7$(),d.Y8G("ngIf",De.cohortDisplayName&&De.cohortName),d.R7$(),d.Y8G("ngIf",null==De.selectedExtraMetaData?null:De.selectedExtraMetaData.patientId),d.R7$(),d.Y8G("ngIf",null==De.selectedExtraMetaData?null:De.selectedExtraMetaData.caseId),d.R7$(),d.Y8G("ngIf",null==De.selectedSlideDescriptor?null:De.selectedSlideDescriptor.name)}}function Me(Y,Re){if(1&Y){const De=d.RV6();d.j41(0,"div",22)(1,"button",23),d.bIt("click",function(){d.eBV(De);const ht=d.XpG(2);return d.Njj(ht.prevCase())}),d.j41(2,"mat-icon"),d.EFF(3,"chevron_left"),d.k0s()(),d.j41(4,"div")(5,"div"),d.EFF(6," Case "),d.k0s(),d.j41(7,"div"),d.EFF(8),d.k0s()(),d.j41(9,"button",24),d.bIt("click",function(){d.eBV(De);const ht=d.XpG(2);return d.Njj(ht.nextCase())}),d.j41(10,"mat-icon"),d.EFF(11,"chevron_right"),d.k0s()()()}if(2&Y){const De=d.XpG(2);d.R7$(),d.Y8G("disabled",De.selectedCaseIndex<1),d.R7$(7),d.Lme(" ",De.selectedCaseIndex+1," / ",De.cohortService.selectedPathologyCohortCases$.getValue().length," "),d.R7$(),d.Y8G("disabled",De.selectedCaseIndex>=De.cohortService.selectedPathologyCohortCases$.getValue().length-1)}}function oe(Y,Re){if(1&Y&&(d.j41(0,"div",5),d.DNE(1,ge,5,4,"div",6),d.j41(2,"div",7),d.DNE(3,Me,12,4,"div",8),d.k0s()()),2&Y){const De=d.XpG();d.R7$(),d.Y8G("ngIf",De.cohortDisplayName&&De.cohortName||(null==De.selectedExtraMetaData?null:De.selectedExtraMetaData.patientId)||De.caseId||(null==De.selectedSlideDescriptor?null:De.selectedSlideDescriptor.name)),d.R7$(2),d.Y8G("ngIf",-1!==De.selectedCaseIndex)}}let R=(()=>{class Y{constructor(De,nt,ht,jt){this.activatedRoute=De,this.cohortService=nt,this.router=ht,this.imageViewerPageStore=jt,this.allowLinks=!0,this.selectedCaseIndex=-1,this.cohortDisplayName="",this.isViewerRoute=!1,this.selectedExtraMetaData=void 0,this.destroyed$=new ie.m(1)}ngOnInit(){this.initializeSubscriptions(),this.intializeViewerRouteData()}initializeSubscriptions(){this.imageViewerPageStore.selectedSplitViewSlideDescriptor$.pipe((0,Z.Q)(this.destroyed$),(0,ae.M)(De=>{this.selectedSlideDescriptor=De})).subscribe(),(0,K.z)([this.imageViewerPageStore.selectedSplitViewSlideDescriptor$,this.imageViewerPageStore.slideMetaDataBySlideDescriptorId$]).pipe((0,Z.Q)(this.destroyed$),(0,ae.M)(([De,nt])=>{!De||!nt.has(De.id)||(this.selectedExtraMetaData=nt.get(De.id))})).subscribe(),this.cohortService.selectedCohortInfo$.pipe((0,Z.Q)(this.destroyed$),(0,ae.M)(De=>{this.cohortName=De?.name??"",this.cohortDisplayName=De?.displayName??""})).subscribe(),this.router.events.pipe((0,Z.Q)(this.destroyed$),(0,ae.M)(De=>{De instanceof g.wF&&this.intializeViewerRouteData()})).subscribe()}intializeViewerRouteData(){this.isViewerRoute=this.router.url.startsWith("/viewer"),this.isViewerRoute&&this.cohortService.selectedPathologyCohortCases$.pipe((0,ae.M)(nt=>{})).subscribe()}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}prevCase(){if(this.selectedCaseIndex<1)return;const De=this.cohortService.selectedPathologyCohortCases$.getValue()[this.selectedCaseIndex-1];this.loadCase(De)}nextCase(){const De=this.cohortService.selectedPathologyCohortCases$.getValue();if(this.selectedCaseIndex>=De.length-1)return;const nt=this.cohortService.selectedPathologyCohortCases$.getValue()[this.selectedCaseIndex+1];this.loadCase(nt)}routeToCohort(){this.cohortName&&this.cohortService.routeToSelectedCohort()}routeToCase(){this.allowLinks&&this.selectedExtraMetaData?.caseId&&(this.cohortService.unselectCohort(),this.router.navigateByUrl("/search?q="+this.selectedExtraMetaData?.caseId+"&type=caseId"))}routeToHome(){this.cohortService.unselectCohort(),this.router.navigateByUrl("/")}routeToPatient(){this.allowLinks&&this.selectedExtraMetaData?.patientId&&(this.cohortService.unselectCohort(),this.router.navigateByUrl("/search?q="+this.selectedExtraMetaData.patientId+"&type=PatientID"))}loadCase(De){const nt={caseId:De.caseId,cohortName:this.cohortService.getSelectedCohortName()};this.router.navigate(["/viewer"],{queryParams:nt}).then(()=>{location.reload()})}goToSearchPage(){this.cohortService.unselectCohort(),this.router.navigateByUrl("/search")}static{this.\u0275fac=function(nt){return new(nt||Y)(d.rXU(g.nX),d.rXU(N.Do),d.rXU(g.Ix),d.rXU(Ue.y))}}static{this.\u0275cmp=d.VBU({type:Y,selectors:[["top-nav"]],inputs:{allowLinks:"allowLinks",caseId:"caseId",patientId:"patientId",patientName:"patientName",slideLabel:"slideLabel"},decls:6,vars:1,consts:[[1,"container"],[1,"left"],["src","favicon.ico","alt","Logo",1,"logo","logo-img",3,"click"],[1,"logo",3,"click"],["class","right",4,"ngIf"],[1,"right"],["class","breadcrumbs",4,"ngIf"],[1,"cases-and-search"],["class","cases-navigator",4,"ngIf"],[1,"breadcrumbs"],["class","crumb","matTooltip","Cohort",4,"ngIf"],["class","crumb","matTooltip","Patient name",4,"ngIf"],["class","crumb","matTooltip","Case ID",4,"ngIf"],["class","crumb","matTooltip","Slide name",4,"ngIf"],["matTooltip","Cohort",1,"crumb"],[1,"crumb-info"],["ng-disabled","!cohortName",1,"clickable-text","ellipsis",3,"click"],["matTooltip","Patient name",1,"crumb"],[1,"ellipsis",3,"click"],["matTooltip","Case ID",1,"crumb"],["matTooltip","Slide name",1,"crumb"],[1,"ellipsis"],[1,"cases-navigator"],["mat-icon-button","","aria-label","Show previous case","matTooltip","Previous case",3,"click","disabled"],["mat-icon-button","","aria-label","Show next case","matTooltip","Next case",3,"click","disabled"]],template:function(nt,ht){1&nt&&(d.j41(0,"div",0)(1,"div",1)(2,"img",2),d.bIt("click",function(){return ht.routeToHome()}),d.k0s(),d.j41(3,"span",3),d.bIt("click",function(){return ht.routeToHome()}),d.EFF(4,"Pathology Image Library"),d.k0s()(),d.DNE(5,oe,4,2,"div",4),d.k0s()),2&nt&&(d.R7$(5),d.Y8G("ngIf",ht.isViewerRoute))},dependencies:[W.m_,W.An,O.MD,O.bT],styles:['@import"https://fonts.googleapis.com/css?family=Google+Sans";@import"https://fonts.googleapis.com/css?family=Google+Sans+Text:400,500";@import"https://fonts.googleapis.com/css?family=Google+Sans+Display:400,500,700";@import"https://fonts.googleapis.com/css?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Two+Tone|Material+Icons+Round|Material+Icons+Sharp";@import"https://fonts.googleapis.com/css2?family=Google+Symbols:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200";.mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.mat-elevation-0[_ngcontent-%COMP%]{box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}.mat-elevation-1[_ngcontent-%COMP%]{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.mat-elevation-2[_ngcontent-%COMP%]{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.mat-elevation-3[_ngcontent-%COMP%]{box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f}.mat-elevation-4[_ngcontent-%COMP%]{box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-elevation-5[_ngcontent-%COMP%]{box-shadow:0 3px 5px -1px #0003,0 5px 8px #00000024,0 1px 14px #0000001f}.mat-elevation-6[_ngcontent-%COMP%]{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.mat-elevation-7[_ngcontent-%COMP%]{box-shadow:0 4px 5px -2px #0003,0 7px 10px 1px #00000024,0 2px 16px 1px #0000001f}.mat-elevation-8[_ngcontent-%COMP%]{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.mat-elevation-9[_ngcontent-%COMP%]{box-shadow:0 5px 6px -3px #0003,0 9px 12px 1px #00000024,0 3px 16px 2px #0000001f}.mat-elevation-10[_ngcontent-%COMP%]{box-shadow:0 6px 6px -3px #0003,0 10px 14px 1px #00000024,0 4px 18px 3px #0000001f}.mat-elevation-11[_ngcontent-%COMP%]{box-shadow:0 6px 7px -4px #0003,0 11px 15px 1px #00000024,0 4px 20px 3px #0000001f}.mat-elevation-12[_ngcontent-%COMP%]{box-shadow:0 7px 8px -4px #0003,0 12px 17px 2px #00000024,0 5px 22px 4px #0000001f}.mat-elevation-13[_ngcontent-%COMP%]{box-shadow:0 7px 8px -4px #0003,0 13px 19px 2px #00000024,0 5px 24px 4px #0000001f}.mat-elevation-14[_ngcontent-%COMP%]{box-shadow:0 7px 9px -4px #0003,0 14px 21px 2px #00000024,0 5px 26px 4px #0000001f}.mat-elevation-15[_ngcontent-%COMP%]{box-shadow:0 8px 9px -5px #0003,0 15px 22px 2px #00000024,0 6px 28px 5px #0000001f}.mat-elevation-16[_ngcontent-%COMP%]{box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f}.mat-elevation-17[_ngcontent-%COMP%]{box-shadow:0 8px 11px -5px #0003,0 17px 26px 2px #00000024,0 6px 32px 5px #0000001f}.mat-elevation-18[_ngcontent-%COMP%]{box-shadow:0 9px 11px -5px #0003,0 18px 28px 2px #00000024,0 7px 34px 6px #0000001f}.mat-elevation-19[_ngcontent-%COMP%]{box-shadow:0 9px 12px -6px #0003,0 19px 29px 2px #00000024,0 7px 36px 6px #0000001f}.mat-elevation-20[_ngcontent-%COMP%]{box-shadow:0 10px 13px -6px #0003,0 20px 31px 3px #00000024,0 8px 38px 7px #0000001f}.mat-elevation-21[_ngcontent-%COMP%]{box-shadow:0 10px 13px -6px #0003,0 21px 33px 3px #00000024,0 8px 40px 7px #0000001f}.mat-elevation-22[_ngcontent-%COMP%]{box-shadow:0 10px 14px -6px #0003,0 22px 35px 3px #00000024,0 8px 42px 7px #0000001f}.mat-elevation-23[_ngcontent-%COMP%]{box-shadow:0 11px 14px -7px #0003,0 23px 36px 3px #00000024,0 9px 44px 8px #0000001f}.mat-elevation-24[_ngcontent-%COMP%]{box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}html[_ngcontent-%COMP%]{--mat-ripple-color: rgba(0, 0, 0, .1)}html[_ngcontent-%COMP%]{--mat-option-selected-state-label-text-color: #2196f3;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}.mat-accent[_ngcontent-%COMP%]{--mat-option-selected-state-label-text-color: #b0bec5;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}.mat-warn[_ngcontent-%COMP%]{--mat-option-selected-state-label-text-color: #f44336;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}html[_ngcontent-%COMP%]{--mat-optgroup-label-text-color: rgba(0, 0, 0, .87)}html[_ngcontent-%COMP%]{--mat-full-pseudo-checkbox-selected-icon-color: #b0bec5;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0}html[_ngcontent-%COMP%]{--mat-minimal-pseudo-checkbox-selected-checkmark-color: #b0bec5;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}.mat-primary[_ngcontent-%COMP%]{--mat-full-pseudo-checkbox-selected-icon-color: #2196f3;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0}.mat-primary[_ngcontent-%COMP%]{--mat-minimal-pseudo-checkbox-selected-checkmark-color: #2196f3;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}.mat-accent[_ngcontent-%COMP%]{--mat-full-pseudo-checkbox-selected-icon-color: #b0bec5;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0}.mat-accent[_ngcontent-%COMP%]{--mat-minimal-pseudo-checkbox-selected-checkmark-color: #b0bec5;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}.mat-warn[_ngcontent-%COMP%]{--mat-full-pseudo-checkbox-selected-icon-color: #f44336;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0}.mat-warn[_ngcontent-%COMP%]{--mat-minimal-pseudo-checkbox-selected-checkmark-color: #f44336;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}html[_ngcontent-%COMP%]{--mat-app-background-color: #fafafa;--mat-app-text-color: rgba(0, 0, 0, .87);--mat-app-elevation-shadow-level-0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-2: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-3: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-4: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-5: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 5px 8px 0px rgba(0, 0, 0, .14), 0px 1px 14px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-6: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-7: 0px 4px 5px -2px rgba(0, 0, 0, .2), 0px 7px 10px 1px rgba(0, 0, 0, .14), 0px 2px 16px 1px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-8: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-9: 0px 5px 6px -3px rgba(0, 0, 0, .2), 0px 9px 12px 1px rgba(0, 0, 0, .14), 0px 3px 16px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-10: 0px 6px 6px -3px rgba(0, 0, 0, .2), 0px 10px 14px 1px rgba(0, 0, 0, .14), 0px 4px 18px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-11: 0px 6px 7px -4px rgba(0, 0, 0, .2), 0px 11px 15px 1px rgba(0, 0, 0, .14), 0px 4px 20px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-12: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-13: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 13px 19px 2px rgba(0, 0, 0, .14), 0px 5px 24px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-14: 0px 7px 9px -4px rgba(0, 0, 0, .2), 0px 14px 21px 2px rgba(0, 0, 0, .14), 0px 5px 26px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-15: 0px 8px 9px -5px rgba(0, 0, 0, .2), 0px 15px 22px 2px rgba(0, 0, 0, .14), 0px 6px 28px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-16: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-17: 0px 8px 11px -5px rgba(0, 0, 0, .2), 0px 17px 26px 2px rgba(0, 0, 0, .14), 0px 6px 32px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-18: 0px 9px 11px -5px rgba(0, 0, 0, .2), 0px 18px 28px 2px rgba(0, 0, 0, .14), 0px 7px 34px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-19: 0px 9px 12px -6px rgba(0, 0, 0, .2), 0px 19px 29px 2px rgba(0, 0, 0, .14), 0px 7px 36px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-20: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 20px 31px 3px rgba(0, 0, 0, .14), 0px 8px 38px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-21: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 21px 33px 3px rgba(0, 0, 0, .14), 0px 8px 40px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-22: 0px 10px 14px -6px rgba(0, 0, 0, .2), 0px 22px 35px 3px rgba(0, 0, 0, .14), 0px 8px 42px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-23: 0px 11px 14px -7px rgba(0, 0, 0, .2), 0px 23px 36px 3px rgba(0, 0, 0, .14), 0px 9px 44px 8px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-24: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mdc-elevated-card-container-shape: 4px}html[_ngcontent-%COMP%]{--mdc-outlined-card-container-shape: 4px;--mdc-outlined-card-outline-width: 1px}html[_ngcontent-%COMP%]{--mdc-elevated-card-container-color: white;--mdc-elevated-card-container-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mdc-outlined-card-container-color: white;--mdc-outlined-card-outline-color: rgba(0, 0, 0, .12);--mdc-outlined-card-container-elevation: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mat-card-subtitle-text-color: rgba(0, 0, 0, .54)}html[_ngcontent-%COMP%]{--mdc-linear-progress-active-indicator-height: 4px;--mdc-linear-progress-track-height: 4px;--mdc-linear-progress-track-shape: 0}.mat-mdc-progress-bar[_ngcontent-%COMP%]{--mdc-linear-progress-active-indicator-color: #2196f3;--mdc-linear-progress-track-color: rgba(33, 150, 243, .25)}.mat-mdc-progress-bar.mat-accent[_ngcontent-%COMP%]{--mdc-linear-progress-active-indicator-color: #b0bec5;--mdc-linear-progress-track-color: rgba(176, 190, 197, .25)}.mat-mdc-progress-bar.mat-warn[_ngcontent-%COMP%]{--mdc-linear-progress-active-indicator-color: #f44336;--mdc-linear-progress-track-color: rgba(244, 67, 54, .25)}html[_ngcontent-%COMP%]{--mdc-plain-tooltip-container-shape: 4px;--mdc-plain-tooltip-supporting-text-line-height: 16px}html[_ngcontent-%COMP%]{--mdc-plain-tooltip-container-color: #616161;--mdc-plain-tooltip-supporting-text-color: #fff}html[_ngcontent-%COMP%]{--mdc-filled-text-field-active-indicator-height: 1px;--mdc-filled-text-field-focus-active-indicator-height: 2px;--mdc-filled-text-field-container-shape: 4px}html[_ngcontent-%COMP%]{--mdc-outlined-text-field-outline-width: 1px;--mdc-outlined-text-field-focus-outline-width: 2px;--mdc-outlined-text-field-container-shape: 4px}html[_ngcontent-%COMP%]{--mdc-filled-text-field-caret-color: #2196f3;--mdc-filled-text-field-focus-active-indicator-color: #2196f3;--mdc-filled-text-field-focus-label-text-color: rgba(33, 150, 243, .87);--mdc-filled-text-field-container-color: rgb(244.8, 244.8, 244.8);--mdc-filled-text-field-disabled-container-color: rgb(249.9, 249.9, 249.9);--mdc-filled-text-field-label-text-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-hover-label-text-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-filled-text-field-input-text-color: rgba(0, 0, 0, .87);--mdc-filled-text-field-disabled-input-text-color: rgba(0, 0, 0, .38);--mdc-filled-text-field-input-text-placeholder-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-error-hover-label-text-color: #f44336;--mdc-filled-text-field-error-focus-label-text-color: #f44336;--mdc-filled-text-field-error-label-text-color: #f44336;--mdc-filled-text-field-error-caret-color: #f44336;--mdc-filled-text-field-active-indicator-color: rgba(0, 0, 0, .42);--mdc-filled-text-field-disabled-active-indicator-color: rgba(0, 0, 0, .06);--mdc-filled-text-field-hover-active-indicator-color: rgba(0, 0, 0, .87);--mdc-filled-text-field-error-active-indicator-color: #f44336;--mdc-filled-text-field-error-focus-active-indicator-color: #f44336;--mdc-filled-text-field-error-hover-active-indicator-color: #f44336}html[_ngcontent-%COMP%]{--mdc-outlined-text-field-caret-color: #2196f3;--mdc-outlined-text-field-focus-outline-color: #2196f3;--mdc-outlined-text-field-focus-label-text-color: rgba(33, 150, 243, .87);--mdc-outlined-text-field-label-text-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-hover-label-text-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-input-text-color: rgba(0, 0, 0, .87);--mdc-outlined-text-field-disabled-input-text-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-input-text-placeholder-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-error-caret-color: #f44336;--mdc-outlined-text-field-error-focus-label-text-color: #f44336;--mdc-outlined-text-field-error-label-text-color: #f44336;--mdc-outlined-text-field-error-hover-label-text-color: #f44336;--mdc-outlined-text-field-outline-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-disabled-outline-color: rgba(0, 0, 0, .06);--mdc-outlined-text-field-hover-outline-color: rgba(0, 0, 0, .87);--mdc-outlined-text-field-error-focus-outline-color: #f44336;--mdc-outlined-text-field-error-hover-outline-color: #f44336;--mdc-outlined-text-field-error-outline-color: #f44336}html[_ngcontent-%COMP%]{--mat-form-field-focus-select-arrow-color: rgba(33, 150, 243, .87);--mat-form-field-disabled-input-text-placeholder-color: rgba(0, 0, 0, .38);--mat-form-field-state-layer-color: rgba(0, 0, 0, .87);--mat-form-field-error-text-color: #f44336;--mat-form-field-select-option-text-color: inherit;--mat-form-field-select-disabled-option-text-color: GrayText;--mat-form-field-leading-icon-color: unset;--mat-form-field-disabled-leading-icon-color: unset;--mat-form-field-trailing-icon-color: unset;--mat-form-field-disabled-trailing-icon-color: unset;--mat-form-field-error-focus-trailing-icon-color: unset;--mat-form-field-error-hover-trailing-icon-color: unset;--mat-form-field-error-trailing-icon-color: unset;--mat-form-field-enabled-select-arrow-color: rgba(0, 0, 0, .54);--mat-form-field-disabled-select-arrow-color: rgba(0, 0, 0, .38);--mat-form-field-hover-state-layer-opacity: .04;--mat-form-field-focus-state-layer-opacity: .08}.mat-mdc-form-field.mat-accent[_ngcontent-%COMP%]{--mdc-filled-text-field-caret-color: #b0bec5;--mdc-filled-text-field-focus-active-indicator-color: #b0bec5;--mdc-filled-text-field-focus-label-text-color: rgba(176, 190, 197, .87)}.mat-mdc-form-field.mat-accent[_ngcontent-%COMP%]{--mdc-outlined-text-field-caret-color: #b0bec5;--mdc-outlined-text-field-focus-outline-color: #b0bec5;--mdc-outlined-text-field-focus-label-text-color: rgba(176, 190, 197, .87)}.mat-mdc-form-field.mat-accent[_ngcontent-%COMP%]{--mat-form-field-focus-select-arrow-color: rgba(176, 190, 197, .87)}.mat-mdc-form-field.mat-warn[_ngcontent-%COMP%]{--mdc-filled-text-field-caret-color: #f44336;--mdc-filled-text-field-focus-active-indicator-color: #f44336;--mdc-filled-text-field-focus-label-text-color: rgba(244, 67, 54, .87)}.mat-mdc-form-field.mat-warn[_ngcontent-%COMP%]{--mdc-outlined-text-field-caret-color: #f44336;--mdc-outlined-text-field-focus-outline-color: #f44336;--mdc-outlined-text-field-focus-label-text-color: rgba(244, 67, 54, .87)}.mat-mdc-form-field.mat-warn[_ngcontent-%COMP%]{--mat-form-field-focus-select-arrow-color: rgba(244, 67, 54, .87)}html[_ngcontent-%COMP%]{--mat-form-field-container-height: 56px;--mat-form-field-filled-label-display: block;--mat-form-field-container-vertical-padding: 16px;--mat-form-field-filled-with-label-container-padding-top: 24px;--mat-form-field-filled-with-label-container-padding-bottom: 8px}html[_ngcontent-%COMP%]{--mat-select-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(33, 150, 243, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html[_ngcontent-%COMP%] .mat-mdc-form-field.mat-accent[_ngcontent-%COMP%]{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(176, 190, 197, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html[_ngcontent-%COMP%] .mat-mdc-form-field.mat-warn[_ngcontent-%COMP%]{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(244, 67, 54, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html[_ngcontent-%COMP%]{--mat-select-arrow-transform: translateY(-8px)}html[_ngcontent-%COMP%]{--mat-autocomplete-container-shape: 4px;--mat-autocomplete-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mat-autocomplete-background-color: white}html[_ngcontent-%COMP%]{--mdc-dialog-container-shape: 4px}html[_ngcontent-%COMP%]{--mat-dialog-container-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--mat-dialog-container-max-width: 80vw;--mat-dialog-container-small-max-width: 80vw;--mat-dialog-container-min-width: 0;--mat-dialog-actions-alignment: start;--mat-dialog-actions-padding: 8px;--mat-dialog-content-padding: 20px 24px;--mat-dialog-with-actions-content-padding: 20px 24px;--mat-dialog-headline-padding: 0 24px 9px}html[_ngcontent-%COMP%]{--mdc-dialog-container-color: white;--mdc-dialog-subhead-color: rgba(0, 0, 0, .87);--mdc-dialog-supporting-text-color: rgba(0, 0, 0, .6)}.mat-mdc-standard-chip[_ngcontent-%COMP%]{--mdc-chip-container-shape-radius: 16px;--mdc-chip-with-avatar-avatar-shape-radius: 14px;--mdc-chip-with-avatar-avatar-size: 28px;--mdc-chip-with-icon-icon-size: 18px;--mdc-chip-outline-width: 0;--mdc-chip-outline-color: transparent;--mdc-chip-disabled-outline-color: transparent;--mdc-chip-focus-outline-color: transparent;--mdc-chip-hover-state-layer-opacity: .04;--mdc-chip-with-avatar-disabled-avatar-opacity: 1;--mdc-chip-flat-selected-outline-width: 0;--mdc-chip-selected-hover-state-layer-opacity: .04;--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity: 1;--mdc-chip-with-icon-disabled-icon-opacity: 1}.mat-mdc-standard-chip[_ngcontent-%COMP%]{--mat-chip-disabled-container-opacity: .4;--mat-chip-trailing-action-opacity: .54;--mat-chip-trailing-action-focus-opacity: 1;--mat-chip-trailing-action-state-layer-color: transparent;--mat-chip-selected-trailing-action-state-layer-color: transparent;--mat-chip-trailing-action-hover-state-layer-opacity: 0;--mat-chip-trailing-action-focus-state-layer-opacity: 0}.mat-mdc-standard-chip[_ngcontent-%COMP%]{--mdc-chip-disabled-label-text-color: #212121;--mdc-chip-elevated-container-color: rgb(224.4, 224.4, 224.4);--mdc-chip-elevated-selected-container-color: rgb(224.4, 224.4, 224.4);--mdc-chip-elevated-disabled-container-color: rgb(224.4, 224.4, 224.4);--mdc-chip-flat-disabled-selected-container-color: rgb(224.4, 224.4, 224.4);--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: #212121;--mdc-chip-selected-label-text-color: #212121;--mdc-chip-with-icon-icon-color: #212121;--mdc-chip-with-icon-disabled-icon-color: #212121;--mdc-chip-with-icon-selected-icon-color: #212121;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: #212121;--mdc-chip-with-trailing-icon-trailing-icon-color: #212121}.mat-mdc-standard-chip[_ngcontent-%COMP%]{--mat-chip-selected-disabled-trailing-icon-color: #212121;--mat-chip-selected-trailing-icon-color: #212121}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary[_ngcontent-%COMP%], .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary[_ngcontent-%COMP%]{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #2196f3;--mdc-chip-elevated-selected-container-color: #2196f3;--mdc-chip-elevated-disabled-container-color: #2196f3;--mdc-chip-flat-disabled-selected-container-color: #2196f3;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary[_ngcontent-%COMP%], .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary[_ngcontent-%COMP%]{--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent[_ngcontent-%COMP%], .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent[_ngcontent-%COMP%]{--mdc-chip-disabled-label-text-color: rgba(0, 0, 0, .87);--mdc-chip-elevated-container-color: #b0bec5;--mdc-chip-elevated-selected-container-color: #b0bec5;--mdc-chip-elevated-disabled-container-color: #b0bec5;--mdc-chip-flat-disabled-selected-container-color: #b0bec5;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: rgba(0, 0, 0, .87);--mdc-chip-selected-label-text-color: rgba(0, 0, 0, .87);--mdc-chip-with-icon-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-icon-disabled-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-icon-selected-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-trailing-icon-trailing-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent[_ngcontent-%COMP%], .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent[_ngcontent-%COMP%]{--mat-chip-selected-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-selected-trailing-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn[_ngcontent-%COMP%], .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn[_ngcontent-%COMP%]{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #f44336;--mdc-chip-elevated-selected-container-color: #f44336;--mdc-chip-elevated-disabled-container-color: #f44336;--mdc-chip-flat-disabled-selected-container-color: #f44336;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn[_ngcontent-%COMP%], .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn[_ngcontent-%COMP%]{--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.mat-mdc-chip.mat-mdc-standard-chip[_ngcontent-%COMP%]{--mdc-chip-container-height: 32px}html[_ngcontent-%COMP%]{--mdc-switch-disabled-selected-icon-opacity: .38;--mdc-switch-disabled-track-opacity: .12;--mdc-switch-disabled-unselected-icon-opacity: .38;--mdc-switch-handle-height: 20px;--mdc-switch-handle-shape: 10px;--mdc-switch-handle-width: 20px;--mdc-switch-selected-icon-size: 18px;--mdc-switch-track-height: 14px;--mdc-switch-track-shape: 7px;--mdc-switch-track-width: 36px;--mdc-switch-unselected-icon-size: 18px;--mdc-switch-selected-focus-state-layer-opacity: .12;--mdc-switch-selected-hover-state-layer-opacity: .04;--mdc-switch-selected-pressed-state-layer-opacity: .1;--mdc-switch-unselected-focus-state-layer-opacity: .12;--mdc-switch-unselected-hover-state-layer-opacity: .04;--mdc-switch-unselected-pressed-state-layer-opacity: .1}html[_ngcontent-%COMP%] .mat-mdc-slide-toggle[_ngcontent-%COMP%]{--mat-switch-disabled-selected-handle-opacity: .38;--mat-switch-disabled-unselected-handle-opacity: .38;--mat-switch-unselected-handle-size: 20px;--mat-switch-selected-handle-size: 20px;--mat-switch-pressed-handle-size: 20px;--mat-switch-with-icon-handle-size: 20px;--mat-switch-selected-handle-horizontal-margin: 0;--mat-switch-selected-with-icon-handle-horizontal-margin: 0;--mat-switch-selected-pressed-handle-horizontal-margin: 0;--mat-switch-unselected-handle-horizontal-margin: 0;--mat-switch-unselected-with-icon-handle-horizontal-margin: 0;--mat-switch-unselected-pressed-handle-horizontal-margin: 0;--mat-switch-visible-track-opacity: 1;--mat-switch-hidden-track-opacity: 1;--mat-switch-visible-track-transition: transform 75ms 0ms cubic-bezier(0, 0, .2, 1);--mat-switch-hidden-track-transition: transform 75ms 0ms cubic-bezier(.4, 0, .6, 1);--mat-switch-track-outline-width: 1px;--mat-switch-track-outline-color: transparent;--mat-switch-selected-track-outline-width: 1px;--mat-switch-selected-track-outline-color: transparent;--mat-switch-disabled-unselected-track-outline-width: 1px;--mat-switch-disabled-unselected-track-outline-color: transparent}html[_ngcontent-%COMP%]{--mdc-switch-selected-focus-state-layer-color: #1e88e5;--mdc-switch-selected-handle-color: #1e88e5;--mdc-switch-selected-hover-state-layer-color: #1e88e5;--mdc-switch-selected-pressed-state-layer-color: #1e88e5;--mdc-switch-selected-focus-handle-color: #0d47a1;--mdc-switch-selected-hover-handle-color: #0d47a1;--mdc-switch-selected-pressed-handle-color: #0d47a1;--mdc-switch-selected-focus-track-color: #64b5f6;--mdc-switch-selected-hover-track-color: #64b5f6;--mdc-switch-selected-pressed-track-color: #64b5f6;--mdc-switch-selected-track-color: #64b5f6;--mdc-switch-disabled-selected-handle-color: #424242;--mdc-switch-disabled-selected-icon-color: #fff;--mdc-switch-disabled-selected-track-color: #424242;--mdc-switch-disabled-unselected-handle-color: #424242;--mdc-switch-disabled-unselected-icon-color: #fff;--mdc-switch-disabled-unselected-track-color: #424242;--mdc-switch-handle-surface-color: #fff;--mdc-switch-selected-icon-color: #fff;--mdc-switch-unselected-focus-handle-color: #212121;--mdc-switch-unselected-focus-state-layer-color: #424242;--mdc-switch-unselected-focus-track-color: #e0e0e0;--mdc-switch-unselected-handle-color: #616161;--mdc-switch-unselected-hover-handle-color: #212121;--mdc-switch-unselected-hover-state-layer-color: #424242;--mdc-switch-unselected-hover-track-color: #e0e0e0;--mdc-switch-unselected-icon-color: #fff;--mdc-switch-unselected-pressed-handle-color: #212121;--mdc-switch-unselected-pressed-state-layer-color: #424242;--mdc-switch-unselected-pressed-track-color: #e0e0e0;--mdc-switch-unselected-track-color: #e0e0e0;--mdc-switch-handle-elevation-shadow: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-switch-disabled-handle-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mdc-switch-disabled-label-text-color: rgba(0, 0, 0, .38)}html[_ngcontent-%COMP%] .mat-mdc-slide-toggle[_ngcontent-%COMP%]{--mat-switch-label-text-color: rgba(0, 0, 0, .87)}html[_ngcontent-%COMP%] .mat-mdc-slide-toggle.mat-accent[_ngcontent-%COMP%]{--mdc-switch-selected-focus-state-layer-color: #546e7a;--mdc-switch-selected-handle-color: #546e7a;--mdc-switch-selected-hover-state-layer-color: #546e7a;--mdc-switch-selected-pressed-state-layer-color: #546e7a;--mdc-switch-selected-focus-handle-color: #263238;--mdc-switch-selected-hover-handle-color: #263238;--mdc-switch-selected-pressed-handle-color: #263238;--mdc-switch-selected-focus-track-color: #90a4ae;--mdc-switch-selected-hover-track-color: #90a4ae;--mdc-switch-selected-pressed-track-color: #90a4ae;--mdc-switch-selected-track-color: #90a4ae}html[_ngcontent-%COMP%] .mat-mdc-slide-toggle.mat-warn[_ngcontent-%COMP%]{--mdc-switch-selected-focus-state-layer-color: #e53935;--mdc-switch-selected-handle-color: #e53935;--mdc-switch-selected-hover-state-layer-color: #e53935;--mdc-switch-selected-pressed-state-layer-color: #e53935;--mdc-switch-selected-focus-handle-color: #b71c1c;--mdc-switch-selected-hover-handle-color: #b71c1c;--mdc-switch-selected-pressed-handle-color: #b71c1c;--mdc-switch-selected-focus-track-color: #e57373;--mdc-switch-selected-hover-track-color: #e57373;--mdc-switch-selected-pressed-track-color: #e57373;--mdc-switch-selected-track-color: #e57373}html[_ngcontent-%COMP%]{--mdc-switch-state-layer-size: 40px}html[_ngcontent-%COMP%]{--mdc-radio-disabled-selected-icon-opacity: .38;--mdc-radio-disabled-unselected-icon-opacity: .38;--mdc-radio-state-layer-size: 40px}.mat-mdc-radio-button.mat-primary[_ngcontent-%COMP%]{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-focus-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #2196f3;--mdc-radio-selected-hover-icon-color: #2196f3;--mdc-radio-selected-icon-color: #2196f3;--mdc-radio-selected-pressed-icon-color: #2196f3}.mat-mdc-radio-button.mat-primary[_ngcontent-%COMP%]{--mat-radio-ripple-color: black;--mat-radio-checked-ripple-color: #2196f3;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38);--mat-radio-label-text-color: rgba(0, 0, 0, .87)}.mat-mdc-radio-button.mat-accent[_ngcontent-%COMP%]{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-focus-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #b0bec5;--mdc-radio-selected-hover-icon-color: #b0bec5;--mdc-radio-selected-icon-color: #b0bec5;--mdc-radio-selected-pressed-icon-color: #b0bec5}.mat-mdc-radio-button.mat-accent[_ngcontent-%COMP%]{--mat-radio-ripple-color: black;--mat-radio-checked-ripple-color: #b0bec5;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38);--mat-radio-label-text-color: rgba(0, 0, 0, .87)}.mat-mdc-radio-button.mat-warn[_ngcontent-%COMP%]{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-focus-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #f44336;--mdc-radio-selected-hover-icon-color: #f44336;--mdc-radio-selected-icon-color: #f44336;--mdc-radio-selected-pressed-icon-color: #f44336}.mat-mdc-radio-button.mat-warn[_ngcontent-%COMP%]{--mat-radio-ripple-color: black;--mat-radio-checked-ripple-color: #f44336;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38);--mat-radio-label-text-color: rgba(0, 0, 0, .87)}html[_ngcontent-%COMP%]{--mdc-radio-state-layer-size: 40px}html[_ngcontent-%COMP%]{--mat-radio-touch-target-display: block}html[_ngcontent-%COMP%]{--mdc-slider-active-track-height: 6px;--mdc-slider-active-track-shape: 9999px;--mdc-slider-handle-height: 20px;--mdc-slider-handle-shape: 50%;--mdc-slider-handle-width: 20px;--mdc-slider-inactive-track-height: 4px;--mdc-slider-inactive-track-shape: 9999px;--mdc-slider-with-overlap-handle-outline-width: 1px;--mdc-slider-with-tick-marks-active-container-opacity: .6;--mdc-slider-with-tick-marks-container-shape: 50%;--mdc-slider-with-tick-marks-container-size: 2px;--mdc-slider-with-tick-marks-inactive-container-opacity: .6;--mdc-slider-handle-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mat-slider-value-indicator-width: auto;--mat-slider-value-indicator-height: 32px;--mat-slider-value-indicator-caret-display: block;--mat-slider-value-indicator-border-radius: 4px;--mat-slider-value-indicator-padding: 0 12px;--mat-slider-value-indicator-text-transform: none;--mat-slider-value-indicator-container-transform: translateX(-50%)}html[_ngcontent-%COMP%]{--mdc-slider-handle-color: #2196f3;--mdc-slider-focus-handle-color: #2196f3;--mdc-slider-hover-handle-color: #2196f3;--mdc-slider-active-track-color: #2196f3;--mdc-slider-inactive-track-color: #2196f3;--mdc-slider-with-tick-marks-inactive-container-color: #2196f3;--mdc-slider-with-tick-marks-active-container-color: white;--mdc-slider-disabled-active-track-color: #000;--mdc-slider-disabled-handle-color: #000;--mdc-slider-disabled-inactive-track-color: #000;--mdc-slider-label-container-color: #000;--mdc-slider-label-label-text-color: #fff;--mdc-slider-with-overlap-handle-outline-color: #fff;--mdc-slider-with-tick-marks-disabled-container-color: #000}html[_ngcontent-%COMP%]{--mat-slider-ripple-color: #2196f3;--mat-slider-hover-state-layer-color: rgba(33, 150, 243, .05);--mat-slider-focus-state-layer-color: rgba(33, 150, 243, .2);--mat-slider-value-indicator-opacity: .6}html[_ngcontent-%COMP%] .mat-accent[_ngcontent-%COMP%]{--mdc-slider-handle-color: #b0bec5;--mdc-slider-focus-handle-color: #b0bec5;--mdc-slider-hover-handle-color: #b0bec5;--mdc-slider-active-track-color: #b0bec5;--mdc-slider-inactive-track-color: #b0bec5;--mdc-slider-with-tick-marks-inactive-container-color: #b0bec5;--mdc-slider-with-tick-marks-active-container-color: rgba(0, 0, 0, .87)}html[_ngcontent-%COMP%] .mat-accent[_ngcontent-%COMP%]{--mat-slider-ripple-color: #b0bec5;--mat-slider-hover-state-layer-color: rgba(176, 190, 197, .05);--mat-slider-focus-state-layer-color: rgba(176, 190, 197, .2)}html[_ngcontent-%COMP%] .mat-warn[_ngcontent-%COMP%]{--mdc-slider-handle-color: #f44336;--mdc-slider-focus-handle-color: #f44336;--mdc-slider-hover-handle-color: #f44336;--mdc-slider-active-track-color: #f44336;--mdc-slider-inactive-track-color: #f44336;--mdc-slider-with-tick-marks-inactive-container-color: #f44336;--mdc-slider-with-tick-marks-active-container-color: white}html[_ngcontent-%COMP%] .mat-warn[_ngcontent-%COMP%]{--mat-slider-ripple-color: #f44336;--mat-slider-hover-state-layer-color: rgba(244, 67, 54, .05);--mat-slider-focus-state-layer-color: rgba(244, 67, 54, .2)}html[_ngcontent-%COMP%]{--mat-menu-container-shape: 4px;--mat-menu-divider-bottom-spacing: 0;--mat-menu-divider-top-spacing: 0;--mat-menu-item-spacing: 16px;--mat-menu-item-icon-size: 24px;--mat-menu-item-leading-spacing: 16px;--mat-menu-item-trailing-spacing: 16px;--mat-menu-item-with-icon-leading-spacing: 16px;--mat-menu-item-with-icon-trailing-spacing: 16px;--mat-menu-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mat-menu-item-label-text-color: rgba(0, 0, 0, .87);--mat-menu-item-icon-color: rgba(0, 0, 0, .87);--mat-menu-item-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-menu-item-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-menu-container-color: white;--mat-menu-divider-color: rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mdc-list-list-item-container-shape: 0;--mdc-list-list-item-leading-avatar-shape: 50%;--mdc-list-list-item-container-color: transparent;--mdc-list-list-item-selected-container-color: transparent;--mdc-list-list-item-leading-avatar-color: transparent;--mdc-list-list-item-leading-icon-size: 24px;--mdc-list-list-item-leading-avatar-size: 40px;--mdc-list-list-item-trailing-icon-size: 24px;--mdc-list-list-item-disabled-state-layer-color: transparent;--mdc-list-list-item-disabled-state-layer-opacity: 0;--mdc-list-list-item-disabled-label-text-opacity: .38;--mdc-list-list-item-disabled-leading-icon-opacity: .38;--mdc-list-list-item-disabled-trailing-icon-opacity: .38}html[_ngcontent-%COMP%]{--mat-list-active-indicator-color: transparent;--mat-list-active-indicator-shape: 4px}html[_ngcontent-%COMP%]{--mdc-list-list-item-label-text-color: rgba(0, 0, 0, .87);--mdc-list-list-item-supporting-text-color: rgba(0, 0, 0, .54);--mdc-list-list-item-leading-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-trailing-supporting-text-color: rgba(0, 0, 0, .38);--mdc-list-list-item-trailing-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-selected-trailing-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-disabled-label-text-color: black;--mdc-list-list-item-disabled-leading-icon-color: black;--mdc-list-list-item-disabled-trailing-icon-color: black;--mdc-list-list-item-hover-label-text-color: rgba(0, 0, 0, .87);--mdc-list-list-item-hover-leading-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-hover-trailing-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-focus-label-text-color: rgba(0, 0, 0, .87);--mdc-list-list-item-hover-state-layer-color: black;--mdc-list-list-item-hover-state-layer-opacity: .04;--mdc-list-list-item-focus-state-layer-color: black;--mdc-list-list-item-focus-state-layer-opacity: .12}.mdc-list-item__start[_ngcontent-%COMP%], .mdc-list-item__end[_ngcontent-%COMP%]{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-focus-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #2196f3;--mdc-radio-selected-hover-icon-color: #2196f3;--mdc-radio-selected-icon-color: #2196f3;--mdc-radio-selected-pressed-icon-color: #2196f3}.mat-accent[_ngcontent-%COMP%] .mdc-list-item__start[_ngcontent-%COMP%], .mat-accent[_ngcontent-%COMP%] .mdc-list-item__end[_ngcontent-%COMP%]{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-focus-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #b0bec5;--mdc-radio-selected-hover-icon-color: #b0bec5;--mdc-radio-selected-icon-color: #b0bec5;--mdc-radio-selected-pressed-icon-color: #b0bec5}.mat-warn[_ngcontent-%COMP%] .mdc-list-item__start[_ngcontent-%COMP%], .mat-warn[_ngcontent-%COMP%] .mdc-list-item__end[_ngcontent-%COMP%]{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-focus-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #f44336;--mdc-radio-selected-hover-icon-color: #f44336;--mdc-radio-selected-icon-color: #f44336;--mdc-radio-selected-pressed-icon-color: #f44336}.mat-mdc-list-option[_ngcontent-%COMP%]{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #2196f3;--mdc-checkbox-selected-hover-icon-color: #2196f3;--mdc-checkbox-selected-icon-color: #2196f3;--mdc-checkbox-selected-pressed-icon-color: #2196f3;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #2196f3;--mdc-checkbox-selected-hover-state-layer-color: #2196f3;--mdc-checkbox-selected-pressed-state-layer-color: #2196f3;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-list-option.mat-accent[_ngcontent-%COMP%]{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: black;--mdc-checkbox-selected-focus-icon-color: #b0bec5;--mdc-checkbox-selected-hover-icon-color: #b0bec5;--mdc-checkbox-selected-icon-color: #b0bec5;--mdc-checkbox-selected-pressed-icon-color: #b0bec5;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #b0bec5;--mdc-checkbox-selected-hover-state-layer-color: #b0bec5;--mdc-checkbox-selected-pressed-state-layer-color: #b0bec5;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-list-option.mat-warn[_ngcontent-%COMP%]{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #f44336;--mdc-checkbox-selected-hover-icon-color: #f44336;--mdc-checkbox-selected-icon-color: #f44336;--mdc-checkbox-selected-pressed-icon-color: #f44336;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #f44336;--mdc-checkbox-selected-hover-state-layer-color: #f44336;--mdc-checkbox-selected-pressed-state-layer-color: #f44336;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-list-base.mat-mdc-list-base[_ngcontent-%COMP%] .mdc-list-item--selected[_ngcontent-%COMP%] .mdc-list-item__primary-text[_ngcontent-%COMP%], .mat-mdc-list-base.mat-mdc-list-base[_ngcontent-%COMP%] .mdc-list-item--selected[_ngcontent-%COMP%] .mdc-list-item__start[_ngcontent-%COMP%], .mat-mdc-list-base.mat-mdc-list-base[_ngcontent-%COMP%] .mdc-list-item--activated[_ngcontent-%COMP%] .mdc-list-item__primary-text[_ngcontent-%COMP%], .mat-mdc-list-base.mat-mdc-list-base[_ngcontent-%COMP%] .mdc-list-item--activated[_ngcontent-%COMP%] .mdc-list-item__start[_ngcontent-%COMP%]{color:#2196f3}.mat-mdc-list-base[_ngcontent-%COMP%] .mdc-list-item--disabled[_ngcontent-%COMP%] .mdc-list-item__start[_ngcontent-%COMP%], .mat-mdc-list-base[_ngcontent-%COMP%] .mdc-list-item--disabled[_ngcontent-%COMP%] .mdc-list-item__content[_ngcontent-%COMP%], .mat-mdc-list-base[_ngcontent-%COMP%] .mdc-list-item--disabled[_ngcontent-%COMP%] .mdc-list-item__end[_ngcontent-%COMP%]{opacity:1}html[_ngcontent-%COMP%]{--mdc-list-list-item-one-line-container-height: 48px;--mdc-list-list-item-two-line-container-height: 64px;--mdc-list-list-item-three-line-container-height: 88px}html[_ngcontent-%COMP%]{--mat-list-list-item-leading-icon-start-space: 16px;--mat-list-list-item-leading-icon-end-space: 32px}.mdc-list-item__start[_ngcontent-%COMP%], .mdc-list-item__end[_ngcontent-%COMP%]{--mdc-radio-state-layer-size: 40px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line[_ngcontent-%COMP%], .mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line[_ngcontent-%COMP%], .mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line[_ngcontent-%COMP%]{height:56px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines[_ngcontent-%COMP%], .mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines[_ngcontent-%COMP%], .mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines[_ngcontent-%COMP%]{height:72px}html[_ngcontent-%COMP%]{--mat-paginator-container-text-color: rgba(0, 0, 0, .87);--mat-paginator-container-background-color: white;--mat-paginator-enabled-icon-color: rgba(0, 0, 0, .54);--mat-paginator-disabled-icon-color: rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mat-paginator-container-size: 56px;--mat-paginator-form-field-container-height: 40px;--mat-paginator-form-field-container-vertical-padding: 8px;--mat-paginator-touch-target-display: block}html[_ngcontent-%COMP%]{--mdc-secondary-navigation-tab-container-height: 48px}html[_ngcontent-%COMP%]{--mdc-tab-indicator-active-indicator-height: 2px;--mdc-tab-indicator-active-indicator-shape: 0}html[_ngcontent-%COMP%]{--mat-tab-header-divider-color: transparent;--mat-tab-header-divider-height: 0}.mat-mdc-tab-group[_ngcontent-%COMP%], .mat-mdc-tab-nav-bar[_ngcontent-%COMP%]{--mdc-tab-indicator-active-indicator-color: #2196f3}.mat-mdc-tab-group[_ngcontent-%COMP%], .mat-mdc-tab-nav-bar[_ngcontent-%COMP%]{--mat-tab-header-disabled-ripple-color: rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color: black;--mat-tab-header-inactive-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color: #2196f3;--mat-tab-header-active-ripple-color: #2196f3;--mat-tab-header-inactive-ripple-color: #2196f3;--mat-tab-header-inactive-focus-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color: #2196f3;--mat-tab-header-active-hover-label-text-color: #2196f3;--mat-tab-header-active-focus-indicator-color: #2196f3;--mat-tab-header-active-hover-indicator-color: #2196f3}.mat-mdc-tab-group.mat-accent[_ngcontent-%COMP%], .mat-mdc-tab-nav-bar.mat-accent[_ngcontent-%COMP%]{--mdc-tab-indicator-active-indicator-color: #b0bec5}.mat-mdc-tab-group.mat-accent[_ngcontent-%COMP%], .mat-mdc-tab-nav-bar.mat-accent[_ngcontent-%COMP%]{--mat-tab-header-disabled-ripple-color: rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color: black;--mat-tab-header-inactive-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color: #b0bec5;--mat-tab-header-active-ripple-color: #b0bec5;--mat-tab-header-inactive-ripple-color: #b0bec5;--mat-tab-header-inactive-focus-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color: #b0bec5;--mat-tab-header-active-hover-label-text-color: #b0bec5;--mat-tab-header-active-focus-indicator-color: #b0bec5;--mat-tab-header-active-hover-indicator-color: #b0bec5}.mat-mdc-tab-group.mat-warn[_ngcontent-%COMP%], .mat-mdc-tab-nav-bar.mat-warn[_ngcontent-%COMP%]{--mdc-tab-indicator-active-indicator-color: #f44336}.mat-mdc-tab-group.mat-warn[_ngcontent-%COMP%], .mat-mdc-tab-nav-bar.mat-warn[_ngcontent-%COMP%]{--mat-tab-header-disabled-ripple-color: rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color: black;--mat-tab-header-inactive-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color: #f44336;--mat-tab-header-active-ripple-color: #f44336;--mat-tab-header-inactive-ripple-color: #f44336;--mat-tab-header-inactive-focus-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color: #f44336;--mat-tab-header-active-hover-label-text-color: #f44336;--mat-tab-header-active-focus-indicator-color: #f44336;--mat-tab-header-active-hover-indicator-color: #f44336}.mat-mdc-tab-group.mat-background-primary[_ngcontent-%COMP%], .mat-mdc-tab-nav-bar.mat-background-primary[_ngcontent-%COMP%]{--mat-tab-header-with-background-background-color: #2196f3;--mat-tab-header-with-background-foreground-color: white}.mat-mdc-tab-group.mat-background-accent[_ngcontent-%COMP%], .mat-mdc-tab-nav-bar.mat-background-accent[_ngcontent-%COMP%]{--mat-tab-header-with-background-background-color: #b0bec5;--mat-tab-header-with-background-foreground-color: rgba(0, 0, 0, .87)}.mat-mdc-tab-group.mat-background-warn[_ngcontent-%COMP%], .mat-mdc-tab-nav-bar.mat-background-warn[_ngcontent-%COMP%]{--mat-tab-header-with-background-background-color: #f44336;--mat-tab-header-with-background-foreground-color: white}.mat-mdc-tab-header[_ngcontent-%COMP%]{--mdc-secondary-navigation-tab-container-height: 48px}html[_ngcontent-%COMP%]{--mdc-checkbox-disabled-selected-checkmark-color: #fff;--mdc-checkbox-selected-focus-state-layer-opacity: .16;--mdc-checkbox-selected-hover-state-layer-opacity: .04;--mdc-checkbox-selected-pressed-state-layer-opacity: .16;--mdc-checkbox-unselected-focus-state-layer-opacity: .16;--mdc-checkbox-unselected-hover-state-layer-opacity: .04;--mdc-checkbox-unselected-pressed-state-layer-opacity: .16}html[_ngcontent-%COMP%]{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: black;--mdc-checkbox-selected-focus-icon-color: #b0bec5;--mdc-checkbox-selected-hover-icon-color: #b0bec5;--mdc-checkbox-selected-icon-color: #b0bec5;--mdc-checkbox-selected-pressed-icon-color: #b0bec5;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #b0bec5;--mdc-checkbox-selected-hover-state-layer-color: #b0bec5;--mdc-checkbox-selected-pressed-state-layer-color: #b0bec5;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}html[_ngcontent-%COMP%]{--mat-checkbox-disabled-label-color: rgba(0, 0, 0, .38);--mat-checkbox-label-text-color: rgba(0, 0, 0, .87)}.mat-mdc-checkbox.mat-primary[_ngcontent-%COMP%]{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #2196f3;--mdc-checkbox-selected-hover-icon-color: #2196f3;--mdc-checkbox-selected-icon-color: #2196f3;--mdc-checkbox-selected-pressed-icon-color: #2196f3;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #2196f3;--mdc-checkbox-selected-hover-state-layer-color: #2196f3;--mdc-checkbox-selected-pressed-state-layer-color: #2196f3;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-checkbox.mat-warn[_ngcontent-%COMP%]{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #f44336;--mdc-checkbox-selected-hover-icon-color: #f44336;--mdc-checkbox-selected-icon-color: #f44336;--mdc-checkbox-selected-pressed-icon-color: #f44336;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #f44336;--mdc-checkbox-selected-hover-state-layer-color: #f44336;--mdc-checkbox-selected-pressed-state-layer-color: #f44336;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}html[_ngcontent-%COMP%]{--mdc-checkbox-state-layer-size: 40px}html[_ngcontent-%COMP%]{--mat-checkbox-touch-target-display: block}html[_ngcontent-%COMP%]{--mdc-text-button-container-shape: 4px;--mdc-text-button-keep-touch-target: false}html[_ngcontent-%COMP%]{--mdc-filled-button-container-shape: 4px;--mdc-filled-button-keep-touch-target: false}html[_ngcontent-%COMP%]{--mdc-protected-button-container-shape: 4px;--mdc-protected-button-container-elevation-shadow: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mdc-protected-button-disabled-container-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-protected-button-focus-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-hover-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-pressed-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mdc-outlined-button-keep-touch-target: false;--mdc-outlined-button-outline-width: 1px;--mdc-outlined-button-container-shape: 4px}html[_ngcontent-%COMP%]{--mat-text-button-horizontal-padding: 8px;--mat-text-button-with-icon-horizontal-padding: 8px;--mat-text-button-icon-spacing: 8px;--mat-text-button-icon-offset: 0}html[_ngcontent-%COMP%]{--mat-filled-button-horizontal-padding: 16px;--mat-filled-button-icon-spacing: 8px;--mat-filled-button-icon-offset: -4px}html[_ngcontent-%COMP%]{--mat-protected-button-horizontal-padding: 16px;--mat-protected-button-icon-spacing: 8px;--mat-protected-button-icon-offset: -4px}html[_ngcontent-%COMP%]{--mat-outlined-button-horizontal-padding: 15px;--mat-outlined-button-icon-spacing: 8px;--mat-outlined-button-icon-offset: -4px}html[_ngcontent-%COMP%]{--mdc-text-button-label-text-color: black;--mdc-text-button-disabled-label-text-color: rgba(0, 0, 0, .38)}html[_ngcontent-%COMP%]{--mat-text-button-state-layer-color: black;--mat-text-button-disabled-state-layer-color: black;--mat-text-button-ripple-color: rgba(0, 0, 0, .1);--mat-text-button-hover-state-layer-opacity: .04;--mat-text-button-focus-state-layer-opacity: .12;--mat-text-button-pressed-state-layer-opacity: .12}html[_ngcontent-%COMP%]{--mdc-filled-button-container-color: white;--mdc-filled-button-label-text-color: black;--mdc-filled-button-disabled-container-color: rgba(0, 0, 0, .12);--mdc-filled-button-disabled-label-text-color: rgba(0, 0, 0, .38)}html[_ngcontent-%COMP%]{--mat-filled-button-state-layer-color: black;--mat-filled-button-disabled-state-layer-color: black;--mat-filled-button-ripple-color: rgba(0, 0, 0, .1);--mat-filled-button-hover-state-layer-opacity: .04;--mat-filled-button-focus-state-layer-opacity: .12;--mat-filled-button-pressed-state-layer-opacity: .12}html[_ngcontent-%COMP%]{--mdc-protected-button-container-color: white;--mdc-protected-button-label-text-color: black;--mdc-protected-button-disabled-container-color: rgba(0, 0, 0, .12);--mdc-protected-button-disabled-label-text-color: rgba(0, 0, 0, .38)}html[_ngcontent-%COMP%]{--mat-protected-button-state-layer-color: black;--mat-protected-button-disabled-state-layer-color: black;--mat-protected-button-ripple-color: rgba(0, 0, 0, .1);--mat-protected-button-hover-state-layer-opacity: .04;--mat-protected-button-focus-state-layer-opacity: .12;--mat-protected-button-pressed-state-layer-opacity: .12}html[_ngcontent-%COMP%]{--mdc-outlined-button-disabled-outline-color: rgba(0, 0, 0, .12);--mdc-outlined-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-outlined-button-label-text-color: black;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mat-outlined-button-state-layer-color: black;--mat-outlined-button-disabled-state-layer-color: black;--mat-outlined-button-ripple-color: rgba(0, 0, 0, .1);--mat-outlined-button-hover-state-layer-opacity: .04;--mat-outlined-button-focus-state-layer-opacity: .12;--mat-outlined-button-pressed-state-layer-opacity: .12}.mat-mdc-button.mat-primary[_ngcontent-%COMP%]{--mdc-text-button-label-text-color: #2196f3}.mat-mdc-button.mat-primary[_ngcontent-%COMP%]{--mat-text-button-state-layer-color: #2196f3;--mat-text-button-ripple-color: rgba(33, 150, 243, .1)}.mat-mdc-button.mat-accent[_ngcontent-%COMP%]{--mdc-text-button-label-text-color: #b0bec5}.mat-mdc-button.mat-accent[_ngcontent-%COMP%]{--mat-text-button-state-layer-color: #b0bec5;--mat-text-button-ripple-color: rgba(176, 190, 197, .1)}.mat-mdc-button.mat-warn[_ngcontent-%COMP%]{--mdc-text-button-label-text-color: #f44336}.mat-mdc-button.mat-warn[_ngcontent-%COMP%]{--mat-text-button-state-layer-color: #f44336;--mat-text-button-ripple-color: rgba(244, 67, 54, .1)}.mat-mdc-unelevated-button.mat-primary[_ngcontent-%COMP%]{--mdc-filled-button-container-color: #2196f3;--mdc-filled-button-label-text-color: white}.mat-mdc-unelevated-button.mat-primary[_ngcontent-%COMP%]{--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-unelevated-button.mat-accent[_ngcontent-%COMP%]{--mdc-filled-button-container-color: #b0bec5;--mdc-filled-button-label-text-color: black}.mat-mdc-unelevated-button.mat-accent[_ngcontent-%COMP%]{--mat-filled-button-state-layer-color: black;--mat-filled-button-ripple-color: rgba(0, 0, 0, .1)}.mat-mdc-unelevated-button.mat-warn[_ngcontent-%COMP%]{--mdc-filled-button-container-color: #f44336;--mdc-filled-button-label-text-color: white}.mat-mdc-unelevated-button.mat-warn[_ngcontent-%COMP%]{--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-primary[_ngcontent-%COMP%]{--mdc-protected-button-container-color: #2196f3;--mdc-protected-button-label-text-color: white}.mat-mdc-raised-button.mat-primary[_ngcontent-%COMP%]{--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-accent[_ngcontent-%COMP%]{--mdc-protected-button-container-color: #b0bec5;--mdc-protected-button-label-text-color: black}.mat-mdc-raised-button.mat-accent[_ngcontent-%COMP%]{--mat-protected-button-state-layer-color: black;--mat-protected-button-ripple-color: rgba(0, 0, 0, .1)}.mat-mdc-raised-button.mat-warn[_ngcontent-%COMP%]{--mdc-protected-button-container-color: #f44336;--mdc-protected-button-label-text-color: white}.mat-mdc-raised-button.mat-warn[_ngcontent-%COMP%]{--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-outlined-button.mat-primary[_ngcontent-%COMP%]{--mdc-outlined-button-label-text-color: #2196f3;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12)}.mat-mdc-outlined-button.mat-primary[_ngcontent-%COMP%]{--mat-outlined-button-state-layer-color: #2196f3;--mat-outlined-button-ripple-color: rgba(33, 150, 243, .1)}.mat-mdc-outlined-button.mat-accent[_ngcontent-%COMP%]{--mdc-outlined-button-label-text-color: #b0bec5;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12)}.mat-mdc-outlined-button.mat-accent[_ngcontent-%COMP%]{--mat-outlined-button-state-layer-color: #b0bec5;--mat-outlined-button-ripple-color: rgba(176, 190, 197, .1)}.mat-mdc-outlined-button.mat-warn[_ngcontent-%COMP%]{--mdc-outlined-button-label-text-color: #f44336;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12)}.mat-mdc-outlined-button.mat-warn[_ngcontent-%COMP%]{--mat-outlined-button-state-layer-color: #f44336;--mat-outlined-button-ripple-color: rgba(244, 67, 54, .1)}html[_ngcontent-%COMP%]{--mdc-text-button-container-height: 36px}html[_ngcontent-%COMP%]{--mdc-filled-button-container-height: 36px}html[_ngcontent-%COMP%]{--mdc-protected-button-container-height: 36px}html[_ngcontent-%COMP%]{--mdc-outlined-button-container-height: 36px}html[_ngcontent-%COMP%]{--mat-text-button-touch-target-display: block}html[_ngcontent-%COMP%]{--mat-filled-button-touch-target-display: block}html[_ngcontent-%COMP%]{--mat-protected-button-touch-target-display: block}html[_ngcontent-%COMP%]{--mat-outlined-button-touch-target-display: block}html[_ngcontent-%COMP%]{--mdc-icon-button-icon-size: 24px}html[_ngcontent-%COMP%]{--mdc-icon-button-icon-color: inherit;--mdc-icon-button-disabled-icon-color: rgba(0, 0, 0, .38)}html[_ngcontent-%COMP%]{--mat-icon-button-state-layer-color: black;--mat-icon-button-disabled-state-layer-color: black;--mat-icon-button-ripple-color: rgba(0, 0, 0, .1);--mat-icon-button-hover-state-layer-opacity: .04;--mat-icon-button-focus-state-layer-opacity: .12;--mat-icon-button-pressed-state-layer-opacity: .12}html[_ngcontent-%COMP%] .mat-mdc-icon-button.mat-primary[_ngcontent-%COMP%]{--mdc-icon-button-icon-color: #2196f3}html[_ngcontent-%COMP%] .mat-mdc-icon-button.mat-primary[_ngcontent-%COMP%]{--mat-icon-button-state-layer-color: #2196f3;--mat-icon-button-ripple-color: rgba(33, 150, 243, .1)}html[_ngcontent-%COMP%] .mat-mdc-icon-button.mat-accent[_ngcontent-%COMP%]{--mdc-icon-button-icon-color: #b0bec5}html[_ngcontent-%COMP%] .mat-mdc-icon-button.mat-accent[_ngcontent-%COMP%]{--mat-icon-button-state-layer-color: #b0bec5;--mat-icon-button-ripple-color: rgba(176, 190, 197, .1)}html[_ngcontent-%COMP%] .mat-mdc-icon-button.mat-warn[_ngcontent-%COMP%]{--mdc-icon-button-icon-color: #f44336}html[_ngcontent-%COMP%] .mat-mdc-icon-button.mat-warn[_ngcontent-%COMP%]{--mat-icon-button-state-layer-color: #f44336;--mat-icon-button-ripple-color: rgba(244, 67, 54, .1)}html[_ngcontent-%COMP%]{--mat-icon-button-touch-target-display: block}.mat-mdc-icon-button.mat-mdc-button-base[_ngcontent-%COMP%]{--mdc-icon-button-state-layer-size: 48px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:12px}html[_ngcontent-%COMP%]{--mdc-fab-container-shape: 50%;--mdc-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mdc-fab-small-container-shape: 50%;--mdc-fab-small-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-fab-small-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-small-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-small-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mdc-extended-fab-container-height: 48px;--mdc-extended-fab-container-shape: 24px;--mdc-extended-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-extended-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-extended-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-extended-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mdc-fab-container-color: white}html[_ngcontent-%COMP%]{--mat-fab-foreground-color: black;--mat-fab-state-layer-color: black;--mat-fab-disabled-state-layer-color: black;--mat-fab-ripple-color: rgba(0, 0, 0, .1);--mat-fab-hover-state-layer-opacity: .04;--mat-fab-focus-state-layer-opacity: .12;--mat-fab-pressed-state-layer-opacity: .12;--mat-fab-disabled-state-container-color: rgba(0, 0, 0, .12);--mat-fab-disabled-state-foreground-color: rgba(0, 0, 0, .38)}html[_ngcontent-%COMP%]{--mdc-fab-small-container-color: white}html[_ngcontent-%COMP%]{--mat-fab-small-foreground-color: black;--mat-fab-small-state-layer-color: black;--mat-fab-small-disabled-state-layer-color: black;--mat-fab-small-ripple-color: rgba(0, 0, 0, .1);--mat-fab-small-hover-state-layer-opacity: .04;--mat-fab-small-focus-state-layer-opacity: .12;--mat-fab-small-pressed-state-layer-opacity: .12;--mat-fab-small-disabled-state-container-color: rgba(0, 0, 0, .12);--mat-fab-small-disabled-state-foreground-color: rgba(0, 0, 0, .38)}html[_ngcontent-%COMP%] .mat-mdc-fab.mat-primary[_ngcontent-%COMP%]{--mdc-fab-container-color: #2196f3}html[_ngcontent-%COMP%] .mat-mdc-fab.mat-primary[_ngcontent-%COMP%]{--mat-fab-foreground-color: white;--mat-fab-state-layer-color: white;--mat-fab-ripple-color: rgba(255, 255, 255, .1)}html[_ngcontent-%COMP%] .mat-mdc-fab.mat-accent[_ngcontent-%COMP%]{--mdc-fab-container-color: #b0bec5}html[_ngcontent-%COMP%] .mat-mdc-fab.mat-accent[_ngcontent-%COMP%]{--mat-fab-foreground-color: black;--mat-fab-state-layer-color: black;--mat-fab-ripple-color: rgba(0, 0, 0, .1)}html[_ngcontent-%COMP%] .mat-mdc-fab.mat-warn[_ngcontent-%COMP%]{--mdc-fab-container-color: #f44336}html[_ngcontent-%COMP%] .mat-mdc-fab.mat-warn[_ngcontent-%COMP%]{--mat-fab-foreground-color: white;--mat-fab-state-layer-color: white;--mat-fab-ripple-color: rgba(255, 255, 255, .1)}html[_ngcontent-%COMP%] .mat-mdc-mini-fab.mat-primary[_ngcontent-%COMP%]{--mdc-fab-small-container-color: #2196f3}html[_ngcontent-%COMP%] .mat-mdc-mini-fab.mat-primary[_ngcontent-%COMP%]{--mat-fab-small-foreground-color: white;--mat-fab-small-state-layer-color: white;--mat-fab-small-ripple-color: rgba(255, 255, 255, .1)}html[_ngcontent-%COMP%] .mat-mdc-mini-fab.mat-accent[_ngcontent-%COMP%]{--mdc-fab-small-container-color: #b0bec5}html[_ngcontent-%COMP%] .mat-mdc-mini-fab.mat-accent[_ngcontent-%COMP%]{--mat-fab-small-foreground-color: black;--mat-fab-small-state-layer-color: black;--mat-fab-small-ripple-color: rgba(0, 0, 0, .1)}html[_ngcontent-%COMP%] .mat-mdc-mini-fab.mat-warn[_ngcontent-%COMP%]{--mdc-fab-small-container-color: #f44336}html[_ngcontent-%COMP%] .mat-mdc-mini-fab.mat-warn[_ngcontent-%COMP%]{--mat-fab-small-foreground-color: white;--mat-fab-small-state-layer-color: white;--mat-fab-small-ripple-color: rgba(255, 255, 255, .1)}html[_ngcontent-%COMP%]{--mat-fab-touch-target-display: block}html[_ngcontent-%COMP%]{--mat-fab-small-touch-target-display: block}html[_ngcontent-%COMP%]{--mdc-snackbar-container-shape: 4px}html[_ngcontent-%COMP%]{--mdc-snackbar-container-color: #333333;--mdc-snackbar-supporting-text-color: rgba(255, 255, 255, .87)}html[_ngcontent-%COMP%]{--mat-snack-bar-button-color: #b0bec5}html[_ngcontent-%COMP%]{--mat-table-row-item-outline-width: 1px}html[_ngcontent-%COMP%]{--mat-table-background-color: white;--mat-table-header-headline-color: rgba(0, 0, 0, .87);--mat-table-row-item-label-text-color: rgba(0, 0, 0, .87);--mat-table-row-item-outline-color: rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mat-table-header-container-height: 56px;--mat-table-footer-container-height: 52px;--mat-table-row-item-container-height: 52px}html[_ngcontent-%COMP%]{--mdc-circular-progress-active-indicator-width: 4px;--mdc-circular-progress-size: 48px}html[_ngcontent-%COMP%]{--mdc-circular-progress-active-indicator-color: #2196f3}html[_ngcontent-%COMP%] .mat-accent[_ngcontent-%COMP%]{--mdc-circular-progress-active-indicator-color: #b0bec5}html[_ngcontent-%COMP%] .mat-warn[_ngcontent-%COMP%]{--mdc-circular-progress-active-indicator-color: #f44336}html[_ngcontent-%COMP%]{--mat-badge-container-shape: 50%;--mat-badge-container-size: unset;--mat-badge-small-size-container-size: unset;--mat-badge-large-size-container-size: unset;--mat-badge-legacy-container-size: 22px;--mat-badge-legacy-small-size-container-size: 16px;--mat-badge-legacy-large-size-container-size: 28px;--mat-badge-container-offset: -11px 0;--mat-badge-small-size-container-offset: -8px 0;--mat-badge-large-size-container-offset: -14px 0;--mat-badge-container-overlap-offset: -11px;--mat-badge-small-size-container-overlap-offset: -8px;--mat-badge-large-size-container-overlap-offset: -14px;--mat-badge-container-padding: 0;--mat-badge-small-size-container-padding: 0;--mat-badge-large-size-container-padding: 0}html[_ngcontent-%COMP%]{--mat-badge-background-color: #2196f3;--mat-badge-text-color: white;--mat-badge-disabled-state-background-color: #b9b9b9;--mat-badge-disabled-state-text-color: rgba(0, 0, 0, .38)}.mat-badge-accent[_ngcontent-%COMP%]{--mat-badge-background-color: #b0bec5;--mat-badge-text-color: rgba(0, 0, 0, .87)}.mat-badge-warn[_ngcontent-%COMP%]{--mat-badge-background-color: #f44336;--mat-badge-text-color: white}html[_ngcontent-%COMP%]{--mat-bottom-sheet-container-shape: 4px}html[_ngcontent-%COMP%]{--mat-bottom-sheet-container-text-color: rgba(0, 0, 0, .87);--mat-bottom-sheet-container-background-color: white}html[_ngcontent-%COMP%]{--mat-legacy-button-toggle-height: 36px;--mat-legacy-button-toggle-shape: 2px;--mat-legacy-button-toggle-focus-state-layer-opacity: 1}html[_ngcontent-%COMP%]{--mat-standard-button-toggle-shape: 4px;--mat-standard-button-toggle-hover-state-layer-opacity: .04;--mat-standard-button-toggle-focus-state-layer-opacity: .12}html[_ngcontent-%COMP%]{--mat-legacy-button-toggle-text-color: rgba(0, 0, 0, .38);--mat-legacy-button-toggle-state-layer-color: rgba(0, 0, 0, .12);--mat-legacy-button-toggle-selected-state-text-color: rgba(0, 0, 0, .54);--mat-legacy-button-toggle-selected-state-background-color: #e0e0e0;--mat-legacy-button-toggle-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-legacy-button-toggle-disabled-state-background-color: #eeeeee;--mat-legacy-button-toggle-disabled-selected-state-background-color: #bdbdbd}html[_ngcontent-%COMP%]{--mat-standard-button-toggle-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-background-color: white;--mat-standard-button-toggle-state-layer-color: black;--mat-standard-button-toggle-selected-state-background-color: #e0e0e0;--mat-standard-button-toggle-selected-state-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-standard-button-toggle-disabled-state-background-color: white;--mat-standard-button-toggle-disabled-selected-state-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-disabled-selected-state-background-color: #bdbdbd;--mat-standard-button-toggle-divider-color: rgb(224.4, 224.4, 224.4)}html[_ngcontent-%COMP%]{--mat-standard-button-toggle-height: 48px}html[_ngcontent-%COMP%]{--mat-datepicker-calendar-container-shape: 4px;--mat-datepicker-calendar-container-touch-shape: 4px;--mat-datepicker-calendar-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-datepicker-calendar-container-touch-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #2196f3;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(33, 150, 243, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: rgba(33, 150, 243, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(33, 150, 243, .3);--mat-datepicker-toggle-active-state-icon-color: #2196f3;--mat-datepicker-calendar-date-in-range-state-background-color: rgba(33, 150, 243, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: rgb(69.5241935484, 163.4758064516, 93.9516129032);--mat-datepicker-toggle-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-body-label-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-period-button-text-color: black;--mat-datepicker-calendar-period-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-navigation-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-header-divider-color: rgba(0, 0, 0, .12);--mat-datepicker-calendar-header-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-outline-color: rgba(0, 0, 0, .38);--mat-datepicker-calendar-date-today-disabled-state-outline-color: rgba(0, 0, 0, .18);--mat-datepicker-calendar-date-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: rgba(0, 0, 0, .38);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(0, 0, 0, .24);--mat-datepicker-range-input-separator-color: rgba(0, 0, 0, .87);--mat-datepicker-range-input-disabled-state-separator-color: rgba(0, 0, 0, .38);--mat-datepicker-range-input-disabled-state-text-color: rgba(0, 0, 0, .38);--mat-datepicker-calendar-container-background-color: white;--mat-datepicker-calendar-container-text-color: rgba(0, 0, 0, .87)}.mat-datepicker-content.mat-accent[_ngcontent-%COMP%]{--mat-datepicker-calendar-date-selected-state-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-selected-state-background-color: #b0bec5;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(176, 190, 197, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-focus-state-background-color: rgba(176, 190, 197, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(176, 190, 197, .3);--mat-datepicker-calendar-date-in-range-state-background-color: rgba(176, 190, 197, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: rgb(69.5241935484, 163.4758064516, 93.9516129032)}.mat-datepicker-content.mat-warn[_ngcontent-%COMP%]{--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #f44336;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(244, 67, 54, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-in-range-state-background-color: rgba(244, 67, 54, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: rgb(69.5241935484, 163.4758064516, 93.9516129032)}.mat-datepicker-toggle-active.mat-accent[_ngcontent-%COMP%]{--mat-datepicker-toggle-active-state-icon-color: #b0bec5}.mat-datepicker-toggle-active.mat-warn[_ngcontent-%COMP%]{--mat-datepicker-toggle-active-state-icon-color: #f44336}.mat-calendar-controls[_ngcontent-%COMP%]{--mat-icon-button-touch-target-display: none}.mat-calendar-controls[_ngcontent-%COMP%] .mat-mdc-icon-button.mat-mdc-button-base[_ngcontent-%COMP%]{--mdc-icon-button-state-layer-size: 40px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:8px}html[_ngcontent-%COMP%]{--mat-divider-width: 1px}html[_ngcontent-%COMP%]{--mat-divider-color: rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mat-expansion-container-shape: 4px;--mat-expansion-legacy-header-indicator-display: inline-block;--mat-expansion-header-indicator-display: none}html[_ngcontent-%COMP%]{--mat-expansion-container-background-color: white;--mat-expansion-container-text-color: rgba(0, 0, 0, .87);--mat-expansion-actions-divider-color: rgba(0, 0, 0, .12);--mat-expansion-header-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-expansion-header-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-expansion-header-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-expansion-header-text-color: rgba(0, 0, 0, .87);--mat-expansion-header-description-color: rgba(0, 0, 0, .54);--mat-expansion-header-indicator-color: rgba(0, 0, 0, .54)}html[_ngcontent-%COMP%]{--mat-expansion-header-collapsed-state-height: 48px;--mat-expansion-header-expanded-state-height: 64px}html[_ngcontent-%COMP%]{--mat-icon-color: inherit}.mat-icon.mat-primary[_ngcontent-%COMP%]{--mat-icon-color: #2196f3}.mat-icon.mat-accent[_ngcontent-%COMP%]{--mat-icon-color: #b0bec5}.mat-icon.mat-warn[_ngcontent-%COMP%]{--mat-icon-color: #f44336}html[_ngcontent-%COMP%]{--mat-sidenav-container-shape: 0;--mat-sidenav-container-elevation-shadow: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-sidenav-container-width: auto}html[_ngcontent-%COMP%]{--mat-sidenav-container-divider-color: rgba(0, 0, 0, .12);--mat-sidenav-container-background-color: white;--mat-sidenav-container-text-color: rgba(0, 0, 0, .87);--mat-sidenav-content-background-color: #fafafa;--mat-sidenav-content-text-color: rgba(0, 0, 0, .87);--mat-sidenav-scrim-color: rgba(0, 0, 0, .6)}html[_ngcontent-%COMP%]{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #2196f3;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #2196f3;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #2196f3;--mat-stepper-header-edit-state-icon-foreground-color: white;--mat-stepper-container-color: white;--mat-stepper-line-color: rgba(0, 0, 0, .12);--mat-stepper-header-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-stepper-header-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-stepper-header-label-text-color: rgba(0, 0, 0, .54);--mat-stepper-header-optional-label-text-color: rgba(0, 0, 0, .54);--mat-stepper-header-selected-state-label-text-color: rgba(0, 0, 0, .87);--mat-stepper-header-error-state-label-text-color: #f44336;--mat-stepper-header-icon-background-color: rgba(0, 0, 0, .54);--mat-stepper-header-error-state-icon-foreground-color: #f44336;--mat-stepper-header-error-state-icon-background-color: transparent}html[_ngcontent-%COMP%] .mat-step-header.mat-accent[_ngcontent-%COMP%]{--mat-stepper-header-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-selected-state-icon-background-color: #b0bec5;--mat-stepper-header-selected-state-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-done-state-icon-background-color: #b0bec5;--mat-stepper-header-done-state-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-edit-state-icon-background-color: #b0bec5;--mat-stepper-header-edit-state-icon-foreground-color: rgba(0, 0, 0, .87)}html[_ngcontent-%COMP%] .mat-step-header.mat-warn[_ngcontent-%COMP%]{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #f44336;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #f44336;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #f44336;--mat-stepper-header-edit-state-icon-foreground-color: white}html[_ngcontent-%COMP%]{--mat-stepper-header-height: 72px}html[_ngcontent-%COMP%]{--mat-sort-arrow-color: rgb(117.3, 117.3, 117.3)}html[_ngcontent-%COMP%]{--mat-toolbar-container-background-color: whitesmoke;--mat-toolbar-container-text-color: rgba(0, 0, 0, .87)}.mat-toolbar.mat-primary[_ngcontent-%COMP%]{--mat-toolbar-container-background-color: #2196f3;--mat-toolbar-container-text-color: white}.mat-toolbar.mat-accent[_ngcontent-%COMP%]{--mat-toolbar-container-background-color: #b0bec5;--mat-toolbar-container-text-color: rgba(0, 0, 0, .87)}.mat-toolbar.mat-warn[_ngcontent-%COMP%]{--mat-toolbar-container-background-color: #f44336;--mat-toolbar-container-text-color: white}html[_ngcontent-%COMP%]{--mat-toolbar-standard-height: 64px;--mat-toolbar-mobile-height: 56px}html[_ngcontent-%COMP%]{--mat-tree-container-background-color: white;--mat-tree-node-text-color: rgba(0, 0, 0, .87)}html[_ngcontent-%COMP%]{--mat-tree-node-min-height: 48px}html[_ngcontent-%COMP%]{--mat-timepicker-container-shape: 4px;--mat-timepicker-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--mat-timepicker-container-background-color: white}.overlay[_ngcontent-%COMP%]{z-index:1000;inset:0 0 0 0 absolute;background-color:#0003;display:flex;align-items:center;justify-content:center}.hidden[_ngcontent-%COMP%]{visibility:hidden;pointer-events:none}.hidden[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%] canvas[_ngcontent-%COMP%]{visibility:hidden;pointer-events:none}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{height:100%;font-family:Google Symbols;font-family:Roboto,Helvetica Neue,sans-serif}html[_ngcontent-%COMP%]{overflow:hidden}body[_ngcontent-%COMP%]{background-color:#f5f5f5;margin:0;overflow:auto}body.search[_ngcontent-%COMP%]{background-color:#fff}.cursor-overlay[_ngcontent-%COMP%]{height:100%;left:0;position:fixed;top:0;width:100%;z-index:999;pointer-events:none}.cursor-overlay.grabbing[_ngcontent-%COMP%]{cursor:-webkit-grabbing}.cursor-overlay.wait[_ngcontent-%COMP%]{cursor:wait}hr[_ngcontent-%COMP%]{border-color:#0000001f;border-style:solid;border-width:1px 0 0;margin:0}.mat-icon[_ngcontent-%COMP%]{bottom:1px;position:relative}.mat-tooltip[_ngcontent-%COMP%]{margin:4px;font-size:12px}.cdk-overlay-pane[_ngcontent-%COMP%] .mat-mdc-dialog-container[_ngcontent-%COMP%]{min-width:25em}.mat-mdc-menu-content[_ngcontent-%COMP%]{background:#fff}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] .mat-drawer-inner-container[_ngcontent-%COMP%]{display:grid}.mat-mdc-dialog-container[_ngcontent-%COMP%] .mat-mdc-dialog-actions[_ngcontent-%COMP%]{padding:1em}.mat-mdc-dialog-container[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%]{padding-top:1em}.mat-mdc-dialog-container[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%]:before{content:unset}.mat-mdc-icon-button.mat-mdc-icon-button.mat-mdc-button-base[_ngcontent-%COMP%]{display:grid;height:auto;place-content:center center;padding:.2em;width:auto}.mat-icon[_ngcontent-%COMP%]{overflow:visible}.mat-dialog-container[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{padding:24px}.mat-dialog-container[_ngcontent-%COMP%] .mat-card-header-text[_ngcontent-%COMP%]{margin:0}[_ngcontent-%COMP%]::-webkit-scrollbar{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-scrollbar:horizontal{height:11px}[_ngcontent-%COMP%]::-webkit-scrollbar:vertical{width:11px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:8px;border:2px solid white;background-color:#00000080}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#fff;border-radius:8px}.container[_ngcontent-%COMP%]{align-content:center;background:#f5f5f5;color:gray;display:grid;grid-template-columns:250px 1fr}.left[_ngcontent-%COMP%]{align-items:center;display:grid;font-size:1em;grid-column-gap:.4em;grid-template-columns:min-content 1fr;padding:0 .4em;margin:.2em 0}.right[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content max-content;justify-content:space-between}.cases-navigator[_ngcontent-%COMP%]{display:grid;grid-template-columns:min-content max-content min-content}.breadcrumbs[_ngcontent-%COMP%]{align-items:center;background:#d3e3fd;display:flex;padding:0 1em 0 0}.crumb[_ngcontent-%COMP%], .crumb-info[_ngcontent-%COMP%]{align-items:center;display:grid;grid-template-columns:min-content max-content}.cases-and-search[_ngcontent-%COMP%]{align-content:center;display:grid;grid-template-columns:min-content min-content;grid-column-gap:1em;padding:0 1em}.clickable-text[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}.ellipsis[_ngcontent-%COMP%]{display:inline-block;line-height:1;max-width:250px;max-height:2em;overflow:hidden;text-overflow:ellipsis}.logo[_ngcontent-%COMP%]{cursor:pointer}.logo-img[_ngcontent-%COMP%]{height:auto;width:auto}']})}}return Y})();function se(Y,Re){1&Y&&(d.j41(0,"div",2),d.nrm(1,"router-outlet"),d.k0s())}function Ee(Y,Re){if(1&Y&&(d.j41(0,"div",3),d.nrm(1,"top-nav"),d.j41(2,"div",4),d.nrm(3,"side-nav"),d.j41(4,"div",5),d.nrm(5,"router-outlet"),d.k0s()()()),2&Y){const De=d.XpG();d.R7$(3),d.AVh("disabled",!De.isDicomStoreInitialized)}}(0,o.B8)((()=>{class Y{constructor(De,nt){this.authService=De,this.router=nt,this.title="viewer",this.isDicomStoreInitialized=!1}ngAfterViewInit(){this.authService.setupGoogleLogin()}ngAfterViewChecked(){this.isDicomStoreInitialized!==!!h.c.IMAGE_DICOM_STORE_BASE_URL&&Promise.resolve().then(()=>this.isDicomStoreInitialized=!!h.c.IMAGE_DICOM_STORE_BASE_URL)}static{this.\u0275fac=function(nt){return new(nt||Y)(d.rXU(ke.u),d.rXU(g.Ix))}}static{this.\u0275cmp=d.VBU({type:Y,selectors:[["viewer"]],decls:2,vars:2,consts:[["class","app",4,"ngIf"],["class","authorized-section",4,"ngIf"],[1,"app"],[1,"authorized-section"],[1,"authorized-body"],[1,"authorized-body-content"]],template:function(nt,ht){1&nt&&d.DNE(0,se,2,0,"div",0)(1,Ee,6,2,"div",1),2&nt&&(d.Y8G("ngIf","/auth"===ht.router.url),d.R7$(),d.Y8G("ngIf","/"!==ht.router.url&&"/auth"!==ht.router.url))},dependencies:[g.n3,O.MD,O.bT,X,R],styles:[".app[_ngcontent-%COMP%]{display:grid;grid-template-rows:min-content 1fr;height:100%}.authorized-body[_ngcontent-%COMP%]{display:grid;grid-template-columns:min-content 1fr;overflow:auto}.authorized-body-content[_ngcontent-%COMP%]{background:#fafafa;overflow:hidden}.authorized-section[_ngcontent-%COMP%]{display:grid;grid-template-rows:min-content 1fr;height:100vh}.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.2}"]})}}return Y})(),P).catch(Y=>console.error(Y))},8472:(ut,Ie,a)=>{"use strict";a.d(Ie,{u:()=>W});var o=a(467),c=a(177),O=a(4438),d=a(5416),w=a(7673),C=a(983),x=a(6648),D=a(6354),p=a(4119),g=a(3266),y=a(2840),h=a(2168),u=a(2073);const P="DPAS_ACCESS_TOKEN";let W=(()=>{class ne{constructor(ie,Z,ae,Le,_e,Ce,Ae){this.ngZone=ie,this.platformId=Z,this.logService=ae,this.router=Le,this.snackBar=_e,this.userService=Ce,this.windowService=Ae,this.scope=p.c.OAUTH_SCOPES,this.snackBarConfig=new d.um,this.snackBarConfig.duration=4e3,this.snackBarConfig.horizontalPosition="start"}setupGoogleLogin(){var ie=this;!(0,c.UE)(this.platformId)||!window||!p.c.OAUTH_CLIENT_ID||(window.onGoogleLibraryLoad=(0,o.A)(function*(){if(google.accounts.id.initialize({client_id:p.c.OAUTH_CLIENT_ID,callback:ie.handleCredentialResponse.bind(ie),auto_select:!1,cancel_on_tap_outside:!1}),google.accounts.id.renderButton(document.getElementById("loginBtn"),{theme:"outline",size:"large",width:200,type:"standard"}),ie.windowService.getLocalStorageItem(g.G)){let Z=ie.getCachedAccessToken();return Z&&ie.isTokenExpired(Z)&&(yield ie.fetchAccessToken(),Z=ie.getCachedAccessToken()),void(Z&&!ie.isTokenExpired(Z)&&ie.navigateToSearchIfAuth())}google.accounts.id.prompt()}))}fetchAccessToken(){var ie=this;return(0,o.A)(function*(){if(!p.c.OAUTH_CLIENT_ID)return Promise.resolve({email:"",oauthTokenInfo:{error:"",expirationTime:"",token:""}});const Z=ie.handleCredentialToken();if(!Z?.email)return Promise.resolve({email:"",oauthTokenInfo:{error:"",expirationTime:"",token:""}});ie.userService.setCurrentUser(Z.email);const Le=yield new Promise((_e,Ce)=>{const Ae=ie.userService.getCurrentUser()??void 0,ke=google.accounts.oauth2.initTokenClient({client_id:p.c.OAUTH_CLIENT_ID,scope:ie.scope,hint:Ae,prompt:"",callback:Ue=>{if(Ue.error){const Se="Consent needed. Access denied.",z=new Error(Se);return ie.logService.error(z),ie.snackBar.open(Se,"Dismiss",ie.snackBarConfig),ie.logout(),void Ce(Se)}const ve=ie.scope.split(" ");if(!google.accounts.oauth2.hasGrantedAllScopes(Ue,...ve)){const Se="Not all scopes are granted. Try again.",z=new Error;return ie.logService.error(z),ie.snackBar.open(Se,"Dismiss",ie.snackBarConfig),ie.logout(),void Ce(Se)}const ye=ie.convertResponseToToken(Ue);if(!ye){const Se="Access denied.";return ie.logService.error(new Error(Ue.error)),ie.snackBar.open(Se,"Dismiss",ie.snackBarConfig),ie.logout(),void Ce(Ue.error)}_e(ye)}});if(!ke){const Ue="No oauth client initialized.";return ie.logService.error(new Error(Ue)),void Ce(Ue)}ke.requestAccessToken()});return ie.setCachedAccessToken(Le),ie.navigateToSearchIfAuth(),Le})()}navigateToSearchIfAuth(){const ie=this.getCachedAccessToken();"/auth"===this.router.url&&ie?.oauthTokenInfo.token&&this.ngZone.run(()=>{this.router.navigate(["search"],{replaceUrl:!0})})}convertResponseToToken(ie){if(!ie.access_token||!ie.expires_in)return;const Z=this.userService.getCurrentUser()??"",ae=Date.now()+this.secondsToMilliseconds(Number(ie.expires_in));return{email:Z,oauthTokenInfo:{error:ie.error??"",expirationTime:String(ae),token:ie.access_token}}}handleCredentialResponse(ie){try{ie?.credential&&this.windowService.setLocalStorageItem(g.G,ie?.credential),this.fetchAccessToken()}catch(Z){console.error("Error while trying to decode token",Z)}}handleCredentialToken(){const ie=this.windowService.getLocalStorageItem(g.G);if(!ie)return void console.error("Error while trying to decode token, no credentials");let Z=null;return Z=JSON.parse(atob(ie.split(".")[1])),Z}getOAuthToken(ie=1){if(!p.c.OAUTH_CLIENT_ID)return(0,w.of)("");const Z=this.getCachedAccessToken();return Z&&!this.isTokenExpired(Z)?(0,w.of)(Z.oauthTokenInfo.token):ie?this.fetchAndMapToken():C.w}fetchAndMapToken(){return(0,x.H)(this.fetchAccessToken()).pipe((0,D.T)(ie=>ie.oauthTokenInfo.token))}getCachedAccessToken(){const ie=this.getCachedAccessTokenFromLocalStorage();if(ie)return this.isTokenExpired(ie)?void this.clearCachedAccessToken():ie}isTokenExpired(ie){try{if(!ie.oauthTokenInfo.expirationTime)return!1;const Z=Number(ie.oauthTokenInfo.expirationTime);return!!Number.isNaN(Z)||Z{"use strict";a.d(Ie,{Do:()=>V});var o=a(467),c=a(2771),O=a(4412),d=a(4572),w=a(7673),C=a(6977),x=a(8141),D=a(5558),p=a(980),g=a(1397),y=a(3557),h=a(6354),u=a(9437),P=a(3294),T=a(5964),E=a(1594),W=a(4119),ne=a(8375),de=a(3738),ie=a(4438),Z=a(9030),ae=a(4668),Le=a(1626),_e=a(8472),Ce=a(2840);const Ae=["linkToken","filter","view"];function ve(ge){return ge&&(ge.slides&&(ge.slides=ge.slides.map(Me=>(Me.dicomUri&&Me.dicomUri.includes("/projects/")&&(Me.dicomUri="projects/"+Me.dicomUri.split("/projects/")[1]),Me))),ge)}function ye(ge){return ge&&(ge.slides&&(ge.slides=ge.slides.map(Me=>(Me.dicomUri&&(Me.dicomUri.includes(W.c.IMAGE_DICOM_STORE_BASE_URL.split("/projects/")[1])?Me.dicomUri=W.c.IMAGE_DICOM_STORE_BASE_URL.split("projects/")[0]+Me.dicomUri:Me.dicomUri.includes(W.c.IMAGE_DEID_DICOM_STORE_BASE_URL.split("/projects/")[1])&&(Me.dicomUri=W.c.IMAGE_DEID_DICOM_STORE_BASE_URL.split("projects/")[0]+Me.dicomUri)),Me))),ge)}let Se=(()=>{class ge{constructor(oe,R,se){this.http=oe,this.authService=R,this.logService=se,this.userName$=(0,Z.v)(()=>this.identifyCurrentUser().pipe((0,h.T)(Ee=>Ee.name),(0,ae.t)(1)))}httpRequest(oe,R,se){const Ee=`${W.c.ORCHESTRATOR_BASE_URL}${R}`;return this.authService.getOAuthToken().pipe((0,D.n)(tt=>("GET"===oe&&(se=void 0),this.http.request(oe,Ee,{headers:{Authorization:"Bearer "+tt,"content-type":"application/json"},responseType:"text",body:se}).pipe((0,u.W)(Y=>{throw Y=JSON.stringify(Y),this.logService.error({name:`httpRequest: "${Ee}"`,message:Y}),new Error(`Error while fetching ${oe} ${Ee}: ${Y}`)})))))}fetch(oe,R,se){const Ee=JSON.stringify(se);if(se){const tt=se,Y={};for(const Re of Ae)Re in tt&&(Y[Re]=tt[Re]);Object.keys(Y).length>0&&(R=R+"?"+new URLSearchParams(Y).toString())}return this.httpRequest(oe,R,Ee).pipe((0,h.T)(tt=>{try{return JSON.parse(tt)}catch(Y){throw new Error(`Error parsing "${tt}" as ${R}: ${Y}`)}}))}createPathologyCohort(oe){return oe.pathologyCohort=ve(oe.pathologyCohort),this.userName$.pipe((0,g.Z)(R=>this.fetch("POST",`/${R}/pathologyCohorts`,oe)))}deletePathologyCohort(oe){return this.fetch("DELETE",`/${oe.name}`,oe)}getPathologyCohort(oe){return this.fetch("GET",`/${oe.name}`,oe).pipe((0,h.T)(R=>ye(R)))}listPathologyCohorts(oe){return this.userName$.pipe((0,D.n)(R=>this.fetch("GET",`/${R}/pathologyCohorts`,oe))).pipe((0,h.T)(R=>(R.pathologyCohorts&&(R.pathologyCohorts=R.pathologyCohorts.map(se=>ye(se))),R)))}updatePathologyCohort(oe,R,se=3){return oe.pathologyCohort=ve(oe.pathologyCohort),this.fetch("PATCH",`/${oe.pathologyCohort.name}`,oe).pipe((0,u.W)(Ee=>{if(se&&(Ee.originalStack??"").includes("Request contains stale data for cohort"))return se--,this.updatePathologyCohortRetryHandler(oe,R,se);throw Ee}))}updatePathologyCohortRetryHandler(oe,R,se){return this.getPathologyCohort({name:oe.pathologyCohort.name,view:"PATHOLOGY_COHORT_VIEW_FULL"}).pipe((0,h.T)(tt=>({newOriginalCohort:tt,modifiedLatestCohort:this.consolidateStaleData(oe,R,tt)})),(0,D.n)(tt=>(oe.pathologyCohort=tt.modifiedLatestCohort,this.updatePathologyCohort(oe,tt.newOriginalCohort,se))))}consolidateStaleData(oe,R,se){if(se=JSON.parse(JSON.stringify(se)),!oe.pathologyCohort||!se.cohortMetadata)return se;switch(oe.updateMask){case"displayName":se.cohortMetadata.displayName=oe.pathologyCohort?.cohortMetadata?.displayName;break;case"description":se.cohortMetadata.description=oe.pathologyCohort?.cohortMetadata?.description;break;case"cohortMetadata":se.cohortMetadata={...oe.pathologyCohort.cohortMetadata,updateTime:se?.cohortMetadata?.updateTime};break;case"slides":let Ee=[],tt=[];const Y=new Set((R?.slides??[]).map(Nt=>Nt.dicomUri)),Re=new Set((oe.pathologyCohort.slides??[]).map(Nt=>Nt.dicomUri));if(tt=(R?.slides??[]).filter(Nt=>!!Nt.dicomUri&&!Re.has(Nt.dicomUri)),Ee=(oe.pathologyCohort.slides??[]).filter(Nt=>!!Nt.dicomUri&&!Y.has(Nt.dicomUri)),Ee.length&&(se.slides=[...se.slides??[],...Ee]),tt.length){const Nt=new Set(tt.map(on=>on.dicomUri));se.slides=(se.slides??[]).filter(on=>!!on.dicomUri&&!Nt.has(on.dicomUri))}break;case"userAccess":const De=new Map((oe.pathologyCohort.userAccess??[]).map(Nt=>[Nt.userEmail,Nt])),nt=new Map((R?.userAccess??[]).map(Nt=>[Nt.userEmail,Nt]));let ht=new Map,jt=new Map;if(ht=new Map((oe.pathologyCohort.userAccess??[]).filter(Nt=>{const on=nt.get(Nt.userEmail);return!on||!(on.userEmail===Nt.userEmail&&on.accessRole===Nt.accessRole)}).map(Nt=>[Nt.userEmail??"",Nt])),jt=new Map((R?.userAccess??[]).filter(Nt=>{const on=De.get(Nt.userEmail);return!on||!(on.userEmail===Nt.userEmail&&on.accessRole===Nt.accessRole)}).map(Nt=>[Nt.userEmail??"",Nt])),ht.size){if(se.userAccess)for(let Nt=0;Nt<(se.userAccess??[]).length;Nt++){const on=se.userAccess[Nt];on.userEmail&&ht.has(on.userEmail)&&(se.userAccess[Nt]=ht.get(on.userEmail),ht.delete(on.userEmail))}se.userAccess=[...se.userAccess??[],...ht.values()]}jt.size&&(se.userAccess=(se.userAccess??[]).filter(Nt=>!!Nt.userEmail&&jt.has(Nt.userEmail)))}return se}sharePathologyCohort(oe){return this.fetch("POST",`/${oe.name}:share`,oe)}savePathologyCohort(oe){return this.fetch("POST",`/${oe.name}:save`,oe)}unsavePathologyCohort(oe){return this.fetch("POST",`/${oe.name}:unsave`,oe)}undeletePathologyCohort(oe){return this.fetch("POST",`/${oe.name}:undelete`,oe)}transferDeIdPathologyCohort(oe){return this.fetch("POST",`/${oe.name}:transfer`,oe)}copyPathologyCohort(oe){return this.fetch("POST",`/${oe.name}:copy`,oe)}exportPathologyCohort(oe){return this.fetch("POST",`/${oe.name}:export`,oe)}identifyCurrentUser(oe={}){return this.fetch("POST",":identifyCurrentUser",oe)}static{this.\u0275fac=function(R){return new(R||ge)(ie.KVO(Le.Qq),ie.KVO(_e.u),ie.KVO(Ce.K))}}static{this.\u0275prov=ie.jDH({token:ge,factory:ge.\u0275fac,providedIn:"root"})}}return ge})();class z{constructor(Me){this.reason=Me,this.isBusy=!0}}class te{constructor(){this.isBusy=!1}}let L=(()=>{class ge{constructor(){this.isBusyStateSubject=new O.t(new te),this.isBusyState$=this.isBusyStateSubject.asObservable()}getIsBusyState$(){return this.isBusyState$}isBusy(){return this.getIsBusyState().isBusy}getIsBusyState(){return this.isBusyStateSubject.getValue()}setIsBusy(oe){this.setIsBusyState(!0,oe)}setIsNotBusy(){this.setIsBusyState(!1)}setIsBusyState(oe,R=""){this.isBusyStateSubject.next(oe?new z(R):new te)}static{this.\u0275fac=function(R){return new(R||ge)}}static{this.\u0275prov=ie.jDH({token:ge,factory:ge.\u0275fac,providedIn:"root"})}}return ge})();var q=a(9423),J=a(2168),X=a(2073);let V=(()=>{class ge{constructor(oe,R,se,Ee,tt,Y,Re,De){this.orchestratorService=oe,this.dicomwebService=R,this.busyService=se,this.logService=Ee,this.dialogService=tt,this.router=Y,this.userService=Re,this.urlSerializer=De,this.cohorts$=new c.m(1),this.currentUser="",this.selectedCohortInfo$=new O.t(void 0),this.selectedPathologyCohort$=new O.t(void 0),this.selectedPathologyCohortCases$=new O.t([]),this.loading$=new O.t(!1),this.loadingCohortInfos$=new O.t(!1),this.loadingSelectedPathologyCohort$=new O.t(!1),this.loadingSelectedPathologyCohortCases$=new O.t(!1),this.loadingProgressSelectedPathologyCohortCases$=new O.t(0),this.selectedCohortCases=new O.t([]),this.cohortsEnabled=!1,this.destroyed$=new c.m(1),this.selectedCohortIsReadOnly$=new O.t(!0),this.cohortsEnabled=W.c.ENABLE_COHORTS,this.setupService()}setupService(){this.cohortsEnabled&&(this.userService.getCurrentUser$().subscribe(oe=>{this.currentUser=oe??""}),this.loading$.next(!0),(0,d.z)([this.userService.getCurrentUser$(),this.selectedPathologyCohort$]).pipe((0,C.Q)(this.destroyed$),(0,x.M)(([oe,R])=>{if(oe&&R){const Ee="PATHOLOGY_USER_ACCESS_ROLE_VIEWER"===(R.userAccess??[]).find(({userEmail:tt})=>tt===oe)?.accessRole;this.selectedCohortIsReadOnly$.next(Ee)}else this.selectedCohortIsReadOnly$.next(!0)})).subscribe(),(0,d.z)([this.loadingCohortInfos$,this.loadingSelectedPathologyCohort$,this.loadingSelectedPathologyCohortCases$]).pipe((0,C.Q)(this.destroyed$),(0,x.M)(oe=>{const R=oe.some(se=>!0===se);this.loading$.next(R)})).subscribe(),this.selectedPathologyCohort$.pipe((0,x.M)(oe=>{(!this.selectedCohortInfo$.getValue()||this.selectedCohortInfo$.getValue()?.name!==oe?.name)&&oe&&this.selectedCohortInfo$.next(this.pathologyCohortToCohortInfo(oe))}),(0,D.n)(oe=>oe?(this.selectedPathologyCohortCases$.next([]),this.fetchPathologyCohortCases(oe)):(0,w.of)(void 0)),(0,p.j)(()=>{this.loadingSelectedPathologyCohort$.next(!1)})).subscribe())}fetchPathologyCohortCases(oe){const R=oe.slides?(0,de.do)(oe.slides):new Map,se=[...R.keys()].map(Ee=>{const tt=R.get(Ee)??[];return this.fetchCase(Ee,tt,oe)});return this.loadingProgressSelectedPathologyCohortCases$.next(0),this.loadingSelectedPathologyCohortCases$.next(!0),(0,ne.s2)(se).pipe((0,g.Z)(({result:Ee,progress:tt})=>(tt.pipe((0,x.M)(Y=>{this.loadingProgressSelectedPathologyCohortCases$.next(Y)}),(0,y.w)()).subscribe(),Ee)),(0,x.M)(Ee=>{this.selectedPathologyCohortCases$.next(Ee)}),(0,p.j)(()=>{this.loadingSelectedPathologyCohortCases$.next(!1),this.loadingProgressSelectedPathologyCohortCases$.next(0)}))}fetchCase(oe,R,se){const Ee={accessionNumber:"failed to load",caseId:oe,date:"",failedToLoad:!0,slides:R},tt=se?.cohortMetadata?.isDeid??!1;return this.dicomwebService.getStudyMeta(oe).pipe((0,h.T)(Y=>{if(!Y||0===Y.length)return this.logService.error({name:"Can not get study meta data",message:`No meta returned ${oe}, skipping`,stack:"cohortService: cohortsToCases"}),Ee;const Re=(0,de.w8)(oe,Y[0],tt);return Re.slides=R,Re}),(0,u.W)(Y=>(this.logService.error({name:"Can not get study meta data",message:`No meta returned ${oe}, skipping. Error: ${Y}`,stack:"cohortService: cohortsToCases"}),(0,w.of)(Ee))))}fetchPathologyCohort(oe){this.loadingSelectedPathologyCohort$.next(!0),this.fetchPathologyCohortSubscription?.unsubscribe(),this.fetchPathologyCohortSubscription=this.orchestratorService.getPathologyCohort({name:oe}).pipe((0,C.Q)(this.destroyed$),(0,x.M)(R=>{if("PATHOLOGY_COHORT_LIFECYCLE_STAGE_SUSPENDED"===R?.cohortMetadata?.cohortStage)throw new Error;this.selectedPathologyCohort$.next(R),this.loadingSelectedPathologyCohort$.next(!1)}),(0,u.W)(R=>{this.loadingSelectedPathologyCohort$.next(!1),this.logService.error({name:"Error dialog",message:JSON.stringify(R),stack:"cohort_service"});const Ee=this.router.url,Y=`User does not have permission to access cohort '${Ee.slice(Ee.lastIndexOf("pathologyCohorts/")+17)}' or it does not exist.`;return this.dialogService.error(Y).pipe((0,C.Q)(this.destroyed$)).subscribe(Re=>{Re&&(this.unselectCohort(),this.router.navigateByUrl("/"))}),(0,w.of)(void 0)})).subscribe()}loadAllCohorts(){this.loadingCohortInfos$.next(!0),!this.fetchPathologyCohortsSubscription&&(this.fetchPathologyCohortsSubscription=this.orchestratorService.listPathologyCohorts({view:"PATHOLOGY_COHORT_VIEW_METADATA_ONLY"}).pipe((0,C.Q)(this.destroyed$),(0,x.M)(R=>{const se=(R.pathologyCohorts??[]).filter(Ee=>"PATHOLOGY_COHORT_LIFECYCLE_STAGE_ACTIVE"===Ee.cohortMetadata?.cohortStage).map(Ee=>this.pathologyCohortToCohortInfo(Ee));se.sort((Ee,tt)=>Ee.displayName.localeCompare(tt.displayName)),this.cohorts$.next(se),this.loadingCohortInfos$.next(!1)}),(0,u.W)(R=>{this.logService.error({name:"Error loading cohorts",message:JSON.stringify(R),stack:"cohort_service"});const se="Failed to load cohorts.";throw this.dialogService.error(se),this.loadingCohortInfos$.next(!1),new Error(se)})).subscribe(()=>{this.fetchPathologyCohortsSubscription=void 0}))}parseCohorts(oe,R,se){return oe.filter(({userAccess:Ee})=>(Ee??[]).find(({userEmail:Y})=>Y===R)?.accessRole===se)}shareCohort(oe){return this.orchestratorService.sharePathologyCohort(oe).pipe((0,x.M)(R=>{this.selectedPathologyCohort$.next(R)}),(0,u.W)(R=>{const se=R.message.indexOf("The following user(s)");let Ee="Failed to save share cohort.";return-1!==se&&(Ee=R.message.substring(se,Number(R.message.lastIndexOf("."))+1)),this.logService.error({name:"Error dialog",message:JSON.stringify(R),stack:"cohort_service"}),this.dialogService.error(Ee),(0,w.of)()}))}selectCohortInfo(oe){this.selectedCohortInfo$.next(oe)}unselectCohort(){this.selectedPathologyCohort$.next(void 0),this.selectedCohortInfo$.next(void 0)}isCohortSelected(){return void 0!==this.selectedCohortInfo$.getValue()}getSelectedCohortName(){return this.selectedPathologyCohort$.getValue()?.name??""}getSelectedCohortName$(){return this.selectedPathologyCohort$.pipe((0,h.T)(oe=>oe?.name))}getSelectedCohortDisplayName(){return this.selectedPathologyCohort$.getValue()?.cohortMetadata?.displayName??""}getSelectedCohortDisplayName$(){return this.selectedPathologyCohort$.pipe((0,h.T)(oe=>oe?.cohortMetadata?.displayName))}getSelectedCohortDescription(){return this.selectedPathologyCohort$.getValue()?.cohortMetadata?.description??""}getSelectedCohortDescription$(){return this.selectedPathologyCohort$.pipe((0,h.T)(oe=>oe?.cohortMetadata?.description??""))}getSelectedSlidesDicomUris$(){return this.selectedPathologyCohort$.pipe((0,P.F)(),(0,T.p)(oe=>void 0!==oe),(0,h.T)(oe=>oe?.slides?.map(({dicomUri:R})=>R)??[]))}getPathologyCohort(oe){return this.selectedPathologyCohort$.getValue()?.name===oe?(0,w.of)(this.selectedPathologyCohort$.getValue()):this.orchestratorService.getPathologyCohort({name:oe})}reloadCohortInfos(){this.loadAllCohorts()}reloadSelectedCohort(){this.isCohortSelected()&&this.fetchPathologyCohort(this.selectedCohortInfo$.getValue().name)}reloadSelectCohortIfNameMatching(oe){var R=this;return(0,o.A)(function*(){R.selectedPathologyCohort$.getValue()?.name===oe&&R.fetchPathologyCohort(R.selectedPathologyCohort$.getValue().name)})()}pathologyUserAccessRoleToLabel(oe){switch(oe){case"PATHOLOGY_USER_ACCESS_ROLE_OWNER":return"Owner";case"PATHOLOGY_USER_ACCESS_ROLE_ADMIN":return"Admin";case"PATHOLOGY_USER_ACCESS_ROLE_EDITOR":return"Editor";case"PATHOLOGY_USER_ACCESS_ROLE_VIEWER":return"Viewer";default:return this.logService.error({name:"Error converting pathology UserAccessRole to Label",message:JSON.stringify({accessRole:oe}),stack:"cohort_service"}),""}}pathologyCohortToCohortInfo(oe){const R=(oe.userAccess??[]).find(({userEmail:se})=>se===this.currentUser)?.accessRole??"PATHOLOGY_USER_ACCESS_ROLE_UNSPECIFIED";return{displayName:oe.cohortMetadata?.displayName??"",name:oe.name??"",access:R,isDeid:oe?.cohortMetadata?.isDeid??!1,isShared:"PATHOLOGY_USER_ACCESS_ROLE_OWNER"!==R,isExported:"PATHOLOGY_COHORT_BEHAVIOR_CONSTRAINTS_CANNOT_BE_EXPORTED"===oe?.cohortMetadata?.cohortBehaviorConstraints,pathologyCohort:oe}}addSlidesToPathologyCohort(oe,R){oe={...oe};const se=oe?.slides?.map(Y=>Y.dicomUri),Ee=se?R.filter(Y=>!se.includes(Y)):R;if(0===Ee.length)throw new j;const tt=Ee.map(Y=>({dicomUri:Y}));return oe.slides=[...oe.slides?oe.slides:[],...tt],oe}addSlidesToCohort(oe,R){return this.loading$.next(!0),this.busyService.getIsBusyState$().pipe((0,E.$)(se=>!se.isBusy),(0,x.M)(()=>{this.busyService.setIsBusy(`Adding slide${1===R.length?"":"s"} to cohort...`)}),(0,D.n)(()=>this.getPathologyCohort(oe)),(0,h.T)(se=>({pathologyCohort:se=this.addSlidesToPathologyCohort(se,R),updateMask:"slides",view:"PATHOLOGY_COHORT_VIEW_METADATA_ONLY"})),(0,D.n)(se=>this.orchestratorService.updatePathologyCohort(se,this.selectedPathologyCohort$.getValue())),(0,x.M)(()=>{this.busyService.setIsNotBusy(),this.reloadSelectCohortIfNameMatching(oe),this.loading$.next(!1)}),(0,h.T)(()=>!0),(0,u.W)(se=>(this.loading$.next(!1),se instanceof j||(this.logService.error({name:"Error dialog",message:JSON.stringify(se),stack:"cohort_service"}),this.dialogService.error("Error while adding slide to cohort.")),this.busyService.setIsNotBusy(),(0,w.of)(se instanceof j))))}removeSlideFromCohortSlideList(oe,R){oe={...oe};const se=oe?.slides?.map(Ee=>Ee.dicomUri);return oe.slides=se?oe?.slides?.filter(Ee=>!Ee.dicomUri||!R.includes(Ee.dicomUri)):[],oe}removeSlidesFromCohort(oe,R){return this.loading$.next(!0),this.busyService.getIsBusyState$().pipe((0,E.$)(se=>!se.isBusy),(0,x.M)(()=>{this.busyService.setIsBusy(`Removing slide${1===R.length?"":"s"} to cohort...`)}),(0,D.n)(()=>this.getPathologyCohort(oe)),(0,E.$)(),(0,h.T)(se=>({pathologyCohort:se=this.removeSlideFromCohortSlideList(se,R),updateMask:"slides",view:"PATHOLOGY_COHORT_VIEW_METADATA_ONLY"})),(0,D.n)(se=>this.orchestratorService.updatePathologyCohort(se,this.selectedPathologyCohort$.getValue())),(0,x.M)(()=>{this.busyService.setIsNotBusy(),this.reloadSelectCohortIfNameMatching(oe),this.loading$.next(!1)}),(0,h.T)(()=>!0),(0,u.W)(se=>(this.loading$.next(!1),this.logService.error({name:"Error dialog",message:JSON.stringify(se),stack:"cohort_service"}),this.dialogService.error("Error while removing slide from cohort."),(0,w.of)(!1))))}removeCasesFromCohort(oe,R){const se=(0,de.do)(this.selectedPathologyCohort$.getValue().slides??[]),Ee=R.reduce((tt,Y)=>{const Re=se.get(Y).map(De=>De.dicomUri).filter(De=>!!De);return new Set([...tt,...Re])},new Set);return this.removeSlidesFromCohort(oe,[...Ee])}ngOnDestroy(){this.selectedCohortInfo$.unsubscribe(),this.destroyed$.next(!0),this.destroyed$.complete()}routeToCohort(oe,R){const se=this.getCohortPath(oe,R);this.router.navigateByUrl(se)}getCohortPath(oe,R){const se={[I]:oe};return R&&(se[M]=R),this.urlSerializer.serialize(this.router.createUrlTree(["cohorts"],{queryParams:se}))}routeToSelectedCohort(){this.isCohortSelected()&&this.routeToCohort(this.getSelectedCohortName())}createCohort(oe,R,se){return this.orchestratorService.createPathologyCohort({pathologyCohort:{cohortMetadata:{displayName:oe,description:se,cohortAccess:"PATHOLOGY_COHORT_ACCESS_RESTRICTED"},slides:R.map(Ee=>({dicomUri:Ee}))}}).pipe((0,h.T)(Ee=>{if(!Ee.name)throw new Error("Newly created cohort did not have a name.");return Ee}),(0,u.W)(Ee=>(this.logService.error({name:"Error dialog",message:JSON.stringify(Ee),stack:"cohort_service"}),this.dialogService.error("Failed to create cohort."),(0,w.of)())))}updateCohortDisplayNameAndDescription(oe,R){const se=this.getSelectedCohortName();return this.getPathologyCohort(se).pipe((0,D.n)(Ee=>this.orchestratorService.updatePathologyCohort({pathologyCohort:{name:this.getSelectedCohortName(),cohortMetadata:{...Ee?.cohortMetadata,displayName:oe,description:R}},updateMask:["displayName","description"].join(",")},this.selectedPathologyCohort$.getValue())),(0,x.M)(()=>{this.reloadCohortInfos(),this.reloadSelectedCohort()}),(0,h.T)(()=>!0),(0,u.W)(Ee=>(this.logService.error({name:"Error dialog",message:JSON.stringify(Ee),stack:"cohort_service"}),this.dialogService.error("Failed to save cohort display name."),(0,w.of)(!1))))}saveCohort(oe){return this.orchestratorService.savePathologyCohort(oe).pipe((0,h.T)(()=>!0),(0,u.W)(R=>(this.logService.error({name:"Error dialog",message:JSON.stringify(R),stack:"cohort_service"}),this.dialogService.error("Failed to save shared cohort."),(0,w.of)(!1))))}unsaveCohort(oe){return this.orchestratorService.unsavePathologyCohort(oe).pipe((0,h.T)(()=>!0),(0,u.W)(R=>(this.logService.error({name:"Error dialog",message:JSON.stringify(R),stack:"cohort_service"}),this.dialogService.error("Failed to unsave shared cohort."),(0,w.of)(!1))))}exportCohort(oe){const R={name:this.getSelectedCohortName(),gcsDestPath:oe};return this.orchestratorService.exportPathologyCohort(R).pipe((0,h.T)(()=>!0),(0,u.W)(se=>(this.logService.error({name:"Error dialog",message:JSON.stringify(se),stack:"cohort_service"}),this.dialogService.error("Failed to export cohort."),(0,w.of)(!1))))}deIdCohort(oe,R){const se=W.c.IMAGE_DEID_DICOM_STORE_BASE_URL.split("/projects/");if(1===se.length)return this.dialogService.error("The configured DICOM store for de-identified data is not supported for this operation.").subscribe(),(0,w.of)(!1);const Ee={name:this.getSelectedCohortName(),displayNameTransferred:oe,destDicomImages:`projects/${se[1].replace("/dicomWeb","")}`};return R&&(Ee.descriptionTransferred=R),this.orchestratorService.transferDeIdPathologyCohort(Ee).pipe((0,h.T)(()=>!0),(0,u.W)(tt=>(this.logService.error({name:"Error dialog",message:JSON.stringify(tt),stack:"cohort_service"}),tt?.originalStack?.includes("The server encountered a temporary error and could not complete your request.

Please try again in 30 seconds.")?(0,w.of)(!0):(this.dialogService.error("Failed to begin de-identification process."),(0,w.of)(!1)))))}copyCohort(oe,R){const se={name:this.getSelectedCohortName(),displayNameCopied:oe};return R&&(se.descriptionCopied=R),this.orchestratorService.copyPathologyCohort(se).pipe((0,x.M)(Ee=>{Ee?.name&&(this.loadAllCohorts(),this.fetchPathologyCohort(Ee.name))}),(0,h.T)(()=>!0),(0,u.W)(Ee=>(this.logService.error({name:"Error dialog",message:JSON.stringify(Ee),stack:"cohort_service"}),this.dialogService.error("Failed to copy cohort."),(0,w.of)(!1))))}deleteSelectedCohort(){return this.orchestratorService.deletePathologyCohort({name:this.getSelectedCohortName()}).pipe((0,h.T)(()=>!0),(0,u.W)(oe=>(this.logService.error({name:"Error dialog",message:JSON.stringify(oe),stack:"cohort_service"}),this.dialogService.error("Failed to delete cohort."),(0,w.of)(!1))))}static{this.\u0275fac=function(R){return new(R||ge)(ie.KVO(Se),ie.KVO(de.w),ie.KVO(L),ie.KVO(Ce.K),ie.KVO(q.o),ie.KVO(J.Ix),ie.KVO(X.D),ie.KVO(J.Sd))}}static{this.\u0275prov=ie.jDH({token:ge,factory:ge.\u0275fac,providedIn:"root"})}}return ge})();const I="cohortName",M="linkToken";class j extends Error{}},9423:(ut,Ie,a)=>{"use strict";a.d(Ie,{o:()=>ne});var o=a(6354),c=a(177),O=a(8834),d=a(5351),w=a(9213),C=a(4438);let x=(()=>{class de{constructor(Z,ae){this.dialogRef=Z,this.data=ae,this.title="Confirmed",this.message="",ae&&(this.title=ae.title||"Confirmed",this.message=ae.message||"")}onOk(){this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}static{this.\u0275fac=function(ae){return new(ae||de)(C.rXU(d.CP),C.rXU(d.Vh,8))}}static{this.\u0275cmp=C.VBU({type:de,selectors:[["dialog-confirmation"]],decls:12,vars:2,consts:[["mat-dialog-title",""],["color","primary"],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-stroked-button","","color","primary","type","button",3,"click"],["mat-flat-button","","color","primary","type","button",3,"click"]],template:function(ae,Le){1&ae&&(C.j41(0,"div",0)(1,"mat-icon",1),C.EFF(2,"not_listed_location"),C.k0s(),C.j41(3,"span"),C.EFF(4),C.k0s()(),C.j41(5,"div",2),C.EFF(6),C.k0s(),C.j41(7,"div",3)(8,"button",4),C.bIt("click",function(){return Le.onCancel()}),C.EFF(9,"Cancel"),C.k0s(),C.j41(10,"button",5),C.bIt("click",function(){return Le.onOk()}),C.EFF(11,"OK"),C.k0s()()),2&ae&&(C.R7$(4),C.JRh(Le.title),C.R7$(2),C.SpI(" ",Le.message,"\n"))},dependencies:[c.MD,O.Hl,O.$z,w.m_,w.An],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:space-between}.mat-mdc-dialog-title[_ngcontent-%COMP%]{align-items:center;display:grid;grid-column-gap:.4em;grid-template-columns:min-content 1fr}"]})}}return de})();var D=a(9417),p=a(2408);let y=(()=>{class de{constructor(Z,ae){this.dialogRef=Z,this.data=ae,this.title="Question?",this.message="",this.answer="",ae&&(this.title=ae.title||"",this.message=ae.message||"",this.answer=ae.answer||"")}keyPressHandler(Z){"Enter"===Z.code&&this.onOk()}onOk(){this.dialogRef.close(this.answer)}onCancel(){this.dialogRef.close()}static{this.\u0275fac=function(ae){return new(ae||de)(C.rXU(d.CP),C.rXU(d.Vh,8))}}static{this.\u0275cmp=C.VBU({type:de,selectors:[["dialog-string-questions"]],inputs:{title:"title",message:"message",answer:"answer"},decls:10,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"question-answer"],["aria-label","Answer","matInput","",1,"question-answer-input",3,"keypress","ngModelChange","placeholder","ngModel"],["mat-dialog-actions",""],["mat-stroked-button","","color","primary","type","button",3,"click"],["mat-flat-button","","color","primary","type","button",3,"click"]],template:function(ae,Le){1&ae&&(C.j41(0,"div",0),C.EFF(1),C.k0s(),C.j41(2,"div",1)(3,"mat-form-field",2)(4,"input",3),C.bIt("keypress",function(Ce){return Le.keyPressHandler(Ce)}),C.mxI("ngModelChange",function(Ce){return C.DH7(Le.answer,Ce)||(Le.answer=Ce),Ce}),C.k0s()()(),C.j41(5,"div",4)(6,"button",5),C.bIt("click",function(){return Le.onCancel()}),C.EFF(7,"Cancel"),C.k0s(),C.j41(8,"button",6),C.bIt("click",function(){return Le.onOk()}),C.EFF(9,"OK"),C.k0s()()),2&ae&&(C.R7$(),C.SpI(" ",Le.title,"\n"),C.R7$(3),C.FS9("placeholder",Le.message),C.R50("ngModel",Le.answer))},dependencies:[c.MD,p.rl,D.YN,D.me,D.BC,D.vS,O.$z],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:space-between}.mat-mdc-form-field[_ngcontent-%COMP%]{display:grid}"]})}}return de})();var h=a(5416);function u(de,ie){1&de&&(C.j41(0,"div"),C.EFF(1,"When reporting this issue, please include the log by using the button below."),C.k0s())}function P(de,ie){if(1&de){const Z=C.RV6();C.j41(0,"button",7),C.bIt("click",function(){C.eBV(Z);const Le=C.XpG();return C.Njj(Le.copyLogs())}),C.EFF(1,"Copy logs to clipboard"),C.k0s()}}let T=(()=>{class de{constructor(Z,ae){this.snackBar=Z,this.data=ae,this.title="Something went wrong",ae&&(this.title=ae.title||"Something went wrong",this.message=ae.message,this.copyLogsToClipboard=ae.copyLogsToClipboard)}copyLogs(){this.copyLogsToClipboard&&this.copyLogsToClipboard()}dismiss(){this.snackBar.dismiss()}static{this.\u0275fac=function(ae){return new(ae||de)(C.rXU(h.UG),C.rXU(h.ht,8))}}static{this.\u0275cmp=C.VBU({type:de,selectors:[["snackbar-error"]],decls:13,vars:4,consts:[["mat-dialog-title",""],["color","warn"],["mat-dialog-content",""],[4,"ngIf"],["mat-dialog-actions",""],["mat-stroked-button","","color","primary",3,"click",4,"ngIf"],["mat-flat-button","","color","primary",3,"click"],["mat-stroked-button","","color","primary",3,"click"]],template:function(ae,Le){1&ae&&(C.j41(0,"div",0)(1,"mat-icon",1),C.EFF(2,"warning"),C.k0s(),C.j41(3,"span"),C.EFF(4),C.k0s()(),C.j41(5,"div",2)(6,"div"),C.EFF(7),C.k0s(),C.DNE(8,u,2,0,"div",3),C.k0s(),C.j41(9,"div",4),C.DNE(10,P,2,0,"button",5),C.j41(11,"button",6),C.bIt("click",function(){return Le.dismiss()}),C.EFF(12,"Close"),C.k0s()()),2&ae&&(C.R7$(4),C.JRh(Le.title),C.R7$(3),C.JRh(Le.message),C.R7$(),C.Y8G("ngIf",Le.copyLogsToClipboard),C.R7$(2),C.Y8G("ngIf",Le.copyLogsToClipboard))},dependencies:[w.m_,w.An,O.Hl,O.$z,d.hM,d.BI,d.E7,d.Yi,c.MD,c.bT],styles:[".mat-mdc-dialog-title[_ngcontent-%COMP%]{display:grid;grid-template-columns:min-content 1fr;grid-column-gap:.4em;align-items:center}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:space-between}.mat-mdc-dialog-content[_ngcontent-%COMP%]{display:grid;grid-row-gap:1em}"]})}}return de})();var E=function(de){return de.CONFIRM="Are you sure?",de.ERROR="Something went wrong...",de}(E||{});let ne=(()=>{class de{constructor(Z,ae){this.dialog=Z,this.snackBar=ae}confirm(Z,ae=E.CONFIRM){return this.dialog.open(x,{data:{title:ae,message:Z},autoFocus:!1,disableClose:!0,panelClass:"mc-dialog",width:"25em"})}openComponentDialog(Z,ae){return this.dialog.open(Z,ae)}error(Z){return this.openErrorSnackbar(Z)}openErrorSnackbar(Z){return this.snackBar.openFromComponent(T,{data:{title:E.ERROR,message:Z},duration:1e4}).afterDismissed().pipe((0,o.T)(ae=>!!ae))}prompt(Z,ae){const Le=this.dialog.open(y,{autoFocus:!1,disableClose:!0,panelClass:"mc-dialog"});return Le.componentInstance.title=Z,Le.componentInstance.message=ae,Le.afterClosed()}close(){this.dialog.closeAll()}static{this.\u0275fac=function(ae){return new(ae||de)(C.KVO(d.bZ),C.KVO(h.UG))}}static{this.\u0275prov=C.jDH({token:de,factory:de.\u0275fac,providedIn:"root"})}}return de})()},2901:(ut,Ie,a)=>{"use strict";a.d(Ie,{AI:()=>ge,RI:()=>X});var o=a(4907),c=a(7161);const O="1.3.6.1.4.1.11129.5.7";class x extends Error{}class D{constructor(oe,R){this.logService=R,this.randFraction="",this.lastTimeStrLen=0,this.validatePrefix(oe)&&(this.dicomGuidPrefix=oe),this.counter=Math.floor(999*Math.random())+1}logAndThrowError(oe){throw this.logService.error(oe),oe}isUidBlockCorrectlyFormatted(oe){if(!oe||oe.match(".*[^0-9].*"))return!1;const R=oe.charCodeAt(0);return!(1===oe.length&&R<48||oe.length>1&&R<49)}validatePrefix(oe){""===oe&&this.logAndThrowError(new x("DICOM UID prefix is undefined.")),(oe=oe.trim().replace(/\.+$/gm,"")).startsWith(O)||this.logAndThrowError(new x(`DICOM UID prefix must start with "${O}". The prefix is defined as "${oe}."`));const R=oe.split("."),se=O.split(".").length,Ee=R.length;se+1!==Ee&&se+2!==Ee&&this.logAndThrowError(new x(`DICOM UID suffix must be defined with 1 or 2 sub-domains of "${O}"`));for(let tt=se;tt3)&&this.logAndThrowError(new x("DICOM UID suffix must end with a suffix of 3 digits or less."))}return oe}getTime(){const oe=(new Date).getTime().toString();return 0===this.lastTimeStrLen&&(this.lastTimeStrLen=oe.length),oe}getCounter(){const oe=String(this.counter);return oe.padStart(String(999).length-oe.length,"0")}incrementCounter(){return this.counter||(this.counter=Math.floor(999*Math.random()-1)),this.counter++,this.counter>999&&(this.counter=1),this.getCounter()}initRandomFraction(){const tt=[this.dicomGuidPrefix,"1",this.getTime()+this.getCounter()].join(".").length-64;if(0===tt)this.randFraction=String(Math.floor(9*Math.random()));else{const Y=[String(Math.floor(9*Math.random())+1)];for(let Re=0;Re>tt;Re--)Y.push(String(Math.floor(10*Math.random())));this.randFraction=Y.join("")}return this.randFraction}getRandomFraction(){return""===this.randFraction&&(this.randFraction=this.initRandomFraction()),this.randFraction}updateRandomFraction(){return this.randFraction=this.initRandomFraction(),this.randFraction}generateUid(){this.randFraction=this.getRandomFraction();const oe=this.getTime();oe.length!==this.lastTimeStrLen&&(this.lastTimeStrLen=oe.length,this.updateRandomFraction());const R=this.getCounter(),se=[this.dicomGuidPrefix,this.randFraction,oe+R].join(".");return se.length>64&&this.logAndThrowError(new Error("UID length exceeds max length for DICOM UID.")),se}}function p(Me,oe,R=!0){const se=Uint8Array.from(atob(oe),Re=>Re.charCodeAt(0)),Ee=Me.BYTES_PER_ELEMENT,Y=new Array(se.length/Ee);if(se.length%Ee!=0)throw new Error(`Invalid byte count for ${8*Ee}-bit float data.`);for(let Re=0;Re[tt/R,-Y/se]).flat()}function M(Me,oe){const R=(0,o.$K)(Me,o.lo.REFERENCED_SERIES_SEQUENCE)[0],se=oe.sopClassUid,Ee=(0,o._W)(R,o.lo.REFERENCED_SERIES_SEQUENCE,o.lo.REFERENCED_SOP_INSTANCE_UID)||oe.levelMap[0].properties[0].instanceUid,tt=function K(Me,oe){return oe.levelMap.find(R=>R.properties.some(se=>se.instanceUid===Me))}(Ee,oe);return{referencedImage:{sopClassUid:se,sopInstanceUid:Ee,pixelSize:{width:tt?.pixelWidth??0,height:tt?.pixelHeight??0},dicomModel:tt.dicomModel},seriesInstanceUid:(0,o._W)(R,o.lo.SERIES_INSTANCE_UID)||(0,o._W)(Me,o.lo.SERIES_INSTANCE_UID)}}function j(Me){return Number(Me.replace(/[^0-9]/g,"").slice(-9))}let ge=(()=>{class Me{constructor(R,se,Ee,tt,Y){this.authGuard=R,this.http=se,this.logService=Ee,this.userService=tt,this.uuidGen=Y,this.currentUser="",this.destroyed$=new h.m(1),this.dicomAnnotationInstances$=new u.t([]),this.loadingDicomAnnotations$=new u.t(!0),Y?this.uuidGenerator=Y:Ae.c.DICOM_GUID_PREFIX&&(this.uuidGenerator=new D(Ae.c.DICOM_GUID_PREFIX,this.logService)),(Ae.c.ANNOTATION_HASH_STORED_USER_EMAIL?this.userService.getCurrentUserHash$():this.userService.getCurrentUser$()).subscribe(Re=>{this.currentUser=Re??""})}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}annotationsToDicomModel(R){if(!R||!R.annotationGroupSequence)return{};const se=R.instance.referencedSeries.referencedImage.dicomModel,Ee=new Date,tt=Ee.toJSON().slice(0,10).split("-").join(""),Y=(0,o.SY)("DA",tt),Re=(0,o.SY)("TM",[`${String(Ee.getHours()).padStart(2,"0")}${String(Ee.getMinutes()).padStart(2,"0")}${String(Ee.getSeconds()).padStart(2,"0")}.${String(Ee.getMilliseconds()).padEnd(6,"0")}`]),De={"00480301":(0,o.SY)("CS","VOLUME"),"00200010":se["00200010"],"00400560":se["00400560"],"00020012":(0,o.SY)("UI","1.3.6.1.4.1.11129.5.4.1"),"00200013":(0,o.SY)("IS",[j(R.instance.path.instanceUID)]),"00020013":(0,o.SY)("SH","Google"),"00400513":(0,o.SY)("CS"),"00400518":(0,o.SY)("SQ"),"00400555":se["00400555"],"00080005":(0,o.SY)("CS","ISO_IR 192"),"00080020":se["00080020"],"00080023":Y,"00080030":se["00080030"],"00080033":Re,"00080050":se["00080050"],"00080070":(0,o.SY)("LO","GOOGLE"),"00080080":(0,o.SY)("LO"),"00080090":(0,o.SY)("PN"),"00081090":(0,o.SY)("LO","Madcap"),"00100010":se["00100010"],"00100020":se["00100020"],"00100030":se["00100030"],"00100040":se["00100040"],"00181000":(0,o.SY)("LO","1.0"),"00181020":(0,o.SY)("LO","1.0"),"00200011":(0,o.SY)("IS",[j(R.instance.path.seriesUID)]),"00700081":(0,o.SY)("LO","microscopy annotations"),"00700080":(0,o.SY)("CS","SM_ANN"),[o.lo.CONTAINER_IDENTIFIER]:se[o.lo.CONTAINER_IDENTIFIER],[o.lo.TOTAL_PIXEL_MATRIX_ORIGIN_SEQUENCE]:se[o.lo.TOTAL_PIXEL_MATRIX_ORIGIN_SEQUENCE],[o.lo.MODALITY]:(0,o.SY)("CS",o.Oo.ANNOTATION),[o.lo.TRANSFER_SYNTAX_UID]:(0,o.SY)("UI",o.f1.IMPLICIT_VR_LITTLE_ENDIAN),[o.lo.SOP_CLASS_UID]:(0,o.SY)("UI",o.fg.MICROSCOPY_BULK_SIMPLE_ANNOTATIONS_STORAGE),[o.lo.STUDY_INSTANCE_UID]:(0,o.SY)("UI",R.instance.path.studyUID),[o.lo.SERIES_INSTANCE_UID]:(0,o.SY)("UI",R.instance.path.seriesUID),[o.lo.SOP_INSTANCE_UID]:(0,o.SY)("UI",R.instance.path.instanceUID),[o.lo.ANNOTATION_COORDINATE_TYPE]:(0,o.SY)("CS",R.annotationCoordinateType),[o.lo.INSTANCE_CREATION_TIME]:Re,[o.lo.INSTANCE_CREATION_DATE]:Y},nt=(Nt,on,ln)=>{De[Nt]=(0,o.SY)(ln,on)};if(R.instance.referencedSeries){const Nt=this.buildReferencedSeriesModel(R.instance.referencedSeries);nt(o.lo.REFERENCED_SERIES_SEQUENCE,[Nt],"SQ"),nt(o.lo.REFERENCED_IMAGE_SEQUENCE,(0,o.$K)(Nt,o.lo.REFERENCED_INSTANCE_SEQUENCE),"SQ")}const ht=R.annotationGroupSequence.map(Nt=>this.buildAnnotationGroupModel(Nt,R.instance.referencedSeries.referencedImage.pixelSize));ht.length>0&&nt(o.lo.ANNOTATION_GROUP_SEQUENCE,ht,"SQ");const jt=(0,o.SY)("SQ",[{[o.lo.LONG_CODE_VALUE]:(0,o.SY)("UC",R.instance.annotatorId??"unknown"),[o.lo.CODE_MEANING]:(0,o.SY)("LO","author"),"00080102":(0,o.SY)("LO","99AUTH")}]);return De[o.lo.OPERATOR_IDENTIFICATION_SEQUENCE]=(0,o.SY)("SQ",[{[o.lo.PERSON_IDENTIFICATION_CODE_SEQUENCE]:jt}]),De}bulkDataURItoInlineBinary(R,se){if(R.BulkDataURI){const Ee={...se&&{authorization:"Bearer "+se},Accept:"application/octet-stream; transfer-syntax=*"};return this.http.get(R.BulkDataURI,{headers:Ee,responseType:"arraybuffer"}).pipe((0,W.T)(tt=>function I(Me){let oe="";const R=new Uint8Array(Me),se=R.byteLength;for(let Ee=0;Ee(R.InlineBinary=tt,R)))}return(0,P.of)(R)}createOrModifyDicomAnnotation(R,se=3){if(!Ae.c.ANNOTATIONS_DICOM_STORE_BASE_URL)return T.w;R.instance.path.instanceUID=this.generateUUID();const Ee=[...this.dicomAnnotationInstances$.getValue()].find(Y=>Y.annotatorId===this.currentUser);R.instance.path.seriesUID=Ee?Ee.path.seriesUID:this.dicomAnnotationInstances$.getValue().length>0?this.dicomAnnotationInstances$.getValue()[0].path.seriesUID:this.generateUUID(!0);const tt=this.annotationsToDicomModel(R);return Ee?(this.loadingDicomAnnotations$.next(!0),this.writeDicomAnnotations(tt,se).pipe((0,ne.Q)(this.destroyed$),(0,W.T)(()=>{const Y=R.instance;let Re=this.dicomAnnotationInstances$.getValue();const De=Re.filter(({annotatorId:nt})=>nt===this.currentUser);return Re=Re.filter(({annotatorId:nt})=>nt!==this.currentUser),Re.push(Y),this.dicomAnnotationInstances$.next(Re),De}),(0,Z.n)(Y=>{const Re=Y.map(De=>this.deleteDicomAnnotationsPath(De.path));return(0,E.p)(Re)}),(0,W.T)(()=>tt),(0,ie.j)(()=>{this.loadingDicomAnnotations$.next(!1)}))):this.writeDicomAnnotations(tt,se).pipe((0,ne.Q)(this.destroyed$),(0,de.M)(Y=>{const Re=R.instance,De=this.dicomAnnotationInstances$.getValue(),nt=[Re];De.length&&nt.push(...De),this.dicomAnnotationInstances$.next(nt)}),(0,W.T)(()=>tt),(0,ie.j)(()=>{this.loadingDicomAnnotations$.next(!1)}))}deleteDicomAnnotations(R){this.loadingDicomAnnotations$.next(!0);const se=Ae.c.ANNOTATIONS_DICOM_STORE_BASE_URL+Ae.c.ANNOTATIONS_DICOM_STORE_PARENT+R;return this.loadingDicomAnnotations$.next(!0),this.authGuard.getOAuthToken().pipe((0,ne.Q)(this.destroyed$),(0,Z.n)(Ee=>{const tt={...Ee&&{authorization:"Bearer "+Ee}};return this.http.delete(se,{headers:tt})}),(0,ae.W)(Ee=>{throw Ee=JSON.stringify(Ee),this.logService.error({name:`httpRequest: "${se}"`,message:Ee}),new Error("Error while deleting Dicom annotations.")}),(0,ie.j)(()=>{this.loadingDicomAnnotations$.next(!1)}))}deleteDicomAnnotationsPath(R){return this.deleteDicomAnnotations((0,c.hd)(R))}dicomModelToAnnotationInstance(R,se,Ee=0){const tt=(0,o._W)(R,o.lo.SOP_INSTANCE_UID),Y=(0,o._W)(R,o.lo.SERIES_INSTANCE_UID),Re=(0,o._W)(R,o.lo.STUDY_INSTANCE_UID),De=this.getAnnotatorIdByDicomAnnotationInstance(R)||`Unknown user ${Ee+1}`,nt=this.getCreationDateAndTimeByDicomModel(R);return{path:{studyUID:Re,seriesUID:Y,instanceUID:tt},annotatorId:De,referencedSeries:M(R,se),...nt&&{creationDateAndTime:nt}}}dicomModelToAnnotations(R,se){const tt=M(R,se).referencedImage.pixelSize,Y=(0,o._W)(R,o.lo.ANNOTATION_COORDINATE_TYPE);return{instance:this.dicomModelToAnnotationInstance(R,se),annotationCoordinateType:Y,annotationGroupSequence:(0,o.$K)(R,o.lo.ANNOTATION_GROUP_SEQUENCE).map(De=>this.dicomModelToAnnotationGroup(De,tt,Y)).flat()}}fetchDicomAnnotationInstances(R,se){if(!Ae.c.ENABLE_ANNOTATIONS)return(0,P.of)([]);const Ee=(0,c.LG)(R),tt={baseUrl:Ae.c.ANNOTATIONS_DICOM_STORE_BASE_URL+Ae.c.ANNOTATIONS_DICOM_STORE_PARENT,path:{studyUID:Ee.path.studyUID},resource:"instances",queryParams:{includefield:[o.lo.STUDY_INSTANCE_UID,o.lo.OPERATOR_IDENTIFICATION_SEQUENCE,o.lo.INSTANCE_CREATION_DATE,o.lo.INSTANCE_CREATION_TIME,o.lo.REFERENCED_INSTANCE_SEQUENCE,o.lo.REFERENCED_IMAGE_SEQUENCE,o.lo.REFERENCED_SERIES_SEQUENCE,o.lo.ANNOTATION_COORDINATE_TYPE].join(","),modality:"ANN"}},Y=(0,c.rH)(tt);return this.authGuard.getOAuthToken().pipe((0,ne.Q)(this.destroyed$),(0,Z.n)(Re=>{const De={...Re&&{authorization:"Bearer "+Re},"content-type":"application/dicom+json",Accept:"application/dicom+json"};return this.loadingDicomAnnotations$.getValue()||this.loadingDicomAnnotations$.next(!0),this.http.get(Y,{headers:De})}),(0,W.T)(Re=>Re&&Re.length>0&&Re[0]?Re:[]),(0,W.T)(Re=>Me.filterDicomModelsByReferencedSeriesUID(Re,Ee.path.seriesUID)),(0,W.T)(Re=>{if(!Re)return this.dicomAnnotationInstances$.next([]),[];const De=Re.filter(nt=>nt[o.lo.ANNOTATION_COORDINATE_TYPE]).map((nt,ht)=>this.dicomModelToAnnotationInstance(nt,se,ht));return this.dicomAnnotationInstances$.next(De),De}),(0,ae.W)(Re=>{throw this.dicomAnnotationInstances$.next([]),this.logService.error({name:`httpRequest: "${Y}"`,message:JSON.stringify(Re)}),Re}),(0,ie.j)(()=>{this.loadingDicomAnnotations$.next(!1)}))}fetchDicomAnnotationModels(R){if(this.loadingDicomAnnotations$.next(!0),!Ae.c.ENABLE_ANNOTATIONS)return(0,P.of)([]);const se=this.authGuard.getOAuthToken();return se.pipe((0,ne.Q)(this.destroyed$),(0,Z.n)(Ee=>{const tt={...Ee&&{authorization:"Bearer "+Ee},"content-type":"application/dicom+json",Accept:"application/dicom+json"};this.loadingDicomAnnotations$.getValue()||this.loadingDicomAnnotations$.next(!0);const Y=(0,c.LG)(R);Y.baseUrl=Ae.c.ANNOTATIONS_DICOM_STORE_BASE_URL+Ae.c.ANNOTATIONS_DICOM_STORE_PARENT,Y.resource="metadata";const Re=(0,c.rH)(Y);return this.http.get(Re,{headers:tt})}),(0,Le.Z)(Ee=>Ee),(0,_e.E)(se),(0,Le.Z)(([Ee,tt])=>{const Y=(0,o.$K)(Ee,o.lo.ANNOTATION_GROUP_SEQUENCE),Re=[o.lo.POINT_COORDINATES_DATA,o.lo.DOUBLE_POINT_COORDINATES_DATA,o.lo.LONG_PRIMITIVE_POINT_INDEX_LIST].map(De=>Y.map((nt,ht)=>({attr:nt[De],index:ht})).filter(({attr:nt})=>nt?.BulkDataURI).map(({attr:nt,index:ht})=>this.bulkDataURItoInlineBinary(nt,tt).pipe((0,de.M)(jt=>{Y[ht][De]=jt})))).flat();return 0===Re.length?(0,P.of)(Ee):(0,E.p)(Re).pipe((0,W.T)(()=>Ee))}),(0,Ce.$)(),(0,ne.Q)(this.destroyed$),(0,ae.W)(Ee=>{throw Ee=JSON.stringify(Ee),this.logService.error({name:"httpRequest: ",message:Ee}),new Error("Error while fetching Dicom annotations.")}),(0,ie.j)(()=>{this.loadingDicomAnnotations$.next(!1)}))}getAnnotatorIdByDicomAnnotationInstance(R){if(!R[o.lo.OPERATOR_IDENTIFICATION_SEQUENCE])return"";let se="",Ee=(R[o.lo.OPERATOR_IDENTIFICATION_SEQUENCE]?.Value??[""])[0];if(!(Ee instanceof String)){let tt=(Ee[o.lo.PERSON_IDENTIFICATION_CODE_SEQUENCE]?.Value??[""])[0];if(!(tt instanceof String)){(tt[o.lo.LONG_CODE_VALUE]?.Value??[""])[0]instanceof String||(se=(tt[o.lo.LONG_CODE_VALUE]?.Value??[""])[0])}}return se}getUniqueAnnotationInstances(R){R=[...R];const se=new Map;return R.forEach(Ee=>{se.has(Ee.annotatorId)?(se.get(Ee.annotatorId)?.creationDateAndTime??0)<(Ee?.creationDateAndTime??0)&&se.set(Ee.annotatorId,Ee):se.set(Ee.annotatorId,Ee)}),[...se.values()]}buildAnnotationGroupModel(R,se){const Ee={[o.lo.ANNOTATION_GROUP_NUMBER]:(0,o.SY)("US",[R.idNumber]),[o.lo.ANNOTATION_GROUP_UID]:(0,o.SY)("UI",R.annotationGroupUid||this.generateUUID()),[o.lo.ANNOTATION_GROUP_LABEL]:(0,o.SY)("LO",R.annotationGroupLabel),[o.lo.ANNOTATION_GROUP_DESCRIPTION]:(0,o.SY)("UT",R.annotationGroupDescription),[o.lo.ANNOTATION_GROUP_GENERATION_TYPE]:(0,o.SY)("CS",R.annotationGroupGenerationType)};if(R.annotationPropertyCategoryCodeSequence?.length)Ee[o.lo.ANNOTATION_PROPERTY_CATEGORY_CODE_SEQUENCE]=(0,o.SY)("SQ",[this.buildAnnotationPropertyCategoryCodeModel(R.annotationPropertyCategoryCodeSequence[0])]);else{const ht={"00080100":(0,o.SY)("SH","91723000"),"00080102":(0,o.SY)("SH","SCT"),"00080104":(0,o.SY)("LO","Anatomical structure")};Ee[o.lo.ANNOTATION_PROPERTY_CATEGORY_CODE_SEQUENCE]=(0,o.SY)("SQ",[ht])}const tt={"00080100":(0,o.SY)("SH","395538009"),"00080102":(0,o.SY)("SH","SCT"),"00080104":(0,o.SY)("LO",R.annotationGroupDescription)};Ee[o.lo.ANNOTATION_PROPERTY_TYPE_CODE_SEQUENCE]=(0,o.SY)("SQ",[tt]),Ee[o.lo.GRAPHIC_TYPE]=(0,o.SY)("CS",R.graphicType);const Y=X(R.pointCoordinatesData,se),Re=g(Float32Array,function N(Me){let oe=0;const R=Me.length;for(let se=0;se0}(Y)?Y:function V(Me){if(0===Me.length)return[];const oe=[];for(let R=Me.length-2;R>=0;R-=2)oe.push(Me[R],Me[R+1]);return oe}(Y));Ee[o.lo.POINT_COORDINATES_DATA]={InlineBinary:Re,vr:"OF"};const De=R.longPrimitivePointIndexList,nt=g(Int32Array,De);return Ee[o.lo.LONG_PRIMITIVE_POINT_INDEX_LIST]={InlineBinary:nt,vr:"OL"},Ee[o.lo.NUMBER_OF_ANNOTATIONS]=(0,o.SY)("UL",[De.length]),Ee[o.lo.ANNOTATION_APPLIES_TO_ALL_OPTICAL_PATHS]=(0,o.SY)("CS","YES"),Ee}buildAnnotationPropertyCategoryCodeModel(R){return{[o.lo.CODE_VALUE]:(0,o.SY)("SH",[R.codeValue]),[o.lo.CODING_SCHEME_DESIGNATOR]:(0,o.SY)("SH",[String(R.codingSchemeDesignator)]),[o.lo.CODING_SCHEME_VERSION]:(0,o.SY)("SH",[R.codingSchemeVersion]),[o.lo.CONTEXT_IDENTIFIER]:(0,o.SY)("CS",R.contextIdentifier?[R.contextIdentifier]:void 0)}}buildReferencedSeriesModel(R){const se={[o.lo.SERIES_INSTANCE_UID]:(0,o.SY)("UI",[R.seriesInstanceUid])};if(R.referencedImage){const Ee=(0,o.SY)("SQ",[{[o.lo.REFERENCED_SOP_CLASS_UID]:(0,o.SY)("UI",[R.referencedImage.sopClassUid]),[o.lo.REFERENCED_SOP_INSTANCE_UID]:(0,o.SY)("UI",[R.referencedImage.sopInstanceUid])}]);se[o.lo.REFERENCED_INSTANCE_SEQUENCE]=Ee}return se}dicomModelToAnnotationGroup(R,se,Ee){const tt={};if("2D"!==Ee)return tt.pointCoordinatesData=[],tt.error=`Unsupported coordinate type: ${Ee}`,[tt];tt.idNumber=Number(R[o.lo.ANNOTATION_GROUP_NUMBER].Value),tt.annotationGroupUid=R[o.lo.ANNOTATION_GROUP_UID].Value[0],R[o.lo.ANNOTATION_GROUP_LABEL]?.Value&&(tt.annotationGroupLabel=R[o.lo.ANNOTATION_GROUP_LABEL].Value[0]),R[o.lo.ANNOTATION_GROUP_DESCRIPTION]?.Value&&(tt.annotationGroupDescription=R[o.lo.ANNOTATION_GROUP_DESCRIPTION].Value[0]),tt.annotationGroupGenerationType=R[o.lo.ANNOTATION_GROUP_GENERATION_TYPE].Value[0];const Y=(0,o.$K)(R,o.lo.ANNOTATION_PROPERTY_CATEGORY_CODE_SEQUENCE);if(Y?.length){const rt=Y[0],ce={codeValue:(0,o._W)(rt,o.lo.CODE_VALUE),codingSchemeDesignator:Number((0,o._W)(rt,o.lo.CODING_SCHEME_DESIGNATOR)),codingSchemeVersion:(0,o._W)(rt,o.lo.CODING_SCHEME_VERSION),contextIdentifier:(0,o._W)(rt,o.lo.CONTEXT_IDENTIFIER)};tt.annotationPropertyCategoryCodeSequence=[ce]}tt.graphicType=R[o.lo.GRAPHIC_TYPE].Value[0];const Re=R[o.lo.LONG_PRIMITIVE_POINT_INDEX_LIST]?.InlineBinary??"",nt=p(y(R[o.lo.LONG_PRIMITIVE_POINT_INDEX_LIST]?.vr??"OL"),Re);nt.length||nt.push(1);const ht=nt.map(rt=>rt-1),jt=R[o.lo.DOUBLE_POINT_COORDINATES_DATA]?.InlineBinary?o.lo.DOUBLE_POINT_COORDINATES_DATA:o.lo.POINT_COORDINATES_DATA,Nt=R[jt]?.InlineBinary??"",ln=p(y(R[jt]?.vr??""),Nt);ht.slice(-1)[0]!==ln.length&&ht.push(ln.length);const Ot=[];if("POINT"===tt.graphicType){const rt={...tt};rt.pointCoordinatesData=this.pixelsToMetersWithYFlip(ln,se),Ot.push(rt)}else for(let rt=0;rt{const tt=(0,o.$K)(Ee,o.lo.REFERENCED_SERIES_SEQUENCE)[0],Y=(0,o._W)(tt,o.lo.SERIES_INSTANCE_UID),Re=(0,o._W)(Ee,o.lo.SERIES_INSTANCE_UID);return Y?Y===se:Re===se})}writeDicomAnnotations(R,se=3){this.loadingDicomAnnotations$.next(!0);const Ee=`${Ae.c.ANNOTATIONS_DICOM_STORE_BASE_URL+Ae.c.ANNOTATIONS_DICOM_STORE_PARENT}/studies`;return this.authGuard.getOAuthToken().pipe((0,ne.Q)(this.destroyed$),(0,Z.n)(tt=>{this.loadingDicomAnnotations$.getValue()||this.loadingDicomAnnotations$.next(!0);const Y="DICOMwebBoundary",Re=`--${Y}\r\nContent-Type: application/dicom+json; transfer-syntax=1.2.840.10008.1.2.1\r\n\r\n${JSON.stringify([R])}\r\n--${Y}--`,De={"Content-Type":'multipart/related; type="application/dicom+json";transfer-syntax=1.2.840.10008.1.2.1;boundary='+Y,...tt&&{authorization:"Bearer "+tt},Accept:"application/dicom+json"};return this.http.post(Ee,Re,{headers:De})}),(0,ae.W)(tt=>{const Y=JSON.stringify(tt);if(se&&Y.includes("Cannot upload DICOM Annotation. Uid triple")){se--;const Re=this.generateUUID(!0);return R[o.lo.SOP_INSTANCE_UID].Value=Re,this.writeDicomAnnotations(R,se)}throw this.logService.error({name:`httpRequest: "${Ee}"`,message:Y}),tt}))}static{this.\u0275fac=function(se){return new(se||Me)(ke.KVO(Ue.u),ke.KVO(ve.Qq),ke.KVO(ye.K),ke.KVO(Se.D),ke.KVO(D,8))}}static{this.\u0275prov=ke.jDH({token:Me,factory:Me.\u0275fac,providedIn:"root"})}}return Me})()},3738:(ut,Ie,a)=>{"use strict";a.d(Ie,{w:()=>ve,PQ:()=>Ce,do:()=>Se,N2:()=>te,w8:()=>q,Lk:()=>J,Z6:()=>z});var o=a(8294),c=a(4907),O=a(7673),d=a(8810),w=a(7786),C=a(9030),x=a(5558),D=a(6354),p=a(9437),g=a(1594),y=a(6365),h=a(5964),u=a(6594);const P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),T="+/=".split("");var W=a(4119),ne=a(7161),de=a(1182),ie=a(4438),Z=a(1626),ae=a(8472),Le=a(2840);const _e=new RegExp("^.*studies/[0-9.]*");var Ce=function(X){return X.NONE="",X.NO="no",X.YES="yes",X.ADOBERGB="adobergb",X.ROMMRGB="rommrgb",X.SRGB="srgb",X}(Ce||{});const ke="Unknown Case ID",Ue="Unknown Case ID";let ve=(()=>{class X{constructor(N,V,I){this.http=N,this.authService=V,this.logService=I,this.slideLabelTextSegment=new RegExp("\\W?\\w+","g")}getImageTile(N,V,I,M=Ce.NONE){const j=V.levelMap[I.scale],{tileSize:ge}=j,Me=Math.ceil(Number(j.width)/ge),oe=Math.floor(I.corner.x/ge),se=Math.floor(I.corner.y/ge)*Me+oe%Me;let tt,Ee=0,Y="",Re=0;for(let nt=0;nt=Ee+j.properties[nt].frames)){tt=se-Ee+1,Y=j.properties[nt].instanceUid,Re=j.downSampleMultiplier??0;break}Ee+=j.properties[nt].frames}return typeof tt>"u"||!Y?(0,O.of)(""):V.isFlatImage?this.getFlatImage(N,Y):this.getEncodedImageTile(N,Y,tt,Re,M)}getEncodedImageTile(N,V,I,M=0,j=Ce.NONE,ge=!1){const Me=this.generateEncodedImageTileUrl(N,V,I,M,j,ge);return this.httpGetStringEncodedImage(Me)}generateEncodedImageTileUrl(N,V,I,M=0,j=Ce.NONE,ge=!1){let Me=`${N}/instances/${V}/frames/${I}/rendered`,oe=!0;return M&&(Me+=`?downsample=${M}`,oe=!1),j&&(Me+=oe?"?":"&",Me+=`iccprofile=${j}`,oe=!1),ge&&(Me+=oe?"?":"&",Me+="disable_caching="+ge.toString()),Me}getEncodedImageTiles(N,V,I,M,j=0,ge=Ce.NONE,Me=!1){let R=`${M}${N}/instances/${V}/frames/${I.join(",")}`,se=!0;return j&&(R+=`?downsample=${j}`,se=!1),ge&&(R+=se?"?":"&",R+=`iccprofile=${ge}`,se=!1),Me&&(R+=se?"?":"&",R+="disable_caching="+Me.toString()),this.httpGetStringEncodedImage(R)}getFlatImage(N,V){return this.httpGetStringEncodedImage(`${N}/instances/${V}/rendered`)}httpGetStringEncodedImage(N,V=de.jf.DEFAULT){return this.authService.getOAuthToken().pipe((0,x.n)(I=>this.http.get(N,{headers:{Accept:V+",multipart/related",Authorization:"Bearer "+(I??"")},responseType:"arraybuffer",withCredentials:!1}).pipe((0,D.T)(M=>String(function E(X){const K=P.concat(T),N=[];for(let V=0;V>6,Ee=63&Me;ge||(Ee=64,M||(se=64)),N.push(K[I>>2],K[(3&I)<<4|j>>4],K[se]||"",K[Ee]||"")}return N.join("")}(new Uint8Array(M)))),(0,p.W)(M=>(this.logService.error({name:`httpGetImg: "${N}"`,message:M}),(0,d.$)("Network error"))))))}httpGetText(N){return this.authService.getOAuthToken().pipe((0,x.n)(V=>this.http.get(N,{headers:{Authorization:"Bearer "+V},responseType:"text"}).pipe((0,p.W)(I=>(this.logService.error({name:`httpGetText: "${N}"`,message:I}),(0,d.$)(()=>new Error("Network error")))))))}getInstancesMetadata(N,V,I){const M=new URLSearchParams;V.length&&M.append("includefield",V.join(",")),I&&M.append("limit",I.toString());const j=M.toString();return this.httpGetText(`${N}/instances${j?"?":""}${j}`).pipe((0,D.T)(Me=>JSON.parse(Me)))}getExtraMetadata(N){return this.httpGetText(`${N}/metadata`).pipe((0,g.$)(),(0,D.T)(V=>JSON.parse(V)))}getImageSecondaryCapture(N,V,I=de.jf.DEFAULT,M=Ce.NONE){let j=this.generateImageSecondaryCaptureUrl(N,V,I);return M&&(j+=`?iccprofile=${M}`),this.httpGetStringEncodedImage(j,I)}generateImageSecondaryCaptureUrl(N,V,I=de.jf.DEFAULT){return`${N}/instances/${V}/rendered`}searchSlideLabel(N){const V=N.match(this.slideLabelTextSegment);if(!V)throw new Error(`Slide ID "${N}" does not confirm to provide case id template`);const I=[1,2,3].map(j=>V.length-j).filter(j=>j>0).map(j=>this.searchSeriesById(V.slice(0,j).join(""),"caseId"),c.Oo.SLIDE_MICROSCOPY);return(0,w.h)(...I).pipe((0,x.n)(j=>j||[]),(0,D.T)(j=>(0,C.v)(()=>this.getInstancesMetadata(ye(W.c.IMAGE_DICOM_STORE_BASE_URL,j),[c.lo.CONTAINER_IDENTIFIER,c.lo.STUDY_INSTANCE_UID,c.lo.SERIES_INSTANCE_UID],1))),(0,y.U)(5),(0,D.T)(j=>j[0]),(0,h.p)(j=>{const ge=j[c.lo.CONTAINER_IDENTIFIER]?.Value;return ge?.constructor===Array&&ge[0].constructor===String&&ge[0]===N}),(0,u.$)())}searchSeriesById(N,V,I=c.Oo.SLIDE_MICROSCOPY){const M={baseUrl:W.c.IMAGE_DICOM_STORE_BASE_URL,resource:"series",queryParams:{modality:I.toString()},path:{}};let j;switch("*"===N&&(N="",M.queryParams.limit=20),V){case"caseId":j=o.H.caseId;break;case"slideId":j=o.H.slideId;break;case"patientId":j=o.H.patientId;break;default:throw new Error(`Invalid search type ${V}`)}if(j.dicomWebSearchToken&&(M.queryParams[j.dicomWebSearchToken]=N),"slideId"===V)return this.searchSlideLabel(N);if(void 0===j.dicomWebSearchToken)throw new Error(`dicomWebSearchToken not defined for ${V}`);return this.httpGetText((0,ne.rH)(M)).pipe((0,g.$)(),(0,D.T)(ge=>ge&&JSON.parse(ge)||[]))}getStudyMeta(N){const V=(0,ne.LG)(N);return V.resource="series",V.queryParams={includefield:[c.lo.ACCESSION_NUMBER,c.lo.STUDY_DATE].join(","),limit:1},this.httpGetText((0,ne.rH)(V)).pipe((0,g.$)(),(0,D.T)(I=>JSON.parse(I)))}getInstancesByStudy(N,V=c.Oo.SLIDE_MICROSCOPY){return this.httpGetText(`${N}/instances?modality=${V}&includefield=${c.lo.CONTAINER_IDENTIFIER}`).pipe((0,g.$)(),(0,D.T)(I=>JSON.parse(I)))}static{this.\u0275fac=function(V){return new(V||X)(ie.KVO(Z.Qq),ie.KVO(ae.u),ie.KVO(Le.K))}}static{this.\u0275prov=ie.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}}return X})();function ye(X,K){const N=K[c.lo.STUDY_INSTANCE_UID]?.Value;let V="";N?.constructor===Array&&N[0].constructor===String&&(V=N[0]);const I=K[c.lo.SERIES_INSTANCE_UID]?.Value;let M="";return I?.constructor===Array&&I[0].constructor===String&&(M=I[0]),`${X}/studies/${V}/series/${M}`}function Se(X){return X.reduce((N,V)=>{if(V.dicomUri){const I=V.dicomUri.match(_e);if(!I||!I[0])throw new Error(`Malformated dicom uid: ${V.dicomUri}`);{const M=I[0];N.set(M,[...N.get(M)??[],V])}}return N},new Map)}function z(X,K){const N=X[c.lo.PATIENT_NAME]?.Value,V=N?.constructor!==Array&&(0,c.$q)(N)?N[0]:void 0;K.name??=(0,c.nD)(V);const I=X[c.lo.PATIENT_ID]?.Value;let M="";I?.constructor===Array&&I[0].constructor===String&&(M=I[0]),K.patientId??=M;const j=X[c.lo.ACCESSION_NUMBER]?.Value;let ge="Unknown Case ID";j?.constructor===Array&&j[0].constructor===String&&(ge=j[0]??"Unknown Case ID");const Me=X[c.lo.STUDY_DATE]?.Value;let oe="";Me?.constructor===Array&&Me[0].constructor===String&&(oe=Me[0]),(!K.latestCaseDate||oe>K.latestCaseDate)&&(K.latestCaseDate=oe,K.latestCaseAccessionNumber=ge)}function te(X,K,N){const V=K[c.lo.STUDY_INSTANCE_UID]?.Value;let I="";V?.constructor===Array&&V[0].constructor===String&&(I=V[0]);const M=K[c.lo.SERIES_INSTANCE_UID]?.Value;let j="";if(M?.constructor===Array&&M[0].constructor===String&&(j=M[0]),!I||!j)return;let ge=N.get(I);ge||(ge=q(`${X}/studies/${I}`,K,!1)),ge.slides=[...ge.slides??[],L(K)],N.set(I,ge)}function L(X){const K=X[c.lo.STUDY_INSTANCE_UID]?.Value;let N="";K?.constructor===Array&&K[0].constructor===String&&(N=K[0]);const V=X[c.lo.SERIES_INSTANCE_UID]?.Value;let I="";V?.constructor===Array&&V[0].constructor===String&&(I=V[0]);const M=N.slice(N.lastIndexOf(".")+1);return{scanUniqueId:M,name:`pathologySlides/${M}`,dicomUri:`${W.c.IMAGE_DICOM_STORE_BASE_URL}/studies/${N}/series/${I}`}}function q(X,K,N=!1){const V=K[c.lo.ACCESSION_NUMBER]?.Value;let I=ke;V?.constructor===Array&&V[0].constructor===String&&(I=V[0]??ke),N&&(I=Ue);const M=K[c.lo.STUDY_DATE]?.Value;let j="";return M?.constructor===Array&&M[0].constructor===String&&(j=M[0]),{accessionNumber:I,date:(0,c.Yq)(j),caseId:X,slides:[]}}function J(X,K){const N=K[c.lo.CONTAINER_IDENTIFIER]?.Value;let V="";return N?.constructor===Array&&N[0].constructor===String&&(V=N[0]),{slideId:ye(X,K),...V&&{slideRecordId:V}}}},2840:(ut,Ie,a)=>{"use strict";a.d(Ie,{K:()=>d});var o=a(4438),c=a(2073);let d=(()=>{class w{constructor(x){this.userService=x,this.logEntries=[]}error(x){this.addLogEntryError("error",x),console.error(JSON.stringify(x))}getLogEntries(){return this.logEntries}downloadLogs(){const x=this.getLogText(),D=document.createElement("a");D.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(x)),D.setAttribute("download",`viewer-log-${this.getDateString()}.txt`),D.click()}addLogEntryError(x,D){this.logEntries.push({type:x,message:D,date:this.getDateString()})}getLogText(){return this.logEntries.map(x=>[x.date,x.type,JSON.stringify(x.message,null,2)].join(",")).join("\n")}getDateString(){return(new Date).toLocaleString()}static{this.\u0275fac=function(D){return new(D||w)(o.KVO(c.D))}}static{this.\u0275prov=o.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}}return w})()},7955:(ut,Ie,a)=>{"use strict";a.d(Ie,{T:()=>ke});var o=a(4412),c=a(8810),O=a(983),d=a(4907),w=a(6354),C=a(9437),x=a(3738),Z=a(4119),ae=a(5717),Le=a(4438);let ke=(()=>{class Ue{constructor(ye){this.dicomwebService=ye,this.ENABLE_SERVER_INTERPOLATION=Z.c.ENABLE_SERVER_INTERPOLATION??!1,this.slideDescriptors$=new o.t([]),this.selectedSlideInfo$=new o.t(void 0),this.selectedExtraMetaData$=new o.t(void 0)}computeLevel(ye,Se){let z=ye[d.lo.NUMBER_OF_FRAMES]?.Value?.[0],te=Number(ye?.[d.lo.TOTAL_PIXEL_MATRIX_ROWS]?.Value??NaN),L=Number(ye?.[d.lo.TOTAL_PIXEL_MATRIX_COLUMNS]?.Value??NaN);const q=Math.max(Number(ye?.[d.lo.ROWS]?.Value?.[0]??void 0),Number(ye?.[d.lo.COLS]?.Value?.[0]??void 0)),J=ye[d.lo.SOP_INSTANCE_UID]?.Value?.[0],X=ye[d.lo.OFFSET]?.Value?.[0]??0;let V=Number(ye[d.lo.IMAGE_VOLUME_WIDTH]?.Value??NaN)/L,I=Number(ye[d.lo.IMAGE_VOLUME_HEIGHT]?.Value??NaN)/te;if(!(Number.isFinite(V)&&Number.isFinite(I)||2!==ye[d.lo.PIXEL_SPACING]?.Value?.length)){const j=ye[d.lo.PIXEL_SPACING].Value;V=Number(j[0]),I=Number(j[1])}return V=V&&Number.isFinite(V)?V:void 0,I=I&&Number.isFinite(I)?I:void 0,Se&&(z=1,te=Number(ye?.[d.lo.ROWS]?.Value?.[0]??void 0),L=Number(ye?.[d.lo.COLS]?.Value?.[0]??void 0)),{properties:[{offset:X,frames:z,instanceUid:J}],width:L,height:te,pixelWidth:V,pixelHeight:I,tileSize:q,zoom:0,storedBytes:Math.ceil(Number(ye?.[d.lo.ROWS]?.Value?.[0]??NaN)*Number(ye?.[d.lo.COLS]?.Value?.[0]??NaN)*z*Number(ye?.[d.lo.SAMPLES_PER_PIXEL]?.Value?.[0]??NaN)*Math.ceil(Number(ye?.[d.lo.BITS_ALLOCATED]?.Value?.[0]??NaN)/8)/Number(ye?.[d.lo.LOSSY_IMAGE_COMPRESSION_RATIO]?.Value?.[0]??1)),dicomModel:ye}}fillServerDownsampledLevels(ye){const z=(ye=JSON.parse(JSON.stringify(ye))).reduce((q,J)=>q.width>J.width?q:J),te=new Set;for(let q=1;q1024||L.height>1024)&&!L.downSampleMultiplier){const q=this.downScaleLevel(L,2);q.downSampleMultiplier=2,ye.push(q)}return ye}downScaleLevel(ye,Se,z=!1){return(ye=JSON.parse(JSON.stringify(ye))).width=Math.floor(ye.width/Se),ye.height=Math.floor(ye.height/Se),ye.pixelWidth=ye.pixelWidth&&ye.pixelWidth*Se,ye.pixelHeight=ye.pixelHeight&&ye.pixelHeight*Se,z&&(ye.tileSize=Math.floor(ye.tileSize/Se)),ye.storedBytes&&(ye.storedBytes=Math.ceil(ye.storedBytes/Se/Se)),ye}fillZoom(ye){const Se=ye[0];return ye.map(z=>(z.zoom=Se.pixelWidth&&z.pixelWidth?Se.pixelWidth/z.pixelWidth:z.width/Se.width,z.zoom=Number.parseFloat(z.zoom.toPrecision(6)),z))}computeSlideInfo(ye,Se,z,te,L,q){const J=Se.reduce((N,V)=>N.width>V.width?N:V),K=Se.reduce((N,V)=>N.width{if(!z)throw(0,c.$)(ye+" not found");let te=[];const L=[];let q=!1;const J=z[0]?.[d.lo.CONTAINER_IDENTIFIER]?.Value?.[0];for(const X of z){const N=X[d.lo.SOP_CLASS_UID]?.Value?.[0],V=X[d.lo.SOP_INSTANCE_UID]?.Value?.[0],I=X?.[d.lo.IMAGE_TYPE]?.Value?.[2]??"unknown",M=N===d.fg.TILED_SECONDARY_CAPTURE;if(M||N===d.fg.TILED_MICROSCOPE&&"VOLUME"!==I){const ge=Number(X?.[d.lo.ROWS]?.Value?.[0]??void 0),Me=Number(X?.[d.lo.COLS]?.Value?.[0]??void 0);L.push({width:Me,height:ge,instanceUid:V,type:I,isSecondaryCapture:M});continue}if(q=N===d.fg.VL_MICROSCOPIC_IMAGE_STORAGE||N===d.fg.VL_SLIDE_COORDINATES_MICROSCOPIC_IMAGE_STORAGE,q){let ge=[this.computeLevel(X,q)];return ge=this.fillZoom(ge),this.computeSlideInfo(ye,ge,L,J,q,N)}if(N!==d.fg.TILED_MICROSCOPE)continue;const j=this.computeLevel(X,q);j.properties.sort((ge,Me)=>ge.offset-Me.offset),te.push(j)}te.sort((X,K)=>(X.pixelWidth??0)-(K.pixelWidth??0)),te.splice(te.filter(X=>X).length);for(let X=0;X(X.pixelWidth??0)-(K.pixelWidth??0)),this.computeSlideInfo(ye,te,L,J,q,d.fg.TILED_MICROSCOPE)}),(0,C.W)(z=>(0,c.$)("string"==typeof z?z+" when handling slide metadata":z)))}getSlideExtraMetadata(ye){const Se=(0,ae.Eb)(ye);return this.dicomwebService.getExtraMetadata(ye).pipe((0,w.T)(z=>{const te=z[0];return{patientName:(0,d.nD)(te[d.lo.PATIENT_NAME]?.Value?.[0])||"Unknown Patient Name",patientId:te[d.lo.PATIENT_ID]?.Value?.[0],caseId:te[d.lo.ACCESSION_NUMBER]?.Value?.[0]??"Unknown Case ID",...Se&&{deided:Se},rawValue:te}}),(0,C.W)(z=>(0,c.$)("string"==typeof z?z+" when handling slide extra metadata":z)))}getSlidesForCase(ye){return this.dicomwebService.getInstancesByStudy(ye).pipe((0,w.T)(Se=>{if(!Se)return[];const z=new Map;for(const L of Se){const q=L[d.lo.SERIES_INSTANCE_UID]?.Value?.[0];z.has(q)||z.set(q,{id:`${ye}/series/${q}`,name:L[d.lo.CONTAINER_IDENTIFIER]?.Value?.[0]})}const te=Array.from(z.values()).sort((L,q)=>(L.name??"").localeCompare(q.name??""));return this.slideDescriptors$.next(te),te}))}getImageTile(ye,Se,z){return this.dicomwebService.getImageTile(ye,Se,z,this.ENABLE_SERVER_INTERPOLATION?x.PQ.SRGB:x.PQ.NONE)}getImageTileBinary(ye,Se,z){return O.w}getImageSlideLabel(ye,Se){const z=Se.associatedImages.find(({type:te})=>"LABEL"===te.toUpperCase());return z?(z.isSecondaryCapture?this.dicomwebService.getImageSecondaryCapture(ye,z.instanceUid):this.dicomwebService.getEncodedImageTile(ye,z.instanceUid,1)).pipe((0,w.T)(te=>te&&`data:image/jpeg;base64,${te}`),(0,C.W)(te=>"")):O.w}static{this.\u0275fac=function(Se){return new(Se||Ue)(Le.KVO(x.w))}}static{this.\u0275prov=Le.jDH({token:Ue,factory:Ue.\u0275fac,providedIn:"root"})}}return Ue})()},2073:(ut,Ie,a)=>{"use strict";a.d(Ie,{D:()=>w});var o=a(4412),c=a(6354),O=a(4438);let w=(()=>{class C{constructor(){this.currentUserSubject=new o.t(null),this.currentUser$=this.currentUserSubject.asObservable()}getCurrentUser$(){return this.currentUser$}getCurrentUserHash$(){return this.currentUser$.pipe((0,c.T)(D=>D?function d(C){let x=0;for(let D=0;D{"use strict";a.d(Ie,{G:()=>O,s:()=>d});var o=a(177),c=a(4438);const O="credential";let d=(()=>{class w{constructor(x){this.platformId=x,this.window=void 0,(0,o.UE)(this.platformId)&&(this.window=window)}getWindowOrigin(){return this.window&&this.window.location.origin||""}getLocalStorageItem(x){return this.window&&this.window.localStorage.getItem(x)||void 0}setLocalStorageItem(x,D){this.window&&this.window.localStorage.setItem(x,JSON.stringify(D))}removeLocalStorageItem(x){this.window&&this.window.localStorage.removeItem(x)}sanitizeHtmlAssertUnchanged(x){return""}safelySetInnerHtml(x,D){x.innerHTML=D}extractContent(x){return(new DOMParser).parseFromString(x,"text/html").documentElement.textContent??""}static{this.\u0275fac=function(D){return new(D||w)(c.KVO(c.Agw))}}static{this.\u0275prov=c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}}return w})()},6372:(ut,Ie,a)=>{"use strict";a.d(Ie,{y:()=>Se});var o=a(1626),c=a(4958),O=a(6558),d=a(3213),w=a(8791),C=a(5493),x=a(4412),D=a(2771),p=a(983),g=a(4572),y=a(7673),h=a(7468),u=a(6977),P=a(8141),T=a(9437),E=a(5558),W=a(3294),ne=a(6354),de=a(2181),ie=a(4119),Z=a(5717),ae=a(7161),Le=a(1182),_e=a(4438),Ce=a(2168),Ae=a(2639),ke=a(9423),Ue=a(2901),ve=a(2073),ye=a(7955);let Se=(()=>{class z{constructor(L,q,J,X,K,N,V){this.activatedRoute=L,this.cohortService=q,this.dialogService=J,this.dicomAnnotationsService=X,this.userService=K,this.slideApiService=N,this.router=V,this.caseId="",this.iccProfile$=new x.t(Le.PQ.ADOBERGB),this.isMultiViewSlidePicker$=new x.t(!1),this.multiViewScreenSelectedIndex$=new x.t(0),this.multiViewScreens$=new x.t(1),this.showXYZCoordinates$=new x.t(!1),this.syncLock$=new x.t(!1),this.loadingDicomAnnotations$=new x.t(!0),this.selectedSplitViewSlideDescriptor$=new x.t(void 0),this.slideInfoBySlideDescriptorId$=new x.t(new Map),this.olMapBySlideDescriptorId$=new x.t(new Map),this.olMapOriginalViewBySlideDescriptorId$=new x.t(new Map),this.slideMetaDataBySlideDescriptorId$=new x.t(new Map),this.splitViewSlideDescriptors$=new x.t([]),this.slideDescriptorsByCaseId$=new x.t(new Map),this.annotationInstancesBySlideDescriptorId$=new x.t(new Map),this.currentUser="",this.selectedInstanceIdsBySlideDescriptorId$=new x.t(new Map),this.destroy$=new D.m,this.annotationsDicomModelByAnnotationInstanceId$=new x.t(new Map),this.sideNavLayersBySlideDescriptorId$=new x.t(new Map),this.hasAnnotationReadAccessBySlideDescriptorId$=new x.t(new Map),this.hasAnnotationWriteAccessBySlideDescriptorId$=new x.t(new Map),this.setup()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}setup(){this.setupCurrentUser(),this.setupRouteHandling(),this.setupSplitViewSlideDescriptorsChanges(),this.setupFetchingAnnotations(),this.setupAnnotationLayers()}createOrModifyDicomAnnotation(L,q){return this.hasAnnotationWriteAccessBySlideDescriptorId$.value.set(L,!0),this.hasAnnotationWriteAccessBySlideDescriptorId$.next(this.hasAnnotationWriteAccessBySlideDescriptorId$.value),this.dicomAnnotationsService.createOrModifyDicomAnnotation(q).pipe((0,u.Q)(this.destroy$),(0,P.M)(J=>{const X=this.dicomAnnotationsService.dicomAnnotationInstances$.value,K=(this.annotationInstancesBySlideDescriptorId$.value.get(L)??[]).find(I=>I.annotatorId===this.currentUser),N=X.find(I=>I.annotatorId===this.currentUser),V=this.selectedInstanceIdsBySlideDescriptorId$.value.get(L)??new Set;if(K?.path.instanceUID&&V.delete(K.path.instanceUID),N?.path.instanceUID&&V.add(N.path.instanceUID),this.selectedInstanceIdsBySlideDescriptorId$.value.set(L,V),this.annotationInstancesBySlideDescriptorId$.value.set(L,X),N?.path.instanceUID){const I=this.annotationsDicomModelByAnnotationInstanceId$.value;I.set(N.path.instanceUID,J),K?.path.instanceUID&&I.delete(K?.path.instanceUID),this.annotationsDicomModelByAnnotationInstanceId$.next(I)}this.selectedInstanceIdsBySlideDescriptorId$.next(this.selectedInstanceIdsBySlideDescriptorId$.value),this.annotationInstancesBySlideDescriptorId$.next(this.annotationInstancesBySlideDescriptorId$.value)}),(0,T.W)(J=>{let X="Error while creating Dicom annotation.";return J.status===o.kG.Forbidden&&(this.hasAnnotationWriteAccessBySlideDescriptorId$.value.set(L,!1),this.hasAnnotationWriteAccessBySlideDescriptorId$.next(this.hasAnnotationWriteAccessBySlideDescriptorId$.value),X='"Permission required."\n Your current access level doesn\'t allow you to create Dicom annotations'),this.dialogService.error(X).subscribe(),J}))}deleteDicomAnnotationsPath(L){const q=this.selectedSplitViewSlideDescriptor$.value,J=this.slideInfoBySlideDescriptorId$.value.get(q?.id);return this.dicomAnnotationsService.deleteDicomAnnotationsPath(L.path).pipe((0,E.n)(()=>q?.id&&J?this.fetchAnnotationInstances(q.id,J):p.w),(0,P.M)(()=>{q?.id&&this.handleSeriesDeletion(L,q)}))}handleSeriesDeletion(L,q){const J=q?.id;if(!J)return;const X=this.annotationInstancesBySlideDescriptorId$.value;let K=X.get(J)??[];K=K.filter(I=>I.annotatorId!==this.currentUser),X.set(J,K),this.annotationInstancesBySlideDescriptorId$.next(X);const N=this.selectedInstanceIdsBySlideDescriptorId$.value;(N.get(J)??new Set).delete(L.path.instanceUID??""),this.selectedInstanceIdsBySlideDescriptorId$.next(N)}setupAnnotationLayers(){(0,g.z)([this.olMapBySlideDescriptorId$,this.selectedSplitViewSlideDescriptor$]).pipe((0,u.Q)(this.destroy$),(0,P.M)(([L,q])=>{if(!q)return;const J=q.id,X=L.get(J);if(!X)return;const K=X.getAllLayers().find(V=>"draw-layer"===V.get("name"));if(!K)return;const N=K.getSource();N&&N?.on("change",()=>{const M=[...N.getFeatures()].sort((j,ge)=>{const Me=this.getFeatureAnnotationKey(j);return this.getFeatureAnnotationKey(ge).index-Me.index}).map((j,ge)=>{let oe;return j.getId()?oe={...Le.Qy,...this.getFeatureAnnotationKey(j)}:(oe={...Le.Qy,names:"ROI",annotatorId:this.currentUser},j.setId(JSON.stringify(oe))),oe.names=`${oe.names}-${oe.index}`,{...oe,feature:j}}).sort((j,ge)=>ge.index-j.index);this.sideNavLayersBySlideDescriptorId$.value.set(J,M),this.sideNavLayersBySlideDescriptorId$.next(this.sideNavLayersBySlideDescriptorId$.value)})})).subscribe(),(0,g.z)([this.annotationsDicomModelByAnnotationInstanceId$,this.olMapBySlideDescriptorId$,this.selectedInstanceIdsBySlideDescriptorId$]).pipe((0,u.Q)(this.destroy$),(0,P.M)(()=>{this.updateSideNavLayers()})).subscribe()}updateSideNavLayers(){const L=this.selectedInstanceIdsBySlideDescriptorId$.value,q=this.annotationsDicomModelByAnnotationInstanceId$.value,J=this.olMapBySlideDescriptorId$.value,X=this.slideInfoBySlideDescriptorId$.value,K=this.annotationInstancesBySlideDescriptorId$.value,V=this.splitViewSlideDescriptors$.value.filter(M=>!!M?.id),I=this.generateSideNavLayersBySlideDescriptorId(V,X,K,L,q);V.forEach(M=>{const j=M.id,ge=J.get(j),Me=I.get(j)??[];if(!ge)return;const oe=ge.getAllLayers().find(Ee=>"draw-layer"===Ee.get("name"));if(!oe)return;const R=oe.getSource();!R||R.getFeatures().length===Me.length||this.addAnnotationsToDrawLayer(Me,ge)})}generateSideNavLayersBySlideDescriptorId(L,q,J,X,K){const N=new Map;return L.forEach(V=>{const I=V.id;if(!I)return;const M=q.get(I);if(!M)return;let j=J.get(I)??[];const ge=X.get(I)??new Set;if(j=j.filter(R=>R.path.instanceUID&&ge.has(R.path.instanceUID)),!j)return;let Me=j.map(R=>{if(!R.path.instanceUID)return;const se=K.get(R.path.instanceUID);return se?this.dicomModelToSideNavLayers(se,M):void 0}).filter(R=>void 0!==R).flat();const oe=j.map(({annotatorId:R})=>R).filter(R=>R!==this.currentUser);oe.push(this.currentUser),Me=Me.sort((R,se)=>oe.indexOf(R.annotatorId)-oe.indexOf(se.annotatorId)).reverse().map((R,se)=>(R.index=se+1,R)).reverse(),N.set(I,Me)}),N}getFeatureAnnotationKey(L){return JSON.parse(L.getId())}addAnnotationsToDrawLayer(L,q){if(!q)return;const J=q.getAllLayers().find(N=>"draw-layer"===N.get("name"));if(!J)return;const X=J.getSource();if(!X)return;const K=L.map(N=>{const V={...Le.Qy,names:N.names??"ROI",notes:N.notes,annotatorId:N.annotatorId,index:N.index};return N.feature.setId(JSON.stringify(V)),N.feature});X.clear(),X.addFeatures(K)}dicomModelToSideNavLayers(L,q){const X=this.dicomAnnotationsService.dicomModelToAnnotations(L,q).annotationGroupSequence,K=X.find(V=>V.error);return K&&this.dialogService.error(K.error),X.filter(V=>!V.error).map((V,I)=>{const M=this.dicomAnnotationsService.getAnnotatorIdByDicomAnnotationInstance(L),j={names:V.annotationGroupLabel,notes:V.annotationGroupDescription,annotatorId:M,index:I};switch(V.graphicType){case"POLYLINE":return{...j,feature:new c.A(new O.A(V.pointCoordinatesData))};case"RECTANGLE":const ge=[];for(let se=0;se{const[Ee,tt,Y,Re]=se,De=[Ee,tt,Y,Re,Ee];return{...j,feature:new c.A(new d.Ay([De]))}});case"ELLIPSE":const oe=[];for(let se=0;se{const Ee=this.computeEllipseFeature(se);return{...j,feature:Ee}});case"POLYGON":return{...j,feature:new c.A(new d.Ay([V.pointCoordinatesData]))};case"POINT":return V.pointCoordinatesData.map((se,Ee)=>({...j,feature:new c.A(new w.A(se)),index:Ee}))}}).filter(V=>!!V).flat()}computeEllipseFeature(L){const J=[L[0],L[1]],X=[L[2],L[3]],K=[(J[0][0]+J[1][0])/2,(J[0][1]+J[1][1])/2],N=Math.sqrt(Math.pow(J[0][0]-J[1][0],2)+Math.pow(J[0][1]-J[1][1],2))/2,V=Math.sqrt(Math.pow(X[0][0]-X[1][0],2)+Math.pow(X[0][1]-X[1][1],2))/2,I=Math.atan2(J[1][1]-J[0][1],J[1][0]-J[0][0]),M=[];for(let Me=0;Me<64;Me++){const oe=Me/64*2*Math.PI,R=K[0]+N*Math.cos(oe)*Math.cos(I)-V*Math.sin(oe)*Math.sin(I),se=K[1]+N*Math.cos(oe)*Math.sin(I)+V*Math.sin(oe)*Math.cos(I);M.push([R,se])}return new c.A(new d.Ay([M]))}setupCurrentUser(){(ie.c.ANNOTATION_HASH_STORED_USER_EMAIL?this.userService.getCurrentUserHash$():this.userService.getCurrentUser$()).subscribe(L=>{this.currentUser=L??"",Le.Qy.annotatorId=this.currentUser})}setupSplitViewSlideDescriptorsChanges(){this.splitViewSlideDescriptors$.pipe((0,u.Q)(this.destroy$),(0,E.n)(L=>{const q=L.filter(X=>!!X?.id);if(!q.length)return p.w;const J=q.map(X=>{const K=X.id;return[this.fetchSlideInfo(K).pipe((0,E.n)(N=>N?this.fetchAnnotationInstances(K,N):p.w)),this.fetchSlideExtraMetadata(K)]}).flat().filter(X=>void 0!==X);return(0,g.z)(J)})).subscribe()}setupRouteHandling(){this.activatedRoute.queryParams.pipe((0,u.Q)(this.destroy$),(0,W.F)(),(0,P.M)(L=>{if(!this.router.url.startsWith(de.Pq))return;let{cohortName:J,series:X}=L;if(X&&(X=(0,Z.q5)(X)),!ie.c.IMAGE_DICOM_STORE_BASE_URL)return void this.router.navigate(["/config"]);if(!X&&!J)return void this.router.navigate(["/viewer"],{queryParams:{series:`${ie.c.IMAGE_DICOM_STORE_BASE_URL}${ie.c.DEFAULT_SERIES_TO_LOAD}`}});if(J){if(!X)return void this.router.navigate(["/cohorts"],{queryParams:{cohortName:J}});this.cohortService.fetchPathologyCohort(J)}if(!X)return void this.router.navigate(["/search"]);try{(0,Z.ow)(X)}catch{return void this.dialogService.error("For your safety loading this slide was blocked. The DICOM store specified in your browser URL is not on the ones that were configured.").subscribe(()=>{this.router.navigate(["/search"])})}const K=X.indexOf("/series/");let N=-1===K?X:X.slice(0,K);this.caseId!==N&&(this.caseId=""),this.caseId||(this.caseId=N,N=""),this.caseId&&this.caseId!==N&&this.slideApiService.getSlidesForCase(this.caseId).subscribe(I=>{const M=this.slideDescriptorsByCaseId$.value;M.set(this.caseId,I),this.slideDescriptorsByCaseId$.next(M)});const V=X.split(",").map(I=>{if(I)return{id:I}});3===V.length&&V.push(void 0),this.multiViewScreens$.next(V.length),this.splitViewSlideDescriptors$.next(V),this.selectedSplitViewSlideDescriptor$.next(V[this.multiViewScreenSelectedIndex$.value]??V[0])})).subscribe()}fetchSlideInfo(L){return this.slideInfoBySlideDescriptorId$.value.has(L)?p.w:this.slideApiService.getSlideInfo(L).pipe((0,P.M)(q=>{const J=this.slideInfoBySlideDescriptorId$.value;J.set(L,q),this.slideInfoBySlideDescriptorId$.next(J)}))}fetchSlideExtraMetadata(L){return this.slideMetaDataBySlideDescriptorId$.value.has(L)?p.w:this.slideApiService.getSlideExtraMetadata(L).pipe((0,ne.T)(q=>{const J=this.slideMetaDataBySlideDescriptorId$.value;return J.set(L,q),J}),(0,P.M)(q=>{this.slideMetaDataBySlideDescriptorId$.next(q)}))}fetchAnnotationInstances(L,q){if(!ie.c.ENABLE_ANNOTATIONS||!ie.c.ANNOTATIONS_DICOM_STORE_BASE_URL||!q)return p.w;const J=(0,ae.hd)((0,ae.LG)(L).path);return this.hasAnnotationReadAccessBySlideDescriptorId$.value.set(L,!0),this.hasAnnotationReadAccessBySlideDescriptorId$.next(this.hasAnnotationReadAccessBySlideDescriptorId$.value),this.dicomAnnotationsService.fetchDicomAnnotationInstances(J,q).pipe((0,ne.T)(X=>{X=this.dicomAnnotationsService.getUniqueAnnotationInstances(X).sort((N,V)=>N.annotatorId.localeCompare(V.annotatorId));const K=this.annotationInstancesBySlideDescriptorId$.value;return K.set(L,X),K}),(0,P.M)(X=>{this.annotationInstancesBySlideDescriptorId$.next(X)}),(0,T.W)(X=>{let K="Something went wrong when trying to retrieve Dicom annotations.";throw X.status===o.kG.Forbidden&&(K=`"Permission required."\n Your current access level doesn't allow you to retrieve Dicom annotations for:\n ${q.slideName}`,this.hasAnnotationReadAccessBySlideDescriptorId$.value.set(L,!1),this.hasAnnotationReadAccessBySlideDescriptorId$.next(this.hasAnnotationReadAccessBySlideDescriptorId$.value)),this.dialogService.error(K).subscribe(),new Error(K)}))}setupFetchingAnnotations(){this.loadingDicomAnnotations$=this.dicomAnnotationsService.loadingDicomAnnotations$,(0,g.z)([this.splitViewSlideDescriptors$,this.selectedInstanceIdsBySlideDescriptorId$,this.annotationInstancesBySlideDescriptorId$]).pipe((0,P.M)(([L,q,J])=>{L.filter(X=>!!X?.id).filter(X=>{if(X.id)return!q.has(X.id)}).map(X=>X.id).forEach(X=>{if(!X||q.has(X))return;const K=(J.get(X)??[]).filter(N=>N.annotatorId===this.currentUser).map(N=>N.path.instanceUID).filter(N=>void 0!==N);K.length&&(q.set(X,new Set(K)),this.selectedInstanceIdsBySlideDescriptorId$.next(q))})})).subscribe(),(0,g.z)([this.splitViewSlideDescriptors$,this.selectedInstanceIdsBySlideDescriptorId$,this.annotationInstancesBySlideDescriptorId$]).pipe((0,u.Q)(this.destroy$),(0,ne.T)(([L,q,J])=>L.length&&q.size&&J.size?L.filter(K=>!!K?.id).map(K=>{const N=K.id,V=(J.get(N)??[]).filter(I=>{const M=q.get(N);return!M||I.path.instanceUID&&M.has(I.path.instanceUID)});return{slideDescriptorId:N,filteredAnnotationInstances:V}}).filter(({filteredAnnotationInstances:K})=>K.length):void 0),(0,E.n)(L=>L&&L.length?this.fetchAnnotationsDicomModels(L):p.w),(0,ne.T)(L=>{if(!Array.isArray(L))return;const q=this.annotationsDicomModelByAnnotationInstanceId$.value;return q.clear(),L.forEach(({annotationInstance:J,annotations:X})=>{J.path.instanceUID&&q.set(J.path.instanceUID,X)}),q}),(0,P.M)(L=>{L&&this.annotationsDicomModelByAnnotationInstanceId$.next(L)}),(0,T.W)(L=>(this.dialogService.error(L).subscribe(),p.w))).subscribe()}fetchAnnotationsDicomModels(L){if(!L)return(0,y.of)(p.w);const q=L.map(({filteredAnnotationInstances:X})=>X.map(K=>{const N=(0,ae.hd)(K.path);return this.dicomAnnotationsService.fetchDicomAnnotationModels(N).pipe((0,ne.T)(V=>({annotationInstance:K,annotations:V[0]})))})).flat().filter(J=>void 0!==J);return(0,h.p)(q)}cleanOldModifyInteractions(L){L.getInteractions().getArray().filter(J=>J instanceof C.A).forEach(J=>{L?.removeInteraction(J)})}static{this.\u0275fac=function(q){return new(q||z)(_e.KVO(Ce.nX),_e.KVO(Ae.Do),_e.KVO(ke.o),_e.KVO(Ue.AI),_e.KVO(ve.D),_e.KVO(ye.T),_e.KVO(Ce.Ix))}}static{this.\u0275prov=_e.jDH({token:z,factory:z.\u0275fac,providedIn:"root"})}}return z})()},8375:(ut,Ie,a)=>{"use strict";a.d(Ie,{An:()=>g,s2:()=>D});var o=a(9030),c=a(4412),O=a(7468),d=a(7673),w=a(980),C=a(8141);function D(y){return(0,o.v)(()=>{let h=0;const u=new c.t(0),P=y.map((E,W)=>E.pipe((0,w.j)(()=>{const ne=100*++h/y.length;u.next(ne)}))),T=(0,O.p)(P).pipe((0,C.M)(()=>{u.next(100),u.complete()}));return(0,d.of)({result:T,progress:u.asObservable()})})}function g(y,h,u){const P=h.slice(0,u);if(!y.size||!h||!u)return P;const T=Array.from(y).filter(ke=>ke.trim().length<=u).map(ke=>ke.trim().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")).join("|");if(!T)return P;const E=new RegExp(T,"gi");let de,ie,W=0,ne=0,Z=0,ae=0;const Le=[...h.matchAll(E)].filter(({index:ke})=>ke);for(let ke=0;keu){if(W--,W>ne){const z=Le[ke-1];ne=W,de=Le[ae].index,ie=z.index+z[0].length}Z=Ue.index+ye.length-Le[ae+1].index,ae++}else ke===Le.length-1&&W>ne&&(ne=W,de=Le[ae].index,ie=Ue.index+ye.length)}if(!de||!ie)return P;let Ae=Math.max(0,de-Math.round(.7*(u-(ie-de))));return Ae+u>h.length&&(Ae=Math.max(0,h.length-u)),h.substring(Ae,Ae+u)}},9995:function(ut){ut.exports=function(){"use strict";function Ie(T,E,W,ne,de){!function ie(Z,ae,Le,_e,Ce){for(;_e>Le;){if(_e-Le>600){var Ae=_e-Le+1,ke=ae-Le+1,Ue=Math.log(Ae),ve=.5*Math.exp(2*Ue/3),ye=.5*Math.sqrt(Ue*ve*(Ae-ve)/Ae)*(ke-Ae/2<0?-1:1);ie(Z,ae,Math.max(Le,Math.floor(ae-ke*ve/Ae+ye)),Math.min(_e,Math.floor(ae+(Ae-ke)*ve/Ae+ye)),Ce)}var te=Z[ae],L=Le,q=_e;for(a(Z,Le,ae),Ce(Z[_e],te)>0&&a(Z,Le,_e);L0;)q--}0===Ce(Z[Le],te)?a(Z,Le,q):a(Z,++q,_e),q<=ae&&(Le=q+1),ae<=q&&(_e=q-1)}}(T,E,W||0,ne||T.length-1,de||o)}function a(T,E,W){var ne=T[E];T[E]=T[W],T[W]=ne}function o(T,E){return TE?1:0}var c=function(T){void 0===T&&(T=9),this._maxEntries=Math.max(4,T),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function O(T,E,W){if(!W)return E.indexOf(T);for(var ne=0;ne=T.minX&&E.maxY>=T.minY}function u(T){return{children:T,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function P(T,E,W,ne,de){for(var ie=[E,W];ie.length;)if(!((W=ie.pop())-(E=ie.pop())<=ne)){var Z=E+Math.ceil((W-E)/ne/2)*ne;Ie(T,Z,E,W,de),ie.push(E,Z,Z,W)}}return c.prototype.all=function(){return this._all(this.data,[])},c.prototype.search=function(T){var E=this.data,W=[];if(!h(T,E))return W;for(var ne=this.toBBox,de=[];E;){for(var ie=0;ie=0&&de[E].children.length>this._maxEntries;)this._split(de,E),E--;this._adjustParentBBoxes(ne,de,E)},c.prototype._split=function(T,E){var W=T[E],ne=W.children.length,de=this._minEntries;this._chooseSplitAxis(W,de,ne);var ie=this._chooseSplitIndex(W,de,ne),Z=u(W.children.splice(ie,W.children.length-ie));Z.height=W.height,Z.leaf=W.leaf,d(W,this.toBBox),d(Z,this.toBBox),E?T[E-1].children.push(Z):this._splitRoot(W,Z)},c.prototype._splitRoot=function(T,E){this.data=u([T,E]),this.data.height=T.height+1,this.data.leaf=!1,d(this.data,this.toBBox)},c.prototype._chooseSplitIndex=function(T,E,W){for(var ne,de,ie,Z,ae,Le,_e,Ce=1/0,Ae=1/0,ke=E;ke<=W-E;ke++){var Ue=w(T,0,ke,this.toBBox),ve=w(T,ke,W,this.toBBox),ye=(de=Ue,ie=ve,void 0,void 0,void 0,void 0,Z=Math.max(de.minX,ie.minX),ae=Math.max(de.minY,ie.minY),Le=Math.min(de.maxX,ie.maxX),_e=Math.min(de.maxY,ie.maxY),Math.max(0,Le-Z)*Math.max(0,_e-ae)),Se=p(Ue)+p(ve);ye=E;Ce--){var Ae=T.children[Ce];C(Z,T.leaf?de(Ae):Ae),ae+=g(Z)}return ae},c.prototype._adjustParentBBoxes=function(T,E,W){for(var ne=W;ne>=0;ne--)C(E[ne],T)},c.prototype._condense=function(T){for(var E=T.length-1,W=void 0;E>=0;E--)0===T[E].children.length?E>0?(W=T[E-1].children).splice(W.indexOf(T[E]),1):this.clear():d(T[E],this.toBBox)},c}()},4412:(ut,Ie,a)=>{"use strict";a.d(Ie,{t:()=>c});var o=a(1413);class c extends o.B{constructor(d){super(),this._value=d}get value(){return this.getValue()}_subscribe(d){const w=super._subscribe(d);return!w.closed&&d.next(this._value),w}getValue(){const{hasError:d,thrownError:w,_value:C}=this;if(d)throw w;return this._throwIfClosed(),C}next(d){super.next(this._value=d)}}},1985:(ut,Ie,a)=>{"use strict";a.d(Ie,{c:()=>D});var o=a(7707),c=a(8359),O=a(3494),d=a(1203),w=a(1026),C=a(8071),x=a(9786);let D=(()=>{class h{constructor(P){P&&(this._subscribe=P)}lift(P){const T=new h;return T.source=this,T.operator=P,T}subscribe(P,T,E){const W=function y(h){return h&&h instanceof o.vU||function g(h){return h&&(0,C.T)(h.next)&&(0,C.T)(h.error)&&(0,C.T)(h.complete)}(h)&&(0,c.Uv)(h)}(P)?P:new o.Ms(P,T,E);return(0,x.Y)(()=>{const{operator:ne,source:de}=this;W.add(ne?ne.call(W,de):de?this._subscribe(W):this._trySubscribe(W))}),W}_trySubscribe(P){try{return this._subscribe(P)}catch(T){P.error(T)}}forEach(P,T){return new(T=p(T))((E,W)=>{const ne=new o.Ms({next:de=>{try{P(de)}catch(ie){W(ie),ne.unsubscribe()}},error:W,complete:E});this.subscribe(ne)})}_subscribe(P){var T;return null===(T=this.source)||void 0===T?void 0:T.subscribe(P)}[O.s](){return this}pipe(...P){return(0,d.m)(P)(this)}toPromise(P){return new(P=p(P))((T,E)=>{let W;this.subscribe(ne=>W=ne,ne=>E(ne),()=>T(W))})}}return h.create=u=>new h(u),h})();function p(h){var u;return null!==(u=h??w.$.Promise)&&void 0!==u?u:Promise}},2771:(ut,Ie,a)=>{"use strict";a.d(Ie,{m:()=>O});var o=a(1413),c=a(6129);class O extends o.B{constructor(w=1/0,C=1/0,x=c.U){super(),this._bufferSize=w,this._windowTime=C,this._timestampProvider=x,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=C===1/0,this._bufferSize=Math.max(1,w),this._windowTime=Math.max(1,C)}next(w){const{isStopped:C,_buffer:x,_infiniteTimeWindow:D,_timestampProvider:p,_windowTime:g}=this;C||(x.push(w),!D&&x.push(p.now()+g)),this._trimBuffer(),super.next(w)}_subscribe(w){this._throwIfClosed(),this._trimBuffer();const C=this._innerSubscribe(w),{_infiniteTimeWindow:x,_buffer:D}=this,p=D.slice();for(let g=0;g{"use strict";a.d(Ie,{B:()=>x});var o=a(1985),c=a(8359);const d=(0,a(1853).L)(p=>function(){p(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var w=a(7908),C=a(9786);let x=(()=>{class p extends o.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(y){const h=new D(this,this);return h.operator=y,h}_throwIfClosed(){if(this.closed)throw new d}next(y){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const h of this.currentObservers)h.next(y)}})}error(y){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=y;const{observers:h}=this;for(;h.length;)h.shift().error(y)}})}complete(){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:y}=this;for(;y.length;)y.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var y;return(null===(y=this.observers)||void 0===y?void 0:y.length)>0}_trySubscribe(y){return this._throwIfClosed(),super._trySubscribe(y)}_subscribe(y){return this._throwIfClosed(),this._checkFinalizedStatuses(y),this._innerSubscribe(y)}_innerSubscribe(y){const{hasError:h,isStopped:u,observers:P}=this;return h||u?c.Kn:(this.currentObservers=null,P.push(y),new c.yU(()=>{this.currentObservers=null,(0,w.o)(P,y)}))}_checkFinalizedStatuses(y){const{hasError:h,thrownError:u,isStopped:P}=this;h?y.error(u):P&&y.complete()}asObservable(){const y=new o.c;return y.source=this,y}}return p.create=(g,y)=>new D(g,y),p})();class D extends x{constructor(g,y){super(),this.destination=g,this.source=y}next(g){var y,h;null===(h=null===(y=this.destination)||void 0===y?void 0:y.next)||void 0===h||h.call(y,g)}error(g){var y,h;null===(h=null===(y=this.destination)||void 0===y?void 0:y.error)||void 0===h||h.call(y,g)}complete(){var g,y;null===(y=null===(g=this.destination)||void 0===g?void 0:g.complete)||void 0===y||y.call(g)}_subscribe(g){var y,h;return null!==(h=null===(y=this.source)||void 0===y?void 0:y.subscribe(g))&&void 0!==h?h:c.Kn}}},7707:(ut,Ie,a)=>{"use strict";a.d(Ie,{Ms:()=>E,vU:()=>h});var o=a(8071),c=a(8359),O=a(1026),d=a(5334),w=a(5343);const C=p("C",void 0,void 0);function p(Z,ae,Le){return{kind:Z,value:ae,error:Le}}var g=a(9270),y=a(9786);class h extends c.yU{constructor(ae){super(),this.isStopped=!1,ae?(this.destination=ae,(0,c.Uv)(ae)&&ae.add(this)):this.destination=ie}static create(ae,Le,_e){return new E(ae,Le,_e)}next(ae){this.isStopped?de(function D(Z){return p("N",Z,void 0)}(ae),this):this._next(ae)}error(ae){this.isStopped?de(function x(Z){return p("E",void 0,Z)}(ae),this):(this.isStopped=!0,this._error(ae))}complete(){this.isStopped?de(C,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ae){this.destination.next(ae)}_error(ae){try{this.destination.error(ae)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const u=Function.prototype.bind;function P(Z,ae){return u.call(Z,ae)}class T{constructor(ae){this.partialObserver=ae}next(ae){const{partialObserver:Le}=this;if(Le.next)try{Le.next(ae)}catch(_e){W(_e)}}error(ae){const{partialObserver:Le}=this;if(Le.error)try{Le.error(ae)}catch(_e){W(_e)}else W(ae)}complete(){const{partialObserver:ae}=this;if(ae.complete)try{ae.complete()}catch(Le){W(Le)}}}class E extends h{constructor(ae,Le,_e){let Ce;if(super(),(0,o.T)(ae)||!ae)Ce={next:ae??void 0,error:Le??void 0,complete:_e??void 0};else{let Ae;this&&O.$.useDeprecatedNextContext?(Ae=Object.create(ae),Ae.unsubscribe=()=>this.unsubscribe(),Ce={next:ae.next&&P(ae.next,Ae),error:ae.error&&P(ae.error,Ae),complete:ae.complete&&P(ae.complete,Ae)}):Ce=ae}this.destination=new T(Ce)}}function W(Z){O.$.useDeprecatedSynchronousErrorHandling?(0,y.l)(Z):(0,d.m)(Z)}function de(Z,ae){const{onStoppedNotification:Le}=O.$;Le&&g.f.setTimeout(()=>Le(Z,ae))}const ie={closed:!0,next:w.l,error:function ne(Z){throw Z},complete:w.l}},8359:(ut,Ie,a)=>{"use strict";a.d(Ie,{Kn:()=>C,yU:()=>w,Uv:()=>x});var o=a(8071);const O=(0,a(1853).L)(p=>function(y){p(this),this.message=y?`${y.length} errors occurred during unsubscription:\n${y.map((h,u)=>`${u+1}) ${h.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=y});var d=a(7908);class w{constructor(g){this.initialTeardown=g,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let g;if(!this.closed){this.closed=!0;const{_parentage:y}=this;if(y)if(this._parentage=null,Array.isArray(y))for(const P of y)P.remove(this);else y.remove(this);const{initialTeardown:h}=this;if((0,o.T)(h))try{h()}catch(P){g=P instanceof O?P.errors:[P]}const{_finalizers:u}=this;if(u){this._finalizers=null;for(const P of u)try{D(P)}catch(T){g=g??[],T instanceof O?g=[...g,...T.errors]:g.push(T)}}if(g)throw new O(g)}}add(g){var y;if(g&&g!==this)if(this.closed)D(g);else{if(g instanceof w){if(g.closed||g._hasParent(this))return;g._addParent(this)}(this._finalizers=null!==(y=this._finalizers)&&void 0!==y?y:[]).push(g)}}_hasParent(g){const{_parentage:y}=this;return y===g||Array.isArray(y)&&y.includes(g)}_addParent(g){const{_parentage:y}=this;this._parentage=Array.isArray(y)?(y.push(g),y):y?[y,g]:g}_removeParent(g){const{_parentage:y}=this;y===g?this._parentage=null:Array.isArray(y)&&(0,d.o)(y,g)}remove(g){const{_finalizers:y}=this;y&&(0,d.o)(y,g),g instanceof w&&g._removeParent(this)}}w.EMPTY=(()=>{const p=new w;return p.closed=!0,p})();const C=w.EMPTY;function x(p){return p instanceof w||p&&"closed"in p&&(0,o.T)(p.remove)&&(0,o.T)(p.add)&&(0,o.T)(p.unsubscribe)}function D(p){(0,o.T)(p)?p():p.unsubscribe()}},1026:(ut,Ie,a)=>{"use strict";a.d(Ie,{$:()=>o});const o={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:(ut,Ie,a)=>{"use strict";a.d(Ie,{G:()=>C});var o=a(1985),c=a(8359),O=a(9898),d=a(4360),w=a(9974);class C extends o.c{constructor(D,p){super(),this.source=D,this.subjectFactory=p,this._subject=null,this._refCount=0,this._connection=null,(0,w.S)(D)&&(this.lift=D.lift)}_subscribe(D){return this.getSubject().subscribe(D)}getSubject(){const D=this._subject;return(!D||D.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:D}=this;this._subject=this._connection=null,D?.unsubscribe()}connect(){let D=this._connection;if(!D){D=this._connection=new c.yU;const p=this.getSubject();D.add(this.source.subscribe((0,d._)(p,void 0,()=>{this._teardown(),p.complete()},g=>{this._teardown(),p.error(g)},()=>this._teardown()))),D.closed&&(this._connection=null,D=c.yU.EMPTY)}return D}refCount(){return(0,O.B)()(this)}}},4572:(ut,Ie,a)=>{"use strict";a.d(Ie,{z:()=>g});var o=a(1985),c=a(3073),O=a(6648),d=a(3669),w=a(6450),C=a(9326),x=a(8496),D=a(4360),p=a(5225);function g(...u){const P=(0,C.lI)(u),T=(0,C.ms)(u),{args:E,keys:W}=(0,c.D)(u);if(0===E.length)return(0,O.H)([],P);const ne=new o.c(function y(u,P,T=d.D){return E=>{h(P,()=>{const{length:W}=u,ne=new Array(W);let de=W,ie=W;for(let Z=0;Z{const ae=(0,O.H)(u[Z],P);let Le=!1;ae.subscribe((0,D._)(E,_e=>{ne[Z]=_e,Le||(Le=!0,ie--),ie||E.next(T(ne.slice()))},()=>{--de||E.complete()}))},E)},E)}}(E,P,W?de=>(0,x.e)(W,de):d.D));return T?ne.pipe((0,w.I)(T)):ne}function h(u,P,T){u?(0,p.N)(T,u,P):P()}},8793:(ut,Ie,a)=>{"use strict";a.d(Ie,{x:()=>w});var o=a(6365),O=a(9326),d=a(6648);function w(...C){return function c(){return(0,o.U)(1)}()((0,d.H)(C,(0,O.lI)(C)))}},9030:(ut,Ie,a)=>{"use strict";a.d(Ie,{v:()=>O});var o=a(1985),c=a(8750);function O(d){return new o.c(w=>{(0,c.Tg)(d()).subscribe(w)})}},983:(ut,Ie,a)=>{"use strict";a.d(Ie,{w:()=>c});const c=new(a(1985).c)(w=>w.complete())},7468:(ut,Ie,a)=>{"use strict";a.d(Ie,{p:()=>D});var o=a(1985),c=a(3073),O=a(8750),d=a(9326),w=a(4360),C=a(6450),x=a(8496);function D(...p){const g=(0,d.ms)(p),{args:y,keys:h}=(0,c.D)(p),u=new o.c(P=>{const{length:T}=y;if(!T)return void P.complete();const E=new Array(T);let W=T,ne=T;for(let de=0;de{ie||(ie=!0,ne--),E[de]=Z},()=>W--,void 0,()=>{(!W||!ie)&&(ne||P.next(h?(0,x.e)(h,E):E),P.complete())}))}});return g?u.pipe((0,C.I)(g)):u}},6648:(ut,Ie,a)=>{"use strict";a.d(Ie,{H:()=>_e});var o=a(8750),c=a(5225),O=a(9974),d=a(4360);function w(Ce,Ae=0){return(0,O.N)((ke,Ue)=>{ke.subscribe((0,d._)(Ue,ve=>(0,c.N)(Ue,Ce,()=>Ue.next(ve),Ae),()=>(0,c.N)(Ue,Ce,()=>Ue.complete(),Ae),ve=>(0,c.N)(Ue,Ce,()=>Ue.error(ve),Ae)))})}function C(Ce,Ae=0){return(0,O.N)((ke,Ue)=>{Ue.add(Ce.schedule(()=>ke.subscribe(Ue),Ae))})}var p=a(1985),y=a(4761),h=a(8071);function P(Ce,Ae){if(!Ce)throw new Error("Iterable cannot be null");return new p.c(ke=>{(0,c.N)(ke,Ae,()=>{const Ue=Ce[Symbol.asyncIterator]();(0,c.N)(ke,Ae,()=>{Ue.next().then(ve=>{ve.done?ke.complete():ke.next(ve.value)})},0,!0)})})}var T=a(5055),E=a(9858),W=a(7441),ne=a(5397),de=a(7953),ie=a(591),Z=a(5196);function _e(Ce,Ae){return Ae?function Le(Ce,Ae){if(null!=Ce){if((0,T.l)(Ce))return function x(Ce,Ae){return(0,o.Tg)(Ce).pipe(C(Ae),w(Ae))}(Ce,Ae);if((0,W.X)(Ce))return function g(Ce,Ae){return new p.c(ke=>{let Ue=0;return Ae.schedule(function(){Ue===Ce.length?ke.complete():(ke.next(Ce[Ue++]),ke.closed||this.schedule())})})}(Ce,Ae);if((0,E.y)(Ce))return function D(Ce,Ae){return(0,o.Tg)(Ce).pipe(C(Ae),w(Ae))}(Ce,Ae);if((0,de.T)(Ce))return P(Ce,Ae);if((0,ne.x)(Ce))return function u(Ce,Ae){return new p.c(ke=>{let Ue;return(0,c.N)(ke,Ae,()=>{Ue=Ce[y.l](),(0,c.N)(ke,Ae,()=>{let ve,ye;try{({value:ve,done:ye}=Ue.next())}catch(Se){return void ke.error(Se)}ye?ke.complete():ke.next(ve)},0,!0)}),()=>(0,h.T)(Ue?.return)&&Ue.return()})}(Ce,Ae);if((0,Z.U)(Ce))return function ae(Ce,Ae){return P((0,Z.C)(Ce),Ae)}(Ce,Ae)}throw(0,ie.L)(Ce)}(Ce,Ae):(0,o.Tg)(Ce)}},8750:(ut,Ie,a)=>{"use strict";a.d(Ie,{Tg:()=>u});var o=a(1635),c=a(7441),O=a(9858),d=a(1985),w=a(5055),C=a(7953),x=a(591),D=a(5397),p=a(5196),g=a(8071),y=a(5334),h=a(3494);function u(Z){if(Z instanceof d.c)return Z;if(null!=Z){if((0,w.l)(Z))return function P(Z){return new d.c(ae=>{const Le=Z[h.s]();if((0,g.T)(Le.subscribe))return Le.subscribe(ae);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Z);if((0,c.X)(Z))return function T(Z){return new d.c(ae=>{for(let Le=0;Le{Z.then(Le=>{ae.closed||(ae.next(Le),ae.complete())},Le=>ae.error(Le)).then(null,y.m)})}(Z);if((0,C.T)(Z))return ne(Z);if((0,D.x)(Z))return function W(Z){return new d.c(ae=>{for(const Le of Z)if(ae.next(Le),ae.closed)return;ae.complete()})}(Z);if((0,p.U)(Z))return function de(Z){return ne((0,p.C)(Z))}(Z)}throw(0,x.L)(Z)}function ne(Z){return new d.c(ae=>{(function ie(Z,ae){var Le,_e,Ce,Ae;return(0,o.sH)(this,void 0,void 0,function*(){try{for(Le=(0,o.xN)(Z);!(_e=yield Le.next()).done;)if(ae.next(_e.value),ae.closed)return}catch(ke){Ce={error:ke}}finally{try{_e&&!_e.done&&(Ae=Le.return)&&(yield Ae.call(Le))}finally{if(Ce)throw Ce.error}}ae.complete()})})(Z,ae).catch(Le=>ae.error(Le))})}},7786:(ut,Ie,a)=>{"use strict";a.d(Ie,{h:()=>C});var o=a(6365),c=a(8750),O=a(983),d=a(9326),w=a(6648);function C(...x){const D=(0,d.lI)(x),p=(0,d.R0)(x,1/0),g=x;return g.length?1===g.length?(0,c.Tg)(g[0]):(0,o.U)(p)((0,w.H)(g,D)):O.w}},7673:(ut,Ie,a)=>{"use strict";a.d(Ie,{of:()=>O});var o=a(9326),c=a(6648);function O(...d){const w=(0,o.lI)(d);return(0,c.H)(d,w)}},8810:(ut,Ie,a)=>{"use strict";a.d(Ie,{$:()=>O});var o=a(1985),c=a(8071);function O(d,w){const C=(0,c.T)(d)?d:()=>d,x=D=>D.error(C());return new o.c(w?D=>w.schedule(x,0,D):x)}},1584:(ut,Ie,a)=>{"use strict";a.d(Ie,{O:()=>w});var o=a(1985),c=a(3236),O=a(9470);function w(C=0,x,D=c.b){let p=-1;return null!=x&&((0,O.m)(x)?D=x:p=x),new o.c(g=>{let y=function d(C){return C instanceof Date&&!isNaN(C)}(C)?+C-D.now():C;y<0&&(y=0);let h=0;return D.schedule(function(){g.closed||(g.next(h++),0<=p?this.schedule(void 0,p):g.complete())},y)})}},4360:(ut,Ie,a)=>{"use strict";a.d(Ie,{_:()=>c});var o=a(7707);function c(d,w,C,x,D){return new O(d,w,C,x,D)}class O extends o.vU{constructor(w,C,x,D,p,g){super(w),this.onFinalize=p,this.shouldUnsubscribe=g,this._next=C?function(y){try{C(y)}catch(h){w.error(h)}}:super._next,this._error=D?function(y){try{D(y)}catch(h){w.error(h)}finally{this.unsubscribe()}}:super._error,this._complete=x?function(){try{x()}catch(y){w.error(y)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var w;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:C}=this;super.unsubscribe(),!C&&(null===(w=this.onFinalize)||void 0===w||w.call(this))}}}},9437:(ut,Ie,a)=>{"use strict";a.d(Ie,{W:()=>d});var o=a(8750),c=a(4360),O=a(9974);function d(w){return(0,O.N)((C,x)=>{let g,D=null,p=!1;D=C.subscribe((0,c._)(x,void 0,void 0,y=>{g=(0,o.Tg)(w(y,d(w)(C))),D?(D.unsubscribe(),D=null,g.subscribe(x)):p=!0})),p&&(D.unsubscribe(),D=null,g.subscribe(x))})}},274:(ut,Ie,a)=>{"use strict";a.d(Ie,{H:()=>O});var o=a(1397),c=a(8071);function O(d,w){return(0,c.T)(w)?(0,o.Z)(d,w,1):(0,o.Z)(d,1)}},152:(ut,Ie,a)=>{"use strict";a.d(Ie,{B:()=>d});var o=a(3236),c=a(9974),O=a(4360);function d(w,C=o.E){return(0,c.N)((x,D)=>{let p=null,g=null,y=null;const h=()=>{if(p){p.unsubscribe(),p=null;const P=g;g=null,D.next(P)}};function u(){const P=y+w,T=C.now();if(T{g=P,y=C.now(),p||(p=C.schedule(u,w),D.add(p))},()=>{h(),D.complete()},void 0,()=>{g=p=null}))})}},9901:(ut,Ie,a)=>{"use strict";a.d(Ie,{U:()=>O});var o=a(9974),c=a(4360);function O(d){return(0,o.N)((w,C)=>{let x=!1;w.subscribe((0,c._)(C,D=>{x=!0,C.next(D)},()=>{x||C.next(d),C.complete()}))})}},3294:(ut,Ie,a)=>{"use strict";a.d(Ie,{F:()=>d});var o=a(3669),c=a(9974),O=a(4360);function d(C,x=o.D){return C=C??w,(0,c.N)((D,p)=>{let g,y=!0;D.subscribe((0,O._)(p,h=>{const u=x(h);(y||!C(g,u))&&(y=!1,g=u,p.next(h))}))})}function w(C,x){return C===x}},5964:(ut,Ie,a)=>{"use strict";a.d(Ie,{p:()=>O});var o=a(9974),c=a(4360);function O(d,w){return(0,o.N)((C,x)=>{let D=0;C.subscribe((0,c._)(x,p=>d.call(w,p,D++)&&x.next(p)))})}},980:(ut,Ie,a)=>{"use strict";a.d(Ie,{j:()=>c});var o=a(9974);function c(O){return(0,o.N)((d,w)=>{try{d.subscribe(w)}finally{w.add(O)}})}},1594:(ut,Ie,a)=>{"use strict";a.d(Ie,{$:()=>x});var o=a(9350),c=a(5964),O=a(6697),d=a(9901),w=a(3774),C=a(3669);function x(D,p){const g=arguments.length>=2;return y=>y.pipe(D?(0,c.p)((h,u)=>D(h,u,y)):C.D,(0,O.s)(1),g?(0,d.U)(p):(0,w.v)(()=>new o.G))}},3557:(ut,Ie,a)=>{"use strict";a.d(Ie,{w:()=>d});var o=a(9974),c=a(4360),O=a(5343);function d(){return(0,o.N)((w,C)=>{w.subscribe((0,c._)(C,O.l))})}},6354:(ut,Ie,a)=>{"use strict";a.d(Ie,{T:()=>O});var o=a(9974),c=a(4360);function O(d,w){return(0,o.N)((C,x)=>{let D=0;C.subscribe((0,c._)(x,p=>{x.next(d.call(w,p,D++))}))})}},6365:(ut,Ie,a)=>{"use strict";a.d(Ie,{U:()=>O});var o=a(1397),c=a(3669);function O(d=1/0){return(0,o.Z)(c.D,d)}},1397:(ut,Ie,a)=>{"use strict";a.d(Ie,{Z:()=>D});var o=a(6354),c=a(8750),O=a(9974),d=a(5225),w=a(4360),x=a(8071);function D(p,g,y=1/0){return(0,x.T)(g)?D((h,u)=>(0,o.T)((P,T)=>g(h,P,u,T))((0,c.Tg)(p(h,u))),y):("number"==typeof g&&(y=g),(0,O.N)((h,u)=>function C(p,g,y,h,u,P,T,E){const W=[];let ne=0,de=0,ie=!1;const Z=()=>{ie&&!W.length&&!ne&&g.complete()},ae=_e=>ne{P&&g.next(_e),ne++;let Ce=!1;(0,c.Tg)(y(_e,de++)).subscribe((0,w._)(g,Ae=>{u?.(Ae),P?ae(Ae):g.next(Ae)},()=>{Ce=!0},void 0,()=>{if(Ce)try{for(ne--;W.length&&neLe(Ae)):Le(Ae)}Z()}catch(Ae){g.error(Ae)}}))};return p.subscribe((0,w._)(g,ae,()=>{ie=!0,Z()})),()=>{E?.()}}(h,u,p,y)))}},9852:(ut,Ie,a)=>{"use strict";a.d(Ie,{T:()=>O});var o=a(6649),c=a(9974);function O(d,w){return(0,c.N)((0,o.S)(d,w,arguments.length>=2,!1,!0))}},9898:(ut,Ie,a)=>{"use strict";a.d(Ie,{B:()=>O});var o=a(9974),c=a(4360);function O(){return(0,o.N)((d,w)=>{let C=null;d._refCount++;const x=(0,c._)(w,void 0,void 0,void 0,()=>{if(!d||d._refCount<=0||0<--d._refCount)return void(C=null);const D=d._connection,p=C;C=null,D&&(!p||D===p)&&D.unsubscribe(),w.unsubscribe()});d.subscribe(x),x.closed||(C=d.connect())})}},6649:(ut,Ie,a)=>{"use strict";a.d(Ie,{S:()=>c});var o=a(4360);function c(O,d,w,C,x){return(D,p)=>{let g=w,y=d,h=0;D.subscribe((0,o._)(p,u=>{const P=h++;y=g?O(y,u,P):(g=!0,u),C&&p.next(y)},x&&(()=>{g&&p.next(y),p.complete()})))}}},7647:(ut,Ie,a)=>{"use strict";a.d(Ie,{u:()=>w});var o=a(8750),c=a(1413),O=a(7707),d=a(9974);function w(x={}){const{connector:D=()=>new c.B,resetOnError:p=!0,resetOnComplete:g=!0,resetOnRefCountZero:y=!0}=x;return h=>{let u,P,T,E=0,W=!1,ne=!1;const de=()=>{P?.unsubscribe(),P=void 0},ie=()=>{de(),u=T=void 0,W=ne=!1},Z=()=>{const ae=u;ie(),ae?.unsubscribe()};return(0,d.N)((ae,Le)=>{E++,!ne&&!W&&de();const _e=T=T??D();Le.add(()=>{E--,0===E&&!ne&&!W&&(P=C(Z,y))}),_e.subscribe(Le),!u&&E>0&&(u=new O.Ms({next:Ce=>_e.next(Ce),error:Ce=>{ne=!0,de(),P=C(ie,p,Ce),_e.error(Ce)},complete:()=>{W=!0,de(),P=C(ie,g),_e.complete()}}),(0,o.Tg)(ae).subscribe(u))})(h)}}function C(x,D,...p){if(!0===D)return void x();if(!1===D)return;const g=new O.Ms({next:()=>{g.unsubscribe(),x()}});return(0,o.Tg)(D(...p)).subscribe(g)}},4668:(ut,Ie,a)=>{"use strict";a.d(Ie,{t:()=>O});var o=a(2771),c=a(7647);function O(d,w,C){let x,D=!1;return d&&"object"==typeof d?({bufferSize:x=1/0,windowTime:w=1/0,refCount:D=!1,scheduler:C}=d):x=d??1/0,(0,c.u)({connector:()=>new o.m(x,w,C),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:D})}},5245:(ut,Ie,a)=>{"use strict";a.d(Ie,{i:()=>c});var o=a(5964);function c(O){return(0,o.p)((d,w)=>O<=w)}},9172:(ut,Ie,a)=>{"use strict";a.d(Ie,{Z:()=>d});var o=a(8793),c=a(9326),O=a(9974);function d(...w){const C=(0,c.lI)(w);return(0,O.N)((x,D)=>{(C?(0,o.x)(w,x,C):(0,o.x)(w,x)).subscribe(D)})}},5558:(ut,Ie,a)=>{"use strict";a.d(Ie,{n:()=>d});var o=a(8750),c=a(9974),O=a(4360);function d(w,C){return(0,c.N)((x,D)=>{let p=null,g=0,y=!1;const h=()=>y&&!p&&D.complete();x.subscribe((0,O._)(D,u=>{p?.unsubscribe();let P=0;const T=g++;(0,o.Tg)(w(u,T)).subscribe(p=(0,O._)(D,E=>D.next(C?C(u,E,T,P++):E),()=>{p=null,h()}))},()=>{y=!0,h()}))})}},6697:(ut,Ie,a)=>{"use strict";a.d(Ie,{s:()=>d});var o=a(983),c=a(9974),O=a(4360);function d(w){return w<=0?()=>o.w:(0,c.N)((C,x)=>{let D=0;C.subscribe((0,O._)(x,p=>{++D<=w&&(x.next(p),w<=D&&x.complete())}))})}},6977:(ut,Ie,a)=>{"use strict";a.d(Ie,{Q:()=>w});var o=a(9974),c=a(4360),O=a(8750),d=a(5343);function w(C){return(0,o.N)((x,D)=>{(0,O.Tg)(C).subscribe((0,c._)(D,()=>D.complete(),d.l)),!D.closed&&x.subscribe(D)})}},8141:(ut,Ie,a)=>{"use strict";a.d(Ie,{M:()=>w});var o=a(8071),c=a(9974),O=a(4360),d=a(3669);function w(C,x,D){const p=(0,o.T)(C)||x||D?{next:C,error:x,complete:D}:C;return p?(0,c.N)((g,y)=>{var h;null===(h=p.subscribe)||void 0===h||h.call(p);let u=!0;g.subscribe((0,O._)(y,P=>{var T;null===(T=p.next)||void 0===T||T.call(p,P),y.next(P)},()=>{var P;u=!1,null===(P=p.complete)||void 0===P||P.call(p),y.complete()},P=>{var T;u=!1,null===(T=p.error)||void 0===T||T.call(p,P),y.error(P)},()=>{var P,T;u&&(null===(P=p.unsubscribe)||void 0===P||P.call(p)),null===(T=p.finalize)||void 0===T||T.call(p)}))}):d.D}},3774:(ut,Ie,a)=>{"use strict";a.d(Ie,{v:()=>d});var o=a(9350),c=a(9974),O=a(4360);function d(C=w){return(0,c.N)((x,D)=>{let p=!1;x.subscribe((0,O._)(D,g=>{p=!0,D.next(g)},()=>p?D.complete():D.error(C())))})}function w(){return new o.G}},6594:(ut,Ie,a)=>{"use strict";a.d(Ie,{$:()=>d});var o=a(9852),c=a(9974);const O=(w,C)=>(w.push(C),w);function d(){return(0,c.N)((w,C)=>{(0,o.T)(O,[])(w).subscribe(C)})}},3993:(ut,Ie,a)=>{"use strict";a.d(Ie,{E:()=>x});var o=a(9974),c=a(4360),O=a(8750),d=a(3669),w=a(5343),C=a(9326);function x(...D){const p=(0,C.ms)(D);return(0,o.N)((g,y)=>{const h=D.length,u=new Array(h);let P=D.map(()=>!1),T=!1;for(let E=0;E{u[E]=W,!T&&!P[E]&&(P[E]=!0,(T=P.every(d.D))&&(P=null))},w.l));g.subscribe((0,c._)(y,E=>{if(T){const W=[E,...u];y.next(p?p(...W):W)}}))})}},6780:(ut,Ie,a)=>{"use strict";a.d(Ie,{R:()=>w});var o=a(8359);class c extends o.yU{constructor(x,D){super()}schedule(x,D=0){return this}}const O={setInterval(C,x,...D){const{delegate:p}=O;return p?.setInterval?p.setInterval(C,x,...D):setInterval(C,x,...D)},clearInterval(C){const{delegate:x}=O;return(x?.clearInterval||clearInterval)(C)},delegate:void 0};var d=a(7908);class w extends c{constructor(x,D){super(x,D),this.scheduler=x,this.work=D,this.pending=!1}schedule(x,D=0){var p;if(this.closed)return this;this.state=x;const g=this.id,y=this.scheduler;return null!=g&&(this.id=this.recycleAsyncId(y,g,D)),this.pending=!0,this.delay=D,this.id=null!==(p=this.id)&&void 0!==p?p:this.requestAsyncId(y,this.id,D),this}requestAsyncId(x,D,p=0){return O.setInterval(x.flush.bind(x,this),p)}recycleAsyncId(x,D,p=0){if(null!=p&&this.delay===p&&!1===this.pending)return D;null!=D&&O.clearInterval(D)}execute(x,D){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const p=this._execute(x,D);if(p)return p;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(x,D){let g,p=!1;try{this.work(x)}catch(y){p=!0,g=y||new Error("Scheduled action threw falsy error")}if(p)return this.unsubscribe(),g}unsubscribe(){if(!this.closed){const{id:x,scheduler:D}=this,{actions:p}=D;this.work=this.state=this.scheduler=null,this.pending=!1,(0,d.o)(p,this),null!=x&&(this.id=this.recycleAsyncId(D,x,null)),this.delay=null,super.unsubscribe()}}}},9687:(ut,Ie,a)=>{"use strict";a.d(Ie,{q:()=>O});var o=a(6129);class c{constructor(w,C=c.now){this.schedulerActionCtor=w,this.now=C}schedule(w,C=0,x){return new this.schedulerActionCtor(this,w).schedule(x,C)}}c.now=o.U.now;class O extends c{constructor(w,C=c.now){super(w,C),this.actions=[],this._active=!1}flush(w){const{actions:C}=this;if(this._active)return void C.push(w);let x;this._active=!0;do{if(x=w.execute(w.state,w.delay))break}while(w=C.shift());if(this._active=!1,x){for(;w=C.shift();)w.unsubscribe();throw x}}}},3236:(ut,Ie,a)=>{"use strict";a.d(Ie,{E:()=>O,b:()=>d});var o=a(6780);const O=new(a(9687).q)(o.R),d=O},6129:(ut,Ie,a)=>{"use strict";a.d(Ie,{U:()=>o});const o={now:()=>(o.delegate||Date).now(),delegate:void 0}},9270:(ut,Ie,a)=>{"use strict";a.d(Ie,{f:()=>o});const o={setTimeout(c,O,...d){const{delegate:w}=o;return w?.setTimeout?w.setTimeout(c,O,...d):setTimeout(c,O,...d)},clearTimeout(c){const{delegate:O}=o;return(O?.clearTimeout||clearTimeout)(c)},delegate:void 0}},4761:(ut,Ie,a)=>{"use strict";a.d(Ie,{l:()=>c});const c=function o(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(ut,Ie,a)=>{"use strict";a.d(Ie,{s:()=>o});const o="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(ut,Ie,a)=>{"use strict";a.d(Ie,{G:()=>c});const c=(0,a(1853).L)(O=>function(){O(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(ut,Ie,a)=>{"use strict";a.d(Ie,{R0:()=>C,lI:()=>w,ms:()=>d});var o=a(8071),c=a(9470);function O(x){return x[x.length-1]}function d(x){return(0,o.T)(O(x))?x.pop():void 0}function w(x){return(0,c.m)(O(x))?x.pop():void 0}function C(x,D){return"number"==typeof O(x)?x.pop():D}},3073:(ut,Ie,a)=>{"use strict";a.d(Ie,{D:()=>w});const{isArray:o}=Array,{getPrototypeOf:c,prototype:O,keys:d}=Object;function w(x){if(1===x.length){const D=x[0];if(o(D))return{args:D,keys:null};if(function C(x){return x&&"object"==typeof x&&c(x)===O}(D)){const p=d(D);return{args:p.map(g=>D[g]),keys:p}}}return{args:x,keys:null}}},7908:(ut,Ie,a)=>{"use strict";function o(c,O){if(c){const d=c.indexOf(O);0<=d&&c.splice(d,1)}}a.d(Ie,{o:()=>o})},1853:(ut,Ie,a)=>{"use strict";function o(c){const d=c(w=>{Error.call(w),w.stack=(new Error).stack});return d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d}a.d(Ie,{L:()=>o})},8496:(ut,Ie,a)=>{"use strict";function o(c,O){return c.reduce((d,w,C)=>(d[w]=O[C],d),{})}a.d(Ie,{e:()=>o})},9786:(ut,Ie,a)=>{"use strict";a.d(Ie,{Y:()=>O,l:()=>d});var o=a(1026);let c=null;function O(w){if(o.$.useDeprecatedSynchronousErrorHandling){const C=!c;if(C&&(c={errorThrown:!1,error:null}),w(),C){const{errorThrown:x,error:D}=c;if(c=null,x)throw D}}else w()}function d(w){o.$.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=w)}},5225:(ut,Ie,a)=>{"use strict";function o(c,O,d,w=0,C=!1){const x=O.schedule(function(){d(),C?c.add(this.schedule(null,w)):this.unsubscribe()},w);if(c.add(x),!C)return x}a.d(Ie,{N:()=>o})},3669:(ut,Ie,a)=>{"use strict";function o(c){return c}a.d(Ie,{D:()=>o})},7441:(ut,Ie,a)=>{"use strict";a.d(Ie,{X:()=>o});const o=c=>c&&"number"==typeof c.length&&"function"!=typeof c},7953:(ut,Ie,a)=>{"use strict";a.d(Ie,{T:()=>c});var o=a(8071);function c(O){return Symbol.asyncIterator&&(0,o.T)(O?.[Symbol.asyncIterator])}},8071:(ut,Ie,a)=>{"use strict";function o(c){return"function"==typeof c}a.d(Ie,{T:()=>o})},5055:(ut,Ie,a)=>{"use strict";a.d(Ie,{l:()=>O});var o=a(3494),c=a(8071);function O(d){return(0,c.T)(d[o.s])}},5397:(ut,Ie,a)=>{"use strict";a.d(Ie,{x:()=>O});var o=a(4761),c=a(8071);function O(d){return(0,c.T)(d?.[o.l])}},4402:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>O});var o=a(1985),c=a(8071);function O(d){return!!d&&(d instanceof o.c||(0,c.T)(d.lift)&&(0,c.T)(d.subscribe))}},9858:(ut,Ie,a)=>{"use strict";a.d(Ie,{y:()=>c});var o=a(8071);function c(O){return(0,o.T)(O?.then)}},5196:(ut,Ie,a)=>{"use strict";a.d(Ie,{C:()=>O,U:()=>d});var o=a(1635),c=a(8071);function O(w){return(0,o.AQ)(this,arguments,function*(){const x=w.getReader();try{for(;;){const{value:D,done:p}=yield(0,o.N3)(x.read());if(p)return yield(0,o.N3)(void 0);yield yield(0,o.N3)(D)}}finally{x.releaseLock()}})}function d(w){return(0,c.T)(w?.getReader)}},9470:(ut,Ie,a)=>{"use strict";a.d(Ie,{m:()=>c});var o=a(8071);function c(O){return O&&(0,o.T)(O.schedule)}},9974:(ut,Ie,a)=>{"use strict";a.d(Ie,{N:()=>O,S:()=>c});var o=a(8071);function c(d){return(0,o.T)(d?.lift)}function O(d){return w=>{if(c(w))return w.lift(function(C){try{return d(C,this)}catch(x){this.error(x)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(ut,Ie,a)=>{"use strict";a.d(Ie,{I:()=>d});var o=a(6354);const{isArray:c}=Array;function d(w){return(0,o.T)(C=>function O(w,C){return c(C)?w(...C):w(C)}(w,C))}},5343:(ut,Ie,a)=>{"use strict";function o(){}a.d(Ie,{l:()=>o})},1203:(ut,Ie,a)=>{"use strict";a.d(Ie,{F:()=>c,m:()=>O});var o=a(3669);function c(...d){return O(d)}function O(d){return 0===d.length?o.D:1===d.length?d[0]:function(C){return d.reduce((x,D)=>D(x),C)}}},5334:(ut,Ie,a)=>{"use strict";a.d(Ie,{m:()=>O});var o=a(1026),c=a(9270);function O(d){c.f.setTimeout(()=>{const{onUnhandledError:w}=o.$;if(!w)throw d;w(d)})}},591:(ut,Ie,a)=>{"use strict";function o(c){return new TypeError(`You provided ${null!==c&&"object"==typeof c?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}a.d(Ie,{L:()=>o})},9969:(ut,Ie,a)=>{"use strict";a.d(Ie,{FX:()=>Ae,If:()=>o,K2:()=>C,MA:()=>h,Os:()=>w,P:()=>P,hZ:()=>O,i0:()=>d,i7:()=>p,iF:()=>x,kY:()=>g,kp:()=>c,sf:()=>_e,ui:()=>Ce,wk:()=>D});var o=function(ke){return ke[ke.State=0]="State",ke[ke.Transition=1]="Transition",ke[ke.Sequence=2]="Sequence",ke[ke.Group=3]="Group",ke[ke.Animate=4]="Animate",ke[ke.Keyframes=5]="Keyframes",ke[ke.Style=6]="Style",ke[ke.Trigger=7]="Trigger",ke[ke.Reference=8]="Reference",ke[ke.AnimateChild=9]="AnimateChild",ke[ke.AnimateRef=10]="AnimateRef",ke[ke.Query=11]="Query",ke[ke.Stagger=12]="Stagger",ke}(o||{});const c="*";function O(ke,Ue){return{type:o.Trigger,name:ke,definitions:Ue,options:{}}}function d(ke,Ue=null){return{type:o.Animate,styles:Ue,timings:ke}}function w(ke,Ue=null){return{type:o.Group,steps:ke,options:Ue}}function C(ke,Ue=null){return{type:o.Sequence,steps:ke,options:Ue}}function x(ke){return{type:o.Style,styles:ke,offset:null}}function D(ke,Ue,ve){return{type:o.State,name:ke,styles:Ue,options:ve}}function p(ke){return{type:o.Keyframes,steps:ke}}function g(ke,Ue,ve=null){return{type:o.Transition,expr:ke,animation:Ue,options:ve}}function h(ke=null){return{type:o.AnimateChild,options:ke}}function P(ke,Ue,ve=null){return{type:o.Query,selector:ke,animation:Ue,options:ve}}class _e{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(Ue=0,ve=0){this.totalTime=Ue+ve}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ue=>Ue()),this._onDoneFns=[])}onStart(Ue){this._originalOnStartFns.push(Ue),this._onStartFns.push(Ue)}onDone(Ue){this._originalOnDoneFns.push(Ue),this._onDoneFns.push(Ue)}onDestroy(Ue){this._onDestroyFns.push(Ue)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Ue=>Ue()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Ue=>Ue()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Ue){this._position=this.totalTime?Ue*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Ue){const ve="start"==Ue?this._onStartFns:this._onDoneFns;ve.forEach(ye=>ye()),ve.length=0}}class Ce{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(Ue){this.players=Ue;let ve=0,ye=0,Se=0;const z=this.players.length;0==z?queueMicrotask(()=>this._onFinish()):this.players.forEach(te=>{te.onDone(()=>{++ve==z&&this._onFinish()}),te.onDestroy(()=>{++ye==z&&this._onDestroy()}),te.onStart(()=>{++Se==z&&this._onStart()})}),this.totalTime=this.players.reduce((te,L)=>Math.max(te,L.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ue=>Ue()),this._onDoneFns=[])}init(){this.players.forEach(Ue=>Ue.init())}onStart(Ue){this._onStartFns.push(Ue)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Ue=>Ue()),this._onStartFns=[])}onDone(Ue){this._onDoneFns.push(Ue)}onDestroy(Ue){this._onDestroyFns.push(Ue)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Ue=>Ue.play())}pause(){this.players.forEach(Ue=>Ue.pause())}restart(){this.players.forEach(Ue=>Ue.restart())}finish(){this._onFinish(),this.players.forEach(Ue=>Ue.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Ue=>Ue.destroy()),this._onDestroyFns.forEach(Ue=>Ue()),this._onDestroyFns=[])}reset(){this.players.forEach(Ue=>Ue.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Ue){const ve=Ue*this.totalTime;this.players.forEach(ye=>{const Se=ye.totalTime?Math.min(1,ve/ye.totalTime):1;ye.setPosition(Se)})}getPosition(){const Ue=this.players.reduce((ve,ye)=>null===ve||ye.totalTime>ve.totalTime?ye:ve,null);return null!=Ue?Ue.getPosition():0}beforeDestroy(){this.players.forEach(Ue=>{Ue.beforeDestroy&&Ue.beforeDestroy()})}triggerCallback(Ue){const ve="start"==Ue?this._onStartFns:this._onDoneFns;ve.forEach(ye=>ye()),ve.length=0}}const Ae="!"},9888:(ut,Ie,a)=>{"use strict";a.d(Ie,{Pd:()=>it,Au:()=>X,vr:()=>Se,Bu:()=>K,FN:()=>at,GX:()=>rt,Q_:()=>We,Z7:()=>R,Ai:()=>nn,g7:()=>ct,px:()=>_e,_G:()=>le,w6:()=>Q,Ae:()=>Ce});var o=a(177),c=a(4438),O=a(6860),d=a(9046),w=a(7336),C=a(1413),x=a(8359),p=(a(4402),a(7673)),g=a(4412),y=a(8141),h=a(152),u=a(5964),P=a(6354),E=(a(6697),a(5245)),W=a(3294),ne=a(6977),ie=a(2318),Z=a(4085),ae=a(9327);const Le=" ";function _e(b,k,A){const H=Ae(b,k);A=A.trim(),!H.some(xe=>xe.trim()===A)&&(H.push(A),b.setAttribute(k,H.join(Le)))}function Ce(b,k,A){const H=Ae(b,k);A=A.trim();const xe=H.filter(Oe=>Oe!==A);xe.length?b.setAttribute(k,xe.join(Le)):b.removeAttribute(k)}function Ae(b,k){return b.getAttribute(k)?.match(/\S+/g)??[]}const Ue="cdk-describedby-message",ve="cdk-describedby-host";let ye=0,Se=(()=>{class b{_platform=(0,c.WQX)(O.OD);_document=(0,c.WQX)(o.qQ);_messageRegistry=new Map;_messagesContainer=null;_id=""+ye++;constructor(){(0,c.WQX)(d.l).load(d.Y),this._id=(0,c.WQX)(c.sZ2)+"-"+ye++}describe(A,H,xe){if(!this._canBeDescribed(A,H))return;const Oe=z(H,xe);"string"!=typeof H?(te(H,this._id),this._messageRegistry.set(Oe,{messageElement:H,referenceCount:0})):this._messageRegistry.has(Oe)||this._createMessageElement(H,xe),this._isElementDescribedByMessage(A,Oe)||this._addMessageReference(A,Oe)}removeDescription(A,H,xe){if(!H||!this._isElementNode(A))return;const Oe=z(H,xe);if(this._isElementDescribedByMessage(A,Oe)&&this._removeMessageReference(A,Oe),"string"==typeof H){const je=this._messageRegistry.get(Oe);je&&0===je.referenceCount&&this._deleteMessageElement(Oe)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const A=this._document.querySelectorAll(`[${ve}="${this._id}"]`);for(let H=0;H0!=xe.indexOf(Ue));A.setAttribute("aria-describedby",H.join(" "))}_addMessageReference(A,H){const xe=this._messageRegistry.get(H);_e(A,"aria-describedby",xe.messageElement.id),A.setAttribute(ve,this._id),xe.referenceCount++}_removeMessageReference(A,H){const xe=this._messageRegistry.get(H);xe.referenceCount--,Ce(A,"aria-describedby",xe.messageElement.id),A.removeAttribute(ve)}_isElementDescribedByMessage(A,H){const xe=Ae(A,"aria-describedby"),Oe=this._messageRegistry.get(H),je=Oe&&Oe.messageElement.id;return!!je&&-1!=xe.indexOf(je)}_canBeDescribed(A,H){if(!this._isElementNode(A))return!1;if(H&&"object"==typeof H)return!0;const xe=null==H?"":`${H}`.trim(),Oe=A.getAttribute("aria-label");return!(!xe||Oe&&Oe.trim()===xe)}_isElementNode(A){return A.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(H){return new(H||b)};static \u0275prov=c.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})();function z(b,k){return"string"==typeof b?`${k||""}/${b}`:b}function te(b,k){b.id||(b.id=`${Ue}-${k}-${ye++}`)}class q{_letterKeyStream=new C.B;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new C.B;selectedItem=this._selectedItem;constructor(k,A){const H="number"==typeof A?.debounceInterval?A.debounceInterval:200;A?.skipPredicate&&(this._skipPredicateFn=A.skipPredicate),this.setItems(k),this._setupKeyHandler(H)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(k){this._selectedItemIndex=k}setItems(k){this._items=k}handleKey(k){const A=k.keyCode;k.key&&1===k.key.length?this._letterKeyStream.next(k.key.toLocaleUpperCase()):(A>=w.A&&A<=w.Z||A>=w.f2&&A<=w.bn)&&this._letterKeyStream.next(String.fromCharCode(A))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(k){this._letterKeyStream.pipe((0,y.M)(A=>this._pressedLetters.push(A)),(0,h.B)(k),(0,u.p)(()=>this._pressedLetters.length>0),(0,P.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(A=>{for(let H=1;Hk.disabled;constructor(k,A){this._items=k,k instanceof c.rOR?this._itemChangesSubscription=k.changes.subscribe(H=>this._itemsChanged(H.toArray())):(0,c.Hps)(k)&&(this._effectRef=(0,c.QZP)(()=>this._itemsChanged(k()),{injector:A}))}tabOut=new C.B;change=new C.B;skipPredicate(k){return this._skipPredicateFn=k,this}withWrap(k=!0){return this._wrap=k,this}withVerticalOrientation(k=!0){return this._vertical=k,this}withHorizontalOrientation(k){return this._horizontal=k,this}withAllowedModifierKeys(k){return this._allowedModifierKeys=k,this}withTypeAhead(k=200){this._typeaheadSubscription.unsubscribe();const A=this._getItemsArray();return this._typeahead=new q(A,{debounceInterval:"number"==typeof k?k:void 0,skipPredicate:H=>this._skipPredicateFn(H)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(H=>{this.setActiveItem(H)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(k=!0){return this._homeAndEnd=k,this}withPageUpDown(k=!0,A=10){return this._pageUpAndDown={enabled:k,delta:A},this}setActiveItem(k){const A=this._activeItem();this.updateActiveItem(k),this._activeItem()!==A&&this.change.next(this._activeItemIndex)}onKeydown(k){const A=k.keyCode,xe=["altKey","ctrlKey","metaKey","shiftKey"].every(Oe=>!k[Oe]||this._allowedModifierKeys.indexOf(Oe)>-1);switch(A){case w.wn:return void this.tabOut.next();case w.n6:if(this._vertical&&xe){this.setNextItemActive();break}return;case w.i7:if(this._vertical&&xe){this.setPreviousItemActive();break}return;case w.LE:if(this._horizontal&&xe){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.UQ:if(this._horizontal&&xe){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.yZ:if(this._homeAndEnd&&xe){this.setFirstItemActive();break}return;case w.Kp:if(this._homeAndEnd&&xe){this.setLastItemActive();break}return;case w.w_:if(this._pageUpAndDown.enabled&&xe){const Oe=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(Oe>0?Oe:0,1);break}return;case w.dB:if(this._pageUpAndDown.enabled&&xe){const Oe=this._activeItemIndex+this._pageUpAndDown.delta,je=this._getItemsArray().length;this._setActiveItemByIndex(Oe-1&&H!==this._activeItemIndex&&(this._activeItemIndex=H,this._typeahead?.setCurrentSelectedItemIndex(H))}}}class X extends J{setActiveItem(k){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(k),this.activeItem&&this.activeItem.setActiveStyles()}}class K extends J{_origin="program";setFocusOrigin(k){return this._origin=k,this}setActiveItem(k){super.setActiveItem(k),this.activeItem&&this.activeItem.focus(this._origin)}}let R=(()=>{class b{_platform=(0,c.WQX)(O.OD);constructor(){}isDisabled(A){return A.hasAttribute("disabled")}isVisible(A){return function Ee(b){return!!(b.offsetWidth||b.offsetHeight||"function"==typeof b.getClientRects&&b.getClientRects().length)}(A)&&"visible"===getComputedStyle(A).visibility}isTabbable(A){if(!this._platform.isBrowser)return!1;const H=function se(b){try{return b.frameElement}catch{return null}}(function ln(b){return b.ownerDocument&&b.ownerDocument.defaultView||window}(A));if(H&&(-1===jt(H)||!this.isVisible(H)))return!1;let xe=A.nodeName.toLowerCase(),Oe=jt(A);return A.hasAttribute("contenteditable")?-1!==Oe:!("iframe"===xe||"object"===xe||this._platform.WEBKIT&&this._platform.IOS&&!function Nt(b){let k=b.nodeName.toLowerCase(),A="input"===k&&b.type;return"text"===A||"password"===A||"select"===k||"textarea"===k}(A))&&("audio"===xe?!!A.hasAttribute("controls")&&-1!==Oe:"video"===xe?-1!==Oe&&(null!==Oe||this._platform.FIREFOX||A.hasAttribute("controls")):A.tabIndex>=0)}isFocusable(A,H){return function on(b){return!function Y(b){return function De(b){return"input"==b.nodeName.toLowerCase()}(b)&&"hidden"==b.type}(b)&&(function tt(b){let k=b.nodeName.toLowerCase();return"input"===k||"select"===k||"button"===k||"textarea"===k}(b)||function Re(b){return function nt(b){return"a"==b.nodeName.toLowerCase()}(b)&&b.hasAttribute("href")}(b)||b.hasAttribute("contenteditable")||ht(b))}(A)&&!this.isDisabled(A)&&(H?.ignoreVisibility||this.isVisible(A))}static \u0275fac=function(H){return new(H||b)};static \u0275prov=c.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})();function ht(b){if(!b.hasAttribute("tabindex")||void 0===b.tabIndex)return!1;let k=b.getAttribute("tabindex");return!(!k||isNaN(parseInt(k,10)))}function jt(b){if(!ht(b))return null;const k=parseInt(b.getAttribute("tabindex")||"",10);return isNaN(k)?-1:k}class Ot{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(k){this._enabled=k,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(k,this._startAnchor),this._toggleAnchorTabIndex(k,this._endAnchor))}_enabled=!0;constructor(k,A,H,xe,Oe=!1,je){this._element=k,this._checker=A,this._ngZone=H,this._document=xe,this._injector=je,Oe||this.attachAnchors()}destroy(){const k=this._startAnchor,A=this._endAnchor;k&&(k.removeEventListener("focus",this.startAnchorListener),k.remove()),A&&(A.removeEventListener("focus",this.endAnchorListener),A.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(k){return new Promise(A=>{this._executeOnStable(()=>A(this.focusInitialElement(k)))})}focusFirstTabbableElementWhenReady(k){return new Promise(A=>{this._executeOnStable(()=>A(this.focusFirstTabbableElement(k)))})}focusLastTabbableElementWhenReady(k){return new Promise(A=>{this._executeOnStable(()=>A(this.focusLastTabbableElement(k)))})}_getRegionBoundary(k){const A=this._element.querySelectorAll(`[cdk-focus-region-${k}], [cdkFocusRegion${k}], [cdk-focus-${k}]`);return"start"==k?A.length?A[0]:this._getFirstTabbableElement(this._element):A.length?A[A.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(k){const A=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(A){if(!this._checker.isFocusable(A)){const H=this._getFirstTabbableElement(A);return H?.focus(k),!!H}return A.focus(k),!0}return this.focusFirstTabbableElement(k)}focusFirstTabbableElement(k){const A=this._getRegionBoundary("start");return A&&A.focus(k),!!A}focusLastTabbableElement(k){const A=this._getRegionBoundary("end");return A&&A.focus(k),!!A}hasAttached(){return this._hasAttached}_getFirstTabbableElement(k){if(this._checker.isFocusable(k)&&this._checker.isTabbable(k))return k;const A=k.children;for(let H=0;H=0;H--){const xe=A[H].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(A[H]):null;if(xe)return xe}return null}_createAnchor(){const k=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,k),k.classList.add("cdk-visually-hidden"),k.classList.add("cdk-focus-trap-anchor"),k.setAttribute("aria-hidden","true"),k}_toggleAnchorTabIndex(k,A){k?A.setAttribute("tabindex","0"):A.removeAttribute("tabindex")}toggleAnchors(k){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(k,this._startAnchor),this._toggleAnchorTabIndex(k,this._endAnchor))}_executeOnStable(k){this._injector?(0,c.mal)(k,{injector:this._injector}):setTimeout(k)}}let rt=(()=>{class b{_checker=(0,c.WQX)(R);_ngZone=(0,c.WQX)(c.SKi);_document=(0,c.WQX)(o.qQ);_injector=(0,c.WQX)(c.zZn);constructor(){(0,c.WQX)(d.l).load(d.Y)}create(A,H=!1){return new Ot(A,this._checker,this._ngZone,this._document,H,this._injector)}static \u0275fac=function(H){return new(H||b)};static \u0275prov=c.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})();function le(b){return 0===b.buttons||0===b.detail}function Q(b){const k=b.touches&&b.touches[0]||b.changedTouches&&b.changedTouches[0];return!(!k||-1!==k.identifier||null!=k.radiusX&&1!==k.radiusX||null!=k.radiusY&&1!==k.radiusY)}const Be=new c.nKC("cdk-input-modality-detector-options"),Je={ignoreKeys:[w.A$,w.W3,w.eg,w.Ge,w.FX]},ot=(0,O.BQ)({passive:!0,capture:!0});let It=(()=>{class b{_platform=(0,c.WQX)(O.OD);modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new g.t(null);_options;_lastTouchMs=0;_onKeydown=A=>{this._options?.ignoreKeys?.some(H=>H===A.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,O.Fb)(A))};_onMousedown=A=>{Date.now()-this._lastTouchMs<650||(this._modality.next(le(A)?"keyboard":"mouse"),this._mostRecentTarget=(0,O.Fb)(A))};_onTouchstart=A=>{Q(A)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,O.Fb)(A))};constructor(){const A=(0,c.WQX)(c.SKi),H=(0,c.WQX)(o.qQ),xe=(0,c.WQX)(Be,{optional:!0});this._options={...Je,...xe},this.modalityDetected=this._modality.pipe((0,E.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,W.F)()),this._platform.isBrowser&&A.runOutsideAngular(()=>{H.addEventListener("keydown",this._onKeydown,ot),H.addEventListener("mousedown",this._onMousedown,ot),H.addEventListener("touchstart",this._onTouchstart,ot)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ot),document.removeEventListener("mousedown",this._onMousedown,ot),document.removeEventListener("touchstart",this._onTouchstart,ot))}static \u0275fac=function(H){return new(H||b)};static \u0275prov=c.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})();const Ft=new c.nKC("liveAnnouncerElement",{providedIn:"root",factory:function kt(){return null}}),Qt=new c.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let rn=0,nn=(()=>{class b{_ngZone=(0,c.WQX)(c.SKi);_defaultOptions=(0,c.WQX)(Qt,{optional:!0});_liveElement;_document=(0,c.WQX)(o.qQ);_previousTimeout;_currentPromise;_currentResolve;constructor(){const A=(0,c.WQX)(Ft,{optional:!0});this._liveElement=A||this._createLiveElement()}announce(A,...H){const xe=this._defaultOptions;let Oe,je;return 1===H.length&&"number"==typeof H[0]?je=H[0]:[Oe,je]=H,this.clear(),clearTimeout(this._previousTimeout),Oe||(Oe=xe&&xe.politeness?xe.politeness:"polite"),null==je&&xe&&(je=xe.duration),this._liveElement.setAttribute("aria-live",Oe),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Ze=>this._currentResolve=Ze)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=A,"number"==typeof je&&(this._previousTimeout=setTimeout(()=>this.clear(),je)),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 A="cdk-live-announcer-element",H=this._document.getElementsByClassName(A),xe=this._document.createElement("div");for(let Oe=0;Oe .cdk-overlay-container [aria-modal="true"]');for(let xe=0;xe{class b{_ngZone=(0,c.WQX)(c.SKi);_platform=(0,c.WQX)(O.OD);_inputModalityDetector=(0,c.WQX)(It);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=(0,c.WQX)(o.qQ,{optional:!0});_stopInputModalityDetector=new C.B;constructor(){const A=(0,c.WQX)(Te,{optional:!0});this._detectionMode=A?.detectionMode||lt.IMMEDIATE}_rootNodeFocusAndBlurListener=A=>{for(let xe=(0,O.Fb)(A);xe;xe=xe.parentElement)"focus"===A.type?this._onFocus(A,xe):this._onBlur(A,xe)};monitor(A,H=!1){const xe=(0,Z.i8)(A);if(!this._platform.isBrowser||1!==xe.nodeType)return(0,p.of)();const Oe=(0,O.KT)(xe)||this._getDocument(),je=this._elementInfo.get(xe);if(je)return H&&(je.checkChildren=!0),je.subject;const Ze={checkChildren:H,subject:new C.B,rootNode:Oe};return this._elementInfo.set(xe,Ze),this._registerGlobalListeners(Ze),Ze.subject}stopMonitoring(A){const H=(0,Z.i8)(A),xe=this._elementInfo.get(H);xe&&(xe.subject.complete(),this._setClasses(H),this._elementInfo.delete(H),this._removeGlobalListeners(xe))}focusVia(A,H,xe){const Oe=(0,Z.i8)(A);Oe===this._getDocument().activeElement?this._getClosestElementsInfo(Oe).forEach(([Ze,dt])=>this._originChanged(Ze,H,dt)):(this._setOrigin(H),"function"==typeof Oe.focus&&Oe.focus(xe))}ngOnDestroy(){this._elementInfo.forEach((A,H)=>this.stopMonitoring(H))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(A){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(A)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:A&&this._isLastInteractionFromInputLabel(A)?"mouse":"program"}_shouldBeAttributedToTouch(A){return this._detectionMode===lt.EVENTUAL||!!A?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(A,H){A.classList.toggle("cdk-focused",!!H),A.classList.toggle("cdk-touch-focused","touch"===H),A.classList.toggle("cdk-keyboard-focused","keyboard"===H),A.classList.toggle("cdk-mouse-focused","mouse"===H),A.classList.toggle("cdk-program-focused","program"===H)}_setOrigin(A,H=!1){this._ngZone.runOutsideAngular(()=>{this._origin=A,this._originFromTouchInteraction="touch"===A&&H,this._detectionMode===lt.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(A,H){const xe=this._elementInfo.get(H),Oe=(0,O.Fb)(A);!xe||!xe.checkChildren&&H!==Oe||this._originChanged(H,this._getFocusOrigin(Oe),xe)}_onBlur(A,H){const xe=this._elementInfo.get(H);!xe||xe.checkChildren&&A.relatedTarget instanceof Node&&H.contains(A.relatedTarget)||(this._setClasses(H),this._emitOrigin(xe,null))}_emitOrigin(A,H){A.subject.observers.length&&this._ngZone.run(()=>A.subject.next(H))}_registerGlobalListeners(A){if(!this._platform.isBrowser)return;const H=A.rootNode,xe=this._rootNodeFocusListenerCount.get(H)||0;xe||this._ngZone.runOutsideAngular(()=>{H.addEventListener("focus",this._rootNodeFocusAndBlurListener,He),H.addEventListener("blur",this._rootNodeFocusAndBlurListener,He)}),this._rootNodeFocusListenerCount.set(H,xe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,ne.Q)(this._stopInputModalityDetector)).subscribe(Oe=>{this._setOrigin(Oe,!0)}))}_removeGlobalListeners(A){const H=A.rootNode;if(this._rootNodeFocusListenerCount.has(H)){const xe=this._rootNodeFocusListenerCount.get(H);xe>1?this._rootNodeFocusListenerCount.set(H,xe-1):(H.removeEventListener("focus",this._rootNodeFocusAndBlurListener,He),H.removeEventListener("blur",this._rootNodeFocusAndBlurListener,He),this._rootNodeFocusListenerCount.delete(H))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(A,H,xe){this._setClasses(A,H),this._emitOrigin(xe,H),this._lastFocusOrigin=H}_getClosestElementsInfo(A){const H=[];return this._elementInfo.forEach((xe,Oe)=>{(Oe===A||xe.checkChildren&&Oe.contains(A))&&H.push([Oe,xe])}),H}_isLastInteractionFromInputLabel(A){const{_mostRecentTarget:H,mostRecentModality:xe}=this._inputModalityDetector;if("mouse"!==xe||!H||H===A||"INPUT"!==A.nodeName&&"TEXTAREA"!==A.nodeName||A.disabled)return!1;const Oe=A.labels;if(Oe)for(let je=0;je{class b{_platform=(0,c.WQX)(O.OD);_hasCheckedHighContrastMode;_document=(0,c.WQX)(o.qQ);_breakpointSubscription;constructor(){this._breakpointSubscription=(0,c.WQX)(ae.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Ut.NONE;const A=this._document.createElement("div");A.style.backgroundColor="rgb(1,2,3)",A.style.position="absolute",this._document.body.appendChild(A);const H=this._document.defaultView||window,xe=H&&H.getComputedStyle?H.getComputedStyle(A):null,Oe=(xe&&xe.backgroundColor||"").replace(/ /g,"");switch(A.remove(),Oe){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Ut.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Ut.BLACK_ON_WHITE}return Ut.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const A=this._document.body.classList;A.remove(mt,Un,pt),this._hasCheckedHighContrastMode=!0;const H=this.getHighContrastMode();H===Ut.BLACK_ON_WHITE?A.add(mt,Un):H===Ut.WHITE_ON_BLACK&&A.add(mt,pt)}}static \u0275fac=function(H){return new(H||b)};static \u0275prov=c.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})(),it=(()=>{class b{constructor(){(0,c.WQX)(We)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(H){return new(H||b)};static \u0275mod=c.$C({type:b});static \u0275inj=c.G2t({imports:[ie.w5]})}return b})();const bt={};let ct=(()=>{class b{_appId=(0,c.WQX)(c.sZ2);getId(A){return"ng"!==this._appId&&(A+=this._appId),bt.hasOwnProperty(A)||(bt[A]=0),`${A}${bt[A]++}`}static \u0275fac=function(H){return new(H||b)};static \u0275prov=c.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})()},8203:(ut,Ie,a)=>{"use strict";a.d(Ie,{dS:()=>x,jI:()=>p});var o=a(4438),c=a(177);const O=new o.nKC("cdk-dir-doc",{providedIn:"root",factory:function d(){return(0,o.WQX)(c.qQ)}}),w=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let x=(()=>{class g{value="ltr";change=new o.bkB;constructor(){const h=(0,o.WQX)(O,{optional:!0});h&&(this.value=function C(g){const y=g?.toLowerCase()||"";return"auto"===y&&typeof navigator<"u"&&navigator?.language?w.test(navigator.language)?"rtl":"ltr":"rtl"===y?"rtl":"ltr"}((h.body?h.body.dir:null)||(h.documentElement?h.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static \u0275fac=function(u){return new(u||g)};static \u0275prov=o.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})(),p=(()=>{class g{static \u0275fac=function(u){return new(u||g)};static \u0275mod=o.$C({type:g});static \u0275inj=o.G2t({})}return g})()},4085:(ut,Ie,a)=>{"use strict";a.d(Ie,{FG:()=>w,OE:()=>O,a1:()=>C,he:()=>c,i8:()=>x,o1:()=>d});var o=a(4438);function c(p){return null!=p&&"false"!=`${p}`}function O(p,g=0){return d(p)?Number(p):2===arguments.length?g:0}function d(p){return!isNaN(parseFloat(p))&&!isNaN(Number(p))}function w(p){return Array.isArray(p)?p:[p]}function C(p){return null==p?"":"string"==typeof p?p:`${p}px`}function x(p){return p instanceof o.aKT?p.nativeElement:p}},5024:(ut,Ie,a)=>{"use strict";a.d(Ie,{CB:()=>u,DQ:()=>h,Q3:()=>p,qS:()=>C,sL:()=>g,xn:()=>y,y4:()=>x,zP:()=>T});var o=a(17),d=(a(4402),a(7673),a(1413)),w=a(4438);class C{}function x(E){return E&&"function"==typeof E.connect&&!(E instanceof o.G)}var p=function(E){return E[E.REPLACED=0]="REPLACED",E[E.INSERTED=1]="INSERTED",E[E.MOVED=2]="MOVED",E[E.REMOVED=3]="REMOVED",E}(p||{});const g=new w.nKC("_ViewRepeater");class y{applyChanges(W,ne,de,ie,Z){W.forEachOperation((ae,Le,_e)=>{let Ce,Ae;if(null==ae.previousIndex){const ke=de(ae,Le,_e);Ce=ne.createEmbeddedView(ke.templateRef,ke.context,ke.index),Ae=p.INSERTED}else null==_e?(ne.remove(Le),Ae=p.REMOVED):(Ce=ne.get(Le),ne.move(Ce,_e),Ae=p.MOVED);Z&&Z({context:Ce?.context,operation:Ae,record:ae})})}detach(){}}class h{viewCacheSize=20;_viewCache=[];applyChanges(W,ne,de,ie,Z){W.forEachOperation((ae,Le,_e)=>{let Ce,Ae;null==ae.previousIndex?(Ce=this._insertView(()=>de(ae,Le,_e),_e,ne,ie(ae)),Ae=Ce?p.INSERTED:p.REPLACED):null==_e?(this._detachAndCacheView(Le,ne),Ae=p.REMOVED):(Ce=this._moveView(Le,_e,ne,ie(ae)),Ae=p.MOVED),Z&&Z({context:Ce?.context,operation:Ae,record:ae})})}detach(){for(const W of this._viewCache)W.destroy();this._viewCache=[]}_insertView(W,ne,de,ie){const Z=this._insertViewFromCache(ne,de);if(Z)return void(Z.context.$implicit=ie);const ae=W();return de.createEmbeddedView(ae.templateRef,ae.context,ae.index)}_detachAndCacheView(W,ne){const de=ne.detach(W);this._maybeCacheView(de,ne)}_moveView(W,ne,de,ie){const Z=de.get(W);return de.move(Z,ne),Z.context.$implicit=ie,Z}_maybeCacheView(W,ne){if(this._viewCache.lengththis._markSelected(Z)):this._markSelected(ne[0]),this._selectedToEmit.length=0)}select(...W){this._verifyValueAssignment(W),W.forEach(de=>this._markSelected(de));const ne=this._hasQueuedChanges();return this._emitChangeEvent(),ne}deselect(...W){this._verifyValueAssignment(W),W.forEach(de=>this._unmarkSelected(de));const ne=this._hasQueuedChanges();return this._emitChangeEvent(),ne}setSelection(...W){this._verifyValueAssignment(W);const ne=this.selected,de=new Set(W);W.forEach(Z=>this._markSelected(Z)),ne.filter(Z=>!de.has(this._getConcreteValue(Z,de))).forEach(Z=>this._unmarkSelected(Z));const ie=this._hasQueuedChanges();return this._emitChangeEvent(),ie}toggle(W){return this.isSelected(W)?this.deselect(W):this.select(W)}clear(W=!0){this._unmarkAll();const ne=this._hasQueuedChanges();return W&&this._emitChangeEvent(),ne}isSelected(W){return this._selection.has(this._getConcreteValue(W))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(W){this._multiple&&this.selected&&this._selected.sort(W)}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(W){W=this._getConcreteValue(W),this.isSelected(W)||(this._multiple||this._unmarkAll(),this.isSelected(W)||this._selection.add(W),this._emitChanges&&this._selectedToEmit.push(W))}_unmarkSelected(W){W=this._getConcreteValue(W),this.isSelected(W)&&(this._selection.delete(W),this._emitChanges&&this._deselectedToEmit.push(W))}_unmarkAll(){this.isEmpty()||this._selection.forEach(W=>this._unmarkSelected(W))}_verifyValueAssignment(W){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(W,ne){if(this.compareWith){ne=ne??this._selection;for(let de of ne)if(this.compareWith(W,de))return de;return W}return W}}let T=(()=>{class E{_listeners=[];notify(ne,de){for(let ie of this._listeners)ie(ne,de)}listen(ne){return this._listeners.push(ne),()=>{this._listeners=this._listeners.filter(de=>ne!==de)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(de){return new(de||E)};static \u0275prov=w.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})()},7336:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>N,A$:()=>D,FX:()=>C,Fm:()=>w,G_:()=>c,Ge:()=>be,KE:()=>Gt,Kp:()=>T,LE:()=>de,SJ:()=>_e,UQ:()=>W,W3:()=>x,Z:()=>re,_f:()=>y,bn:()=>L,dB:()=>P,eg:()=>Mn,f2:()=>Ce,i7:()=>ne,n6:()=>ie,rp:()=>qt,t6:()=>h,w_:()=>u,wn:()=>O,yZ:()=>E});const c=8,O=9,w=13,C=16,x=17,D=18,y=27,h=32,u=33,P=34,T=35,E=36,W=37,ne=38,de=39,ie=40,_e=46,Ce=48,L=57,N=65,re=90,be=91,Gt=188,Mn=224;function qt(gn,...In){return In.length?In.some(Ve=>gn[Ve]):gn.altKey||gn.shiftKey||gn.ctrlKey||gn.metaKey}},9327:(ut,Ie,a)=>{"use strict";a.d(Ie,{QP:()=>ie,Rp:()=>ae});var o=a(4438),c=a(4085),O=a(1413),d=a(4572),w=a(8793),C=a(1985),x=a(6697),D=a(5245),p=a(152),g=a(6354),y=a(9172),h=a(6977),u=a(6860);const T=new Set;let E,W=(()=>{class Le{_platform=(0,o.WQX)(u.OD);_nonce=(0,o.WQX)(o.BIS,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):de}matchMedia(Ce){return(this._platform.WEBKIT||this._platform.BLINK)&&function ne(Le,_e){if(!T.has(Le))try{E||(E=document.createElement("style"),_e&&E.setAttribute("nonce",_e),E.setAttribute("type","text/css"),document.head.appendChild(E)),E.sheet&&(E.sheet.insertRule(`@media ${Le} {body{ }}`,0),T.add(Le))}catch(Ce){console.error(Ce)}}(Ce,this._nonce),this._matchMedia(Ce)}static \u0275fac=function(Ae){return new(Ae||Le)};static \u0275prov=o.jDH({token:Le,factory:Le.\u0275fac,providedIn:"root"})}return Le})();function de(Le){return{matches:"all"===Le||""===Le,media:Le,addListener:()=>{},removeListener:()=>{}}}let ie=(()=>{class Le{_mediaMatcher=(0,o.WQX)(W);_zone=(0,o.WQX)(o.SKi);_queries=new Map;_destroySubject=new O.B;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Ce){return Z((0,c.FG)(Ce)).some(ke=>this._registerQuery(ke).mql.matches)}observe(Ce){const ke=Z((0,c.FG)(Ce)).map(ve=>this._registerQuery(ve).observable);let Ue=(0,d.z)(ke);return Ue=(0,w.x)(Ue.pipe((0,x.s)(1)),Ue.pipe((0,D.i)(1),(0,p.B)(0))),Ue.pipe((0,g.T)(ve=>{const ye={matches:!1,breakpoints:{}};return ve.forEach(({matches:Se,query:z})=>{ye.matches=ye.matches||Se,ye.breakpoints[z]=Se}),ye}))}_registerQuery(Ce){if(this._queries.has(Ce))return this._queries.get(Ce);const Ae=this._mediaMatcher.matchMedia(Ce),Ue={observable:new C.c(ve=>{const ye=Se=>this._zone.run(()=>ve.next(Se));return Ae.addListener(ye),()=>{Ae.removeListener(ye)}}).pipe((0,y.Z)(Ae),(0,g.T)(({matches:ve})=>({query:Ce,matches:ve})),(0,h.Q)(this._destroySubject)),mql:Ae};return this._queries.set(Ce,Ue),Ue}static \u0275fac=function(Ae){return new(Ae||Le)};static \u0275prov=o.jDH({token:Le,factory:Le.\u0275fac,providedIn:"root"})}return Le})();function Z(Le){return Le.map(_e=>_e.split(",")).reduce((_e,Ce)=>_e.concat(Ce)).map(_e=>_e.trim())}const ae={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},2318:(ut,Ie,a)=>{"use strict";a.d(Ie,{w5:()=>C});var o=a(4438);let O=(()=>{class x{create(p){return typeof MutationObserver>"u"?null:new MutationObserver(p)}static \u0275fac=function(g){return new(g||x)};static \u0275prov=o.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})(),C=(()=>{class x{static \u0275fac=function(g){return new(g||x)};static \u0275mod=o.$C({type:x});static \u0275inj=o.G2t({providers:[O]})}return x})()},6969:(ut,Ie,a)=>{"use strict";a.d(Ie,{WB:()=>Nt,$Q:()=>jt,hJ:()=>De,rR:()=>Ue,Sf:()=>N,z_:()=>Ot,yY:()=>V});var o=a(3980),c=a(177),O=a(4438),d=a(4085),w=a(6860),C=a(5964),x=a(6977),D=a(9974),p=a(4360),y=a(8203),h=a(6939),u=a(9888),P=a(9046),T=a(1413),E=a(8359),W=a(7786),ne=a(7336);const de=(0,w.CZ)();class ie{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(ee,re){this._viewportRuler=ee,this._document=re}attach(){}enable(){if(this._canBeEnabled()){const ee=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ee.style.left||"",this._previousHTMLStyles.top=ee.style.top||"",ee.style.left=(0,d.a1)(-this._previousScrollPosition.left),ee.style.top=(0,d.a1)(-this._previousScrollPosition.top),ee.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ee=this._document.documentElement,be=ee.style,Ke=this._document.body.style,ft=be.scrollBehavior||"",le=Ke.scrollBehavior||"";this._isEnabled=!1,be.left=this._previousHTMLStyles.left,be.top=this._previousHTMLStyles.top,ee.classList.remove("cdk-global-scrollblock"),de&&(be.scrollBehavior=Ke.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),de&&(be.scrollBehavior=ft,Ke.scrollBehavior=le)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const re=this._document.body,be=this._viewportRuler.getViewportSize();return re.scrollHeight>be.height||re.scrollWidth>be.width}}class ae{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(ee,re,be,Ke){this._scrollDispatcher=ee,this._ngZone=re,this._viewportRuler=be,this._config=Ke}attach(ee){this._overlayRef=ee}enable(){if(this._scrollSubscription)return;const ee=this._scrollDispatcher.scrolled(0).pipe((0,C.p)(re=>!re||!this._overlayRef.overlayElement.contains(re.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ee.subscribe(()=>{const re=this._viewportRuler.getViewportScrollPosition().top;Math.abs(re-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=ee.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}class Le{enable(){}disable(){}attach(){}}function _e(ce,ee){return ee.some(re=>ce.bottomre.bottom||ce.rightre.right)}function Ce(ce,ee){return ee.some(re=>ce.topre.bottom||ce.leftre.right)}class Ae{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(ee,re,be,Ke){this._scrollDispatcher=ee,this._viewportRuler=re,this._ngZone=be,this._config=Ke}attach(ee){this._overlayRef=ee}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 re=this._overlayRef.overlayElement.getBoundingClientRect(),{width:be,height:Ke}=this._viewportRuler.getViewportSize();_e(re,[{width:be,height:Ke,bottom:Ke,right:be,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 ke=(()=>{class ce{_scrollDispatcher=(0,O.WQX)(o.R);_viewportRuler=(0,O.WQX)(o.Xj);_ngZone=(0,O.WQX)(O.SKi);_document=(0,O.WQX)(c.qQ);constructor(){}noop=()=>new Le;close=re=>new ae(this._scrollDispatcher,this._ngZone,this._viewportRuler,re);block=()=>new ie(this._viewportRuler,this._document);reposition=re=>new Ae(this._scrollDispatcher,this._viewportRuler,this._ngZone,re);static \u0275fac=function(be){return new(be||ce)};static \u0275prov=O.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})();class Ue{positionStrategy;scrollStrategy=new Le;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(ee){if(ee){const re=Object.keys(ee);for(const be of re)void 0!==ee[be]&&(this[be]=ee[be])}}}class Se{connectionPair;scrollableViewProperties;constructor(ee,re){this.connectionPair=ee,this.scrollableViewProperties=re}}let L=(()=>{class ce{_attachedOverlays=[];_document=(0,O.WQX)(c.qQ);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(re){this.remove(re),this._attachedOverlays.push(re)}remove(re){const be=this._attachedOverlays.indexOf(re);be>-1&&this._attachedOverlays.splice(be,1),0===this._attachedOverlays.length&&this.detach()}static \u0275fac=function(be){return new(be||ce)};static \u0275prov=O.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})(),q=(()=>{class ce extends L{_ngZone=(0,O.WQX)(O.SKi);_renderer=(0,O.WQX)(O._9s).createRenderer(null,null);_cleanupKeydown;add(re){super.add(re),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=re=>{const be=this._attachedOverlays;for(let Ke=be.length-1;Ke>-1;Ke--)if(be[Ke]._keydownEvents.observers.length>0){this._ngZone.run(()=>be[Ke]._keydownEvents.next(re));break}};static \u0275fac=(()=>{let re;return function(Ke){return(re||(re=O.xGo(ce)))(Ke||ce)}})();static \u0275prov=O.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})(),J=(()=>{class ce extends L{_platform=(0,O.WQX)(w.OD);_ngZone=(0,O.WQX)(O.SKi,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(re){if(super.add(re),!this._isAttached){const be=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(be)):this._addEventListeners(be),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=be.style.cursor,be.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const re=this._document.body;re.removeEventListener("pointerdown",this._pointerDownListener,!0),re.removeEventListener("click",this._clickListener,!0),re.removeEventListener("auxclick",this._clickListener,!0),re.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(re.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(re){re.addEventListener("pointerdown",this._pointerDownListener,!0),re.addEventListener("click",this._clickListener,!0),re.addEventListener("auxclick",this._clickListener,!0),re.addEventListener("contextmenu",this._clickListener,!0)}_pointerDownListener=re=>{this._pointerDownEventTarget=(0,w.Fb)(re)};_clickListener=re=>{const be=(0,w.Fb)(re),Ke="click"===re.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:be;this._pointerDownEventTarget=null;const ft=this._attachedOverlays.slice();for(let le=ft.length-1;le>-1;le--){const Q=ft[le];if(Q._outsidePointerEvents.observers.length<1||!Q.hasAttached())continue;if(X(Q.overlayElement,be)||X(Q.overlayElement,Ke))break;const Be=Q._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Be.next(re)):Be.next(re)}};static \u0275fac=(()=>{let re;return function(Ke){return(re||(re=O.xGo(ce)))(Ke||ce)}})();static \u0275prov=O.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})();function X(ce,ee){const re=typeof ShadowRoot<"u"&&ShadowRoot;let be=ee;for(;be;){if(be===ce)return!0;be=re&&be instanceof ShadowRoot?be.host:be.parentNode}return!1}let K=(()=>{class ce{static \u0275fac=function(be){return new(be||ce)};static \u0275cmp=O.VBU({type:ce,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(be,Ke){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0})}return ce})(),N=(()=>{class ce{_platform=(0,O.WQX)(w.OD);_containerElement;_document=(0,O.WQX)(c.qQ);_styleLoader=(0,O.WQX)(P.l);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const re="cdk-overlay-container";if(this._platform.isBrowser||(0,w.v8)()){const Ke=this._document.querySelectorAll(`.${re}[platform="server"], .${re}[platform="test"]`);for(let ft=0;ft(0,O.Tzd)(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(ee){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const re=this._portalOutlet.attach(ee);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=(0,O.mal)(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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 re?.onDestroy&&re.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),re}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const ee=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ee}dispose(){const ee=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._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,ee&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.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(ee){ee!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ee,this.hasAttached()&&(ee.attach(this),this.updatePosition()))}updateSize(ee){this._config={...this._config,...ee},this._updateElementSize()}setDirection(ee){this._config={...this._config,direction:ee},this._updateElementDirection()}addPanelClass(ee){this._pane&&this._toggleClasses(this._pane,ee,!0)}removePanelClass(ee){this._pane&&this._toggleClasses(this._pane,ee,!1)}getDirection(){const ee=this._config.direction;return ee?"string"==typeof ee?ee:ee.value:"ltr"}updateScrollStrategy(ee){ee!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ee,this.hasAttached()&&(ee.attach(this),ee.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const ee=this._pane.style;ee.width=(0,d.a1)(this._config.width),ee.height=(0,d.a1)(this._config.height),ee.minWidth=(0,d.a1)(this._config.minWidth),ee.minHeight=(0,d.a1)(this._config.minHeight),ee.maxWidth=(0,d.a1)(this._config.maxWidth),ee.maxHeight=(0,d.a1)(this._config.maxHeight)}_togglePointerEvents(ee){this._pane.style.pointerEvents=ee?"":"none"}_attachBackdrop(){const ee="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._cleanupBackdropClick?.(),this._cleanupBackdropClick=this._renderer.listen(this._backdropElement,"click",re=>this._backdropClick.next(re)),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(ee)})}):this._backdropElement.classList.add(ee)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const ee=this._backdropElement;if(ee){if(this._animationsDisabled)return void this._disposeBackdrop(ee);ee.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{this._cleanupBackdropTransitionEnd?.(),this._cleanupBackdropTransitionEnd=this._renderer.listen(ee,"transitionend",re=>{this._disposeBackdrop(re.target)})}),ee.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(ee)},500))}}_toggleClasses(ee,re,be){const Ke=(0,d.FG)(re||[]).filter(ft=>!!ft);Ke.length&&(be?ee.classList.add(...Ke):ee.classList.remove(...Ke))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const ee=this._renders.pipe((0,x.Q)((0,W.h)(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()),ee.unsubscribe())})})}_disposeScrollStrategy(){const ee=this._scrollStrategy;ee&&(ee.disable(),ee.detach&&ee.detach())}_disposeBackdrop(ee){this._cleanupBackdropClick?.(),this._cleanupBackdropTransitionEnd?.(),ee&&(ee.remove(),this._backdropElement===ee&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const I="cdk-overlay-connected-position-bounding-box",M=/([A-Za-z%]+)$/;class j{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new T.B;_resizeSubscription=E.yU.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(ee,re,be,Ke,ft){this._viewportRuler=re,this._document=be,this._platform=Ke,this._overlayContainer=ft,this.setOrigin(ee)}attach(ee){this._validatePositions(),ee.hostElement.classList.add(I),this._overlayRef=ee,this._boundingBox=ee.hostElement,this._pane=ee.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 ee=this._originRect,re=this._overlayRect,be=this._viewportRect,Ke=this._containerRect,ft=[];let le;for(let Q of this._preferredPositions){let Be=this._getOriginPoint(ee,Ke,Q),Je=this._getOverlayPoint(Be,re,Q),qe=this._getOverlayFit(Je,re,be,Q);if(qe.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Q,Be);this._canFitWithFlexibleDimensions(qe,Je,be)?ft.push({position:Q,origin:Be,overlayRect:re,boundingBoxRect:this._calculateBoundingBoxRect(Be,Q)}):(!le||le.overlayFit.visibleAreaBe&&(Be=qe,Q=Je)}return this._isPushed=!1,void this._applyPosition(Q.position,Q.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(le.position,le.originPoint);this._applyPosition(le.position,le.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ge(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(I),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const ee=this._lastPosition;if(ee){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const re=this._getOriginPoint(this._originRect,this._containerRect,ee);this._applyPosition(ee,re)}else this.apply()}withScrollableContainers(ee){return this._scrollables=ee,this}withPositions(ee){return this._preferredPositions=ee,-1===ee.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(ee){return this._viewportMargin=ee,this}withFlexibleDimensions(ee=!0){return this._hasFlexibleDimensions=ee,this}withGrowAfterOpen(ee=!0){return this._growAfterOpen=ee,this}withPush(ee=!0){return this._canPush=ee,this}withLockedPosition(ee=!0){return this._positionLocked=ee,this}setOrigin(ee){return this._origin=ee,this}withDefaultOffsetX(ee){return this._offsetX=ee,this}withDefaultOffsetY(ee){return this._offsetY=ee,this}withTransformOriginOn(ee){return this._transformOriginSelector=ee,this}_getOriginPoint(ee,re,be){let Ke,ft;if("center"==be.originX)Ke=ee.left+ee.width/2;else{const le=this._isRtl()?ee.right:ee.left,Q=this._isRtl()?ee.left:ee.right;Ke="start"==be.originX?le:Q}return re.left<0&&(Ke-=re.left),ft="center"==be.originY?ee.top+ee.height/2:"top"==be.originY?ee.top:ee.bottom,re.top<0&&(ft-=re.top),{x:Ke,y:ft}}_getOverlayPoint(ee,re,be){let Ke,ft;return Ke="center"==be.overlayX?-re.width/2:"start"===be.overlayX?this._isRtl()?-re.width:0:this._isRtl()?0:-re.width,ft="center"==be.overlayY?-re.height/2:"top"==be.overlayY?0:-re.height,{x:ee.x+Ke,y:ee.y+ft}}_getOverlayFit(ee,re,be,Ke){const ft=oe(re);let{x:le,y:Q}=ee,Be=this._getOffset(Ke,"x"),Je=this._getOffset(Ke,"y");Be&&(le+=Be),Je&&(Q+=Je);let It=0-Q,Ft=Q+ft.height-be.height,kt=this._subtractOverflows(ft.width,0-le,le+ft.width-be.width),Qt=this._subtractOverflows(ft.height,It,Ft),rn=kt*Qt;return{visibleArea:rn,isCompletelyWithinViewport:ft.width*ft.height===rn,fitsInViewportVertically:Qt===ft.height,fitsInViewportHorizontally:kt==ft.width}}_canFitWithFlexibleDimensions(ee,re,be){if(this._hasFlexibleDimensions){const Ke=be.bottom-re.y,ft=be.right-re.x,le=Me(this._overlayRef.getConfig().minHeight),Q=Me(this._overlayRef.getConfig().minWidth);return(ee.fitsInViewportVertically||null!=le&&le<=Ke)&&(ee.fitsInViewportHorizontally||null!=Q&&Q<=ft)}return!1}_pushOverlayOnScreen(ee,re,be){if(this._previousPushAmount&&this._positionLocked)return{x:ee.x+this._previousPushAmount.x,y:ee.y+this._previousPushAmount.y};const Ke=oe(re),ft=this._viewportRect,le=Math.max(ee.x+Ke.width-ft.width,0),Q=Math.max(ee.y+Ke.height-ft.height,0),Be=Math.max(ft.top-be.top-ee.y,0),Je=Math.max(ft.left-be.left-ee.x,0);let qe=0,ot=0;return qe=Ke.width<=ft.width?Je||-le:ee.xkt&&!this._isInitialRender&&!this._growAfterOpen&&(le=ee.y-kt/2)}if("end"===re.overlayX&&!Ke||"start"===re.overlayX&&Ke)It=be.width-ee.x+2*this._viewportMargin,qe=ee.x-this._viewportMargin;else if("start"===re.overlayX&&!Ke||"end"===re.overlayX&&Ke)ot=ee.x,qe=be.right-ee.x;else{const Ft=Math.min(be.right-ee.x+be.left,ee.x),kt=this._lastBoundingBoxSize.width;qe=2*Ft,ot=ee.x-Ft,qe>kt&&!this._isInitialRender&&!this._growAfterOpen&&(ot=ee.x-kt/2)}return{top:le,left:ot,bottom:Q,right:It,width:qe,height:ft}}_setBoundingBoxStyles(ee,re){const be=this._calculateBoundingBoxRect(ee,re);!this._isInitialRender&&!this._growAfterOpen&&(be.height=Math.min(be.height,this._lastBoundingBoxSize.height),be.width=Math.min(be.width,this._lastBoundingBoxSize.width));const Ke={};if(this._hasExactPosition())Ke.top=Ke.left="0",Ke.bottom=Ke.right=Ke.maxHeight=Ke.maxWidth="",Ke.width=Ke.height="100%";else{const ft=this._overlayRef.getConfig().maxHeight,le=this._overlayRef.getConfig().maxWidth;Ke.height=(0,d.a1)(be.height),Ke.top=(0,d.a1)(be.top),Ke.bottom=(0,d.a1)(be.bottom),Ke.width=(0,d.a1)(be.width),Ke.left=(0,d.a1)(be.left),Ke.right=(0,d.a1)(be.right),Ke.alignItems="center"===re.overlayX?"center":"end"===re.overlayX?"flex-end":"flex-start",Ke.justifyContent="center"===re.overlayY?"center":"bottom"===re.overlayY?"flex-end":"flex-start",ft&&(Ke.maxHeight=(0,d.a1)(ft)),le&&(Ke.maxWidth=(0,d.a1)(le))}this._lastBoundingBoxSize=be,ge(this._boundingBox.style,Ke)}_resetBoundingBoxStyles(){ge(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ge(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ee,re){const be={},Ke=this._hasExactPosition(),ft=this._hasFlexibleDimensions,le=this._overlayRef.getConfig();if(Ke){const qe=this._viewportRuler.getViewportScrollPosition();ge(be,this._getExactOverlayY(re,ee,qe)),ge(be,this._getExactOverlayX(re,ee,qe))}else be.position="static";let Q="",Be=this._getOffset(re,"x"),Je=this._getOffset(re,"y");Be&&(Q+=`translateX(${Be}px) `),Je&&(Q+=`translateY(${Je}px)`),be.transform=Q.trim(),le.maxHeight&&(Ke?be.maxHeight=(0,d.a1)(le.maxHeight):ft&&(be.maxHeight="")),le.maxWidth&&(Ke?be.maxWidth=(0,d.a1)(le.maxWidth):ft&&(be.maxWidth="")),ge(this._pane.style,be)}_getExactOverlayY(ee,re,be){let Ke={top:"",bottom:""},ft=this._getOverlayPoint(re,this._overlayRect,ee);return this._isPushed&&(ft=this._pushOverlayOnScreen(ft,this._overlayRect,be)),"bottom"===ee.overlayY?Ke.bottom=this._document.documentElement.clientHeight-(ft.y+this._overlayRect.height)+"px":Ke.top=(0,d.a1)(ft.y),Ke}_getExactOverlayX(ee,re,be){let le,Ke={left:"",right:""},ft=this._getOverlayPoint(re,this._overlayRect,ee);return this._isPushed&&(ft=this._pushOverlayOnScreen(ft,this._overlayRect,be)),le=this._isRtl()?"end"===ee.overlayX?"left":"right":"end"===ee.overlayX?"right":"left","right"===le?Ke.right=this._document.documentElement.clientWidth-(ft.x+this._overlayRect.width)+"px":Ke.left=(0,d.a1)(ft.x),Ke}_getScrollVisibility(){const ee=this._getOriginRect(),re=this._pane.getBoundingClientRect(),be=this._scrollables.map(Ke=>Ke.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ce(ee,be),isOriginOutsideView:_e(ee,be),isOverlayClipped:Ce(re,be),isOverlayOutsideView:_e(re,be)}}_subtractOverflows(ee,...re){return re.reduce((be,Ke)=>be-Math.max(Ke,0),ee)}_getNarrowedViewportRect(){const ee=this._document.documentElement.clientWidth,re=this._document.documentElement.clientHeight,be=this._viewportRuler.getViewportScrollPosition();return{top:be.top+this._viewportMargin,left:be.left+this._viewportMargin,right:be.left+ee-this._viewportMargin,bottom:be.top+re-this._viewportMargin,width:ee-2*this._viewportMargin,height:re-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ee,re){return"x"===re?null==ee.offsetX?this._offsetX:ee.offsetX:null==ee.offsetY?this._offsetY:ee.offsetY}_validatePositions(){}_addPanelClasses(ee){this._pane&&(0,d.FG)(ee).forEach(re=>{""!==re&&-1===this._appliedPanelClasses.indexOf(re)&&(this._appliedPanelClasses.push(re),this._pane.classList.add(re))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ee=>{this._pane.classList.remove(ee)}),this._appliedPanelClasses=[])}_getOriginRect(){const ee=this._origin;if(ee instanceof O.aKT)return ee.nativeElement.getBoundingClientRect();if(ee instanceof Element)return ee.getBoundingClientRect();const re=ee.width||0,be=ee.height||0;return{top:ee.y,bottom:ee.y+be,left:ee.x,right:ee.x+re,height:be,width:re}}}function ge(ce,ee){for(let re in ee)ee.hasOwnProperty(re)&&(ce[re]=ee[re]);return ce}function Me(ce){if("number"!=typeof ce&&null!=ce){const[ee,re]=ce.split(M);return re&&"px"!==re?null:parseFloat(ee)}return ce||null}function oe(ce){return{top:Math.floor(ce.top),right:Math.floor(ce.right),bottom:Math.floor(ce.bottom),left:Math.floor(ce.left),width:Math.floor(ce.width),height:Math.floor(ce.height)}}const tt="cdk-global-overlay-wrapper";class Y{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(ee){const re=ee.getConfig();this._overlayRef=ee,this._width&&!re.width&&ee.updateSize({width:this._width}),this._height&&!re.height&&ee.updateSize({height:this._height}),ee.hostElement.classList.add(tt),this._isDisposed=!1}top(ee=""){return this._bottomOffset="",this._topOffset=ee,this._alignItems="flex-start",this}left(ee=""){return this._xOffset=ee,this._xPosition="left",this}bottom(ee=""){return this._topOffset="",this._bottomOffset=ee,this._alignItems="flex-end",this}right(ee=""){return this._xOffset=ee,this._xPosition="right",this}start(ee=""){return this._xOffset=ee,this._xPosition="start",this}end(ee=""){return this._xOffset=ee,this._xPosition="end",this}width(ee=""){return this._overlayRef?this._overlayRef.updateSize({width:ee}):this._width=ee,this}height(ee=""){return this._overlayRef?this._overlayRef.updateSize({height:ee}):this._height=ee,this}centerHorizontally(ee=""){return this.left(ee),this._xPosition="center",this}centerVertically(ee=""){return this.top(ee),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const ee=this._overlayRef.overlayElement.style,re=this._overlayRef.hostElement.style,be=this._overlayRef.getConfig(),{width:Ke,height:ft,maxWidth:le,maxHeight:Q}=be,Be=!("100%"!==Ke&&"100vw"!==Ke||le&&"100%"!==le&&"100vw"!==le),Je=!("100%"!==ft&&"100vh"!==ft||Q&&"100%"!==Q&&"100vh"!==Q),qe=this._xPosition,ot=this._xOffset,It="rtl"===this._overlayRef.getConfig().direction;let Ft="",kt="",Qt="";Be?Qt="flex-start":"center"===qe?(Qt="center",It?kt=ot:Ft=ot):It?"left"===qe||"end"===qe?(Qt="flex-end",Ft=ot):("right"===qe||"start"===qe)&&(Qt="flex-start",kt=ot):"left"===qe||"start"===qe?(Qt="flex-start",Ft=ot):("right"===qe||"end"===qe)&&(Qt="flex-end",kt=ot),ee.position=this._cssPosition,ee.marginLeft=Be?"0":Ft,ee.marginTop=Je?"0":this._topOffset,ee.marginBottom=this._bottomOffset,ee.marginRight=Be?"0":kt,re.justifyContent=Qt,re.alignItems=Je?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ee=this._overlayRef.overlayElement.style,re=this._overlayRef.hostElement,be=re.style;re.classList.remove(tt),be.justifyContent=be.alignItems=ee.marginTop=ee.marginBottom=ee.marginLeft=ee.marginRight=ee.position="",this._overlayRef=null,this._isDisposed=!0}}let Re=(()=>{class ce{_viewportRuler=(0,O.WQX)(o.Xj);_document=(0,O.WQX)(c.qQ);_platform=(0,O.WQX)(w.OD);_overlayContainer=(0,O.WQX)(N);constructor(){}global(){return new Y}flexibleConnectedTo(re){return new j(re,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(be){return new(be||ce)};static \u0275prov=O.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})(),De=(()=>{class ce{scrollStrategies=(0,O.WQX)(ke);_overlayContainer=(0,O.WQX)(N);_positionBuilder=(0,O.WQX)(Re);_keyboardDispatcher=(0,O.WQX)(q);_injector=(0,O.WQX)(O.zZn);_ngZone=(0,O.WQX)(O.SKi);_document=(0,O.WQX)(c.qQ);_directionality=(0,O.WQX)(y.dS);_location=(0,O.WQX)(c.aZ);_outsideClickDispatcher=(0,O.WQX)(J);_animationsModuleType=(0,O.WQX)(O.bc$,{optional:!0});_idGenerator=(0,O.WQX)(u.g7);_renderer=(0,O.WQX)(O._9s).createRenderer(null,null);_appRef;_styleLoader=(0,O.WQX)(P.l);constructor(){}create(re){this._styleLoader.load(K);const be=this._createHostElement(),Ke=this._createPaneElement(be),ft=this._createPortalOutlet(Ke),le=new Ue(re);return le.direction=le.direction||this._directionality.value,new V(ft,be,Ke,le,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(O.uvJ),this._renderer)}position(){return this._positionBuilder}_createPaneElement(re){const be=this._document.createElement("div");return be.id=this._idGenerator.getId("cdk-overlay-"),be.classList.add("cdk-overlay-pane"),re.appendChild(be),be}_createHostElement(){const re=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(re),re}_createPortalOutlet(re){return this._appRef||(this._appRef=this._injector.get(O.o8S)),new h.aI(re,null,this._appRef,this._injector,this._document)}static \u0275fac=function(be){return new(be||ce)};static \u0275prov=O.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})();const nt=[{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"}],ht=new O.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const ce=(0,O.WQX)(De);return()=>ce.scrollStrategies.reposition()}});let jt=(()=>{class ce{elementRef=(0,O.WQX)(O.aKT);constructor(){}static \u0275fac=function(be){return new(be||ce)};static \u0275dir=O.FsC({type:ce,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return ce})(),Nt=(()=>{class ce{_overlay=(0,O.WQX)(De);_dir=(0,O.WQX)(y.dS,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=E.yU.EMPTY;_attachSubscription=E.yU.EMPTY;_detachSubscription=E.yU.EMPTY;_positionSubscription=E.yU.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=(0,O.WQX)(ht);_disposeOnNavigation=!1;_ngZone=(0,O.WQX)(O.SKi);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(re){this._offsetX=re,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(re){this._offsetY=re,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(re){this._disposeOnNavigation=re}backdropClick=new O.bkB;positionChange=new O.bkB;attach=new O.bkB;detach=new O.bkB;overlayKeydown=new O.bkB;overlayOutsideClick=new O.bkB;constructor(){const re=(0,O.WQX)(O.C4Q),be=(0,O.WQX)(O.c1b);this._templatePortal=new h.VA(re,be),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(re){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),re.origin&&this.open&&this._position.apply()),re.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=nt);const re=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=re.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=re.detachments().subscribe(()=>this.detach.emit()),re.keydownEvents().subscribe(be=>{this.overlayKeydown.next(be),be.keyCode===ne._f&&!this.disableClose&&!(0,ne.rp)(be)&&(be.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(be=>{const Ke=this._getOriginElement(),ft=(0,w.Fb)(be);(!Ke||Ke!==ft&&!Ke.contains(ft))&&this.overlayOutsideClick.next(be)})}_buildConfig(){const re=this._position=this.positionStrategy||this._createPositionStrategy(),be=new Ue({direction:this._dir||"ltr",positionStrategy:re,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(be.width=this.width),(this.height||0===this.height)&&(be.height=this.height),(this.minWidth||0===this.minWidth)&&(be.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(be.minHeight=this.minHeight),this.backdropClass&&(be.backdropClass=this.backdropClass),this.panelClass&&(be.panelClass=this.panelClass),be}_updatePositionStrategy(re){const be=this.positions.map(Ke=>({originX:Ke.originX,originY:Ke.originY,overlayX:Ke.overlayX,overlayY:Ke.overlayY,offsetX:Ke.offsetX||this.offsetX,offsetY:Ke.offsetY||this.offsetY,panelClass:Ke.panelClass||void 0}));return re.setOrigin(this._getOrigin()).withPositions(be).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const re=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(re),re}_getOrigin(){return this.origin instanceof jt?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof jt?this.origin.elementRef.nativeElement:this.origin instanceof O.aKT?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_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(re=>{this.backdropClick.emit(re)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function g(ce,ee=!1){return(0,D.N)((re,be)=>{let Ke=0;re.subscribe((0,p._)(be,ft=>{const le=ce(ft,Ke++);(le||ee)&&be.next(ft),!le&&be.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(re=>{this._ngZone.run(()=>this.positionChange.emit(re)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static \u0275fac=function(be){return new(be||ce)};static \u0275dir=O.FsC({type:ce,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",O.L39],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",O.L39],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",O.L39],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",O.L39],push:[2,"cdkConnectedOverlayPush","push",O.L39],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",O.L39]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[O.GFd,O.OA$]})}return ce})();const ln={provide:ht,deps:[De],useFactory:function on(ce){return()=>ce.scrollStrategies.reposition()}};let Ot=(()=>{class ce{static \u0275fac=function(be){return new(be||ce)};static \u0275mod=O.$C({type:ce});static \u0275inj=O.G2t({providers:[De,ln],imports:[y.jI,h.jc,o.E9,o.E9]})}return ce})()},6860:(ut,Ie,a)=>{"use strict";a.d(Ie,{BD:()=>E,BQ:()=>y,CZ:()=>T,Fb:()=>Z,KT:()=>de,MU:()=>D,OD:()=>d,r5:()=>h,v8:()=>ae,vc:()=>ie});var o=a(4438),c=a(177);let O;try{O=typeof Intl<"u"&&Intl.v8BreakIterator}catch{O=!1}let C,d=(()=>{class _e{_platformId=(0,o.WQX)(o.Agw);isBrowser=this._platformId?(0,c.UE)(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!O)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(ke){return new(ke||_e)};static \u0275prov=o.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})();const x=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function D(){if(C)return C;if("object"!=typeof document||!document)return C=new Set(x),C;let _e=document.createElement("input");return C=new Set(x.filter(Ce=>(_e.setAttribute("type",Ce),_e.type===Ce))),C}let p;function y(_e){return function g(){if(null==p&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>p=!0}))}finally{p=p||!1}return p}()?_e:!!_e.capture}var h=function(_e){return _e[_e.NORMAL=0]="NORMAL",_e[_e.NEGATED=1]="NEGATED",_e[_e.INVERTED=2]="INVERTED",_e}(h||{});let u,P,W;function T(){if(null==P){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return P=!1,P;if("scrollBehavior"in document.documentElement.style)P=!0;else{const _e=Element.prototype.scrollTo;P=!!_e&&!/\{\s*\[native code\]\s*\}/.test(_e.toString())}}return P}function E(){if("object"!=typeof document||!document)return h.NORMAL;if(null==u){const _e=document.createElement("div"),Ce=_e.style;_e.dir="rtl",Ce.width="1px",Ce.overflow="auto",Ce.visibility="hidden",Ce.pointerEvents="none",Ce.position="absolute";const Ae=document.createElement("div"),ke=Ae.style;ke.width="2px",ke.height="1px",_e.appendChild(Ae),document.body.appendChild(_e),u=h.NORMAL,0===_e.scrollLeft&&(_e.scrollLeft=1,u=0===_e.scrollLeft?h.NEGATED:h.INVERTED),_e.remove()}return u}function de(_e){if(function ne(){if(null==W){const _e=typeof document<"u"?document.head:null;W=!(!_e||!_e.createShadowRoot&&!_e.attachShadow)}return W}()){const Ce=_e.getRootNode?_e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&Ce instanceof ShadowRoot)return Ce}return null}function ie(){let _e=typeof document<"u"&&document?document.activeElement:null;for(;_e&&_e.shadowRoot;){const Ce=_e.shadowRoot.activeElement;if(Ce===_e)break;_e=Ce}return _e}function Z(_e){return _e.composedPath?_e.composedPath()[0]:_e.target}function ae(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6939:(ut,Ie,a)=>{"use strict";a.d(Ie,{A8:()=>g,I3:()=>de,VA:()=>y,aI:()=>T,jc:()=>Z,lb:()=>u});var o=a(4438),c=a(177);class p{_attachedHost;attach(_e){return this._attachedHost=_e,_e.attach(this)}detach(){let _e=this._attachedHost;null!=_e&&(this._attachedHost=null,_e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(_e){this._attachedHost=_e}}class g extends p{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(_e,Ce,Ae,ke,Ue){super(),this.component=_e,this.viewContainerRef=Ce,this.injector=Ae,this.projectableNodes=Ue}}class y extends p{templateRef;viewContainerRef;context;injector;constructor(_e,Ce,Ae,ke){super(),this.templateRef=_e,this.viewContainerRef=Ce,this.context=Ae,this.injector=ke}get origin(){return this.templateRef.elementRef}attach(_e,Ce=this.context){return this.context=Ce,super.attach(_e)}detach(){return this.context=void 0,super.detach()}}class h extends p{element;constructor(_e){super(),this.element=_e instanceof o.aKT?_e.nativeElement:_e}}class u{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(_e){return _e instanceof g?(this._attachedPortal=_e,this.attachComponentPortal(_e)):_e instanceof y?(this._attachedPortal=_e,this.attachTemplatePortal(_e)):this.attachDomPortal&&_e instanceof h?(this._attachedPortal=_e,this.attachDomPortal(_e)):void 0}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(_e){this._disposeFn=_e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class T extends u{outletElement;_appRef;_defaultInjector;_document;constructor(_e,Ce,Ae,ke,Ue){super(),this.outletElement=_e,this._appRef=Ae,this._defaultInjector=ke,this._document=Ue}attachComponentPortal(_e){let Ce;if(_e.viewContainerRef){const Ae=_e.injector||_e.viewContainerRef.injector,ke=Ae.get(o.Vns,null,{optional:!0})||void 0;Ce=_e.viewContainerRef.createComponent(_e.component,{index:_e.viewContainerRef.length,injector:Ae,ngModuleRef:ke,projectableNodes:_e.projectableNodes||void 0}),this.setDisposeFn(()=>Ce.destroy())}else Ce=(0,o.a0P)(_e.component,{elementInjector:_e.injector||this._defaultInjector||o.zZn.NULL,environmentInjector:this._appRef.injector,projectableNodes:_e.projectableNodes||void 0}),this._appRef.attachView(Ce.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Ce.hostView),Ce.destroy()});return this.outletElement.appendChild(this._getComponentRootNode(Ce)),this._attachedPortal=_e,Ce}attachTemplatePortal(_e){let Ce=_e.viewContainerRef,Ae=Ce.createEmbeddedView(_e.templateRef,_e.context,{injector:_e.injector});return Ae.rootNodes.forEach(ke=>this.outletElement.appendChild(ke)),Ae.detectChanges(),this.setDisposeFn(()=>{let ke=Ce.indexOf(Ae);-1!==ke&&Ce.remove(ke)}),this._attachedPortal=_e,Ae}attachDomPortal=_e=>{const Ce=_e.element,Ae=this._document.createComment("dom-portal");Ce.parentNode.insertBefore(Ae,Ce),this.outletElement.appendChild(Ce),this._attachedPortal=_e,super.setDisposeFn(()=>{Ae.parentNode&&Ae.parentNode.replaceChild(Ce,Ae)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(_e){return _e.hostView.rootNodes[0]}}let de=(()=>{class Le extends u{_moduleRef=(0,o.WQX)(o.Vns,{optional:!0});_document=(0,o.WQX)(c.qQ);_viewContainerRef=(0,o.WQX)(o.c1b);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(Ce){this.hasAttached()&&!Ce&&!this._isInitialized||(this.hasAttached()&&super.detach(),Ce&&super.attach(Ce),this._attachedPortal=Ce||null)}attached=new o.bkB;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(Ce){Ce.setAttachedHost(this);const Ae=null!=Ce.viewContainerRef?Ce.viewContainerRef:this._viewContainerRef,ke=Ae.createComponent(Ce.component,{index:Ae.length,injector:Ce.injector||Ae.injector,projectableNodes:Ce.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return Ae!==this._viewContainerRef&&this._getRootNode().appendChild(ke.hostView.rootNodes[0]),super.setDisposeFn(()=>ke.destroy()),this._attachedPortal=Ce,this._attachedRef=ke,this.attached.emit(ke),ke}attachTemplatePortal(Ce){Ce.setAttachedHost(this);const Ae=this._viewContainerRef.createEmbeddedView(Ce.templateRef,Ce.context,{injector:Ce.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Ce,this._attachedRef=Ae,this.attached.emit(Ae),Ae}attachDomPortal=Ce=>{const Ae=Ce.element,ke=this._document.createComment("dom-portal");Ce.setAttachedHost(this),Ae.parentNode.insertBefore(ke,Ae),this._getRootNode().appendChild(Ae),this._attachedPortal=Ce,super.setDisposeFn(()=>{ke.parentNode&&ke.parentNode.replaceChild(Ae,ke)})};_getRootNode(){const Ce=this._viewContainerRef.element.nativeElement;return Ce.nodeType===Ce.ELEMENT_NODE?Ce:Ce.parentNode}static \u0275fac=function(Ae){return new(Ae||Le)};static \u0275dir=o.FsC({type:Le,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[o.Vt3]})}return Le})(),Z=(()=>{class Le{static \u0275fac=function(Ae){return new(Ae||Le)};static \u0275mod=o.$C({type:Le});static \u0275inj=o.G2t({})}return Le})()},9046:(ut,Ie,a)=>{"use strict";a.d(Ie,{Y:()=>d,l:()=>O});var o=a(4438);const c=new WeakMap;let O=(()=>{class w{_appRef;_injector=(0,o.WQX)(o.zZn);_environmentInjector=(0,o.WQX)(o.uvJ);load(x){const D=this._appRef=this._appRef||this._injector.get(o.o8S);let p=c.get(D);p||(p={loaders:new Set,refs:[]},c.set(D,p),D.onDestroy(()=>{c.get(D)?.refs.forEach(g=>g.destroy()),c.delete(D)})),p.loaders.has(x)||(p.loaders.add(x),p.refs.push((0,o.a0P)(x,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(D){return new(D||w)};static \u0275prov=o.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})(),d=(()=>{class w{static \u0275fac=function(D){return new(D||w)};static \u0275cmp=o.VBU({type:w,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(D,p){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}"],encapsulation:2,changeDetection:0})}return w})()},3980:(ut,Ie,a)=>{"use strict";a.d(Ie,{uv:()=>oe,Gj:()=>on,R:()=>Me,E9:()=>ln,Xj:()=>se});var o=a(4085),c=a(4438),O=a(1413),d=a(7673),w=a(1985),C=a(6780),x=a(8359);const D={schedule(Ot){let rt=requestAnimationFrame,ce=cancelAnimationFrame;const{delegate:ee}=D;ee&&(rt=ee.requestAnimationFrame,ce=ee.cancelAnimationFrame);const re=rt(be=>{ce=void 0,Ot(be)});return new x.yU(()=>ce?.(re))},requestAnimationFrame(...Ot){const{delegate:rt}=D;return(rt?.requestAnimationFrame||requestAnimationFrame)(...Ot)},cancelAnimationFrame(...Ot){const{delegate:rt}=D;return(rt?.cancelAnimationFrame||cancelAnimationFrame)(...Ot)},delegate:void 0};var g=a(9687);new class y extends g.q{flush(rt){this._active=!0;const ce=this._scheduled;this._scheduled=void 0;const{actions:ee}=this;let re;rt=rt||ee.shift();do{if(re=rt.execute(rt.state,rt.delay))break}while((rt=ee[0])&&rt.id===ce&&ee.shift());if(this._active=!1,re){for(;(rt=ee[0])&&rt.id===ce&&ee.shift();)rt.unsubscribe();throw re}}}(class p extends C.R{constructor(rt,ce){super(rt,ce),this.scheduler=rt,this.work=ce}requestAsyncId(rt,ce,ee=0){return null!==ee&&ee>0?super.requestAsyncId(rt,ce,ee):(rt.actions.push(this),rt._scheduled||(rt._scheduled=D.requestAnimationFrame(()=>rt.flush(void 0))))}recycleAsyncId(rt,ce,ee=0){var re;if(null!=ee?ee>0:this.delay>0)return super.recycleAsyncId(rt,ce,ee);const{actions:be}=rt;null!=ce&&(null===(re=be[be.length-1])||void 0===re?void 0:re.id)!==ce&&(D.cancelAnimationFrame(ce),rt._scheduled=void 0)}});let T,P=1;const E={};function W(Ot){return Ot in E&&(delete E[Ot],!0)}const ne={setImmediate(Ot){const rt=P++;return E[rt]=!0,T||(T=Promise.resolve()),T.then(()=>W(rt)&&Ot()),rt},clearImmediate(Ot){W(Ot)}},{setImmediate:ie,clearImmediate:Z}=ne,ae={setImmediate(...Ot){const{delegate:rt}=ae;return(rt?.setImmediate||ie)(...Ot)},clearImmediate(Ot){const{delegate:rt}=ae;return(rt?.clearImmediate||Z)(Ot)},delegate:void 0};new class _e extends g.q{flush(rt){this._active=!0;const ce=this._scheduled;this._scheduled=void 0;const{actions:ee}=this;let re;rt=rt||ee.shift();do{if(re=rt.execute(rt.state,rt.delay))break}while((rt=ee[0])&&rt.id===ce&&ee.shift());if(this._active=!1,re){for(;(rt=ee[0])&&rt.id===ce&&ee.shift();)rt.unsubscribe();throw re}}}(class Le extends C.R{constructor(rt,ce){super(rt,ce),this.scheduler=rt,this.work=ce}requestAsyncId(rt,ce,ee=0){return null!==ee&&ee>0?super.requestAsyncId(rt,ce,ee):(rt.actions.push(this),rt._scheduled||(rt._scheduled=ae.setImmediate(rt.flush.bind(rt,void 0))))}recycleAsyncId(rt,ce,ee=0){var re;if(null!=ee?ee>0:this.delay>0)return super.recycleAsyncId(rt,ce,ee);const{actions:be}=rt;null!=ce&&(null===(re=be[be.length-1])||void 0===re?void 0:re.id)!==ce&&(ae.clearImmediate(ce),rt._scheduled===ce&&(rt._scheduled=void 0))}});var ke=a(3236),Ue=a(9974),ve=a(8750),ye=a(4360),z=a(1584);function te(Ot,rt=ke.E){return function Se(Ot){return(0,Ue.N)((rt,ce)=>{let ee=!1,re=null,be=null,Ke=!1;const ft=()=>{if(be?.unsubscribe(),be=null,ee){ee=!1;const Q=re;re=null,ce.next(Q)}Ke&&ce.complete()},le=()=>{be=null,Ke&&ce.complete()};rt.subscribe((0,ye._)(ce,Q=>{ee=!0,re=Q,be||(0,ve.Tg)(Ot(Q)).subscribe(be=(0,ye._)(ce,ft,le))},()=>{Ke=!0,(!ee||!be||be.closed)&&ce.complete()}))})}(()=>(0,z.O)(Ot,rt))}var L=a(5964),q=a(6860),J=a(8203),X=a(177);let Me=(()=>{class Ot{_ngZone=(0,c.WQX)(c.SKi);_platform=(0,c.WQX)(q.OD);_renderer=(0,c.WQX)(c._9s).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new O.B;_scrolledCount=0;scrollContainers=new Map;register(ce){this.scrollContainers.has(ce)||this.scrollContainers.set(ce,ce.elementScrolled().subscribe(()=>this._scrolled.next(ce)))}deregister(ce){const ee=this.scrollContainers.get(ce);ee&&(ee.unsubscribe(),this.scrollContainers.delete(ce))}scrolled(ce=20){return this._platform.isBrowser?new w.c(ee=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));const re=ce>0?this._scrolled.pipe(te(ce)).subscribe(ee):this._scrolled.subscribe(ee);return this._scrolledCount++,()=>{re.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):(0,d.of)()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((ce,ee)=>this.deregister(ee)),this._scrolled.complete()}ancestorScrolled(ce,ee){const re=this.getAncestorScrollContainers(ce);return this.scrolled(ee).pipe((0,L.p)(be=>!be||re.indexOf(be)>-1))}getAncestorScrollContainers(ce){const ee=[];return this.scrollContainers.forEach((re,be)=>{this._scrollableContainsElement(be,ce)&&ee.push(be)}),ee}_scrollableContainsElement(ce,ee){let re=(0,o.i8)(ee),be=ce.getElementRef().nativeElement;do{if(re==be)return!0}while(re=re.parentElement);return!1}static \u0275fac=function(ee){return new(ee||Ot)};static \u0275prov=c.jDH({token:Ot,factory:Ot.\u0275fac,providedIn:"root"})}return Ot})(),oe=(()=>{class Ot{elementRef=(0,c.WQX)(c.aKT);scrollDispatcher=(0,c.WQX)(Me);ngZone=(0,c.WQX)(c.SKi);dir=(0,c.WQX)(J.dS,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new O.B;_renderer=(0,c.WQX)(c.sFG);_cleanupScroll;_elementScrolled=new O.B;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",ce=>this._elementScrolled.next(ce))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(ce){const ee=this.elementRef.nativeElement,re=this.dir&&"rtl"==this.dir.value;null==ce.left&&(ce.left=re?ce.end:ce.start),null==ce.right&&(ce.right=re?ce.start:ce.end),null!=ce.bottom&&(ce.top=ee.scrollHeight-ee.clientHeight-ce.bottom),re&&(0,q.BD)()!=q.r5.NORMAL?(null!=ce.left&&(ce.right=ee.scrollWidth-ee.clientWidth-ce.left),(0,q.BD)()==q.r5.INVERTED?ce.left=ce.right:(0,q.BD)()==q.r5.NEGATED&&(ce.left=ce.right?-ce.right:ce.right)):null!=ce.right&&(ce.left=ee.scrollWidth-ee.clientWidth-ce.right),this._applyScrollToOptions(ce)}_applyScrollToOptions(ce){const ee=this.elementRef.nativeElement;(0,q.CZ)()?ee.scrollTo(ce):(null!=ce.top&&(ee.scrollTop=ce.top),null!=ce.left&&(ee.scrollLeft=ce.left))}measureScrollOffset(ce){const ee="left",be=this.elementRef.nativeElement;if("top"==ce)return be.scrollTop;if("bottom"==ce)return be.scrollHeight-be.clientHeight-be.scrollTop;const Ke=this.dir&&"rtl"==this.dir.value;return"start"==ce?ce=Ke?"right":ee:"end"==ce&&(ce=Ke?ee:"right"),Ke&&(0,q.BD)()==q.r5.INVERTED?ce==ee?be.scrollWidth-be.clientWidth-be.scrollLeft:be.scrollLeft:Ke&&(0,q.BD)()==q.r5.NEGATED?ce==ee?be.scrollLeft+be.scrollWidth-be.clientWidth:-be.scrollLeft:ce==ee?be.scrollLeft:be.scrollWidth-be.clientWidth-be.scrollLeft}static \u0275fac=function(ee){return new(ee||Ot)};static \u0275dir=c.FsC({type:Ot,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return Ot})(),se=(()=>{class Ot{_platform=(0,c.WQX)(q.OD);_listeners;_viewportSize;_change=new O.B;_document=(0,c.WQX)(X.qQ,{optional:!0});constructor(){const ce=(0,c.WQX)(c.SKi),ee=(0,c.WQX)(c._9s).createRenderer(null,null);ce.runOutsideAngular(()=>{if(this._platform.isBrowser){const re=be=>this._change.next(be);this._listeners=[ee.listen("window","resize",re),ee.listen("window","orientationchange",re)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(ce=>ce()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ce={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ce}getViewportRect(){const ce=this.getViewportScrollPosition(),{width:ee,height:re}=this.getViewportSize();return{top:ce.top,left:ce.left,bottom:ce.top+re,right:ce.left+ee,height:re,width:ee}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ce=this._document,ee=this._getWindow(),re=ce.documentElement,be=re.getBoundingClientRect();return{top:-be.top||ce.body.scrollTop||ee.scrollY||re.scrollTop||0,left:-be.left||ce.body.scrollLeft||ee.scrollX||re.scrollLeft||0}}change(ce=20){return ce>0?this._change.pipe(te(ce)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ce=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ce.innerWidth,height:ce.innerHeight}:{width:0,height:0}}static \u0275fac=function(ee){return new(ee||Ot)};static \u0275prov=c.jDH({token:Ot,factory:Ot.\u0275fac,providedIn:"root"})}return Ot})(),on=(()=>{class Ot{static \u0275fac=function(ee){return new(ee||Ot)};static \u0275mod=c.$C({type:Ot});static \u0275inj=c.G2t({})}return Ot})(),ln=(()=>{class Ot{static \u0275fac=function(ee){return new(ee||Ot)};static \u0275mod=c.$C({type:Ot});static \u0275inj=c.G2t({imports:[J.jI,on,J.jI,on]})}return Ot})()},177:(ut,Ie,a)=>{"use strict";a.d(Ie,{AJ:()=>Nr,B3:()=>Wt,Jj:()=>hi,MD:()=>ro,N0:()=>mr,P9:()=>wi,QT:()=>d,QX:()=>tr,Sm:()=>W,Sq:()=>tn,T3:()=>Ht,UE:()=>Wi,VF:()=>C,Vy:()=>Er,Xr:()=>kr,YU:()=>Jt,ZD:()=>w,_b:()=>Tt,aZ:()=>de,bT:()=>_n,fw:()=>ne,hb:()=>T,hj:()=>g,kB:()=>E,m1:()=>Pr,qQ:()=>D,vh:()=>hr});var o=a(4438),c=a(1413);let O=null;function d(){return O}function w(S){O??=S}class C{}const D=new o.nKC("");let p=(()=>{class S{historyGo($){throw new Error("")}static \u0275fac=function(ue){return new(ue||S)};static \u0275prov=o.jDH({token:S,factory:()=>(0,o.WQX)(y),providedIn:"platform"})}return S})();const g=new o.nKC("");let y=(()=>{class S extends p{_location;_history;_doc=(0,o.WQX)(D);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return d().getBaseHref(this._doc)}onPopState($){const ue=d().getGlobalEventTarget(this._doc,"window");return ue.addEventListener("popstate",$,!1),()=>ue.removeEventListener("popstate",$)}onHashChange($){const ue=d().getGlobalEventTarget(this._doc,"window");return ue.addEventListener("hashchange",$,!1),()=>ue.removeEventListener("hashchange",$)}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($){this._location.pathname=$}pushState($,ue,Xe){this._history.pushState($,ue,Xe)}replaceState($,ue,Xe){this._history.replaceState($,ue,Xe)}forward(){this._history.forward()}back(){this._history.back()}historyGo($=0){this._history.go($)}getState(){return this._history.state}static \u0275fac=function(ue){return new(ue||S)};static \u0275prov=o.jDH({token:S,factory:()=>new S,providedIn:"platform"})}return S})();function h(S,we){return S?we?S.endsWith("/")?we.startsWith("/")?S+we.slice(1):S+we:we.startsWith("/")?S+we:`${S}/${we}`:S:we}function u(S){const we=S.match(/#|\?|$/),$=we&&we.index||S.length;return S.slice(0,$-("/"===S[$-1]?1:0))+S.slice($)}function P(S){return S&&"?"!==S[0]?"?"+S:S}let T=(()=>{class S{historyGo($){throw new Error("")}static \u0275fac=function(ue){return new(ue||S)};static \u0275prov=o.jDH({token:S,factory:()=>(0,o.WQX)(W),providedIn:"root"})}return S})();const E=new o.nKC("");let W=(()=>{class S extends T{_platformLocation;_baseHref;_removeListenerFns=[];constructor($,ue){super(),this._platformLocation=$,this._baseHref=ue??this._platformLocation.getBaseHrefFromDOM()??(0,o.WQX)(D).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState($){this._removeListenerFns.push(this._platformLocation.onPopState($),this._platformLocation.onHashChange($))}getBaseHref(){return this._baseHref}prepareExternalUrl($){return h(this._baseHref,$)}path($=!1){const ue=this._platformLocation.pathname+P(this._platformLocation.search),Xe=this._platformLocation.hash;return Xe&&$?`${ue}${Xe}`:ue}pushState($,ue,Xe,Dt){const Rt=this.prepareExternalUrl(Xe+P(Dt));this._platformLocation.pushState($,ue,Rt)}replaceState($,ue,Xe,Dt){const Rt=this.prepareExternalUrl(Xe+P(Dt));this._platformLocation.replaceState($,ue,Rt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo($=0){this._platformLocation.historyGo?.($)}static \u0275fac=function(ue){return new(ue||S)(o.KVO(p),o.KVO(E,8))};static \u0275prov=o.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})(),ne=(()=>{class S extends T{_platformLocation;_baseHref="";_removeListenerFns=[];constructor($,ue){super(),this._platformLocation=$,null!=ue&&(this._baseHref=ue)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState($){this._removeListenerFns.push(this._platformLocation.onPopState($),this._platformLocation.onHashChange($))}getBaseHref(){return this._baseHref}path($=!1){const ue=this._platformLocation.hash??"#";return ue.length>0?ue.substring(1):ue}prepareExternalUrl($){const ue=h(this._baseHref,$);return ue.length>0?"#"+ue:ue}pushState($,ue,Xe,Dt){let Rt=this.prepareExternalUrl(Xe+P(Dt));0==Rt.length&&(Rt=this._platformLocation.pathname),this._platformLocation.pushState($,ue,Rt)}replaceState($,ue,Xe,Dt){let Rt=this.prepareExternalUrl(Xe+P(Dt));0==Rt.length&&(Rt=this._platformLocation.pathname),this._platformLocation.replaceState($,ue,Rt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo($=0){this._platformLocation.historyGo?.($)}static \u0275fac=function(ue){return new(ue||S)(o.KVO(p),o.KVO(E,8))};static \u0275prov=o.jDH({token:S,factory:S.\u0275fac})}return S})(),de=(()=>{class S{_subject=new c.B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor($){this._locationStrategy=$;const ue=this._locationStrategy.getBaseHref();this._basePath=function Le(S){if(new RegExp("^(https?:)?//").test(S)){const[,$]=S.split(/\/\/[^\/]+/);return $}return S}(u(ae(ue))),this._locationStrategy.onPopState(Xe=>{this._subject.next({url:this.path(!0),pop:!0,state:Xe.state,type:Xe.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path($=!1){return this.normalize(this._locationStrategy.path($))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo($,ue=""){return this.path()==this.normalize($+P(ue))}normalize($){return S.stripTrailingSlash(function Z(S,we){if(!S||!we.startsWith(S))return we;const $=we.substring(S.length);return""===$||["/",";","?","#"].includes($[0])?$:we}(this._basePath,ae($)))}prepareExternalUrl($){return $&&"/"!==$[0]&&($="/"+$),this._locationStrategy.prepareExternalUrl($)}go($,ue="",Xe=null){this._locationStrategy.pushState(Xe,"",$,ue),this._notifyUrlChangeListeners(this.prepareExternalUrl($+P(ue)),Xe)}replaceState($,ue="",Xe=null){this._locationStrategy.replaceState(Xe,"",$,ue),this._notifyUrlChangeListeners(this.prepareExternalUrl($+P(ue)),Xe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo($=0){this._locationStrategy.historyGo?.($)}onUrlChange($){return this._urlChangeListeners.push($),this._urlChangeSubscription??=this.subscribe(ue=>{this._notifyUrlChangeListeners(ue.url,ue.state)}),()=>{const ue=this._urlChangeListeners.indexOf($);this._urlChangeListeners.splice(ue,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners($="",ue){this._urlChangeListeners.forEach(Xe=>Xe($,ue))}subscribe($,ue,Xe){return this._subject.subscribe({next:$,error:ue??void 0,complete:Xe??void 0})}static normalizeQueryParams=P;static joinWithSlash=h;static stripTrailingSlash=u;static \u0275fac=function(ue){return new(ue||S)(o.KVO(T))};static \u0275prov=o.jDH({token:S,factory:()=>function ie(){return new de((0,o.KVO)(T))}(),providedIn:"root"})}return S})();function ae(S){return S.replace(/\/index.html$/,"")}var Ce=function(S){return S[S.Decimal=0]="Decimal",S[S.Percent=1]="Percent",S[S.Currency=2]="Currency",S[S.Scientific=3]="Scientific",S}(Ce||{}),ke=function(S){return S[S.Format=0]="Format",S[S.Standalone=1]="Standalone",S}(ke||{}),Ue=function(S){return S[S.Narrow=0]="Narrow",S[S.Abbreviated=1]="Abbreviated",S[S.Wide=2]="Wide",S[S.Short=3]="Short",S}(Ue||{}),ve=function(S){return S[S.Short=0]="Short",S[S.Medium=1]="Medium",S[S.Long=2]="Long",S[S.Full=3]="Full",S}(ve||{});function N(S,we){return De((0,o.H5H)(S)[o.KH2.DateFormat],we)}function V(S,we){return De((0,o.H5H)(S)[o.KH2.TimeFormat],we)}function I(S,we){return De((0,o.H5H)(S)[o.KH2.DateTimeFormat],we)}function M(S,we){const $=(0,o.H5H)(S),ue=$[o.KH2.NumberSymbols][we];if(typeof ue>"u"){if(12===we)return $[o.KH2.NumberSymbols][0];if(13===we)return $[o.KH2.NumberSymbols][1]}return ue}function j(S,we){return(0,o.H5H)(S)[o.KH2.NumberFormats][we]}function Ee(S){if(!S[o.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${S[o.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function De(S,we){for(let $=we;$>-1;$--)if(typeof S[$]<"u")return S[$];throw new Error("Locale data API: locale data undefined")}function nt(S){const[we,$]=S.split(":");return{hours:+we,minutes:+$}}const on=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ln={},Ot=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function rt(S,we,$,ue){let Xe=function He(S){if(Lt(S))return S;if("number"==typeof S&&!isNaN(S))return new Date(S);if("string"==typeof S){if(S=S.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(S)){const[Xe,Dt=1,Rt=1]=S.split("-").map(cn=>+cn);return ce(Xe,Dt-1,Rt)}const $=parseFloat(S);if(!isNaN(S-$))return new Date($);let ue;if(ue=S.match(on))return function at(S){const we=new Date(0);let $=0,ue=0;const Xe=S[8]?we.setUTCFullYear:we.setFullYear,Dt=S[8]?we.setUTCHours:we.setHours;S[9]&&($=Number(S[9]+S[10]),ue=Number(S[9]+S[11])),Xe.call(we,Number(S[1]),Number(S[2])-1,Number(S[3]));const Rt=Number(S[4]||0)-$,cn=Number(S[5]||0)-ue,$n=Number(S[6]||0),Gn=Math.floor(1e3*parseFloat("0."+(S[7]||0)));return Dt.call(we,Rt,cn,$n,Gn),we}(ue)}const we=new Date(S);if(!Lt(we))throw new Error(`Unable to convert "${S}" into a date`);return we}(S);we=ee($,we)||we;let cn,Rt=[];for(;we;){if(cn=Ot.exec(we),!cn){Rt.push(we);break}{Rt=Rt.concat(cn.slice(1));const Yn=Rt.pop();if(!Yn)break;we=Yn}}let $n=Xe.getTimezoneOffset();ue&&($n=$e(ue,$n),Xe=function Te(S,we,$){const ue=$?-1:1,Xe=S.getTimezoneOffset();return function lt(S,we){return(S=new Date(S.getTime())).setMinutes(S.getMinutes()+we),S}(S,ue*($e(we,Xe)-Xe))}(Xe,ue,!0));let Gn="";return Rt.forEach(Yn=>{const Pn=function nn(S){if(rn[S])return rn[S];let we;switch(S){case"G":case"GG":case"GGG":we=Q(3,Ue.Abbreviated);break;case"GGGG":we=Q(3,Ue.Wide);break;case"GGGGG":we=Q(3,Ue.Narrow);break;case"y":we=ft(0,1,0,!1,!0);break;case"yy":we=ft(0,2,0,!0,!0);break;case"yyy":we=ft(0,3,0,!1,!0);break;case"yyyy":we=ft(0,4,0,!1,!0);break;case"Y":we=Qt(1);break;case"YY":we=Qt(2,!0);break;case"YYY":we=Qt(3);break;case"YYYY":we=Qt(4);break;case"M":case"L":we=ft(1,1,1);break;case"MM":case"LL":we=ft(1,2,1);break;case"MMM":we=Q(2,Ue.Abbreviated);break;case"MMMM":we=Q(2,Ue.Wide);break;case"MMMMM":we=Q(2,Ue.Narrow);break;case"LLL":we=Q(2,Ue.Abbreviated,ke.Standalone);break;case"LLLL":we=Q(2,Ue.Wide,ke.Standalone);break;case"LLLLL":we=Q(2,Ue.Narrow,ke.Standalone);break;case"w":we=kt(1);break;case"ww":we=kt(2);break;case"W":we=kt(1,!0);break;case"d":we=ft(2,1);break;case"dd":we=ft(2,2);break;case"c":case"cc":we=ft(7,1);break;case"ccc":we=Q(1,Ue.Abbreviated,ke.Standalone);break;case"cccc":we=Q(1,Ue.Wide,ke.Standalone);break;case"ccccc":we=Q(1,Ue.Narrow,ke.Standalone);break;case"cccccc":we=Q(1,Ue.Short,ke.Standalone);break;case"E":case"EE":case"EEE":we=Q(1,Ue.Abbreviated);break;case"EEEE":we=Q(1,Ue.Wide);break;case"EEEEE":we=Q(1,Ue.Narrow);break;case"EEEEEE":we=Q(1,Ue.Short);break;case"a":case"aa":case"aaa":we=Q(0,Ue.Abbreviated);break;case"aaaa":we=Q(0,Ue.Wide);break;case"aaaaa":we=Q(0,Ue.Narrow);break;case"b":case"bb":case"bbb":we=Q(0,Ue.Abbreviated,ke.Standalone,!0);break;case"bbbb":we=Q(0,Ue.Wide,ke.Standalone,!0);break;case"bbbbb":we=Q(0,Ue.Narrow,ke.Standalone,!0);break;case"B":case"BB":case"BBB":we=Q(0,Ue.Abbreviated,ke.Format,!0);break;case"BBBB":we=Q(0,Ue.Wide,ke.Format,!0);break;case"BBBBB":we=Q(0,Ue.Narrow,ke.Format,!0);break;case"h":we=ft(3,1,-12);break;case"hh":we=ft(3,2,-12);break;case"H":we=ft(3,1);break;case"HH":we=ft(3,2);break;case"m":we=ft(4,1);break;case"mm":we=ft(4,2);break;case"s":we=ft(5,1);break;case"ss":we=ft(5,2);break;case"S":we=ft(6,1);break;case"SS":we=ft(6,2);break;case"SSS":we=ft(6,3);break;case"Z":case"ZZ":case"ZZZ":we=Je(0);break;case"ZZZZZ":we=Je(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":we=Je(1);break;case"OOOO":case"ZZZZ":case"zzzz":we=Je(2);break;default:return null}return rn[S]=we,we}(Yn);Gn+=Pn?Pn(Xe,$,$n):"''"===Yn?"'":Yn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Gn}function ce(S,we,$){const ue=new Date(0);return ue.setFullYear(S,we,$),ue.setHours(0,0,0),ue}function ee(S,we){const $=function z(S){return(0,o.H5H)(S)[o.KH2.LocaleId]}(S);if(ln[$]??={},ln[$][we])return ln[$][we];let ue="";switch(we){case"shortDate":ue=N(S,ve.Short);break;case"mediumDate":ue=N(S,ve.Medium);break;case"longDate":ue=N(S,ve.Long);break;case"fullDate":ue=N(S,ve.Full);break;case"shortTime":ue=V(S,ve.Short);break;case"mediumTime":ue=V(S,ve.Medium);break;case"longTime":ue=V(S,ve.Long);break;case"fullTime":ue=V(S,ve.Full);break;case"short":const Xe=ee(S,"shortTime"),Dt=ee(S,"shortDate");ue=re(I(S,ve.Short),[Xe,Dt]);break;case"medium":const Rt=ee(S,"mediumTime"),cn=ee(S,"mediumDate");ue=re(I(S,ve.Medium),[Rt,cn]);break;case"long":const $n=ee(S,"longTime"),Gn=ee(S,"longDate");ue=re(I(S,ve.Long),[$n,Gn]);break;case"full":const Yn=ee(S,"fullTime"),Pn=ee(S,"fullDate");ue=re(I(S,ve.Full),[Yn,Pn])}return ue&&(ln[$][we]=ue),ue}function re(S,we){return we&&(S=S.replace(/\{([^}]+)}/g,function($,ue){return null!=we&&ue in we?we[ue]:$})),S}function be(S,we,$="-",ue,Xe){let Dt="";(S<0||Xe&&S<=0)&&(Xe?S=1-S:(S=-S,Dt=$));let Rt=String(S);for(;Rt.length0||cn>-$)&&(cn+=$),3===S)0===cn&&-12===$&&(cn=12);else if(6===S)return function Ke(S,we){return be(S,3).substring(0,we)}(cn,we);const $n=M(Rt,5);return be(cn,we,$n,ue,Xe)}}function Q(S,we,$=ke.Format,ue=!1){return function(Xe,Dt){return function Be(S,we,$,ue,Xe,Dt){switch($){case 2:return function q(S,we,$){const ue=(0,o.H5H)(S),Dt=De([ue[o.KH2.MonthsFormat],ue[o.KH2.MonthsStandalone]],we);return De(Dt,$)}(we,Xe,ue)[S.getMonth()];case 1:return function L(S,we,$){const ue=(0,o.H5H)(S),Dt=De([ue[o.KH2.DaysFormat],ue[o.KH2.DaysStandalone]],we);return De(Dt,$)}(we,Xe,ue)[S.getDay()];case 0:const Rt=S.getHours(),cn=S.getMinutes();if(Dt){const Gn=function tt(S){const we=(0,o.H5H)(S);return Ee(we),(we[o.KH2.ExtraData][2]||[]).map(ue=>"string"==typeof ue?nt(ue):[nt(ue[0]),nt(ue[1])])}(we),Yn=function Y(S,we,$){const ue=(0,o.H5H)(S);Ee(ue);const Dt=De([ue[o.KH2.ExtraData][0],ue[o.KH2.ExtraData][1]],we)||[];return De(Dt,$)||[]}(we,Xe,ue),Pn=Gn.findIndex(Vn=>{if(Array.isArray(Vn)){const[Vt,pi]=Vn,Ui=Rt>=Vt.hours&&cn>=Vt.minutes,mi=Rt0?Math.floor(Xe/60):Math.ceil(Xe/60);switch(S){case 0:return(Xe>=0?"+":"")+be(Rt,2,Dt)+be(Math.abs(Xe%60),2,Dt);case 1:return"GMT"+(Xe>=0?"+":"")+be(Rt,1,Dt);case 2:return"GMT"+(Xe>=0?"+":"")+be(Rt,2,Dt)+":"+be(Math.abs(Xe%60),2,Dt);case 3:return 0===ue?"Z":(Xe>=0?"+":"")+be(Rt,2,Dt)+":"+be(Math.abs(Xe%60),2,Dt);default:throw new Error(`Unknown zone width "${S}"`)}}}const qe=0,ot=4;function Ft(S){const we=S.getDay(),$=0===we?-3:ot-we;return ce(S.getFullYear(),S.getMonth(),S.getDate()+$)}function kt(S,we=!1){return function($,ue){let Xe;if(we){const Dt=new Date($.getFullYear(),$.getMonth(),1).getDay()-1,Rt=$.getDate();Xe=1+Math.floor((Rt+Dt)/7)}else{const Dt=Ft($),Rt=function It(S){const we=ce(S,qe,1).getDay();return ce(S,0,1+(we<=ot?ot:ot+7)-we)}(Dt.getFullYear()),cn=Dt.getTime()-Rt.getTime();Xe=1+Math.round(cn/6048e5)}return be(Xe,S,M(ue,5))}}function Qt(S,we=!1){return function($,ue){return be(Ft($).getFullYear(),S,M(ue,5),we)}}const rn={};function $e(S,we){S=S.replace(/:/g,"");const $=Date.parse("Jan 01, 1970 00:00:00 "+S)/6e4;return isNaN($)?we:$}function Lt(S){return S instanceof Date&&!isNaN(S.valueOf())}const Ut=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function k(S,we,$,ue,Xe,Dt,Rt=!1){let cn="",$n=!1;if(isFinite(S)){let Gn=function Ze(S){let ue,Xe,Dt,Rt,cn,we=Math.abs(S)+"",$=0;for((Xe=we.indexOf("."))>-1&&(we=we.replace(".","")),(Dt=we.search(/e/i))>0?(Xe<0&&(Xe=Dt),Xe+=+we.slice(Dt+1),we=we.substring(0,Dt)):Xe<0&&(Xe=we.length),Dt=0;"0"===we.charAt(Dt);Dt++);if(Dt===(cn=we.length))ue=[0],Xe=1;else{for(cn--;"0"===we.charAt(cn);)cn--;for(Xe-=Dt,ue=[],Rt=0;Dt<=cn;Dt++,Rt++)ue[Rt]=Number(we.charAt(Dt))}return Xe>22&&(ue=ue.splice(0,21),$=Xe-1,Xe=1),{digits:ue,exponent:$,integerLen:Xe}}(S);Rt&&(Gn=function je(S){if(0===S.digits[0])return S;const we=S.digits.length-S.integerLen;return S.exponent?S.exponent+=2:(0===we?S.digits.push(0,0):1===we&&S.digits.push(0),S.integerLen+=2),S}(Gn));let Yn=we.minInt,Pn=we.minFrac,Vn=we.maxFrac;if(Dt){const rr=Dt.match(Ut);if(null===rr)throw new Error(`${Dt} is not a valid digit info`);const ei=rr[1],Jn=rr[3],si=rr[5];null!=ei&&(Yn=_t(ei)),null!=Jn&&(Pn=_t(Jn)),null!=si?Vn=_t(si):null!=Jn&&Pn>Vn&&(Vn=Pn)}!function dt(S,we,$){if(we>$)throw new Error(`The minimum number of digits after fraction (${we}) is higher than the maximum (${$}).`);let ue=S.digits,Xe=ue.length-S.integerLen;const Dt=Math.min(Math.max(we,Xe),$);let Rt=Dt+S.integerLen,cn=ue[Rt];if(Rt>0){ue.splice(Math.max(S.integerLen,Rt));for(let Pn=Rt;Pn=5)if(Rt-1<0){for(let Pn=0;Pn>Rt;Pn--)ue.unshift(0),S.integerLen++;ue.unshift(1),S.integerLen++}else ue[Rt-1]++;for(;Xe=Gn?pi.pop():$n=!1),Vn>=10?1:0},0);Yn&&(ue.unshift(Yn),S.integerLen++)}(Gn,Pn,Vn);let Vt=Gn.digits,pi=Gn.integerLen;const Ui=Gn.exponent;let mi=[];for($n=Vt.every(rr=>!rr);pi0?mi=Vt.splice(pi,Vt.length):(mi=Vt,Vt=[0]);const Ir=[];for(Vt.length>=we.lgSize&&Ir.unshift(Vt.splice(-we.lgSize,Vt.length).join(""));Vt.length>we.gSize;)Ir.unshift(Vt.splice(-we.gSize,Vt.length).join(""));Vt.length&&Ir.unshift(Vt.join("")),cn=Ir.join(M($,ue)),mi.length&&(cn+=M($,Xe)+mi.join("")),Ui&&(cn+=M($,6)+"+"+Ui)}else cn=M($,9);return cn=S<0&&!$n?we.negPre+cn+we.negSuf:we.posPre+cn+we.posSuf,cn}function Oe(S,we="-"){const $={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ue=S.split(";"),Xe=ue[0],Dt=ue[1],Rt=-1!==Xe.indexOf(".")?Xe.split("."):[Xe.substring(0,Xe.lastIndexOf("0")+1),Xe.substring(Xe.lastIndexOf("0")+1)],cn=Rt[0],$n=Rt[1]||"";$.posPre=cn.substring(0,cn.indexOf("#"));for(let Yn=0;Yn<$n.length;Yn++){const Pn=$n.charAt(Yn);"0"===Pn?$.minFrac=$.maxFrac=Yn+1:"#"===Pn?$.maxFrac=Yn+1:$.posSuf+=Pn}const Gn=cn.split(",");if($.gSize=Gn[1]?Gn[1].length:0,$.lgSize=Gn[2]||Gn[1]?(Gn[2]||Gn[1]).length:0,Dt){const Yn=Xe.length-$.posPre.length-$.posSuf.length,Pn=Dt.indexOf("#");$.negPre=Dt.substring(0,Pn).replace(/'/g,""),$.negSuf=Dt.slice(Pn+Yn).replace(/'/g,"")}else $.negPre=we+$.posPre,$.negSuf=$.posSuf;return $}function _t(S){const we=parseInt(S);if(isNaN(we))throw new Error("Invalid integer literal when parsing "+S);return we}function Tt(S,we){we=encodeURIComponent(we);for(const $ of S.split(";")){const ue=$.indexOf("="),[Xe,Dt]=-1==ue?[$,""]:[$.slice(0,ue),$.slice(ue+1)];if(Xe.trim()===we)return decodeURIComponent(Dt)}return null}const Gt=/\s+/,zt=[];let Jt=(()=>{class S{_ngEl;_renderer;initialClasses=zt;rawClass;stateMap=new Map;constructor($,ue){this._ngEl=$,this._renderer=ue}set klass($){this.initialClasses=null!=$?$.trim().split(Gt):zt}set ngClass($){this.rawClass="string"==typeof $?$.trim().split(Gt):$}ngDoCheck(){for(const ue of this.initialClasses)this._updateState(ue,!0);const $=this.rawClass;if(Array.isArray($)||$ instanceof Set)for(const ue of $)this._updateState(ue,!0);else if(null!=$)for(const ue of Object.keys($))this._updateState(ue,!!$[ue]);this._applyStateDiff()}_updateState($,ue){const Xe=this.stateMap.get($);void 0!==Xe?(Xe.enabled!==ue&&(Xe.changed=!0,Xe.enabled=ue),Xe.touched=!0):this.stateMap.set($,{enabled:ue,changed:!0,touched:!0})}_applyStateDiff(){for(const $ of this.stateMap){const ue=$[0],Xe=$[1];Xe.changed?(this._toggleClass(ue,Xe.enabled),Xe.changed=!1):Xe.touched||(Xe.enabled&&this._toggleClass(ue,!1),this.stateMap.delete(ue)),Xe.touched=!1}}_toggleClass($,ue){($=$.trim()).length>0&&$.split(Gt).forEach(Xe=>{ue?this._renderer.addClass(this._ngEl.nativeElement,Xe):this._renderer.removeClass(this._ngEl.nativeElement,Xe)})}static \u0275fac=function(ue){return new(ue||S)(o.rXU(o.aKT),o.rXU(o.sFG))};static \u0275dir=o.FsC({type:S,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return S})();class un{$implicit;ngForOf;index;count;constructor(we,$,ue,Xe){this.$implicit=we,this.ngForOf=$,this.index=ue,this.count=Xe}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 tn=(()=>{class S{_viewContainer;_template;_differs;set ngForOf($){this._ngForOf=$,this._ngForOfDirty=!0}set ngForTrackBy($){this._trackByFn=$}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor($,ue,Xe){this._viewContainer=$,this._template=ue,this._differs=Xe}set ngForTemplate($){$&&(this._template=$)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const $=this._ngForOf;!this._differ&&$&&(this._differ=this._differs.find($).create(this.ngForTrackBy))}if(this._differ){const $=this._differ.diff(this._ngForOf);$&&this._applyChanges($)}}_applyChanges($){const ue=this._viewContainer;$.forEachOperation((Xe,Dt,Rt)=>{if(null==Xe.previousIndex)ue.createEmbeddedView(this._template,new un(Xe.item,this._ngForOf,-1,-1),null===Rt?void 0:Rt);else if(null==Rt)ue.remove(null===Dt?void 0:Dt);else if(null!==Dt){const cn=ue.get(Dt);ue.move(cn,Rt),mn(cn,Xe)}});for(let Xe=0,Dt=ue.length;Xe{mn(ue.get(Xe.currentIndex),Xe)})}static ngTemplateContextGuard($,ue){return!0}static \u0275fac=function(ue){return new(ue||S)(o.rXU(o.c1b),o.rXU(o.C4Q),o.rXU(o._q3))};static \u0275dir=o.FsC({type:S,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return S})();function mn(S,we){S.context.$implicit=we.item}let _n=(()=>{class S{_viewContainer;_context=new Mn;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor($,ue){this._viewContainer=$,this._thenTemplateRef=ue}set ngIf($){this._context.$implicit=this._context.ngIf=$,this._updateView()}set ngIfThen($){qt("ngIfThen",$),this._thenTemplateRef=$,this._thenViewRef=null,this._updateView()}set ngIfElse($){qt("ngIfElse",$),this._elseTemplateRef=$,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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard($,ue){return!0}static \u0275fac=function(ue){return new(ue||S)(o.rXU(o.c1b),o.rXU(o.C4Q))};static \u0275dir=o.FsC({type:S,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return S})();class Mn{$implicit=null;ngIf=null}function qt(S,we){if(we&&!we.createEmbeddedView)throw new Error(`${S} must be a TemplateRef, but received '${(0,o.Tbb)(we)}'.`)}let Wt=(()=>{class S{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor($,ue,Xe){this._ngEl=$,this._differs=ue,this._renderer=Xe}set ngStyle($){this._ngStyle=$,!this._differ&&$&&(this._differ=this._differs.find($).create())}ngDoCheck(){if(this._differ){const $=this._differ.diff(this._ngStyle);$&&this._applyChanges($)}}_setStyle($,ue){const[Xe,Dt]=$.split("."),Rt=-1===Xe.indexOf("-")?void 0:o.czy.DashCase;null!=ue?this._renderer.setStyle(this._ngEl.nativeElement,Xe,Dt?`${ue}${Dt}`:ue,Rt):this._renderer.removeStyle(this._ngEl.nativeElement,Xe,Rt)}_applyChanges($){$.forEachRemovedItem(ue=>this._setStyle(ue.key,null)),$.forEachAddedItem(ue=>this._setStyle(ue.key,ue.currentValue)),$.forEachChangedItem(ue=>this._setStyle(ue.key,ue.currentValue))}static \u0275fac=function(ue){return new(ue||S)(o.rXU(o.aKT),o.rXU(o.MKu),o.rXU(o.sFG))};static \u0275dir=o.FsC({type:S,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return S})(),Ht=(()=>{class S{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor($){this._viewContainerRef=$}ngOnChanges($){if(this._shouldRecreateView($)){const ue=this._viewContainerRef;if(this._viewRef&&ue.remove(ue.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Xe=this._createContextForwardProxy();this._viewRef=ue.createEmbeddedView(this.ngTemplateOutlet,Xe,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView($){return!!$.ngTemplateOutlet||!!$.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:($,ue,Xe)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,ue,Xe),get:($,ue,Xe)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,ue,Xe)}})}static \u0275fac=function(ue){return new(ue||S)(o.rXU(o.c1b))};static \u0275dir=o.FsC({type:S,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[o.OA$]})}return S})();function sn(S,we){return new o.wOt(2100,!1)}class Ln{createSubscription(we,$){return(0,o.O8t)(()=>we.subscribe({next:$,error:ue=>{throw ue}}))}dispose(we){(0,o.O8t)(()=>we.unsubscribe())}}class $t{createSubscription(we,$){return we.then($,ue=>{throw ue})}dispose(we){}}const qn=new $t,Qn=new Ln;let hi=(()=>{class S{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor($){this._ref=$}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform($){if(!this._obj){if($)try{this.markForCheckOnValueUpdate=!1,this._subscribe($)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return $!==this._obj?(this._dispose(),this.transform($)):this._latestValue}_subscribe($){this._obj=$,this._strategy=this._selectStrategy($),this._subscription=this._strategy.createSubscription($,ue=>this._updateLatestValue($,ue))}_selectStrategy($){if((0,o.jNT)($))return qn;if((0,o.zjR)($))return Qn;throw sn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue($,ue){$===this._obj&&(this._latestValue=ue,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(ue){return new(ue||S)(o.rXU(o.gRc,16))};static \u0275pipe=o.EJ8({name:"async",type:S,pure:!1})}return S})();const ti=new o.nKC(""),sr=new o.nKC("");let hr=(()=>{class S{locale;defaultTimezone;defaultOptions;constructor($,ue,Xe){this.locale=$,this.defaultTimezone=ue,this.defaultOptions=Xe}transform($,ue,Xe,Dt){if(null==$||""===$||$!=$)return null;try{return rt($,ue??this.defaultOptions?.dateFormat??"mediumDate",Dt||this.locale,Xe??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Rt){throw sn()}}static \u0275fac=function(ue){return new(ue||S)(o.rXU(o.xe9,16),o.rXU(ti,24),o.rXU(sr,24))};static \u0275pipe=o.EJ8({name:"date",type:S,pure:!0})}return S})(),tr=(()=>{class S{_locale;constructor($){this._locale=$}transform($,ue,Xe){if(!ji($))return null;Xe||=this._locale;try{return function xe(S,we,$){return k(S,Oe(j(we,Ce.Decimal),M(we,5)),we,1,0,$)}(oi($),Xe,ue)}catch(Dt){throw sn()}}static \u0275fac=function(ue){return new(ue||S)(o.rXU(o.xe9,16))};static \u0275pipe=o.EJ8({name:"number",type:S,pure:!0})}return S})(),Pr=(()=>{class S{_locale;constructor($){this._locale=$}transform($,ue,Xe){if(!ji($))return null;Xe||=this._locale;try{return function H(S,we,$){return k(S,Oe(j(we,Ce.Percent),M(we,5)),we,1,0,$,!0).replace(new RegExp("%","g"),M(we,3))}(oi($),Xe,ue)}catch(Dt){throw sn()}}static \u0275fac=function(ue){return new(ue||S)(o.rXU(o.xe9,16))};static \u0275pipe=o.EJ8({name:"percent",type:S,pure:!0})}return S})();function ji(S){return!(null==S||""===S||S!=S)}function oi(S){if("string"==typeof S&&!isNaN(Number(S)-parseFloat(S)))return Number(S);if("number"!=typeof S)throw new Error(`${S} is not a number`);return S}let wi=(()=>{class S{transform($,ue,Xe){if(null==$)return null;if(!this.supports($))throw sn();return $.slice(ue,Xe)}supports($){return"string"==typeof $||Array.isArray($)}static \u0275fac=function(ue){return new(ue||S)};static \u0275pipe=o.EJ8({name:"slice",type:S,pure:!1})}return S})(),ro=(()=>{class S{static \u0275fac=function(ue){return new(ue||S)};static \u0275mod=o.$C({type:S});static \u0275inj=o.G2t({})}return S})();const Nr="browser",Yi="server";function Wi(S){return S===Nr}function Er(S){return S===Yi}let kr=(()=>{class S{static \u0275prov=(0,o.jDH)({token:S,providedIn:"root",factory:()=>new fi((0,o.WQX)(D),window)})}return S})();class fi{document;window;offset=()=>[0,0];constructor(we,$){this.document=we,this.window=$}setOffset(we){this.offset=Array.isArray(we)?()=>we:we}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(we){this.window.scrollTo(we[0],we[1])}scrollToAnchor(we){const $=function cr(S,we){const $=S.getElementById(we)||S.getElementsByName(we)[0];if($)return $;if("function"==typeof S.createTreeWalker&&S.body&&"function"==typeof S.body.attachShadow){const ue=S.createTreeWalker(S.body,NodeFilter.SHOW_ELEMENT);let Xe=ue.currentNode;for(;Xe;){const Dt=Xe.shadowRoot;if(Dt){const Rt=Dt.getElementById(we)||Dt.querySelector(`[name="${we}"]`);if(Rt)return Rt}Xe=ue.nextNode()}}return null}(this.document,we);$&&(this.scrollToElement($),$.focus())}setHistoryScrollRestoration(we){this.window.history.scrollRestoration=we}scrollToElement(we){const $=we.getBoundingClientRect(),ue=$.left+this.window.pageXOffset,Xe=$.top+this.window.pageYOffset,Dt=this.offset();this.window.scrollTo(ue-Dt[0],Xe-Dt[1])}}class mr{}},1626:(ut,Ie,a)=>{"use strict";a.d(Ie,{$R:()=>bt,$m:()=>Mn,Lr:()=>T,Qq:()=>R,ZZ:()=>je,kG:()=>Me,yz:()=>M});var o=a(467),c=a(4438),O=a(7673),d=a(1985),w=a(6648),C=a(274),x=a(5964),D=a(6354),p=a(980),g=a(5558),y=a(8141),h=a(177);class u{}class P{}class T{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(ze){ze?"string"==typeof ze?this.lazyInit=()=>{this.headers=new Map,ze.split("\n").forEach(Ge=>{const gt=Ge.indexOf(":");if(gt>0){const wt=Ge.slice(0,gt),Wt=Ge.slice(gt+1).trim();this.addHeaderEntry(wt,Wt)}})}:typeof Headers<"u"&&ze instanceof Headers?(this.headers=new Map,ze.forEach((Ge,gt)=>{this.addHeaderEntry(gt,Ge)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(ze).forEach(([Ge,gt])=>{this.setHeaderEntries(Ge,gt)})}:this.headers=new Map}has(ze){return this.init(),this.headers.has(ze.toLowerCase())}get(ze){this.init();const Ge=this.headers.get(ze.toLowerCase());return Ge&&Ge.length>0?Ge[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ze){return this.init(),this.headers.get(ze.toLowerCase())||null}append(ze,Ge){return this.clone({name:ze,value:Ge,op:"a"})}set(ze,Ge){return this.clone({name:ze,value:Ge,op:"s"})}delete(ze,Ge){return this.clone({name:ze,value:Ge,op:"d"})}maybeSetNormalizedName(ze,Ge){this.normalizedNames.has(Ge)||this.normalizedNames.set(Ge,ze)}init(){this.lazyInit&&(this.lazyInit instanceof T?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ze=>this.applyUpdate(ze)),this.lazyUpdate=null))}copyFrom(ze){ze.init(),Array.from(ze.headers.keys()).forEach(Ge=>{this.headers.set(Ge,ze.headers.get(Ge)),this.normalizedNames.set(Ge,ze.normalizedNames.get(Ge))})}clone(ze){const Ge=new T;return Ge.lazyInit=this.lazyInit&&this.lazyInit instanceof T?this.lazyInit:this,Ge.lazyUpdate=(this.lazyUpdate||[]).concat([ze]),Ge}applyUpdate(ze){const Ge=ze.name.toLowerCase();switch(ze.op){case"a":case"s":let gt=ze.value;if("string"==typeof gt&&(gt=[gt]),0===gt.length)return;this.maybeSetNormalizedName(ze.name,Ge);const wt=("a"===ze.op?this.headers.get(Ge):void 0)||[];wt.push(...gt),this.headers.set(Ge,wt);break;case"d":const Wt=ze.value;if(Wt){let Ht=this.headers.get(Ge);if(!Ht)return;Ht=Ht.filter(hn=>-1===Wt.indexOf(hn)),0===Ht.length?(this.headers.delete(Ge),this.normalizedNames.delete(Ge)):this.headers.set(Ge,Ht)}else this.headers.delete(Ge),this.normalizedNames.delete(Ge)}}addHeaderEntry(ze,Ge){const gt=ze.toLowerCase();this.maybeSetNormalizedName(ze,gt),this.headers.has(gt)?this.headers.get(gt).push(Ge):this.headers.set(gt,[Ge])}setHeaderEntries(ze,Ge){const gt=(Array.isArray(Ge)?Ge:[Ge]).map(Wt=>Wt.toString()),wt=ze.toLowerCase();this.headers.set(wt,gt),this.maybeSetNormalizedName(ze,wt)}forEach(ze){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ge=>ze(this.normalizedNames.get(Ge),this.headers.get(Ge)))}}class W{encodeKey(ze){return Z(ze)}encodeValue(ze){return Z(ze)}decodeKey(ze){return decodeURIComponent(ze)}decodeValue(ze){return decodeURIComponent(ze)}}const de=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Z(Ve){return encodeURIComponent(Ve).replace(de,(ze,Ge)=>ie[Ge]??ze)}function ae(Ve){return`${Ve}`}class Le{map;encoder;updates=null;cloneFrom=null;constructor(ze={}){if(this.encoder=ze.encoder||new W,ze.fromString){if(ze.fromObject)throw new c.wOt(2805,!1);this.map=function ne(Ve,ze){const Ge=new Map;return Ve.length>0&&Ve.replace(/^\?/,"").split("&").forEach(wt=>{const Wt=wt.indexOf("="),[Ht,hn]=-1==Wt?[ze.decodeKey(wt),""]:[ze.decodeKey(wt.slice(0,Wt)),ze.decodeValue(wt.slice(Wt+1))],sn=Ge.get(Ht)||[];sn.push(hn),Ge.set(Ht,sn)}),Ge}(ze.fromString,this.encoder)}else ze.fromObject?(this.map=new Map,Object.keys(ze.fromObject).forEach(Ge=>{const gt=ze.fromObject[Ge],wt=Array.isArray(gt)?gt.map(ae):[ae(gt)];this.map.set(Ge,wt)})):this.map=null}has(ze){return this.init(),this.map.has(ze)}get(ze){this.init();const Ge=this.map.get(ze);return Ge?Ge[0]:null}getAll(ze){return this.init(),this.map.get(ze)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ze,Ge){return this.clone({param:ze,value:Ge,op:"a"})}appendAll(ze){const Ge=[];return Object.keys(ze).forEach(gt=>{const wt=ze[gt];Array.isArray(wt)?wt.forEach(Wt=>{Ge.push({param:gt,value:Wt,op:"a"})}):Ge.push({param:gt,value:wt,op:"a"})}),this.clone(Ge)}set(ze,Ge){return this.clone({param:ze,value:Ge,op:"s"})}delete(ze,Ge){return this.clone({param:ze,value:Ge,op:"d"})}toString(){return this.init(),this.keys().map(ze=>{const Ge=this.encoder.encodeKey(ze);return this.map.get(ze).map(gt=>Ge+"="+this.encoder.encodeValue(gt)).join("&")}).filter(ze=>""!==ze).join("&")}clone(ze){const Ge=new Le({encoder:this.encoder});return Ge.cloneFrom=this.cloneFrom||this,Ge.updates=(this.updates||[]).concat(ze),Ge}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ze=>this.map.set(ze,this.cloneFrom.map.get(ze))),this.updates.forEach(ze=>{switch(ze.op){case"a":case"s":const Ge=("a"===ze.op?this.map.get(ze.param):void 0)||[];Ge.push(ae(ze.value)),this.map.set(ze.param,Ge);break;case"d":if(void 0===ze.value){this.map.delete(ze.param);break}{let gt=this.map.get(ze.param)||[];const wt=gt.indexOf(ae(ze.value));-1!==wt&>.splice(wt,1),gt.length>0?this.map.set(ze.param,gt):this.map.delete(ze.param)}}}),this.cloneFrom=this.updates=null)}}class Ce{map=new Map;set(ze,Ge){return this.map.set(ze,Ge),this}get(ze){return this.map.has(ze)||this.map.set(ze,ze.defaultValue()),this.map.get(ze)}delete(ze){return this.map.delete(ze),this}has(ze){return this.map.has(ze)}keys(){return this.map.keys()}}function ke(Ve){return typeof ArrayBuffer<"u"&&Ve instanceof ArrayBuffer}function Ue(Ve){return typeof Blob<"u"&&Ve instanceof Blob}function ve(Ve){return typeof FormData<"u"&&Ve instanceof FormData}const Se="Content-Type",z="Accept",te="X-Request-URL",L="text/plain",q="application/json",J=`${q}, ${L}, */*`;class X{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(ze,Ge,gt,wt){let Wt;if(this.url=Ge,this.method=ze.toUpperCase(),function Ae(Ve){switch(Ve){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||wt?(this.body=void 0!==gt?gt:null,Wt=wt):Wt=gt,Wt&&(this.reportProgress=!!Wt.reportProgress,this.withCredentials=!!Wt.withCredentials,Wt.responseType&&(this.responseType=Wt.responseType),Wt.headers&&(this.headers=Wt.headers),Wt.context&&(this.context=Wt.context),Wt.params&&(this.params=Wt.params),this.transferCache=Wt.transferCache),this.headers??=new T,this.context??=new Ce,this.params){const Ht=this.params.toString();if(0===Ht.length)this.urlWithParams=Ge;else{const hn=Ge.indexOf("?");this.urlWithParams=Ge+(-1===hn?"?":hnQn.set(hi,ze.setHeaders[hi]),Ln)),ze.setParams&&($t=Object.keys(ze.setParams).reduce((Qn,hi)=>Qn.set(hi,ze.setParams[hi]),$t)),new X(Ge,gt,Ht,{params:$t,headers:Ln,context:qn,reportProgress:sn,responseType:wt,withCredentials:hn,transferCache:Wt})}}var K=function(Ve){return Ve[Ve.Sent=0]="Sent",Ve[Ve.UploadProgress=1]="UploadProgress",Ve[Ve.ResponseHeader=2]="ResponseHeader",Ve[Ve.DownloadProgress=3]="DownloadProgress",Ve[Ve.Response=4]="Response",Ve[Ve.User=5]="User",Ve}(K||{});class N{headers;status;statusText;url;ok;type;constructor(ze,Ge=200,gt="OK"){this.headers=ze.headers||new T,this.status=void 0!==ze.status?ze.status:Ge,this.statusText=ze.statusText||gt,this.url=ze.url||null,this.ok=this.status>=200&&this.status<300}}class V extends N{constructor(ze={}){super(ze)}type=K.ResponseHeader;clone(ze={}){return new V({headers:ze.headers||this.headers,status:void 0!==ze.status?ze.status:this.status,statusText:ze.statusText||this.statusText,url:ze.url||this.url||void 0})}}class I extends N{body;constructor(ze={}){super(ze),this.body=void 0!==ze.body?ze.body:null}type=K.Response;clone(ze={}){return new I({body:void 0!==ze.body?ze.body:this.body,headers:ze.headers||this.headers,status:void 0!==ze.status?ze.status:this.status,statusText:ze.statusText||this.statusText,url:ze.url||this.url||void 0})}}class M extends N{name="HttpErrorResponse";message;error;ok=!1;constructor(ze){super(ze,0,"Unknown Error"),this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ze.url||"(unknown url)"}`:`Http failure response for ${ze.url||"(unknown url)"}: ${ze.status} ${ze.statusText}`,this.error=ze.error||null}}var Me=function(Ve){return Ve[Ve.Continue=100]="Continue",Ve[Ve.SwitchingProtocols=101]="SwitchingProtocols",Ve[Ve.Processing=102]="Processing",Ve[Ve.EarlyHints=103]="EarlyHints",Ve[Ve.Ok=200]="Ok",Ve[Ve.Created=201]="Created",Ve[Ve.Accepted=202]="Accepted",Ve[Ve.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",Ve[Ve.NoContent=204]="NoContent",Ve[Ve.ResetContent=205]="ResetContent",Ve[Ve.PartialContent=206]="PartialContent",Ve[Ve.MultiStatus=207]="MultiStatus",Ve[Ve.AlreadyReported=208]="AlreadyReported",Ve[Ve.ImUsed=226]="ImUsed",Ve[Ve.MultipleChoices=300]="MultipleChoices",Ve[Ve.MovedPermanently=301]="MovedPermanently",Ve[Ve.Found=302]="Found",Ve[Ve.SeeOther=303]="SeeOther",Ve[Ve.NotModified=304]="NotModified",Ve[Ve.UseProxy=305]="UseProxy",Ve[Ve.Unused=306]="Unused",Ve[Ve.TemporaryRedirect=307]="TemporaryRedirect",Ve[Ve.PermanentRedirect=308]="PermanentRedirect",Ve[Ve.BadRequest=400]="BadRequest",Ve[Ve.Unauthorized=401]="Unauthorized",Ve[Ve.PaymentRequired=402]="PaymentRequired",Ve[Ve.Forbidden=403]="Forbidden",Ve[Ve.NotFound=404]="NotFound",Ve[Ve.MethodNotAllowed=405]="MethodNotAllowed",Ve[Ve.NotAcceptable=406]="NotAcceptable",Ve[Ve.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",Ve[Ve.RequestTimeout=408]="RequestTimeout",Ve[Ve.Conflict=409]="Conflict",Ve[Ve.Gone=410]="Gone",Ve[Ve.LengthRequired=411]="LengthRequired",Ve[Ve.PreconditionFailed=412]="PreconditionFailed",Ve[Ve.PayloadTooLarge=413]="PayloadTooLarge",Ve[Ve.UriTooLong=414]="UriTooLong",Ve[Ve.UnsupportedMediaType=415]="UnsupportedMediaType",Ve[Ve.RangeNotSatisfiable=416]="RangeNotSatisfiable",Ve[Ve.ExpectationFailed=417]="ExpectationFailed",Ve[Ve.ImATeapot=418]="ImATeapot",Ve[Ve.MisdirectedRequest=421]="MisdirectedRequest",Ve[Ve.UnprocessableEntity=422]="UnprocessableEntity",Ve[Ve.Locked=423]="Locked",Ve[Ve.FailedDependency=424]="FailedDependency",Ve[Ve.TooEarly=425]="TooEarly",Ve[Ve.UpgradeRequired=426]="UpgradeRequired",Ve[Ve.PreconditionRequired=428]="PreconditionRequired",Ve[Ve.TooManyRequests=429]="TooManyRequests",Ve[Ve.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",Ve[Ve.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",Ve[Ve.InternalServerError=500]="InternalServerError",Ve[Ve.NotImplemented=501]="NotImplemented",Ve[Ve.BadGateway=502]="BadGateway",Ve[Ve.ServiceUnavailable=503]="ServiceUnavailable",Ve[Ve.GatewayTimeout=504]="GatewayTimeout",Ve[Ve.HttpVersionNotSupported=505]="HttpVersionNotSupported",Ve[Ve.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",Ve[Ve.InsufficientStorage=507]="InsufficientStorage",Ve[Ve.LoopDetected=508]="LoopDetected",Ve[Ve.NotExtended=510]="NotExtended",Ve[Ve.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",Ve}(Me||{});function oe(Ve,ze){return{body:ze,headers:Ve.headers,context:Ve.context,observe:Ve.observe,params:Ve.params,reportProgress:Ve.reportProgress,responseType:Ve.responseType,withCredentials:Ve.withCredentials,transferCache:Ve.transferCache}}let R=(()=>{class Ve{handler;constructor(Ge){this.handler=Ge}request(Ge,gt,wt={}){let Wt;if(Ge instanceof X)Wt=Ge;else{let sn,Ln;sn=wt.headers instanceof T?wt.headers:new T(wt.headers),wt.params&&(Ln=wt.params instanceof Le?wt.params:new Le({fromObject:wt.params})),Wt=new X(Ge,gt,void 0!==wt.body?wt.body:null,{headers:sn,context:wt.context,params:Ln,reportProgress:wt.reportProgress,responseType:wt.responseType||"json",withCredentials:wt.withCredentials,transferCache:wt.transferCache})}const Ht=(0,O.of)(Wt).pipe((0,C.H)(sn=>this.handler.handle(sn)));if(Ge instanceof X||"events"===wt.observe)return Ht;const hn=Ht.pipe((0,x.p)(sn=>sn instanceof I));switch(wt.observe||"body"){case"body":switch(Wt.responseType){case"arraybuffer":return hn.pipe((0,D.T)(sn=>{if(null!==sn.body&&!(sn.body instanceof ArrayBuffer))throw new c.wOt(2806,!1);return sn.body}));case"blob":return hn.pipe((0,D.T)(sn=>{if(null!==sn.body&&!(sn.body instanceof Blob))throw new c.wOt(2807,!1);return sn.body}));case"text":return hn.pipe((0,D.T)(sn=>{if(null!==sn.body&&"string"!=typeof sn.body)throw new c.wOt(2808,!1);return sn.body}));default:return hn.pipe((0,D.T)(sn=>sn.body))}case"response":return hn;default:throw new c.wOt(2809,!1)}}delete(Ge,gt={}){return this.request("DELETE",Ge,gt)}get(Ge,gt={}){return this.request("GET",Ge,gt)}head(Ge,gt={}){return this.request("HEAD",Ge,gt)}jsonp(Ge,gt){return this.request("JSONP",Ge,{params:(new Le).append(gt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ge,gt={}){return this.request("OPTIONS",Ge,gt)}patch(Ge,gt,wt={}){return this.request("PATCH",Ge,oe(wt,gt))}post(Ge,gt,wt={}){return this.request("POST",Ge,oe(wt,gt))}put(Ge,gt,wt={}){return this.request("PUT",Ge,oe(wt,gt))}static \u0275fac=function(gt){return new(gt||Ve)(c.KVO(u))};static \u0275prov=c.jDH({token:Ve,factory:Ve.\u0275fac})}return Ve})();const se=/^\)\]\}',?\n/;function Ee(Ve){if(Ve.url)return Ve.url;const ze=te.toLocaleLowerCase();return Ve.headers.get(ze)}const tt=new c.nKC("");let Y=(()=>{class Ve{fetchImpl=(0,c.WQX)(Re,{optional:!0})?.fetch??((...Ge)=>globalThis.fetch(...Ge));ngZone=(0,c.WQX)(c.SKi);handle(Ge){return new d.c(gt=>{const wt=new AbortController;return this.doRequest(Ge,wt.signal,gt).then(De,Wt=>gt.error(new M({error:Wt}))),()=>wt.abort()})}doRequest(Ge,gt,wt){var Wt=this;return(0,o.A)(function*(){const Ht=Wt.createRequestInit(Ge);let hn;try{const Kn=Wt.ngZone.runOutsideAngular(()=>Wt.fetchImpl(Ge.urlWithParams,{signal:gt,...Ht}));(function nt(Ve){Ve.then(De,De)})(Kn),wt.next({type:K.Sent}),hn=yield Kn}catch(Kn){return void wt.error(new M({error:Kn,status:Kn.status??0,statusText:Kn.statusText,url:Ge.urlWithParams,headers:Kn.headers}))}const sn=new T(hn.headers),Ln=hn.statusText,$t=Ee(hn)??Ge.urlWithParams;let qn=hn.status,Qn=null;if(Ge.reportProgress&&wt.next(new V({headers:sn,status:qn,statusText:Ln,url:$t})),hn.body){const Kn=hn.headers.get("content-length"),Bn=[],Wn=hn.body.getReader();let wn,ti,pn=0;const sr=typeof Zone<"u"&&Zone.current;yield Wt.ngZone.runOutsideAngular((0,o.A)(function*(){for(;;){const{done:Li,value:fr}=yield Wn.read();if(Li)break;if(Bn.push(fr),pn+=fr.length,Ge.reportProgress){ti="text"===Ge.responseType?(ti??"")+(wn??=new TextDecoder).decode(fr,{stream:!0}):void 0;const Rr=()=>wt.next({type:K.DownloadProgress,total:Kn?+Kn:void 0,loaded:pn,partialText:ti});sr?sr.run(Rr):Rr()}}}));const hr=Wt.concatChunks(Bn,pn);try{const Li=hn.headers.get(Se)??"";Qn=Wt.parseBody(Ge,hr,Li)}catch(Li){return void wt.error(new M({error:Li,headers:new T(hn.headers),status:hn.status,statusText:hn.statusText,url:Ee(hn)??Ge.urlWithParams}))}}0===qn&&(qn=Qn?200:0),qn>=200&&qn<300?(wt.next(new I({body:Qn,headers:sn,status:qn,statusText:Ln,url:$t})),wt.complete()):wt.error(new M({error:Qn,headers:sn,status:qn,statusText:Ln,url:$t}))})()}parseBody(Ge,gt,wt){switch(Ge.responseType){case"json":const Wt=(new TextDecoder).decode(gt).replace(se,"");return""===Wt?null:JSON.parse(Wt);case"text":return(new TextDecoder).decode(gt);case"blob":return new Blob([gt],{type:wt});case"arraybuffer":return gt.buffer}}createRequestInit(Ge){const gt={},wt=Ge.withCredentials?"include":void 0;if(Ge.headers.forEach((Wt,Ht)=>gt[Wt]=Ht.join(",")),Ge.headers.has(z)||(gt[z]=J),!Ge.headers.has(Se)){const Wt=Ge.detectContentTypeHeader();null!==Wt&&(gt[Se]=Wt)}return{body:Ge.serializeBody(),method:Ge.method,headers:gt,credentials:wt}}concatChunks(Ge,gt){const wt=new Uint8Array(gt);let Wt=0;for(const Ht of Ge)wt.set(Ht,Wt),Wt+=Ht.length;return wt}static \u0275fac=function(gt){return new(gt||Ve)};static \u0275prov=c.jDH({token:Ve,factory:Ve.\u0275fac})}return Ve})();class Re{}function De(){}function ht(Ve,ze){return ze(Ve)}const ln=new c.nKC(""),Ot=new c.nKC(""),rt=new c.nKC("",{providedIn:"root",factory:()=>!0});let be=(()=>{class Ve extends u{backend;injector;chain=null;pendingTasks=(0,c.WQX)(c.Ua0);contributeToStability=(0,c.WQX)(rt);constructor(Ge,gt){super(),this.backend=Ge,this.injector=gt}handle(Ge){if(null===this.chain){const gt=Array.from(new Set([...this.injector.get(ln),...this.injector.get(Ot,[])]));this.chain=gt.reduceRight((wt,Wt)=>function Nt(Ve,ze,Ge){return(gt,wt)=>(0,c.N4e)(Ge,()=>ze(gt,Wt=>Ve(Wt,wt)))}(wt,Wt,this.injector),ht)}if(this.contributeToStability){const gt=this.pendingTasks.add();return this.chain(Ge,wt=>this.backend.handle(wt)).pipe((0,p.j)(()=>this.pendingTasks.remove(gt)))}return this.chain(Ge,gt=>this.backend.handle(gt))}static \u0275fac=function(gt){return new(gt||Ve)(c.KVO(P),c.KVO(c.uvJ))};static \u0275prov=c.jDH({token:Ve,factory:Ve.\u0275fac})}return Ve})();const Qt=/^\)\]\}',?\n/,rn=RegExp(`^${te}:`,"m");let $e=(()=>{class Ve{xhrFactory;constructor(Ge){this.xhrFactory=Ge}handle(Ge){if("JSONP"===Ge.method)throw new c.wOt(-2800,!1);const gt=this.xhrFactory;return(gt.\u0275loadImpl?(0,w.H)(gt.\u0275loadImpl()):(0,O.of)(null)).pipe((0,g.n)(()=>new d.c(Wt=>{const Ht=gt.build();if(Ht.open(Ge.method,Ge.urlWithParams),Ge.withCredentials&&(Ht.withCredentials=!0),Ge.headers.forEach((Bn,Wn)=>Ht.setRequestHeader(Bn,Wn.join(","))),Ge.headers.has(z)||Ht.setRequestHeader(z,J),!Ge.headers.has(Se)){const Bn=Ge.detectContentTypeHeader();null!==Bn&&Ht.setRequestHeader(Se,Bn)}if(Ge.responseType){const Bn=Ge.responseType.toLowerCase();Ht.responseType="json"!==Bn?Bn:"text"}const hn=Ge.serializeBody();let sn=null;const Ln=()=>{if(null!==sn)return sn;const Bn=Ht.statusText||"OK",Wn=new T(Ht.getAllResponseHeaders()),pn=function nn(Ve){return"responseURL"in Ve&&Ve.responseURL?Ve.responseURL:rn.test(Ve.getAllResponseHeaders())?Ve.getResponseHeader(te):null}(Ht)||Ge.url;return sn=new V({headers:Wn,status:Ht.status,statusText:Bn,url:pn}),sn},$t=()=>{let{headers:Bn,status:Wn,statusText:pn,url:wn}=Ln(),ti=null;204!==Wn&&(ti=typeof Ht.response>"u"?Ht.responseText:Ht.response),0===Wn&&(Wn=ti?200:0);let sr=Wn>=200&&Wn<300;if("json"===Ge.responseType&&"string"==typeof ti){const hr=ti;ti=ti.replace(Qt,"");try{ti=""!==ti?JSON.parse(ti):null}catch(Li){ti=hr,sr&&(sr=!1,ti={error:Li,text:ti})}}sr?(Wt.next(new I({body:ti,headers:Bn,status:Wn,statusText:pn,url:wn||void 0})),Wt.complete()):Wt.error(new M({error:ti,headers:Bn,status:Wn,statusText:pn,url:wn||void 0}))},qn=Bn=>{const{url:Wn}=Ln(),pn=new M({error:Bn,status:Ht.status||0,statusText:Ht.statusText||"Unknown Error",url:Wn||void 0});Wt.error(pn)};let Qn=!1;const hi=Bn=>{Qn||(Wt.next(Ln()),Qn=!0);let Wn={type:K.DownloadProgress,loaded:Bn.loaded};Bn.lengthComputable&&(Wn.total=Bn.total),"text"===Ge.responseType&&Ht.responseText&&(Wn.partialText=Ht.responseText),Wt.next(Wn)},Kn=Bn=>{let Wn={type:K.UploadProgress,loaded:Bn.loaded};Bn.lengthComputable&&(Wn.total=Bn.total),Wt.next(Wn)};return Ht.addEventListener("load",$t),Ht.addEventListener("error",qn),Ht.addEventListener("timeout",qn),Ht.addEventListener("abort",qn),Ge.reportProgress&&(Ht.addEventListener("progress",hi),null!==hn&&Ht.upload&&Ht.upload.addEventListener("progress",Kn)),Ht.send(hn),Wt.next({type:K.Sent}),()=>{Ht.removeEventListener("error",qn),Ht.removeEventListener("abort",qn),Ht.removeEventListener("load",$t),Ht.removeEventListener("timeout",qn),Ge.reportProgress&&(Ht.removeEventListener("progress",hi),null!==hn&&Ht.upload&&Ht.upload.removeEventListener("progress",Kn)),Ht.readyState!==Ht.DONE&&Ht.abort()}})))}static \u0275fac=function(gt){return new(gt||Ve)(c.KVO(h.N0))};static \u0275prov=c.jDH({token:Ve,factory:Ve.\u0275fac})}return Ve})();const lt=new c.nKC(""),He=new c.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Lt=new c.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Ut{}let Un=(()=>{class Ve{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(Ge,gt,wt){this.doc=Ge,this.platform=gt,this.cookieName=wt}getToken(){if("server"===this.platform)return null;const Ge=this.doc.cookie||"";return Ge!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,h._b)(Ge,this.cookieName),this.lastCookieString=Ge),this.lastToken}static \u0275fac=function(gt){return new(gt||Ve)(c.KVO(h.qQ),c.KVO(c.Agw),c.KVO(He))};static \u0275prov=c.jDH({token:Ve,factory:Ve.\u0275fac})}return Ve})();function pt(Ve,ze){const Ge=Ve.url.toLowerCase();if(!(0,c.WQX)(lt)||"GET"===Ve.method||"HEAD"===Ve.method||Ge.startsWith("http://")||Ge.startsWith("https://"))return ze(Ve);const gt=(0,c.WQX)(Ut).getToken(),wt=(0,c.WQX)(Lt);return null!=gt&&!Ve.headers.has(wt)&&(Ve=Ve.clone({headers:Ve.headers.set(wt,gt)})),ze(Ve)}var We=function(Ve){return Ve[Ve.Interceptors=0]="Interceptors",Ve[Ve.LegacyInterceptors=1]="LegacyInterceptors",Ve[Ve.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ve[Ve.NoXsrfProtection=3]="NoXsrfProtection",Ve[Ve.JsonpSupport=4]="JsonpSupport",Ve[Ve.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ve[Ve.Fetch=6]="Fetch",Ve}(We||{});function bt(...Ve){const ze=[R,$e,be,{provide:u,useExisting:be},{provide:P,useFactory:()=>(0,c.WQX)(tt,{optional:!0})??(0,c.WQX)($e)},{provide:ln,useValue:pt,multi:!0},{provide:lt,useValue:!0},{provide:Ut,useClass:Un}];for(const Ge of Ve)ze.push(...Ge.\u0275providers);return(0,c.EmA)(ze)}function je(){return function it(Ve,ze){return{\u0275kind:Ve,\u0275providers:ze}}(We.Fetch,[Y,{provide:tt,useExisting:Y},{provide:P,useExisting:Y}])}const Ct=new c.nKC(""),At="b",St="h",Bt="s",Tt="st",Gt="u",zt="rt",Jt=new c.nKC(""),en=["GET","HEAD"];function dn(Ve,ze){const{isCacheActive:Ge,...gt}=(0,c.WQX)(Jt),{transferCache:wt,method:Wt}=Ve;if(!Ge||!1===wt||"POST"===Wt&&!gt.includePostRequests&&!wt||"POST"!==Wt&&!en.includes(Wt)||!gt.includeRequestsWithAuthHeaders&&function un(Ve){return Ve.headers.has("authorization")||Ve.headers.has("proxy-authorization")}(Ve)||!1===gt.filter?.(Ve))return ze(Ve);const Ht=(0,c.WQX)(c.pJN);if((0,c.WQX)(Ct,{optional:!0}))throw new c.wOt(2803,!1);const Ln=function yn(Ve,ze){const{params:Ge,method:gt,responseType:wt}=Ve,Wt=mn(Ge);let Ht=Ve.serializeBody();Ht instanceof URLSearchParams?Ht=mn(Ht):"string"!=typeof Ht&&(Ht="");const sn=function _n(Ve){let ze=0;for(const Ge of Ve)ze=Math.imul(31,ze)+Ge.charCodeAt(0)|0;return ze+=2147483648,ze.toString()}([gt,wt,ze,Ht,Wt].join("|"));return(0,c.zw6)(sn)}(Ve,Ve.url),$t=Ht.get(Ln,null);let qn=gt.includeHeaders;if("object"==typeof wt&&wt.includeHeaders&&(qn=wt.includeHeaders),$t){const{[At]:Qn,[zt]:hi,[St]:Kn,[Bt]:Bn,[Tt]:Wn,[Gt]:pn}=$t;let wn=Qn;switch(hi){case"arraybuffer":wn=(new TextEncoder).encode(Qn).buffer;break;case"blob":wn=new Blob([Qn])}let ti=new T(Kn);return(0,O.of)(new I({body:wn,headers:ti,status:Bn,statusText:Wn,url:pn}))}return ze(Ve).pipe((0,y.M)(Qn=>{}))}function mn(Ve){return[...Ve.keys()].sort().map(ze=>`${ze}=${Ve.getAll(ze)}`).join("&")}function Mn(Ve){return[{provide:Jt,useFactory:()=>((0,c.ngT)("NgHttpTransferCache"),{isCacheActive:!0,...Ve})},{provide:Ot,useValue:dn,multi:!0,deps:[c.pJN,Jt]},{provide:c.iLQ,multi:!0,useFactory:()=>{const ze=(0,c.WQX)(c.o8S),Ge=(0,c.WQX)(Jt);return()=>{ze.whenStable().then(()=>{Ge.isCacheActive=!1})}}}]}},4438:(ut,Ie,a)=>{"use strict";function c(e,t){return Object.is(e,t)}a.d(Ie,{bc$:()=>AD,iLQ:()=>Ol,sZ2:()=>Xs,hnV:()=>Df,o8S:()=>jr,BIS:()=>OD,gRc:()=>gE,Ql9:()=>P1,Ocv:()=>V1,abz:()=>Po,Z63:()=>Zi,aKT:()=>Ka,uvJ:()=>ir,zcH:()=>Fo,bkB:()=>ko,ES_:()=>zC,$GK:()=>bn,nKC:()=>qt,zZn:()=>zi,_q3:()=>bp,MKu:()=>Ep,xe9:()=>pp,Co$:()=>Yv,Vns:()=>ws,SKi:()=>_i,Xx1:()=>yi,Agw:()=>Ru,PLl:()=>Ou,rOR:()=>Vm,sFG:()=>ew,_9s:()=>zh,czy:()=>zc,WPN:()=>Cs,kdw:()=>Ei,C4Q:()=>ml,NYb:()=>lT,giA:()=>S0,pJN:()=>$o,RxE:()=>oE,c1b:()=>id,gXe:()=>Lo,mal:()=>qa,Tzd:()=>mg,L39:()=>GR,EWP:()=>Pa,sbv:()=>kw,a0P:()=>gP,Ol2:()=>df,w6W:()=>$w,QZP:()=>Ip,Rfq:()=>Lt,WQX:()=>an,hFB:()=>oD,naY:()=>Z1,Hps:()=>xu,QuC:()=>Ji,EmA:()=>Lr,zw6:()=>ND,Udg:()=>KR,HJs:()=>_P,N4e:()=>Us,vPA:()=>Iu,O8t:()=>is,An2:()=>mo,H3F:()=>y0,H8p:()=>ur,KH2:()=>Aa,Ua0:()=>No,wOt:()=>rt,WHO:()=>M0,e01:()=>w0,Lf2:()=>Qs,lNU:()=>Ot,PpM:()=>zs,h9k:()=>Zg,$MX:()=>Lc,ZF7:()=>sa,Kcf:()=>Ix,e5t:()=>Tx,UyX:()=>wx,cWb:()=>Mx,osQ:()=>Sx,H5H:()=>$f,Zy3:()=>ce,mq5:()=>vy,JZv:()=>kt,TL3:()=>CR,LfX:()=>en,plB:()=>Qo,jNT:()=>Cf,zjR:()=>T0,ngT:()=>Gi,hVU:()=>aT,TL$:()=>SD,Tbb:()=>lt,zUL:()=>He,rcV:()=>Bo,M8M:()=>$R,nM4:()=>o0,Vt3:()=>hf,GFd:()=>d0,OA$:()=>nc,Jv_:()=>Sb,R7$:()=>b_,BMQ:()=>Sf,HbH:()=>ty,ZvI:()=>ly,AVh:()=>kf,vxM:()=>hy,wni:()=>qy,C6U:()=>ib,VBU:()=>Zv,FsC:()=>qv,jDH:()=>Tt,G2t:()=>zt,$C:()=>uf,EJ8:()=>e0,rXU:()=>ma,nrm:()=>Vf,eu8:()=>jf,bVm:()=>yd,qex:()=>vd,k0s:()=>_d,j41:()=>gd,RV6:()=>_y,xGo:()=>ym,Mr5:()=>Wf,KVO:()=>fi,kS0:()=>mc,QTQ:()=>vv,bIt:()=>Kf,lsd:()=>nb,joV:()=>nm,qSk:()=>tm,XpG:()=>Wy,nI1:()=>Ub,bMT:()=>Vb,i5U:()=>jb,brH:()=>Wb,SdG:()=>$y,NAR:()=>Hy,Y8G:()=>Rf,FS9:()=>Qf,lJ4:()=>Ab,eq3:()=>Ob,l_i:()=>Rb,sMw:()=>Pb,NyB:()=>rb,mGM:()=>tb,sdS:()=>ob,Dyx:()=>py,Z7z:()=>fy,Njj:()=>Hp,EBC:()=>a_,tSv:()=>s_,eBV:()=>Wp,npT:()=>Jg,n$t:()=>t_,xc7:()=>Nf,Kam:()=>Xf,zvX:()=>Hf,DNE:()=>mf,C5r:()=>Hb,EFF:()=>mb,JRh:()=>qf,SpI:()=>xd,Lme:()=>ep,DH7:()=>xb,mxI:()=>np,R50:()=>tp,GBs:()=>eb}),a(467);let O=null,d=!1,w=1;const C=Symbol("SIGNAL");function x(e){const t=O;return O=e,t}const y={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function h(e){if(d)throw new Error("");if(null===O)return;O.consumerOnSignalRead(e);const t=O.nextProducerIndex++;Ae(O),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Z(e){Ae(e);for(let t=0;t0}function Ae(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ke(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ue(e){return void 0!==e.producerNode}function ve(e){const t=Object.create(te);t.computation=e;const n=()=>{if(P(t),h(t),t.value===z)throw t.error;return t.value};return n[C]=t,n}const ye=Symbol("UNSET"),Se=Symbol("COMPUTING"),z=Symbol("ERRORED"),te={...y,value:ye,dirty:!0,error:null,equal:c,kind:"computed",producerMustRecompute:e=>e.value===ye||e.value===Se,producerRecomputeValue(e){if(e.value===Se)throw new Error("Detected cycle in computations.");const t=e.value;e.value=Se;const n=de(e);let i,r=!1;try{i=e.computation(),x(null),r=t!==ye&&t!==z&&i!==z&&e.equal(t,i)}catch(s){i=z,e.error=s}finally{ie(e,n)}r?e.value=t:(e.value=i,e.version++)}};let q=function L(){throw new Error};function J(){q()}let K=null;function M(e,t){E()||J(),e.equal(e.value,t)||(e.value=t,function oe(e){e.version++,function u(){w++}(),T(e),K?.()}(e))}const Me={...y,equal:c,value:void 0,kind:"signal"};const Re=()=>{},De={...y,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Re};var ht=a(4412),jt=a(1413),Nt=a(8359),on=a(6354);const Ot="https://g.co/ng/security#xss";class rt extends Error{code;constructor(t,n){super(ce(t,n)),this.code=t}}function ce(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}const ee=Symbol("InputSignalNode#UNSET"),re={...Me,transformFn:void 0,applyValueToInputSignal(e,t){M(e,t)}};function ft(e,t){const n=Object.create(re);function i(){if(h(n),n.value===ee)throw new rt(-950,!1);return n.value}return n.value=e,n.transformFn=t?.transform,i[C]=n,i}function le(e){return{toString:e}.toString()}const Be="__parameters__";function It(e,t,n){return le(()=>{const i=function ot(e){return function(...n){if(e){const i=e(...n);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const l=new r(...s);return f.annotation=l,f;function f(v,G,me){const Pe=v.hasOwnProperty(Be)?v[Be]:Object.defineProperty(v,Be,{value:[]})[Be];for(;Pe.length<=me;)Pe.push(null);return(Pe[me]=Pe[me]||[]).push(l),v}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const kt=globalThis;function nn(e){for(let t in e)if(e[t]===nn)return t;throw Error("Could not find renamed property on target object.")}function $e(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function lt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(lt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Te(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}function He(e,t=100){if(!e||t<1||e.length<=t)return e;if(1==t)return e.substring(0,1)+"...";const n=Math.round(t/2);return e.substring(0,n)+"..."+e.substring(e.length-n)}const at=nn({__forward_ref__:nn});function Lt(e){return e.__forward_ref__=Lt,e.toString=function(){return lt(this())},e}function Ut(e){return Un(e)?e():e}function Un(e){return"function"==typeof e&&e.hasOwnProperty(at)&&e.__forward_ref__===Lt}function Tt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function zt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Jt(e){return dn(e,mn)||dn(e,_n)}function en(e){return null!==Jt(e)}function dn(e,t){return e.hasOwnProperty(t)?e[t]:null}function tn(e){return e&&(e.hasOwnProperty(yn)||e.hasOwnProperty(Mn))?e[yn]:null}const mn=nn({\u0275prov:nn}),yn=nn({\u0275inj:nn}),_n=nn({ngInjectableDef:nn}),Mn=nn({ngInjectorDef:nn});class qt{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Tt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ln(e){return e&&!!e.\u0275providers}const $t=nn({\u0275cmp:nn}),qn=nn({\u0275dir:nn}),Qn=nn({\u0275pipe:nn}),hi=nn({\u0275mod:nn}),Kn=nn({\u0275fac:nn}),Bn=nn({__NG_ELEMENT_ID__:nn}),Wn=nn({__NG_ENV_ID__:nn});function pn(e){return"string"==typeof e?e:null==e?"":String(e)}function Rr(e,t){throw new rt(-201,!1)}var bn=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(bn||{});let Wr;function pr(){return Wr}function li(e){const t=Wr;return Wr=e,t}function tr(e,t,n){const i=Jt(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&bn.Optional?null:void 0!==t?t:void Rr()}const ji={},oi="__NG_DI_FLAG__",wi="ngTempTokenPath",ro=/\n/gm,Yi="__source";let Wi;function lr(e){const t=Wi;return Wi=e,t}function kr(e,t=bn.Default){if(void 0===Wi)throw new rt(-203,!1);return null===Wi?tr(e,void 0,t):Wi.get(e,t&bn.Optional?null:void 0,t)}function fi(e,t=bn.Default){return(pr()||kr)(Ut(e),t)}function an(e,t=bn.Default){return fi(e,mr(t))}function mr(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Hi(e){const t=[];for(let n=0;nArray.isArray(n)?ci(n,t):t(n))}function Ai(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function $r(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Bi(e,t,n){let i=dr(e,t);return i>=0?e[1|i]=n:(i=~i,function zr(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Fr(e,t){const n=dr(e,t);if(n>=0)return e[1|n]}function dr(e,t){return function rs(e,t,n){let i=0,r=e.length>>n;for(;r!==i;){const s=i+(r-i>>1),l=e[s<t?r=s:i=s+1}return~(r<{n.push(l)};return ci(t,l=>{const f=l;st(f,s,[],i)&&(r||=[],r.push(f))}),void 0!==r&&Ne(r,s),n}function Ne(e,t){for(let n=0;n{t(s,i)})}}function st(e,t,n,i){if(!(e=Ut(e)))return!1;let r=null,s=tn(e);const l=!s&&An(e);if(s||l){if(l&&!l.standalone)return!1;r=e}else{const v=e.ngModule;if(s=tn(v),!s)return!1;r=v}const f=i.has(r);if(l){if(f)return!1;if(i.add(r),l.dependencies){const v="function"==typeof l.dependencies?l.dependencies():l.dependencies;for(const G of v)st(G,t,n,i)}}else{if(!s)return!1;{if(null!=s.imports&&!f){let G;i.add(r);try{ci(s.imports,me=>{st(me,t,n,i)&&(G||=[],G.push(me))})}finally{}void 0!==G&&Ne(G,t)}if(!f){const G=vi(r)||(()=>new r);t({provide:r,useFactory:G,deps:Fn},r),t({provide:jo,useValue:r,multi:!0},r),t({provide:Zi,useValue:()=>fi(r),multi:!0},r)}const v=s.providers;if(null!=v&&!f){const G=e;On(v,me=>{t(me,G)})}}}return r!==e&&void 0!==e.providers}function On(e,t){for(let n of e)Ln(n)&&(n=n.\u0275providers),Array.isArray(n)?On(n,t):t(n)}const Dr=nn({provide:String,useValue:nn});function Jr(e){return null!==e&&"object"==typeof e&&Dr in e}function Br(e){return"function"==typeof e}const ur=new qt(""),Ls={},Yl={};let Wo;function Do(){return void 0===Wo&&(Wo=new Zr),Wo}class ir{}class ao extends ir{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,i,r){super(),this.parent=n,this.source=i,this.scopes=r,Bs(t,l=>this.processProvider(l)),this.records.set(os,qr(void 0,this)),r.has("environment")&&this.records.set(ir,qr(void 0,this));const s=this.records.get(ur);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(jo,Fn,bn.Self))}destroy(){xo(this),this._destroyed=!0;const t=x(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of n)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),x(t)}}onDestroy(t){return xo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){xo(this);const n=lr(this),i=li(void 0);try{return t()}finally{lr(n),li(i)}}get(t,n=ji,i=bn.Default){if(xo(this),t.hasOwnProperty(Wn))return t[Wn](this);i=mr(i);const s=lr(this),l=li(void 0);try{if(!(i&bn.SkipSelf)){let v=this.records.get(t);if(void 0===v){const G=function Ql(e){return"function"==typeof e||"object"==typeof e&&e instanceof qt}(t)&&Jt(t);v=G&&this.injectableDefInScope(G)?qr(ss(t),Ls):null,this.records.set(t,v)}if(null!=v)return this.hydrate(t,v)}return(i&bn.Self?Do():this.parent).get(t,n=i&bn.Optional&&n===ji?null:n)}catch(f){if("NullInjectorError"===f.name){if((f[wi]=f[wi]||[]).unshift(lt(t)),s)throw f;return function Cr(e,t,n,i){const r=e[wi];throw t[Yi]&&r.unshift(t[Yi]),e.message=function Hr(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=lt(t);if(Array.isArray(t))r=t.map(lt).join(" -> ");else if("object"==typeof t){let s=[];for(let l in t)if(t.hasOwnProperty(l)){let f=t[l];s.push(l+":"+("string"==typeof f?JSON.stringify(f):lt(f)))}r=`{${s.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(ro,"\n ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[wi]=null,e}(f,t,"R3InjectorError",this.source)}throw f}finally{li(l),lr(s)}}resolveInjectorInitializers(){const t=x(null),n=lr(this),i=li(void 0);try{const s=this.get(Zi,Fn,bn.Self);for(const l of s)l()}finally{lr(n),li(i),x(t)}}toString(){const t=[],n=this.records;for(const i of n.keys())t.push(lt(i));return`R3Injector[${t.join(", ")}]`}processProvider(t){let n=Br(t=Ut(t))?t:Ut(t&&t.provide);const i=function ls(e){return Jr(e)?qr(void 0,e.useValue):qr(cs(e),Ls)}(t);if(!Br(t)&&!0===t.multi){let r=this.records.get(n);r||(r=qr(void 0,Ls,!0),r.factory=()=>Hi(r.multi),this.records.set(n,r)),n=t,r.multi.push(t)}this.records.set(n,i)}hydrate(t,n){const i=x(null);try{return n.value===Ls&&(n.value=Yl,n.value=n.factory()),"object"==typeof n.value&&n.value&&function ds(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{x(i)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Ut(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function ss(e){const t=Jt(e),n=null!==t?t.factory:vi(e);if(null!==n)return n;if(e instanceof qt)throw new rt(204,!1);if(e instanceof Function)return function as(e){if(e.length>0)throw new rt(204,!1);const n=function un(e){return e&&(e[mn]||e[_n])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new rt(204,!1)}function cs(e,t,n){let i;if(Br(e)){const r=Ut(e);return vi(r)||ss(r)}if(Jr(e))i=()=>Ut(e.useValue);else if(function Fs(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Hi(e.deps||[]));else if(function Gr(e){return!(!e||!e.useExisting)}(e))i=()=>fi(Ut(e.useExisting));else{const r=Ut(e&&(e.useClass||e.provide));if(!function lo(e){return!!e.deps}(e))return vi(r)||ss(r);i=()=>new r(...Hi(e.deps))}return i}function xo(e){if(e.destroyed)throw new rt(205,!1)}function qr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Bs(e,t){for(const n of e)Array.isArray(n)?Bs(n,t):n&&Ln(n)?Bs(n.\u0275providers,t):t(n)}function Us(e,t){e instanceof ao&&xo(e);const i=lr(e),r=li(void 0);try{return t()}finally{lr(i),li(r)}}function ka(){return void 0!==pr()||null!=function Er(){return Wi}()}function Io(e){if(!ka())throw new rt(-203,!1)}const Hn=0,Kt=1,vn=2,ii=3,Ri=4,Pi=5,Ni=6,co=7,Xn=8,ri=9,xr=10,En=11,S=12,we=13,$=14,ue=15,Xe=16,Dt=17,Rt=18,cn=19,$n=20,Gn=21,Yn=22,Pn=23,Vn=24,Vt=25,pi=1,Ui=6,mi=7,rr=9,ei=10;function Jn(e){return Array.isArray(e)&&"object"==typeof e[pi]}function si(e){return Array.isArray(e)&&!0===e[pi]}function So(e){return!!(4&e.flags)}function Vi(e){return e.componentOffset>-1}function ps(e){return!(1&~e.flags)}function Mr(e){return!!e.template}function Kr(e){return!!(512&e[vn])}function To(e){return!(256&~e[vn])}class Kd{previousValue;currentValue;firstChange;constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function Xd(e,t,n,i){null!==t?t.applyValueToInputSignal(t,i):e[n]=i}const nc=(()=>{const e=()=>Ba;return e.ngInherit=!0,e})();function Ba(e){return e.type.prototype.ngOnChanges&&(e.setInput=Lp),Yd}function Yd(){const e=Zd(this),t=e?.current;if(t){const n=e.previous;if(n===$i)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Lp(e,t,n,i,r){const s=this.declaredInputs[i],l=Zd(e)||function Bp(e,t){return e[Qd]=t}(e,{previous:$i,current:null}),f=l.current||(l.current={}),v=l.previous,G=v[s];f[s]=new Kd(G&&G.currentValue,n,v===$i),Xd(e,t,r,n)}const Qd="__ngSimpleChanges__";function Zd(e){return e[Qd]||null}const wr=function(e,t,n){},m="svg";function _(e){for(;Array.isArray(e);)e=e[Hn];return e}function fe(e,t){return _(t[e])}function Fe(e,t){return _(t[e.index])}function Et(e,t){return e.data[t]}function yt(e,t){return e[t]}function Yt(e,t){const n=t[e];return Jn(n)?n:n[Hn]}function Rn(e){return!(128&~e[vn])}function bi(e,t){return null==t?null:e[t]}function qi(e){e[Dt]=0}function Xr(e){1024&e[vn]||(e[vn]|=1024,Rn(e)&&ho(e))}function uo(e){return!!(9216&e[vn]||e[Vn]?.dirty)}function Ua(e){e[xr].changeDetectionScheduler?.notify(9),64&e[vn]&&(e[vn]|=1024),uo(e)&&ho(e)}function ho(e){e[xr].changeDetectionScheduler?.notify(0);let t=Ao(e);for(;null!==t&&!(8192&t[vn])&&(t[vn]|=8192,Rn(t));)t=Ao(t)}function rc(e,t){if(To(e))throw new rt(911,!1);null===e[Gn]&&(e[Gn]=[]),e[Gn].push(t)}function Ao(e){const t=e[ii];return si(t)?t[ii]:t}function Vp(e){return e[co]??=[]}function jp(e){return e.cleanup??=[]}const Tn={lFrame:Jp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let eu=!1;function sc(){return Tn.bindingsEnabled}function gs(){return null!==Tn.skipHydrationRootTNode}function xt(){return Tn.lFrame.lView}function Sn(){return Tn.lFrame.tView}function Wp(e){return Tn.lFrame.contextLView=e,e[Xn]}function Hp(e){return Tn.lFrame.contextLView=null,e}function jn(){let e=$p();for(;null!==e&&64===e.type;)e=e.parent;return e}function $p(){return Tn.lFrame.currentTNode}function eo(e,t){const n=Tn.lFrame;n.currentTNode=e,n.isParent=t}function tu(){return Tn.lFrame.isParent}function nu(){Tn.lFrame.isParent=!1}function Kp(){return eu}function ac(e){const t=eu;return eu=e,t}function gr(){const e=Tn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Yr(){return Tn.lFrame.bindingIndex++}function Ro(e){const t=Tn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function gC(e,t){const n=Tn.lFrame;n.bindingIndex=n.bindingRootIndex=e,iu(t)}function iu(e){Tn.lFrame.currentDirectiveIndex=e}function ru(e){const t=Tn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function ou(){return Tn.lFrame.currentQueryIndex}function lc(e){Tn.lFrame.currentQueryIndex=e}function vC(e){const t=e[Kt];return 2===t.type?t.declTNode:1===t.type?e[Pi]:null}function Qp(e,t,n){if(n&bn.SkipSelf){let r=t,s=e;for(;!(r=r.parent,null!==r||n&bn.Host||(r=vC(s),null===r||(s=s[$],10&r.type))););if(null===r)return!1;t=r,e=s}const i=Tn.lFrame=Zp();return i.currentTNode=t,i.lView=e,!0}function su(e){const t=Zp(),n=e[Kt];Tn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Zp(){const e=Tn.lFrame,t=null===e?null:e.child;return null===t?Jp(e):t}function Jp(e){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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function qp(){const e=Tn.lFrame;return Tn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const em=qp;function au(){const e=qp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function or(){return Tn.lFrame.selectedIndex}function _s(e){Tn.lFrame.selectedIndex=e}function ai(){const e=Tn.lFrame;return Et(e.tView,e.selectedIndex)}function tm(){Tn.lFrame.currentNamespace=m}function nm(){!function EC(){Tn.lFrame.currentNamespace=null}()}function im(){return Tn.lFrame.currentNamespace}let rm=!0;function ja(){return rm}function fo(e){rm=e}function lu(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[v]<0&&(e[Dt]+=65536),(f>14>16&&(3&e[vn])===t&&(e[vn]+=16384,sm(f,s)):sm(f,s)}const Hs=-1;class Wa{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,i){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=i}}function am(e){return 3===e||4===e||6===e}function lm(e){return 64===e.charCodeAt(0)}function $s(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;it){l=s-1;break}}}for(;s>16}(e),i=t;for(;n>0;)i=i[$],n--;return i}let pu=!0;function uc(e){const t=pu;return pu=e,t}const dm=255,um=5;let OC=0;const po={};function hc(e,t){const n=hm(e,t);if(-1!==n)return n;const i=t[Kt];i.firstCreatePass&&(e.injectorIndex=t.length,mu(i.data,e),mu(t,null),mu(i.blueprint,null));const r=fc(e,t),s=e.injectorIndex;if(fu(r)){const l=Ha(r),f=$a(r,t),v=f[Kt].data;for(let G=0;G<8;G++)t[s+G]=f[l+G]|v[l+G]}return t[s+8]=r,s}function mu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function hm(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function fc(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,r=t;for(;null!==r;){if(i=bm(r),null===i)return Hs;if(n++,r=r[$],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Hs}function gu(e,t,n){!function RC(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Bn)&&(i=n[Bn]),null==i&&(i=n[Bn]=OC++);const r=i&dm;t.data[e+(r>>um)]|=1<=0?t&dm:FC:t}(n);if("function"==typeof s){if(!Qp(t,e,i))return i&bn.Host?fm(r,0,i):pm(t,n,i,r);try{let l;if(l=s(i),null!=l||i&bn.Optional)return l;Rr()}finally{em()}}else if("number"==typeof s){let l=null,f=hm(e,t),v=Hs,G=i&bn.Host?t[ue][Pi]:null;for((-1===f||i&bn.SkipSelf)&&(v=-1===f?fc(e,t):t[f+8],v!==Hs&&vm(i,!1)?(l=t[Kt],f=Ha(v),t=$a(v,t)):f=-1);-1!==f;){const me=t[Kt];if(_m(s,f,me.data)){const Pe=NC(f,t,n,l,i,G);if(Pe!==po)return Pe}v=t[f+8],v!==Hs&&vm(i,t[Kt].data[f+8]===G)&&_m(s,f,t)?(l=me,f=Ha(v),t=$a(v,t)):f=-1}}return r}function NC(e,t,n,i,r,s){const l=t[Kt],f=l.data[e+8],me=pc(f,l,n,null==i?Vi(f)&&pu:i!=l&&!!(3&f.type),r&bn.Host&&s===f);return null!==me?za(t,l,me,f):po}function pc(e,t,n,i,r){const s=e.providerIndexes,l=t.data,f=1048575&s,v=e.directiveStart,me=s>>20,Qe=r?f+me:e.directiveEnd;for(let et=i?f:f+me;et=v&&vt.type===n)return et}if(r){const et=l[v];if(et&&Mr(et)&&et.type===n)return v}return null}function za(e,t,n,i){let r=e[n];const s=t.data;if(function xC(e){return e instanceof Wa}(r)){const l=r;l.resolving&&function hr(e,t){throw t&&t.join(" > "),new rt(-200,e)}(function wn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():pn(e)}(s[n]));const f=uc(l.canSeeViewProviders);l.resolving=!0;const G=l.injectImpl?li(l.injectImpl):null;Qp(e,i,bn.Default);try{r=e[n]=l.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function CC(e,t,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const l=Ba(t);(n.preOrderHooks??=[]).push(e,l),(n.preOrderCheckHooks??=[]).push(e,l)}r&&(n.preOrderHooks??=[]).push(0-e,r),s&&((n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s))}(n,s[n],t)}finally{null!==G&&li(G),uc(f),l.resolving=!1,em()}}return r}function _m(e,t,n){return!!(n[t+(e>>um)]&1<{const t=e.prototype.constructor,n=t[Kn]||_u(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const s=r[Kn]||_u(r);if(s&&s!==n)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function _u(e){return Un(e)?()=>{const t=_u(Ut(e));return t&&t()}:vi(e)}function bm(e){const t=e[Kt],n=t.type;return 2===n?t.declTNode:1===n?e[Pi]:null}function mc(e){return function PC(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let r=0;for(;rfi(os)});static __NG_ELEMENT_ID__=-1}class zC{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>mc(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}}new qt("").__NG_ELEMENT_ID__=e=>{const t=jn();if(null===t)throw new rt(204,!1);if(2&t.type)return t.value;if(e&bn.Optional)return null;throw new rt(204,!1)};const wm=!1;let Po=(()=>class e{static __NG_ELEMENT_ID__=KC;static __NG_ENV_ID__=n=>n})();class Sm extends Po{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return rc(this._lView,t),()=>function Jd(e,t){if(null===e[Gn])return;const n=e[Gn].indexOf(t);-1!==n&&e[Gn].splice(n,1)}(this._lView,t)}}function KC(){return new Sm(xt())}class mo{}const zs=new qt("",{providedIn:"root",factory:()=>!1}),Tm=new qt(""),yu=new qt("");let No=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new ht.t(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=Tt({token:e,providedIn:"root",factory:()=>new e})}return e})();const ko=class YC extends jt.B{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,ka()&&(this.destroyRef=an(Po,{optional:!0})??void 0,this.pendingTasks=an(No,{optional:!0})??void 0)}emit(t){const n=x(null);try{super.next(t)}finally{x(n)}}subscribe(t,n,i){let r=t,s=n||(()=>null),l=i;if(t&&"object"==typeof t){const v=t;r=v.next?.bind(v),s=v.error?.bind(v),l=v.complete?.bind(v)}this.__isAsync&&(s=this.wrapInTimeout(s),r&&(r=this.wrapInTimeout(r)),l&&(l=this.wrapInTimeout(l)));const f=super.subscribe({next:r,error:s,complete:l});return t instanceof Nt.yU&&t.add(f),f}wrapInTimeout(t){return n=>{const i=this.pendingTasks?.add();setTimeout(()=>{t(n),void 0!==i&&this.pendingTasks?.remove(i)})}}};function Ga(...e){}function Am(e){let t,n;function i(){e=Ga;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),i()}),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(()=>{e(),i()})),()=>i()}function Om(e){return queueMicrotask(()=>e()),()=>{e=Ga}}const bu="isAngularZone",_c=bu+"_ID";let QC=0;class _i{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ko(!1);onMicrotaskEmpty=new ko(!1);onStable=new ko(!1);onError=new ko(!1);constructor(t){const{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:s=wm}=t;if(typeof Zone>"u")throw new rt(908,!1);Zone.assertZonePatched();const l=this;l._nesting=0,l._outer=l._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(l._inner=l._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(l._inner=l._inner.fork(Zone.longStackTraceZoneSpec)),l.shouldCoalesceEventChangeDetection=!r&&i,l.shouldCoalesceRunChangeDetection=r,l.callbackScheduled=!1,l.scheduleInRootZone=s,function qC(e){const t=()=>{!function JC(e){function t(){Am(()=>{e.callbackScheduled=!1,Cu(e),e.isCheckStableRunning=!0,Eu(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Cu(e))}(e)},n=QC++;e._inner=e._inner.fork({name:"angular",properties:{[bu]:!0,[_c]:n,[_c+n]:!0},onInvokeTask:(i,r,s,l,f,v)=>{if(function eD(e){return Nm(e,"__ignore_ng_zone__")}(v))return i.invokeTask(s,l,f,v);try{return Rm(e),i.invokeTask(s,l,f,v)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===l.type||e.shouldCoalesceRunChangeDetection)&&t(),Pm(e)}},onInvoke:(i,r,s,l,f,v,G)=>{try{return Rm(e),i.invoke(s,l,f,v,G)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function tD(e){return Nm(e,"__scheduler_tick__")}(v)&&t(),Pm(e)}},onHasTask:(i,r,s,l)=>{i.hasTask(s,l),r===s&&("microTask"==l.change?(e._hasPendingMicrotasks=l.microTask,Cu(e),Eu(e)):"macroTask"==l.change&&(e.hasPendingMacrotasks=l.macroTask))},onHandleError:(i,r,s,l)=>(i.handleError(s,l),e.runOutsideAngular(()=>e.onError.emit(l)),!1)})}(l)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(bu)}static assertInAngularZone(){if(!_i.isInAngularZone())throw new rt(909,!1)}static assertNotInAngularZone(){if(_i.isInAngularZone())throw new rt(909,!1)}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,r){const s=this._inner,l=s.scheduleEventTask("NgZoneEvent: "+r,t,ZC,Ga,Ga);try{return s.runTask(l,n,i)}finally{s.cancelTask(l)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const ZC={};function Eu(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Cu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function Rm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Pm(e){e._nesting--,Eu(e)}class Du{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ko;onMicrotaskEmpty=new ko;onStable=new ko;onError=new ko;run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,r){return t.apply(n,i)}}function Nm(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class Fo{_console=console;handleError(t){this._console.error("ERROR",t)}}const iD=new qt("",{providedIn:"root",factory:()=>{const e=an(_i),t=an(Fo);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Fm(e,t){return ft(e,t)}const oD=(Fm.required=function rD(e){return ft(ee,e)},Fm);function sD(){return Gs(jn(),xt())}function Gs(e,t){return new Ka(Fe(e,t))}let Ka=(()=>class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=sD})();function Lm(e){return e instanceof Ka?e.nativeElement:e}const Bm=new Set;function Gi(e){Bm.has(e)||(Bm.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function xu(e){return"function"==typeof e&&void 0!==e[C]}function Iu(e,t){Gi("NgSignals");const n=function N(e){const t=Object.create(Me);t.value=e;const n=()=>(h(t),t.value);return n[C]=t,n}(e),i=n[C];return t?.equal&&(i.equal=t.equal),n.set=r=>M(i,r),n.update=r=>function j(e,t){E()||J(),M(e,t(e.value))}(i,r),n.asReadonly=vc.bind(n),n}function vc(){const e=this[C];if(void 0===e.readonlyFn){const t=()=>this();t[C]=e,e.readonlyFn=t}return e.readonlyFn}function Um(e){return xu(e)&&"function"==typeof e.set}function aD(){return this._results[Symbol.iterator]()}class Vm{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new jt.B}constructor(t=!1){this._emitDistinctChangesOnly=t}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,n){return this._results.reduce(t,n)}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,n){this.dirty=!1;const i=function kn(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Ti(e,t,n){if(e.length!==t.length)return!1;for(let i=0;iTD}),TD="ng",Ou=new qt(""),Ru=new qt("",{providedIn:"platform",factory:()=>"unknown"}),AD=new qt(""),OD=new qt("",{providedIn:"root",factory:()=>go().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function ND(e){return e}function kD(){const e=new $o;return"browser"===an(Ru)&&(e.store=function FD(e,t){const n=e.getElementById(t+"-state");if(n?.textContent)try{return JSON.parse(n.textContent)}catch(i){console.warn("Exception while restoring TransferState for app "+t,i)}return{}}(go(),an(Xs))),e}let $o=(()=>{class e{static \u0275prov=Tt({token:e,providedIn:"root",factory:kD});store={};onSerializeCallbacks={};get(n,i){return void 0!==this.store[n]?this.store[n]:i}set(n,i){this.store[n]=i}remove(n){delete this.store[n]}hasKey(n){return this.store.hasOwnProperty(n)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(n,i){this.onSerializeCallbacks[n]=i}toJson(){for(const n in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(n))try{this.store[n]=this.onSerializeCallbacks[n]()}catch(i){console.warn("Exception in onSerialize callback: ",i)}return JSON.stringify(this.store).replace(/!1});var Hu=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Hu||{});const Qs=new qt("");var Zs=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Zs||{});let $u=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=Tt({token:e,providedIn:"root",factory:()=>new e})}return e})();const hg=[Zs.EarlyRead,Zs.Write,Zs.MixedReadWrite,Zs.Read];let fg=(()=>{class e{ngZone=an(_i);scheduler=an(mo);errorHandler=an(Fo,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){an(Qs,{optional:!0})}execute(){this.executing=!0;for(const n of hg)for(const i of this.sequences)if(!i.erroredOrDestroyed&&i.hooks[n])try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>i.hooks[n](i.pipelinedValue),i.snapshot))}catch(r){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(const n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(const n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(7))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,i){return i?i.run(Hu.AFTER_NEXT_RENDER,n):n()}static \u0275prov=Tt({token:e,providedIn:"root",factory:()=>new e})}return e})();class pg{impl;hooks;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,i,r,s=null){this.impl=t,this.hooks=n,this.once=i,this.snapshot=s,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}}function mg(e,t){!t?.injector&&Io();const n=t?.injector??an(zi);return Gi("NgAfterRender"),gg(e,n,t,!1)}function qa(e,t){!t?.injector&&Io();const n=t?.injector??an(zi);return Gi("NgAfterNextRender"),gg(e,n,t,!0)}function gg(e,t,n,i){const r=t.get($u);r.impl??=t.get(fg);const s=t.get(Qs,null,{optional:!0}),l=n?.phase??Zs.MixedReadWrite,f=!0!==n?.manualCleanup?t.get(Po):null,v=new pg(r.impl,function LD(e,t){if(e instanceof Function){const n=[void 0,void 0,void 0,void 0];return n[t]=e,n}return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}(e,l),i,f,s?.snapshot(null));return r.impl.register(v),v}const Zu="__nghData__",rl="ngh",JD="nghm";let Ag=()=>null;function qD(e,t,n=!1){let i=e.getAttribute(rl);if(null==i)return null;const[r,s]=i.split("|");if(i=n?s:r,!i)return null;const f=n?r:s?`|${s}`:"";let v={};if(""!==i){const me=t.get($o,null,{optional:!0});null!==me&&(v=me.get(Zu,[])[Number(i)])}const G={data:v,firstChild:e.firstChild??null};return n&&(G.firstChild=e,Nc(G,0,e.nextSibling)),f?e.setAttribute(rl,f):e.removeAttribute(rl),G}function Og(e,t,n=!1){return Ag(e,t,n)}function Rg(e){let t=e._lView;return 2===t[Kt].type?null:(Kr(t)&&(t=t[Vt]),t)}function Nc(e,t,n){e.segmentHeads??={},e.segmentHeads[t]=n}function qu(e,t){return e.segmentHeads?.[t]??null}function kg(e,t){return e.data[Za]?.[t]??null}function eh(e,t){const n=kg(e,t)??[];let i=0;for(let r of n)i+=r[zo]*(r[xc]??1);return i}function bs(e,t){if(typeof e.disconnectedNodes>"u"){const n=e.data[Ja];e.disconnectedNodes=n?new Set(n):null}return!!function Fg(e){if(typeof e.disconnectedNodes>"u"){const t=e.data[Ja];e.disconnectedNodes=t?new Set(t):null}return e.disconnectedNodes}(e)?.has(t)}function Ug(e,t){const n=e.contentQueries;if(null!==n){const i=x(null);try{for(let r=0;re,createScript:e=>e,createScriptURL:e=>e})}catch{}return kc}()?.createHTML(e)||e}function oh(){if(void 0===Fc&&(Fc=null,kt.trustedTypes))try{Fc=kt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Fc}function Vg(e){return oh()?.createHTML(e)||e}function Wg(e){return oh()?.createScriptURL(e)||e}class Es{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ot})`}}class yx extends Es{getTypeName(){return"HTML"}}class bx extends Es{getTypeName(){return"Style"}}class Ex extends Es{getTypeName(){return"Script"}}class Cx extends Es{getTypeName(){return"URL"}}class Dx extends Es{getTypeName(){return"ResourceURL"}}function Bo(e){return e instanceof Es?e.changingThisBreaksApplicationSecurity:e}function sa(e,t){const n=function xx(e){return e instanceof Es&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ot})`)}return n===t}function Ix(e){return new yx(e)}function Mx(e){return new bx(e)}function wx(e){return new Ex(e)}function Sx(e){return new Cx(e)}function Tx(e){return new Dx(e)}class Ax{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(oa(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}}class Ox{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=oa(t),n}}const Px=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Lc(e){return(e=String(e)).match(Px)?e:"unsafe:"+e}function Uo(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function ll(...e){const t={};for(const n of e)for(const i in n)n.hasOwnProperty(i)&&(t[i]=!0);return t}const $g=Uo("area,br,col,hr,img,wbr"),zg=Uo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Gg=Uo("rp,rt"),sh=ll($g,ll(zg,Uo("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")),ll(Gg,Uo("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")),ll(Gg,zg)),ah=Uo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Kg=ll(ah,Uo("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"),Uo("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")),Nx=Uo("script,style,template");class kx{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,i=!0,r=[];for(;n;)if(n.nodeType===Node.ELEMENT_NODE?i=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,i&&n.firstChild)r.push(n),n=Bx(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let s=Lx(n);if(s){n=s;break}n=r.pop()}return this.buf.join("")}startElement(t){const n=Xg(t).toLowerCase();if(!sh.hasOwnProperty(n))return this.sanitizedSomething=!0,!Nx.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const n=Xg(t).toLowerCase();sh.hasOwnProperty(n)&&!$g.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Qg(t))}}function Lx(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw Yg(t);return t}function Bx(e){const t=e.firstChild;if(t&&function Fx(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw Yg(t);return t}function Xg(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function Yg(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const Ux=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vx=/([^\#-~ |!])/g;function Qg(e){return e.replace(/&/g,"&").replace(Ux,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Vx,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Bc;function Zg(e,t){let n=null;try{Bc=Bc||function Hg(e){const t=new Ox(e);return function Rx(){try{return!!(new window.DOMParser).parseFromString(oa(""),"text/html")}catch{return!1}}()?new Ax(t):t}(e);let i=t?String(t):"";n=Bc.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=Bc.getInertBodyElement(i)}while(i!==s);return oa((new kx).sanitizeChildren(lh(n)||n))}finally{if(n){const i=lh(n)||n;for(;i.firstChild;)i.firstChild.remove()}}}function lh(e){return"content"in e&&function jx(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Cs=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Cs||{});function Jg(e){const t=cl();return t?Vg(t.sanitize(Cs.HTML,e)||""):sa(e,"HTML")?Vg(Bo(e)):Zg(go(),pn(e))}function qg(e){const t=cl();return t?t.sanitize(Cs.URL,e)||"":sa(e,"URL")?Bo(e):Lc(pn(e))}function e_(e){const t=cl();if(t)return Wg(t.sanitize(Cs.RESOURCE_URL,e)||"");if(sa(e,"ResourceURL"))return Wg(Bo(e));throw new rt(904,!1)}function t_(e,t,n){return function Gx(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?e_:qg}(t,n)(e)}function cl(){const e=xt();return e&&e[xr].sanitizer}const Kx=/^>|^->||--!>|)/g,Yx="\u200b$1\u200b";function s_(e){return e.ownerDocument.defaultView}function a_(e){return e.ownerDocument}function Vr(e){return e instanceof Function?e():e}function rI(e,t,n){let i=e.length;for(;;){const r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||e.charCodeAt(r+s)<=32)return r}n=r+1}}const h_="ng-template";function oI(e,t,n,i){let r=0;if(i){for(;r-1){let s;for(;++rs?"":r[me+1].toLowerCase(),2&i&&G!==Pe){if(to(i))return!1;l=!0}}}}else{if(!l&&!to(i)&&!to(v))return!1;if(l&&to(v))continue;l=!1,i=v|1&i}}return to(i)||l}function to(e){return!(1&e)}function lI(e,t,n,i){if(null===t)return-1;let r=0;if(i||!n){let s=!1;for(;r-1)for(n++;n0?'="'+f+'"':"")+"]"}else 8&i?r+="."+l:4&i&&(r+=" "+l);else""!==r&&!to(l)&&(t+=p_(s,r),r=""),i=l,s=s||!to(i);n++}return""!==r&&(t+=p_(s,r)),t}const Nn={};function hh(e,t){return e.createText(t)}function fh(e,t){return e.createComment(function n_(e){return e.replace(Kx,t=>t.replace(Xx,Yx))}(t))}function jc(e,t,n){return e.createElement(t,n)}function Ds(e,t,n,i,r){e.insertBefore(t,n,i,r)}function g_(e,t,n){e.appendChild(t,n)}function __(e,t,n,i,r){null!==i?Ds(e,t,n,i,r):g_(e,t,n)}function dl(e,t,n){e.removeChild(null,t,n)}function v_(e){e.textContent=""}function y_(e,t,n){const{mergedAttrs:i,classes:r,styles:s}=n;null!==i&&function SC(e,t,n){let i=0;for(;iVt&&E_(e,t,Vt,!1),wr(l?2:0,r),n(i,r)}finally{_s(s),wr(l?3:1,r)}}function ph(e,t,n){sc()&&(vr(Fe(n,t),t),x_(e,t,n))}function x_(e,t,n){(function MI(e,t,n){const i=n.directiveStart,r=n.directiveEnd;Vi(n)&&function TI(e,t,n){const i=Fe(t,e),r=function I_(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=gh(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}(n),s=e[xr].rendererFactory,l=bh(e,Wc(e,r,null,vh(n),i,t,null,s.createRenderer(i,n),null,null,null));e[t.index]=l}(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||hc(n,t);const s=n.initialInputs;for(let l=i;lnull;function EI(e){jm(e)?v_(e):function nx(e){const t=go(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(s){const l=function tx(e){return e.textContent?.replace(/\s/gm,"")}(s);return"ngetn"===l||"ngtns"===l?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let i;const r=[];for(;i=n.nextNode();)r.push(i);for(const s of r)"ngetn"===s.textContent?s.replaceWith(t.createTextNode("")):s.remove()}(e)}function Ar(e,t,n,i,r,s,l,f){const v=Fe(t,n);let me,G=t.inputs;!f&&null!=G&&(me=G[i])?(Eh(e,n,me,i,r),Vi(t)&&function xI(e,t){const n=Yt(t,e);16&n[vn]||(n[vn]|=64)}(n,t.index)):3&t.type&&(i=function DI(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=l?l(r,t.value||"",i):r,s.setProperty(v,i,r))}function SI(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function _h(e,t){const n=e.directiveRegistry;let i=null;if(n)for(let r=0;r0&&(e[n-1][Ri]=i[Ri]);const s=$r(e,ei+t);!function T_(e,t){A_(e,t),t[Hn]=null,t[Pi]=null}(i[Kt],i);const l=s[Rt];null!==l&&l.detachView(s[Kt]),i[ii]=null,i[Ri]=null,i[vn]&=-129}return i}function hl(e,t){if(To(t))return;const n=t[En];n.destroyNode&&Kc(e,t,n,3,null,null),function FI(e){let t=e[S];if(!t)return Ih(e[Kt],e);for(;t;){let n=null;if(Jn(t))n=t[S];else{const i=t[ei];i&&(n=i)}if(!n){for(;t&&!t[Ri]&&t!==e;)Jn(t)&&Ih(t[Kt],t),t=t[ii];null===t&&(t=e),Jn(t)&&Ih(t[Kt],t),n=t&&t[Ri]}t=n}}(t)}function Ih(e,t){if(To(t))return;const n=x(null);try{t[vn]&=-129,t[vn]|=256,t[Vn]&&ae(t[Vn]),function UI(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[f]():i[-f].unsubscribe(),l+=2}else n[l].call(i[n[l+1]]);null!==i&&(t[co]=null);const r=t[Gn];if(null!==r){t[Gn]=null;for(let l=0;l0&&(n[r-1][Ri]=t),i{ho(e.lView)},consumerOnSignalRead(){this.lView[Vn]=this}},XI={...y,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Ao(e.lView);for(;t&&!j_(t[Kt]);)t=Ao(t);t&&Xr(t)},consumerOnSignalRead(){this.lView[Vn]=this}};function j_(e){return 2!==e.type}function W_(e){if(null===e[Pn])return;let t=!0;for(;t;){let n=!1;for(const i of e[Pn])i.dirty&&(n=!0,null===i.zone||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));t=n&&!!(8192&e[vn])}}function Xc(e,t=!0,n=0){const r=e[xr].rendererFactory;r.begin?.();try{!function QI(e,t){const n=Kp();try{ac(!0),Rh(e,t);let i=0;for(;uo(e);){if(100===i)throw new rt(103,!1);i++,Rh(e,1)}}finally{ac(n)}}(e,n)}catch(l){throw t&&Hc(e,l),l}finally{r.end?.()}}function $_(e,t,n,i){if(To(t))return;const r=t[vn];su(t);let f=!0,v=null,G=null;j_(e)?(G=function HI(e){return e[Vn]??function $I(e){const t=V_.pop()??Object.create(GI);return t.lView=e,t}(e)}(t),v=de(G)):null===function D(){return O}()?(f=!1,G=function KI(e){const t=e[Vn]??Object.create(XI);return t.lView=e,t}(t),v=de(G)):t[Vn]&&(ae(t[Vn]),t[Vn]=null);try{qi(t),function Xp(e){return Tn.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&D_(e,t,n,2,i);const me=!(3&~r);if(me){const et=e.preOrderCheckHooks;null!==et&&cc(t,et,null)}else{const et=e.preOrderHooks;null!==et&&dc(t,et,0,null),cu(t,0)}if(function ZI(e){for(let t=Ym(e);null!==t;t=Qm(t)){if(!(2&t[vn]))continue;const n=t[rr];for(let i=0;i-1&&(ul(t,i),$r(n,i))}this._attachedToViewContainer=!1}hl(this._lView[Kt],this._lView)}onDestroy(t){rc(this._lView,t)}markForCheck(){fl(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Xr(this._cdRefInjectingView||this._lView)}detach(){this._lView[vn]&=-129}reattach(){Ua(this._lView),this._lView[vn]|=128}detectChanges(){this._lView[vn]|=1024,Xc(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new rt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=Kr(this._lView),n=this._lView[Xe];null!==n&&!t&&xh(n,this._lView),A_(this._lView[Kt],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new rt(902,!1);this._appRef=t;const n=Kr(this._lView),i=this._lView[Xe];null!==i&&!n&&O_(i,this._lView),Ua(this._lView)}}let ml=(()=>class e{static __NG_ELEMENT_ID__=nM})();const eM=ml,tM=class extends eM{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,i){const r=ca(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:i});return new pl(r)}};function nM(){return Yc(jn(),xt())}function Yc(e,t){return 4&e.type?new tM(t,e,Gs(e,t)):null}function ha(e,t,n,i,r){let s=e.data[t];if(null===s)s=function Fh(e,t,n,i,r){const s=$p(),l=tu(),v=e.data[t]=function hM(e,t,n,i,r,s){let l=t?t.injectorIndex:-1,f=0;return gs()&&(f|=128),{type:n,index:i,insertBeforeIndex:null,injectorIndex:l,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:f,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,l?s:s&&s.parent,n,t,i,r);return function uM(e,t,n,i){null===e.firstChild&&(e.firstChild=t),null!==n&&(i?null==n.child&&null!==t.parent&&(n.child=t):null===n.next&&(n.next=t,t.prev=n))}(e,v,s,l),v}(e,t,n,i,r),function mC(){return Tn.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;const l=function Va(){const e=Tn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();s.injectorIndex=null===l?-1:l.injectorIndex}return eo(s,!0),s}const CM=new RegExp(`^(\\d+)*(${Nu}|${Pu})*(.*)`);function Bh(e){return e.index-Vt}function El(e,t,n,i){const r=Bh(i);let s=function ov(e,t){const n=e.i18nNodes;if(n)return n.get(t)}(e,r);if(void 0===s){const l=e.data[Ic];if(l?.[r])s=function sv(e,t){const[n,...i]=function xM(e){const t=e.match(CM),[n,i,r,s]=t,l=i?parseInt(i,10):r,f=[];for(const[v,G,me]of s.matchAll(/(f|n)(\d*)/g)){const Pe=parseInt(me,10)||1;f.push(G,Pe)}return[l,...f]}(e);let r;r=n===Pu?t[ue][Hn]:n===Nu?function l_(e){return e.ownerDocument.body}(t[ue][Hn]):_(t[Number(n)+Vt]);return function wM(e,t){let n=e;for(let i=0;inull;function QM(e,t){const n=e[Ui];return t&&null!==n&&0!==n.length?n[0].data[Lu]===t?n.shift():(hv(e),null):null}function pa(e,t){return pv(e,t)}class JM{}class mv{}class qM{resolveComponentFactory(t){throw Error(`No component factory found for ${lt(t)}.`)}}class td{static NULL=new qM}class zh{}let ew=(()=>class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>function tw(){const e=xt(),n=Yt(jn().index,e);return(Jn(n)?n:e)[En]}()})(),nw=(()=>{class e{static \u0275prov=Tt({token:e,providedIn:"root",factory:()=>null})}return e})();function Qo(e){return!!Oi(e)}function Xh(e,t,n){let i=n?e.styles:null,r=n?e.classes:null,s=0;if(null!==t)for(let l=0;l0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(l)!=f&&l.push(f),l.push(n,i,s)}}(e,t,i,Il(e,n,r.hostVars,Nn),r)}function pw(e,t,n){if(n){if(t.exportAs)for(let i=0;i[this.componentDef],!0,0);Qe&&(y_(Pe,Qe,Mt),vr(Qe,et)),x_(v,et,Mt),ih(v,Mt,et),Cv(v,Mt),void 0!==n&&function bw(e,t,n){const i=e.projection=[];for(let r=0;rclass e{static __NG_ELEMENT_ID__=Ew})();function Ew(){return wv(jn(),xt())}const Cw=id,Iv=class extends Cw{_lContainer;_hostTNode;_hostLView;constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return Gs(this._hostTNode,this._hostLView)}get injector(){return new xi(this._hostTNode,this._hostLView)}get parentInjector(){const t=fc(this._hostTNode,this._hostLView);if(fu(t)){const n=$a(t,this._hostLView),i=Ha(t);return new xi(n[Kt].data[i+8],n)}return new xi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Mv(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-ei}createEmbeddedView(t,n,i){let r,s;"number"==typeof i?r=i:null!=i&&(r=i.index,s=i.injector);const l=pa(this._lContainer,t.ssrId),f=t.createEmbeddedViewImpl(n||{},s,l);return this.insertImpl(f,r,Is(this._hostTNode,l)),f}createComponent(t,n,i,r,s){const l=t&&!function wo(e){return"function"==typeof e}(t);let f;if(l)f=n;else{const vt=n||{};f=vt.index,i=vt.injector,r=vt.projectableNodes,s=vt.environmentInjector||vt.ngModuleRef}const v=l?t:new Ml(An(t)),G=i||this.parentInjector;if(!s&&null==v.ngModule){const Mt=(l?G:this.parentInjector).get(ir,null);Mt&&(s=Mt)}const me=An(v.componentType??{}),Pe=pa(this._lContainer,me?.id??null),et=v.create(G,r,Pe?.firstChild??null,s);return this.insertImpl(et.hostView,f,Is(this._hostTNode,Pe)),et}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,i){const r=t._lView;if(function di(e){return si(e[ii])}(r)){const f=this.indexOf(t);if(-1!==f)this.detach(f);else{const v=r[ii],G=new Iv(v,v[Pi],v[ii]);G.detach(G.indexOf(t))}}const s=this._adjustIndex(n),l=this._lContainer;return da(l,r,s,i),t.attachToViewContainerRef(),Ai(Qh(l),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Mv(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),i=ul(this._lContainer,n);i&&($r(Qh(this._lContainer),n),hl(i[Kt],i))}detach(t){const n=this._adjustIndex(t,-1),i=ul(this._lContainer,n);return i&&null!=$r(Qh(this._lContainer),n)?new pl(i):null}_adjustIndex(t,n=0){return t??this.length+n}};function Mv(e){return e[8]}function Qh(e){return e[8]||(e[8]=[])}function wv(e,t){let n;const i=t[e.index];return si(i)?n=i:(n=w_(i,t,null,e),t[e.index]=n,bh(t,n)),Sv(n,t,e,i),new Iv(n,e,t)}let Sv=Av,Zh=()=>!1;function Av(e,t,n,i){if(e[mi])return;let r;r=8&n.type?_(i):function Dw(e,t){const n=e[En],i=n.createComment(""),r=Fe(t,e),s=n.parentNode(r);return Ds(n,s,i,n.nextSibling(r),!1),i}(t,n),e[mi]=r}function xw(e,t,n){if(e[mi]&&e[Ui])return!0;const i=n[Ni],r=t.index-Vt;if(!i||function Qa(e){if(Ya(e))return!0;let t=e.parent;for(;t;){if(Ya(e)||Mu(t))return!0;t=t.parent}return!1}(t)||bs(i,r))return!1;const l=qu(i,r),f=i.data[Za]?.[r],[v,G]=function YM(e,t){const n=[];for(const i of t)for(let r=0;r<(i[xc]??1);r++){const s={data:i,firstChild:null};i[zo]>0&&(s.firstChild=e,e=qc(i[zo],e)),n.push(s)}return[e,n]}(l,f);return e[mi]=v,e[Ui]=G,!0}function Iw(e,t,n,i){Zh(e,n,t)||Av(e,t,n,i)}class Jh{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new Jh(this.queryList)}setDirty(){this.queryList.setDirty()}}class qh{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[];for(let s=0;st.trim())}(t):t}}class ef{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let i=0;i0)i.push(l[f/2]);else{const G=s[f+1],me=t[-v];for(let Pe=ei;Pe{i._dirtyCounter();const s=function Pw(e,t){const n=e._lView,i=e._queryIndex;if(void 0===n||void 0===i||4&n[vn])return t?void 0:Fn;const r=rf(n,i),s=Lv(n,i);return r.reset(s,Lm),t?r.first:r._changesDetected||void 0===e._flatValue?e._flatValue=r.toArray():e._flatValue}(i,e);if(t&&void 0===s)throw new rt(-951,!1);return s});return i=r[C],i._dirtyCounter=Iu(0),i._flatValue=void 0,r}function Wv(e,t){return function Bv(e){return af(!0,!1)}()}const kw=(Wv.required=function Nw(e,t){return function Uv(e){return af(!0,!0)}()},Wv);class ws{}class Yv{}function $w(e,t){return new lf(e,t??null,[])}class lf extends ws{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Dv(this);constructor(t,n,i,r=!0){super(),this.ngModuleType=t,this._parent=n;const s=Oi(t);this._bootstrapComponents=Vr(s.bootstrap),this._r3Injector=Mm(t,n,[{provide:ws,useValue:this},{provide:td,useValue:this.componentFactoryResolver},...i],lt(t),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class cf extends Yv{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new lf(this.moduleType,t,[])}}class Qv extends ws{injector;componentFactoryResolver=new Dv(this);instance=null;constructor(t){super();const n=new ao([...t.providers,{provide:ws,useValue:this},{provide:td,useValue:this.componentFactoryResolver}],t.parent||Do(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function df(e,t,n=null){return new Qv({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let Gw=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const i=U(0,n.type),r=i.length>0?df([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,r)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=Tt({token:e,providedIn:"environment",factory:()=>new e(fi(ir))})}return e})();function Zv(e){return le(()=>{const t=t0(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===yc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?r=>r.get(Gw).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Lo.Emulated,styles:e.styles||Fn,_:null,schemas:e.schemas||null,tView:null,id:""};t.standalone&&Gi("NgStandalone"),n0(n);const i=e.dependencies;return n.directiveDefs=od(i,!1),n.pipeDefs=od(i,!0),n.id=function Qw(e){let t=0;const i=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,"function"==typeof e.consts?"":e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(const s of i.join("|"))t=Math.imul(31,t)+s.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function Kw(e){return An(e)||gi(e)}function Xw(e){return null!==e}function uf(e){return le(()=>({type:e.type,bootstrap:e.bootstrap||Fn,declarations:e.declarations||Fn,imports:e.imports||Fn,exports:e.exports||Fn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Jv(e,t){if(null==e)return $i;const n={};for(const i in e)if(e.hasOwnProperty(i)){const r=e[i];let s,l,f=Xo.None;Array.isArray(r)?(f=r[0],s=r[1],l=r[2]??s):(s=r,l=r),t?(n[s]=f!==Xo.None?[i,f]:i,t[s]=l):n[s]=i}return n}function qv(e){return le(()=>{const t=t0(e);return n0(t),t})}function e0(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function t0(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||$i,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:!0===e.signals,selectors:e.selectors||Fn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Jv(e.inputs,t),outputs:Jv(e.outputs),debugInfo:null}}function n0(e){e.features?.forEach(t=>t(e))}function od(e,t){if(!e)return null;const n=t?Dn:Kw;return()=>("function"==typeof e?e():e).map(i=>n(i)).filter(Xw)}function hf(e){let t=function r0(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let r;if(Mr(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new rt(903,!1);r=t.\u0275dir}if(r){if(n){i.push(r);const l=e;l.inputs=sd(e.inputs),l.inputTransforms=sd(e.inputTransforms),l.declaredInputs=sd(e.declaredInputs),l.outputs=sd(e.outputs);const f=r.hostBindings;f&&tS(e,f);const v=r.viewQuery,G=r.contentQueries;if(v&&qw(e,v),G&&eS(e,G),Zw(e,r),$e(e.outputs,r.outputs),Mr(r)&&r.data.animation){const me=e.data;me.animation=(me.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let l=0;l=0;i--){const r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=$s(r.hostAttrs,n=$s(n,r.hostAttrs))}}(i)}function Zw(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const i=t.inputs[n];if(void 0!==i&&(e.inputs[n]=i,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const r=Array.isArray(i)?i[0]:i;if(!t.inputTransforms.hasOwnProperty(r))continue;e.inputTransforms??={},e.inputTransforms[r]=t.inputTransforms[r]}}}function sd(e){return e===$i?{}:e===Fn?[]:e}function qw(e,t){const n=e.viewQuery;e.viewQuery=n?(i,r)=>{t(i,r),n(i,r)}:t}function eS(e,t){const n=e.contentQueries;e.contentQueries=n?(i,r,s)=>{t(i,r,s),n(i,r,s)}:t}function tS(e,t){const n=e.hostBindings;e.hostBindings=n?(i,r)=>{t(i,r),n(i,r)}:t}function o0(e){const t=n=>{const i=Array.isArray(e);null===n.hostDirectives?(n.findHostDirectiveDefs=s0,n.hostDirectives=i?e.map(ff):[e]):i?n.hostDirectives.unshift(...e.map(ff)):n.hostDirectives.unshift(e)};return t.ngInherit=!0,t}function s0(e,t,n){if(null!==e.hostDirectives)for(const i of e.hostDirectives)if("function"==typeof i){const r=i();for(const s of r)a0(ff(s),t,n)}else a0(i,t,n)}function a0(e,t,n){const i=gi(e.directive);(function oS(e,t){for(const n in t)t.hasOwnProperty(n)&&(e[t[n]]=e[n])})(i.declaredInputs,e.inputs),s0(i,t,n),n.set(i,e),t.push(i)}function ff(e){return"function"==typeof e?{directive:Ut(e),inputs:$i,outputs:$i}:{directive:Ut(e.directive),inputs:l0(e.inputs),outputs:l0(e.outputs)}}function l0(e){if(void 0===e||0===e.length)return $i;const t={};for(let n=0;n{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=Tt({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const D0="ng";function aT(e,t){!function I0(e,t){if(typeof COMPILED>"u"||!COMPILED){const n=kt;n[D0]??={},n[D0][e]=t}}(e,t)}const M0=new qt(""),w0=new qt("");let Ef,lT=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(n,i,r){this._ngZone=n,this.registry=i,Ef||(function cT(e){Ef=e}(r),r.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{_i.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(l=>l.timeoutId!==s),n()},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:r})}whenStable(n,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(n,i,r),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,r){return[]}static \u0275fac=function(i){return new(i||e)(fi(_i),fi(S0),fi(w0))};static \u0275prov=Tt({token:e,factory:e.\u0275fac})}return e})(),S0=(()=>{class e{_applications=new Map;registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return Ef?.findTestabilityInTree(this,n,i)??null}static \u0275fac=function(i){return new(i||e)};static \u0275prov=Tt({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Cf(e){return!!e&&"function"==typeof e.then}function T0(e){return!!e&&"function"==typeof e.subscribe}const Df=new qt("");let A0=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i});appInits=an(Df,{optional:!0})??[];injector=an(zi);constructor(){}runInitializers(){if(this.initialized)return;const n=[];for(const r of this.appInits){const s=Us(this.injector,r);if(Cf(s))n.push(s);else if(T0(s)){const l=new Promise((f,v)=>{s.subscribe({complete:f,error:v})});n.push(l)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(r=>{this.reject(r)}),0===n.length&&i(),this.initialized=!0}static \u0275fac=function(i){return new(i||e)};static \u0275prov=Tt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xf=(()=>{class e{static \u0275prov=Tt({token:e,providedIn:"root",factory:()=>new O0})}return e})();class O0{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){const i=this.queues.get(t.zone);i.has(t)&&(i.delete(t),this.queuedEffectCount--)}enqueue(t){const n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);const i=this.queues.get(n);i.has(t)||(this.queuedEffectCount++,i.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,n]of this.queues)null===t?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(const n of t)t.delete(n),this.queuedEffectCount--,n.run()}}const Ol=new qt("");let jr=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=an(iD);afterRenderManager=an($u);zonelessEnabled=an(zs);rootEffectScheduler=an(xf);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new jt.B;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=an(No).hasPendingTasks.pipe((0,on.T)(n=>!n));constructor(){an(Qs,{optional:!0})}whenStable(){let n;return new Promise(i=>{n=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{n.unsubscribe()})}_injector=an(ir);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,i){const r=n instanceof mv;if(!this._injector.get(A0).done)throw!r&&Ji(n),new rt(405,!1);let l;l=r?n:this._injector.get(td).resolveComponentFactory(n),this.componentTypes.push(l.componentType);const f=function dT(e){return e.isBoundToModule}(l)?void 0:this._injector.get(ws),G=l.create(zi.NULL,[],i||l.selector,f),me=G.location.nativeElement,Pe=G.injector.get(M0,null);return Pe?.registerApplication(me),G.onDestroy(()=>{this.detachView(G.hostView),hd(this.components,G),Pe?.unregisterApplication(me)}),this._loadComponent(G),G}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(null!==this.tracingSnapshot){const i=this.tracingSnapshot;return this.tracingSnapshot=null,i.run(Hu.CHANGE_DETECTION,this._tick),void i.dispose()}if(this._runningTick)throw new rt(101,!1);const n=x(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,x(n),this.afterTick.next()}};synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(zh,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let n=0;for(;0!==this.dirtyFlags&&n++<10;)this.synchronizeOnce()}synchronizeOnce(){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),7&this.dirtyFlags){const n=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:i,notifyErrorHandler:r}of this.allViews)hT(i,r,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:n})=>uo(n))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;hd(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Ol,[]).forEach(r=>r(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>hd(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new rt(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||e)};static \u0275prov=Tt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function hd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function hT(e,t,n,i){(n||uo(e))&&Xc(e,t,n&&!i?0:1)}function Sf(e,t,n,i){const r=xt();return Ii(r,Yr(),t)&&(Sn(),_o(ai(),r,e,t,n,i)),Sf}function ba(e,t,n,i){return Ii(e,Yr(),n)?t+pn(n)+i:Nn}function Ea(e,t,n,i,r,s){const f=Ss(e,function Oo(){return Tn.lFrame.bindingIndex}(),n,r);return Ro(2),f?t+pn(n)+i+pn(r)+s:Nn}function fd(e,t){return e<<17|t<<2}function ts(e){return e>>17&32767}function Tf(e){return 2|e}function As(e){return(131068&e)>>2}function Af(e,t){return-131069&e|t<<2}function Of(e){return 1|e}function X0(e,t,n,i){const r=e[n+1],s=null===t;let l=i?ts(r):As(r),f=!1;for(;0!==l&&(!1===f||s);){const G=e[l+1];QT(e[l],t)&&(f=!0,e[l+1]=i?Of(G):Tf(G)),l=i?ts(G):As(G)}f&&(e[n+1]=i?Tf(r):Of(r))}function QT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&dr(e,t)>=0}const Ki={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Y0(e){return e.substring(Ki.key,Ki.keyEnd)}function Q0(e,t){const n=Ki.textEnd;return n===t?-1:(t=Ki.keyEnd=function eA(e,t,n){for(;t32;)t++;return t}(e,Ki.key=t,n),Sa(e,t,n))}function Sa(e,t,n){for(;t=0;n=Q0(t,n))Bi(e,Y0(t),!0)}function no(e,t,n,i){const r=xt(),s=Sn(),l=Ro(2);s.firstUpdatePass&&iy(s,e,l,i),t!==Nn&&Ii(r,l,t)&&oy(s,s.data[or()],r,r[En],e,r[l+1]=function uA(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=lt(Bo(e)))),e}(t,n),i,l)}function io(e,t,n,i){const r=Sn(),s=Ro(2);r.firstUpdatePass&&iy(r,null,s,i);const l=xt();if(n!==Nn&&Ii(l,s,n)){const f=r.data[or()];if(ay(f,i)&&!ny(r,s)){let v=i?f.classesWithoutHost:f.stylesWithoutHost;null!==v&&(n=Te(v,n||"")),Pf(r,f,l,n,i)}else!function dA(e,t,n,i,r,s,l,f){r===Nn&&(r=Fn);let v=0,G=0,me=0=e.expandoStartIndex}function iy(e,t,n,i){const r=e.data;if(null===r[n+1]){const s=r[or()],l=ny(e,n);ay(s,i)&&null===t&&!l&&(t=!1),t=function rA(e,t,n,i){const r=ru(e);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Pl(n=Ff(null,e,t,n,i),t.attrs,i),s=null);else{const l=t.directiveStylingLast;if(-1===l||e[l]!==r)if(n=Ff(r,e,t,n,i),null===s){let v=function oA(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==As(i))return e[ts(i)]}(e,t,i);void 0!==v&&Array.isArray(v)&&(v=Ff(null,e,t,v[1],i),v=Pl(v,t.attrs,i),function sA(e,t,n,i){e[ts(n?t.classBindings:t.styleBindings)]=i}(e,t,i,v))}else s=function aA(e,t,n){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(G=!0)):me=n,r)if(0!==v){const Qe=ts(e[f+1]);e[i+1]=fd(Qe,f),0!==Qe&&(e[Qe+1]=Af(e[Qe+1],i)),e[f+1]=function GT(e,t){return 131071&e|t<<17}(e[f+1],i)}else e[i+1]=fd(f,0),0!==f&&(e[f+1]=Af(e[f+1],i)),f=i;else e[i+1]=fd(v,0),0===f?f=i:e[v+1]=Af(e[v+1],i),v=i;G&&(e[i+1]=Tf(e[i+1])),X0(e,me,i,!0),X0(e,me,i,!1),function YT(e,t,n,i,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&dr(s,t)>=0&&(n[i+1]=Of(n[i+1]))}(t,me,e,i,s),l=fd(f,v),s?t.classBindings=l:t.styleBindings=l}(r,s,t,n,l,i)}}function Ff(e,t,n,i,r){let s=null;const l=n.directiveEnd;let f=n.directiveStylingLast;for(-1===f?f=n.directiveStart:f++;f0;){const v=e[r],G=Array.isArray(v),me=G?v[1]:v,Pe=null===me;let Qe=n[r+1];Qe===Nn&&(Qe=Pe?Fn:void 0);let et=Pe?Fr(Qe,i):me===i?Qe:void 0;if(G&&!pd(et)&&(et=Fr(v,i)),pd(et)&&(f=et,l))return f;const vt=e[r+1];r=l?ts(vt):As(vt)}if(null!==t){let v=s?t.residualClasses:t.residualStyles;null!=v&&(f=Fr(v,i))}return f}function pd(e){return void 0!==e}function ay(e,t){return!!(e.flags&(t?8:16))}function ly(e,t,n){io(Bi,bo,ba(xt(),e,t,n),!0)}class EA{destroy(t){}updateValue(t,n){}swap(t,n){const i=Math.min(t,n),r=Math.max(t,n),s=this.detach(r);if(r-i>1){const l=this.detach(i);this.attach(i,s),this.attach(r,l)}else this.attach(i,s)}move(t,n){this.attach(n,this.detach(t))}}function Lf(e,t,n,i,r){return e===n&&Object.is(t,i)?1:Object.is(r(e,t),r(n,i))?-1:0}function Bf(e,t,n,i){return!(void 0===t||!t.has(i)||(e.attach(n,t.get(i)),t.delete(i),0))}function cy(e,t,n,i,r){if(Bf(e,t,i,n(i,r)))e.updateValue(i,r);else{const s=e.create(i,r);e.attach(i,s)}}function dy(e,t,n,i){const r=new Set;for(let s=t;s<=n;s++)r.add(i(s,e.at(s)));return r}class uy{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let i=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,i]of this.kvMap)if(t(i,n),void 0!==this._vMap){const r=this._vMap;for(;r.has(i);)i=r.get(i),t(i,n)}}}function hy(e,t){Gi("NgControlFlow");const n=xt(),i=Yr(),r=n[i]!==Nn?n[i]:-1,s=-1!==r?md(n,Vt+r):void 0;if(Ii(n,i,e)){const f=x(null);try{if(void 0!==s&&Ah(s,0),-1!==e){const v=Vt+e,G=md(n,v),me=Uf(n[Kt],v),Pe=pa(G,me.tView.ssrId);da(G,ca(n,me,t,{dehydratedView:Pe}),0,Is(me,Pe))}}finally{x(f)}}else if(void 0!==s){const f=U_(s,0);void 0!==f&&(f[Xn]=t)}}class DA{lContainer;$implicit;$index;constructor(t,n,i){this.lContainer=t,this.$implicit=n,this.$index=i}get $count(){return this.lContainer.length-ei}}class MA{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,i){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=i}}function fy(e,t,n,i,r,s,l,f,v,G,me,Pe,Qe){Gi("NgControlFlow");const et=xt(),vt=Sn(),Mt=void 0!==v,Xt=xt(),Zt=f?l.bind(Xt[ue][Xn]):l,Pt=new MA(Mt,Zt);Xt[Vt+e]=Pt,Tl(et,vt,e+1,t,n,i,r,bi(vt.consts,s)),Mt&&Tl(et,vt,e+2,v,G,me,Pe,bi(vt.consts,Qe))}class wA extends EA{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,i){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=i}get length(){return this.lContainer.length-ei}at(t){return this.getLView(t)[Xn].$implicit}attach(t,n){const i=n[Ni];this.needsIndexUpdate||=t!==this.length,da(this.lContainer,n,t,Is(this.templateTNode,i))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function SA(e,t){return ul(e,t)}(this.lContainer,t)}create(t,n){const i=pa(this.lContainer,this.templateTNode.tView.ssrId),r=ca(this.hostLView,this.templateTNode,new DA(this.lContainer,n,t),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(t){hl(t[Kt],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[Xn].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(v)})}(v,e,s.trackByFn),v.updateIndexes(),s.hasEmptyBlock){const G=Yr(),me=0===v.length;if(Ii(i,G,me)){const Pe=n+2,Qe=md(i,Pe);if(me){const et=Uf(r,Pe),vt=pa(Qe,et.tView.ssrId);da(Qe,ca(i,et,void 0,{dehydratedView:vt}),0,Is(et,vt))}else Ah(Qe,0)}}}finally{x(t)}}function md(e,t){return e[t]}function Uf(e,t){return Et(e,t)}function gd(e,t,n,i){const r=xt(),s=Sn(),l=Vt+e,f=r[En],v=s.firstCreatePass?Ev(l,s,r,t,_h,sc(),n,i):s.data[l],G=my(s,r,v,f,t,e);r[l]=G;const me=ps(v);return eo(v,!0),y_(f,G,v),!Yo(v)&&ja()&&Gc(s,r,G,v),0===function aC(){return Tn.lFrame.elementDepthCount}()&&vr(G,r),function lC(){Tn.lFrame.elementDepthCount++}(),me&&(ph(s,r,v),ih(s,v,r)),null!==i&&mh(r,v),gd}function _d(){let e=jn();tu()?nu():(e=e.parent,eo(e,!1));const t=e;(function dC(e){return Tn.skipHydrationRootTNode===e})(t)&&function pC(){Tn.skipHydrationRootTNode=null}(),function cC(){Tn.lFrame.elementDepthCount--}();const n=Sn();return n.firstCreatePass&&Cv(n,t),null!=t.classesWithoutHost&&function MC(e){return!!(8&e.flags)}(t)&&Pf(n,t,xt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function wC(e){return!!(16&e.flags)}(t)&&Pf(n,t,xt(),t.stylesWithoutHost,!1),_d}function Vf(e,t,n,i){return gd(e,t,n,i),_d(),Vf}let my=(e,t,n,i,r,s)=>(fo(!0),jc(i,r,im()));function AA(e,t,n,i,r,s){const l=t[Ni],f=!l||gs()||Yo(n)||bs(l,s);if(fo(f),f)return jc(i,r,im());const v=El(l,e,t,n);return kg(l,s)&&Nc(l,s,v.nextSibling),l&&(Mu(n)||jm(v))&&Vi(n)&&(function hC(e){Tn.skipHydrationRootTNode=e}(n),v_(v)),v}function vd(e,t,n){const i=xt(),r=Sn(),s=e+Vt,l=r.firstCreatePass?function RA(e,t,n,i,r){const s=t.consts,l=bi(s,i),f=ha(t,e,8,"ng-container",l);null!==l&&Xh(f,l,!0);const v=bi(s,r);return sc()&&Yh(t,n,f,v,_h),f.mergedAttrs=$s(f.mergedAttrs,f.attrs),null!==t.queries&&t.queries.elementStart(t,f),f}(s,r,i,t,n):r.data[s];eo(l,!0);const f=gy(r,i,l,e);return i[s]=f,ja()&&Gc(r,i,f,l),vr(f,i),ps(l)&&(ph(r,i,l),ih(r,l,i)),null!=n&&mh(i,l),vd}function yd(){let e=jn();const t=Sn();return tu()?nu():(e=e.parent,eo(e,!1)),t.firstCreatePass&&(lu(t,e),So(e)&&t.queries.elementEnd(e)),yd}function jf(e,t,n){return vd(e,t,n),yd(),jf}let gy=(e,t,n,i)=>(fo(!0),fh(t[En],""));function PA(e,t,n,i){let r;const s=t[Ni],l=!s||gs()||bs(s,i)||Yo(n);if(fo(l),l)return fh(t[En],"");const f=El(s,e,t,n),v=function Ng(e,t){const n=e.data;let i=n[Dc]?.[t]??null;return null===i&&n[Za]?.[t]&&(i=eh(e,t)),i}(s,i);return Nc(s,i,f),r=qc(v,f),r}function _y(){return xt()}function Wf(e,t,n){const i=xt();return Ii(i,Yr(),t)&&Ar(Sn(),ai(),i,e,t,i[En],n,!0),Wf}function Hf(e,t,n){const i=xt();if(Ii(i,Yr(),t)){const s=Sn(),l=ai();Ar(s,l,i,e,t,S_(ru(s.data),l,i),n,!0)}return Hf}const Os=void 0;var FA=["en",[["a","p"],["AM","PM"],Os],[["AM","PM"],Os,Os],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Os,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Os,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Os,"{1} 'at' {0}",Os],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function kA(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let Ta={};function $f(e){const t=function LA(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=yy(t);if(n)return n;const i=t.split("-")[0];if(n=yy(i),n)return n;if("en"===i)return FA;throw new rt(701,!1)}function vy(e){return $f(e)[Aa.PluralCase]}function yy(e){return e in Ta||(Ta[e]=kt.ng&&kt.ng.common&&kt.ng.common.locales&&kt.ng.common.locales[e]),Ta[e]}var Aa=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Aa||{});const bd="en-US";let by=bd,By=(e,t,n)=>{};function Kf(e,t,n,i){const r=xt(),s=Sn(),l=jn();return Yf(s,r,r[En],l,e,t,i),Kf}function Xf(e,t){const n=jn(),i=xt(),r=Sn();return Yf(r,i,S_(ru(r.data),n,i),n,e,t),Xf}function Yf(e,t,n,i,r,s,l){const f=ps(i),G=e.firstCreatePass&&jp(e),me=t[Xn],Pe=Vp(t);let Qe=!0;if(3&i.type||l){const Mt=Fe(i,t),Xt=l?l(Mt):Mt,Zt=Pe.length,Pt=l?zn=>l(_(zn[i.index])):i.index;let Cn=null;if(!l&&f&&(Cn=function IO(e,t,n,i){const r=e.cleanup;if(null!=r)for(let s=0;sv?f[v]:null}"string"==typeof l&&(s+=2)}return null}(e,t,r,i.index)),null!==Cn)(Cn.__ngLastListenerFn__||Cn).__ngNextListenerFn__=s,Cn.__ngLastListenerFn__=s,Qe=!1;else{s=jy(i,t,me,s),By(Mt,r,s);const zn=n.listen(Xt,r,s);Pe.push(s,zn),G&&G.push(r,Pt,Zt,Zt+1)}}else s=jy(i,t,me,s);const et=i.outputs;let vt;if(Qe&&null!==et&&(vt=et[r])){const Mt=vt.length;if(Mt)for(let Xt=0;Xt0;)t=t[$],e--;return t}(e,Tn.lFrame.contextLView))[Xn]}(e)}function MO(e,t){let n=null;const i=function cI(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let r=0;rn._dirtyCounter.update(i=>i+1))}(t,kv(e,n,i,r))}function rb(e=1){lc(ou()+e)}function ob(e){return yt(function zp(){return Tn.lFrame.contextLView}(),Vt+e)}function mb(e,t=""){const n=xt(),i=Sn(),r=e+Vt,s=i.firstCreatePass?ha(i,r,1,t,null):i.data[r],l=gb(i,n,s,t,e);n[r]=l,ja()&&Gc(i,n,l,s),eo(s,!1)}let gb=(e,t,n,i,r)=>(fo(!0),hh(t[En],i));function BO(e,t,n,i,r){const s=t[Ni],l=!s||gs()||Yo(n)||bs(s,r);return fo(l),l?hh(t[En],i):El(s,e,t,n)}function qf(e){return xd("",e,""),qf}function xd(e,t,n){const i=xt(),r=ba(i,e,t,n);return r!==Nn&&Vo(i,or(),r),xd}function ep(e,t,n,i,r){const s=xt(),l=Ea(s,e,t,n,i,r);return l!==Nn&&Vo(s,or(),l),ep}function Vo(e,t,n){const i=fe(t,e);!function m_(e,t,n){e.setValue(t,n)}(e[En],i,n)}function tp(e,t,n){Um(t)&&(t=t());const i=xt();return Ii(i,Yr(),t)&&Ar(Sn(),ai(),i,e,t,i[En],n,!1),tp}function xb(e,t){const n=Um(e);return n&&e.set(t),n}function np(e,t){const n=xt(),i=Sn(),r=jn();return Yf(i,n,n[En],r,e,t),np}function ip(e,t,n,i,r){if(e=Ut(e),Array.isArray(e))for(let s=0;s>20;if(Br(e)||!e.multi){const et=new Wa(G,r,ma),vt=op(v,t,r?me:me+Qe,Pe);-1===vt?(gu(hc(f,l),s,v),rp(s,e,t.length),t.push(v),f.directiveStart++,f.directiveEnd++,r&&(f.providerIndexes+=1048576),n.push(et),l.push(et)):(n[vt]=et,l[vt]=et)}else{const et=op(v,t,me+Qe,Pe),vt=op(v,t,me,me+Qe),Xt=vt>=0&&n[vt];if(r&&!Xt||!r&&!(et>=0&&n[et])){gu(hc(f,l),s,v);const Zt=function GO(e,t,n,i,r){const s=new Wa(e,n,ma);return s.multi=[],s.index=t,s.componentProviders=0,wb(s,r,i&&!n),s}(r?zO:$O,n.length,r,i,G);!r&&Xt&&(n[vt].providerFactory=Zt),rp(s,e,t.length,0),t.push(v),f.directiveStart++,f.directiveEnd++,r&&(f.providerIndexes+=1048576),n.push(Zt),l.push(Zt)}else rp(s,e,et>-1?et:vt,wb(n[r?vt:et],G,!r&&i));!r&&i&&Xt&&n[vt].componentProviders++}}}function rp(e,t,n,i){const r=Br(t),s=function so(e){return!!e.useClass}(t);if(r||s){const v=(s?Ut(t.useClass):t).prototype.ngOnDestroy;if(v){const G=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const me=G.indexOf(n);-1===me?G.push(n,[i,v]):G[me+1].push(i,v)}else G.push(n,v)}}}function wb(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function op(e,t,n,i){for(let r=n;r{n.providersResolver=(i,r)=>function HO(e,t,n){const i=Sn();if(i.firstCreatePass){const r=Mr(e);ip(n,i.data,i.blueprint,r,!0),ip(t,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,t)}}function Ab(e,t,n){const i=gr()+e,r=xt();return r[i]===Nn?vo(r,i,n?t.call(n):t()):function Sl(e,t){return e[t]}(r,i)}function Ob(e,t,n,i){return Nb(xt(),gr(),e,t,n,i)}function Rb(e,t,n,i,r){return kb(xt(),gr(),e,t,n,i,r)}function Pb(e,t,n,i,r,s){return Fb(xt(),gr(),e,t,n,i,r,s)}function Ul(e,t){const n=e[t];return n===Nn?void 0:n}function Nb(e,t,n,i,r,s){const l=t+n;return Ii(e,l,r)?vo(e,l+1,s?i.call(s,r):i(r)):Ul(e,l+1)}function kb(e,t,n,i,r,s,l){const f=t+n;return Ss(e,f,r,s)?vo(e,f+2,l?i.call(l,r,s):i(r,s)):Ul(e,f+2)}function Fb(e,t,n,i,r,s,l,f){const v=t+n;return function ld(e,t,n,i,r){const s=Ss(e,t,n,i);return Ii(e,t+2,r)||s}(e,v,r,s,l)?vo(e,v+3,f?i.call(f,r,s,l):i(r,s,l)):Ul(e,v+3)}function Ub(e,t){const n=Sn();let i;const r=e+Vt;n.firstCreatePass?(i=function n1(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks??=[]).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=vi(i.type)),f=li(ma);try{const v=uc(!1),G=s();return uc(v),function Jf(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,xt(),r,G),G}finally{li(f)}}function Vb(e,t,n){const i=e+Vt,r=xt(),s=yt(r,i);return Vl(r,i)?Nb(r,gr(),t,s.transform,n,s):s.transform(n)}function jb(e,t,n,i){const r=e+Vt,s=xt(),l=yt(s,r);return Vl(s,r)?kb(s,gr(),t,l.transform,n,i,l):l.transform(n,i)}function Wb(e,t,n,i,r){const s=e+Vt,l=xt(),f=yt(l,s);return Vl(l,s)?Fb(l,gr(),t,f.transform,n,i,r,f):f.transform(n,i,r)}function Vl(e,t){return e[Kt].data[t].pure}function Hb(e,t){return Yc(e,t)}class oE{full;major;minor;patch;constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}class R1{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let P1=(()=>{class e{compileModuleSync(n){return new cf(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),s=Vr(Oi(n).declarations).reduce((l,f)=>{const v=An(f);return v&&l.push(new Ml(v)),l},[]);return new R1(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(i){return new(i||e)};static \u0275prov=Tt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),F1=(()=>{class e{zone=an(_i);changeDetectionScheduler=an(mo);applicationRef=an(jr);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=Tt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function up({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new _i({...hp(),scheduleInRootZone:n}),[{provide:_i,useFactory:e},{provide:Zi,multi:!0,useFactory:()=>{const i=an(F1,{optional:!0});return()=>i.initialize()}},{provide:Zi,multi:!0,useFactory:()=>{const i=an(B1);return()=>{i.initialize()}}},!0===t?{provide:Tm,useValue:!0}:[],{provide:yu,useValue:n??wm}]}function hp(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let B1=(()=>{class e{subscription=new Nt.yU;initialized=!1;zone=an(_i);pendingTasks=an(No);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{_i.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{_i.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=Tt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Wl=(()=>{class e{appRef=an(jr);taskService=an(No);ngZone=an(_i);zonelessEnabled=an(zs);tracing=an(Qs,{optional:!0});disableScheduling=an(Tm,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Nt.yU;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(_c):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(an(yu,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Du||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&5===n)return;let i=!1;switch(n){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 8:this.appRef.deferredDirtyFlags|=8;break;case 6:case 14:this.appRef.dirtyFlags|=2,i=!0;break;case 13:this.appRef.dirtyFlags|=16,i=!0;break;case 12:i=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;const r=this.useMicrotaskScheduler?Om:Am;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(_c+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(n),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Om(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(i){return new(i||e)};static \u0275prov=Tt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const pp=new qt("",{providedIn:"root",factory:()=>an(pp,bn.Optional|bn.SkipSelf)||function U1(){return typeof $localize<"u"&&$localize.locale||bd}()}),V1=new qt("",{providedIn:"root",factory:()=>"USD"}),Sd=new qt(""),z1=new qt("");function Hl(e){return!e.moduleRef}let ns=null;function Z1(){return!1}let gE=(()=>class e{static __NG_ELEMENT_ID__=J1})();function J1(e){return function q1(e,t,n){if(Vi(e)&&!n){const i=Yt(e.index,t);return new pl(i,i)}return 175&e.type?new pl(t[ue],t):null}(jn(),xt(),!(16&~e))}class bE{constructor(){}supports(t){return ad(t)}create(t){return new rR(t)}}const iR=(e,t)=>t;class rR{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||iR}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,r=0,s=null;for(;n||i;){const l=!i||n&&n.currentIndex{l=this._trackByFn(r,f),null!==n&&Object.is(n.trackById,l)?(i&&(n=this._verifyReinsertion(n,f,l,r)),Object.is(n.item,f)||this._addIdentityChange(n,f)):(n=this._mismatch(n,f,l,r),i=!0),n=n._next,r++}),this.length=r;return this._truncate(n),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,n,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,r)):t=this._addAfter(new oR(n,i),s,r),t}_verifyReinsertion(t,n,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}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,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const r=null===n?this._itHead:n._next;return t._next=r,t._prev=n,null===r?this._itTail=t:r._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new EE),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 n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new EE),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,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class oR{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}}class sR{_head=null;_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,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class EE{map=new Map;put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new sR,this.map.set(n,i)),i.add(t)}get(t,n){const r=this.map.get(t);return r?r.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function CE(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i{if(n&&n.key===r)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(r,i);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;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,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,n);const s=r._prev,l=r._next;return s&&(s._next=l),l&&(l._prev=s),r._next=null,r._prev=null,r}const i=new lR(t);return this._records.set(t,i),i.currentValue=n,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,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,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,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class lR{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t}}function xE(){return new bp([new bE])}let bp=(()=>{class e{factories;static \u0275prov=Tt({token:e,providedIn:"root",factory:xE});constructor(n){this.factories=n}static create(n,i){if(null!=i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||xE()),deps:[[e,new Ei,new yi]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(null!=i)return i;throw new rt(901,!1)}}return e})();function IE(){return new Ep([new DE])}let Ep=(()=>{class e{static \u0275prov=Tt({token:e,providedIn:"root",factory:IE});factories;constructor(n){this.factories=n}static create(n,i){if(i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||IE()),deps:[[e,new Ei,new yi]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(i)return i;throw new rt(901,!1)}}return e})();function CR(e){try{const{rootComponent:t,appProviders:n,platformProviders:i}=e,r=function Q1(e=[]){if(ns)return ns;const t=function fE(e=[],t){return zi.create({name:t,providers:[{provide:ur,useValue:"platform"},{provide:Sd,useValue:new Set([()=>ns=null])},...e]})}(e);return ns=t,function R0(){!function X(e){q=e}(()=>{throw new rt(600,!1)})}(),function pE(e){const t=e.get(Ou,null);Us(e,()=>{t?.forEach(n=>n())})}(t),t}(i),s=[up({}),{provide:mo,useExisting:Wl},...n||[]];return function dE(e){const t=Hl(e)?e.r3Injector:e.moduleRef.injector,n=t.get(_i);return n.run(()=>{Hl(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const i=t.get(Fo,null);let r;if(n.runOutsideAngular(()=>{r=n.onError.subscribe({next:s=>{i.handleError(s)}})}),Hl(e)){const s=()=>t.destroy(),l=e.platformInjector.get(Sd);l.add(s),t.onDestroy(()=>{r.unsubscribe(),l.delete(s)})}else{const s=()=>e.moduleRef.destroy(),l=e.platformInjector.get(Sd);l.add(s),e.moduleRef.onDestroy(()=>{hd(e.allPlatformModules,e.moduleRef),r.unsubscribe(),l.delete(s)})}return function K1(e,t,n){try{const i=n();return Cf(i)?i.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(i,n,()=>{const s=t.get(A0);return s.runInitializers(),s.donePromise.then(()=>{if(function jA(e){"string"==typeof e&&(by=e.toLowerCase().replace(/_/g,"-"))}(t.get(pp,bd)||bd),!t.get(z1,!0))return Hl(e)?t.get(jr):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Hl(e)){const v=t.get(jr);return void 0!==e.rootComponent&&v.bootstrap(e.rootComponent),v}return function G1(e,t){const n=e.injector.get(jr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(i=>n.bootstrap(i));else{if(!e.instance.ngDoBootstrap)throw new rt(-403,!1);e.instance.ngDoBootstrap(n)}t.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({r3Injector:new Qv({providers:s,parent:r,debugName:"",runEnvironmentInitializers:!1}).injector,platformInjector:r,rootComponent:t})}catch(t){return Promise.reject(t)}}let KE=!1;function $R(){const e=[{provide:Ys,useFactory:()=>{let t=!0;return t=!!an($o,{optional:!0})?.get(Zu,null),t&&Gi("NgHydration"),t}},{provide:Zi,useValue:()=>{(function dv(e){lv=e})(!1),an(Ys)&&(function zR(){const e=go();let t;for(const n of e.body.childNodes)if(n.nodeType===Node.COMMENT_NODE&&n.textContent?.trim()===JD){t=n;break}if(!t)throw new rt(-507,!1)}(),function UR(){KE||(KE=!0,function ex(){Ag=qD}(),function OA(){my=AA}(),function UO(){gb=BO}(),function NA(){gy=PA}(),function uS(){u0=dS}(),function Mw(){Sv=Iw,Zh=xw}(),function ZM(){pv=QM}(),function CI(){M_=EI}())}())},multi:!0}];return e.push({provide:lg,useFactory:()=>an(Ys)},{provide:Ol,useFactory:()=>{if(an(Ys)){const t=an(jr);return()=>{(function WR(e){return e.whenStable()})(t).then(()=>{t.destroyed||function fv(e){const t=e._views;for(const n of t){const i=Rg(n);null!==i&&null!==i[Hn]&&(Jn(i)?ed(i):$h(i))}}(t)})}}return()=>{}},multi:!0}),Lr(e)}function GR(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function KR(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function Pa(e,t){Gi("NgSignals");const n=ve(e);return t?.equal&&(n[C].equal=t.equal),n}function is(e){const t=x(null);try{return e()}finally{x(t)}}let qE=(()=>class e{view;node;constructor(n,i){this.view=n,this.node=i}static __NG_ELEMENT_ID__=JR})();function JR(){return new qE(xt(),jn())}let eP=(()=>{class e extends O0{pendingTasks=an(No);taskId=null;schedule(n){super.schedule(n),null===this.taskId&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()))}flush(){try{super.flush()}finally{null!==this.taskId&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}static \u0275prov=Tt({token:e,providedIn:"root",factory:()=>new e})}return e})();class tP{scheduler;effectFn;zone;injector;unregisterOnDestroy;watcher;constructor(t,n,i,r,s,l){this.scheduler=t,this.effectFn=n,this.zone=i,this.injector=s,this.watcher=function Y(e,t,n){const i=Object.create(De);n&&(i.consumerAllowSignalWrites=!0),i.fn=e,i.schedule=t;const r=v=>{i.cleanupFn=v};return i.ref={notify:()=>W(i),run:()=>{if(null===i.fn)return;if(function p(){return d}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(i.dirty=!1,i.hasRun&&!Z(i))return;i.hasRun=!0;const v=de(i);try{i.cleanupFn(),i.cleanupFn=Re,i.fn(r)}finally{ie(i,v)}},cleanup:()=>i.cleanupFn(),destroy:()=>function l(v){(function s(v){return null===v.fn&&null===v.schedule})(v)||(ae(v),v.cleanupFn(),v.fn=null,v.schedule=null,v.cleanupFn=Re)}(i),[C]:i},i.ref}(f=>this.runEffect(f),()=>this.schedule(),l),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(Fo,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}let xp=!1;class rP{[C];constructor(t){this[C]=t}destroy(){this[C].destroy()}}function Ip(e,t){if(xp)return function iP(e,t){Gi("NgSignals"),!t?.injector&&Io();const n=t?.injector??an(zi),i=!0!==t?.manualCleanup?n.get(Po):null,r=new tP(n.get(eP),e,typeof Zone>"u"?null:Zone.current,i,n,t?.allowSignalWrites??!1),s=n.get(gE,null,{optional:!0});return s&&8&s._lView[vn]?(s._lView[Yn]??=[]).push(r.watcher.notify):r.watcher.notify(),r}(e,t);Gi("NgSignals"),!t?.injector&&Io();const n=t?.injector??an(zi);let r,i=!0!==t?.manualCleanup?n.get(Po):null;const s=n.get(qE,null,{optional:!0}),l=n.get(mo);return null===s||t?.forceRoot?r=function lP(e,t,n){const i=Object.create(oP);return i.fn=e,i.scheduler=t,i.notifier=n,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.schedule(i),i.notifier.notify(13),i}(e,n.get(xf),l):(r=function aP(e,t,n){const i=Object.create(sP);return i.view=e,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=t,i.fn=n,e[Pn]??=new Set,e[Pn].add(i),i.consumerMarkedDirty(i),i}(s.view,l,e),i instanceof Sm&&i._lView===s.view&&(i=null)),r.injector=n,null!==i&&(r.onDestroyFn=i.onDestroy(()=>r.destroy())),new rP(r)}const eC={...y,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:Ga,run(){if(this.dirty=!1,this.hasRun&&!Z(this))return;this.hasRun=!0;const e=i=>(this.cleanupFns??=[]).push(i),t=de(this),n=ac(!1);try{this.maybeCleanup(),this.fn(e)}finally{ac(n),ie(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}},oP={...eC,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){ae(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}},sP={...eC,consumerMarkedDirty(){this.view[vn]|=8192,ho(this.view),this.notifier.notify(14)},destroy(){ae(this),this.onDestroyFn(),this.maybeCleanup(),this.view[Pn]?.delete(this)}};function gP(e,t){const n=An(e),i=t.elementInjector||Do();return new Ml(n).create(i,t.projectableNodes,t.hostElement,t.environmentInjector)}function _P(e){const t=An(e);if(!t)return null;const n=new Ml(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},9417:(ut,Ie,a)=>{"use strict";a.d(Ie,{BC:()=>nt,JD:()=>Er,MJ:()=>hn,MR:()=>li,X1:()=>Lr,YN:()=>Ji,cV:()=>wt,cb:()=>ht,j4:()=>oi,k0:()=>Z,kq:()=>p,l_:()=>ar,me:()=>T,ok:()=>Oi,qT:()=>sr,vO:()=>tt,vS:()=>ti});var o=a(4438),c=a(177),O=a(6648),d=a(7468),w=a(1413),C=a(6354);let x=(()=>{class he{_renderer;_elementRef;onChange=U=>{};onTouched=()=>{};constructor(U,Ne){this._renderer=U,this._elementRef=Ne}setProperty(U,Ne){this._renderer.setProperty(this._elementRef.nativeElement,U,Ne)}registerOnTouched(U){this.onTouched=U}registerOnChange(U){this.onChange=U}setDisabledState(U){this.setProperty("disabled",U)}static \u0275fac=function(Ne){return new(Ne||he)(o.rXU(o.sFG),o.rXU(o.aKT))};static \u0275dir=o.FsC({type:he})}return he})(),D=(()=>{class he extends x{static \u0275fac=(()=>{let U;return function(st){return(U||(U=o.xGo(he)))(st||he)}})();static \u0275dir=o.FsC({type:he,features:[o.Vt3]})}return he})();const p=new o.nKC(""),h={provide:p,useExisting:(0,o.Rfq)(()=>T),multi:!0},P=new o.nKC("");let T=(()=>{class he extends x{_compositionMode;_composing=!1;constructor(U,Ne,st){super(U,Ne),this._compositionMode=st,null==this._compositionMode&&(this._compositionMode=!function u(){const he=(0,c.QT)()?(0,c.QT)().getUserAgent():"";return/android (\d+)/.test(he.toLowerCase())}())}writeValue(U){this.setProperty("value",U??"")}_handleInput(U){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(U)}_compositionStart(){this._composing=!0}_compositionEnd(U){this._composing=!1,this._compositionMode&&this.onChange(U)}static \u0275fac=function(Ne){return new(Ne||he)(o.rXU(o.sFG),o.rXU(o.aKT),o.rXU(P,8))};static \u0275dir=o.FsC({type:he,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(Ne,st){1&Ne&&o.bIt("input",function(On){return st._handleInput(On.target.value)})("blur",function(){return st.onTouched()})("compositionstart",function(){return st._compositionStart()})("compositionend",function(On){return st._compositionEnd(On.target.value)})},standalone:!1,features:[o.Jv_([h]),o.Vt3]})}return he})();function E(he){return null==he||("string"==typeof he||Array.isArray(he))&&0===he.length}function W(he){return null!=he&&"number"==typeof he.length}const ne=new o.nKC(""),de=new o.nKC(""),ie=/^(?=.{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 Z{static min(pe){return function ae(he){return pe=>{if(E(pe.value)||E(he))return null;const U=parseFloat(pe.value);return!isNaN(U)&&U{if(E(pe.value)||E(he))return null;const U=parseFloat(pe.value);return!isNaN(U)&&U>he?{max:{max:he,actual:pe.value}}:null}}(pe)}static required(pe){return function _e(he){return E(he.value)?{required:!0}:null}(pe)}static requiredTrue(pe){return function Ce(he){return!0===he.value?null:{required:!0}}(pe)}static email(pe){return function Ae(he){return E(he.value)||ie.test(he.value)?null:{email:!0}}(pe)}static minLength(pe){return function ke(he){return pe=>E(pe.value)||!W(pe.value)?null:pe.value.lengthW(pe.value)&&pe.value.length>he?{maxlength:{requiredLength:he,actualLength:pe.value.length}}:null}(pe)}static pattern(pe){return function ve(he){if(!he)return ye;let pe,U;return"string"==typeof he?(U="","^"!==he.charAt(0)&&(U+="^"),U+=he,"$"!==he.charAt(he.length-1)&&(U+="$"),pe=new RegExp(U)):(U=he.toString(),pe=he),Ne=>{if(E(Ne.value))return null;const st=Ne.value;return pe.test(st)?null:{pattern:{requiredPattern:U,actualValue:st}}}}(pe)}static nullValidator(pe){return null}static compose(pe){return X(pe)}static composeAsync(pe){return N(pe)}}function ye(he){return null}function Se(he){return null!=he}function z(he){return(0,o.jNT)(he)?(0,O.H)(he):he}function te(he){let pe={};return he.forEach(U=>{pe=null!=U?{...pe,...U}:pe}),0===Object.keys(pe).length?null:pe}function L(he,pe){return pe.map(U=>U(he))}function J(he){return he.map(pe=>function q(he){return!he.validate}(pe)?pe:U=>pe.validate(U))}function X(he){if(!he)return null;const pe=he.filter(Se);return 0==pe.length?null:function(U){return te(L(U,pe))}}function K(he){return null!=he?X(J(he)):null}function N(he){if(!he)return null;const pe=he.filter(Se);return 0==pe.length?null:function(U){const Ne=L(U,pe).map(z);return(0,d.p)(Ne).pipe((0,C.T)(te))}}function V(he){return null!=he?N(J(he)):null}function I(he,pe){return null===he?[pe]:Array.isArray(he)?[...he,pe]:[he,pe]}function M(he){return he._rawValidators}function j(he){return he._rawAsyncValidators}function ge(he){return he?Array.isArray(he)?he:[he]:[]}function Me(he,pe){return Array.isArray(he)?he.includes(pe):he===pe}function oe(he,pe){const U=ge(pe);return ge(he).forEach(st=>{Me(U,st)||U.push(st)}),U}function R(he,pe){return ge(pe).filter(U=>!Me(he,U))}class se{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(pe){this._rawValidators=pe||[],this._composedValidatorFn=K(this._rawValidators)}_setAsyncValidators(pe){this._rawAsyncValidators=pe||[],this._composedAsyncValidatorFn=V(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(pe){this._onDestroyCallbacks.push(pe)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(pe=>pe()),this._onDestroyCallbacks=[]}reset(pe=void 0){this.control&&this.control.reset(pe)}hasError(pe,U){return!!this.control&&this.control.hasError(pe,U)}getError(pe,U){return this.control?this.control.getError(pe,U):null}}class Ee extends se{name;get formDirective(){return null}get path(){return null}}class tt extends se{_parent=null;name=null;valueAccessor=null}class Y{_cd;constructor(pe){this._cd=pe}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let nt=(()=>{class he extends Y{constructor(U){super(U)}static \u0275fac=function(Ne){return new(Ne||he)(o.rXU(tt,2))};static \u0275dir=o.FsC({type:he,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ne,st){2&Ne&&o.AVh("ng-untouched",st.isUntouched)("ng-touched",st.isTouched)("ng-pristine",st.isPristine)("ng-dirty",st.isDirty)("ng-valid",st.isValid)("ng-invalid",st.isInvalid)("ng-pending",st.isPending)},standalone:!1,features:[o.Vt3]})}return he})(),ht=(()=>{class he extends Y{constructor(U){super(U)}static \u0275fac=function(Ne){return new(Ne||he)(o.rXU(Ee,10))};static \u0275dir=o.FsC({type:he,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ne,st){2&Ne&&o.AVh("ng-untouched",st.isUntouched)("ng-touched",st.isTouched)("ng-pristine",st.isPristine)("ng-dirty",st.isDirty)("ng-valid",st.isValid)("ng-invalid",st.isInvalid)("ng-pending",st.isPending)("ng-submitted",st.isSubmitted)},standalone:!1,features:[o.Vt3]})}return he})();const It="VALID",Ft="INVALID",kt="PENDING",Qt="DISABLED";class rn{}class nn extends rn{value;source;constructor(pe,U){super(),this.value=pe,this.source=U}}class $e extends rn{pristine;source;constructor(pe,U){super(),this.pristine=pe,this.source=U}}class lt extends rn{touched;source;constructor(pe,U){super(),this.touched=pe,this.source=U}}class Te extends rn{status;source;constructor(pe,U){super(),this.status=pe,this.source=U}}class He extends rn{source;constructor(pe){super(),this.source=pe}}class at extends rn{source;constructor(pe){super(),this.source=pe}}function Lt(he){return(mt(he)?he.validators:he)||null}function Un(he,pe){return(mt(pe)?pe.asyncValidators:he)||null}function mt(he){return null!=he&&!Array.isArray(he)&&"object"==typeof he}function We(he,pe,U){const Ne=he.controls;if(!(pe?Object.keys(Ne):Ne).length)throw new o.wOt(1e3,"");if(!Ne[U])throw new o.wOt(1001,"")}function it(he,pe,U){he._forEachChild((Ne,st)=>{if(void 0===U[st])throw new o.wOt(1002,"")})}class bt{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(pe,U){this._assignValidators(pe),this._assignAsyncValidators(U)}get validator(){return this._composedValidatorFn}set validator(pe){this._rawValidators=this._composedValidatorFn=pe}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(pe){this._rawAsyncValidators=this._composedAsyncValidatorFn=pe}get parent(){return this._parent}get status(){return(0,o.O8t)(this.statusReactive)}set status(pe){(0,o.O8t)(()=>this.statusReactive.set(pe))}_status=(0,o.EWP)(()=>this.statusReactive());statusReactive=(0,o.vPA)(void 0);get valid(){return this.status===It}get invalid(){return this.status===Ft}get pending(){return this.status==kt}get disabled(){return this.status===Qt}get enabled(){return this.status!==Qt}errors;get pristine(){return(0,o.O8t)(this.pristineReactive)}set pristine(pe){(0,o.O8t)(()=>this.pristineReactive.set(pe))}_pristine=(0,o.EWP)(()=>this.pristineReactive());pristineReactive=(0,o.vPA)(!0);get dirty(){return!this.pristine}get touched(){return(0,o.O8t)(this.touchedReactive)}set touched(pe){(0,o.O8t)(()=>this.touchedReactive.set(pe))}_touched=(0,o.EWP)(()=>this.touchedReactive());touchedReactive=(0,o.vPA)(!1);get untouched(){return!this.touched}_events=new w.B;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(pe){this._assignValidators(pe)}setAsyncValidators(pe){this._assignAsyncValidators(pe)}addValidators(pe){this.setValidators(oe(pe,this._rawValidators))}addAsyncValidators(pe){this.setAsyncValidators(oe(pe,this._rawAsyncValidators))}removeValidators(pe){this.setValidators(R(pe,this._rawValidators))}removeAsyncValidators(pe){this.setAsyncValidators(R(pe,this._rawAsyncValidators))}hasValidator(pe){return Me(this._rawValidators,pe)}hasAsyncValidator(pe){return Me(this._rawAsyncValidators,pe)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(pe={}){const U=!1===this.touched;this.touched=!0;const Ne=pe.sourceControl??this;this._parent&&!pe.onlySelf&&this._parent.markAsTouched({...pe,sourceControl:Ne}),U&&!1!==pe.emitEvent&&this._events.next(new lt(!0,Ne))}markAllAsTouched(pe={}){this.markAsTouched({onlySelf:!0,emitEvent:pe.emitEvent,sourceControl:this}),this._forEachChild(U=>U.markAllAsTouched(pe))}markAsUntouched(pe={}){const U=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const Ne=pe.sourceControl??this;this._forEachChild(st=>{st.markAsUntouched({onlySelf:!0,emitEvent:pe.emitEvent,sourceControl:Ne})}),this._parent&&!pe.onlySelf&&this._parent._updateTouched(pe,Ne),U&&!1!==pe.emitEvent&&this._events.next(new lt(!1,Ne))}markAsDirty(pe={}){const U=!0===this.pristine;this.pristine=!1;const Ne=pe.sourceControl??this;this._parent&&!pe.onlySelf&&this._parent.markAsDirty({...pe,sourceControl:Ne}),U&&!1!==pe.emitEvent&&this._events.next(new $e(!1,Ne))}markAsPristine(pe={}){const U=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const Ne=pe.sourceControl??this;this._forEachChild(st=>{st.markAsPristine({onlySelf:!0,emitEvent:pe.emitEvent})}),this._parent&&!pe.onlySelf&&this._parent._updatePristine(pe,Ne),U&&!1!==pe.emitEvent&&this._events.next(new $e(!0,Ne))}markAsPending(pe={}){this.status=kt;const U=pe.sourceControl??this;!1!==pe.emitEvent&&(this._events.next(new Te(this.status,U)),this.statusChanges.emit(this.status)),this._parent&&!pe.onlySelf&&this._parent.markAsPending({...pe,sourceControl:U})}disable(pe={}){const U=this._parentMarkedDirty(pe.onlySelf);this.status=Qt,this.errors=null,this._forEachChild(st=>{st.disable({...pe,onlySelf:!0})}),this._updateValue();const Ne=pe.sourceControl??this;!1!==pe.emitEvent&&(this._events.next(new nn(this.value,Ne)),this._events.next(new Te(this.status,Ne)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...pe,skipPristineCheck:U},this),this._onDisabledChange.forEach(st=>st(!0))}enable(pe={}){const U=this._parentMarkedDirty(pe.onlySelf);this.status=It,this._forEachChild(Ne=>{Ne.enable({...pe,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:pe.emitEvent}),this._updateAncestors({...pe,skipPristineCheck:U},this),this._onDisabledChange.forEach(Ne=>Ne(!1))}_updateAncestors(pe,U){this._parent&&!pe.onlySelf&&(this._parent.updateValueAndValidity(pe),pe.skipPristineCheck||this._parent._updatePristine({},U),this._parent._updateTouched({},U))}setParent(pe){this._parent=pe}getRawValue(){return this.value}updateValueAndValidity(pe={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const Ne=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===It||this.status===kt)&&this._runAsyncValidator(Ne,pe.emitEvent)}const U=pe.sourceControl??this;!1!==pe.emitEvent&&(this._events.next(new nn(this.value,U)),this._events.next(new Te(this.status,U)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!pe.onlySelf&&this._parent.updateValueAndValidity({...pe,sourceControl:U})}_updateTreeValidity(pe={emitEvent:!0}){this._forEachChild(U=>U._updateTreeValidity(pe)),this.updateValueAndValidity({onlySelf:!0,emitEvent:pe.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qt:It}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(pe,U){if(this.asyncValidator){this.status=kt,this._hasOwnPendingAsyncValidator={emitEvent:!1!==U};const Ne=z(this.asyncValidator(this));this._asyncValidationSubscription=Ne.subscribe(st=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(st,{emitEvent:U,shouldHaveEmitted:pe})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const pe=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,pe}return!1}setErrors(pe,U={}){this.errors=pe,this._updateControlsErrors(!1!==U.emitEvent,this,U.shouldHaveEmitted)}get(pe){let U=pe;return null==U||(Array.isArray(U)||(U=U.split(".")),0===U.length)?null:U.reduce((Ne,st)=>Ne&&Ne._find(st),this)}getError(pe,U){const Ne=U?this.get(U):this;return Ne&&Ne.errors?Ne.errors[pe]:null}hasError(pe,U){return!!this.getError(pe,U)}get root(){let pe=this;for(;pe._parent;)pe=pe._parent;return pe}_updateControlsErrors(pe,U,Ne){this.status=this._calculateStatus(),pe&&this.statusChanges.emit(this.status),(pe||Ne)&&this._events.next(new Te(this.status,U)),this._parent&&this._parent._updateControlsErrors(pe,U,Ne)}_initObservables(){this.valueChanges=new o.bkB,this.statusChanges=new o.bkB}_calculateStatus(){return this._allControlsDisabled()?Qt:this.errors?Ft:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(kt)?kt:this._anyControlsHaveStatus(Ft)?Ft:It}_anyControlsHaveStatus(pe){return this._anyControls(U=>U.status===pe)}_anyControlsDirty(){return this._anyControls(pe=>pe.dirty)}_anyControlsTouched(){return this._anyControls(pe=>pe.touched)}_updatePristine(pe,U){const Ne=!this._anyControlsDirty(),st=this.pristine!==Ne;this.pristine=Ne,this._parent&&!pe.onlySelf&&this._parent._updatePristine(pe,U),st&&this._events.next(new $e(this.pristine,U))}_updateTouched(pe={},U){this.touched=this._anyControlsTouched(),this._events.next(new lt(this.touched,U)),this._parent&&!pe.onlySelf&&this._parent._updateTouched(pe,U)}_onDisabledChange=[];_registerOnCollectionChange(pe){this._onCollectionChange=pe}_setUpdateStrategy(pe){mt(pe)&&null!=pe.updateOn&&(this._updateOn=pe.updateOn)}_parentMarkedDirty(pe){return!pe&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(pe){return null}_assignValidators(pe){this._rawValidators=Array.isArray(pe)?pe.slice():pe,this._composedValidatorFn=function Ut(he){return Array.isArray(he)?K(he):he||null}(this._rawValidators)}_assignAsyncValidators(pe){this._rawAsyncValidators=Array.isArray(pe)?pe.slice():pe,this._composedAsyncValidatorFn=function pt(he){return Array.isArray(he)?V(he):he||null}(this._rawAsyncValidators)}}class ct extends bt{constructor(pe,U,Ne){super(Lt(U),Un(Ne,U)),this.controls=pe,this._initObservables(),this._setUpdateStrategy(U),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(pe,U){return this.controls[pe]?this.controls[pe]:(this.controls[pe]=U,U.setParent(this),U._registerOnCollectionChange(this._onCollectionChange),U)}addControl(pe,U,Ne={}){this.registerControl(pe,U),this.updateValueAndValidity({emitEvent:Ne.emitEvent}),this._onCollectionChange()}removeControl(pe,U={}){this.controls[pe]&&this.controls[pe]._registerOnCollectionChange(()=>{}),delete this.controls[pe],this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}setControl(pe,U,Ne={}){this.controls[pe]&&this.controls[pe]._registerOnCollectionChange(()=>{}),delete this.controls[pe],U&&this.registerControl(pe,U),this.updateValueAndValidity({emitEvent:Ne.emitEvent}),this._onCollectionChange()}contains(pe){return this.controls.hasOwnProperty(pe)&&this.controls[pe].enabled}setValue(pe,U={}){it(this,0,pe),Object.keys(pe).forEach(Ne=>{We(this,!0,Ne),this.controls[Ne].setValue(pe[Ne],{onlySelf:!0,emitEvent:U.emitEvent})}),this.updateValueAndValidity(U)}patchValue(pe,U={}){null!=pe&&(Object.keys(pe).forEach(Ne=>{const st=this.controls[Ne];st&&st.patchValue(pe[Ne],{onlySelf:!0,emitEvent:U.emitEvent})}),this.updateValueAndValidity(U))}reset(pe={},U={}){this._forEachChild((Ne,st)=>{Ne.reset(pe?pe[st]:null,{onlySelf:!0,emitEvent:U.emitEvent})}),this._updatePristine(U,this),this._updateTouched(U,this),this.updateValueAndValidity(U)}getRawValue(){return this._reduceChildren({},(pe,U,Ne)=>(pe[Ne]=U.getRawValue(),pe))}_syncPendingControls(){let pe=this._reduceChildren(!1,(U,Ne)=>!!Ne._syncPendingControls()||U);return pe&&this.updateValueAndValidity({onlySelf:!0}),pe}_forEachChild(pe){Object.keys(this.controls).forEach(U=>{const Ne=this.controls[U];Ne&&pe(Ne,U)})}_setUpControls(){this._forEachChild(pe=>{pe.setParent(this),pe._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(pe){for(const[U,Ne]of Object.entries(this.controls))if(this.contains(U)&&pe(Ne))return!0;return!1}_reduceValue(){return this._reduceChildren({},(U,Ne,st)=>((Ne.enabled||this.disabled)&&(U[st]=Ne.value),U))}_reduceChildren(pe,U){let Ne=pe;return this._forEachChild((st,fn)=>{Ne=U(Ne,st,fn)}),Ne}_allControlsDisabled(){for(const pe of Object.keys(this.controls))if(this.controls[pe].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(pe){return this.controls.hasOwnProperty(pe)?this.controls[pe]:null}}class H extends ct{}const Oe=new o.nKC("",{providedIn:"root",factory:()=>je}),je="always";function Ze(he,pe){return[...pe.path,he]}function dt(he,pe,U=je){St(he,pe),pe.valueAccessor.writeValue(he.value),(he.disabled||"always"===U)&&pe.valueAccessor.setDisabledState?.(he.disabled),function Tt(he,pe){pe.valueAccessor.registerOnChange(U=>{he._pendingValue=U,he._pendingChange=!0,he._pendingDirty=!0,"change"===he.updateOn&&zt(he,pe)})}(he,pe),function Jt(he,pe){const U=(Ne,st)=>{pe.valueAccessor.writeValue(Ne),st&&pe.viewToModelUpdate(Ne)};he.registerOnChange(U),pe._registerOnDestroy(()=>{he._unregisterOnChange(U)})}(he,pe),function Gt(he,pe){pe.valueAccessor.registerOnTouched(()=>{he._pendingTouched=!0,"blur"===he.updateOn&&he._pendingChange&&zt(he,pe),"submit"!==he.updateOn&&he.markAsTouched()})}(he,pe),function At(he,pe){if(pe.valueAccessor.setDisabledState){const U=Ne=>{pe.valueAccessor.setDisabledState(Ne)};he.registerOnDisabledChange(U),pe._registerOnDestroy(()=>{he._unregisterOnDisabledChange(U)})}}(he,pe)}function _t(he,pe,U=!0){const Ne=()=>{};pe.valueAccessor&&(pe.valueAccessor.registerOnChange(Ne),pe.valueAccessor.registerOnTouched(Ne)),Bt(he,pe),he&&(pe._invokeOnDestroyCallbacks(),he._registerOnCollectionChange(()=>{}))}function Ct(he,pe){he.forEach(U=>{U.registerOnValidatorChange&&U.registerOnValidatorChange(pe)})}function St(he,pe){const U=M(he);null!==pe.validator?he.setValidators(I(U,pe.validator)):"function"==typeof U&&he.setValidators([U]);const Ne=j(he);null!==pe.asyncValidator?he.setAsyncValidators(I(Ne,pe.asyncValidator)):"function"==typeof Ne&&he.setAsyncValidators([Ne]);const st=()=>he.updateValueAndValidity();Ct(pe._rawValidators,st),Ct(pe._rawAsyncValidators,st)}function Bt(he,pe){let U=!1;if(null!==he){if(null!==pe.validator){const st=M(he);if(Array.isArray(st)&&st.length>0){const fn=st.filter(On=>On!==pe.validator);fn.length!==st.length&&(U=!0,he.setValidators(fn))}}if(null!==pe.asyncValidator){const st=j(he);if(Array.isArray(st)&&st.length>0){const fn=st.filter(On=>On!==pe.asyncValidator);fn.length!==st.length&&(U=!0,he.setAsyncValidators(fn))}}}const Ne=()=>{};return Ct(pe._rawValidators,Ne),Ct(pe._rawAsyncValidators,Ne),U}function zt(he,pe){he._pendingDirty&&he.markAsDirty(),he.setValue(he._pendingValue,{emitModelToViewChange:!1}),pe.viewToModelUpdate(he._pendingValue),he._pendingChange=!1}function en(he,pe){St(he,pe)}function Mn(he,pe){if(!he.hasOwnProperty("model"))return!1;const U=he.model;return!!U.isFirstChange()||!Object.is(pe,U.currentValue)}function gn(he,pe){he._syncPendingControls(),pe.forEach(U=>{const Ne=U.control;"submit"===Ne.updateOn&&Ne._pendingChange&&(U.viewToModelUpdate(Ne._pendingValue),Ne._pendingChange=!1)})}function In(he,pe){if(!pe)return null;let U,Ne,st;return Array.isArray(pe),pe.forEach(fn=>{fn.constructor===T?U=fn:function qt(he){return Object.getPrototypeOf(he.constructor)===D}(fn)?Ne=fn:st=fn}),st||Ne||U||null}const Ge={provide:Ee,useExisting:(0,o.Rfq)(()=>wt)},gt=Promise.resolve();let wt=(()=>{class he extends Ee{callSetDisabledState;get submitted(){return(0,o.O8t)(this.submittedReactive)}_submitted=(0,o.EWP)(()=>this.submittedReactive());submittedReactive=(0,o.vPA)(!1);_directives=new Set;form;ngSubmit=new o.bkB;options;constructor(U,Ne,st){super(),this.callSetDisabledState=st,this.form=new ct({},K(U),V(Ne))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(U){gt.then(()=>{const Ne=this._findContainer(U.path);U.control=Ne.registerControl(U.name,U.control),dt(U.control,U,this.callSetDisabledState),U.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(U)})}getControl(U){return this.form.get(U.path)}removeControl(U){gt.then(()=>{const Ne=this._findContainer(U.path);Ne&&Ne.removeControl(U.name),this._directives.delete(U)})}addFormGroup(U){gt.then(()=>{const Ne=this._findContainer(U.path),st=new ct({});en(st,U),Ne.registerControl(U.name,st),st.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(U){gt.then(()=>{const Ne=this._findContainer(U.path);Ne&&Ne.removeControl(U.name)})}getFormGroup(U){return this.form.get(U.path)}updateModel(U,Ne){gt.then(()=>{this.form.get(U.path).setValue(Ne)})}setValue(U){this.control.setValue(U)}onSubmit(U){return this.submittedReactive.set(!0),gn(this.form,this._directives),this.ngSubmit.emit(U),"dialog"===U?.target?.method}onReset(){this.resetForm()}resetForm(U=void 0){this.form.reset(U),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(U){return U.pop(),U.length?this.form.get(U):this.form}static \u0275fac=function(Ne){return new(Ne||he)(o.rXU(ne,10),o.rXU(de,10),o.rXU(Oe,8))};static \u0275dir=o.FsC({type:he,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ne,st){1&Ne&&o.bIt("submit",function(On){return st.onSubmit(On)})("reset",function(){return st.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[o.Jv_([Ge]),o.Vt3]})}return he})();function Wt(he,pe){const U=he.indexOf(pe);U>-1&&he.splice(U,1)}function Ht(he){return"object"==typeof he&&null!==he&&2===Object.keys(he).length&&"value"in he&&"disabled"in he}const hn=class extends bt{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(pe=null,U,Ne){super(Lt(U),Un(Ne,U)),this._applyFormState(pe),this._setUpdateStrategy(U),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),mt(U)&&(U.nonNullable||U.initialValueIsDefault)&&(this.defaultValue=Ht(pe)?pe.value:pe)}setValue(pe,U={}){this.value=this._pendingValue=pe,this._onChange.length&&!1!==U.emitModelToViewChange&&this._onChange.forEach(Ne=>Ne(this.value,!1!==U.emitViewToModelChange)),this.updateValueAndValidity(U)}patchValue(pe,U={}){this.setValue(pe,U)}reset(pe=this.defaultValue,U={}){this._applyFormState(pe),this.markAsPristine(U),this.markAsUntouched(U),this.setValue(this.value,U),this._pendingChange=!1}_updateValue(){}_anyControls(pe){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(pe){this._onChange.push(pe)}_unregisterOnChange(pe){Wt(this._onChange,pe)}registerOnDisabledChange(pe){this._onDisabledChange.push(pe)}_unregisterOnDisabledChange(pe){Wt(this._onDisabledChange,pe)}_forEachChild(pe){}_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(pe){Ht(pe)?(this.value=this._pendingValue=pe.value,pe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=pe}},pn={provide:tt,useExisting:(0,o.Rfq)(()=>ti)},wn=Promise.resolve();let ti=(()=>{class he extends tt{_changeDetectorRef;callSetDisabledState;control=new hn;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new o.bkB;constructor(U,Ne,st,fn,On,Dr){super(),this._changeDetectorRef=On,this.callSetDisabledState=Dr,this._parent=U,this._setValidators(Ne),this._setAsyncValidators(st),this.valueAccessor=In(0,fn)}ngOnChanges(U){if(this._checkForErrors(),!this._registered||"name"in U){if(this._registered&&(this._checkName(),this.formDirective)){const Ne=U.name.previousValue;this.formDirective.removeControl({name:Ne,path:this._getPath(Ne)})}this._setUpControl()}"isDisabled"in U&&this._updateDisabled(U),Mn(U,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(U){this.viewModel=U,this.update.emit(U)}_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(){dt(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(U){wn.then(()=>{this.control.setValue(U,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(U){const Ne=U.isDisabled.currentValue,st=0!==Ne&&(0,o.L39)(Ne);wn.then(()=>{st&&!this.control.disabled?this.control.disable():!st&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(U){return this._parent?Ze(U,this._parent):[U]}static \u0275fac=function(Ne){return new(Ne||he)(o.rXU(Ee,9),o.rXU(ne,10),o.rXU(de,10),o.rXU(p,10),o.rXU(o.gRc,8),o.rXU(Oe,8))};static \u0275dir=o.FsC({type:he,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[o.Jv_([pn]),o.Vt3,o.OA$]})}return he})(),sr=(()=>{class he{static \u0275fac=function(Ne){return new(Ne||he)};static \u0275dir=o.FsC({type:he,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return he})();const pr={provide:p,useExisting:(0,o.Rfq)(()=>li),multi:!0};let li=(()=>{class he extends D{writeValue(U){this.setProperty("value",parseFloat(U))}registerOnChange(U){this.onChange=Ne=>{U(""==Ne?null:parseFloat(Ne))}}static \u0275fac=(()=>{let U;return function(st){return(U||(U=o.xGo(he)))(st||he)}})();static \u0275dir=o.FsC({type:he,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(Ne,st){1&Ne&&o.bIt("change",function(On){return st.onChange(On.target.value)})("input",function(On){return st.onChange(On.target.value)})("blur",function(){return st.onTouched()})},standalone:!1,features:[o.Jv_([pr]),o.Vt3]})}return he})();const tr=new o.nKC(""),Pr={provide:tt,useExisting:(0,o.Rfq)(()=>ar)};let ar=(()=>{class he extends tt{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(U){}model;update=new o.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(U,Ne,st,fn,On){super(),this._ngModelWarningConfig=fn,this.callSetDisabledState=On,this._setValidators(U),this._setAsyncValidators(Ne),this.valueAccessor=In(0,st)}ngOnChanges(U){if(this._isControlChanged(U)){const Ne=U.form.previousValue;Ne&&_t(Ne,this,!1),dt(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Mn(U,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&_t(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(U){this.viewModel=U,this.update.emit(U)}_isControlChanged(U){return U.hasOwnProperty("form")}static \u0275fac=function(Ne){return new(Ne||he)(o.rXU(ne,10),o.rXU(de,10),o.rXU(p,10),o.rXU(tr,8),o.rXU(Oe,8))};static \u0275dir=o.FsC({type:he,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[o.Jv_([Pr]),o.Vt3,o.OA$]})}return he})();const ji={provide:Ee,useExisting:(0,o.Rfq)(()=>oi)};let oi=(()=>{class he extends Ee{callSetDisabledState;get submitted(){return(0,o.O8t)(this._submittedReactive)}set submitted(U){this._submittedReactive.set(U)}_submitted=(0,o.EWP)(()=>this._submittedReactive());_submittedReactive=(0,o.vPA)(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new o.bkB;constructor(U,Ne,st){super(),this.callSetDisabledState=st,this._setValidators(U),this._setAsyncValidators(Ne)}ngOnChanges(U){this._checkFormPresent(),U.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Bt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(U){const Ne=this.form.get(U.path);return dt(Ne,U,this.callSetDisabledState),Ne.updateValueAndValidity({emitEvent:!1}),this.directives.push(U),Ne}getControl(U){return this.form.get(U.path)}removeControl(U){_t(U.control||null,U,!1),function Ve(he,pe){const U=he.indexOf(pe);U>-1&&he.splice(U,1)}(this.directives,U)}addFormGroup(U){this._setUpFormContainer(U)}removeFormGroup(U){this._cleanUpFormContainer(U)}getFormGroup(U){return this.form.get(U.path)}addFormArray(U){this._setUpFormContainer(U)}removeFormArray(U){this._cleanUpFormContainer(U)}getFormArray(U){return this.form.get(U.path)}updateModel(U,Ne){this.form.get(U.path).setValue(Ne)}onSubmit(U){return this._submittedReactive.set(!0),gn(this.form,this.directives),this.ngSubmit.emit(U),this.form._events.next(new He(this.control)),"dialog"===U?.target?.method}onReset(){this.resetForm()}resetForm(U=void 0){this.form.reset(U),this._submittedReactive.set(!1),this.form._events.next(new at(this.form))}_updateDomValue(){this.directives.forEach(U=>{const Ne=U.control,st=this.form.get(U.path);Ne!==st&&(_t(Ne||null,U),(he=>he instanceof hn)(st)&&(dt(st,U,this.callSetDisabledState),U.control=st))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(U){const Ne=this.form.get(U.path);en(Ne,U),Ne.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(U){if(this.form){const Ne=this.form.get(U.path);Ne&&function dn(he,pe){return Bt(he,pe)}(Ne,U)&&Ne.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){St(this.form,this),this._oldForm&&Bt(this._oldForm,this)}_checkFormPresent(){}static \u0275fac=function(Ne){return new(Ne||he)(o.rXU(ne,10),o.rXU(de,10),o.rXU(Oe,8))};static \u0275dir=o.FsC({type:he,selectors:[["","formGroup",""]],hostBindings:function(Ne,st){1&Ne&&o.bIt("submit",function(On){return st.onSubmit(On)})("reset",function(){return st.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[o.Jv_([ji]),o.Vt3,o.OA$]})}return he})();const Wi={provide:tt,useExisting:(0,o.Rfq)(()=>Er)};let Er=(()=>{class he extends tt{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(U){}model;update=new o.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(U,Ne,st,fn,On){super(),this._ngModelWarningConfig=On,this._parent=U,this._setValidators(Ne),this._setAsyncValidators(st),this.valueAccessor=In(0,fn)}ngOnChanges(U){this._added||this._setUpControl(),Mn(U,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(U){this.viewModel=U,this.update.emit(U)}get path(){return Ze(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(Ne){return new(Ne||he)(o.rXU(Ee,13),o.rXU(ne,10),o.rXU(de,10),o.rXU(p,10),o.rXU(tr,8))};static \u0275dir=o.FsC({type:he,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[o.Jv_([Wi]),o.Vt3,o.OA$]})}return he})(),Fn=(()=>{class he{static \u0275fac=function(Ne){return new(Ne||he)};static \u0275mod=o.$C({type:he});static \u0275inj=o.G2t({})}return he})();class Zi extends bt{constructor(pe,U,Ne){super(Lt(U),Un(Ne,U)),this.controls=pe,this._initObservables(),this._setUpdateStrategy(U),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(pe){return this.controls[this._adjustIndex(pe)]}push(pe,U={}){this.controls.push(pe),this._registerControl(pe),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}insert(pe,U,Ne={}){this.controls.splice(pe,0,U),this._registerControl(U),this.updateValueAndValidity({emitEvent:Ne.emitEvent})}removeAt(pe,U={}){let Ne=this._adjustIndex(pe);Ne<0&&(Ne=0),this.controls[Ne]&&this.controls[Ne]._registerOnCollectionChange(()=>{}),this.controls.splice(Ne,1),this.updateValueAndValidity({emitEvent:U.emitEvent})}setControl(pe,U,Ne={}){let st=this._adjustIndex(pe);st<0&&(st=0),this.controls[st]&&this.controls[st]._registerOnCollectionChange(()=>{}),this.controls.splice(st,1),U&&(this.controls.splice(st,0,U),this._registerControl(U)),this.updateValueAndValidity({emitEvent:Ne.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(pe,U={}){it(this,0,pe),pe.forEach((Ne,st)=>{We(this,!1,st),this.at(st).setValue(Ne,{onlySelf:!0,emitEvent:U.emitEvent})}),this.updateValueAndValidity(U)}patchValue(pe,U={}){null!=pe&&(pe.forEach((Ne,st)=>{this.at(st)&&this.at(st).patchValue(Ne,{onlySelf:!0,emitEvent:U.emitEvent})}),this.updateValueAndValidity(U))}reset(pe=[],U={}){this._forEachChild((Ne,st)=>{Ne.reset(pe[st],{onlySelf:!0,emitEvent:U.emitEvent})}),this._updatePristine(U,this),this._updateTouched(U,this),this.updateValueAndValidity(U)}getRawValue(){return this.controls.map(pe=>pe.getRawValue())}clear(pe={}){this.controls.length<1||(this._forEachChild(U=>U._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:pe.emitEvent}))}_adjustIndex(pe){return pe<0?pe+this.length:pe}_syncPendingControls(){let pe=this.controls.reduce((U,Ne)=>!!Ne._syncPendingControls()||U,!1);return pe&&this.updateValueAndValidity({onlySelf:!0}),pe}_forEachChild(pe){this.controls.forEach((U,Ne)=>{pe(U,Ne)})}_updateValue(){this.value=this.controls.filter(pe=>pe.enabled||this.disabled).map(pe=>pe.value)}_anyControls(pe){return this.controls.some(U=>U.enabled&&pe(U))}_setUpControls(){this._forEachChild(pe=>this._registerControl(pe))}_allControlsDisabled(){for(const pe of this.controls)if(pe.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(pe){pe.setParent(this),pe._registerOnCollectionChange(this._onCollectionChange)}_find(pe){return this.at(pe)??null}}function Zr(he){return!!he&&(void 0!==he.asyncValidators||void 0!==he.validators||void 0!==he.updateOn)}let Oi=(()=>{class he{useNonNullable=!1;get nonNullable(){const U=new he;return U.useNonNullable=!0,U}group(U,Ne=null){const st=this._reduceControls(U);let fn={};return Zr(Ne)?fn=Ne:null!==Ne&&(fn.validators=Ne.validator,fn.asyncValidators=Ne.asyncValidator),new ct(st,fn)}record(U,Ne=null){const st=this._reduceControls(U);return new H(st,Ne)}control(U,Ne,st){let fn={};return this.useNonNullable?(Zr(Ne)?fn=Ne:(fn.validators=Ne,fn.asyncValidators=st),new hn(U,{...fn,nonNullable:!0})):new hn(U,Ne,st)}array(U,Ne,st){const fn=U.map(On=>this._createControl(On));return new Zi(fn,Ne,st)}_reduceControls(U){const Ne={};return Object.keys(U).forEach(st=>{Ne[st]=this._createControl(U[st])}),Ne}_createControl(U){return U instanceof hn||U instanceof bt?U:Array.isArray(U)?this.control(U[0],U.length>1?U[1]:null,U.length>2?U[2]:null):this.control(U)}static \u0275fac=function(Ne){return new(Ne||he)};static \u0275prov=o.jDH({token:he,factory:he.\u0275fac,providedIn:"root"})}return he})(),Ji=(()=>{class he{static withConfig(U){return{ngModule:he,providers:[{provide:Oe,useValue:U.callSetDisabledState??je}]}}static \u0275fac=function(Ne){return new(Ne||he)};static \u0275mod=o.$C({type:he});static \u0275inj=o.G2t({imports:[Fn]})}return he})(),Lr=(()=>{class he{static withConfig(U){return{ngModule:he,providers:[{provide:tr,useValue:U.warnOnNgModelWithFormControl??"always"},{provide:Oe,useValue:U.callSetDisabledState??je}]}}static \u0275fac=function(Ne){return new(Ne||he)};static \u0275mod=o.$C({type:he});static \u0275inj=o.G2t({imports:[Fn]})}return he})()},8834:(ut,Ie,a)=>{"use strict";a.d(Ie,{$z:()=>ae,Hl:()=>te,iY:()=>Se});var o=a(4438),c=a(9888),O=a(3),d=a(9046);const w=["mat-button",""],C=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],x=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],u=["mat-icon-button",""],P=["*"],E=new o.nKC("MAT_BUTTON_CONFIG"),ne=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];let de=(()=>{class L{_elementRef=(0,o.WQX)(o.aKT);_ngZone=(0,o.WQX)(o.SKi);_animationMode=(0,o.WQX)(o.bc$,{optional:!0});_focusMonitor=(0,o.WQX)(c.FN);_rippleLoader=(0,o.WQX)(O.Ej);_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(J){this._disableRipple=J,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(J){this._disabled=J,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){(0,o.WQX)(d.l).load(O.Ah);const J=(0,o.WQX)(E,{optional:!0}),X=this._elementRef.nativeElement,K=X.classList;this.disabledInteractive=J?.disabledInteractive??!1,this.color=J?.color??null,this._rippleLoader?.configureRipple(X,{className:"mat-mdc-button-ripple"});for(const{attribute:N,mdcClasses:V}of ne)X.hasAttribute(N)&&K.add(...V)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(J="program",X){J?this._focusMonitor.focusVia(this._elementRef.nativeElement,J,X):this._elementRef.nativeElement.focus(X)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static \u0275fac=function(X){return new(X||L)};static \u0275dir=o.FsC({type:L,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",o.L39],disabled:[2,"disabled","disabled",o.L39],ariaDisabled:[2,"aria-disabled","ariaDisabled",o.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",o.L39]},features:[o.GFd]})}return L})(),ae=(()=>{class L extends de{static \u0275fac=(()=>{let J;return function(K){return(J||(J=o.xGo(L)))(K||L)}})();static \u0275cmp=o.VBU({type:L,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(X,K){2&X&&(o.BMQ("disabled",K._getDisabledAttribute())("aria-disabled",K._getAriaDisabled()),o.HbH(K.color?"mat-"+K.color:""),o.AVh("mat-mdc-button-disabled",K.disabled)("mat-mdc-button-disabled-interactive",K.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===K._animationMode)("mat-unthemed",!K.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[o.Vt3],attrs:w,ngContentSelectors:x,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(X,K){1&X&&(o.NAR(C),o.nrm(0,"span",0),o.SdG(1),o.j41(2,"span",1),o.SdG(3,1),o.k0s(),o.SdG(4,2),o.nrm(5,"span",2)(6,"span",3)),2&X&&o.AVh("mdc-button__ripple",!K._isFab)("mdc-fab__ripple",K._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;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;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.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__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width, 1px);border-style:solid;border-color:rgba(0,0,0,0)}.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-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.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}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before{content:""}.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,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0})}return L})(),Se=(()=>{class L extends de{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(X){return new(X||L)};static \u0275cmp=o.VBU({type:L,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(X,K){2&X&&(o.BMQ("disabled",K._getDisabledAttribute())("aria-disabled",K._getAriaDisabled()),o.HbH(K.color?"mat-"+K.color:""),o.AVh("mat-mdc-button-disabled",K.disabled)("mat-mdc-button-disabled-interactive",K.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===K._animationMode)("mat-unthemed",!K.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[o.Vt3],attrs:u,ngContentSelectors:P,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(X,K){1&X&&(o.NAR(),o.nrm(0,"span",0),o.SdG(1),o.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;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;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.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-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.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}',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0})}return L})(),te=(()=>{class L{static \u0275fac=function(X){return new(X||L)};static \u0275mod=o.$C({type:L});static \u0275inj=o.G2t({imports:[O.yE,O.pZ,O.yE]})}return L})()},3:(ut,Ie,a)=>{"use strict";a.d(Ie,{$E:()=>ln,Ah:()=>M,Ej:()=>rn,MI:()=>ft,QC:()=>be,Sy:()=>Je,TL:()=>Be,X0:()=>Ce,ed:()=>ae,es:()=>I,is:()=>re,jb:()=>Q,pZ:()=>rt,r5:()=>Z,r6:()=>Ot,tO:()=>nn,wT:()=>le,yE:()=>_e});var o=a(4438),c=a(9888),O=a(8203),d=a(1413),w=a(6860),C=a(4085),x=a(9046),D=a(7336),p=a(177);const h=["text"],u=[[["mat-icon"]],"*"],P=["mat-icon","*"];function T($e,lt){if(1&$e&&o.nrm(0,"mat-pseudo-checkbox",1),2&$e){const Te=o.XpG();o.Y8G("disabled",Te.disabled)("state",Te.selected?"checked":"unchecked")}}function E($e,lt){if(1&$e&&o.nrm(0,"mat-pseudo-checkbox",3),2&$e){const Te=o.XpG();o.Y8G("disabled",Te.disabled)}}function W($e,lt){if(1&$e&&(o.j41(0,"span",4),o.EFF(1),o.k0s()),2&$e){const Te=o.XpG();o.R7$(),o.SpI("(",Te.group.label,")")}}const ne=["mat-internal-form-field",""],de=["*"];let Z=(()=>class $e{static STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)";static DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)";static ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)";static SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)"})(),ae=(()=>class $e{static COMPLEX="375ms";static ENTERING="225ms";static EXITING="195ms"})(),_e=(()=>{class $e{constructor(){(0,o.WQX)(c.Q_)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(He){return new(He||$e)};static \u0275mod=o.$C({type:$e});static \u0275inj=o.G2t({imports:[O.jI,O.jI]})}return $e})();class Ce{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(lt,Te,He,at,Lt){this._defaultMatcher=lt,this.ngControl=Te,this._parentFormGroup=He,this._parentForm=at,this._stateChanges=Lt}updateErrorState(){const lt=this.errorState,Te=this._parentFormGroup||this._parentForm,He=this.matcher||this._defaultMatcher,at=this.ngControl?this.ngControl.control:null,Lt=He?.isErrorState(at,Te)??!1;Lt!==lt&&(this.errorState=Lt,this._stateChanges.next())}}let I=(()=>{class $e{isErrorState(Te,He){return!!(Te&&Te.invalid&&(Te.touched||He&&He.submitted))}static \u0275fac=function(He){return new(He||$e)};static \u0275prov=o.jDH({token:$e,factory:$e.\u0275fac,providedIn:"root"})}return $e})(),M=(()=>{class $e{static \u0275fac=function(He){return new(He||$e)};static \u0275cmp=o.VBU({type:$e,selectors:[["structural-styles"]],decls:0,vars:0,template:function(He,at){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})}return $e})();var R=function($e){return $e[$e.FADING_IN=0]="FADING_IN",$e[$e.VISIBLE=1]="VISIBLE",$e[$e.FADING_OUT=2]="FADING_OUT",$e[$e.HIDDEN=3]="HIDDEN",$e}(R||{});class se{_renderer;element;config;_animationForciblyDisabledThroughCss;state=R.HIDDEN;constructor(lt,Te,He,at=!1){this._renderer=lt,this.element=Te,this.config=He,this._animationForciblyDisabledThroughCss=at}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ee=(0,w.BQ)({passive:!0,capture:!0});class tt{_events=new Map;addHandler(lt,Te,He,at){const Lt=this._events.get(Te);if(Lt){const Ut=Lt.get(He);Ut?Ut.add(at):Lt.set(He,new Set([at]))}else this._events.set(Te,new Map([[He,new Set([at])]])),lt.runOutsideAngular(()=>{document.addEventListener(Te,this._delegateEventHandler,Ee)})}removeHandler(lt,Te,He){const at=this._events.get(lt);if(!at)return;const Lt=at.get(Te);Lt&&(Lt.delete(He),0===Lt.size&&at.delete(Te),0===at.size&&(this._events.delete(lt),document.removeEventListener(lt,this._delegateEventHandler,Ee)))}_delegateEventHandler=lt=>{const Te=(0,w.Fb)(lt);Te&&this._events.get(lt.type)?.forEach((He,at)=>{(at===Te||at.contains(Te))&&He.forEach(Lt=>Lt.handleEvent(lt))})}}const Y={enterDuration:225,exitDuration:150},De=(0,w.BQ)({passive:!0,capture:!0}),nt=["mousedown","touchstart"],ht=["mouseup","mouseleave","touchend","touchcancel"];let jt=(()=>{class $e{static \u0275fac=function(He){return new(He||$e)};static \u0275cmp=o.VBU({type:$e,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(He,at){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})}return $e})();class Nt{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new tt;constructor(lt,Te,He,at,Lt){this._target=lt,this._ngZone=Te,this._platform=at,at.isBrowser&&(this._containerElement=(0,C.i8)(He)),Lt&&Lt.get(x.l).load(jt)}fadeInRipple(lt,Te,He={}){const at=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Lt={...Y,...He.animation};He.centered&&(lt=at.left+at.width/2,Te=at.top+at.height/2);const Ut=He.radius||function on($e,lt,Te){const He=Math.max(Math.abs($e-Te.left),Math.abs($e-Te.right)),at=Math.max(Math.abs(lt-Te.top),Math.abs(lt-Te.bottom));return Math.sqrt(He*He+at*at)}(lt,Te,at),Un=lt-at.left,pt=Te-at.top,mt=Lt.enterDuration,We=document.createElement("div");We.classList.add("mat-ripple-element"),We.style.left=Un-Ut+"px",We.style.top=pt-Ut+"px",We.style.height=2*Ut+"px",We.style.width=2*Ut+"px",null!=He.color&&(We.style.backgroundColor=He.color),We.style.transitionDuration=`${mt}ms`,this._containerElement.appendChild(We);const it=window.getComputedStyle(We),ct=it.transitionDuration,b="none"===it.transitionProperty||"0s"===ct||"0s, 0s"===ct||0===at.width&&0===at.height,k=new se(this,We,He,b);We.style.transform="scale3d(1, 1, 1)",k.state=R.FADING_IN,He.persistent||(this._mostRecentTransientRipple=k);let A=null;return!b&&(mt||Lt.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const H=()=>{A&&(A.fallbackTimer=null),clearTimeout(Oe),this._finishRippleTransition(k)},xe=()=>this._destroyRipple(k),Oe=setTimeout(xe,mt+100);We.addEventListener("transitionend",H),We.addEventListener("transitioncancel",xe),A={onTransitionEnd:H,onTransitionCancel:xe,fallbackTimer:Oe}}),this._activeRipples.set(k,A),(b||!mt)&&this._finishRippleTransition(k),k}fadeOutRipple(lt){if(lt.state===R.FADING_OUT||lt.state===R.HIDDEN)return;const Te=lt.element,He={...Y,...lt.config.animation};Te.style.transitionDuration=`${He.exitDuration}ms`,Te.style.opacity="0",lt.state=R.FADING_OUT,(lt._animationForciblyDisabledThroughCss||!He.exitDuration)&&this._finishRippleTransition(lt)}fadeOutAll(){this._getActiveRipples().forEach(lt=>lt.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(lt=>{lt.config.persistent||lt.fadeOut()})}setupTriggerEvents(lt){const Te=(0,C.i8)(lt);!this._platform.isBrowser||!Te||Te===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Te,nt.forEach(He=>{Nt._eventManager.addHandler(this._ngZone,He,Te,this)}))}handleEvent(lt){"mousedown"===lt.type?this._onMousedown(lt):"touchstart"===lt.type?this._onTouchStart(lt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{ht.forEach(Te=>{this._triggerElement.addEventListener(Te,this,De)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(lt){lt.state===R.FADING_IN?this._startFadeOutTransition(lt):lt.state===R.FADING_OUT&&this._destroyRipple(lt)}_startFadeOutTransition(lt){const Te=lt===this._mostRecentTransientRipple,{persistent:He}=lt.config;lt.state=R.VISIBLE,!He&&(!Te||!this._isPointerDown)&<.fadeOut()}_destroyRipple(lt){const Te=this._activeRipples.get(lt)??null;this._activeRipples.delete(lt),this._activeRipples.size||(this._containerRect=null),lt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),lt.state=R.HIDDEN,null!==Te&&(lt.element.removeEventListener("transitionend",Te.onTransitionEnd),lt.element.removeEventListener("transitioncancel",Te.onTransitionCancel),null!==Te.fallbackTimer&&clearTimeout(Te.fallbackTimer)),lt.element.remove()}_onMousedown(lt){const Te=(0,c._G)(lt),He=this._lastTouchStartEvent&&Date.now(){!lt.config.persistent&&(lt.state===R.VISIBLE||lt.config.terminateOnPointerUp&<.state===R.FADING_IN)&<.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const lt=this._triggerElement;lt&&(nt.forEach(Te=>Nt._eventManager.removeHandler(Te,lt,this)),this._pointerUpEventsRegistered&&(ht.forEach(Te=>lt.removeEventListener(Te,this,De)),this._pointerUpEventsRegistered=!1))}}const ln=new o.nKC("mat-ripple-global-options");let Ot=(()=>{class $e{_elementRef=(0,o.WQX)(o.aKT);_animationMode=(0,o.WQX)(o.bc$,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(Te){Te&&this.fadeOutAllNonPersistent(),this._disabled=Te,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Te){this._trigger=Te,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){const Te=(0,o.WQX)(o.SKi),He=(0,o.WQX)(w.OD),at=(0,o.WQX)(ln,{optional:!0}),Lt=(0,o.WQX)(o.zZn);this._globalOptions=at||{},this._rippleRenderer=new Nt(this,Te,this._elementRef,He,Lt)}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(Te,He=0,at){return"number"==typeof Te?this._rippleRenderer.fadeInRipple(Te,He,{...this.rippleConfig,...at}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Te})}static \u0275fac=function(He){return new(He||$e)};static \u0275dir=o.FsC({type:$e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(He,at){2&He&&o.AVh("mat-ripple-unbounded",at.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return $e})(),rt=(()=>{class $e{static \u0275fac=function(He){return new(He||$e)};static \u0275mod=o.$C({type:$e});static \u0275inj=o.G2t({imports:[_e,_e]})}return $e})(),ce=(()=>{class $e{_animationMode=(0,o.WQX)(o.bc$,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(He){return new(He||$e)};static \u0275cmp=o.VBU({type:$e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(He,at){2&He&&o.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===at.state)("mat-pseudo-checkbox-checked","checked"===at.state)("mat-pseudo-checkbox-disabled",at.disabled)("mat-pseudo-checkbox-minimal","minimal"===at.appearance)("mat-pseudo-checkbox-full","full"===at.appearance)("_mat-animation-noopable","NoopAnimations"===at._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(He,at){},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-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.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})}return $e})(),ee=(()=>{class $e{static \u0275fac=function(He){return new(He||$e)};static \u0275mod=o.$C({type:$e});static \u0275inj=o.G2t({imports:[_e]})}return $e})();const re=new o.nKC("MAT_OPTION_PARENT_COMPONENT"),be=new o.nKC("MatOptgroup");class ft{source;isUserInput;constructor(lt,Te=!1){this.source=lt,this.isUserInput=Te}}let le=(()=>{class $e{_element=(0,o.WQX)(o.aKT);_changeDetectorRef=(0,o.WQX)(o.gRc);_parent=(0,o.WQX)(re,{optional:!0});group=(0,o.WQX)(be,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=(0,o.WQX)(c.g7).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Te){this._disabled=Te}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}onSelectionChange=new o.bkB;_text;_stateChanges=new d.B;constructor(){(0,o.WQX)(x.l).load(M),(0,o.WQX)(x.l).load(x.Y),this._signalDisableRipple=!!this._parent&&(0,o.Hps)(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(Te=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),Te&&this._emitSelectionChangeEvent())}deselect(Te=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),Te&&this._emitSelectionChangeEvent())}focus(Te,He){const at=this._getHostElement();"function"==typeof at.focus&&at.focus(He)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Te){(Te.keyCode===D.Fm||Te.keyCode===D.t6)&&!(0,D.rp)(Te)&&(this._selectViaInteraction(),Te.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 Te=this.viewValue;Te!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=Te)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Te=!1){this.onSelectionChange.emit(new ft(this,Te))}static \u0275fac=function(He){return new(He||$e)};static \u0275cmp=o.VBU({type:$e,selectors:[["mat-option"]],viewQuery:function(He,at){if(1&He&&o.GBs(h,7),2&He){let Lt;o.mGM(Lt=o.lsd())&&(at._text=Lt.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(He,at){1&He&&o.bIt("click",function(){return at._selectViaInteraction()})("keydown",function(Ut){return at._handleKeydown(Ut)}),2&He&&(o.Mr5("id",at.id),o.BMQ("aria-selected",at.selected)("aria-disabled",at.disabled.toString()),o.AVh("mdc-list-item--selected",at.selected)("mat-mdc-option-multiple",at.multiple)("mat-mdc-option-active",at.active)("mdc-list-item--disabled",at.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",o.L39]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[o.GFd],ngContentSelectors:P,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(He,at){1&He&&(o.NAR(u),o.DNE(0,T,1,2,"mat-pseudo-checkbox",1),o.SdG(1),o.j41(2,"span",2,0),o.SdG(4,1),o.k0s(),o.DNE(5,E,1,1,"mat-pseudo-checkbox",3)(6,W,2,1,"span",4),o.nrm(7,"div",5)),2&He&&(o.vxM(at.multiple?0:-1),o.R7$(5),o.vxM(at.multiple||!at.selected||at.hideSingleSelectionIndicator?-1:5),o.R7$(),o.vxM(at.group&&at.group._inert?6:-1),o.R7$(),o.Y8G("matRippleTrigger",at._getHostElement())("matRippleDisabled",at.disabled||at.disableRipple))},dependencies:[ce,Ot],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.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}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return $e})();function Q($e,lt,Te){if(Te.length){let He=lt.toArray(),at=Te.toArray(),Lt=0;for(let Ut=0;Ut<$e+1;Ut++)He[Ut].group&&He[Ut].group===at[Lt]&&Lt++;return Lt}return 0}function Be($e,lt,Te,He){return $eTe+He?Math.max(0,$e-He+lt):Te}let Je=(()=>{class $e{static \u0275fac=function(He){return new(He||$e)};static \u0275mod=o.$C({type:$e});static \u0275inj=o.G2t({imports:[rt,_e,ee]})}return $e})();const qe={capture:!0},ot=["focus","mousedown","mouseenter","touchstart"],It="mat-ripple-loader-uninitialized",Ft="mat-ripple-loader-class-name",kt="mat-ripple-loader-centered",Qt="mat-ripple-loader-disabled";let rn=(()=>{class $e{_document=(0,o.WQX)(p.qQ,{optional:!0});_animationMode=(0,o.WQX)(o.bc$,{optional:!0});_globalRippleOptions=(0,o.WQX)(ln,{optional:!0});_platform=(0,o.WQX)(w.OD);_ngZone=(0,o.WQX)(o.SKi);_injector=(0,o.WQX)(o.zZn);_hosts=new Map;constructor(){this._ngZone.runOutsideAngular(()=>{for(const Te of ot)this._document?.addEventListener(Te,this._onInteraction,qe)})}ngOnDestroy(){const Te=this._hosts.keys();for(const He of Te)this.destroyRipple(He);for(const He of ot)this._document?.removeEventListener(He,this._onInteraction,qe)}configureRipple(Te,He){Te.setAttribute(It,this._globalRippleOptions?.namespace??""),(He.className||!Te.hasAttribute(Ft))&&Te.setAttribute(Ft,He.className||""),He.centered&&Te.setAttribute(kt,""),He.disabled&&Te.setAttribute(Qt,"")}setDisabled(Te,He){const at=this._hosts.get(Te);at?(at.target.rippleDisabled=He,!He&&!at.hasSetUpEvents&&(at.hasSetUpEvents=!0,at.renderer.setupTriggerEvents(Te))):He?Te.setAttribute(Qt,""):Te.removeAttribute(Qt)}_onInteraction=Te=>{const He=(0,w.Fb)(Te);if(He instanceof HTMLElement){const at=He.closest(`[${It}="${this._globalRippleOptions?.namespace??""}"]`);at&&this._createRipple(at)}};_createRipple(Te){if(!this._document||this._hosts.has(Te))return;Te.querySelector(".mat-ripple")?.remove();const He=this._document.createElement("span");He.classList.add("mat-ripple",Te.getAttribute(Ft)),Te.append(He);const at="NoopAnimations"===this._animationMode,Lt=this._globalRippleOptions,Ut=at?0:Lt?.animation?.enterDuration??Y.enterDuration,Un=at?0:Lt?.animation?.exitDuration??Y.exitDuration,pt={rippleDisabled:at||Lt?.disabled||Te.hasAttribute(Qt),rippleConfig:{centered:Te.hasAttribute(kt),terminateOnPointerUp:Lt?.terminateOnPointerUp,animation:{enterDuration:Ut,exitDuration:Un}}},mt=new Nt(pt,this._ngZone,He,this._platform,this._injector),We=!pt.rippleDisabled;We&&mt.setupTriggerEvents(Te),this._hosts.set(Te,{target:pt,renderer:mt,hasSetUpEvents:We}),Te.removeAttribute(It)}destroyRipple(Te){const He=this._hosts.get(Te);He&&(He.renderer._removeTriggerEvents(),this._hosts.delete(Te))}static \u0275fac=function(He){return new(He||$e)};static \u0275prov=o.jDH({token:$e,factory:$e.\u0275fac,providedIn:"root"})}return $e})(),nn=(()=>{class $e{labelPosition;static \u0275fac=function(He){return new(He||$e)};static \u0275cmp=o.VBU({type:$e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(He,at){2&He&&o.AVh("mdc-form-field--align-end","before"===at.labelPosition)},inputs:{labelPosition:"labelPosition"},attrs:ne,ngContentSelectors:de,decls:1,vars:0,template:function(He,at){1&He&&(o.NAR(),o.SdG(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.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 .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}return $e})()},5351:(ut,Ie,a)=>{"use strict";a.d(Ie,{Vh:()=>oe,bZ:()=>Y,E7:()=>jt,tx:()=>Re,Yi:()=>ht,hM:()=>ln,CP:()=>ge,BI:()=>nt});var o=a(6969),c=a(4438),O=a(9888),d=a(6860),w=a(6939),C=a(177),x=a(7336),D=a(1413),p=a(9030),g=a(7673),y=a(8203),h=a(9172);function u(ce,ee){}class P{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext}let E=(()=>{class ce extends w.lb{_elementRef=(0,c.WQX)(c.aKT);_focusTrapFactory=(0,c.WQX)(O.GX);_config;_interactivityChecker=(0,c.WQX)(O.Z7);_ngZone=(0,c.WQX)(c.SKi);_overlayRef=(0,c.WQX)(o.yY);_focusMonitor=(0,c.WQX)(O.FN);_renderer=(0,c.WQX)(c.sFG);_platform=(0,c.WQX)(d.OD);_document=(0,c.WQX)(C.qQ,{optional:!0});_portalOutlet;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_changeDetectorRef=(0,c.WQX)(c.gRc);_injector=(0,c.WQX)(c.zZn);_isDestroyed=!1;constructor(){super(),this._config=(0,c.WQX)(P,{optional:!0})||new P,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(re){this._ariaLabelledByQueue.push(re),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(re){const be=this._ariaLabelledByQueue.indexOf(re);be>-1&&(this._ariaLabelledByQueue.splice(be,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(re){this._portalOutlet.hasAttached();const be=this._portalOutlet.attachComponentPortal(re);return this._contentAttached(),be}attachTemplatePortal(re){this._portalOutlet.hasAttached();const be=this._portalOutlet.attachTemplatePortal(re);return this._contentAttached(),be}attachDomPortal=re=>{this._portalOutlet.hasAttached();const be=this._portalOutlet.attachDomPortal(re);return this._contentAttached(),be};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(re,be){this._interactivityChecker.isFocusable(re)||(re.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ke=()=>{ft(),le(),re.removeAttribute("tabindex")},ft=this._renderer.listen(re,"blur",Ke),le=this._renderer.listen(re,"mousedown",Ke)})),re.focus(be)}_focusByCssSelector(re,be){let Ke=this._elementRef.nativeElement.querySelector(re);Ke&&this._forceFocus(Ke,be)}_trapFocus(){this._isDestroyed||(0,c.mal)(()=>{const re=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||re.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}},{injector:this._injector})}_restoreFocus(){const re=this._config.restoreFocus;let be=null;if("string"==typeof re?be=this._document.querySelector(re):"boolean"==typeof re?be=re?this._elementFocusedBeforeDialogWasOpened:null:re&&(be=re),this._config.restoreFocus&&be&&"function"==typeof be.focus){const Ke=(0,d.vc)(),ft=this._elementRef.nativeElement;(!Ke||Ke===this._document.body||Ke===ft||ft.contains(Ke))&&(this._focusMonitor?(this._focusMonitor.focusVia(be,this._closeInteractionType),this._closeInteractionType=null):be.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const re=this._elementRef.nativeElement,be=(0,d.vc)();return re===be||re.contains(be)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,d.vc)()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(be){return new(be||ce)};static \u0275cmp=c.VBU({type:ce,selectors:[["cdk-dialog-container"]],viewQuery:function(be,Ke){if(1&be&&c.GBs(w.I3,7),2&be){let ft;c.mGM(ft=c.lsd())&&(Ke._portalOutlet=ft.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(be,Ke){2&be&&c.BMQ("id",Ke._config.id||null)("role",Ke._config.role)("aria-modal",Ke._config.ariaModal)("aria-labelledby",Ke._config.ariaLabel?null:Ke._ariaLabelledByQueue[0])("aria-label",Ke._config.ariaLabel)("aria-describedby",Ke._config.ariaDescribedBy||null)},features:[c.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(be,Ke){1&be&&c.DNE(0,u,0,0,"ng-template",0)},dependencies:[w.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return ce})();class W{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new D.B;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(ee,re){this.overlayRef=ee,this.config=re,this.disableClose=re.disableClose,this.backdropClick=ee.backdropClick(),this.keydownEvents=ee.keydownEvents(),this.outsidePointerEvents=ee.outsidePointerEvents(),this.id=re.id,this.keydownEvents.subscribe(be=>{be.keyCode===x._f&&!this.disableClose&&!(0,x.rp)(be)&&(be.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=ee.detachments().subscribe(()=>{!1!==re.closeOnOverlayDetachments&&this.close()})}close(ee,re){if(this.containerInstance){const be=this.closed;this.containerInstance._closeInteractionType=re?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),be.next(ee),be.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(ee="",re=""){return this.overlayRef.updateSize({width:ee,height:re}),this}addPanelClass(ee){return this.overlayRef.addPanelClass(ee),this}removePanelClass(ee){return this.overlayRef.removePanelClass(ee),this}}const ne=new c.nKC("DialogScrollStrategy",{providedIn:"root",factory:()=>{const ce=(0,c.WQX)(o.hJ);return()=>ce.scrollStrategies.block()}}),de=new c.nKC("DialogData"),ie=new c.nKC("DefaultDialogConfig");let Le=(()=>{class ce{_overlay=(0,c.WQX)(o.hJ);_injector=(0,c.WQX)(c.zZn);_defaultOptions=(0,c.WQX)(ie,{optional:!0});_parentDialog=(0,c.WQX)(ce,{optional:!0,skipSelf:!0});_overlayContainer=(0,c.WQX)(o.Sf);_idGenerator=(0,c.WQX)(O.g7);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new D.B;_afterOpenedAtThisLevel=new D.B;_ariaHiddenElements=new Map;_scrollStrategy=(0,c.WQX)(ne);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=(0,p.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,h.Z)(void 0)));constructor(){}open(re,be){(be={...this._defaultOptions||new P,...be}).id=be.id||this._idGenerator.getId("cdk-dialog-"),be.id&&this.getDialogById(be.id);const ft=this._getOverlayConfig(be),le=this._overlay.create(ft),Q=new W(le,be),Be=this._attachContainer(le,Q,be);return Q.containerInstance=Be,this._attachDialogContent(re,Q,Be,be),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Q),Q.closed.subscribe(()=>this._removeOpenDialog(Q,!0)),this.afterOpened.next(Q),Q}closeAll(){_e(this.openDialogs,re=>re.close())}getDialogById(re){return this.openDialogs.find(be=>be.id===re)}ngOnDestroy(){_e(this._openDialogsAtThisLevel,re=>{!1===re.config.closeOnDestroy&&this._removeOpenDialog(re,!1)}),_e(this._openDialogsAtThisLevel,re=>re.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(re){const be=new o.rR({positionStrategy:re.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:re.scrollStrategy||this._scrollStrategy(),panelClass:re.panelClass,hasBackdrop:re.hasBackdrop,direction:re.direction,minWidth:re.minWidth,minHeight:re.minHeight,maxWidth:re.maxWidth,maxHeight:re.maxHeight,width:re.width,height:re.height,disposeOnNavigation:re.closeOnNavigation});return re.backdropClass&&(be.backdropClass=re.backdropClass),be}_attachContainer(re,be,Ke){const ft=Ke.injector||Ke.viewContainerRef?.injector,le=[{provide:P,useValue:Ke},{provide:W,useValue:be},{provide:o.yY,useValue:re}];let Q;Ke.container?"function"==typeof Ke.container?Q=Ke.container:(Q=Ke.container.type,le.push(...Ke.container.providers(Ke))):Q=E;const Be=new w.A8(Q,Ke.viewContainerRef,c.zZn.create({parent:ft||this._injector,providers:le}));return re.attach(Be).instance}_attachDialogContent(re,be,Ke,ft){if(re instanceof c.C4Q){const le=this._createInjector(ft,be,Ke,void 0);let Q={$implicit:ft.data,dialogRef:be};ft.templateContext&&(Q={...Q,..."function"==typeof ft.templateContext?ft.templateContext():ft.templateContext}),Ke.attachTemplatePortal(new w.VA(re,null,Q,le))}else{const le=this._createInjector(ft,be,Ke,this._injector),Q=Ke.attachComponentPortal(new w.A8(re,ft.viewContainerRef,le));be.componentRef=Q,be.componentInstance=Q.instance}}_createInjector(re,be,Ke,ft){const le=re.injector||re.viewContainerRef?.injector,Q=[{provide:de,useValue:re.data},{provide:W,useValue:be}];return re.providers&&("function"==typeof re.providers?Q.push(...re.providers(be,re,Ke)):Q.push(...re.providers)),re.direction&&(!le||!le.get(y.dS,null,{optional:!0}))&&Q.push({provide:y.dS,useValue:{value:re.direction,change:(0,g.of)()}}),c.zZn.create({parent:le||ft,providers:Q})}_removeOpenDialog(re,be){const Ke=this.openDialogs.indexOf(re);Ke>-1&&(this.openDialogs.splice(Ke,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((ft,le)=>{ft?le.setAttribute("aria-hidden",ft):le.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),be&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const re=this._overlayContainer.getContainerElement();if(re.parentElement){const be=re.parentElement.children;for(let Ke=be.length-1;Ke>-1;Ke--){const ft=be[Ke];ft!==re&&"SCRIPT"!==ft.nodeName&&"STYLE"!==ft.nodeName&&!ft.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(ft,ft.getAttribute("aria-hidden")),ft.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const re=this._parentDialog;return re?re._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(be){return new(be||ce)};static \u0275prov=c.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})();function _e(ce,ee){let re=ce.length;for(;re--;)ee(ce[re])}let Ce=(()=>{class ce{static \u0275fac=function(be){return new(be||ce)};static \u0275mod=c.$C({type:ce});static \u0275inj=c.G2t({providers:[Le],imports:[o.z_,w.jc,O.Pd,w.jc]})}return ce})();var Ae=a(4085),ke=a(7786),Ue=a(5964),ve=a(6697),ye=a(3980),Se=a(3);function te(ce,ee){}a(9969);class L{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;componentFactoryResolver;enterAnimationDuration;exitAnimationDuration}const q="mdc-dialog--open",J="mdc-dialog--opening",X="mdc-dialog--closing";let V=(()=>{class ce extends E{_animationMode=(0,c.WQX)(c.bc$,{optional:!0});_animationStateChanged=new c.bkB;_animationsEnabled="NoopAnimations"!==this._animationMode;_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?M(this._config.enterAnimationDuration)??150:0;_exitAnimationDuration=this._animationsEnabled?M(this._config.exitAnimationDuration)??75:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(I,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(J,q)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(q),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(q),this._animationsEnabled?(this._hostElement.style.setProperty(I,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(X)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(re){this._actionSectionCount+=re,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(J,X)}_waitForAnimationToComplete(re,be){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(be,re)}_requestAnimationFrame(re){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(re):re()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(re){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:re})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(re){const be=super.attachComponentPortal(re);return be.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),be}static \u0275fac=(()=>{let re;return function(Ke){return(re||(re=c.xGo(ce)))(Ke||ce)}})();static \u0275cmp=c.VBU({type:ce,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(be,Ke){2&be&&(c.Mr5("id",Ke._config.id),c.BMQ("aria-modal",Ke._config.ariaModal)("role",Ke._config.role)("aria-labelledby",Ke._config.ariaLabel?null:Ke._ariaLabelledByQueue[0])("aria-label",Ke._config.ariaLabel)("aria-describedby",Ke._config.ariaDescribedBy||null),c.AVh("_mat-animation-noopable",!Ke._animationsEnabled)("mat-mdc-dialog-container-with-actions",Ke._actionSectionCount>0))},features:[c.Vt3],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(be,Ke){1&be&&(c.j41(0,"div",0)(1,"div",1),c.DNE(2,te,0,0,"ng-template",2),c.k0s()())},dependencies:[w.I3],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}return ce})();const I="--mat-dialog-transition-duration";function M(ce){return null==ce?null:"number"==typeof ce?ce:ce.endsWith("ms")?(0,Ae.OE)(ce.substring(0,ce.length-2)):ce.endsWith("s")?1e3*(0,Ae.OE)(ce.substring(0,ce.length-1)):"0"===ce?0:null}var j=function(ce){return ce[ce.OPEN=0]="OPEN",ce[ce.CLOSING=1]="CLOSING",ce[ce.CLOSED=2]="CLOSED",ce}(j||{});class ge{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new D.B;_beforeClosed=new D.B;_result;_closeFallbackTimeout;_state=j.OPEN;_closeInteractionType;constructor(ee,re,be){this._ref=ee,this._containerInstance=be,this.disableClose=re.disableClose,this.id=ee.id,ee.addPanelClass("mat-mdc-dialog-panel"),be._animationStateChanged.pipe((0,Ue.p)(Ke=>"opened"===Ke.state),(0,ve.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),be._animationStateChanged.pipe((0,Ue.p)(Ke=>"closed"===Ke.state),(0,ve.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),ee.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,ke.h)(this.backdropClick(),this.keydownEvents().pipe((0,Ue.p)(Ke=>Ke.keyCode===x._f&&!this.disableClose&&!(0,x.rp)(Ke)))).subscribe(Ke=>{this.disableClose||(Ke.preventDefault(),Me(this,"keydown"===Ke.type?"keyboard":"mouse"))})}close(ee){this._result=ee,this._containerInstance._animationStateChanged.pipe((0,Ue.p)(re=>"closing"===re.state),(0,ve.s)(1)).subscribe(re=>{this._beforeClosed.next(ee),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),re.totalTime+100)}),this._state=j.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(ee){let re=this._ref.config.positionStrategy;return ee&&(ee.left||ee.right)?ee.left?re.left(ee.left):re.right(ee.right):re.centerHorizontally(),ee&&(ee.top||ee.bottom)?ee.top?re.top(ee.top):re.bottom(ee.bottom):re.centerVertically(),this._ref.updatePosition(),this}updateSize(ee="",re=""){return this._ref.updateSize(ee,re),this}addPanelClass(ee){return this._ref.addPanelClass(ee),this}removePanelClass(ee){return this._ref.removePanelClass(ee),this}getState(){return this._state}_finishDialogClose(){this._state=j.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function Me(ce,ee,re){return ce._closeInteractionType=ee,ce.close(re)}const oe=new c.nKC("MatMdcDialogData"),R=new c.nKC("mat-mdc-dialog-default-options"),se=new c.nKC("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const ce=(0,c.WQX)(o.hJ);return()=>ce.scrollStrategies.block()}});let Y=(()=>{class ce{_overlay=(0,c.WQX)(o.hJ);_defaultOptions=(0,c.WQX)(R,{optional:!0});_scrollStrategy=(0,c.WQX)(se);_parentDialog=(0,c.WQX)(ce,{optional:!0,skipSelf:!0});_idGenerator=(0,c.WQX)(O.g7);_dialog=(0,c.WQX)(Le);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new D.B;_afterOpenedAtThisLevel=new D.B;dialogConfigClass=L;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const re=this._parentDialog;return re?re._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=(0,p.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,h.Z)(void 0)));constructor(){this._dialogRefConstructor=ge,this._dialogContainerType=V,this._dialogDataToken=oe}open(re,be){let Ke;(be={...this._defaultOptions||new L,...be}).id=be.id||this._idGenerator.getId("mat-mdc-dialog-"),be.scrollStrategy=be.scrollStrategy||this._scrollStrategy();const ft=this._dialog.open(re,{...be,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:be},{provide:P,useValue:be}]},templateContext:()=>({dialogRef:Ke}),providers:(le,Q,Be)=>(Ke=new this._dialogRefConstructor(le,be,Be),Ke.updatePosition(be?.position),[{provide:this._dialogContainerType,useValue:Be},{provide:this._dialogDataToken,useValue:Q.data},{provide:this._dialogRefConstructor,useValue:Ke}])});return Ke.componentRef=ft.componentRef,Ke.componentInstance=ft.componentInstance,this.openDialogs.push(Ke),this.afterOpened.next(Ke),Ke.afterClosed().subscribe(()=>{const le=this.openDialogs.indexOf(Ke);le>-1&&(this.openDialogs.splice(le,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Ke}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(re){return this.openDialogs.find(be=>be.id===re)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(re){let be=re.length;for(;be--;)re[be].close()}static \u0275fac=function(be){return new(be||ce)};static \u0275prov=c.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})(),Re=(()=>{class ce{dialogRef=(0,c.WQX)(ge,{optional:!0});_elementRef=(0,c.WQX)(c.aKT);_dialog=(0,c.WQX)(Y);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=Nt(this._elementRef,this._dialog.openDialogs))}ngOnChanges(re){const be=re._matDialogClose||re._matDialogCloseResult;be&&(this.dialogResult=be.currentValue)}_onButtonClick(re){Me(this.dialogRef,0===re.screenX&&0===re.screenY?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(be){return new(be||ce)};static \u0275dir=c.FsC({type:ce,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(be,Ke){1&be&&c.bIt("click",function(le){return Ke._onButtonClick(le)}),2&be&&c.BMQ("aria-label",Ke.ariaLabel||null)("type",Ke.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[c.OA$]})}return ce})(),De=(()=>{class ce{_dialogRef=(0,c.WQX)(ge,{optional:!0});_elementRef=(0,c.WQX)(c.aKT);_dialog=(0,c.WQX)(Y);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=Nt(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(be){return new(be||ce)};static \u0275dir=c.FsC({type:ce})}return ce})(),nt=(()=>{class ce extends De{id=(0,c.WQX)(O.g7).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let re;return function(Ke){return(re||(re=c.xGo(ce)))(Ke||ce)}})();static \u0275dir=c.FsC({type:ce,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(be,Ke){2&be&&c.Mr5("id",Ke.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[c.Vt3]})}return ce})(),ht=(()=>{class ce{static \u0275fac=function(be){return new(be||ce)};static \u0275dir=c.FsC({type:ce,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[c.nM4([ye.uv])]})}return ce})(),jt=(()=>{class ce extends De{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let re;return function(Ke){return(re||(re=c.xGo(ce)))(Ke||ce)}})();static \u0275dir=c.FsC({type:ce,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(be,Ke){2&be&&c.AVh("mat-mdc-dialog-actions-align-start","start"===Ke.align)("mat-mdc-dialog-actions-align-center","center"===Ke.align)("mat-mdc-dialog-actions-align-end","end"===Ke.align)},inputs:{align:"align"},features:[c.Vt3]})}return ce})();function Nt(ce,ee){let re=ce.nativeElement.parentElement;for(;re&&!re.classList.contains("mat-mdc-dialog-container");)re=re.parentElement;return re?ee.find(be=>be.id===re.id):null}let ln=(()=>{class ce{static \u0275fac=function(be){return new(be||ce)};static \u0275mod=c.$C({type:ce});static \u0275inj=c.G2t({providers:[Y],imports:[Ce,o.z_,w.jc,Se.yE,Se.yE]})}return ce})()},2408:(ut,Ie,a)=>{"use strict";a.d(Ie,{xb:()=>qe,TL:()=>nt,rl:()=>rn,qT:()=>le,RG:()=>nn,nJ:()=>Re,JW:()=>Nt,yw:()=>ln});var o=a(4438),c=a(9888),O=a(8203),d=a(4085),w=a(6860),C=a(177),x=a(8359),D=a(1413),p=a(7786),g=a(9172),y=a(6354),h=a(9974),u=a(4360),T=a(5964),E=a(6977),W=a(1985),ne=a(4668);class ie{_box;_destroyed=new D.B;_resizeSubject=new D.B;_resizeObserver;_elementObservables=new Map;constructor(lt){this._box=lt,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(Te=>this._resizeSubject.next(Te)))}observe(lt){return this._elementObservables.has(lt)||this._elementObservables.set(lt,new W.c(Te=>{const He=this._resizeSubject.subscribe(Te);return this._resizeObserver?.observe(lt,{box:this._box}),()=>{this._resizeObserver?.unobserve(lt),He.unsubscribe(),this._elementObservables.delete(lt)}}).pipe((0,T.p)(Te=>Te.some(He=>He.target===lt)),(0,ne.t)({bufferSize:1,refCount:!0}),(0,E.Q)(this._destroyed))),this._elementObservables.get(lt)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Z=(()=>{class $e{_cleanupErrorListener;_observers=new Map;_ngZone=(0,o.WQX)(o.SKi);constructor(){}ngOnDestroy(){for(const[,Te]of this._observers)Te.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(Te,He){const at=He?.box||"content-box";return this._observers.has(at)||this._observers.set(at,new ie(at)),this._observers.get(at).observe(Te)}static \u0275fac=function(He){return new(He||$e)};static \u0275prov=o.jDH({token:$e,factory:$e.\u0275fac,providedIn:"root"})}return $e})();var ae=a(9969),Le=a(2318),_e=a(3);const Ce=["notch"],Ae=["matFormFieldNotchedOutline",""],ke=["*"],Ue=["textField"],ve=["iconPrefixContainer"],ye=["textPrefixContainer"],Se=["iconSuffixContainer"],z=["textSuffixContainer"],te=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],L=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function q($e,lt){1&$e&&o.nrm(0,"span",21)}function J($e,lt){if(1&$e&&(o.j41(0,"label",20),o.SdG(1,1),o.DNE(2,q,1,0,"span",21),o.k0s()),2&$e){const Te=o.XpG(2);o.Y8G("floating",Te._shouldLabelFloat())("monitorResize",Te._hasOutline())("id",Te._labelId),o.BMQ("for",Te._control.disableAutomaticLabeling?null:Te._control.id),o.R7$(2),o.vxM(!Te.hideRequiredMarker&&Te._control.required?2:-1)}}function X($e,lt){if(1&$e&&o.DNE(0,J,3,5,"label",20),2&$e){const Te=o.XpG();o.vxM(Te._hasFloatingLabel()?0:-1)}}function K($e,lt){1&$e&&o.nrm(0,"div",7)}function N($e,lt){}function V($e,lt){if(1&$e&&o.DNE(0,N,0,0,"ng-template",13),2&$e){o.XpG(2);const Te=o.sdS(1);o.Y8G("ngTemplateOutlet",Te)}}function I($e,lt){if(1&$e&&(o.j41(0,"div",9),o.DNE(1,V,1,1,null,13),o.k0s()),2&$e){const Te=o.XpG();o.Y8G("matFormFieldNotchedOutlineOpen",Te._shouldLabelFloat()),o.R7$(),o.vxM(Te._forceDisplayInfixLabel()?-1:1)}}function M($e,lt){1&$e&&(o.j41(0,"div",10,2),o.SdG(2,2),o.k0s())}function j($e,lt){1&$e&&(o.j41(0,"div",11,3),o.SdG(2,3),o.k0s())}function ge($e,lt){}function Me($e,lt){if(1&$e&&o.DNE(0,ge,0,0,"ng-template",13),2&$e){o.XpG();const Te=o.sdS(1);o.Y8G("ngTemplateOutlet",Te)}}function oe($e,lt){1&$e&&(o.j41(0,"div",14,4),o.SdG(2,4),o.k0s())}function R($e,lt){1&$e&&(o.j41(0,"div",15,5),o.SdG(2,5),o.k0s())}function se($e,lt){1&$e&&o.nrm(0,"div",16)}function Ee($e,lt){if(1&$e&&(o.j41(0,"div",18),o.SdG(1,6),o.k0s()),2&$e){const Te=o.XpG();o.Y8G("@transitionMessages",Te._subscriptAnimationState)}}function tt($e,lt){if(1&$e&&(o.j41(0,"mat-hint",22),o.EFF(1),o.k0s()),2&$e){const Te=o.XpG(2);o.Y8G("id",Te._hintLabelId),o.R7$(),o.JRh(Te.hintLabel)}}function Y($e,lt){if(1&$e&&(o.j41(0,"div",19),o.DNE(1,tt,2,2,"mat-hint",22),o.SdG(2,7),o.nrm(3,"div",23),o.SdG(4,8),o.k0s()),2&$e){const Te=o.XpG();o.Y8G("@transitionMessages",Te._subscriptAnimationState),o.R7$(),o.vxM(Te.hintLabel?1:-1)}}let Re=(()=>{class $e{static \u0275fac=function(He){return new(He||$e)};static \u0275dir=o.FsC({type:$e,selectors:[["mat-label"]]})}return $e})();const De=new o.nKC("MatError");let nt=(()=>{class $e{id=(0,o.WQX)(c.g7).getId("mat-mdc-error-");constructor(){(0,o.WQX)(new o.ES_("aria-live"),{optional:!0})||(0,o.WQX)(o.aKT).nativeElement.setAttribute("aria-live","polite")}static \u0275fac=function(He){return new(He||$e)};static \u0275dir=o.FsC({type:$e,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(He,at){2&He&&o.Mr5("id",at.id)},inputs:{id:"id"},features:[o.Jv_([{provide:De,useExisting:$e}])]})}return $e})(),ht=(()=>{class $e{align="start";id=(0,o.WQX)(c.g7).getId("mat-mdc-hint-");static \u0275fac=function(He){return new(He||$e)};static \u0275dir=o.FsC({type:$e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(He,at){2&He&&(o.Mr5("id",at.id),o.BMQ("align",null),o.AVh("mat-mdc-form-field-hint-end","end"===at.align))},inputs:{align:"align",id:"id"}})}return $e})();const jt=new o.nKC("MatPrefix");let Nt=(()=>{class $e{set _isTextSelector(Te){this._isText=!0}_isText=!1;static \u0275fac=function(He){return new(He||$e)};static \u0275dir=o.FsC({type:$e,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[o.Jv_([{provide:jt,useExisting:$e}])]})}return $e})();const on=new o.nKC("MatSuffix");let ln=(()=>{class $e{set _isTextSelector(Te){this._isText=!0}_isText=!1;static \u0275fac=function(He){return new(He||$e)};static \u0275dir=o.FsC({type:$e,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[o.Jv_([{provide:on,useExisting:$e}])]})}return $e})();const Ot=new o.nKC("FloatingLabelParent");let rt=(()=>{class $e{_elementRef=(0,o.WQX)(o.aKT);get floating(){return this._floating}set floating(Te){this._floating=Te,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(Te){this._monitorResize=Te,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=(0,o.WQX)(Z);_ngZone=(0,o.WQX)(o.SKi);_parent=(0,o.WQX)(Ot);_resizeSubscription=new x.yU;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function ce($e){if(null!==$e.offsetParent)return $e.scrollWidth;const Te=$e.cloneNode(!0);Te.style.setProperty("position","absolute"),Te.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(Te);const He=Te.scrollWidth;return Te.remove(),He}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(He){return new(He||$e)};static \u0275dir=o.FsC({type:$e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(He,at){2&He&&o.AVh("mdc-floating-label--float-above",at.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return $e})();const ee="mdc-line-ripple--active",re="mdc-line-ripple--deactivating";let be=(()=>{class $e{_elementRef=(0,o.WQX)(o.aKT);_cleanupTransitionEnd;constructor(){const Te=(0,o.WQX)(o.SKi),He=(0,o.WQX)(o.sFG);Te.runOutsideAngular(()=>{this._cleanupTransitionEnd=He.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){const Te=this._elementRef.nativeElement.classList;Te.remove(re),Te.add(ee)}deactivate(){this._elementRef.nativeElement.classList.add(re)}_handleTransitionEnd=Te=>{const He=this._elementRef.nativeElement.classList,at=He.contains(re);"opacity"===Te.propertyName&&at&&He.remove(ee,re)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(He){return new(He||$e)};static \u0275dir=o.FsC({type:$e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return $e})(),Ke=(()=>{class $e{_elementRef=(0,o.WQX)(o.aKT);_ngZone=(0,o.WQX)(o.SKi);open=!1;_notch;constructor(){}ngAfterViewInit(){const Te=this._elementRef.nativeElement.querySelector(".mdc-floating-label");Te?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(Te.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>Te.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(Te){this._notch.nativeElement.style.width=this.open&&Te?`calc(${Te}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static \u0275fac=function(He){return new(He||$e)};static \u0275cmp=o.VBU({type:$e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(He,at){if(1&He&&o.GBs(Ce,5),2&He){let Lt;o.mGM(Lt=o.lsd())&&(at._notch=Lt.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(He,at){2&He&&o.AVh("mdc-notched-outline--notched",at.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:Ae,ngContentSelectors:ke,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(He,at){1&He&&(o.NAR(),o.nrm(0,"div",1),o.j41(1,"div",2,0),o.SdG(3),o.k0s(),o.nrm(4,"div",3))},encapsulation:2,changeDetection:0})}return $e})();const ft={transitionMessages:(0,ae.hZ)("transitionMessages",[(0,ae.wk)("enter",(0,ae.iF)({opacity:1,transform:"translateY(0%)"})),(0,ae.kY)("void => enter",[(0,ae.iF)({opacity:0,transform:"translateY(-5px)"}),(0,ae.i0)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let le=(()=>{class $e{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(He){return new(He||$e)};static \u0275dir=o.FsC({type:$e})}return $e})();const qe=new o.nKC("MatFormField"),ot=new o.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let rn=(()=>{class $e{_elementRef=(0,o.WQX)(o.aKT);_changeDetectorRef=(0,o.WQX)(o.gRc);_dir=(0,o.WQX)(O.dS);_platform=(0,o.WQX)(w.OD);_idGenerator=(0,o.WQX)(c.g7);_defaults=(0,o.WQX)(ot,{optional:!0});_animationMode=(0,o.WQX)(o.bc$,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=(0,o.sbv)(Re);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Te){this._hideRequiredMarker=(0,d.he)(Te)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(Te){Te!==this._floatLabel&&(this._floatLabel=Te,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearance}set appearance(Te){const He=this._appearance;this._appearance=Te||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==He&&(this._needsOutlineLabelOffsetUpdate=!0)}_appearance="fill";get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(Te){this._subscriptSizing=Te||this._defaults?.subscriptSizing||"fixed"}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(Te){this._hintLabel=Te,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_subscriptAnimationState="";get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(Te){this._explicitFormFieldControl=Te}_destroyed=new D.B;_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_stateChanges;_valueChanges;_describedByChanges;_injector=(0,o.WQX)(o.zZn);constructor(){const Te=this._defaults;Te&&(Te.appearance&&(this.appearance=Te.appearance),this._hideRequiredMarker=!!Te?.hideRequiredMarker,Te.color&&(this.color=Te.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=(0,o.EWP)(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(Te){const He=this._control,at="mat-mdc-form-field-type-";Te&&this._elementRef.nativeElement.classList.remove(at+Te.controlType),He.controlType&&this._elementRef.nativeElement.classList.add(at+He.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=He.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=He.stateChanges.pipe((0,g.Z)([void 0,void 0]),(0,y.T)(()=>[He.errorState,He.userAriaDescribedBy]),function P(){return(0,h.N)(($e,lt)=>{let Te,He=!1;$e.subscribe((0,u._)(lt,at=>{const Lt=Te;Te=at,He&<.next([Lt,at]),He=!0}))})}(),(0,T.p)(([[Lt,Ut],[Un,pt]])=>Lt!==Un||Ut!==pt)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),He.ngControl&&He.ngControl.valueChanges&&(this._valueChanges=He.ngControl.valueChanges.pipe((0,E.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(Te=>!Te._isText),this._hasTextPrefix=!!this._prefixChildren.find(Te=>Te._isText),this._hasIconSuffix=!!this._suffixChildren.find(Te=>!Te._isText),this._hasTextSuffix=!!this._suffixChildren.find(Te=>Te._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,p.h)(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._needsOutlineLabelOffsetUpdate=!0),(0,o.Tzd)(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe((0,E.Q)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=(0,o.EWP)(()=>!!this._labelChild());_shouldLabelFloat(){return!!this._hasFloatingLabel()&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_shouldForward(Te){const He=this._control?this._control.ngControl:null;return He&&He[Te]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let Te=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Te.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const He=this._hintChildren?this._hintChildren.find(Lt=>"start"===Lt.align):null,at=this._hintChildren?this._hintChildren.find(Lt=>"end"===Lt.align):null;He?Te.push(He.id):this._hintLabel&&Te.push(this._hintLabelId),at&&Te.push(at.id)}else this._errorChildren&&Te.push(...this._errorChildren.map(He=>He.id));this._control.setDescribedByIds(Te)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;const Te=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(Te.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdate=!0);const He=this._iconPrefixContainer?.nativeElement,at=this._textPrefixContainer?.nativeElement,Lt=this._iconSuffixContainer?.nativeElement,Ut=this._textSuffixContainer?.nativeElement,Un=He?.getBoundingClientRect().width??0,pt=at?.getBoundingClientRect().width??0,mt=Lt?.getBoundingClientRect().width??0,We=Ut?.getBoundingClientRect().width??0;Te.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${Un+pt}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`,this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${Un+pt+mt+We}px)`)}_isAttachedToDom(){const Te=this._elementRef.nativeElement;if(Te.getRootNode){const He=Te.getRootNode();return He&&He!==Te}return document.documentElement.contains(Te)}static \u0275fac=function(He){return new(He||$e)};static \u0275cmp=o.VBU({type:$e,selectors:[["mat-form-field"]],contentQueries:function(He,at,Lt){if(1&He&&(o.C6U(Lt,at._labelChild,Re,5),o.wni(Lt,le,5),o.wni(Lt,jt,5),o.wni(Lt,on,5),o.wni(Lt,De,5),o.wni(Lt,ht,5)),2&He){let Ut;o.NyB(),o.mGM(Ut=o.lsd())&&(at._formFieldControl=Ut.first),o.mGM(Ut=o.lsd())&&(at._prefixChildren=Ut),o.mGM(Ut=o.lsd())&&(at._suffixChildren=Ut),o.mGM(Ut=o.lsd())&&(at._errorChildren=Ut),o.mGM(Ut=o.lsd())&&(at._hintChildren=Ut)}},viewQuery:function(He,at){if(1&He&&(o.GBs(Ue,5),o.GBs(ve,5),o.GBs(ye,5),o.GBs(Se,5),o.GBs(z,5),o.GBs(rt,5),o.GBs(Ke,5),o.GBs(be,5)),2&He){let Lt;o.mGM(Lt=o.lsd())&&(at._textField=Lt.first),o.mGM(Lt=o.lsd())&&(at._iconPrefixContainer=Lt.first),o.mGM(Lt=o.lsd())&&(at._textPrefixContainer=Lt.first),o.mGM(Lt=o.lsd())&&(at._iconSuffixContainer=Lt.first),o.mGM(Lt=o.lsd())&&(at._textSuffixContainer=Lt.first),o.mGM(Lt=o.lsd())&&(at._floatingLabel=Lt.first),o.mGM(Lt=o.lsd())&&(at._notchedOutline=Lt.first),o.mGM(Lt=o.lsd())&&(at._lineRipple=Lt.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(He,at){2&He&&o.AVh("mat-mdc-form-field-label-always-float",at._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",at._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",at._hasIconSuffix)("mat-form-field-invalid",at._control.errorState)("mat-form-field-disabled",at._control.disabled)("mat-form-field-autofilled",at._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===at._animationMode)("mat-form-field-appearance-fill","fill"==at.appearance)("mat-form-field-appearance-outline","outline"==at.appearance)("mat-form-field-hide-placeholder",at._hasFloatingLabel()&&!at._shouldLabelFloat())("mat-focused",at._control.focused)("mat-primary","accent"!==at.color&&"warn"!==at.color)("mat-accent","accent"===at.color)("mat-warn","warn"===at.color)("ng-untouched",at._shouldForward("untouched"))("ng-touched",at._shouldForward("touched"))("ng-pristine",at._shouldForward("pristine"))("ng-dirty",at._shouldForward("dirty"))("ng-valid",at._shouldForward("valid"))("ng-invalid",at._shouldForward("invalid"))("ng-pending",at._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[o.Jv_([{provide:qe,useExisting:$e},{provide:Ot,useExisting:$e}])],ngContentSelectors:L,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(He,at){if(1&He){const Lt=o.RV6();o.NAR(te),o.DNE(0,X,1,1,"ng-template",null,0,o.C5r),o.j41(2,"div",6,1),o.bIt("click",function(Un){return o.eBV(Lt),o.Njj(at._control.onContainerClick(Un))}),o.DNE(4,K,1,0,"div",7),o.j41(5,"div",8),o.DNE(6,I,2,2,"div",9)(7,M,3,0,"div",10)(8,j,3,0,"div",11),o.j41(9,"div",12),o.DNE(10,Me,1,1,null,13),o.SdG(11),o.k0s(),o.DNE(12,oe,3,0,"div",14)(13,R,3,0,"div",15),o.k0s(),o.DNE(14,se,1,0,"div",16),o.k0s(),o.j41(15,"div",17),o.DNE(16,Ee,2,1,"div",18)(17,Y,5,2,"div",19),o.k0s()}if(2&He){let Lt;o.R7$(2),o.AVh("mdc-text-field--filled",!at._hasOutline())("mdc-text-field--outlined",at._hasOutline())("mdc-text-field--no-label",!at._hasFloatingLabel())("mdc-text-field--disabled",at._control.disabled)("mdc-text-field--invalid",at._control.errorState),o.R7$(2),o.vxM(at._hasOutline()||at._control.disabled?-1:4),o.R7$(2),o.vxM(at._hasOutline()?6:-1),o.R7$(),o.vxM(at._hasIconPrefix?7:-1),o.R7$(),o.vxM(at._hasTextPrefix?8:-1),o.R7$(2),o.vxM(!at._hasOutline()||at._forceDisplayInfixLabel()?10:-1),o.R7$(2),o.vxM(at._hasTextSuffix?12:-1),o.R7$(),o.vxM(at._hasIconSuffix?13:-1),o.R7$(),o.vxM(at._hasOutline()?-1:14),o.R7$(),o.AVh("mat-mdc-form-field-subscript-dynamic-size","dynamic"===at.subscriptSizing),o.R7$(),o.vxM("error"===(Lt=at._getDisplayedMessages())?16:"hint"===Lt?17:-1)}},dependencies:[rt,Ke,C.T3,be,ht],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.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--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;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{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.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-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-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.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{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-sys-outline));border-width:var(--mdc-outlined-text-field-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{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{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.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{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.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;will-change: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-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.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;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}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}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.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;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[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-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.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;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[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%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.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-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-infix:has(textarea[cols]){width:auto}.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-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .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--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-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[ft.transitionMessages]},changeDetection:0})}return $e})(),nn=(()=>{class $e{static \u0275fac=function(He){return new(He||$e)};static \u0275mod=o.$C({type:$e});static \u0275inj=o.G2t({imports:[_e.yE,Le.w5,_e.yE]})}return $e})()},9213:(ut,Ie,a)=>{"use strict";a.d(Ie,{An:()=>X,m_:()=>K});var o=a(4438),c=a(3),O=a(177),d=a(7673),w=a(8810),C=a(7468),x=a(8359),D=a(8141),p=a(6354),g=a(9437),y=a(980),h=a(7647),u=a(6697),P=a(1626),T=a(345);const E=["*"];let W;function de(N){return function ne(){if(void 0===W&&(W=null,typeof window<"u")){const N=window;void 0!==N.trustedTypes&&(W=N.trustedTypes.createPolicy("angular#components",{createHTML:V=>V}))}return W}()?.createHTML(N)||N}function ie(N){return Error(`Unable to find icon with the name "${N}"`)}function ae(N){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${N}".`)}function Le(N){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${N}".`)}class _e{url;svgText;options;svgElement;constructor(V,I,M){this.url=V,this.svgText=I,this.options=M}}let Ce=(()=>{class N{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(I,M,j,ge){this._httpClient=I,this._sanitizer=M,this._errorHandler=ge,this._document=j}addSvgIcon(I,M,j){return this.addSvgIconInNamespace("",I,M,j)}addSvgIconLiteral(I,M,j){return this.addSvgIconLiteralInNamespace("",I,M,j)}addSvgIconInNamespace(I,M,j,ge){return this._addSvgIconConfig(I,M,new _e(j,null,ge))}addSvgIconResolver(I){return this._resolvers.push(I),this}addSvgIconLiteralInNamespace(I,M,j,ge){const Me=this._sanitizer.sanitize(o.WPN.HTML,j);if(!Me)throw Le(j);const oe=de(Me);return this._addSvgIconConfig(I,M,new _e("",oe,ge))}addSvgIconSet(I,M){return this.addSvgIconSetInNamespace("",I,M)}addSvgIconSetLiteral(I,M){return this.addSvgIconSetLiteralInNamespace("",I,M)}addSvgIconSetInNamespace(I,M,j){return this._addSvgIconSetConfig(I,new _e(M,null,j))}addSvgIconSetLiteralInNamespace(I,M,j){const ge=this._sanitizer.sanitize(o.WPN.HTML,M);if(!ge)throw Le(M);const Me=de(ge);return this._addSvgIconSetConfig(I,new _e("",Me,j))}registerFontClassAlias(I,M=I){return this._fontCssClassesByAlias.set(I,M),this}classNameForFontAlias(I){return this._fontCssClassesByAlias.get(I)||I}setDefaultFontSetClass(...I){return this._defaultFontSetClass=I,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(I){const M=this._sanitizer.sanitize(o.WPN.RESOURCE_URL,I);if(!M)throw ae(I);const j=this._cachedIconsByUrl.get(M);return j?(0,d.of)(Ue(j)):this._loadSvgIconFromConfig(new _e(I,null)).pipe((0,D.M)(ge=>this._cachedIconsByUrl.set(M,ge)),(0,p.T)(ge=>Ue(ge)))}getNamedSvgIcon(I,M=""){const j=ve(M,I);let ge=this._svgIconConfigs.get(j);if(ge)return this._getSvgFromConfig(ge);if(ge=this._getIconConfigFromResolvers(M,I),ge)return this._svgIconConfigs.set(j,ge),this._getSvgFromConfig(ge);const Me=this._iconSetConfigs.get(M);return Me?this._getSvgFromIconSetConfigs(I,Me):(0,w.$)(ie(j))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(I){return I.svgText?(0,d.of)(Ue(this._svgElementFromConfig(I))):this._loadSvgIconFromConfig(I).pipe((0,p.T)(M=>Ue(M)))}_getSvgFromIconSetConfigs(I,M){const j=this._extractIconWithNameFromAnySet(I,M);if(j)return(0,d.of)(j);const ge=M.filter(Me=>!Me.svgText).map(Me=>this._loadSvgIconSetFromConfig(Me).pipe((0,g.W)(oe=>{const se=`Loading icon set URL: ${this._sanitizer.sanitize(o.WPN.RESOURCE_URL,Me.url)} failed: ${oe.message}`;return this._errorHandler.handleError(new Error(se)),(0,d.of)(null)})));return(0,C.p)(ge).pipe((0,p.T)(()=>{const Me=this._extractIconWithNameFromAnySet(I,M);if(!Me)throw ie(I);return Me}))}_extractIconWithNameFromAnySet(I,M){for(let j=M.length-1;j>=0;j--){const ge=M[j];if(ge.svgText&&ge.svgText.toString().indexOf(I)>-1){const Me=this._svgElementFromConfig(ge),oe=this._extractSvgIconFromSet(Me,I,ge.options);if(oe)return oe}}return null}_loadSvgIconFromConfig(I){return this._fetchIcon(I).pipe((0,D.M)(M=>I.svgText=M),(0,p.T)(()=>this._svgElementFromConfig(I)))}_loadSvgIconSetFromConfig(I){return I.svgText?(0,d.of)(null):this._fetchIcon(I).pipe((0,D.M)(M=>I.svgText=M))}_extractSvgIconFromSet(I,M,j){const ge=I.querySelector(`[id="${M}"]`);if(!ge)return null;const Me=ge.cloneNode(!0);if(Me.removeAttribute("id"),"svg"===Me.nodeName.toLowerCase())return this._setSvgAttributes(Me,j);if("symbol"===Me.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Me),j);const oe=this._svgElementFromString(de(""));return oe.appendChild(Me),this._setSvgAttributes(oe,j)}_svgElementFromString(I){const M=this._document.createElement("DIV");M.innerHTML=I;const j=M.querySelector("svg");if(!j)throw Error(" tag not found");return j}_toSvgElement(I){const M=this._svgElementFromString(de("")),j=I.attributes;for(let ge=0;gede(se)),(0,y.j)(()=>this._inProgressUrlFetches.delete(Me)),(0,h.u)());return this._inProgressUrlFetches.set(Me,R),R}_addSvgIconConfig(I,M,j){return this._svgIconConfigs.set(ve(I,M),j),this}_addSvgIconSetConfig(I,M){const j=this._iconSetConfigs.get(I);return j?j.push(M):this._iconSetConfigs.set(I,[M]),this}_svgElementFromConfig(I){if(!I.svgElement){const M=this._svgElementFromString(I.svgText);this._setSvgAttributes(M,I.options),I.svgElement=M}return I.svgElement}_getIconConfigFromResolvers(I,M){for(let j=0;jV?V.pathname+V.search:""}}}),L=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],q=L.map(N=>`[${N}]`).join(", "),J=/^url\(['"]?#(.*?)['"]?\)$/;let X=(()=>{class N{_elementRef=(0,o.WQX)(o.aKT);_iconRegistry=(0,o.WQX)(Ce);_location=(0,o.WQX)(z);_errorHandler=(0,o.WQX)(o.zcH);_defaultColor;get color(){return this._color||this._defaultColor}set color(I){this._color=I}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(I){I!==this._svgIcon&&(I?this._updateSvgIcon(I):this._svgIcon&&this._clearSvgElement(),this._svgIcon=I)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(I){const M=this._cleanupFontValue(I);M!==this._fontSet&&(this._fontSet=M,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(I){const M=this._cleanupFontValue(I);M!==this._fontIcon&&(this._fontIcon=M,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=x.yU.EMPTY;constructor(){const I=(0,o.WQX)(new o.ES_("aria-hidden"),{optional:!0}),M=(0,o.WQX)(Se,{optional:!0});M&&(M.color&&(this.color=this._defaultColor=M.color),M.fontSet&&(this.fontSet=M.fontSet)),I||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(I){if(!I)return["",""];const M=I.split(":");switch(M.length){case 1:return["",M[0]];case 2:return M;default:throw Error(`Invalid icon name: "${I}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const I=this._elementsWithExternalReferences;if(I&&I.size){const M=this._location.getPathname();M!==this._previousPath&&(this._previousPath=M,this._prependPathToReferences(M))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(I){this._clearSvgElement();const M=this._location.getPathname();this._previousPath=M,this._cacheChildrenWithExternalReferences(I),this._prependPathToReferences(M),this._elementRef.nativeElement.appendChild(I)}_clearSvgElement(){const I=this._elementRef.nativeElement;let M=I.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();M--;){const j=I.childNodes[M];(1!==j.nodeType||"svg"===j.nodeName.toLowerCase())&&j.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const I=this._elementRef.nativeElement,M=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(j=>j.length>0);this._previousFontSetClass.forEach(j=>I.classList.remove(j)),M.forEach(j=>I.classList.add(j)),this._previousFontSetClass=M,this.fontIcon!==this._previousFontIconClass&&!M.includes("mat-ligature-font")&&(this._previousFontIconClass&&I.classList.remove(this._previousFontIconClass),this.fontIcon&&I.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(I){return"string"==typeof I?I.trim().split(" ")[0]:I}_prependPathToReferences(I){const M=this._elementsWithExternalReferences;M&&M.forEach((j,ge)=>{j.forEach(Me=>{ge.setAttribute(Me.name,`url('${I}#${Me.value}')`)})})}_cacheChildrenWithExternalReferences(I){const M=I.querySelectorAll(q),j=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ge=0;ge{const oe=M[ge],R=oe.getAttribute(Me),se=R?R.match(J):null;if(se){let Ee=j.get(oe);Ee||(Ee=[],j.set(oe,Ee)),Ee.push({name:Me,value:se[1]})}})}_updateSvgIcon(I){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),I){const[M,j]=this._splitIconName(I);M&&(this._svgNamespace=M),j&&(this._svgName=j),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(j,M).pipe((0,u.s)(1)).subscribe(ge=>this._setSvgElement(ge),ge=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${M}:${j}! ${ge.message}`))})}}static \u0275fac=function(M){return new(M||N)};static \u0275cmp=o.VBU({type:N,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(M,j){2&M&&(o.BMQ("data-mat-icon-type",j._usingFontIcon()?"font":"svg")("data-mat-icon-name",j._svgName||j.fontIcon)("data-mat-icon-namespace",j._svgNamespace||j.fontSet)("fontIcon",j._usingFontIcon()?j.fontIcon:null),o.HbH(j.color?"mat-"+j.color:""),o.AVh("mat-icon-inline",j.inline)("mat-icon-no-color","primary"!==j.color&&"accent"!==j.color&&"warn"!==j.color))},inputs:{color:"color",inline:[2,"inline","inline",o.L39],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[o.GFd],ngContentSelectors:E,decls:1,vars:0,template:function(M,j){1&M&&(o.NAR(),o.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.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})}return N})(),K=(()=>{class N{static \u0275fac=function(M){return new(M||N)};static \u0275mod=o.$C({type:N});static \u0275inj=o.G2t({imports:[c.yE,c.yE]})}return N})()},2798:(ut,Ie,a)=>{"use strict";a.d(Ie,{JO:()=>K,VO:()=>M,Ve:()=>ge});var o=a(6969),c=a(4438),O=a(3),d=a(2408),w=a(3980),C=a(9888),x=a(8203),D=a(5024),p=a(7336),g=a(9417),y=a(1413),h=a(9030),u=a(7786),P=a(9172),T=a(5558),E=a(5964),W=a(6354),ne=a(3294),de=a(6977),ie=a(6697),Z=a(9969),ae=a(177);const Le=["trigger"],_e=["panel"],Ce=[[["mat-select-trigger"]],"*"],Ae=["mat-select-trigger","*"];function ke(Me,oe){if(1&Me&&(c.j41(0,"span",4),c.EFF(1),c.k0s()),2&Me){const R=c.XpG();c.R7$(),c.JRh(R.placeholder)}}function Ue(Me,oe){1&Me&&c.SdG(0)}function ve(Me,oe){if(1&Me&&(c.j41(0,"span",11),c.EFF(1),c.k0s()),2&Me){const R=c.XpG(2);c.R7$(),c.JRh(R.triggerValue)}}function ye(Me,oe){if(1&Me&&(c.j41(0,"span",5),c.DNE(1,Ue,1,0)(2,ve,2,1,"span",11),c.k0s()),2&Me){const R=c.XpG();c.R7$(),c.vxM(R.customTrigger?1:2)}}function Se(Me,oe){if(1&Me){const R=c.RV6();c.j41(0,"div",12,1),c.bIt("@transformPanel.done",function(Ee){c.eBV(R);const tt=c.XpG();return c.Njj(tt._panelDoneAnimatingStream.next(Ee.toState))})("keydown",function(Ee){c.eBV(R);const tt=c.XpG();return c.Njj(tt._handleKeydown(Ee))}),c.SdG(2,1),c.k0s()}if(2&Me){const R=c.XpG();c.ZvI("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",R._getPanelTheme(),""),c.Y8G("ngClass",R.panelClass)("@transformPanel","showing"),c.BMQ("id",R.id+"-panel")("aria-multiselectable",R.multiple)("aria-label",R.ariaLabel||null)("aria-labelledby",R._getPanelAriaLabelledby())}}const z={transformPanelWrap:(0,Z.hZ)("transformPanelWrap",[(0,Z.kY)("* => void",(0,Z.P)("@transformPanel",[(0,Z.MA)()],{optional:!0}))]),transformPanel:(0,Z.hZ)("transformPanel",[(0,Z.wk)("void",(0,Z.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,Z.kY)("void => showing",(0,Z.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Z.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,Z.kY)("* => void",(0,Z.i0)("100ms linear",(0,Z.iF)({opacity:0})))])},J=new c.nKC("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const Me=(0,c.WQX)(o.hJ);return()=>Me.scrollStrategies.reposition()}}),K=new c.nKC("MAT_SELECT_CONFIG"),N={provide:J,deps:[o.hJ],useFactory:function X(Me){return()=>Me.scrollStrategies.reposition()}},V=new c.nKC("MatSelectTrigger");class I{source;value;constructor(oe,R){this.source=oe,this.value=R}}let M=(()=>{class Me{_viewportRuler=(0,c.WQX)(w.Xj);_changeDetectorRef=(0,c.WQX)(c.gRc);_elementRef=(0,c.WQX)(c.aKT);_dir=(0,c.WQX)(x.dS,{optional:!0});_idGenerator=(0,c.WQX)(C.g7);_parentFormField=(0,c.WQX)(d.xb,{optional:!0});ngControl=(0,c.WQX)(g.vO,{self:!0,optional:!0});_liveAnnouncer=(0,c.WQX)(C.Ai);_defaultOptions=(0,c.WQX)(K,{optional:!0});_initialized=new y.B;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(R){const se=this.options.toArray()[R];if(se){const Ee=this.panel.nativeElement,tt=(0,O.jb)(R,this.options,this.optionGroups),Y=se._getHostElement();Ee.scrollTop=0===R&&1===tt?0:(0,O.TL)(Y.offsetTop,Y.offsetHeight,Ee.scrollTop,Ee.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(R){return new I(this,R)}_scrollStrategyFactory=(0,c.WQX)(J);_panelOpen=!1;_compareWith=(R,se)=>R===se;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new y.B;_errorStateTracker;stateChanges=new y.B;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_panelDoneAnimatingStream=new y.B;_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(R){this._hideSingleSelectionIndicator=R,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(R){this._placeholder=R,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(g.k0.required)??!1}set required(R){this._required=R,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(R){this._multiple=R}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(R){this._compareWith=R,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(R){this._assignValue(R)&&this._onChange(R)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(R){this._errorStateTracker.matcher=R}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(R){this._id=R||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(R){this._errorStateTracker.errorState=R}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=(0,h.v)(()=>{const R=this.options;return R?R.changes.pipe((0,P.Z)(R),(0,T.n)(()=>(0,u.h)(...R.map(se=>se.onSelectionChange)))):this._initialized.pipe((0,T.n)(()=>this.optionSelectionChanges))});openedChange=new c.bkB;_openedStream=this.openedChange.pipe((0,E.p)(R=>R),(0,W.T)(()=>{}));_closedStream=this.openedChange.pipe((0,E.p)(R=>!R),(0,W.T)(()=>{}));selectionChange=new c.bkB;valueChange=new c.bkB;constructor(){const R=(0,c.WQX)(O.es),se=(0,c.WQX)(g.cV,{optional:!0}),Ee=(0,c.WQX)(g.j4,{optional:!0}),tt=(0,c.WQX)(new c.ES_("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),null!=this._defaultOptions?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new O.X0(R,this.ngControl,Ee,se,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=null==tt?0:parseInt(tt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new D.CB(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ne.F)(),(0,de.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe((0,de.Q)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe((0,de.Q)(this._destroy)).subscribe(R=>{R.added.forEach(se=>se.select()),R.removed.forEach(se=>se.deselect())}),this.options.changes.pipe((0,P.Z)(null),(0,de.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const R=this._getTriggerAriaLabelledby(),se=this.ngControl;if(R!==this._triggerAriaLabelledBy){const Ee=this._elementRef.nativeElement;this._triggerAriaLabelledBy=R,R?Ee.setAttribute("aria-labelledby",R):Ee.removeAttribute("aria-labelledby")}se&&(this._previousControl!==se.control&&(void 0!==this._previousControl&&null!==se.disabled&&se.disabled!==this.disabled&&(this.disabled=se.disabled),this._previousControl=se.control),this.updateErrorState())}ngOnChanges(R){(R.disabled||R.userAriaDescribedBy)&&this.stateChanges.next(),R.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_trackedModal=null;_applyModalPanelOwnership(){const R=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!R)return;const se=`${this.id}-panel`;this._trackedModal&&(0,C.Ae)(this._trackedModal,"aria-owns",se),(0,C.px)(R,"aria-owns",se),this._trackedModal=R}_clearFromModal(){this._trackedModal&&((0,C.Ae)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(R){this._assignValue(R)}registerOnChange(R){this._onChange=R}registerOnTouched(R){this._onTouched=R}setDisabledState(R){this.disabled=R,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 R=this._selectionModel.selected.map(se=>se.viewValue);return this._isRtl()&&R.reverse(),R.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(R){this.disabled||(this.panelOpen?this._handleOpenKeydown(R):this._handleClosedKeydown(R))}_handleClosedKeydown(R){const se=R.keyCode,Ee=se===p.n6||se===p.i7||se===p.UQ||se===p.LE,tt=se===p.Fm||se===p.t6,Y=this._keyManager;if(!Y.isTyping()&&tt&&!(0,p.rp)(R)||(this.multiple||R.altKey)&&Ee)R.preventDefault(),this.open();else if(!this.multiple){const Re=this.selected;Y.onKeydown(R);const De=this.selected;De&&Re!==De&&this._liveAnnouncer.announce(De.viewValue,1e4)}}_handleOpenKeydown(R){const se=this._keyManager,Ee=R.keyCode,tt=Ee===p.n6||Ee===p.i7,Y=se.isTyping();if(tt&&R.altKey)R.preventDefault(),this.close();else if(Y||Ee!==p.Fm&&Ee!==p.t6||!se.activeItem||(0,p.rp)(R))if(!Y&&this._multiple&&Ee===p.A&&R.ctrlKey){R.preventDefault();const Re=this.options.some(De=>!De.disabled&&!De.selected);this.options.forEach(De=>{De.disabled||(Re?De.select():De.deselect())})}else{const Re=se.activeItemIndex;se.onKeydown(R),this._multiple&&tt&&R.shiftKey&&se.activeItem&&se.activeItemIndex!==Re&&se.activeItem._selectViaInteraction()}else R.preventDefault(),se.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((0,ie.s)(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(R){if(this.options.forEach(se=>se.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&R)Array.isArray(R),R.forEach(se=>this._selectOptionByValue(se)),this._sortValues();else{const se=this._selectOptionByValue(R);se?this._keyManager.updateActiveItem(se):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(R){const se=this.options.find(Ee=>{if(this._selectionModel.isSelected(Ee))return!1;try{return(null!=Ee.value||this.canSelectNullableOptions)&&this._compareWith(Ee.value,R)}catch{return!1}});return se&&this._selectionModel.select(se),se}_assignValue(R){return!!(R!==this._value||this._multiple&&Array.isArray(R))&&(this.options&&this._setSelectionByValue(R),this._value=R,!0)}_skipPredicate=R=>!this.panelOpen&&R.disabled;_getOverlayWidth(R){return"auto"===this.panelWidth?(R instanceof o.$Q?R.elementRef:R||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const R of this.options)R._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new C.Au(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),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 R=(0,u.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,de.Q)(R)).subscribe(se=>{this._onSelect(se.source,se.isUserInput),se.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,u.h)(...this.options.map(se=>se._stateChanges)).pipe((0,de.Q)(R)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(R,se){const Ee=this._selectionModel.isSelected(R);this.canSelectNullableOptions||null!=R.value||this._multiple?(Ee!==R.selected&&(R.selected?this._selectionModel.select(R):this._selectionModel.deselect(R)),se&&this._keyManager.setActiveItem(R),this.multiple&&(this._sortValues(),se&&this.focus())):(R.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(R.value)),Ee!==this._selectionModel.isSelected(R)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const R=this.options.toArray();this._selectionModel.sort((se,Ee)=>this.sortComparator?this.sortComparator(se,Ee,R):R.indexOf(se)-R.indexOf(Ee)),this.stateChanges.next()}}_propagateChanges(R){let se;se=this.multiple?this.selected.map(Ee=>Ee.value):this.selected?this.selected.value:R,this._value=se,this.valueChange.emit(se),this._onChange(se),this.selectionChange.emit(this._getChangeEvent(se)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let R=-1;for(let se=0;se0}focus(R){this._elementRef.nativeElement.focus(R)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const R=this._parentFormField?.getLabelId()||null;return this.ariaLabelledby?(R?R+" ":"")+this.ariaLabelledby:R}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const R=this._parentFormField?.getLabelId();let se=(R?R+" ":"")+this._valueId;return this.ariaLabelledby&&(se+=" "+this.ariaLabelledby),se}_panelDoneAnimating(R){this.openedChange.emit(R)}setDescribedByIds(R){R.length?this._elementRef.nativeElement.setAttribute("aria-describedby",R.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(se){return new(se||Me)};static \u0275cmp=c.VBU({type:Me,selectors:[["mat-select"]],contentQueries:function(se,Ee,tt){if(1&se&&(c.wni(tt,V,5),c.wni(tt,O.wT,5),c.wni(tt,O.QC,5)),2&se){let Y;c.mGM(Y=c.lsd())&&(Ee.customTrigger=Y.first),c.mGM(Y=c.lsd())&&(Ee.options=Y),c.mGM(Y=c.lsd())&&(Ee.optionGroups=Y)}},viewQuery:function(se,Ee){if(1&se&&(c.GBs(Le,5),c.GBs(_e,5),c.GBs(o.WB,5)),2&se){let tt;c.mGM(tt=c.lsd())&&(Ee.trigger=tt.first),c.mGM(tt=c.lsd())&&(Ee.panel=tt.first),c.mGM(tt=c.lsd())&&(Ee._overlayDir=tt.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(se,Ee){1&se&&c.bIt("keydown",function(Y){return Ee._handleKeydown(Y)})("focus",function(){return Ee._onFocus()})("blur",function(){return Ee._onBlur()}),2&se&&(c.BMQ("id",Ee.id)("tabindex",Ee.disabled?-1:Ee.tabIndex)("aria-controls",Ee.panelOpen?Ee.id+"-panel":null)("aria-expanded",Ee.panelOpen)("aria-label",Ee.ariaLabel||null)("aria-required",Ee.required.toString())("aria-disabled",Ee.disabled.toString())("aria-invalid",Ee.errorState)("aria-activedescendant",Ee._getAriaActiveDescendant()),c.AVh("mat-mdc-select-disabled",Ee.disabled)("mat-mdc-select-invalid",Ee.errorState)("mat-mdc-select-required",Ee.required)("mat-mdc-select-empty",Ee.empty)("mat-mdc-select-multiple",Ee.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",c.L39],disableRipple:[2,"disableRipple","disableRipple",c.L39],tabIndex:[2,"tabIndex","tabIndex",R=>null==R?0:(0,c.Udg)(R)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",c.L39],placeholder:"placeholder",required:[2,"required","required",c.L39],multiple:[2,"multiple","multiple",c.L39],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",c.L39],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",c.Udg],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",c.L39]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[c.Jv_([{provide:d.qT,useExisting:Me},{provide:O.is,useExisting:Me}]),c.GFd,c.OA$],ngContentSelectors:Ae,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(se,Ee){if(1&se){const tt=c.RV6();c.NAR(Ce),c.j41(0,"div",2,0),c.bIt("click",function(){return c.eBV(tt),c.Njj(Ee.open())}),c.j41(3,"div",3),c.DNE(4,ke,2,1,"span",4)(5,ye,3,1,"span",5),c.k0s(),c.j41(6,"div",6)(7,"div",7),c.qSk(),c.j41(8,"svg",8),c.nrm(9,"path",9),c.k0s()()()(),c.DNE(10,Se,3,9,"ng-template",10),c.bIt("backdropClick",function(){return c.eBV(tt),c.Njj(Ee.close())})("attach",function(){return c.eBV(tt),c.Njj(Ee._onAttached())})("detach",function(){return c.eBV(tt),c.Njj(Ee.close())})}if(2&se){const tt=c.sdS(1);c.R7$(3),c.BMQ("id",Ee._valueId),c.R7$(),c.vxM(Ee.empty?4:5),c.R7$(6),c.Y8G("cdkConnectedOverlayPanelClass",Ee._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",Ee._scrollStrategy)("cdkConnectedOverlayOrigin",Ee._preferredOverlayOrigin||tt)("cdkConnectedOverlayOpen",Ee.panelOpen)("cdkConnectedOverlayPositions",Ee._positions)("cdkConnectedOverlayWidth",Ee._overlayWidth)}},dependencies:[o.$Q,o.WB,ae.YU],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 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-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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 .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-form-field-no-animations .mat-mdc-select-placeholder,._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:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.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}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}'],encapsulation:2,data:{animation:[z.transformPanel]},changeDetection:0})}return Me})(),ge=(()=>{class Me{static \u0275fac=function(se){return new(se||Me)};static \u0275mod=c.$C({type:Me});static \u0275inj=c.G2t({providers:[N],imports:[o.z_,O.Sy,O.yE,w.Gj,d.RG,O.Sy,O.yE]})}return Me})()},5416:(ut,Ie,a)=>{"use strict";a.d(Ie,{UG:()=>ke,ht:()=>W,um:()=>ne});var o=a(4438),c=a(8834),O=a(1413),d=a(177),w=a(9969),C=a(6939),x=a(9888),D=a(6860),p=a(9327),g=a(6969),y=a(6977);function h(ye,Se){if(1&ye){const z=o.RV6();o.j41(0,"div",1)(1,"button",2),o.bIt("click",function(){o.eBV(z);const L=o.XpG();return o.Njj(L.action())}),o.EFF(2),o.k0s()()}if(2&ye){const z=o.XpG();o.R7$(2),o.SpI(" ",z.data.action," ")}}const u=["label"];function P(ye,Se){}const T=Math.pow(2,31)-1;class E{_overlayRef;instance;containerInstance;_afterDismissed=new O.B;_afterOpened=new O.B;_onAction=new O.B;_durationTimeoutId;_dismissedByAction=!1;constructor(Se,z){this._overlayRef=z,this.containerInstance=Se,Se._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(Se){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(Se,T))}_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 W=new o.nKC("MatSnackBarData");class ne{politeness="assertive";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"}let de=(()=>{class ye{static \u0275fac=function(te){return new(te||ye)};static \u0275dir=o.FsC({type:ye,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return ye})(),ie=(()=>{class ye{static \u0275fac=function(te){return new(te||ye)};static \u0275dir=o.FsC({type:ye,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return ye})(),Z=(()=>{class ye{static \u0275fac=function(te){return new(te||ye)};static \u0275dir=o.FsC({type:ye,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return ye})(),ae=(()=>{class ye{snackBarRef=(0,o.WQX)(E);data=(0,o.WQX)(W);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(te){return new(te||ye)};static \u0275cmp=o.VBU({type:ye,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(te,L){1&te&&(o.j41(0,"div",0),o.EFF(1),o.k0s(),o.DNE(2,h,3,1,"div",1)),2&te&&(o.R7$(),o.SpI(" ",L.data.message,"\n"),o.R7$(),o.vxM(L.hasAction?2:-1))},dependencies:[c.$z,de,ie,Z],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return ye})();const Le={snackBarState:(0,w.hZ)("state",[(0,w.wk)("void, hidden",(0,w.iF)({transform:"scale(0.8)",opacity:0})),(0,w.wk)("visible",(0,w.iF)({transform:"scale(1)",opacity:1})),(0,w.kY)("* => visible",(0,w.i0)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,w.kY)("* => void, * => hidden",(0,w.i0)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,w.iF)({opacity:0})))])};let _e=(()=>{class ye extends C.lb{_ngZone=(0,o.WQX)(o.SKi);_elementRef=(0,o.WQX)(o.aKT);_changeDetectorRef=(0,o.WQX)(o.gRc);_platform=(0,o.WQX)(D.OD);snackBarConfig=(0,o.WQX)(ne);_document=(0,o.WQX)(d.qQ);_trackedModals=new Set;_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new O.B;_onExit=new O.B;_onEnter=new O.B;_animationState="void";_live;_label;_role;_liveElementId=(0,o.WQX)(x.g7).getId("mat-snack-bar-container-live-");constructor(){super();const z=this.snackBarConfig;this._live="assertive"!==z.politeness||z.announcementMessage?"off"===z.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(z){this._assertNotAttached();const te=this._portalOutlet.attachComponentPortal(z);return this._afterPortalAttached(),te}attachTemplatePortal(z){this._assertNotAttached();const te=this._portalOutlet.attachTemplatePortal(z);return this._afterPortalAttached(),te}attachDomPortal=z=>{this._assertNotAttached();const te=this._portalOutlet.attachDomPortal(z);return this._afterPortalAttached(),te};onAnimationEnd(z){const{fromState:te,toState:L}=z;if(("void"===L&&"void"!==te||"hidden"===L)&&this._completeExit(),"visible"===L){const q=this._onEnter;this._ngZone.run(()=>{q.next(),q.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){const z=this._elementRef.nativeElement,te=this.snackBarConfig.panelClass;te&&(Array.isArray(te)?te.forEach(J=>z.classList.add(J)):z.classList.add(te)),this._exposeToModals();const L=this._label.nativeElement,q="mdc-snackbar__label";L.classList.toggle(q,!L.querySelector(`.${q}`))}_exposeToModals(){const z=this._liveElementId,te=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let L=0;L{const te=z.getAttribute("aria-owns");if(te){const L=te.replace(this._liveElementId,"").trim();L.length>0?z.setAttribute("aria-owns",L):z.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const z=this._elementRef.nativeElement.querySelector("[aria-hidden]"),te=this._elementRef.nativeElement.querySelector("[aria-live]");if(z&&te){let L=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&z.contains(document.activeElement)&&(L=document.activeElement),z.removeAttribute("aria-hidden"),te.appendChild(z),L?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(te){return new(te||ye)};static \u0275cmp=o.VBU({type:ye,selectors:[["mat-snack-bar-container"]],viewQuery:function(te,L){if(1&te&&(o.GBs(C.I3,7),o.GBs(u,7)),2&te){let q;o.mGM(q=o.lsd())&&(L._portalOutlet=q.first),o.mGM(q=o.lsd())&&(L._label=q.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(te,L){1&te&&o.Kam("@state.done",function(J){return L.onAnimationEnd(J)}),2&te&&o.zvX("@state",L._animationState)},features:[o.Vt3],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(te,L){1&te&&(o.j41(0,"div",1)(1,"div",2,0)(3,"div",3),o.DNE(4,P,0,0,"ng-template",4),o.k0s(),o.nrm(5,"div"),o.k0s()()),2&te&&(o.R7$(5),o.BMQ("aria-live",L._live)("role",L._role)("id",L._liveElementId))},dependencies:[C.I3],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-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);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mdc-snackbar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mdc-snackbar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[Le.snackBarState]}})}return ye})();const Ae=new o.nKC("mat-snack-bar-default-options",{providedIn:"root",factory:function Ce(){return new ne}});let ke=(()=>{class ye{_overlay=(0,o.WQX)(g.hJ);_live=(0,o.WQX)(x.Ai);_injector=(0,o.WQX)(o.zZn);_breakpointObserver=(0,o.WQX)(p.QP);_parentSnackBar=(0,o.WQX)(ye,{optional:!0,skipSelf:!0});_defaultConfig=(0,o.WQX)(Ae);_snackBarRefAtThisLevel=null;simpleSnackBarComponent=ae;snackBarContainerComponent=_e;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){const z=this._parentSnackBar;return z?z._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(z){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=z:this._snackBarRefAtThisLevel=z}constructor(){}openFromComponent(z,te){return this._attach(z,te)}openFromTemplate(z,te){return this._attach(z,te)}open(z,te="",L){const q={...this._defaultConfig,...L};return q.data={message:z,action:te},q.announcementMessage===z&&(q.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,q)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(z,te){const q=o.zZn.create({parent:te&&te.viewContainerRef&&te.viewContainerRef.injector||this._injector,providers:[{provide:ne,useValue:te}]}),J=new C.A8(this.snackBarContainerComponent,te.viewContainerRef,q),X=z.attach(J);return X.instance.snackBarConfig=te,X.instance}_attach(z,te){const L={...new ne,...this._defaultConfig,...te},q=this._createOverlay(L),J=this._attachSnackBarContainer(q,L),X=new E(J,q);if(z instanceof o.C4Q){const K=new C.VA(z,null,{$implicit:L.data,snackBarRef:X});X.instance=J.attachTemplatePortal(K)}else{const K=this._createInjector(L,X),N=new C.A8(z,void 0,K),V=J.attachComponentPortal(N);X.instance=V.instance}return this._breakpointObserver.observe(p.Rp.HandsetPortrait).pipe((0,y.Q)(q.detachments())).subscribe(K=>{q.overlayElement.classList.toggle(this.handsetCssClass,K.matches)}),L.announcementMessage&&J._onAnnounce.subscribe(()=>{this._live.announce(L.announcementMessage,L.politeness)}),this._animateSnackBar(X,L),this._openedSnackBarRef=X,this._openedSnackBarRef}_animateSnackBar(z,te){z.afterDismissed().subscribe(()=>{this._openedSnackBarRef==z&&(this._openedSnackBarRef=null),te.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{z.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):z.containerInstance.enter(),te.duration&&te.duration>0&&z.afterOpened().subscribe(()=>z._dismissAfter(te.duration))}_createOverlay(z){const te=new g.rR;te.direction=z.direction;let L=this._overlay.position().global();const q="rtl"===z.direction,J="left"===z.horizontalPosition||"start"===z.horizontalPosition&&!q||"end"===z.horizontalPosition&&q,X=!J&&"center"!==z.horizontalPosition;return J?L.left("0"):X?L.right("0"):L.centerHorizontally(),"top"===z.verticalPosition?L.top("0"):L.bottom("0"),te.positionStrategy=L,this._overlay.create(te)}_createInjector(z,te){return o.zZn.create({parent:z&&z.viewContainerRef&&z.viewContainerRef.injector||this._injector,providers:[{provide:E,useValue:te},{provide:W,useValue:z.data}]})}static \u0275fac=function(te){return new(te||ye)};static \u0275prov=o.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}return ye})()},4823:(ut,Ie,a)=>{"use strict";a.d(Ie,{oV:()=>ye,uc:()=>te});var o=a(6977),c=a(4085),O=a(7336),d=a(4438),w=a(177),C=a(6860),x=a(9888),D=a(8203),p=a(6969),g=a(3980),y=a(6939),h=a(1413),P=(a(9969),a(3));const T=["tooltip"],ne=new d.nKC("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const L=(0,d.WQX)(p.hJ);return()=>L.scrollStrategies.reposition({scrollThrottle:20})}}),ie={provide:ne,deps:[p.hJ],useFactory:function de(L){return()=>L.scrollStrategies.reposition({scrollThrottle:20})}},ae=new d.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function Z(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),_e="tooltip-panel",Ce=(0,C.BQ)({passive:!0});let ye=(()=>{class L{_overlay=(0,d.WQX)(p.hJ);_elementRef=(0,d.WQX)(d.aKT);_scrollDispatcher=(0,d.WQX)(g.R);_viewContainerRef=(0,d.WQX)(d.c1b);_ngZone=(0,d.WQX)(d.SKi);_platform=(0,d.WQX)(C.OD);_ariaDescriber=(0,d.WQX)(x.vr);_focusMonitor=(0,d.WQX)(x.FN);_dir=(0,d.WQX)(D.dS);_injector=(0,d.WQX)(d.zZn);_defaultOptions=(0,d.WQX)(ae,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_scrollStrategy=(0,d.WQX)(ne);_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Se;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(J){J!==this._position&&(this._position=J,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(J){this._positionAtOrigin=(0,c.he)(J),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(J){const X=(0,c.he)(J);this._disabled!==X&&(this._disabled=X,X?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(J){this._showDelay=(0,c.OE)(J)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(J){this._hideDelay=(0,c.OE)(J),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(J){const X=this._message;this._message=null!=J?String(J).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(X)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(J){this._tooltipClass=J,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_document=(0,d.WQX)(w.qQ);_touchstartTimeout=null;_destroyed=new h.B;_isDestroyed=!1;constructor(){const J=this._defaultOptions;J&&(this._showDelay=J.showDelay,this._hideDelay=J.hideDelay,J.position&&(this.position=J.position),J.positionAtOrigin&&(this.positionAtOrigin=J.positionAtOrigin),J.touchGestures&&(this.touchGestures=J.touchGestures),J.tooltipClass&&(this.tooltipClass=J.tooltipClass)),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,o.Q)(this._destroyed)).subscribe(J=>{J?"keyboard"===J&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const J=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([X,K])=>{J.removeEventListener(X,K,Ce)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(J,this.message,"tooltip"),this._focusMonitor.stopMonitoring(J)}show(J=this.showDelay,X){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const K=this._createOverlay(X);this._detach(),this._portal=this._portal||new y.A8(this._tooltipComponent,this._viewContainerRef);const N=this._tooltipInstance=K.attach(this._portal).instance;N._triggerElement=this._elementRef.nativeElement,N._mouseLeaveHideDelay=this._hideDelay,N.afterHidden().pipe((0,o.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),N.show(J)}hide(J=this.hideDelay){const X=this._tooltipInstance;X&&(X.isVisible()?X.hide(J):(X._cancelPendingAnimations(),this._detach()))}toggle(J){this._isTooltipVisible()?this.hide():this.show(void 0,J)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(J){if(this._overlayRef){const N=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!J)&&N._origin instanceof d.aKT)return this._overlayRef;this._detach()}const X=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),K=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&J||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(X);return K.positionChanges.pipe((0,o.Q)(this._destroyed)).subscribe(N=>{this._updateCurrentPositionClass(N.connectionPair),this._tooltipInstance&&N.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:K,panelClass:`${this._cssClassPrefix}-${_e}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,o.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,o.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,o.Q)(this._destroyed)).subscribe(N=>{this._isTooltipVisible()&&N.keyCode===O._f&&!(0,O.rp)(N)&&(N.preventDefault(),N.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe((0,o.Q)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(J){const X=J.getConfig().positionStrategy,K=this._getOrigin(),N=this._getOverlayPosition();X.withPositions([this._addOffset({...K.main,...N.main}),this._addOffset({...K.fallback,...N.fallback})])}_addOffset(J){const K=!this._dir||"ltr"==this._dir.value;return"top"===J.originY?J.offsetY=-8:"bottom"===J.originY?J.offsetY=8:"start"===J.originX?J.offsetX=K?-8:8:"end"===J.originX&&(J.offsetX=K?8:-8),J}_getOrigin(){const J=!this._dir||"ltr"==this._dir.value,X=this.position;let K;"above"==X||"below"==X?K={originX:"center",originY:"above"==X?"top":"bottom"}:"before"==X||"left"==X&&J||"right"==X&&!J?K={originX:"start",originY:"center"}:("after"==X||"right"==X&&J||"left"==X&&!J)&&(K={originX:"end",originY:"center"});const{x:N,y:V}=this._invertPosition(K.originX,K.originY);return{main:K,fallback:{originX:N,originY:V}}}_getOverlayPosition(){const J=!this._dir||"ltr"==this._dir.value,X=this.position;let K;"above"==X?K={overlayX:"center",overlayY:"bottom"}:"below"==X?K={overlayX:"center",overlayY:"top"}:"before"==X||"left"==X&&J||"right"==X&&!J?K={overlayX:"end",overlayY:"center"}:("after"==X||"right"==X&&J||"left"==X&&!J)&&(K={overlayX:"start",overlayY:"center"});const{x:N,y:V}=this._invertPosition(K.overlayX,K.overlayY);return{main:K,fallback:{overlayX:N,overlayY:V}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),(0,d.mal)(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(J){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=J,this._tooltipInstance._markForCheck())}_invertPosition(J,X){return"above"===this.position||"below"===this.position?"top"===X?X="bottom":"bottom"===X&&(X="top"):"end"===J?J="start":"start"===J&&(J="end"),{x:J,y:X}}_updateCurrentPositionClass(J){const{overlayY:X,originX:K,originY:N}=J;let V;if(V="center"===X?this._dir&&"rtl"===this._dir.value?"end"===K?"left":"right":"start"===K?"left":"right":"bottom"===X&&"top"===N?"above":"below",V!==this._currentPosition){const I=this._overlayRef;if(I){const M=`${this._cssClassPrefix}-${_e}-`;I.removePanelClass(M+this._currentPosition),I.addPanelClass(M+V)}this._currentPosition=V}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",J=>{let X;this._setupPointerExitEventsIfNeeded(),void 0!==J.x&&void 0!==J.y&&(X=J),this.show(void 0,X)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",J=>{const X=J.targetTouches?.[0],K=X?{x:X.clientX,y:X.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,K)},this._defaultOptions?.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const J=[];if(this._platformSupportsMouseEvents())J.push(["mouseleave",X=>{const K=X.relatedTarget;(!K||!this._overlayRef?.overlayElement.contains(K))&&this.hide()}],["wheel",X=>this._wheelListener(X)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const X=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};J.push(["touchend",X],["touchcancel",X])}this._addListeners(J),this._passiveListeners.push(...J)}_addListeners(J){J.forEach(([X,K])=>{this._elementRef.nativeElement.addEventListener(X,K,Ce)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(J){if(this._isTooltipVisible()){const X=this._document.elementFromPoint(J.clientX,J.clientY),K=this._elementRef.nativeElement;X!==K&&!K.contains(X)&&this.hide()}}_disableNativeGesturesIfNecessary(){const J=this.touchGestures;if("off"!==J){const X=this._elementRef.nativeElement,K=X.style;("on"===J||"INPUT"!==X.nodeName&&"TEXTAREA"!==X.nodeName)&&(K.userSelect=K.msUserSelect=K.webkitUserSelect=K.MozUserSelect="none"),("on"===J||!X.draggable)&&(K.webkitUserDrag="none"),K.touchAction="none",K.webkitTapHighlightColor="transparent"}}_syncAriaDescription(J){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,J,"tooltip"),this._isDestroyed||(0,d.mal)({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(X){return new(X||L)};static \u0275dir=d.FsC({type:L,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(X,K){2&X&&d.AVh("mat-mdc-tooltip-disabled",K.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return L})(),Se=(()=>{class L{_changeDetectorRef=(0,d.WQX)(d.gRc);_elementRef=(0,d.WQX)(d.aKT);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new h.B;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){const J=(0,d.WQX)(d.bc$,{optional:!0});this._animationsDisabled="NoopAnimations"===J}show(J){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},J)}hide(J){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},J)}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:J}){(!J||!this._triggerElement.contains(J))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const J=this._elementRef.nativeElement.getBoundingClientRect();return J.height>24&&J.width>=200}_handleAnimationEnd({animationName:J}){(J===this._showAnimation||J===this._hideAnimation)&&this._finalizeAnimation(J===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(J){J?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(J){const X=this._tooltip.nativeElement,K=this._showAnimation,N=this._hideAnimation;if(X.classList.remove(J?N:K),X.classList.add(J?K:N),this._isVisible!==J&&(this._isVisible=J,this._changeDetectorRef.markForCheck()),J&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const V=getComputedStyle(X);("0s"===V.getPropertyValue("animation-duration")||"none"===V.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}J&&this._onShow(),this._animationsDisabled&&(X.classList.add("_mat-animation-noopable"),this._finalizeAnimation(J))}static \u0275fac=function(X){return new(X||L)};static \u0275cmp=d.VBU({type:L,selectors:[["mat-tooltip-component"]],viewQuery:function(X,K){if(1&X&&d.GBs(T,7),2&X){let N;d.mGM(N=d.lsd())&&(K._tooltip=N.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(X,K){1&X&&d.bIt("mouseleave",function(V){return K._handleMouseLeave(V)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(X,K){if(1&X){const N=d.RV6();d.j41(0,"div",1,0),d.bIt("animationend",function(I){return d.eBV(N),d.Njj(K._handleAnimationEnd(I))}),d.j41(2,"div",2),d.EFF(3),d.k0s()()}2&X&&(d.AVh("mdc-tooltip--multiline",K._isMultiline),d.Y8G("ngClass",K.tooltipClass),d.R7$(3),d.JRh(K.message))},dependencies:[w.YU],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-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}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.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})}return L})(),te=(()=>{class L{static \u0275fac=function(X){return new(X||L)};static \u0275mod=d.$C({type:L});static \u0275inj=d.G2t({providers:[ie],imports:[x.Pd,p.z_,P.yE,P.yE,g.Gj]})}return L})()},345:(ut,Ie,a)=>{"use strict";a.d(Ie,{$x:()=>Ut,B7:()=>te,B8:()=>oe,hE:()=>rt,up:()=>kt});var o=a(177),c=a(4438),O=a(1626);class d extends o.VF{supportsDOMEvents=!0}class w extends d{static makeCurrent(){(0,o.ZD)(new w)}onAndCancel(mt,We,it,bt){return mt.addEventListener(We,it,bt),()=>{mt.removeEventListener(We,it,bt)}}dispatchEvent(mt,We){mt.dispatchEvent(We)}remove(mt){mt.remove()}createElement(mt,We){return(We=We||this.getDefaultDocument()).createElement(mt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(mt){return mt.nodeType===Node.ELEMENT_NODE}isShadowRoot(mt){return mt instanceof DocumentFragment}getGlobalEventTarget(mt,We){return"window"===We?window:"document"===We?mt:"body"===We?mt.body:null}getBaseHref(mt){const We=function x(){return C=C||document.querySelector("base"),C?C.getAttribute("href"):null}();return null==We?null:function D(pt){return new URL(pt,document.baseURI).pathname}(We)}resetBaseElement(){C=null}getUserAgent(){return window.navigator.userAgent}getCookie(mt){return(0,o._b)(document.cookie,mt)}}let C=null,g=(()=>{class pt{build(){return new XMLHttpRequest}static \u0275fac=function(it){return new(it||pt)};static \u0275prov=c.jDH({token:pt,factory:pt.\u0275fac})}return pt})();const y=new c.nKC("");let h=(()=>{class pt{_zone;_plugins;_eventNameToPlugin=new Map;constructor(We,it){this._zone=it,We.forEach(bt=>{bt.manager=this}),this._plugins=We.slice().reverse()}addEventListener(We,it,bt,ct){return this._findPluginFor(it).addEventListener(We,it,bt,ct)}getZone(){return this._zone}_findPluginFor(We){let it=this._eventNameToPlugin.get(We);if(it)return it;if(it=this._plugins.find(ct=>ct.supports(We)),!it)throw new c.wOt(5101,!1);return this._eventNameToPlugin.set(We,it),it}static \u0275fac=function(it){return new(it||pt)(c.KVO(y),c.KVO(c.SKi))};static \u0275prov=c.jDH({token:pt,factory:pt.\u0275fac})}return pt})();class u{_doc;constructor(mt){this._doc=mt}manager}const P="ng-app-id";function T(pt){for(const mt of pt)mt.remove()}function E(pt,mt){const We=mt.createElement("style");return We.textContent=pt,We}function ne(pt,mt){const We=mt.createElement("link");return We.setAttribute("rel","stylesheet"),We.setAttribute("href",pt),We}let de=(()=>{class pt{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(We,it,bt,ct={}){this.doc=We,this.appId=it,this.nonce=bt,this.isServer=(0,o.Vy)(ct),function W(pt,mt,We,it){const bt=pt.head?.querySelectorAll(`style[${P}="${mt}"],link[${P}="${mt}"]`);if(bt)for(const ct of bt)ct.removeAttribute(P),ct instanceof HTMLLinkElement?it.set(ct.href.slice(ct.href.lastIndexOf("/")+1),{usage:0,elements:[ct]}):ct.textContent&&We.set(ct.textContent,{usage:0,elements:[ct]})}(We,it,this.inline,this.external),this.hosts.add(We.head)}addStyles(We,it){for(const bt of We)this.addUsage(bt,this.inline,E);it?.forEach(bt=>this.addUsage(bt,this.external,ne))}removeStyles(We,it){for(const bt of We)this.removeUsage(bt,this.inline);it?.forEach(bt=>this.removeUsage(bt,this.external))}addUsage(We,it,bt){const ct=it.get(We);ct?ct.usage++:it.set(We,{usage:1,elements:[...this.hosts].map(b=>this.addElement(b,bt(We,this.doc)))})}removeUsage(We,it){const bt=it.get(We);bt&&(bt.usage--,bt.usage<=0&&(T(bt.elements),it.delete(We)))}ngOnDestroy(){for(const[,{elements:We}]of[...this.inline,...this.external])T(We);this.hosts.clear()}addHost(We){this.hosts.add(We);for(const[it,{elements:bt}]of this.inline)bt.push(this.addElement(We,E(it,this.doc)));for(const[it,{elements:bt}]of this.external)bt.push(this.addElement(We,ne(it,this.doc)))}removeHost(We){this.hosts.delete(We)}addElement(We,it){return this.nonce&&it.setAttribute("nonce",this.nonce),this.isServer&&it.setAttribute(P,this.appId),We.appendChild(it)}static \u0275fac=function(it){return new(it||pt)(c.KVO(o.qQ),c.KVO(c.sZ2),c.KVO(c.BIS,8),c.KVO(c.Agw))};static \u0275prov=c.jDH({token:pt,factory:pt.\u0275fac})}return pt})();const ie={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/Math/MathML"},Z=/%COMP%/g,Ue=new c.nKC("",{providedIn:"root",factory:()=>!0});function Se(pt,mt){return mt.map(We=>We.replace(Z,pt))}let te=(()=>{class pt{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(We,it,bt,ct,b,k,A,H=null,xe=null){this.eventManager=We,this.sharedStylesHost=it,this.appId=bt,this.removeStylesOnCompDestroy=ct,this.doc=b,this.platformId=k,this.ngZone=A,this.nonce=H,this.tracingService=xe,this.platformIsServer=(0,o.Vy)(k),this.defaultRenderer=new L(We,b,A,this.platformIsServer,this.tracingService)}createRenderer(We,it){if(!We||!it)return this.defaultRenderer;this.platformIsServer&&it.encapsulation===c.gXe.ShadowDom&&(it={...it,encapsulation:c.gXe.Emulated});const bt=this.getOrCreateRenderer(We,it);return bt instanceof V?bt.applyToHost(We):bt instanceof N&&bt.applyStyles(),bt}getOrCreateRenderer(We,it){const bt=this.rendererByCompId;let ct=bt.get(it.id);if(!ct){const b=this.doc,k=this.ngZone,A=this.eventManager,H=this.sharedStylesHost,xe=this.removeStylesOnCompDestroy,Oe=this.platformIsServer,je=this.tracingService;switch(it.encapsulation){case c.gXe.Emulated:ct=new V(A,H,it,this.appId,xe,b,k,Oe,je);break;case c.gXe.ShadowDom:return new K(A,H,We,it,b,k,this.nonce,Oe,je);default:ct=new N(A,H,it,xe,b,k,Oe,je)}bt.set(it.id,ct)}return ct}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(We){this.rendererByCompId.delete(We)}static \u0275fac=function(it){return new(it||pt)(c.KVO(h),c.KVO(de),c.KVO(c.sZ2),c.KVO(Ue),c.KVO(o.qQ),c.KVO(c.Agw),c.KVO(c.SKi),c.KVO(c.BIS),c.KVO(c.Lf2,8))};static \u0275prov=c.jDH({token:pt,factory:pt.\u0275fac})}return pt})();class L{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(mt,We,it,bt,ct){this.eventManager=mt,this.doc=We,this.ngZone=it,this.platformIsServer=bt,this.tracingService=ct}destroy(){}destroyNode=null;createElement(mt,We){return We?this.doc.createElementNS(ie[We]||We,mt):this.doc.createElement(mt)}createComment(mt){return this.doc.createComment(mt)}createText(mt){return this.doc.createTextNode(mt)}appendChild(mt,We){(X(mt)?mt.content:mt).appendChild(We)}insertBefore(mt,We,it){mt&&(X(mt)?mt.content:mt).insertBefore(We,it)}removeChild(mt,We){We.remove()}selectRootElement(mt,We){let it="string"==typeof mt?this.doc.querySelector(mt):mt;if(!it)throw new c.wOt(-5104,!1);return We||(it.textContent=""),it}parentNode(mt){return mt.parentNode}nextSibling(mt){return mt.nextSibling}setAttribute(mt,We,it,bt){if(bt){We=bt+":"+We;const ct=ie[bt];ct?mt.setAttributeNS(ct,We,it):mt.setAttribute(We,it)}else mt.setAttribute(We,it)}removeAttribute(mt,We,it){if(it){const bt=ie[it];bt?mt.removeAttributeNS(bt,We):mt.removeAttribute(`${it}:${We}`)}else mt.removeAttribute(We)}addClass(mt,We){mt.classList.add(We)}removeClass(mt,We){mt.classList.remove(We)}setStyle(mt,We,it,bt){bt&(c.czy.DashCase|c.czy.Important)?mt.style.setProperty(We,it,bt&c.czy.Important?"important":""):mt.style[We]=it}removeStyle(mt,We,it){it&c.czy.DashCase?mt.style.removeProperty(We):mt.style[We]=""}setProperty(mt,We,it){null!=mt&&(mt[We]=it)}setValue(mt,We){mt.nodeValue=We}listen(mt,We,it,bt){if("string"==typeof mt&&!(mt=(0,o.QT)().getGlobalEventTarget(this.doc,mt)))throw new Error(`Unsupported event target ${mt} for event ${We}`);let ct=this.decoratePreventDefault(it);return null!==this.tracingService&&this.tracingService.wrapEventListener&&(ct=this.tracingService.wrapEventListener(mt,We,ct)),this.eventManager.addEventListener(mt,We,ct,bt)}decoratePreventDefault(mt){return We=>{if("__ngUnwrap__"===We)return mt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>mt(We)):mt(We))&&We.preventDefault()}}}function X(pt){return"TEMPLATE"===pt.tagName&&void 0!==pt.content}class K extends L{sharedStylesHost;hostEl;shadowRoot;constructor(mt,We,it,bt,ct,b,k,A,H){super(mt,ct,b,A,H),this.sharedStylesHost=We,this.hostEl=it,this.shadowRoot=it.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let xe=bt.styles;xe=Se(bt.id,xe);for(const je of xe){const Ze=document.createElement("style");k&&Ze.setAttribute("nonce",k),Ze.textContent=je,this.shadowRoot.appendChild(Ze)}const Oe=bt.getExternalStyles?.();if(Oe)for(const je of Oe){const Ze=ne(je,ct);k&&Ze.setAttribute("nonce",k),this.shadowRoot.appendChild(Ze)}}nodeOrShadowRoot(mt){return mt===this.hostEl?this.shadowRoot:mt}appendChild(mt,We){return super.appendChild(this.nodeOrShadowRoot(mt),We)}insertBefore(mt,We,it){return super.insertBefore(this.nodeOrShadowRoot(mt),We,it)}removeChild(mt,We){return super.removeChild(null,We)}parentNode(mt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(mt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class N extends L{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(mt,We,it,bt,ct,b,k,A,H){super(mt,ct,b,k,A),this.sharedStylesHost=We,this.removeStylesOnCompDestroy=bt;let xe=it.styles;this.styles=H?Se(H,xe):xe,this.styleUrls=it.getExternalStyles?.(H)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class V extends N{contentAttr;hostAttr;constructor(mt,We,it,bt,ct,b,k,A,H){const xe=bt+"-"+it.id;super(mt,We,it,ct,b,k,A,H,xe),this.contentAttr=function ve(pt){return"_ngcontent-%COMP%".replace(Z,pt)}(xe),this.hostAttr=function ye(pt){return"_nghost-%COMP%".replace(Z,pt)}(xe)}applyToHost(mt){this.applyStyles(),this.setAttribute(mt,this.hostAttr,"")}createElement(mt,We){const it=super.createElement(mt,We);return super.setAttribute(it,this.contentAttr,""),it}}let I=(()=>{class pt extends u{constructor(We){super(We)}supports(We){return!0}addEventListener(We,it,bt,ct){return We.addEventListener(it,bt,ct),()=>this.removeEventListener(We,it,bt,ct)}removeEventListener(We,it,bt,ct){return We.removeEventListener(it,bt,ct)}static \u0275fac=function(it){return new(it||pt)(c.KVO(o.qQ))};static \u0275prov=c.jDH({token:pt,factory:pt.\u0275fac})}return pt})();const M=["alt","control","meta","shift"],j={"\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"},ge={alt:pt=>pt.altKey,control:pt=>pt.ctrlKey,meta:pt=>pt.metaKey,shift:pt=>pt.shiftKey};let Me=(()=>{class pt extends u{constructor(We){super(We)}supports(We){return null!=pt.parseEventName(We)}addEventListener(We,it,bt,ct){const b=pt.parseEventName(it),k=pt.eventCallback(b.fullKey,bt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,o.QT)().onAndCancel(We,b.domEventName,k,ct))}static parseEventName(We){const it=We.toLowerCase().split("."),bt=it.shift();if(0===it.length||"keydown"!==bt&&"keyup"!==bt)return null;const ct=pt._normalizeKey(it.pop());let b="",k=it.indexOf("code");if(k>-1&&(it.splice(k,1),b="code."),M.forEach(H=>{const xe=it.indexOf(H);xe>-1&&(it.splice(xe,1),b+=H+".")}),b+=ct,0!=it.length||0===ct.length)return null;const A={};return A.domEventName=bt,A.fullKey=b,A}static matchEventFullKeyCode(We,it){let bt=j[We.key]||We.key,ct="";return it.indexOf("code.")>-1&&(bt=We.code,ct="code."),!(null==bt||!bt)&&(bt=bt.toLowerCase()," "===bt?bt="space":"."===bt&&(bt="dot"),M.forEach(b=>{b!==bt&&(0,ge[b])(We)&&(ct+=b+".")}),ct+=bt,ct===it)}static eventCallback(We,it,bt){return ct=>{pt.matchEventFullKeyCode(ct,We)&&bt.runGuarded(()=>it(ct))}}static _normalizeKey(We){return"esc"===We?"escape":We}static \u0275fac=function(it){return new(it||pt)(c.KVO(o.qQ))};static \u0275prov=c.jDH({token:pt,factory:pt.\u0275fac})}return pt})();function oe(pt,mt){return(0,c.TL3)({rootComponent:pt,...se(mt)})}function se(pt){return{appProviders:[...Nt,...pt?.providers??[]],platformProviders:De}}const De=[{provide:c.Agw,useValue:o.AJ},{provide:c.PLl,useValue:function tt(){w.makeCurrent()},multi:!0},{provide:o.qQ,useFactory:function Re(){return(0,c.TL$)(document),document},deps:[]}],Nt=[{provide:c.H8p,useValue:"root"},{provide:c.zcH,useFactory:function Y(){return new c.zcH},deps:[]},{provide:y,useClass:I,multi:!0,deps:[o.qQ]},{provide:y,useClass:Me,multi:!0,deps:[o.qQ]},te,de,h,{provide:c._9s,useExisting:te},{provide:o.N0,useClass:g,deps:[]},[]];let rt=(()=>{class pt{_doc;constructor(We){this._doc=We}getTitle(){return this._doc.title}setTitle(We){this._doc.title=We||""}static \u0275fac=function(it){return new(it||pt)(c.KVO(o.qQ))};static \u0275prov=c.jDH({token:pt,factory:pt.\u0275fac,providedIn:"root"})}return pt})(),kt=(()=>{class pt{static \u0275fac=function(it){return new(it||pt)};static \u0275prov=c.jDH({token:pt,factory:function(it){let bt=null;return bt=it?new(it||pt):c.KVO(Qt),bt},providedIn:"root"})}return pt})(),Qt=(()=>{class pt extends kt{_doc;constructor(We){super(),this._doc=We}sanitize(We,it){if(null==it)return null;switch(We){case c.WPN.NONE:return it;case c.WPN.HTML:return(0,c.ZF7)(it,"HTML")?(0,c.rcV)(it):(0,c.h9k)(this._doc,String(it)).toString();case c.WPN.STYLE:return(0,c.ZF7)(it,"Style")?(0,c.rcV)(it):it;case c.WPN.SCRIPT:if((0,c.ZF7)(it,"Script"))return(0,c.rcV)(it);throw new c.wOt(5200,!1);case c.WPN.URL:return(0,c.ZF7)(it,"URL")?(0,c.rcV)(it):(0,c.$MX)(String(it));case c.WPN.RESOURCE_URL:if((0,c.ZF7)(it,"ResourceURL"))return(0,c.rcV)(it);throw new c.wOt(5201,!1);default:throw new c.wOt(5202,!1)}}bypassSecurityTrustHtml(We){return(0,c.Kcf)(We)}bypassSecurityTrustStyle(We){return(0,c.cWb)(We)}bypassSecurityTrustScript(We){return(0,c.UyX)(We)}bypassSecurityTrustUrl(We){return(0,c.osQ)(We)}bypassSecurityTrustResourceUrl(We){return(0,c.e5t)(We)}static \u0275fac=function(it){return new(it||pt)(c.KVO(o.qQ))};static \u0275prov=c.jDH({token:pt,factory:pt.\u0275fac,providedIn:"root"})}return pt})();var rn=function(pt){return pt[pt.NoHttpTransferCache=0]="NoHttpTransferCache",pt[pt.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",pt[pt.I18nSupport=2]="I18nSupport",pt[pt.EventReplay=3]="EventReplay",pt[pt.IncrementalHydration=4]="IncrementalHydration",pt}(rn||{});function Ut(...pt){const mt=[],We=new Set,it=We.has(rn.HttpTransferCacheOptions);for(const{\u0275providers:bt,\u0275kind:ct}of pt)We.add(ct),bt.length&&mt.push(bt);return(0,c.EmA)([[],(0,c.M8M)(),We.has(rn.NoHttpTransferCache)||it?[]:(0,O.$m)({}),mt])}},2168:(ut,Ie,a)=>{"use strict";a.d(Ie,{nX:()=>Yi,wF:()=>_n,Ix:()=>Vt,Wk:()=>mi,iI:()=>Np,n3:()=>Qi,Sd:()=>ft,lh:()=>Mr});var o=a(4438),c=a(4402),O=a(6648),d=a(7673),w=a(4412),C=a(4572),x=a(9350),D=a(8793),p=a(9030),g=a(1203),y=a(8810),h=a(983),u=a(17),P=a(1413),T=a(8359),E=a(177),W=a(6354),ne=a(5558),de=a(6697),ie=a(9172),Z=a(5964),ae=a(1397),Le=a(1594),_e=a(274),Ce=a(8141),Ae=a(9437),ke=a(9974),Ue=a(6649),ye=a(9901),Se=a(4360);function z(m){return m<=0?()=>h.w:(0,ke.N)((F,_)=>{let B=[];F.subscribe((0,Se._)(_,fe=>{B.push(fe),m{for(const fe of B)_.next(fe);_.complete()},void 0,()=>{B=null}))})}var te=a(3774),L=a(3669),J=a(980),X=a(9898),K=a(6977),N=a(6365),V=a(345);const I="primary",M=Symbol("RouteTitle");class j{params;constructor(F){this.params=F||{}}has(F){return Object.prototype.hasOwnProperty.call(this.params,F)}get(F){if(this.has(F)){const _=this.params[F];return Array.isArray(_)?_[0]:_}return null}getAll(F){if(this.has(F)){const _=this.params[F];return Array.isArray(_)?_:[_]}return[]}get keys(){return Object.keys(this.params)}}function ge(m){return new j(m)}function Me(m,F,_){const B=_.path.split("/");if(B.length>m.length||"full"===_.pathMatch&&(F.hasChildren()||B.lengthB[Fe]===fe)}return m===F}function tt(m){return m.length>0?m[m.length-1]:null}function Y(m){return(0,c.A)(m)?m:(0,o.jNT)(m)?(0,O.H)(Promise.resolve(m)):(0,d.of)(m)}const Re={exact:function jt(m,F,_){if(!be(m.segments,F.segments)||!Ot(m.segments,F.segments,_)||m.numberOfChildren!==F.numberOfChildren)return!1;for(const B in F.children)if(!m.children[B]||!jt(m.children[B],F.children[B],_))return!1;return!0},subset:on},De={exact:function ht(m,F){return R(m,F)},subset:function Nt(m,F){return Object.keys(F).length<=Object.keys(m).length&&Object.keys(F).every(_=>Ee(m[_],F[_]))},ignored:()=>!0};function nt(m,F,_){return Re[_.paths](m.root,F.root,_.matrixParams)&&De[_.queryParams](m.queryParams,F.queryParams)&&!("exact"===_.fragment&&m.fragment!==F.fragment)}function on(m,F,_){return ln(m,F,F.segments,_)}function ln(m,F,_,B){if(m.segments.length>_.length){const fe=m.segments.slice(0,_.length);return!(!be(fe,_)||F.hasChildren()||!Ot(fe,_,B))}if(m.segments.length===_.length){if(!be(m.segments,_)||!Ot(m.segments,_,B))return!1;for(const fe in F.children)if(!m.children[fe]||!on(m.children[fe],F.children[fe],B))return!1;return!0}{const fe=_.slice(0,m.segments.length),Fe=_.slice(m.segments.length);return!!(be(m.segments,fe)&&Ot(m.segments,fe,B)&&m.children[I])&&ln(m.children[I],F,Fe,B)}}function Ot(m,F,_){return F.every((B,fe)=>De[_](m[fe].parameters,B.parameters))}class rt{root;queryParams;fragment;_queryParamMap;constructor(F=new ce([],{}),_={},B=null){this.root=F,this.queryParams=_,this.fragment=B}get queryParamMap(){return this._queryParamMap??=ge(this.queryParams),this._queryParamMap}toString(){return Q.serialize(this)}}class ce{segments;children;parent=null;constructor(F,_){this.segments=F,this.children=_,Object.values(_).forEach(B=>B.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Be(this)}}class ee{path;parameters;_parameterMap;constructor(F,_){this.path=F,this.parameters=_}get parameterMap(){return this._parameterMap??=ge(this.parameters),this._parameterMap}toString(){return rn(this)}}function be(m,F){return m.length===F.length&&m.every((_,B)=>_.path===F[B].path)}let ft=(()=>{class m{static \u0275fac=function(B){return new(B||m)};static \u0275prov=o.jDH({token:m,factory:()=>new le,providedIn:"root"})}return m})();class le{parse(F){const _=new mt(F);return new rt(_.parseRootSegment(),_.parseQueryParams(),_.parseFragment())}serialize(F){const _=`/${Je(F.root,!0)}`,B=function $e(m){const F=Object.entries(m).map(([_,B])=>Array.isArray(B)?B.map(fe=>`${ot(_)}=${ot(fe)}`).join("&"):`${ot(_)}=${ot(B)}`).filter(_=>_);return F.length?`?${F.join("&")}`:""}(F.queryParams);return`${_}${B}${"string"==typeof F.fragment?`#${function It(m){return encodeURI(m)}(F.fragment)}`:""}`}}const Q=new le;function Be(m){return m.segments.map(F=>rn(F)).join("/")}function Je(m,F){if(!m.hasChildren())return Be(m);if(F){const _=m.children[I]?Je(m.children[I],!1):"",B=[];return Object.entries(m.children).forEach(([fe,Fe])=>{fe!==I&&B.push(`${fe}:${Je(Fe,!1)}`)}),B.length>0?`${_}(${B.join("//")})`:_}{const _=function Ke(m,F){let _=[];return Object.entries(m.children).forEach(([B,fe])=>{B===I&&(_=_.concat(F(fe,B)))}),Object.entries(m.children).forEach(([B,fe])=>{B!==I&&(_=_.concat(F(fe,B)))}),_}(m,(B,fe)=>fe===I?[Je(m.children[I],!1)]:[`${fe}:${Je(B,!1)}`]);return 1===Object.keys(m.children).length&&null!=m.children[I]?`${Be(m)}/${_[0]}`:`${Be(m)}/(${_.join("//")})`}}function qe(m){return encodeURIComponent(m).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ot(m){return qe(m).replace(/%3B/gi,";")}function Ft(m){return qe(m).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function kt(m){return decodeURIComponent(m)}function Qt(m){return kt(m.replace(/\+/g,"%20"))}function rn(m){return`${Ft(m.path)}${function nn(m){return Object.entries(m).map(([F,_])=>`;${Ft(F)}=${Ft(_)}`).join("")}(m.parameters)}`}const lt=/^[^\/()?;#]+/;function Te(m){const F=m.match(lt);return F?F[0]:""}const He=/^[^\/()?;=#]+/,Lt=/^[^=?&#]+/,Un=/^[^&#]+/;class mt{url;remaining;constructor(F){this.url=F,this.remaining=F}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ce([],{}):new ce([],this.parseChildren())}parseQueryParams(){const F={};if(this.consumeOptional("?"))do{this.parseQueryParam(F)}while(this.consumeOptional("&"));return F}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const F=[];for(this.peekStartsWith("(")||F.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),F.push(this.parseSegment());let _={};this.peekStartsWith("/(")&&(this.capture("/"),_=this.parseParens(!0));let B={};return this.peekStartsWith("(")&&(B=this.parseParens(!1)),(F.length>0||Object.keys(_).length>0)&&(B[I]=new ce(F,_)),B}parseSegment(){const F=Te(this.remaining);if(""===F&&this.peekStartsWith(";"))throw new o.wOt(4009,!1);return this.capture(F),new ee(kt(F),this.parseMatrixParams())}parseMatrixParams(){const F={};for(;this.consumeOptional(";");)this.parseParam(F);return F}parseParam(F){const _=function at(m){const F=m.match(He);return F?F[0]:""}(this.remaining);if(!_)return;this.capture(_);let B="";if(this.consumeOptional("=")){const fe=Te(this.remaining);fe&&(B=fe,this.capture(B))}F[kt(_)]=kt(B)}parseQueryParam(F){const _=function Ut(m){const F=m.match(Lt);return F?F[0]:""}(this.remaining);if(!_)return;this.capture(_);let B="";if(this.consumeOptional("=")){const Ye=function pt(m){const F=m.match(Un);return F?F[0]:""}(this.remaining);Ye&&(B=Ye,this.capture(B))}const fe=Qt(_),Fe=Qt(B);if(F.hasOwnProperty(fe)){let Ye=F[fe];Array.isArray(Ye)||(Ye=[Ye],F[fe]=Ye),Ye.push(Fe)}else F[fe]=Fe}parseParens(F){const _={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const B=Te(this.remaining),fe=this.remaining[B.length];if("/"!==fe&&")"!==fe&&";"!==fe)throw new o.wOt(4010,!1);let Fe;B.indexOf(":")>-1?(Fe=B.slice(0,B.indexOf(":")),this.capture(Fe),this.capture(":")):F&&(Fe=I);const Ye=this.parseChildren();_[Fe]=1===Object.keys(Ye).length?Ye[I]:new ce([],Ye),this.consumeOptional("//")}return _}peekStartsWith(F){return this.remaining.startsWith(F)}consumeOptional(F){return!!this.peekStartsWith(F)&&(this.remaining=this.remaining.substring(F.length),!0)}capture(F){if(!this.consumeOptional(F))throw new o.wOt(4011,!1)}}function We(m){return m.segments.length>0?new ce([],{[I]:m}):m}function it(m){const F={};for(const[B,fe]of Object.entries(m.children)){const Fe=it(fe);if(B===I&&0===Fe.segments.length&&Fe.hasChildren())for(const[Ye,Et]of Object.entries(Fe.children))F[Ye]=Et;else(Fe.segments.length>0||Fe.hasChildren())&&(F[B]=Fe)}return function bt(m){if(1===m.numberOfChildren&&m.children[I]){const F=m.children[I];return new ce(m.segments.concat(F.segments),F.children)}return m}(new ce(m.segments,F))}function ct(m){return m instanceof rt}function k(m){let F;const fe=We(function _(Fe){const Ye={};for(const yt of Fe.children){const Yt=_(yt);Ye[yt.outlet]=Yt}const Et=new ce(Fe.url,Ye);return Fe===m&&(F=Et),Et}(m.root));return F??fe}function A(m,F,_,B){let fe=m;for(;fe.parent;)fe=fe.parent;if(0===F.length)return Oe(fe,fe,fe,_,B);const Fe=function dt(m){if("string"==typeof m[0]&&1===m.length&&"/"===m[0])return new Ze(!0,0,m);let F=0,_=!1;const B=m.reduce((fe,Fe,Ye)=>{if("object"==typeof Fe&&null!=Fe){if(Fe.outlets){const Et={};return Object.entries(Fe.outlets).forEach(([yt,Yt])=>{Et[yt]="string"==typeof Yt?Yt.split("/"):Yt}),[...fe,{outlets:Et}]}if(Fe.segmentPath)return[...fe,Fe.segmentPath]}return"string"!=typeof Fe?[...fe,Fe]:0===Ye?(Fe.split("/").forEach((Et,yt)=>{0==yt&&"."===Et||(0==yt&&""===Et?_=!0:".."===Et?F++:""!=Et&&fe.push(Et))}),fe):[...fe,Fe]},[]);return new Ze(_,F,B)}(F);if(Fe.toRoot())return Oe(fe,fe,new ce([],{}),_,B);const Ye=function Ct(m,F,_){if(m.isAbsolute)return new _t(F,!0,0);if(!_)return new _t(F,!1,NaN);if(null===_.parent)return new _t(_,!0,0);const B=H(m.commands[0])?0:1;return function At(m,F,_){let B=m,fe=F,Fe=_;for(;Fe>fe;){if(Fe-=fe,B=B.parent,!B)throw new o.wOt(4005,!1);fe=B.segments.length}return new _t(B,!1,fe-Fe)}(_,_.segments.length-1+B,m.numberOfDoubleDots)}(Fe,fe,m),Et=Ye.processChildren?Tt(Ye.segmentGroup,Ye.index,Fe.commands):Bt(Ye.segmentGroup,Ye.index,Fe.commands);return Oe(fe,Ye.segmentGroup,Et,_,B)}function H(m){return"object"==typeof m&&null!=m&&!m.outlets&&!m.segmentPath}function xe(m){return"object"==typeof m&&null!=m&&m.outlets}function Oe(m,F,_,B,fe){let Ye,Fe={};B&&Object.entries(B).forEach(([yt,Yt])=>{Fe[yt]=Array.isArray(Yt)?Yt.map(xn=>`${xn}`):`${Yt}`}),Ye=m===F?_:je(m,F,_);const Et=We(it(Ye));return new rt(Et,Fe,fe)}function je(m,F,_){const B={};return Object.entries(m.children).forEach(([fe,Fe])=>{B[fe]=Fe===F?_:je(Fe,F,_)}),new ce(m.segments,B)}class Ze{isAbsolute;numberOfDoubleDots;commands;constructor(F,_,B){if(this.isAbsolute=F,this.numberOfDoubleDots=_,this.commands=B,F&&B.length>0&&H(B[0]))throw new o.wOt(4003,!1);const fe=B.find(xe);if(fe&&fe!==tt(B))throw new o.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class _t{segmentGroup;processChildren;index;constructor(F,_,B){this.segmentGroup=F,this.processChildren=_,this.index=B}}function Bt(m,F,_){if(m??=new ce([],{}),0===m.segments.length&&m.hasChildren())return Tt(m,F,_);const B=function Gt(m,F,_){let B=0,fe=F;const Fe={match:!1,pathIndex:0,commandIndex:0};for(;fe=_.length)return Fe;const Ye=m.segments[fe],Et=_[B];if(xe(Et))break;const yt=`${Et}`,Yt=B<_.length-1?_[B+1]:null;if(fe>0&&void 0===yt)break;if(yt&&Yt&&"object"==typeof Yt&&void 0===Yt.outlets){if(!dn(yt,Yt,Ye))return Fe;B+=2}else{if(!dn(yt,{},Ye))return Fe;B++}fe++}return{match:!0,pathIndex:fe,commandIndex:B}}(m,F,_),fe=_.slice(B.commandIndex);if(B.match&&B.pathIndexFe!==I)&&m.children[I]&&1===m.numberOfChildren&&0===m.children[I].segments.length){const Fe=Tt(m.children[I],F,_);return new ce(m.segments,Fe.children)}return Object.entries(B).forEach(([Fe,Ye])=>{"string"==typeof Ye&&(Ye=[Ye]),null!==Ye&&(fe[Fe]=Bt(m.children[Fe],F,Ye))}),Object.entries(m.children).forEach(([Fe,Ye])=>{void 0===B[Fe]&&(fe[Fe]=Ye)}),new ce(m.segments,fe)}}function zt(m,F,_){const B=m.segments.slice(0,F);let fe=0;for(;fe<_.length;){const Fe=_[fe];if(xe(Fe)){const yt=Jt(Fe.outlets);return new ce(B,yt)}if(0===fe&&H(_[0])){B.push(new ee(m.segments[F].path,en(_[0]))),fe++;continue}const Ye=xe(Fe)?Fe.outlets[I]:`${Fe}`,Et=fe<_.length-1?_[fe+1]:null;Ye&&Et&&H(Et)?(B.push(new ee(Ye,en(Et))),fe+=2):(B.push(new ee(Ye,{})),fe++)}return new ce(B,{})}function Jt(m){const F={};return Object.entries(m).forEach(([_,B])=>{"string"==typeof B&&(B=[B]),null!==B&&(F[_]=zt(new ce([],{}),0,B))}),F}function en(m){const F={};return Object.entries(m).forEach(([_,B])=>F[_]=`${B}`),F}function dn(m,F,_){return m==_.path&&R(F,_.parameters)}const un="imperative";var tn=function(m){return m[m.NavigationStart=0]="NavigationStart",m[m.NavigationEnd=1]="NavigationEnd",m[m.NavigationCancel=2]="NavigationCancel",m[m.NavigationError=3]="NavigationError",m[m.RoutesRecognized=4]="RoutesRecognized",m[m.ResolveStart=5]="ResolveStart",m[m.ResolveEnd=6]="ResolveEnd",m[m.GuardsCheckStart=7]="GuardsCheckStart",m[m.GuardsCheckEnd=8]="GuardsCheckEnd",m[m.RouteConfigLoadStart=9]="RouteConfigLoadStart",m[m.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",m[m.ChildActivationStart=11]="ChildActivationStart",m[m.ChildActivationEnd=12]="ChildActivationEnd",m[m.ActivationStart=13]="ActivationStart",m[m.ActivationEnd=14]="ActivationEnd",m[m.Scroll=15]="Scroll",m[m.NavigationSkipped=16]="NavigationSkipped",m}(tn||{});class mn{id;url;constructor(F,_){this.id=F,this.url=_}}class yn extends mn{type=tn.NavigationStart;navigationTrigger;restoredState;constructor(F,_,B="imperative",fe=null){super(F,_),this.navigationTrigger=B,this.restoredState=fe}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class _n extends mn{urlAfterRedirects;type=tn.NavigationEnd;constructor(F,_,B){super(F,_),this.urlAfterRedirects=B}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Mn=function(m){return m[m.Redirect=0]="Redirect",m[m.SupersededByNewNavigation=1]="SupersededByNewNavigation",m[m.NoDataFromResolver=2]="NoDataFromResolver",m[m.GuardRejected=3]="GuardRejected",m}(Mn||{}),qt=function(m){return m[m.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",m[m.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",m}(qt||{});class gn extends mn{reason;code;type=tn.NavigationCancel;constructor(F,_,B,fe){super(F,_),this.reason=B,this.code=fe}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class In extends mn{reason;code;type=tn.NavigationSkipped;constructor(F,_,B,fe){super(F,_),this.reason=B,this.code=fe}}class Ve extends mn{error;target;type=tn.NavigationError;constructor(F,_,B,fe){super(F,_),this.error=B,this.target=fe}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ze extends mn{urlAfterRedirects;state;type=tn.RoutesRecognized;constructor(F,_,B,fe){super(F,_),this.urlAfterRedirects=B,this.state=fe}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ge extends mn{urlAfterRedirects;state;type=tn.GuardsCheckStart;constructor(F,_,B,fe){super(F,_),this.urlAfterRedirects=B,this.state=fe}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gt extends mn{urlAfterRedirects;state;shouldActivate;type=tn.GuardsCheckEnd;constructor(F,_,B,fe,Fe){super(F,_),this.urlAfterRedirects=B,this.state=fe,this.shouldActivate=Fe}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class wt extends mn{urlAfterRedirects;state;type=tn.ResolveStart;constructor(F,_,B,fe){super(F,_),this.urlAfterRedirects=B,this.state=fe}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wt extends mn{urlAfterRedirects;state;type=tn.ResolveEnd;constructor(F,_,B,fe){super(F,_),this.urlAfterRedirects=B,this.state=fe}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ht{route;type=tn.RouteConfigLoadStart;constructor(F){this.route=F}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class hn{route;type=tn.RouteConfigLoadEnd;constructor(F){this.route=F}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class sn{snapshot;type=tn.ChildActivationStart;constructor(F){this.snapshot=F}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ln{snapshot;type=tn.ChildActivationEnd;constructor(F){this.snapshot=F}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $t{snapshot;type=tn.ActivationStart;constructor(F){this.snapshot=F}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qn{snapshot;type=tn.ActivationEnd;constructor(F){this.snapshot=F}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qn{routerEvent;position;anchor;type=tn.Scroll;constructor(F,_,B){this.routerEvent=F,this.position=_,this.anchor=B}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class hi{}class Kn{url;navigationBehaviorOptions;constructor(F,_){this.url=F,this.navigationBehaviorOptions=_}}function bn(m){return m.outlet||I}function pr(m){if(!m)return null;if(m.routeConfig?._injector)return m.routeConfig._injector;for(let F=m.parent;F;F=F.parent){const _=F.routeConfig;if(_?._loadedInjector)return _._loadedInjector;if(_?._injector)return _._injector}return null}class li{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return pr(this.route?.snapshot)??this.rootInjector}constructor(F){this.rootInjector=F,this.children=new tr(this.rootInjector)}}let tr=(()=>{class m{rootInjector;contexts=new Map;constructor(_){this.rootInjector=_}onChildOutletCreated(_,B){const fe=this.getOrCreateContext(_);fe.outlet=B,this.contexts.set(_,fe)}onChildOutletDestroyed(_){const B=this.getContext(_);B&&(B.outlet=null,B.attachRef=null)}onOutletDeactivated(){const _=this.contexts;return this.contexts=new Map,_}onOutletReAttached(_){this.contexts=_}getOrCreateContext(_){let B=this.getContext(_);return B||(B=new li(this.rootInjector),this.contexts.set(_,B)),B}getContext(_){return this.contexts.get(_)||null}static \u0275fac=function(B){return new(B||m)(o.KVO(o.uvJ))};static \u0275prov=o.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();class Pr{_root;constructor(F){this._root=F}get root(){return this._root.value}parent(F){const _=this.pathFromRoot(F);return _.length>1?_[_.length-2]:null}children(F){const _=ar(F,this._root);return _?_.children.map(B=>B.value):[]}firstChild(F){const _=ar(F,this._root);return _&&_.children.length>0?_.children[0].value:null}siblings(F){const _=ji(F,this._root);return _.length<2?[]:_[_.length-2].children.map(fe=>fe.value).filter(fe=>fe!==F)}pathFromRoot(F){return ji(F,this._root).map(_=>_.value)}}function ar(m,F){if(m===F.value)return F;for(const _ of F.children){const B=ar(m,_);if(B)return B}return null}function ji(m,F){if(m===F.value)return[F];for(const _ of F.children){const B=ji(m,_);if(B.length)return B.unshift(F),B}return[]}class oi{value;children;constructor(F,_){this.value=F,this.children=_}toString(){return`TreeNode(${this.value})`}}function wi(m){const F={};return m&&m.children.forEach(_=>F[_.value.outlet]=_),F}class br extends Pr{snapshot;constructor(F,_){super(F),this.snapshot=_,kr(this,F)}toString(){return this.snapshot.toString()}}function ro(m){const F=function Nr(m){const Fe=new Er([],{},{},"",{},I,m,null,{});return new lr("",new oi(Fe,[]))}(m),_=new w.t([new ee("",{})]),B=new w.t({}),fe=new w.t({}),Fe=new w.t({}),Ye=new w.t(""),Et=new Yi(_,B,Fe,Ye,fe,I,m,F.root);return Et.snapshot=F.root,new br(new oi(Et,[]),F)}class Yi{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(F,_,B,fe,Fe,Ye,Et,yt){this.urlSubject=F,this.paramsSubject=_,this.queryParamsSubject=B,this.fragmentSubject=fe,this.dataSubject=Fe,this.outlet=Ye,this.component=Et,this._futureSnapshot=yt,this.title=this.dataSubject?.pipe((0,W.T)(Yt=>Yt[M]))??(0,d.of)(void 0),this.url=F,this.params=_,this.queryParams=B,this.fragment=fe,this.data=Fe}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,W.T)(F=>ge(F))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,W.T)(F=>ge(F))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Wi(m,F,_="emptyOnly"){let B;const{routeConfig:fe}=m;return B=null===F||"always"!==_&&""!==fe?.path&&(F.component||F.routeConfig?.loadComponent)?{params:{...m.params},data:{...m.data},resolve:{...m.data,...m._resolvedData??{}}}:{params:{...F.params,...m.params},data:{...F.data,...m.data},resolve:{...m.data,...F.data,...fe?.data,...m._resolvedData}},fe&&mr(fe)&&(B.resolve[M]=fe.title),B}class Er{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[M]}constructor(F,_,B,fe,Fe,Ye,Et,yt,Yt){this.url=F,this.params=_,this.queryParams=B,this.fragment=fe,this.data=Fe,this.outlet=Ye,this.component=Et,this.routeConfig=yt,this._resolve=Yt}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ge(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ge(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(B=>B.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class lr extends Pr{url;constructor(F,_){super(_),this.url=F,kr(this,_)}toString(){return fi(this._root)}}function kr(m,F){F.value._routerState=m,F.children.forEach(_=>kr(m,_))}function fi(m){const F=m.children.length>0?` { ${m.children.map(fi).join(", ")} } `:"";return`${m.value}${F}`}function cr(m){if(m.snapshot){const F=m.snapshot,_=m._futureSnapshot;m.snapshot=_,R(F.queryParams,_.queryParams)||m.queryParamsSubject.next(_.queryParams),F.fragment!==_.fragment&&m.fragmentSubject.next(_.fragment),R(F.params,_.params)||m.paramsSubject.next(_.params),function oe(m,F){if(m.length!==F.length)return!1;for(let _=0;_R(_.parameters,F[B].parameters))}(m.url,F.url);return _&&!(!m.parent!=!F.parent)&&(!m.parent||an(m.parent,F.parent))}function mr(m){return"string"==typeof m.title||null===m.title}const Hi=new o.nKC("");let Qi=(()=>{class m{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=I;activateEvents=new o.bkB;deactivateEvents=new o.bkB;attachEvents=new o.bkB;detachEvents=new o.bkB;routerOutletData=(0,o.hFB)(void 0);parentContexts=(0,o.WQX)(tr);location=(0,o.WQX)(o.c1b);changeDetector=(0,o.WQX)(o.gRc);inputBinder=(0,o.WQX)(Cr,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(_){if(_.name){const{firstChange:B,previousValue:fe}=_.name;if(B)return;this.isTrackedInParentContexts(fe)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(fe)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(_){return this.parentContexts.getContext(_)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const _=this.parentContexts.getContext(this.name);_?.route&&(_.attachRef?this.attach(_.attachRef,_.route):this.activateWith(_.route,_.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new o.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new o.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new o.wOt(4012,!1);this.location.detach();const _=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(_.instance),_}attach(_,B){this.activated=_,this._activatedRoute=B,this.location.insert(_.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(_.instance)}deactivate(){if(this.activated){const _=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(_)}}activateWith(_,B){if(this.isActivated)throw new o.wOt(4013,!1);this._activatedRoute=_;const fe=this.location,Ye=_.snapshot.component,Et=this.parentContexts.getOrCreateContext(this.name).children,yt=new nr(_,Et,fe.injector,this.routerOutletData);this.activated=fe.createComponent(Ye,{index:fe.length,injector:yt,environmentInjector:B}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(B){return new(B||m)};static \u0275dir=o.FsC({type:m,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[o.OA$]})}return m})();class nr{route;childContexts;parent;outletData;__ngOutletInjector(F){return new nr(this.route,this.childContexts,F,this.outletData)}constructor(F,_,B,fe){this.route=F,this.childContexts=_,this.parent=B,this.outletData=fe}get(F,_){return F===Yi?this.route:F===tr?this.childContexts:F===Hi?this.outletData:this.parent.get(F,_)}}const Cr=new o.nKC("");let Hr=(()=>{class m{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(_){this.unsubscribeFromRouteData(_),this.subscribeToRouteData(_)}unsubscribeFromRouteData(_){this.outletDataSubscriptions.get(_)?.unsubscribe(),this.outletDataSubscriptions.delete(_)}subscribeToRouteData(_){const{activatedRoute:B}=_,fe=(0,C.z)([B.queryParams,B.params,B.data]).pipe((0,ne.n)(([Fe,Ye,Et],yt)=>(Et={...Fe,...Ye,...Et},0===yt?(0,d.of)(Et):Promise.resolve(Et)))).subscribe(Fe=>{if(!_.isActivated||!_.activatedComponentRef||_.activatedRoute!==B||null===B.component)return void this.unsubscribeFromRouteData(_);const Ye=(0,o.HJs)(B.component);if(Ye)for(const{templateName:Et}of Ye.inputs)_.activatedComponentRef.setInput(Et,Fe[Et]);else this.unsubscribeFromRouteData(_)});this.outletDataSubscriptions.set(_,fe)}static \u0275fac=function(B){return new(B||m)};static \u0275prov=o.jDH({token:m,factory:m.\u0275fac})}return m})();function yi(m,F,_){if(_&&m.shouldReuseRoute(F.value,_.value.snapshot)){const B=_.value;B._futureSnapshot=F.value;const fe=function ni(m,F,_){return F.children.map(B=>{for(const fe of _.children)if(m.shouldReuseRoute(B.value,fe.value.snapshot))return yi(m,B,fe);return yi(m,B)})}(m,F,_);return new oi(B,fe)}{if(m.shouldAttach(F.value)){const Fe=m.retrieve(F.value);if(null!==Fe){const Ye=Fe.route;return Ye.value._futureSnapshot=F.value,Ye.children=F.children.map(Et=>yi(m,Et)),Ye}}const B=function Ei(m){return new Yi(new w.t(m.url),new w.t(m.params),new w.t(m.queryParams),new w.t(m.fragment),new w.t(m.data),m.outlet,m.component,m)}(F.value),fe=F.children.map(Fe=>yi(m,Fe));return new oi(B,fe)}}class Ci{redirectTo;navigationBehaviorOptions;constructor(F,_){this.redirectTo=F,this.navigationBehaviorOptions=_}}const vi="ngNavigationCancelingError";function Ti(m,F){const{redirectTo:_,navigationBehaviorOptions:B}=ct(F)?{redirectTo:F,navigationBehaviorOptions:void 0}:F,fe=kn(!1,Mn.Redirect);return fe.url=_,fe.navigationBehaviorOptions=B,fe}function kn(m,F){const _=new Error(`NavigationCancelingError: ${m||""}`);return _[vi]=!0,_.cancellationCode=F,_}function Ai(m){return!!m&&m[vi]}class Co{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(F,_,B,fe,Fe){this.routeReuseStrategy=F,this.futureState=_,this.currState=B,this.forwardEvent=fe,this.inputBindingEnabled=Fe}activate(F){const _=this.futureState._root,B=this.currState?this.currState._root:null;this.deactivateChildRoutes(_,B,F),cr(this.futureState.root),this.activateChildRoutes(_,B,F)}deactivateChildRoutes(F,_,B){const fe=wi(_);F.children.forEach(Fe=>{const Ye=Fe.value.outlet;this.deactivateRoutes(Fe,fe[Ye],B),delete fe[Ye]}),Object.values(fe).forEach(Fe=>{this.deactivateRouteAndItsChildren(Fe,B)})}deactivateRoutes(F,_,B){const fe=F.value,Fe=_?_.value:null;if(fe===Fe)if(fe.component){const Ye=B.getContext(fe.outlet);Ye&&this.deactivateChildRoutes(F,_,Ye.children)}else this.deactivateChildRoutes(F,_,B);else Fe&&this.deactivateRouteAndItsChildren(_,B)}deactivateRouteAndItsChildren(F,_){F.value.component&&this.routeReuseStrategy.shouldDetach(F.value.snapshot)?this.detachAndStoreRouteSubtree(F,_):this.deactivateRouteAndOutlet(F,_)}detachAndStoreRouteSubtree(F,_){const B=_.getContext(F.value.outlet),fe=B&&F.value.component?B.children:_,Fe=wi(F);for(const Ye of Object.values(Fe))this.deactivateRouteAndItsChildren(Ye,fe);if(B&&B.outlet){const Ye=B.outlet.detach(),Et=B.children.onOutletDeactivated();this.routeReuseStrategy.store(F.value.snapshot,{componentRef:Ye,route:F,contexts:Et})}}deactivateRouteAndOutlet(F,_){const B=_.getContext(F.value.outlet),fe=B&&F.value.component?B.children:_,Fe=wi(F);for(const Ye of Object.values(Fe))this.deactivateRouteAndItsChildren(Ye,fe);B&&(B.outlet&&(B.outlet.deactivate(),B.children.onOutletDeactivated()),B.attachRef=null,B.route=null)}activateChildRoutes(F,_,B){const fe=wi(_);F.children.forEach(Fe=>{this.activateRoutes(Fe,fe[Fe.value.outlet],B),this.forwardEvent(new qn(Fe.value.snapshot))}),F.children.length&&this.forwardEvent(new Ln(F.value.snapshot))}activateRoutes(F,_,B){const fe=F.value,Fe=_?_.value:null;if(cr(fe),fe===Fe)if(fe.component){const Ye=B.getOrCreateContext(fe.outlet);this.activateChildRoutes(F,_,Ye.children)}else this.activateChildRoutes(F,_,B);else if(fe.component){const Ye=B.getOrCreateContext(fe.outlet);if(this.routeReuseStrategy.shouldAttach(fe.snapshot)){const Et=this.routeReuseStrategy.retrieve(fe.snapshot);this.routeReuseStrategy.store(fe.snapshot,null),Ye.children.onOutletReAttached(Et.contexts),Ye.attachRef=Et.componentRef,Ye.route=Et.route.value,Ye.outlet&&Ye.outlet.attach(Et.componentRef,Et.route.value),cr(Et.route.value),this.activateChildRoutes(F,null,Ye.children)}else Ye.attachRef=null,Ye.route=fe,Ye.outlet&&Ye.outlet.activateWith(fe,Ye.injector),this.activateChildRoutes(F,null,Ye.children)}else this.activateChildRoutes(F,null,B)}}class Ns{path;route;constructor(F){this.path=F,this.route=this.path[this.path.length-1]}}class zr{component;route;constructor(F,_){this.component=F,this.route=_}}function ks(m,F,_){const B=m._root;return dr(B,F?F._root:null,_,[B.value])}function Fr(m,F){const _=Symbol(),B=F.get(m,_);return B===_?"function"!=typeof m||(0,o.LfX)(m)?F.get(m):m:B}function dr(m,F,_,B,fe={canDeactivateChecks:[],canActivateChecks:[]}){const Fe=wi(F);return m.children.forEach(Ye=>{(function Na(m,F,_,B,fe={canDeactivateChecks:[],canActivateChecks:[]}){const Fe=m.value,Ye=F?F.value:null,Et=_?_.getContext(m.value.outlet):null;if(Ye&&Fe.routeConfig===Ye.routeConfig){const yt=function rs(m,F,_){if("function"==typeof _)return _(m,F);switch(_){case"pathParamsChange":return!be(m.url,F.url);case"pathParamsOrQueryParamsChange":return!be(m.url,F.url)||!R(m.queryParams,F.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!an(m,F)||!R(m.queryParams,F.queryParams);default:return!an(m,F)}}(Ye,Fe,Fe.routeConfig.runGuardsAndResolvers);yt?fe.canActivateChecks.push(new Ns(B)):(Fe.data=Ye.data,Fe._resolvedData=Ye._resolvedData),dr(m,F,Fe.component?Et?Et.children:null:_,B,fe),yt&&Et&&Et.outlet&&Et.outlet.isActivated&&fe.canDeactivateChecks.push(new zr(Et.outlet.component,Ye))}else Ye&&$i(F,Et,fe),fe.canActivateChecks.push(new Ns(B)),dr(m,null,Fe.component?Et?Et.children:null:_,B,fe)})(Ye,Fe[Ye.value.outlet],_,B.concat([Ye.value]),fe),delete Fe[Ye.value.outlet]}),Object.entries(Fe).forEach(([Ye,Et])=>$i(Et,_.getContext(Ye),fe)),fe}function $i(m,F,_){const B=wi(m),fe=m.value;Object.entries(B).forEach(([Fe,Ye])=>{$i(Ye,fe.component?F?F.children.getContext(Fe):null:F,_)}),_.canDeactivateChecks.push(new zr(fe.component&&F&&F.outlet&&F.outlet.isActivated?F.outlet.component:null,fe))}function Fn(m){return"function"==typeof m}function gi(m){return m instanceof x.G||"EmptyError"===m?.name}const Dn=Symbol("INITIAL_VALUE");function Ji(){return(0,ne.n)(m=>(0,C.z)(m.map(F=>F.pipe((0,de.s)(1),(0,ie.Z)(Dn)))).pipe((0,W.T)(F=>{for(const _ of F)if(!0!==_){if(_===Dn)return Dn;if(!1===_||Lr(_))return _}return!0}),(0,Z.p)(F=>F!==Dn),(0,de.s)(1)))}function Lr(m){return ct(m)||m instanceof Ci}function Gr(m){return(0,g.F)((0,Ce.M)(F=>{if("boolean"!=typeof F)throw Ti(0,F)}),(0,W.T)(F=>!0===F))}class Br{segmentGroup;constructor(F){this.segmentGroup=F||null}}class so extends Error{urlTree;constructor(F){super(),this.urlTree=F}}function ur(m){return(0,y.$)(new Br(m))}class Do{urlSerializer;urlTree;constructor(F,_){this.urlSerializer=F,this.urlTree=_}lineralizeSegments(F,_){let B=[],fe=_.root;for(;;){if(B=B.concat(fe.segments),0===fe.numberOfChildren)return(0,d.of)(B);if(fe.numberOfChildren>1||!fe.children[I])return(0,y.$)(new o.wOt(4e3,!1));fe=fe.children[I]}}applyRedirectCommands(F,_,B,fe,Fe){if("string"!=typeof _){const Et=_,{queryParams:yt,fragment:Yt,routeConfig:xn,url:Rn,outlet:di,params:bi,data:qi,title:Xr}=fe,Sr=(0,o.N4e)(Fe,()=>Et({params:bi,data:qi,queryParams:yt,fragment:Yt,routeConfig:xn,url:Rn,outlet:di,title:Xr}));if(Sr instanceof rt)throw new so(Sr);_=Sr}const Ye=this.applyRedirectCreateUrlTree(_,this.urlSerializer.parse(_),F,B);if("/"===_[0])throw new so(Ye);return Ye}applyRedirectCreateUrlTree(F,_,B,fe){const Fe=this.createSegmentGroup(F,_.root,B,fe);return new rt(Fe,this.createQueryParams(_.queryParams,this.urlTree.queryParams),_.fragment)}createQueryParams(F,_){const B={};return Object.entries(F).forEach(([fe,Fe])=>{if("string"==typeof Fe&&":"===Fe[0]){const Et=Fe.substring(1);B[fe]=_[Et]}else B[fe]=Fe}),B}createSegmentGroup(F,_,B,fe){const Fe=this.createSegments(F,_.segments,B,fe);let Ye={};return Object.entries(_.children).forEach(([Et,yt])=>{Ye[Et]=this.createSegmentGroup(F,yt,B,fe)}),new ce(Fe,Ye)}createSegments(F,_,B,fe){return _.map(Fe=>":"===Fe.path[0]?this.findPosParam(F,Fe,fe):this.findOrReturn(Fe,B))}findPosParam(F,_,B){const fe=B[_.path.substring(1)];if(!fe)throw new o.wOt(4001,!1);return fe}findOrReturn(F,_){let B=0;for(const fe of _){if(fe.path===F.path)return _.splice(B),fe;B++}return F}}const ir={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ao(m,F,_,B,fe){const Fe=ss(m,F,_);return Fe.matched?(B=function Wn(m,F){return m.providers&&!m._injector&&(m._injector=(0,o.Ol2)(m.providers,F,`Route: ${m.path}`)),m._injector??F}(F,B),function Fs(m,F,_,B){const fe=F.canMatch;if(!fe||0===fe.length)return(0,d.of)(!0);const Fe=fe.map(Ye=>{const Et=Fr(Ye,m);return Y(function An(m){return m&&Fn(m.canMatch)}(Et)?Et.canMatch(F,_):(0,o.N4e)(m,()=>Et(F,_)))});return(0,d.of)(Fe).pipe(Ji(),Gr())}(B,F,_).pipe((0,W.T)(Ye=>!0===Ye?Fe:{...ir}))):(0,d.of)(Fe)}function ss(m,F,_){if("**"===F.path)return function as(m){return{matched:!0,parameters:m.length>0?tt(m).parameters:{},consumedSegments:m,remainingSegments:[],positionalParamSegments:{}}}(_);if(""===F.path)return"full"===F.pathMatch&&(m.hasChildren()||_.length>0)?{...ir}:{matched:!0,consumedSegments:[],remainingSegments:_,parameters:{},positionalParamSegments:{}};const fe=(F.matcher||Me)(_,m,F);if(!fe)return{...ir};const Fe={};Object.entries(fe.posParams??{}).forEach(([Et,yt])=>{Fe[Et]=yt.path});const Ye=fe.consumed.length>0?{...Fe,...fe.consumed[fe.consumed.length-1].parameters}:Fe;return{matched:!0,consumedSegments:fe.consumed,remainingSegments:_.slice(fe.consumed.length),parameters:Ye,positionalParamSegments:fe.posParams??{}}}function ls(m,F,_,B){return _.length>0&&function qr(m,F,_){return _.some(B=>ds(m,F,B)&&bn(B)!==I)}(m,_,B)?{segmentGroup:new ce(F,xo(B,new ce(_,m.children))),slicedSegments:[]}:0===_.length&&function lo(m,F,_){return _.some(B=>ds(m,F,B))}(m,_,B)?{segmentGroup:new ce(m.segments,cs(m,_,B,m.children)),slicedSegments:_}:{segmentGroup:new ce(m.segments,m.children),slicedSegments:_}}function cs(m,F,_,B){const fe={};for(const Fe of _)if(ds(m,F,Fe)&&!B[bn(Fe)]){const Ye=new ce([],{});fe[bn(Fe)]=Ye}return{...B,...fe}}function xo(m,F){const _={};_[I]=F;for(const B of m)if(""===B.path&&bn(B)!==I){const fe=new ce([],{});_[bn(B)]=fe}return _}function ds(m,F,_){return(!(m.hasChildren()||F.length>0)||"full"!==_.pathMatch)&&""===_.path}class Bs{}class Io{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(F,_,B,fe,Fe,Ye,Et){this.injector=F,this.configLoader=_,this.rootComponentType=B,this.config=fe,this.urlTree=Fe,this.paramsInheritanceStrategy=Ye,this.urlSerializer=Et,this.applyRedirects=new Do(this.urlSerializer,this.urlTree)}noMatchError(F){return new o.wOt(4002,`'${F.segmentGroup}'`)}recognize(){const F=ls(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(F).pipe((0,W.T)(({children:_,rootSnapshot:B})=>{const fe=new oi(B,_),Fe=new lr("",fe),Ye=function b(m,F,_=null,B=null){return A(k(m),F,_,B)}(B,[],this.urlTree.queryParams,this.urlTree.fragment);return Ye.queryParams=this.urlTree.queryParams,Fe.url=this.urlSerializer.serialize(Ye),{state:Fe,tree:Ye}}))}match(F){const _=new Er([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),I,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,F,I,_).pipe((0,W.T)(B=>({children:B,rootSnapshot:_})),(0,Ae.W)(B=>{if(B instanceof so)return this.urlTree=B.urlTree,this.match(B.urlTree.root);throw B instanceof Br?this.noMatchError(B):B}))}processSegmentGroup(F,_,B,fe,Fe){return 0===B.segments.length&&B.hasChildren()?this.processChildren(F,_,B,Fe):this.processSegment(F,_,B,B.segments,fe,!0,Fe).pipe((0,W.T)(Ye=>Ye instanceof oi?[Ye]:[]))}processChildren(F,_,B,fe){const Fe=[];for(const Ye of Object.keys(B.children))"primary"===Ye?Fe.unshift(Ye):Fe.push(Ye);return(0,O.H)(Fe).pipe((0,_e.H)(Ye=>{const Et=B.children[Ye],yt=function Wr(m,F){const _=m.filter(B=>bn(B)===F);return _.push(...m.filter(B=>bn(B)!==F)),_}(_,Ye);return this.processSegmentGroup(F,yt,Et,Ye,fe)}),function ve(m,F){return(0,ke.N)((0,Ue.S)(m,F,arguments.length>=2,!0))}((Ye,Et)=>(Ye.push(...Et),Ye)),(0,ye.U)(null),function q(m,F){const _=arguments.length>=2;return B=>B.pipe(m?(0,Z.p)((fe,Fe)=>m(fe,Fe,B)):L.D,z(1),_?(0,ye.U)(F):(0,te.v)(()=>new x.G))}(),(0,ae.Z)(Ye=>{if(null===Ye)return ur(B);const Et=Vs(Ye);return function Mo(m){m.sort((F,_)=>F.value.outlet===I?-1:_.value.outlet===I?1:F.value.outlet.localeCompare(_.value.outlet))}(Et),(0,d.of)(Et)}))}processSegment(F,_,B,fe,Fe,Ye,Et){return(0,O.H)(_).pipe((0,_e.H)(yt=>this.processSegmentAgainstRoute(yt._injector??F,_,yt,B,fe,Fe,Ye,Et).pipe((0,Ae.W)(Yt=>{if(Yt instanceof Br)return(0,d.of)(null);throw Yt}))),(0,Le.$)(yt=>!!yt),(0,Ae.W)(yt=>{if(gi(yt))return function Ql(m,F,_){return 0===F.length&&!m.children[_]}(B,fe,Fe)?(0,d.of)(new Bs):ur(B);throw yt}))}processSegmentAgainstRoute(F,_,B,fe,Fe,Ye,Et,yt){return bn(B)===Ye||Ye!==I&&ds(fe,Fe,B)?void 0===B.redirectTo?this.matchSegmentAgainstRoute(F,fe,B,Fe,Ye,yt):this.allowRedirects&&Et?this.expandSegmentAgainstRouteUsingRedirect(F,fe,_,B,Fe,Ye,yt):ur(fe):ur(fe)}expandSegmentAgainstRouteUsingRedirect(F,_,B,fe,Fe,Ye,Et){const{matched:yt,parameters:Yt,consumedSegments:xn,positionalParamSegments:Rn,remainingSegments:di}=ss(_,fe,Fe);if(!yt)return ur(_);"string"==typeof fe.redirectTo&&"/"===fe.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const bi=new Er(Fe,Yt,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,us(fe),bn(fe),fe.component??fe._loadedComponent??null,fe,Fa(fe)),qi=Wi(bi,Et,this.paramsInheritanceStrategy);bi.params=Object.freeze(qi.params),bi.data=Object.freeze(qi.data);const Xr=this.applyRedirects.applyRedirectCommands(xn,fe.redirectTo,Rn,bi,F);return this.applyRedirects.lineralizeSegments(fe,Xr).pipe((0,ae.Z)(Sr=>this.processSegment(F,B,_,Sr.concat(di),Ye,!1,Et)))}matchSegmentAgainstRoute(F,_,B,fe,Fe,Ye){const Et=ao(_,B,fe,F);return"**"===B.path&&(_.children={}),Et.pipe((0,ne.n)(yt=>yt.matched?this.getChildConfig(F=B._injector??F,B,fe).pipe((0,ne.n)(({routes:Yt})=>{const xn=B._loadedInjector??F,{parameters:Rn,consumedSegments:di,remainingSegments:bi}=yt,qi=new Er(di,Rn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,us(B),bn(B),B.component??B._loadedComponent??null,B,Fa(B)),Xr=Wi(qi,Ye,this.paramsInheritanceStrategy);qi.params=Object.freeze(Xr.params),qi.data=Object.freeze(Xr.data);const{segmentGroup:Sr,slicedSegments:uo}=ls(_,di,bi,Yt);if(0===uo.length&&Sr.hasChildren())return this.processChildren(xn,Yt,Sr,qi).pipe((0,W.T)(ho=>new oi(qi,ho)));if(0===Yt.length&&0===uo.length)return(0,d.of)(new oi(qi,[]));const Ua=bn(B)===Fe;return this.processSegment(xn,Yt,Sr,uo,Ua?I:Fe,!0,qi).pipe((0,W.T)(ho=>new oi(qi,ho instanceof oi?[ho]:[])))})):ur(_)))}getChildConfig(F,_,B){return _.children?(0,d.of)({routes:_.children,injector:F}):_.loadChildren?void 0!==_._loadedRoutes?(0,d.of)({routes:_._loadedRoutes,injector:_._loadedInjector}):function Jr(m,F,_,B){const fe=F.canLoad;if(void 0===fe||0===fe.length)return(0,d.of)(!0);const Fe=fe.map(Ye=>{const Et=Fr(Ye,m);return Y(function os(m){return m&&Fn(m.canLoad)}(Et)?Et.canLoad(F,_):(0,o.N4e)(m,()=>Et(F,_)))});return(0,d.of)(Fe).pipe(Ji(),Gr())}(F,_,B).pipe((0,ae.Z)(fe=>fe?this.configLoader.loadChildren(F,_).pipe((0,Ce.M)(Fe=>{_._loadedRoutes=Fe.routes,_._loadedInjector=Fe.injector})):function Wo(){return(0,y.$)(kn(!1,Mn.GuardRejected))}())):(0,d.of)({routes:[],injector:F})}}function Zl(m){const F=m.value.routeConfig;return F&&""===F.path}function Vs(m){const F=[],_=new Set;for(const B of m){if(!Zl(B)){F.push(B);continue}const fe=F.find(Fe=>B.value.routeConfig===Fe.value.routeConfig);void 0!==fe?(fe.children.push(...B.children),_.add(fe)):F.push(B)}for(const B of _){const fe=Vs(B.children);F.push(new oi(B.value,fe))}return F.filter(B=>!_.has(B))}function us(m){return m.data||{}}function Fa(m){return m.resolve||{}}function js(m){const F=m.children.map(_=>js(_)).flat();return[m,...F]}function Ws(m){return(0,ne.n)(F=>{const _=m(F);return _?(0,O.H)(_).pipe((0,W.T)(()=>F)):(0,d.of)(F)})}let hs=(()=>{class m{buildTitle(_){let B,fe=_.root;for(;void 0!==fe;)B=this.getResolvedTitleForRoute(fe)??B,fe=fe.children.find(Fe=>Fe.outlet===I);return B}getResolvedTitleForRoute(_){return _.data[M]}static \u0275fac=function(B){return new(B||m)};static \u0275prov=o.jDH({token:m,factory:()=>(0,o.WQX)(fs),providedIn:"root"})}return m})(),fs=(()=>{class m extends hs{title;constructor(_){super(),this.title=_}updateTitle(_){const B=this.buildTitle(_);void 0!==B&&this.title.setTitle(B)}static \u0275fac=function(B){return new(B||m)(o.KVO(V.hE))};static \u0275prov=o.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Hn=new o.nKC("",{providedIn:"root",factory:()=>({})});let Kt=(()=>{class m{static \u0275fac=function(B){return new(B||m)};static \u0275cmp=o.VBU({type:m,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(B,fe){1&B&&o.nrm(0,"router-outlet")},dependencies:[Qi],encapsulation:2})}return m})();function vn(m){const F=m.children&&m.children.map(vn),_=F?{...m,children:F}:{...m};return!_.component&&!_.loadComponent&&(F||_.loadChildren)&&_.outlet&&_.outlet!==I&&(_.component=Kt),_}const ii=new o.nKC("");let Ri=(()=>{class m{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=(0,o.WQX)(o.Ql9);loadComponent(_){if(this.componentLoaders.get(_))return this.componentLoaders.get(_);if(_._loadedComponent)return(0,d.of)(_._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(_);const B=Y(_.loadComponent()).pipe((0,W.T)(co),(0,Ce.M)(Fe=>{this.onLoadEndListener&&this.onLoadEndListener(_),_._loadedComponent=Fe}),(0,J.j)(()=>{this.componentLoaders.delete(_)})),fe=new u.G(B,()=>new P.B).pipe((0,X.B)());return this.componentLoaders.set(_,fe),fe}loadChildren(_,B){if(this.childrenLoaders.get(B))return this.childrenLoaders.get(B);if(B._loadedRoutes)return(0,d.of)({routes:B._loadedRoutes,injector:B._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(B);const Fe=function Pi(m,F,_,B){return Y(m.loadChildren()).pipe((0,W.T)(co),(0,ae.Z)(fe=>fe instanceof o.Co$||Array.isArray(fe)?(0,d.of)(fe):(0,O.H)(F.compileModuleAsync(fe))),(0,W.T)(fe=>{B&&B(m);let Fe,Ye,Et=!1;return Array.isArray(fe)?(Ye=fe,!0):(Fe=fe.create(_).injector,Ye=Fe.get(ii,[],{optional:!0,self:!0}).flat()),{routes:Ye.map(vn),injector:Fe}}))}(B,this.compiler,_,this.onLoadEndListener).pipe((0,J.j)(()=>{this.childrenLoaders.delete(B)})),Ye=new u.G(Fe,()=>new P.B).pipe((0,X.B)());return this.childrenLoaders.set(B,Ye),Ye}static \u0275fac=function(B){return new(B||m)};static \u0275prov=o.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();function co(m){return function Ni(m){return m&&"object"==typeof m&&"default"in m}(m)?m.default:m}let Xn=(()=>{class m{static \u0275fac=function(B){return new(B||m)};static \u0275prov=o.jDH({token:m,factory:()=>(0,o.WQX)(ri),providedIn:"root"})}return m})(),ri=(()=>{class m{shouldProcessUrl(_){return!0}extract(_){return _}merge(_,B){return _}static \u0275fac=function(B){return new(B||m)};static \u0275prov=o.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const xr=new o.nKC(""),En=new o.nKC("");function S(m,F,_){const B=m.get(En),fe=m.get(E.qQ);return m.get(o.SKi).runOutsideAngular(()=>{if(!fe.startViewTransition||B.skipNextTransition)return B.skipNextTransition=!1,new Promise(Yt=>setTimeout(Yt));let Fe;const Ye=new Promise(Yt=>{Fe=Yt}),Et=fe.startViewTransition(()=>(Fe(),function we(m){return new Promise(F=>{(0,o.mal)({read:()=>setTimeout(F)},{injector:m})})}(m))),{onViewTransitionCreated:yt}=B;return yt&&(0,o.N4e)(m,()=>yt({transition:Et,from:F,to:_})),Ye})}const $=new o.nKC("");let ue=(()=>{class m{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new P.B;transitionAbortSubject=new P.B;configLoader=(0,o.WQX)(Ri);environmentInjector=(0,o.WQX)(o.uvJ);destroyRef=(0,o.WQX)(o.abz);urlSerializer=(0,o.WQX)(ft);rootContexts=(0,o.WQX)(tr);location=(0,o.WQX)(E.aZ);inputBindingEnabled=null!==(0,o.WQX)(Cr,{optional:!0});titleStrategy=(0,o.WQX)(hs);options=(0,o.WQX)(Hn,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=(0,o.WQX)(Xn);createViewTransition=(0,o.WQX)(xr,{optional:!0});navigationErrorHandler=(0,o.WQX)($,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>(0,d.of)(void 0);rootComponentType=null;destroyed=!1;constructor(){this.configLoader.onLoadEndListener=fe=>this.events.next(new hn(fe)),this.configLoader.onLoadStartListener=fe=>this.events.next(new Ht(fe)),this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(_){const B=++this.navigationId;this.transitions?.next({...this.transitions.value,..._,id:B})}setupNavigations(_,B,fe){return this.transitions=new w.t({id:0,currentUrlTree:B,currentRawUrl:B,extractedUrl:this.urlHandlingStrategy.extract(B),urlAfterRedirects:this.urlHandlingStrategy.extract(B),rawUrl:B,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:un,restoredState:null,currentSnapshot:fe.snapshot,targetSnapshot:null,currentRouterState:fe,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Z.p)(Fe=>0!==Fe.id),(0,W.T)(Fe=>({...Fe,extractedUrl:this.urlHandlingStrategy.extract(Fe.rawUrl)})),(0,ne.n)(Fe=>{let Ye=!1,Et=!1;return(0,d.of)(Fe).pipe((0,ne.n)(yt=>{if(this.navigationId>Fe.id)return this.cancelNavigationTransition(Fe,"",Mn.SupersededByNewNavigation),h.w;this.currentTransition=Fe,this.currentNavigation={id:yt.id,initialUrl:yt.rawUrl,extractedUrl:yt.extractedUrl,targetBrowserUrl:"string"==typeof yt.extras.browserUrl?this.urlSerializer.parse(yt.extras.browserUrl):yt.extras.browserUrl,trigger:yt.source,extras:yt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const Yt=!_.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!Yt&&"reload"!==(yt.extras.onSameUrlNavigation??_.onSameUrlNavigation)){const Rn="";return this.events.next(new In(yt.id,this.urlSerializer.serialize(yt.rawUrl),Rn,qt.IgnoredSameUrlNavigation)),yt.resolve(!1),h.w}if(this.urlHandlingStrategy.shouldProcessUrl(yt.rawUrl))return(0,d.of)(yt).pipe((0,ne.n)(Rn=>{const di=this.transitions?.getValue();return this.events.next(new yn(Rn.id,this.urlSerializer.serialize(Rn.extractedUrl),Rn.source,Rn.restoredState)),di!==this.transitions?.getValue()?h.w:Promise.resolve(Rn)}),function wo(m,F,_,B,fe,Fe){return(0,ae.Z)(Ye=>function Us(m,F,_,B,fe,Fe,Ye="emptyOnly"){return new Io(m,F,_,B,fe,Ye,Fe).recognize()}(m,F,_,B,Ye.extractedUrl,fe,Fe).pipe((0,W.T)(({state:Et,tree:yt})=>({...Ye,targetSnapshot:Et,urlAfterRedirects:yt}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,_.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,Ce.M)(Rn=>{Fe.targetSnapshot=Rn.targetSnapshot,Fe.urlAfterRedirects=Rn.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Rn.urlAfterRedirects};const di=new ze(Rn.id,this.urlSerializer.serialize(Rn.extractedUrl),this.urlSerializer.serialize(Rn.urlAfterRedirects),Rn.targetSnapshot);this.events.next(di)}));if(Yt&&this.urlHandlingStrategy.shouldProcessUrl(yt.currentRawUrl)){const{id:Rn,extractedUrl:di,source:bi,restoredState:qi,extras:Xr}=yt,Sr=new yn(Rn,this.urlSerializer.serialize(di),bi,qi);this.events.next(Sr);const uo=ro(this.rootComponentType).snapshot;return this.currentTransition=Fe={...yt,targetSnapshot:uo,urlAfterRedirects:di,extras:{...Xr,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=di,(0,d.of)(Fe)}{const Rn="";return this.events.next(new In(yt.id,this.urlSerializer.serialize(yt.extractedUrl),Rn,qt.IgnoredByUrlHandlingStrategy)),yt.resolve(!1),h.w}}),(0,Ce.M)(yt=>{const Yt=new Ge(yt.id,this.urlSerializer.serialize(yt.extractedUrl),this.urlSerializer.serialize(yt.urlAfterRedirects),yt.targetSnapshot);this.events.next(Yt)}),(0,W.T)(yt=>(this.currentTransition=Fe={...yt,guards:ks(yt.targetSnapshot,yt.currentSnapshot,this.rootContexts)},Fe)),function he(m,F){return(0,ae.Z)(_=>{const{targetSnapshot:B,currentSnapshot:fe,guards:{canActivateChecks:Fe,canDeactivateChecks:Ye}}=_;return 0===Ye.length&&0===Fe.length?(0,d.of)({..._,guardsResult:!0}):function pe(m,F,_,B){return(0,O.H)(m).pipe((0,ae.Z)(fe=>function Dr(m,F,_,B,fe){const Fe=F&&F.routeConfig?F.routeConfig.canDeactivate:null;if(!Fe||0===Fe.length)return(0,d.of)(!0);const Ye=Fe.map(Et=>{const yt=pr(F)??fe,Yt=Fr(Et,yt);return Y(function Oi(m){return m&&Fn(m.canDeactivate)}(Yt)?Yt.canDeactivate(m,F,_,B):(0,o.N4e)(yt,()=>Yt(m,F,_,B))).pipe((0,Le.$)())});return(0,d.of)(Ye).pipe(Ji())}(fe.component,fe.route,_,F,B)),(0,Le.$)(fe=>!0!==fe,!0))}(Ye,B,fe,m).pipe((0,ae.Z)(Et=>Et&&function Zi(m){return"boolean"==typeof m}(Et)?function U(m,F,_,B){return(0,O.H)(F).pipe((0,_e.H)(fe=>(0,D.x)(function st(m,F){return null!==m&&F&&F(new sn(m)),(0,d.of)(!0)}(fe.route.parent,B),function Ne(m,F){return null!==m&&F&&F(new $t(m)),(0,d.of)(!0)}(fe.route,B),function On(m,F,_){const B=F[F.length-1],Fe=F.slice(0,F.length-1).reverse().map(Ye=>function Bi(m){const F=m.routeConfig?m.routeConfig.canActivateChild:null;return F&&0!==F.length?{node:m,guards:F}:null}(Ye)).filter(Ye=>null!==Ye).map(Ye=>(0,p.v)(()=>{const Et=Ye.guards.map(yt=>{const Yt=pr(Ye.node)??_,xn=Fr(yt,Yt);return Y(function Zr(m){return m&&Fn(m.canActivateChild)}(xn)?xn.canActivateChild(B,m):(0,o.N4e)(Yt,()=>xn(B,m))).pipe((0,Le.$)())});return(0,d.of)(Et).pipe(Ji())}));return(0,d.of)(Fe).pipe(Ji())}(m,fe.path,_),function fn(m,F,_){const B=F.routeConfig?F.routeConfig.canActivate:null;if(!B||0===B.length)return(0,d.of)(!0);const fe=B.map(Fe=>(0,p.v)(()=>{const Ye=pr(F)??_,Et=Fr(Fe,Ye);return Y(function jo(m){return m&&Fn(m.canActivate)}(Et)?Et.canActivate(F,m):(0,o.N4e)(Ye,()=>Et(F,m))).pipe((0,Le.$)())}));return(0,d.of)(fe).pipe(Ji())}(m,fe.route,_))),(0,Le.$)(fe=>!0!==fe,!0))}(B,Fe,m,F):(0,d.of)(Et)),(0,W.T)(Et=>({..._,guardsResult:Et})))})}(this.environmentInjector,yt=>this.events.next(yt)),(0,Ce.M)(yt=>{if(Fe.guardsResult=yt.guardsResult,yt.guardsResult&&"boolean"!=typeof yt.guardsResult)throw Ti(0,yt.guardsResult);const Yt=new gt(yt.id,this.urlSerializer.serialize(yt.extractedUrl),this.urlSerializer.serialize(yt.urlAfterRedirects),yt.targetSnapshot,!!yt.guardsResult);this.events.next(Yt)}),(0,Z.p)(yt=>!!yt.guardsResult||(this.cancelNavigationTransition(yt,"",Mn.GuardRejected),!1)),Ws(yt=>{if(yt.guards.canActivateChecks.length)return(0,d.of)(yt).pipe((0,Ce.M)(Yt=>{const xn=new wt(Yt.id,this.urlSerializer.serialize(Yt.extractedUrl),this.urlSerializer.serialize(Yt.urlAfterRedirects),Yt.targetSnapshot);this.events.next(xn)}),(0,ne.n)(Yt=>{let xn=!1;return(0,d.of)(Yt).pipe(function Jl(m,F){return(0,ae.Z)(_=>{const{targetSnapshot:B,guards:{canActivateChecks:fe}}=_;if(!fe.length)return(0,d.of)(_);const Fe=new Set(fe.map(yt=>yt.route)),Ye=new Set;for(const yt of Fe)if(!Ye.has(yt))for(const Yt of js(yt))Ye.add(Yt);let Et=0;return(0,O.H)(Ye).pipe((0,_e.H)(yt=>Fe.has(yt)?function La(m,F,_,B){const fe=m.routeConfig,Fe=m._resolve;return void 0!==fe?.title&&!mr(fe)&&(Fe[M]=fe.title),function ql(m,F,_,B){const fe=se(m);if(0===fe.length)return(0,d.of)({});const Fe={};return(0,O.H)(fe).pipe((0,ae.Z)(Ye=>function ec(m,F,_,B){const fe=pr(F)??B,Fe=Fr(m,fe);return Y(Fe.resolve?Fe.resolve(F,_):(0,o.N4e)(fe,()=>Fe(F,_)))}(m[Ye],F,_,B).pipe((0,Le.$)(),(0,Ce.M)(Et=>{if(Et instanceof Ci)throw Ti(new le,Et);Fe[Ye]=Et}))),z(1),(0,W.T)(()=>Fe),(0,Ae.W)(Ye=>gi(Ye)?h.w:(0,y.$)(Ye)))}(Fe,m,F,B).pipe((0,W.T)(Ye=>(m._resolvedData=Ye,m.data=Wi(m,m.parent,_).resolve,null)))}(yt,B,m,F):(yt.data=Wi(yt,yt.parent,m).resolve,(0,d.of)(void 0))),(0,Ce.M)(()=>Et++),z(1),(0,ae.Z)(yt=>Et===Ye.size?(0,d.of)(_):h.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,Ce.M)({next:()=>xn=!0,complete:()=>{xn||this.cancelNavigationTransition(Yt,"",Mn.NoDataFromResolver)}}))}),(0,Ce.M)(Yt=>{const xn=new Wt(Yt.id,this.urlSerializer.serialize(Yt.extractedUrl),this.urlSerializer.serialize(Yt.urlAfterRedirects),Yt.targetSnapshot);this.events.next(xn)}))}),Ws(yt=>{const Yt=xn=>{const Rn=[];xn.routeConfig?.loadComponent&&!xn.routeConfig._loadedComponent&&Rn.push(this.configLoader.loadComponent(xn.routeConfig).pipe((0,Ce.M)(di=>{xn.component=di}),(0,W.T)(()=>{})));for(const di of xn.children)Rn.push(...Yt(di));return Rn};return(0,C.z)(Yt(yt.targetSnapshot.root)).pipe((0,ye.U)(null),(0,de.s)(1))}),Ws(()=>this.afterPreactivation()),(0,ne.n)(()=>{const{currentSnapshot:yt,targetSnapshot:Yt}=Fe,xn=this.createViewTransition?.(this.environmentInjector,yt.root,Yt.root);return xn?(0,O.H)(xn).pipe((0,W.T)(()=>Fe)):(0,d.of)(Fe)}),(0,W.T)(yt=>{const Yt=function Si(m,F,_){const B=yi(m,F._root,_?_._root:void 0);return new br(B,F)}(_.routeReuseStrategy,yt.targetSnapshot,yt.currentRouterState);return this.currentTransition=Fe={...yt,targetRouterState:Yt},this.currentNavigation.targetRouterState=Yt,Fe}),(0,Ce.M)(()=>{this.events.next(new hi)}),((m,F,_,B)=>(0,W.T)(fe=>(new Co(F,fe.targetRouterState,fe.currentRouterState,_,B).activate(m),fe)))(this.rootContexts,_.routeReuseStrategy,yt=>this.events.next(yt),this.inputBindingEnabled),(0,de.s)(1),(0,Ce.M)({next:yt=>{Ye=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new _n(yt.id,this.urlSerializer.serialize(yt.extractedUrl),this.urlSerializer.serialize(yt.urlAfterRedirects))),this.titleStrategy?.updateTitle(yt.targetRouterState.snapshot),yt.resolve(!0)},complete:()=>{Ye=!0}}),(0,K.Q)(this.transitionAbortSubject.pipe((0,Ce.M)(yt=>{throw yt}))),(0,J.j)(()=>{!Ye&&!Et&&this.cancelNavigationTransition(Fe,"",Mn.SupersededByNewNavigation),this.currentTransition?.id===Fe.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,Ae.W)(yt=>{if(this.destroyed)return Fe.resolve(!1),h.w;if(Et=!0,Ai(yt))this.events.next(new gn(Fe.id,this.urlSerializer.serialize(Fe.extractedUrl),yt.message,yt.cancellationCode)),function ci(m){return Ai(m)&&ct(m.url)}(yt)?this.events.next(new Kn(yt.url,yt.navigationBehaviorOptions)):Fe.resolve(!1);else{const Yt=new Ve(Fe.id,this.urlSerializer.serialize(Fe.extractedUrl),yt,Fe.targetSnapshot??void 0);try{const xn=(0,o.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(Yt));if(!(xn instanceof Ci))throw this.events.next(Yt),yt;{const{message:Rn,cancellationCode:di}=Ti(0,xn);this.events.next(new gn(Fe.id,this.urlSerializer.serialize(Fe.extractedUrl),Rn,di)),this.events.next(new Kn(xn.redirectTo,xn.navigationBehaviorOptions))}}catch(xn){this.options.resolveNavigationPromiseOnError?Fe.resolve(!1):Fe.reject(xn)}}return h.w}))}))}cancelNavigationTransition(_,B,fe){const Fe=new gn(_.id,this.urlSerializer.serialize(_.extractedUrl),B,fe);this.events.next(Fe),_.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const _=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),B=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return _.toString()!==B?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(B){return new(B||m)};static \u0275prov=o.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();function Xe(m){return m!==un}let Dt=(()=>{class m{static \u0275fac=function(B){return new(B||m)};static \u0275prov=o.jDH({token:m,factory:()=>(0,o.WQX)(cn),providedIn:"root"})}return m})();class Rt{shouldDetach(F){return!1}store(F,_){}shouldAttach(F){return!1}retrieve(F){return null}shouldReuseRoute(F,_){return F.routeConfig===_.routeConfig}}let cn=(()=>{class m extends Rt{static \u0275fac=(()=>{let _;return function(fe){return(_||(_=o.xGo(m)))(fe||m)}})();static \u0275prov=o.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})(),$n=(()=>{class m{static \u0275fac=function(B){return new(B||m)};static \u0275prov=o.jDH({token:m,factory:()=>(0,o.WQX)(Gn),providedIn:"root"})}return m})(),Gn=(()=>{class m extends $n{location=(0,o.WQX)(E.aZ);urlSerializer=(0,o.WQX)(ft);options=(0,o.WQX)(Hn,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=(0,o.WQX)(Xn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new rt;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=ro(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(_){return this.location.subscribe(B=>{"popstate"===B.type&&_(B.url,B.state)})}handleRouterEvent(_,B){if(_ instanceof yn)this.stateMemento=this.createStateMemento();else if(_ instanceof In)this.rawUrlTree=B.initialUrl;else if(_ instanceof ze){if("eager"===this.urlUpdateStrategy&&!B.extras.skipLocationChange){const fe=this.urlHandlingStrategy.merge(B.finalUrl,B.initialUrl);this.setBrowserUrl(B.targetBrowserUrl??fe,B)}}else _ instanceof hi?(this.currentUrlTree=B.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(B.finalUrl,B.initialUrl),this.routerState=B.targetRouterState,"deferred"===this.urlUpdateStrategy&&!B.extras.skipLocationChange&&this.setBrowserUrl(B.targetBrowserUrl??this.rawUrlTree,B)):_ instanceof gn&&(_.code===Mn.GuardRejected||_.code===Mn.NoDataFromResolver)?this.restoreHistory(B):_ instanceof Ve?this.restoreHistory(B,!0):_ instanceof _n&&(this.lastSuccessfulId=_.id,this.currentPageId=this.browserPageId)}setBrowserUrl(_,B){const fe=_ instanceof rt?this.urlSerializer.serialize(_):_;if(this.location.isCurrentPathEqualTo(fe)||B.extras.replaceUrl){const Ye={...B.extras.state,...this.generateNgRouterState(B.id,this.browserPageId)};this.location.replaceState(fe,"",Ye)}else{const Fe={...B.extras.state,...this.generateNgRouterState(B.id,this.browserPageId+1)};this.location.go(fe,"",Fe)}}restoreHistory(_,B=!1){if("computed"===this.canceledNavigationResolution){const Fe=this.currentPageId-this.browserPageId;0!==Fe?this.location.historyGo(Fe):this.currentUrlTree===_.finalUrl&&0===Fe&&(this.resetState(_),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(B&&this.resetState(_),this.resetUrlToCurrentUrlTree())}resetState(_){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,_.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(_,B){return"computed"===this.canceledNavigationResolution?{navigationId:_,\u0275routerPageId:B}:{navigationId:_}}static \u0275fac=(()=>{let _;return function(fe){return(_||(_=o.xGo(m)))(fe||m)}})();static \u0275prov=o.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();function Yn(m,F){m.events.pipe((0,Z.p)(_=>_ instanceof _n||_ instanceof gn||_ instanceof Ve||_ instanceof In),(0,W.T)(_=>_ instanceof _n||_ instanceof In?0:_ instanceof gn&&(_.code===Mn.Redirect||_.code===Mn.SupersededByNewNavigation)?2:1),(0,Z.p)(_=>2!==_),(0,de.s)(1)).subscribe(()=>{F()})}const Pn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Vn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Vt=(()=>{class m{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=(0,o.WQX)(o.H3F);stateManager=(0,o.WQX)($n);options=(0,o.WQX)(Hn,{optional:!0})||{};pendingTasks=(0,o.WQX)(o.Ua0);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=(0,o.WQX)(ue);urlSerializer=(0,o.WQX)(ft);location=(0,o.WQX)(E.aZ);urlHandlingStrategy=(0,o.WQX)(Xn);_events=new P.B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=(0,o.WQX)(Dt);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(0,o.WQX)(ii,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!(0,o.WQX)(Cr,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:_=>{this.console.warn(_)}}),this.subscribeToNavigationEvents()}eventsSubscription=new T.yU;subscribeToNavigationEvents(){const _=this.navigationTransitions.events.subscribe(B=>{try{const fe=this.navigationTransitions.currentTransition,Fe=this.navigationTransitions.currentNavigation;if(null!==fe&&null!==Fe)if(this.stateManager.handleRouterEvent(B,Fe),B instanceof gn&&B.code!==Mn.Redirect&&B.code!==Mn.SupersededByNewNavigation)this.navigated=!0;else if(B instanceof _n)this.navigated=!0;else if(B instanceof Kn){const Ye=B.navigationBehaviorOptions,Et=this.urlHandlingStrategy.merge(B.url,fe.currentRawUrl),yt={browserUrl:fe.extras.browserUrl,info:fe.extras.info,skipLocationChange:fe.extras.skipLocationChange,replaceUrl:fe.extras.replaceUrl||"eager"===this.urlUpdateStrategy||Xe(fe.source),...Ye};this.scheduleNavigation(Et,un,null,yt,{resolve:fe.resolve,reject:fe.reject,promise:fe.promise})}(function Ui(m){return!(m instanceof hi||m instanceof Kn)})(B)&&this._events.next(B)}catch(fe){this.navigationTransitions.transitionAbortSubject.next(fe)}});this.eventsSubscription.add(_)}resetRootComponentType(_){this.routerState.root.component=_,this.navigationTransitions.rootComponentType=_}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),un,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((_,B)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(_,"popstate",B)},0)})}navigateToSyncWithBrowser(_,B,fe){const Fe={replaceUrl:!0},Ye=fe?.navigationId?fe:null;if(fe){const yt={...fe};delete yt.navigationId,delete yt.\u0275routerPageId,0!==Object.keys(yt).length&&(Fe.state=yt)}const Et=this.parseUrl(_);this.scheduleNavigation(Et,B,Ye,Fe)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(_){this.config=_.map(vn),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(_,B={}){const{relativeTo:fe,queryParams:Fe,fragment:Ye,queryParamsHandling:Et,preserveFragment:yt}=B,Yt=yt?this.currentUrlTree.fragment:Ye;let Rn,xn=null;switch(Et??this.options.defaultQueryParamsHandling){case"merge":xn={...this.currentUrlTree.queryParams,...Fe};break;case"preserve":xn=this.currentUrlTree.queryParams;break;default:xn=Fe||null}null!==xn&&(xn=this.removeEmptyProps(xn));try{Rn=k(fe?fe.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof _[0]||"/"!==_[0][0])&&(_=[]),Rn=this.currentUrlTree.root}return A(Rn,_,xn,Yt??null)}navigateByUrl(_,B={skipLocationChange:!1}){const fe=ct(_)?_:this.parseUrl(_),Fe=this.urlHandlingStrategy.merge(fe,this.rawUrlTree);return this.scheduleNavigation(Fe,un,null,B)}navigate(_,B={skipLocationChange:!1}){return function pi(m){for(let F=0;F(null!=Fe&&(B[fe]=Fe),B),{})}scheduleNavigation(_,B,fe,Fe,Ye){if(this.disposed)return Promise.resolve(!1);let Et,yt,Yt;Ye?(Et=Ye.resolve,yt=Ye.reject,Yt=Ye.promise):Yt=new Promise((Rn,di)=>{Et=Rn,yt=di});const xn=this.pendingTasks.add();return Yn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(xn))}),this.navigationTransitions.handleNavigationRequest({source:B,restoredState:fe,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:_,extras:Fe,resolve:Et,reject:yt,promise:Yt,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Yt.catch(Rn=>Promise.reject(Rn))}static \u0275fac=function(B){return new(B||m)};static \u0275prov=o.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})(),mi=(()=>{class m{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new P.B;constructor(_,B,fe,Fe,Ye,Et){this.router=_,this.route=B,this.tabIndexAttribute=fe,this.renderer=Fe,this.el=Ye,this.locationStrategy=Et;const yt=Ye.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===yt||"area"===yt,this.isAnchorElement?this.subscription=_.events.subscribe(Yt=>{Yt instanceof _n&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(_){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",_)}ngOnChanges(_){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(_){null==_?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=ct(_)||Array.isArray(_)?_:[_],this.setTabIndexIfNotOnNativeEl("0"))}onClick(_,B,fe,Fe,Ye){const Et=this.urlTree;return!!(null===Et||this.isAnchorElement&&(0!==_||B||fe||Fe||Ye||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(Et,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const _=this.urlTree;this.href=null!==_&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(_)):null;const B=null===this.href?null:(0,o.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",B)}applyAttributeValue(_,B){const fe=this.renderer,Fe=this.el.nativeElement;null!==B?fe.setAttribute(Fe,_,B):fe.removeAttribute(Fe,_)}get urlTree(){return null===this.routerLinkInput?null:ct(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(B){return new(B||m)(o.rXU(Vt),o.rXU(Yi),o.kS0("tabindex"),o.rXU(o.sFG),o.rXU(o.aKT),o.rXU(E.hb))};static \u0275dir=o.FsC({type:m,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(B,fe){1&B&&o.bIt("click",function(Ye){return fe.onClick(Ye.button,Ye.ctrlKey,Ye.shiftKey,Ye.altKey,Ye.metaKey)}),2&B&&o.BMQ("target",fe.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",o.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",o.L39],replaceUrl:[2,"replaceUrl","replaceUrl",o.L39],routerLink:"routerLink"},features:[o.GFd,o.OA$]})}return m})();class ei{}let So=(()=>{class m{router;injector;preloadingStrategy;loader;subscription;constructor(_,B,fe,Fe,Ye){this.router=_,this.injector=fe,this.preloadingStrategy=Fe,this.loader=Ye}setUpPreloading(){this.subscription=this.router.events.pipe((0,Z.p)(_=>_ instanceof _n),(0,_e.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(_,B){const fe=[];for(const Fe of B){Fe.providers&&!Fe._injector&&(Fe._injector=(0,o.Ol2)(Fe.providers,_,`Route: ${Fe.path}`));const Ye=Fe._injector??_,Et=Fe._loadedInjector??Ye;(Fe.loadChildren&&!Fe._loadedRoutes&&void 0===Fe.canLoad||Fe.loadComponent&&!Fe._loadedComponent)&&fe.push(this.preloadConfig(Ye,Fe)),(Fe.children||Fe._loadedRoutes)&&fe.push(this.processRoutes(Et,Fe.children??Fe._loadedRoutes))}return(0,O.H)(fe).pipe((0,N.U)())}preloadConfig(_,B){return this.preloadingStrategy.preload(B,()=>{let fe;fe=B.loadChildren&&void 0===B.canLoad?this.loader.loadChildren(_,B):(0,d.of)(null);const Fe=fe.pipe((0,ae.Z)(Ye=>null===Ye?(0,d.of)(void 0):(B._loadedRoutes=Ye.routes,B._loadedInjector=Ye.injector,this.processRoutes(Ye.injector??_,Ye.routes))));if(B.loadComponent&&!B._loadedComponent){const Ye=this.loader.loadComponent(B);return(0,O.H)([Fe,Ye]).pipe((0,N.U)())}return Fe})}static \u0275fac=function(B){return new(B||m)(o.KVO(Vt),o.KVO(o.Ql9),o.KVO(o.uvJ),o.KVO(ei),o.KVO(Ri))};static \u0275prov=o.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Vi=new o.nKC("");let ps=(()=>{class m{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(_,B,fe,Fe,Ye={}){this.urlSerializer=_,this.transitions=B,this.viewportScroller=fe,this.zone=Fe,this.options=Ye,Ye.scrollPositionRestoration||="disabled",Ye.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(_=>{_ instanceof yn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=_.navigationTrigger,this.restoredId=_.restoredState?_.restoredState.navigationId:0):_ instanceof _n?(this.lastId=_.id,this.scheduleScrollEvent(_,this.urlSerializer.parse(_.urlAfterRedirects).fragment)):_ instanceof In&&_.code===qt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(_,this.urlSerializer.parse(_.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(_=>{_ instanceof Qn&&(_.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(_.position):_.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(_.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(_,B){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Qn(_,"popstate"===this.lastSource?this.store[this.restoredId]:null,B))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(B){o.QTQ()};static \u0275prov=o.jDH({token:m,factory:m.\u0275fac})}return m})();function Mr(m,...F){return(0,o.EmA)([{provide:ii,multi:!0,useValue:m},[],{provide:Yi,useFactory:Kr,deps:[Vt]},{provide:o.iLQ,multi:!0,useFactory:ms},F.map(_=>_.\u0275providers)])}function Kr(m){return m.routerState.root}function Ur(m,F){return{\u0275kind:m,\u0275providers:F}}function ms(){const m=(0,o.WQX)(o.zZn);return F=>{const _=m.get(o.o8S);if(F!==_.components[0])return;const B=m.get(Vt),fe=m.get(Wd);1===m.get(tc)&&B.initialNavigation(),m.get(Hd,null,o.$GK.Optional)?.setUpPreloading(),m.get(Vi,null,o.$GK.Optional)?.init(),B.resetRootComponentType(_.componentTypes[0]),fe.closed||(fe.next(),fe.complete(),fe.unsubscribe())}}const Wd=new o.nKC("",{factory:()=>new P.B}),tc=new o.nKC("",{providedIn:"root",factory:()=>1}),Hd=new o.nKC("");function Ap(m){return Ur(0,[{provide:Hd,useExisting:So},{provide:ei,useExisting:m}])}function Rp(m){return Ur(9,[{provide:xr,useValue:S},{provide:En,useValue:{skipNextTransition:!!m?.skipInitialTransition,...m}}])}const Pp=[E.aZ,{provide:ft,useClass:le},Vt,tr,{provide:Yi,useFactory:Kr,deps:[Vt]},Ri,[]];let Np=(()=>{class m{constructor(){}static forRoot(_,B){return{ngModule:m,providers:[Pp,[],{provide:ii,multi:!0,useValue:_},[],B?.errorHandler?{provide:$,useValue:B.errorHandler}:[],{provide:Hn,useValue:B||{}},B?.useHash?{provide:E.hb,useClass:E.fw}:{provide:E.hb,useClass:E.Sm},{provide:Vi,useFactory:()=>{const m=(0,o.WQX)(E.Xr),F=(0,o.WQX)(o.SKi),_=(0,o.WQX)(Hn),B=(0,o.WQX)(ue),fe=(0,o.WQX)(ft);return _.scrollOffset&&m.setOffset(_.scrollOffset),new ps(fe,B,m,F,_)}},B?.preloadingStrategy?Ap(B.preloadingStrategy).\u0275providers:[],B?.initialNavigation?nc(B):[],B?.bindToComponentInputs?Ur(8,[Hr,{provide:Cr,useExisting:Hr}]).\u0275providers:[],B?.enableViewTransitions?Rp().\u0275providers:[],[{provide:Ba,useFactory:ms},{provide:o.iLQ,multi:!0,useExisting:Ba}]]}}static forChild(_){return{ngModule:m,providers:[{provide:ii,multi:!0,useValue:_}]}}static \u0275fac=function(B){return new(B||m)};static \u0275mod=o.$C({type:m});static \u0275inj=o.G2t({})}return m})();function nc(m){return["disabled"===m.initialNavigation?Ur(3,[{provide:o.hnV,multi:!0,useFactory:()=>{const F=(0,o.WQX)(Vt);return()=>{F.setUpLocationChangeListener()}}},{provide:tc,useValue:2}]).\u0275providers:[],"enabledBlocking"===m.initialNavigation?Ur(2,[{provide:tc,useValue:0},{provide:o.hnV,multi:!0,deps:[o.zZn],useFactory:F=>{const _=F.get(E.hj,Promise.resolve());return()=>_.then(()=>new Promise(B=>{const fe=F.get(Vt),Fe=F.get(Wd);Yn(fe,()=>{B(!0)}),F.get(ue).afterPreactivation=()=>(B(!0),Fe.closed?(0,d.of)(void 0):Fe),fe.initialNavigation()}))}}]).\u0275providers:[]]}const Ba=new o.nKC("")},4786:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>x});var o=a(4037),c=a(6832),O=a(4888);class w extends O.Ay{constructor(p,g,y){super(p),this.element=g,this.index=y}}const x=class C extends o.A{constructor(p,g){if(super(),this.unique_=!!(g=g||{}).unique,this.array_=p||[],this.unique_)for(let y=0,h=this.array_.length;y0;)this.pop()}extend(p){for(let g=0,y=p.length;gthis.getLength())throw new Error("Index out of bounds: "+p);this.unique_&&this.assertUnique_(g),this.array_.splice(p,0,g),this.updateLength_(),this.dispatchEvent(new w(c.A.ADD,g,p))}pop(){return this.removeAt(this.getLength()-1)}push(p){this.unique_&&this.assertUnique_(p);const g=this.getLength();return this.insertAt(g,p),this.getLength()}remove(p){const g=this.array_;for(let y=0,h=g.length;y=this.getLength())return;const g=this.array_[p];return this.array_.splice(p,1),this.updateLength_(),this.dispatchEvent(new w(c.A.REMOVE,g,p)),g}setAt(p,g){if(p>=this.getLength())return void this.insertAt(p,g);if(p<0)throw new Error("Index out of bounds: "+p);this.unique_&&this.assertUnique_(g,p);const h=this.array_[p];this.array_[p]=g,this.dispatchEvent(new w(c.A.REMOVE,h,p)),this.dispatchEvent(new w(c.A.ADD,g,p))}updateLength_(){this.set("length",this.array_.length)}assertUnique_(p,g){for(let y=0,h=this.array_.length;y{"use strict";a.d(Ie,{A:()=>o});const o={ADD:"add",REMOVE:"remove"}},1208:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>c});const c=class o{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}},4958:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>x});var o=a(4037),c=a(8864),O=a(9791),d=a(7443);class w extends o.A{constructor(p){super(),this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),p&&("function"==typeof p.getSimplifiedGeometry?this.setGeometry(p):this.setProperties(p))}clone(){const p=new w(this.hasProperties()?this.getProperties():null);p.setGeometryName(this.getGeometryName());const g=this.getGeometry();g&&p.setGeometry(g.clone());const y=this.getStyle();return y&&p.setStyle(y),p}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&((0,d.JH)(this.geometryChangeKey_),this.geometryChangeKey_=null);const p=this.getGeometry();p&&(this.geometryChangeKey_=(0,d.KT)(p,c.A.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(p){this.set(this.geometryName_,p)}setStyle(p){this.style_=p,this.styleFunction_=p?function C(D){if("function"==typeof D)return D;let p;return Array.isArray(D)?p=D:((0,O.v)("function"==typeof D.getZIndex,"Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),p=[D]),function(){return p}}(p):void 0,this.changed()}setId(p){this.id_=p,this.changed()}setGeometryName(p){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=p,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}const x=w},8701:(ut,Ie,a)=>{"use strict";a.d(Ie,{Ay:()=>h,D4:()=>y,RA:()=>g,f6:()=>D});var o=a(6339),c=a(8864),O=a(7068),d=a(6656),w=a(7443),C=a(6401);function D(u,P,T){const E=u;let W=!0,ne=!1,de=!1;const ie=[(0,w.Jz)(E,c.A.LOAD,function(){de=!0,ne||P()})];return E.src&&d.DT?(ne=!0,E.decode().then(function(){W&&P()}).catch(function(Z){W&&(de?P():T())})):ie.push((0,w.Jz)(E,c.A.ERROR,T)),function(){W=!1,ie.forEach(w.JH)}}function g(u,P){return P&&(u.src=P),u.src&&d.DT?new Promise((T,E)=>u.decode().then(()=>T(u)).catch(W=>u.complete&&u.width?T(u):E(W))):function p(u,P){return new Promise((T,E)=>{function W(){de(),T(u)}function ne(){de(),E(new Error("Image load error"))}function de(){u.removeEventListener("load",W),u.removeEventListener("error",ne)}u.addEventListener("load",W),u.addEventListener("error",ne),P&&(u.src=P)})}(u)}function y(u,P){return P&&(u.src=P),u.src&&d.DT&&d.XM?u.decode().then(()=>createImageBitmap(u)).catch(T=>{if(u.complete&&u.width)return u;throw T}):g(u)}const h=class x extends o.A{constructor(P,T,E,W){super(),this.extent=P,this.pixelRatio_=E,this.resolution=T,this.state="function"==typeof W?O.A.IDLE:W,this.image_=null,this.loader="function"==typeof W?W:null}changed(){this.dispatchEvent(c.A.CHANGE)}getExtent(){return this.extent}getImage(){return this.image_}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){if(this.state==O.A.IDLE&&this.loader){this.state=O.A.LOADING,this.changed();const P=this.getResolution(),T=Array.isArray(P)?P[0]:P;(0,C.hq)(()=>this.loader(this.getExtent(),T,this.getPixelRatio())).then(E=>{"image"in E&&(this.image_=E.image),"extent"in E&&(this.extent=E.extent),"resolution"in E&&(this.resolution=E.resolution),"pixelRatio"in E&&(this.pixelRatio_=E.pixelRatio),(E instanceof HTMLImageElement||E instanceof ImageBitmap||E instanceof HTMLCanvasElement||E instanceof HTMLVideoElement)&&(this.image_=E),this.state=O.A.LOADED}).catch(E=>{this.state=O.A.ERROR,console.error(E)}).finally(()=>this.changed())}}setImage(P){this.image_=P}setResolution(P){this.resolution=P}}},7068:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>o});const o={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},2234:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>c});var o=a(8864);const c={SINGLECLICK:"singleclick",CLICK:o.A.CLICK,DBLCLICK:o.A.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},4037:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>D});var o=a(4888),c=a(6953),O=a(5935),d=a(8618),w=a(973);class C extends o.Ay{constructor(g,y,h){super(g),this.key=y,this.oldValue=h}}const D=class x extends O.A{constructor(g){super(),(0,d.v6)(this),this.values_=null,void 0!==g&&this.setProperties(g)}get(g){let y;return this.values_&&this.values_.hasOwnProperty(g)&&(y=this.values_[g]),y}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(g,y){let h;h=`change:${g}`,this.hasListener(h)&&this.dispatchEvent(new C(h,g,y)),h=c.A.PROPERTYCHANGE,this.hasListener(h)&&this.dispatchEvent(new C(h,g,y))}addChangeListener(g,y){this.addEventListener(`change:${g}`,y)}removeChangeListener(g,y){this.removeEventListener(`change:${g}`,y)}set(g,y,h){const u=this.values_||(this.values_={});if(h)u[g]=y;else{const P=u[g];u[g]=y,P!==y&&this.notify(g,P)}}setProperties(g,y){for(const h in g)this.set(h,g[h],y)}applyProperties(g){g.values_&&Object.assign(this.values_||(this.values_={}),g.values_)}unset(g,y){if(this.values_&&g in this.values_){const h=this.values_[g];delete this.values_[g],(0,w.p)(this.values_)&&(this.values_=null),y||this.notify(g,h)}}}},6953:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>o});const o={PROPERTYCHANGE:"propertychange"}},5935:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>C,e:()=>w});var o=a(6339),c=a(8864),O=a(7443);function w(x){if(Array.isArray(x))for(let D=0,p=x.length;D{"use strict";a.d(Ie,{Ay:()=>ye});var o=a(4037),c=a(8130),O=a(2698),d=a(8828),w=a(3036),C=a(6401),x=a(1504),D=a(9791),p=a(8092);function g(Se,z,te){return function(L,q,J,X,K){if(!L)return;if(!q&&!z)return L;const N=z?0:J[0]*q,V=z?0:J[1]*q,I=K?K[0]:0,M=K?K[1]:0;let j=Se[0]+N/2+I,ge=Se[2]-N/2+I,Me=Se[1]+V/2+M,oe=Se[3]-V/2+M;j>ge&&(j=(ge+j)/2,ge=j),Me>oe&&(Me=(oe+Me)/2,oe=Me);let R=(0,p.qE)(L[0],j,ge),se=(0,p.qE)(L[1],Me,oe);if(X&&te&&q){const Ee=30*q;R+=-Ee*Math.log(1+Math.max(0,j-L[0])/Ee)+Ee*Math.log(1+Math.max(0,L[0]-ge)/Ee),se+=-Ee*Math.log(1+Math.max(0,Me-L[1])/Ee)+Ee*Math.log(1+Math.max(0,L[1]-oe)/Ee)}return[R,se]}}function y(Se){return Se}var h=a(4378),u=a(9609);function P(Se,z,te,L){const q=(0,h.RG)(z)/te[0],J=(0,h.Oq)(z)/te[1];return L?Math.min(Se,Math.max(q,J)):Math.min(Se,Math.min(q,J))}function T(Se,z,te){let L=Math.min(Se,z);return L*=Math.log(1+50*Math.max(0,Se/z-1))/50+1,te&&(L=Math.max(L,te),L/=Math.log(1+50*Math.max(0,te/Se-1))/50+1),(0,p.qE)(L,te/2,2*z)}function ne(Se,z,te,L,q){return te=void 0===te||te,function(J,X,K,N){if(void 0!==J){const V=L?P(Se,L,K,q):Se;return te&&N?T(J,V,z):(0,p.qE)(J,z,V)}}}var de=a(1947),ie=a(1999),Z=a(3213);function _e(Se,z){setTimeout(function(){Se(z)},0)}function ve(Se,z,te,L,q){const J=Math.cos(-q);let X=Math.sin(-q),K=Se[0]*J-Se[1]*X,N=Se[1]*J+Se[0]*X;return K+=(z[0]/2-te[0])*L,N+=(te[1]-z[1]/2)*L,X=-X,[K*J-N*X,N*J+K*X]}const ye=class Le extends o.A{constructor(z){super(),z=Object.assign({},z),this.hints_=[0,0],this.animations_=[],this.projection_=(0,w.Av)(z.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.nextCenter_=null,this.cancelAnchor_=void 0,z.projection&&(0,w.RJ)(),z.center&&(z.center=(0,w.Ad)(z.center,this.projection_)),z.extent&&(z.extent=(0,w.SD)(z.extent,this.projection_)),this.applyOptions_(z)}applyOptions_(z){const te=Object.assign({},z);for(const K in O.A)delete te[K];this.setProperties(te,!0);const L=function Ae(Se){let z,te,L,X=void 0!==Se.minZoom?Se.minZoom:0,K=void 0!==Se.maxZoom?Se.maxZoom:28;const N=void 0!==Se.zoomFactor?Se.zoomFactor:2,V=void 0!==Se.multiWorld&&Se.multiWorld,I=void 0===Se.smoothResolutionConstraint||Se.smoothResolutionConstraint,M=void 0!==Se.showFullExtent&&Se.showFullExtent,j=(0,w.Av)(Se.projection,"EPSG:3857"),ge=j.getExtent();let Me=Se.constrainOnlyCenter,oe=Se.extent;if(!V&&!oe&&j.isGlobal()&&(Me=!1,oe=ge),void 0!==Se.resolutions){const R=Se.resolutions;te=R[X],L=void 0!==R[K]?R[K]:R[R.length-1],z=Se.constrainResolution?function E(Se,z,te,L){return z=void 0===z||z,function(q,J,X,K){if(void 0!==q){const N=Se[0],V=Se[Se.length-1],I=te?P(N,te,X,L):N;if(K)return z?T(q,I,V):(0,p.qE)(q,V,I);const M=Math.min(I,q),j=Math.floor((0,u.FT)(Se,M,J));return Se[j]>I&&j1&&"function"==typeof arguments[te-1]&&(L=arguments[te-1],--te);let q=0;for(;q0}getInteracting(){return this.hints_[c.A.INTERACTING]>0}cancelAnimations(){let z;this.setHint(c.A.ANIMATING,-this.hints_[c.A.ANIMATING]);for(let te=0,L=this.animations_.length;te=0;--L){const q=this.animations_[L];let J=!0;for(let X=0,K=q.length;X0?(z-N.start)/N.duration:1;I>=1?(N.complete=!0,I=1):J=!1;const M=N.easing(I);if(N.sourceCenter){const j=N.sourceCenter[0],ge=N.sourceCenter[1],Me=N.targetCenter[0],oe=N.targetCenter[1];this.nextCenter_=N.targetCenter,this.targetCenter_=[j+M*(Me-j),ge+M*(oe-ge)]}if(N.sourceResolution&&N.targetResolution){const j=1===M?N.targetResolution:N.sourceResolution+M*(N.targetResolution-N.sourceResolution);if(N.anchor){const ge=this.getViewportSize_(this.getRotation()),Me=this.constraints_.resolution(j,0,ge,!0);this.targetCenter_=this.calculateCenterZoom(Me,N.anchor)}this.nextResolution_=N.targetResolution,this.targetResolution_=j,this.applyTargetState_(!0)}if(void 0!==N.sourceRotation&&void 0!==N.targetRotation){const j=1===M?(0,p.xP)(N.targetRotation+Math.PI,2*Math.PI)-Math.PI:N.sourceRotation+M*(N.targetRotation-N.sourceRotation);if(N.anchor){const ge=this.constraints_.rotation(j,!0);this.targetCenter_=this.calculateCenterRotate(ge,N.anchor)}this.nextRotation_=N.targetRotation,this.targetRotation_=j}if(this.applyTargetState_(!0),te=!0,!N.complete)break}if(J){this.animations_[L]=null,this.setHint(c.A.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const X=q[0].callback;X&&_e(X,!0)}}this.animations_=this.animations_.filter(Boolean),te&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(z,te){let L;const q=this.getCenterInternal();return void 0!==q&&(L=[q[0]-te[0],q[1]-te[1]],(0,x.e$)(L,z-this.getRotation()),(0,x.WQ)(L,te)),L}calculateCenterZoom(z,te){let L;const q=this.getCenterInternal(),J=this.getResolution();return void 0!==q&&void 0!==J&&(L=[te[0]-z*(te[0]-q[0])/J,te[1]-z*(te[1]-q[1])/J]),L}getViewportSize_(z){const te=this.viewportSize_;if(z){const L=te[0],q=te[1];return[Math.abs(L*Math.cos(z))+Math.abs(q*Math.sin(z)),Math.abs(L*Math.sin(z))+Math.abs(q*Math.cos(z))]}return te}setViewportSize(z){this.viewportSize_=Array.isArray(z)?z.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const z=this.getCenterInternal();return z&&(0,w.te)(z,this.getProjection())}getCenterInternal(){return this.get(O.A.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(z){return void 0!==z?(z[0]=this.hints_[0],z[1]=this.hints_[1],z):this.hints_.slice()}calculateExtent(z){const te=this.calculateExtentInternal(z);return(0,w.JR)(te,this.getProjection())}calculateExtentInternal(z){z=z||this.getViewportSizeMinusPadding_();const te=this.getCenterInternal();(0,D.v)(te,"The view center is not defined");const L=this.getResolution();(0,D.v)(void 0!==L,"The view resolution is not defined");const q=this.getRotation();return(0,D.v)(void 0!==q,"The view rotation is not defined"),(0,h.Bg)(te,L,q,z)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(z){this.applyOptions_(this.getUpdatedOptions_({maxZoom:z}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(z){this.applyOptions_(this.getUpdatedOptions_({minZoom:z}))}setConstrainResolution(z){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:z}))}getProjection(){return this.projection_}getResolution(){return this.get(O.A.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(z,te){return this.getResolutionForExtentInternal((0,w.SD)(z,this.getProjection()),te)}getResolutionForExtentInternal(z,te){te=te||this.getViewportSizeMinusPadding_();const L=(0,h.RG)(z)/te[0],q=(0,h.Oq)(z)/te[1];return Math.max(L,q)}getResolutionForValueFunction(z){z=z||2;const te=this.getConstrainedResolution(this.maxResolution_),q=Math.log(te/this.minResolution_)/Math.log(z);return function(J){return te/Math.pow(z,J*q)}}getRotation(){return this.get(O.A.ROTATION)}getValueForResolutionFunction(z){const te=Math.log(z||2),L=this.getConstrainedResolution(this.maxResolution_),J=Math.log(L/this.minResolution_)/te;return function(X){return Math.log(L/X)/te/J}}getViewportSizeMinusPadding_(z){let te=this.getViewportSize_(z);const L=this.padding_;return L&&(te=[te[0]-L[1]-L[3],te[1]-L[0]-L[2]]),te}getState(){const z=this.getProjection(),te=this.getResolution(),L=this.getRotation();let q=this.getCenterInternal();const J=this.padding_;if(J){const X=this.getViewportSizeMinusPadding_();q=ve(q,this.getViewportSize_(),[X[0]/2+J[3],X[1]/2+J[0]],te,L)}return{center:q.slice(0),projection:void 0!==z?z:null,resolution:te,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:L,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let z;const te=this.getResolution();return void 0!==te&&(z=this.getZoomForResolution(te)),z}getZoomForResolution(z){let L,q,te=this.minZoom_||0;if(this.resolutions_){const J=(0,u.FT)(this.resolutions_,z,1);te=J,L=this.resolutions_[J],q=J==this.resolutions_.length-1?2:L/this.resolutions_[J+1]}else L=this.maxResolution_,q=this.zoomFactor_;return te+Math.log(L/z)/Math.log(q)}getResolutionForZoom(z){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const te=(0,p.qE)(Math.floor(z),0,this.resolutions_.length-2);return this.resolutions_[te]/Math.pow(this.resolutions_[te]/this.resolutions_[te+1],(0,p.qE)(z-te,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,z-this.minZoom_)}fit(z,te){let L;if((0,D.v)(Array.isArray(z)||"function"==typeof z.getSimplifiedGeometry,"Invalid extent or geometry provided as `geometry`"),Array.isArray(z)){(0,D.v)(!(0,h.Im)(z),"Cannot fit empty extent provided as `geometry`");const q=(0,w.SD)(z,this.getProjection());L=(0,Z.VY)(q)}else if("Circle"===z.getType()){const q=(0,w.SD)(z.getExtent(),this.getProjection());L=(0,Z.VY)(q),L.rotate(this.getRotation(),(0,h.q1)(q))}else{const q=(0,w.Tf)();L=q?z.clone().transform(q,this.getProjection()):z}this.fitInternal(L,te)}rotatedExtentForGeometry(z){const te=this.getRotation(),L=Math.cos(te),q=Math.sin(-te),J=z.getFlatCoordinates(),X=z.getStride();let K=1/0,N=1/0,V=-1/0,I=-1/0;for(let M=0,j=J.length;M{"use strict";a.d(Ie,{A:()=>o});const o={ANIMATING:0,INTERACTING:1}},2698:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>o});const o={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"}},9609:(ut,Ie,a)=>{"use strict";function o(y,h,u){let P,T;u=u||c;let E=0,W=y.length,ne=!1;for(;E>1),T=+u(y[P],h),T<0?E=P+1:(W=P,ne=!T);return ne?E:~E}function c(y,h){return y>h?1:yh?-1:0}function d(y,h,u){if(y[0]<=h)return 0;const P=y.length;if(h<=y[P-1])return P-1;if("function"==typeof u){for(let T=1;T0?T-1:T}return P-1}if(u>0){for(let T=1;T0||u&&0===W)})}a.d(Ie,{El:()=>o,FT:()=>d,V_:()=>c,WC:()=>g,X$:()=>C,aI:()=>D,gI:()=>w,rG:()=>O})},9791:(ut,Ie,a)=>{"use strict";function o(c,O){if(!c)throw new Error(O)}a.d(Ie,{v:()=>o})},642:(ut,Ie,a)=>{"use strict";a.d(Ie,{_j:()=>Ce,oJ:()=>W,sH:()=>_e,$C:()=>Ue,cD:()=>Le,S8:()=>Ae,eE:()=>ae,dI:()=>ke,fu:()=>Z});const c={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]};var O={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"],whitepoint:{2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}}};O.max=O.whitepoint[2].D65,O.rgb=function(ve,ye){var L,q,J,Se=ve[0]/(ye=ye||O.whitepoint[2].E)[0],z=ve[1]/ye[1],te=ve[2]/ye[2];return q=-.96924363628087*Se+1.87596750150772*z+.041555057407175*te,J=.055630079696993*Se+-.20397695888897*z+1.056971514242878*te,L=(L=3.240969941904521*Se+-1.537383177570093*z+-.498610760293*te)>.0031308?1.055*Math.pow(L,1/2.4)-.055:L*=12.92,q=q>.0031308?1.055*Math.pow(q,1/2.4)-.055:q*=12.92,J=J>.0031308?1.055*Math.pow(J,1/2.4)-.055:J*=12.92,[255*(L=Math.min(Math.max(0,L),1)),255*(q=Math.min(Math.max(0,q),1)),255*(J=Math.min(Math.max(0,J),1))]},c.xyz=function(ve,ye){var Se=ve[0]/255,z=ve[1]/255,te=ve[2]/255;return[(.41239079926595*(Se=Se>.04045?Math.pow((Se+.055)/1.055,2.4):Se/12.92)+.35758433938387*(z=z>.04045?Math.pow((z+.055)/1.055,2.4):z/12.92)+.18048078840183*(te=te>.04045?Math.pow((te+.055)/1.055,2.4):te/12.92))*(ye=ye||O.whitepoint[2].E)[0],(.21263900587151*Se+.71516867876775*z+.072192315360733*te)*ye[1],(.019330818715591*Se+.11919477979462*z+.95053215224966*te)*ye[2]]};const d=O,C={name:"luv",min:[0,-134,-140],max:[100,224,122],channel:["lightness","u","v"],alias:["LUV","cieluv","cie1976"],xyz:function(ve,ye,Se){var z,te,L,K,V,I,M;return 0===(L=ve[0])?[0,0,0]:(z=ve[1]/(13*L)+4*(V=d.whitepoint[Se=Se||2][ye=ye||"D65"][0])/(V+15*(I=d.whitepoint[Se][ye][1])+3*(M=d.whitepoint[Se][ye][2]))||0,te=ve[2]/(13*L)+9*I/(V+15*I+3*M)||0,[9*(K=L>8?I*Math.pow((L+16)/116,3):I*L*.0011070564598794539)*z/(4*te)||0,K,K*(12-3*z-20*te)/(4*te)||0])}};d.luv=function(ve,ye,Se){var z,te,L,X,K,N,V,I,M,j,ge;j=4*(V=d.whitepoint[Se=Se||2][ye=ye||"D65"][0])/(V+15*(I=d.whitepoint[Se][ye][1])+3*(M=d.whitepoint[Se][ye][2])),ge=9*I/(V+15*I+3*M),z=4*(X=ve[0])/(X+15*(K=ve[1])+3*(N=ve[2]))||0,te=9*K/(X+15*K+3*N)||0;var R=K/I;return[L=R<=.008856451679035631?903.2962962962961*R:116*Math.pow(R,1/3)-16,13*L*(z-j),13*L*(te-ge)]};var x={name:"lchuv",channel:["lightness","chroma","hue"],alias:["LCHuv","cielchuv"],min:[0,0,0],max:[100,100,360],luv:function(ve){var q,Se=ve[1];return q=ve[2]/360*2*Math.PI,[ve[0],Se*Math.cos(q),Se*Math.sin(q)]},xyz:function(ve){return C.xyz(x.luv(ve))}};const D=x;C.lchuv=function(ve){var ye=ve[0],Se=ve[1],z=ve[2],te=Math.sqrt(Se*Se+z*z),q=360*Math.atan2(z,Se)/2/Math.PI;return q<0&&(q+=360),[ye,te,q]},d.lchuv=function(ve){return C.lchuv(d.luv(ve))};const p={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},g=function h(ve){var ye,te,Se=[],z=1;if("number"==typeof ve)return{space:"rgb",values:[ve>>>16,(65280&ve)>>>8,255&ve],alpha:1};if("number"==typeof ve)return{space:"rgb",values:[ve>>>16,(65280&ve)>>>8,255&ve],alpha:1};if(ve=String(ve).toLowerCase(),p[ve])Se=p[ve].slice(),te="rgb";else if("transparent"===ve)z=0,te="rgb",Se=[0,0,0];else if("#"===ve[0]){var L=ve.slice(1),q=L.length;z=1,q<=4?(Se=[parseInt(L[0]+L[0],16),parseInt(L[1]+L[1],16),parseInt(L[2]+L[2],16)],4===q&&(z=parseInt(L[3]+L[3],16)/255)):(Se=[parseInt(L[0]+L[1],16),parseInt(L[2]+L[3],16),parseInt(L[4]+L[5],16)],8===q&&(z=parseInt(L[6]+L[7],16)/255)),Se[0]||(Se[0]=0),Se[1]||(Se[1]=0),Se[2]||(Se[2]=0),te="rgb"}else if(ye=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(ve)){var K="cmyk"===(te=ye[1].replace(/a$/,""))?4:"gray"===te?1:3;Se=ye[2].trim().split(/\s*[,\/]\s*|\s+/),"color"===te&&(te=Se.shift()),z=(Se=Se.map(function(N,V){if("%"===N[N.length-1])return N=parseFloat(N)/100,3===V?N:"rgb"===te?255*N:"h"===te[0]||"l"===te[0]&&!V?100*N:"lab"===te?125*N:"lch"===te?V<2?150*N:360*N:"o"!==te[0]||V?"oklab"===te?.4*N:"oklch"===te?V<2?.4*N:360*N:N:N;if("h"===te[V]||2===V&&"h"===te[te.length-1]){if(void 0!==y[N])return y[N];if(N.endsWith("deg"))return parseFloat(N);if(N.endsWith("turn"))return 360*parseFloat(N);if(N.endsWith("grad"))return 360*parseFloat(N)/400;if(N.endsWith("rad"))return 180*parseFloat(N)/Math.PI}return"none"===N?0:parseFloat(N)})).length>K?Se.pop():1}else/[0-9](?:\s|\/|,)/.test(ve)&&(Se=ve.match(/([0-9]+)/g).map(function(N){return parseFloat(N)}),te=ve.match(/([a-z])/gi)?.join("")?.toLowerCase()||"rgb");return{space:te,values:Se,alpha:z}};var y={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};const P={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(ve){var te,L,q,J,X,ye=ve[0]/360,Se=ve[1]/100,z=ve[2]/100,K=0;if(0===Se)return[X=255*z,X,X];for(te=2*z-(L=z<.5?z*(1+Se):z+Se-z*Se),J=[0,0,0];K<3;)(q=ye+1/3*-(K-1))<0?q++:q>1&&q--,J[K++]=255*(X=6*q<1?te+6*(L-te)*q:2*q<1?L:3*q<2?te+(L-te)*(2/3-q)*6:te);return J}};c.hsl=function(ve){var J,K,ye=ve[0]/255,Se=ve[1]/255,z=ve[2]/255,te=Math.min(ye,Se,z),L=Math.max(ye,Se,z),q=L-te;return L===te?J=0:ye===L?J=(Se-z)/q:Se===L?J=2+(z-ye)/q:z===L&&(J=4+(ye-Se)/q),(J=Math.min(60*J,360))<0&&(J+=360),K=(te+L)/2,[J,100*(L===te?0:K<=.5?q/(L+te):q/(2-L-te)),100*K]};var E=a(8092);function W(ve){return"string"==typeof ve?ve:ke(ve)}const ne=1024,de={};let ie=0;function Z(ve){if(4===ve.length)return ve;const ye=ve.slice();return ye[3]=1,ye}function ae(ve){const ye=d.lchuv(c.xyz(ve));return ye[3]=ve[3],ye}function Le(ve){const ye=d.rgb(D.xyz(ve));return ye[3]=ve[3],ye}function _e(ve){if(de.hasOwnProperty(ve))return de[ve];if(ie>=ne){let Se=0;for(const z in de)3&Se++||(delete de[z],--ie)}const ye=function T(ve){Array.isArray(ve)&&ve.raw&&(ve=String.raw(...arguments)),ve instanceof Number&&(ve=+ve);var ye,te=g(ve);if(!te.space)return[];const L="h"===te.space[0]?P.min:c.min,q="h"===te.space[0]?P.max:c.max;return(ye=Array(3))[0]=Math.min(Math.max(te.values[0],L[0]),q[0]),ye[1]=Math.min(Math.max(te.values[1],L[1]),q[1]),ye[2]=Math.min(Math.max(te.values[2],L[2]),q[2]),"h"===te.space[0]&&(ye=P.rgb(ye)),ye.push(Math.min(Math.max(te.alpha,0),1)),ye}(ve);if(4!==ye.length)throw new Error('Failed to parse "'+ve+'" as color');for(const Se of ye)if(isNaN(Se))throw new Error('Failed to parse "'+ve+'" as color');return Ae(ye),de[ve]=ye,++ie,ye}function Ce(ve){return Array.isArray(ve)?ve:_e(ve)}function Ae(ve){return ve[0]=(0,E.qE)(ve[0]+.5|0,0,255),ve[1]=(0,E.qE)(ve[1]+.5|0,0,255),ve[2]=(0,E.qE)(ve[2]+.5|0,0,255),ve[3]=(0,E.qE)(ve[3],0,1),ve}function ke(ve){let ye=ve[0];ye!=(0|ye)&&(ye=ye+.5|0);let Se=ve[1];Se!=(0|Se)&&(Se=Se+.5|0);let z=ve[2];return z!=(0|z)&&(z=z+.5|0),"rgba("+ye+","+Se+","+z+","+(void 0===ve[3]?1:Math.round(1e3*ve[3])/1e3)+")"}function Ue(ve){try{return _e(ve),!0}catch{return!1}}},8896:(ut,Ie,a)=>{"use strict";a.d(Ie,{F:()=>C});var o=a(7068),c=a(5664),O=a(3436),d=a(7048),w=a(642);function C(D){return D?Array.isArray(D)?(0,w.dI)(D):"object"==typeof D&&"src"in D?function x(D){if(!D.offset||!D.size)return d.ue.getPattern(D.src,"anonymous",D.color);const p=D.src+":"+D.offset,g=d.ue.getPattern(p,void 0,D.color);if(g)return g;const y=d.ue.get(D.src,"anonymous",null);if(y.getImageState()!==o.A.LOADED)return null;const h=(0,c.Y)(D.size[0],D.size[1]);return h.drawImage(y.getImage(1),D.offset[0],D.offset[1],D.size[0],D.size[1],0,0,D.size[0],D.size[1]),(0,O.J)(h.canvas,p,void 0,o.A.LOADED,D.color,!0),d.ue.getPattern(p,void 0,D.color)}(D):D:null}},4205:(ut,Ie,a)=>{"use strict";a.d(Ie,{R8:()=>w});const o={info:1,warn:2,error:3,none:4};let c=o.info;function w(...x){c>o.warn||console.warn(...x)}},1504:(ut,Ie,a)=>{"use strict";a.d(Ie,{$x:()=>u,GP:()=>x,Io:()=>h,Li:()=>E,WQ:()=>c,aI:()=>D,e$:()=>p,hG:()=>y,hs:()=>g,sG:()=>d});var o=a(4378);function c(ne,de){return ne[0]+=+de[0],ne[1]+=+de[1],ne}function d(ne,de){const ae=de[0],Le=de[1],_e=ae[0],Ce=ae[1],Ae=Le[0],ke=Le[1],Ue=Ae-_e,ve=ke-Ce,ye=0===Ue&&0===ve?0:(Ue*(ne[0]-_e)+ve*(ne[1]-Ce))/(Ue*Ue+ve*ve||0);let Se,z;return ye<=0?(Se=_e,z=Ce):ye>=1?(Se=Ae,z=ke):(Se=_e+ye*Ue,z=Ce+ye*ve),[Se,z]}function x(ne,de,ie){return ne?de.replace("{x}",ne[0].toFixed(ie)).replace("{y}",ne[1].toFixed(ie)):""}function D(ne,de){let ie=!0;for(let Z=ne.length-1;Z>=0;--Z)if(ne[Z]!=de[Z]){ie=!1;break}return ie}function p(ne,de){const ie=Math.cos(de),Z=Math.sin(de),Le=ne[1]*ie+ne[0]*Z;return ne[0]=ne[0]*ie-ne[1]*Z,ne[1]=Le,ne}function g(ne,de){return ne[0]*=de,ne[1]*=de,ne}function y(ne,de){const ie=ne[0]-de[0],Z=ne[1]-de[1];return ie*ie+Z*Z}function h(ne,de){return Math.sqrt(y(ne,de))}function u(ne,de){return y(ne,d(ne,de))}function E(ne,de){if(de.canWrapX()){const ie=(0,o.RG)(de.getExtent()),Z=function W(ne,de,ie){const Z=de.getExtent();let ae=0;return de.canWrapX()&&(ne[0]Z[2])&&(ie=ie||(0,o.RG)(Z),ae=Math.floor((ne[0]-Z[0])/ie)),ae}(ne,de,ie);Z&&(ne[0]-=Z*ie)}return ne}},215:(ut,Ie,a)=>{"use strict";a.d(Ie,{$N:()=>w,K5:()=>p,Q5:()=>c,Si:()=>o,Vv:()=>d,XI:()=>O,nT:()=>C});const o="ol-hidden",c="ol-selectable",O="ol-unselectable",d="ol-unsupported",w="ol-control",C="ol-collapsed",x=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),D=["style","variant","weight","size","lineHeight","family"],p=function(g){const y=g.match(x);if(!y)return null;const h={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let u=0,P=D.length;u{"use strict";a.d(Ie,{DK:()=>x,Gq:()=>C,WM:()=>y,Y:()=>c,Yg:()=>w,bf:()=>p,fo:()=>D,gS:()=>g,lr:()=>d});var o=a(6656);function c(h,u,P,T){let E;return E=P&&P.length?P.shift():o.Wl?new OffscreenCanvas(h||300,u||300):document.createElement("canvas"),h&&(E.width=h),u&&(E.height=u),E.getContext("2d",T)}let O;function d(){return O||(O=c(1,1)),O}function w(h){const u=h.canvas;u.width=1,u.height=1,h.clearRect(0,0,1,1)}function C(h){let u=h.offsetWidth;const P=getComputedStyle(h);return u+=parseInt(P.marginLeft,10)+parseInt(P.marginRight,10),u}function x(h){let u=h.offsetHeight;const P=getComputedStyle(h);return u+=parseInt(P.marginTop,10)+parseInt(P.marginBottom,10),u}function D(h,u){const P=u.parentNode;P&&P.replaceChild(h,u)}function p(h){return h&&h.parentNode?h.parentNode.removeChild(h):null}function g(h){for(;h.lastChild;)h.removeChild(h.lastChild)}function y(h,u){const P=h.childNodes;for(let T=0;;++T){const E=P[T],W=u[T];if(!E&&!W)break;if(E!==W){if(!E){h.appendChild(W);continue}if(!W){h.removeChild(E),--T;continue}h.insertBefore(W,E)}}}},1999:(ut,Ie,a)=>{"use strict";function o(C){return Math.pow(C,3)}function c(C){return 1-o(1-C)}function O(C){return 3*C*C-2*C*C*C}function d(C){return C}a.d(Ie,{T9:()=>O,a6:()=>o,sn:()=>d,vT:()=>c})},7443:(ut,Ie,a)=>{"use strict";a.d(Ie,{JH:()=>d,Jz:()=>O,KT:()=>c});var o=a(973);function c(w,C,x,D,p){if(D&&D!==w&&(x=x.bind(D)),p){const y=x;x=function(){w.removeEventListener(C,x),y.apply(this,arguments)}}const g={target:w,type:C,listener:x};return w.addEventListener(C,x),g}function O(w,C,x,D){return c(w,C,x,D,!0)}function d(w){w&&w.target&&(w.target.removeEventListener(w.type,w.listener),(0,o.I)(w))}},4888:(ut,Ie,a)=>{"use strict";a.d(Ie,{Ay:()=>d});const d=class o{constructor(C){this.type=C,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}},8864:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>o});const o={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},6339:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>C});var o=a(1208),c=a(4888),O=a(6401),d=a(973);const C=class w extends o.A{constructor(D){super(),this.eventTarget_=D,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(D,p){if(!D||!p)return;const g=this.listeners_||(this.listeners_={}),y=g[D]||(g[D]=[]);y.includes(p)||y.push(p)}dispatchEvent(D){const p="string"==typeof D,g=p?D:D.type,y=this.listeners_&&this.listeners_[g];if(!y)return;const h=p?new c.Ay(D):D;h.target||(h.target=this.eventTarget_||this);const u=this.dispatching_||(this.dispatching_={}),P=this.pendingRemovals_||(this.pendingRemovals_={});let T;g in u||(u[g]=0,P[g]=0),++u[g];for(let E=0,W=y.length;E0)}removeEventListener(D,p){if(!this.listeners_)return;const g=this.listeners_[D];if(!g)return;const y=g.indexOf(p);-1!==y&&(this.pendingRemovals_&&D in this.pendingRemovals_?(g[y]=O.tV,++this.pendingRemovals_[D]):(g.splice(y,1),0===g.length&&delete this.listeners_[D]))}}},3301:(ut,Ie,a)=>{"use strict";a.d(Ie,{A4:()=>ae,GB:()=>de,Gk:()=>g,IO:()=>x,Js:()=>C,Kg:()=>ie,Q7:()=>w,TS:()=>W,Zm:()=>u,at:()=>h,eL:()=>p,fs:()=>Ce,t5:()=>T,tE:()=>Z});var o=a(2234),c=a(6401),O=a(6656),d=a(9791);function w(Ae){const ke=arguments;return function(Ue){let ve=!0;for(let ye=0,Se=ke.length;ye{"use strict";a.d(Ie,{DG:()=>ne,Fq:()=>p,SR:()=>de,T8:()=>w,Xj:()=>E,Ye:()=>I,ZD:()=>ae,_D:()=>W,cT:()=>x,go:()=>u,ho:()=>T,j:()=>d,mE:()=>D,qg:()=>Z,wl:()=>C});var o=a(9609),c=a(642);let O=0;const d=0,w=1<",GreaterThanOrEqualTo:">=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match",Between:"between",Interpolate:"interpolate",Coalesce:"coalesce",Case:"case",In:"in",Number:"number",String:"string",Array:"array",Color:"color",Id:"id",Band:"band",Palette:"palette"},Le={[ae.Get]:N(([M,j])=>void 0!==j?function ie(M){switch(M){case"string":return x;case"color":return D;case"number":return C;case"boolean":return w;case"number[]":return p;default:throw new Error(`Unrecognized type hint: ${M}`)}}(j.value):g,ve(1,2),function _e(M,j){const ge=Z(M[1],j);if(!(ge instanceof W))throw new Error("Expected a literal argument for get operation");if("string"!=typeof ge.value)throw new Error("Expected a string argument for get operation");return j.properties.add(ge.value),3===M.length?[ge,Z(M[2],j)]:[ge]}),[ae.Var]:N(([M])=>M.type,ve(1,1),function Ce(M,j,ge,Me){const oe=M[1];if("string"!=typeof oe)throw new Error("Expected a string argument for var operation");if(j.variables.add(oe),!("variables"in j.style)||void 0===j.style.variables[oe])return[new W(g,oe)];const se=Z(j.style.variables[oe],j);if(se.value=oe,Me&&!T(Me,se.type))throw new Error(`The variable ${oe} has type ${u(se.type)} but the following type was expected: ${u(Me)}`);return[se]}),[ae.Id]:N(C|x,Ue,function Ae(M,j){j.featureId=!0}),[ae.Concat]:N(x,ve(2,1/0),ye(g)),[ae.GeometryType]:N(x,Ue,function ke(M,j){j.geometryType=!0}),[ae.Resolution]:N(C,Ue),[ae.Zoom]:N(C,Ue),[ae.Time]:N(C,Ue),[ae.Any]:N(w,ve(2,1/0),ye(w)),[ae.All]:N(w,ve(2,1/0),ye(w)),[ae.Not]:N(w,ve(1,1),ye(w)),[ae.Equal]:N(w,ve(2,2),ye(g),Se),[ae.NotEqual]:N(w,ve(2,2),ye(g),Se),[ae.GreaterThan]:N(w,ve(2,2),ye(g),Se),[ae.GreaterThanOrEqualTo]:N(w,ve(2,2),ye(g),Se),[ae.LessThan]:N(w,ve(2,2),ye(g),Se),[ae.LessThanOrEqualTo]:N(w,ve(2,2),ye(g),Se),[ae.Multiply]:N(M=>{let j=C|D;for(let ge=0;ge{let j=g;for(let ge=1;ge{let j=g;for(let ge=2;ge{let j=D|C;for(let ge=3;ge{let j=g;for(let ge=1;ge3===M.length||4===M.length?p|D:p,ve(1,1/0),ye(C)),[ae.Color]:N(D,ve(1,4),ye(C)),[ae.Band]:N(C,ve(1,3),ye(C)),[ae.Palette]:N(D,ve(2,2),function K(M,j){const ge=Z(M[1],j,C);if(ge.type!==C)throw new Error(`The first argument of palette must be an number, got ${u(ge.type)} instead`);const Me=M[2];if(!Array.isArray(Me))throw new Error("The second argument of palette must be an array");const oe=new Array(Me.length);for(let R=0;Rj)throw new Error(`Expected ${j===1/0?`${M} or more`:`${M} to ${j}`} arguments for ${oe}, got ${R}`)}}function ye(M){return function(j,ge){const Me=j[0],oe=j.length-1,R=new Array(oe);for(let se=0;se{"use strict";a.d(Ie,{$C:()=>Z,$u:()=>Me,Af:()=>oe,Bg:()=>te,HY:()=>j,Im:()=>ge,Ld:()=>C,Li:()=>Ee,Mx:()=>R,N:()=>h,NW:()=>se,Oq:()=>q,Py:()=>V,QJ:()=>tt,R:()=>Ue,R8:()=>Le,RG:()=>M,Rj:()=>p,S5:()=>y,Tr:()=>c,UG:()=>ke,Vy:()=>E,WU:()=>I,X$:()=>ie,Ym:()=>x,Yw:()=>L,_N:()=>X,aI:()=>ne,aZ:()=>u,dP:()=>P,k_:()=>ve,ms:()=>D,o8:()=>w,q1:()=>ye,qF:()=>Se,r:()=>d,sB:()=>Ae,vz:()=>g});var o=a(5479);function c(Y){const Re=[1/0,1/0,-1/0,-1/0];for(let De=0,nt=Y.length;DeY[2]&&(ln|=o.A.RIGHT),onY[3]&&(ln|=o.A.ABOVE),ln===o.A.UNKNOWN&&(ln=o.A.INTERSECTING),ln}function y(){return[1/0,1/0,-1/0,-1/0]}function h(Y,Re,De,nt,ht){return ht?(ht[0]=Y,ht[1]=Re,ht[2]=De,ht[3]=nt,ht):[Y,Re,De,nt]}function u(Y){return h(1/0,1/0,-1/0,-1/0,Y)}function P(Y,Re){const De=Y[0],nt=Y[1];return h(De,nt,De,nt,Re)}function E(Y,Re,De,nt,ht){return Le(u(ht),Y,Re,De,nt)}function ne(Y,Re){return Y[0]==Re[0]&&Y[2]==Re[2]&&Y[1]==Re[1]&&Y[3]==Re[3]}function ie(Y,Re){return Re[0]Y[2]&&(Y[2]=Re[2]),Re[1]Y[3]&&(Y[3]=Re[3]),Y}function Z(Y,Re){Re[0]Y[2]&&(Y[2]=Re[0]),Re[1]Y[3]&&(Y[3]=Re[1])}function Le(Y,Re,De,nt,ht){for(;DeRe[0]?Y[0]:Re[0],nt[1]=Y[1]>Re[1]?Y[1]:Re[1],nt[2]=Y[2]=Re[0]&&Y[1]<=Re[3]&&Y[3]>=Re[1]}function ge(Y){return Y[2]=Nt&&Ke<=ln),!nt&&jt&o.A.RIGHT&&!(ht&o.A.RIGHT)&&(ft=re-(ee-ln)*be,nt=ft>=on&&ft<=Ot),!nt&&jt&o.A.BELOW&&!(ht&o.A.BELOW)&&(Ke=ee-(re-on)/be,nt=Ke>=Nt&&Ke<=ln),!nt&&jt&o.A.LEFT&&!(ht&o.A.LEFT)&&(ft=re-(ee-Nt)*be,nt=ft>=on&&ft<=Ot)}return nt}function se(Y,Re,De,nt){if(ge(Y))return u(De);let ht=[];if(nt>1){const on=Y[2]-Y[0],ln=Y[3]-Y[1];for(let Ot=0;Ot=De[2])){const ht=M(De),Nt=Math.floor((nt[0]-De[0])/ht)*ht;Y[0]-=Nt,Y[2]-=Nt}return Y}function tt(Y,Re){if(Re.canWrapX()){const De=Re.getExtent();if(!isFinite(Y[0])||!isFinite(Y[2]))return[[De[0],Y[1],De[2],Y[3]]];Ee(Y,Re);const nt=M(De);if(M(Y)>nt)return[[De[0],Y[1],De[2],Y[3]]];if(Y[0]De[2])return[[Y[0],Y[1],De[2],Y[3]],[De[0],Y[1],Y[2]-nt,Y[3]]]}return[Y]}},5479:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>o});const o={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},6401:(ut,Ie,a)=>{"use strict";a.d(Ie,{B4:()=>w,W8:()=>O,hq:()=>C,rT:()=>c,tV:()=>d});var o=a(9609);function c(){return!0}function O(){return!1}function d(){}function w(x){let p,g,y,D=!1;return function(){const h=Array.prototype.slice.call(arguments);return(!D||this!==y||!(0,o.aI)(h,g))&&(D=!0,y=this,g=h,p=x.apply(this,arguments)),p}}function C(x){return function D(){let p;try{p=x()}catch(g){return Promise.reject(g)}return p instanceof Promise?p:Promise.resolve(p)}()}},7469:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>g});var o=a(4037),c=a(8618),O=a(9984),d=a(4378),w=a(3036),C=a(6401),x=a(7133);const D=(0,O.vt)(),g=class p extends o.A{constructor(){super(),this.extent_=(0,d.S5)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,C.B4)((h,u,P)=>{if(!P)return this.getSimplifiedGeometry(u);const T=this.clone();return T.applyTransform(P),T.getSimplifiedGeometry(u)})}simplifyTransformed(h,u){return this.simplifyTransformedInternal(this.getRevision(),h,u)}clone(){return(0,c.b0)()}closestPointXY(h,u,P,T){return(0,c.b0)()}containsXY(h,u){const P=this.getClosestPoint([h,u]);return P[0]===h&&P[1]===u}getClosestPoint(h,u){return this.closestPointXY(h[0],h[1],u=u||[NaN,NaN],1/0),u}intersectsCoordinate(h){return this.containsXY(h[0],h[1])}computeExtent(h){return(0,c.b0)()}getExtent(h){if(this.extentRevision_!=this.getRevision()){const u=this.computeExtent(this.extent_);(isNaN(u[0])||isNaN(u[1]))&&(0,d.aZ)(u),this.extentRevision_=this.getRevision()}return(0,d.$u)(this.extent_,h)}rotate(h,u){(0,c.b0)()}scale(h,u,P){(0,c.b0)()}simplify(h){return this.getSimplifiedGeometry(h*h)}getSimplifiedGeometry(h){return(0,c.b0)()}getType(){return(0,c.b0)()}applyTransform(h){(0,c.b0)()}intersectsExtent(h){return(0,c.b0)()}translate(h,u){(0,c.b0)()}transform(h,u){const P=(0,w.Jt)(h),T="tile-pixels"==P.getUnits()?function(E,W,ne){const de=P.getExtent(),ie=P.getWorldExtent(),Z=(0,d.Oq)(ie)/(0,d.Oq)(de);return(0,O.Zz)(D,ie[0],ie[3],Z,-Z,0,0,0),(0,x.Rc)(E,0,E.length,ne,D,W),(0,w.RG)(P,u)(E,W,ne)}:(0,w.RG)(P,u);return this.applyTransform(T),this}}},6558:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>u});var o=a(9179),c=a(6522),O=a(4378),d=a(7910),w=a(6022),C=a(9609),x=a(2191),D=a(822),p=a(3578),g=a(8183),y=a(5545);class h extends o.Ay{constructor(T,E){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===E||Array.isArray(T[0])?this.setCoordinates(T,E):this.setFlatCoordinates(E,T)}appendCoordinate(T){(0,C.X$)(this.flatCoordinates,T),this.changed()}clone(){const T=new h(this.flatCoordinates.slice(),this.layout);return T.applyProperties(this),T}closestPointXY(T,E,W,ne){return ne<(0,O.Ld)(this.getExtent(),T,E)?ne:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,c.MD)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,c.n)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,T,E,W,ne))}forEachSegment(T){return(0,x.j)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,T)}getCoordinateAtM(T,E){return"XYM"!=this.layout&&"XYZM"!=this.layout?null:(0,p.gr)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,T,E=void 0!==E&&E)}getCoordinates(){return(0,D.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(T,E){return(0,p.SH)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,T,E,this.stride)}getLength(){return(0,y.k)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_??void 0),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(T){const E=[];return E.length=(0,w.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,T,E,0),new h(E,"XY")}getType(){return"LineString"}intersectsExtent(T){return(0,g.gp)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,T)}setCoordinates(T,E){this.setLayout(E,T,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,d.z2)(this.flatCoordinates,0,T,this.stride),this.changed()}}const u=h},8791:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>C});var o=a(9179),c=a(4378),O=a(7910),d=a(8092);class w extends o.Ay{constructor(D,p){super(),this.setCoordinates(D,p)}clone(){const D=new w(this.flatCoordinates.slice(),this.layout);return D.applyProperties(this),D}closestPointXY(D,p,g,y){const h=this.flatCoordinates,u=(0,d.hG)(D,p,h[0],h[1]);if(u{"use strict";a.d(Ie,{Ay:()=>ne,nD:()=>Z,VY:()=>ie});var o=a(9179),c=a(6522),O=a(4378),d=a(7910),w=a(6022),C=a(822),x=a(7356);class D extends o.Ay{constructor(_e,Ce){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===Ce||Array.isArray(_e[0])?this.setCoordinates(_e,Ce):this.setFlatCoordinates(Ce,_e)}clone(){return new D(this.flatCoordinates.slice(),this.layout)}closestPointXY(_e,Ce,Ae,ke){return ke<(0,O.Ld)(this.getExtent(),_e,Ce)?ke:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,c.MD)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,c.n)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,_e,Ce,Ae,ke))}getArea(){return(0,x.eN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return(0,C.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(_e){const Ce=[];return Ce.length=(0,w.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,_e,Ce,0),new D(Ce,"XY")}getType(){return"LinearRing"}intersectsExtent(_e){return!1}setCoordinates(_e,Ce){this.setLayout(Ce,_e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,d.z2)(this.flatCoordinates,0,_e,this.stride),this.changed()}}const p=D;var g=a(8791),y=a(9609),h=a(6603),u=a(8183),P=a(3939),T=a(1372),E=a(8092);class W extends o.Ay{constructor(_e,Ce,Ae){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==Ce&&Ae?(this.setFlatCoordinates(Ce,_e),this.ends_=Ae):this.setCoordinates(_e,Ce)}appendLinearRing(_e){this.flatCoordinates?(0,y.X$)(this.flatCoordinates,_e.getFlatCoordinates()):this.flatCoordinates=_e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const _e=new W(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return _e.applyProperties(this),_e}closestPointXY(_e,Ce,Ae,ke){return ke<(0,O.Ld)(this.getExtent(),_e,Ce)?ke:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,c.HX)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,c.oW)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,_e,Ce,Ae,ke))}containsXY(_e,Ce){return(0,T.zb)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,_e,Ce)}getArea(){return(0,x.PK)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(_e){let Ce;return void 0!==_e?(Ce=this.getOrientedFlatCoordinates().slice(),(0,P.ug)(Ce,0,this.ends_,this.stride,_e)):Ce=this.flatCoordinates,(0,C.cD)(Ce,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const _e=(0,O.q1)(this.getExtent());this.flatInteriorPoint_=(0,h.J)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,_e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new g.A(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(_e){return _e<0||this.ends_.length<=_e?null:new p(this.flatCoordinates.slice(0===_e?0:this.ends_[_e-1],this.ends_[_e]),this.layout)}getLinearRings(){const _e=this.layout,Ce=this.flatCoordinates,Ae=this.ends_,ke=[];let Ue=0;for(let ve=0,ye=Ae.length;ve{"use strict";a.d(Ie,{Ay:()=>p,dn:()=>x,v7:()=>D});var o=a(7469),c=a(8618),O=a(4378),d=a(7133);function x(g){let y;return"XY"==g?y=2:"XYZ"==g||"XYM"==g?y=3:"XYZM"==g&&(y=4),y}function D(g,y,h){const u=g.getFlatCoordinates();if(!u)return null;const P=g.getStride();return(0,d.Rc)(u,0,u.length,P,y,h)}const p=class w extends o.A{constructor(){super(),this.layout="XY",this.stride=2}computeExtent(y){return(0,O.Vy)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,y)}getCoordinates(){return(0,c.b0)()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(y){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),y<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&y<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const h=this.getSimplifiedGeometryInternal(y);return h.getFlatCoordinates().length{"use strict";function o(d,w,C,x){let D=0,p=d[C-x],g=d[C-x+1];for(;wO,PK:()=>c,eN:()=>o})},2052:(ut,Ie,a)=>{"use strict";a.d(Ie,{C:()=>c});var o=a(4378);function c(O,d,w,C){const x=[];let D=(0,o.S5)();for(let p=0,g=w.length;p{"use strict";a.d(Ie,{HX:()=>d,MD:()=>O,c:()=>w,n:()=>C,oW:()=>x,te:()=>D});var o=a(8092);function c(p,g,y,h,u,P,T){const E=p[g],W=p[g+1],ne=p[y]-E,de=p[y+1]-W;let ie;if(0===ne&&0===de)ie=g;else{const Z=((u-E)*ne+(P-W)*de)/(ne*ne+de*de);if(Z>1)ie=y;else{if(Z>0){for(let ae=0;aeu&&(u=ne),P=E,T=W}return u}function d(p,g,y,h,u){for(let P=0,T=y.length;P{"use strict";a.d(Ie,{Gd:()=>w,a_:()=>O,t7:()=>c,zb:()=>d});var o=a(4378);function c(C,x,D,p,g){return!(0,o.sB)(g,function(h){return!O(C,x,D,p,h[0],h[1])})}function O(C,x,D,p,g,y){let h=0,u=C[D-p],P=C[D-p+1];for(;xy&&(T-u)*(y-P)-(g-u)*(E-P)>0&&h++:E<=y&&(T-u)*(y-P)-(g-u)*(E-P)<0&&h--,u=T,P=E}return 0!==h}function d(C,x,D,p,g,y){if(0===D.length||!O(C,x,D[0],p,g,y))return!1;for(let h=1,u=D.length;h{"use strict";function o(w,C,x,D){for(let p=0,g=x.length;pO,_n:()=>o,d6:()=>d,z2:()=>c})},822:(ut,Ie,a)=>{"use strict";function o(d,w,C,x,D){D=void 0!==D?D:[];let p=0;for(let g=w;gO,cD:()=>c,n2:()=>o})},6603:(ut,Ie,a)=>{"use strict";a.d(Ie,{J:()=>O,p:()=>d});var o=a(9609),c=a(1372);function O(w,C,x,D,p,g,y){let h,u,P,T,E,W,ne;const de=p[g+1],ie=[];for(let Le=0,_e=x.length;Le<_e;++Le){const Ce=x[Le];for(T=w[Ce-D],W=w[Ce-D+1],h=C;hae&&(P=(T+E)/2,(0,c.zb)(w,C,x,D,P,de)&&(Z=P,ae=Le)),T=E}return isNaN(Z)&&(Z=p[g]),y?(y.push(Z,de,ae),y):[Z,de,ae]}function d(w,C,x,D,p){let g=[];for(let y=0,h=x.length;y{"use strict";a.d(Ie,{L8:()=>w,SH:()=>O,gr:()=>d});var o=a(9609),c=a(8092);function O(C,x,D,p,g,y,h){let u,P;const T=(D-x)/p;if(1===T)u=x;else if(2===T)u=x,P=g;else if(0!==T){let E=C[x],W=C[x+1],ne=0;const de=[0];for(let ae=x+p;ae1?h:2,y=y||new Array(h);for(let E=0;E>1;g{"use strict";a.d(Ie,{HT:()=>x,Wp:()=>D,fB:()=>w,gp:()=>d,sj:()=>C});var o=a(4378),c=a(2191),O=a(1372);function d(p,g,y,h,u){const P=(0,o.R8)((0,o.S5)(),p,g,y,h);return!!(0,o.HY)(u,P)&&(!!((0,o.ms)(u,P)||P[0]>=u[0]&&P[2]<=u[2]||P[1]>=u[1]&&P[3]<=u[3])||(0,c.j)(p,g,y,h,function(T,E){return(0,o.Mx)(u,T,E)}))}function w(p,g,y,h,u){for(let P=0,T=y.length;P{"use strict";function o(O,d,w,C){let x=O[d],D=O[d+1],p=0;for(let g=d+C;go})},3939:(ut,Ie,a)=>{"use strict";function o(D,p,g,y){for(;p0}function O(D,p,g,y,h){h=void 0!==h&&h;for(let u=0,P=g.length;ux,PA:()=>O,mb:()=>d,ug:()=>w,NK:()=>C})},2191:(ut,Ie,a)=>{"use strict";function o(c,O,d,w,C){let x;for(O+=w;Oo})},6022:(ut,Ie,a)=>{"use strict";a.d(Ie,{AL:()=>d,Hg:()=>p,P4:()=>O,n$:()=>x,sx:()=>g});var o=a(8092);function O(y,h,u,P,T,E,W){const ne=(u-h)/P;if(ne<3){for(;h0;){const ae=ie.pop(),Le=ie.pop();let _e=0;const Ce=y[Le],Ae=y[Le+1],ke=y[ae],Ue=y[ae+1];for(let ve=Le+P;ve_e&&(Z=ve,_e=z)}_e>T&&(de[(Z-h)/P]=1,Le+P0&&Ae>_e)&&(Ce<0&&ke0&&ke>Ce)?(ie=ae,Z=Le):(E[W++]=ie,E[W++]=Z,ne=ie,de=Z,ie=ae,Z=Le)}return E[W++]=ie,E[W++]=Z,W}function p(y,h,u,P,T,E,W,ne){for(let de=0,ie=u.length;de{"use strict";function o(w,C,x,D,p,g){g=g||[];let y=0;for(let h=C;ho,Tl:()=>d,e$:()=>c,hs:()=>O})},6656:(ut,Ie,a)=>{"use strict";a.d(Ie,{DT:()=>p,FT:()=>y,Wl:()=>D,XM:()=>g,_p:()=>c,cr:()=>x,ew:()=>C,j:()=>w,oF:()=>d});const o=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"",c=o.includes("firefox"),d=o.includes("safari")&&!o.includes("chrom")&&(o.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(o)),w=o.includes("webkit")&&!o.includes("edge"),C=o.includes("macintosh"),x=typeof devicePixelRatio<"u"?devicePixelRatio:1,D=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,p=typeof Image<"u"&&Image.prototype.decode,g="function"==typeof createImageBitmap,y=function(){let h=!1;try{const u=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("_",null,u),window.removeEventListener("_",null,u)}catch{}return h}()},9539:(ut,Ie,a)=>{"use strict";a.d(Ie,{Ay:()=>x,D2:()=>C,e4:()=>w});var o=a(4037),c=a(8222),O=a(1999);function w(D,p,g){const y=D.getCenterInternal();y&&D.animateInternal({duration:void 0!==g?g:250,easing:O.sn,center:D.getConstrainedCenter([y[0]+p[0],y[1]+p[1]])})}function C(D,p,g,y){const h=D.getZoom();if(void 0===h)return;const u=D.getConstrainedZoom(h+p),P=D.getResolutionForZoom(u);D.getAnimating()&&D.cancelAnimations(),D.animate({resolution:P,anchor:g,duration:void 0!==y?y:250,easing:O.vT})}const x=class d extends o.A{constructor(p){super(),p&&p.handleEvent&&(this.handleEvent=p.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(c.A.ACTIVE)}getMap(){return this.map_}handleEvent(p){return!0}setActive(p){this.set(c.A.ACTIVE,p)}setMap(p){this.map_=p}}},5493:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>z});var o=a(4786),c=a(6832),O=a(4888),d=a(8864),w=a(4958),C=a(2234),x=a(8791),D=a(3382),p=a(549),g=a(7345),y=a(6210),h=a(5862),u=a(3301),P=a(4378),T=a(1504),E=a(1043),W=a(9609),ne=a(3213),de=a(3036),ie=a(8618);const Le=[0,0,0,0],_e=[];class Ae extends O.Ay{constructor(L,q,J){super(L),this.features=q,this.mapBrowserEvent=J}}function Ue(te,L){return te.index-L.index}function ve(te,L,q){const J=L.geometry;if("Circle"===J.getType()){let K=J;if(1===L.index){const N=(0,de.Tf)();N&&(K=K.clone().transform(N,q));const V=(0,T.hG)(K.getCenter(),(0,de.Ad)(te,q)),I=Math.sqrt(V)-K.getRadius();return I*I}}const X=(0,de.Ad)(te,q);return _e[0]=(0,de.Ad)(L.segment[0],q),_e[1]=(0,de.Ad)(L.segment[1],q),(0,T.$x)(X,_e)}function ye(te,L,q){const J=L.geometry;if("Circle"===J.getType()&&1===L.index){let K=J;const N=(0,de.Tf)();return N&&(K=K.clone().transform(N,q)),(0,de.te)(K.getClosestPoint((0,de.Ad)(te,q)),q)}const X=(0,de.Ad)(te,q);return _e[0]=(0,de.Ad)(L.segment[0],q),_e[1]=(0,de.Ad)(L.segment[1],q),(0,de.te)((0,T.sG)(X,_e),q)}function Se(){const te=(0,E.mY)();return function(L,q){return te.Point}}const z=class ke extends D.A{constructor(L){let q;if(super(L),this.boundHandleFeatureChange_=this.handleFeatureChange_.bind(this),this.condition_=L.condition?L.condition:u.fs,this.defaultDeleteCondition_=function(J){return(0,u.Js)(J)&&(0,u.t5)(J)},this.deleteCondition_=L.deleteCondition?L.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=L.insertVertexCondition?L.insertVertexCondition:u.Gk,this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.featuresBeingModified_=null,this.rBush_=new p.A,this.pixelTolerance_=void 0!==L.pixelTolerance?L.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new y.A({source:new h.A({useSpatialIndex:!1,wrapX:!!L.wrapX}),style:L.style?L.style:Se(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_.bind(this),LineString:this.writeLineStringGeometry_.bind(this),LinearRing:this.writeLineStringGeometry_.bind(this),Polygon:this.writePolygonGeometry_.bind(this),MultiPoint:this.writeMultiPointGeometry_.bind(this),MultiLineString:this.writeMultiLineStringGeometry_.bind(this),MultiPolygon:this.writeMultiPolygonGeometry_.bind(this),Circle:this.writeCircleGeometry_.bind(this),GeometryCollection:this.writeGeometryCollectionGeometry_.bind(this)},this.source_=null,this.hitDetection_=null,L.features?q=L.features:L.source&&(this.source_=L.source,q=new o.A(this.source_.getFeatures()),this.source_.addEventListener(g.A.ADDFEATURE,this.handleSourceAdd_.bind(this)),this.source_.addEventListener(g.A.REMOVEFEATURE,this.handleSourceRemove_.bind(this))),!q)throw new Error("The modify interaction requires features, a source or a layer");L.hitDetection&&(this.hitDetection_=L.hitDetection),this.features_=q,this.features_.forEach(this.addFeature_.bind(this)),this.features_.addEventListener(c.A.ADD,this.handleFeatureAdd_.bind(this)),this.features_.addEventListener(c.A.REMOVE,this.handleFeatureRemove_.bind(this)),this.lastPointerEvent_=null,this.delta_=[0,0],this.snapToPointer_=void 0===L.snapToPointer?!this.hitDetection_:L.snapToPointer}addFeature_(L){const q=L.getGeometry();if(q){const X=this.SEGMENT_WRITERS_[q.getType()];X&&X(L,q)}const J=this.getMap();J&&J.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,J),L.addEventListener(d.A.CHANGE,this.boundHandleFeatureChange_)}willModifyFeatures_(L,q){if(!this.featuresBeingModified_){this.featuresBeingModified_=new o.A;const J=this.featuresBeingModified_.getArray();for(let X=0,K=q.length;X=0;--X){const K=J[X];for(let N=this.dragSegments_.length-1;N>=0;--N)this.dragSegments_[N][0]===K&&this.dragSegments_.splice(N,1);q.remove(K)}}setActive(L){this.vertexFeature_&&!L&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),super.setActive(L)}setMap(L){this.overlay_.setMap(L),super.setMap(L)}getOverlay(){return this.overlay_}handleSourceAdd_(L){L.feature&&this.features_.push(L.feature)}handleSourceRemove_(L){L.feature&&this.features_.remove(L.feature)}handleFeatureAdd_(L){this.addFeature_(L.element)}handleFeatureChange_(L){if(!this.changingFeature_){const q=L.target;this.removeFeature_(q),this.addFeature_(q)}}handleFeatureRemove_(L){this.removeFeature_(L.element)}writePointGeometry_(L,q){const J=q.getCoordinates(),X={feature:L,geometry:q,segment:[J,J]};this.rBush_.insert(q.getExtent(),X)}writeMultiPointGeometry_(L,q){const J=q.getCoordinates();for(let X=0,K=J.length;X=0;--j)this.insertVertex_(K[j],N)}return!!this.vertexFeature_}handleUpEvent(L){for(let q=this.dragSegments_.length-1;q>=0;--q){const J=this.dragSegments_[q][0],X=J.geometry;if("Circle"===X.getType()){const K=X.getCenter(),N=J.featureSegments[0],V=J.featureSegments[1];N.segment[0]=K,N.segment[1]=K,V.segment[0]=K,V.segment[1]=K,this.rBush_.update((0,P.dP)(K),N);let I=X;const M=(0,de.Tf)();if(M){const j=L.map.getView().getProjection();I=I.clone().transform(M,j),I=(0,ne.nD)(I).transform(j,M)}this.rBush_.update(I.getExtent(),V)}else this.rBush_.update((0,P.Tr)(J.segment),J)}return this.featuresBeingModified_&&(this.dispatchEvent(new Ae("modifyend",this.featuresBeingModified_,L)),this.featuresBeingModified_=null),!1}handlePointerMove_(L){this.lastPixel_=L.pixel,this.handlePointerAtPixel_(L.pixel,L.map,L.coordinate)}handlePointerAtPixel_(L,q,J){const X=J||q.getCoordinateFromPixel(L),K=q.getView().getProjection(),N=function(M,j){return ve(X,M,K)-ve(X,j,K)};let V,I;if(this.hitDetection_&&q.forEachFeatureAtPixel(L,(j,ge,Me)=>{Me&&"Point"===Me.getType()&&(Me=new x.A((0,de.te)(Me.getCoordinates(),K)));const oe=Me||j.getGeometry();if(j instanceof w.A&&this.features_.getArray().includes(j)){I=oe;const R=j.getGeometry().getFlatCoordinates().slice(0,2);V=[{feature:j,geometry:I,segment:[R,R]}]}return!0},{layerFilter:"object"==typeof this.hitDetection_?j=>j===this.hitDetection_:void 0}),!V){const M=(0,de.SD)((0,P.dP)(X,Le),K),j=q.getView().getResolution()*this.pixelTolerance_,ge=(0,de.JR)((0,P.r)(M,j,Le),K);V=this.rBush_.getInExtent(ge)}if(V&&V.length>0){const M=V.sort(N)[0],j=M.segment;let ge=ye(X,M,K);const Me=q.getPixelFromCoordinate(ge);let oe=(0,T.Io)(L,Me);if(I||oe<=this.pixelTolerance_){const R={};if(R[(0,ie.v6)(j)]=!0,this.snapToPointer_||(this.delta_[0]=ge[0]-X[0],this.delta_[1]=ge[1]-X[1]),"Circle"===M.geometry.getType()&&1===M.index)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(ge,[M.feature],[M.geometry]);else{const se=q.getPixelFromCoordinate(j[0]),Ee=q.getPixelFromCoordinate(j[1]),tt=(0,T.hG)(Me,se),Y=(0,T.hG)(Me,Ee);oe=Math.sqrt(Math.min(tt,Y)),this.snappedToVertex_=oe<=this.pixelTolerance_,this.snappedToVertex_&&(ge=tt>Y?j[1]:j[0]),this.createOrUpdateVertexFeature_(ge,[M.feature],[M.geometry]);const Re={};Re[(0,ie.v6)(M.geometry)]=!0;for(let De=1,nt=V.length;De=0;--I)N=L[I],oe=N[0],R=(0,ie.v6)(oe.feature),oe.depth&&(R+="-"+oe.depth.join("-")),R in q||(q[R]={}),0===N[1]?(q[R].right=oe,q[R].index=oe.index):1==N[1]&&(q[R].left=oe,q[R].index=oe.index+1);for(R in q){switch(Me=q[R].right,j=q[R].left,M=q[R].index,ge=M-1,oe=void 0!==j?j:Me,ge<0&&(ge=0),V=oe.geometry,K=V.getCoordinates(),X=K,J=!1,V.getType()){case"MultiLineString":K[oe.depth[0]].length>2&&(K[oe.depth[0]].splice(M,1),J=!0);break;case"LineString":K.length>2&&(K.splice(M,1),J=!0);break;case"MultiPolygon":X=X[oe.depth[1]];case"Polygon":X=X[oe.depth[0]],X.length>4&&(M==X.length-1&&(M=0),X.splice(M,1),J=!0,0===M&&(X.pop(),X.push(X[0]),ge=X.length-1))}if(J){this.setGeometryCoordinates_(V,K);const se=[];if(void 0!==j&&(this.rBush_.remove(j),se.push(j.segment[0])),void 0!==Me&&(this.rBush_.remove(Me),se.push(Me.segment[1])),void 0!==j&&void 0!==Me){const Ee={depth:oe.depth,feature:oe.feature,geometry:oe.geometry,index:ge,segment:se};this.rBush_.insert((0,P.Tr)(Ee.segment),Ee)}this.updateSegmentIndices_(V,M,oe.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),L.length=0}}return J}setGeometryCoordinates_(L,q){this.changingFeature_=!0,L.setCoordinates(q),this.changingFeature_=!1}updateSegmentIndices_(L,q,J,X){this.rBush_.forEachInExtent(L.getExtent(),function(K){K.geometry===L&&(void 0===J||void 0===K.depth||(0,W.aI)(K.depth,J))&&K.index>q&&(K.index+=X)})}}},3382:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>w,v:()=>d});var o=a(9539),c=a(2234);function d(C){const x=C.length;let D=0,p=0;for(let g=0;g0}}else if(x.type==c.A.POINTERDOWN){const p=this.handleDownEvent(x);this.handlingDownUpSequence=p,D=this.stopDown(p)}else x.type==c.A.POINTERMOVE&&this.handleMoveEvent(x);return!D}handleMoveEvent(x){}handleUpEvent(x){return!1}stopDown(x){return x}updateTrackedPointers_(x){x.activePointers&&(this.targetPointers=x.activePointers)}}},8222:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>o});const o={ACTIVE:"active"}},8945:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>x});var o=a(4037),c=a(5157),O=a(8618),d=a(9791),w=a(8092);const x=class C extends o.A{constructor(p){super(),this.background_=p.background;const g=Object.assign({},p);"object"==typeof p.properties&&(delete g.properties,Object.assign(g,p.properties)),g[c.A.OPACITY]=void 0!==p.opacity?p.opacity:1,(0,d.v)("number"==typeof g[c.A.OPACITY],"Layer opacity must be a number"),g[c.A.VISIBLE]=void 0===p.visible||p.visible,g[c.A.Z_INDEX]=p.zIndex,g[c.A.MAX_RESOLUTION]=void 0!==p.maxResolution?p.maxResolution:1/0,g[c.A.MIN_RESOLUTION]=void 0!==p.minResolution?p.minResolution:0,g[c.A.MIN_ZOOM]=void 0!==p.minZoom?p.minZoom:-1/0,g[c.A.MAX_ZOOM]=void 0!==p.maxZoom?p.maxZoom:1/0,this.className_=void 0!==g.className?g.className:"ol-layer",delete g.className,this.setProperties(g),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(p){const g=this.state_||{layer:this,managed:void 0===p||p},y=this.getZIndex();return g.opacity=(0,w.qE)(Math.round(100*this.getOpacity())/100,0,1),g.visible=this.getVisible(),g.extent=this.getExtent(),g.zIndex=void 0!==y||g.managed?y:1/0,g.maxResolution=this.getMaxResolution(),g.minResolution=Math.max(this.getMinResolution(),0),g.minZoom=this.getMinZoom(),g.maxZoom=this.getMaxZoom(),this.state_=g,g}getLayersArray(p){return(0,O.b0)()}getLayerStatesArray(p){return(0,O.b0)()}getExtent(){return this.get(c.A.EXTENT)}getMaxResolution(){return this.get(c.A.MAX_RESOLUTION)}getMinResolution(){return this.get(c.A.MIN_RESOLUTION)}getMinZoom(){return this.get(c.A.MIN_ZOOM)}getMaxZoom(){return this.get(c.A.MAX_ZOOM)}getOpacity(){return this.get(c.A.OPACITY)}getSourceState(){return(0,O.b0)()}getVisible(){return this.get(c.A.VISIBLE)}getZIndex(){return this.get(c.A.Z_INDEX)}setBackground(p){this.background_=p,this.changed()}setExtent(p){this.set(c.A.EXTENT,p)}setMaxResolution(p){this.set(c.A.MAX_RESOLUTION,p)}setMinResolution(p){this.set(c.A.MIN_RESOLUTION,p)}setMaxZoom(p){this.set(c.A.MAX_ZOOM,p)}setMinZoom(p){this.set(c.A.MIN_ZOOM,p)}setOpacity(p){(0,d.v)("number"==typeof p,"Layer opacity must be a number"),this.set(c.A.OPACITY,p)}setVisible(p){this.set(c.A.VISIBLE,p)}setZIndex(p){this.set(c.A.Z_INDEX,p)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}},2512:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>ft});var o=a(6523),c=a(9995),O=a(1043),d=a(2872),w=a(5637),C=a(3117),x=a(1633),D=a(4688),p=a(8443);class y{constructor(Q){this.font_=(Q=Q||{}).font,this.rotation_=Q.rotation,this.rotateWithView_=Q.rotateWithView,this.scale_=Q.scale,this.scaleArray_=(0,p.xq)(void 0!==Q.scale?Q.scale:1),this.text_=Q.text,this.textAlign_=Q.textAlign,this.justify_=Q.justify,this.repeat_=Q.repeat,this.textBaseline_=Q.textBaseline,this.fill_=void 0!==Q.fill?Q.fill:new w.A({color:"#333"}),this.maxAngle_=void 0!==Q.maxAngle?Q.maxAngle:Math.PI/4,this.placement_=void 0!==Q.placement?Q.placement:"point",this.overflow_=!!Q.overflow,this.stroke_=void 0!==Q.stroke?Q.stroke:null,this.offsetX_=void 0!==Q.offsetX?Q.offsetX:0,this.offsetY_=void 0!==Q.offsetY?Q.offsetY:0,this.backgroundFill_=Q.backgroundFill?Q.backgroundFill:null,this.backgroundStroke_=Q.backgroundStroke?Q.backgroundStroke:null,this.padding_=void 0===Q.padding?null:Q.padding,this.declutterMode_=Q.declutterMode}clone(){const Q=this.getScale();return new y({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(Q)?Q.slice():Q,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0,declutterMode:this.getDeclutterMode()})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}getDeclutterMode(){return this.declutterMode_}setOverflow(Q){this.overflow_=Q}setFont(Q){this.font_=Q}setMaxAngle(Q){this.maxAngle_=Q}setOffsetX(Q){this.offsetX_=Q}setOffsetY(Q){this.offsetY_=Q}setPlacement(Q){this.placement_=Q}setRepeat(Q){this.repeat_=Q}setRotateWithView(Q){this.rotateWithView_=Q}setFill(Q){this.fill_=Q}setRotation(Q){this.rotation_=Q}setScale(Q){this.scale_=Q,this.scaleArray_=(0,p.xq)(void 0!==Q?Q:1)}setStroke(Q){this.stroke_=Q}setText(Q){this.text_=Q}setTextAlign(Q){this.textAlign_=Q}setJustify(Q){this.justify_=Q}setTextBaseline(Q){this.textBaseline_=Q}setBackgroundFill(Q){this.backgroundFill_=Q}setBackgroundStroke(Q){this.backgroundStroke_=Q}setPadding(Q){this.padding_=Q}}const h=y;var u=a(2046),P=a(642);function E(le,Q,Be){const Je=(0,u.qg)(le,Be);if(!(0,u.ho)(Q,Je.type)){const qe=(0,u.go)(Q),ot=(0,u.go)(Je.type);throw new Error(`Expected expression to be of type ${qe}, got ${ot}`)}return W(Je,Be)}function W(le,Q){if(le instanceof u._D){if(le.type===u.mE&&"string"==typeof le.value){const Je=(0,P.sH)(le.value);return function(){return Je}}return function(){return le.value}}const Be=le.operator;switch(Be){case u.ZD.Number:case u.ZD.String:case u.ZD.Coalesce:return function ne(le,Q){const Be=le.operator,Je=le.args.length,qe=new Array(Je);for(let ot=0;ot{for(let It=0;It{for(let It=0;Itqe.properties[Je];case u.ZD.Var:return qe=>qe.variables[Je];default:throw new Error(`Unsupported accessor operator ${le.operator}`)}}(le);case u.ZD.Id:return Je=>Je.featureId;case u.ZD.GeometryType:return Je=>Je.geometryType;case u.ZD.Concat:{const Je=le.args.map(qe=>W(qe,Q));return qe=>"".concat(...Je.map(ot=>ot(qe).toString()))}case u.ZD.Resolution:return Je=>Je.resolution;case u.ZD.Any:case u.ZD.All:case u.ZD.Not:return function Z(le,Q){const Be=le.operator,Je=le.args.length,qe=new Array(Je);for(let ot=0;ot{for(let It=0;It{for(let It=0;It!qe[0](ot);default:throw new Error(`Unsupported logical operator ${Be}`)}}(le,Q);case u.ZD.Equal:case u.ZD.NotEqual:case u.ZD.LessThan:case u.ZD.LessThanOrEqualTo:case u.ZD.GreaterThan:case u.ZD.GreaterThanOrEqualTo:return function ie(le,Q){const Be=le.operator,Je=W(le.args[0],Q),qe=W(le.args[1],Q);switch(Be){case u.ZD.Equal:return ot=>Je(ot)===qe(ot);case u.ZD.NotEqual:return ot=>Je(ot)!==qe(ot);case u.ZD.LessThan:return ot=>Je(ot)Je(ot)<=qe(ot);case u.ZD.GreaterThan:return ot=>Je(ot)>qe(ot);case u.ZD.GreaterThanOrEqualTo:return ot=>Je(ot)>=qe(ot);default:throw new Error(`Unsupported comparison operator ${Be}`)}}(le,Q);case u.ZD.Multiply:case u.ZD.Divide:case u.ZD.Add:case u.ZD.Subtract:case u.ZD.Clamp:case u.ZD.Mod:case u.ZD.Pow:case u.ZD.Abs:case u.ZD.Floor:case u.ZD.Ceil:case u.ZD.Round:case u.ZD.Sin:case u.ZD.Cos:case u.ZD.Atan:case u.ZD.Sqrt:return function ae(le,Q){const Be=le.operator,Je=le.args.length,qe=new Array(Je);for(let ot=0;ot{let It=1;for(let Ft=0;Ftqe[0](ot)/qe[1](ot);case u.ZD.Add:return ot=>{let It=0;for(let Ft=0;Ftqe[0](ot)-qe[1](ot);case u.ZD.Clamp:return ot=>{const It=qe[0](ot),Ft=qe[1](ot);if(Itkt?kt:It};case u.ZD.Mod:return ot=>qe[0](ot)%qe[1](ot);case u.ZD.Pow:return ot=>Math.pow(qe[0](ot),qe[1](ot));case u.ZD.Abs:return ot=>Math.abs(qe[0](ot));case u.ZD.Floor:return ot=>Math.floor(qe[0](ot));case u.ZD.Ceil:return ot=>Math.ceil(qe[0](ot));case u.ZD.Round:return ot=>Math.round(qe[0](ot));case u.ZD.Sin:return ot=>Math.sin(qe[0](ot));case u.ZD.Cos:return ot=>Math.cos(qe[0](ot));case u.ZD.Atan:return 2===Je?ot=>Math.atan2(qe[0](ot),qe[1](ot)):ot=>Math.atan(qe[0](ot));case u.ZD.Sqrt:return ot=>Math.sqrt(qe[0](ot));default:throw new Error(`Unsupported numeric operator ${Be}`)}}(le,Q);case u.ZD.Case:return function Le(le,Q){const Be=le.args.length,Je=new Array(Be);for(let qe=0;qe{for(let ot=0;ot{const ot=Je[0](qe);for(let It=1;It{const ot=Je[0](qe),It=Je[1](qe);let Ft,kt;for(let Qt=2;Qt=It)return 2===Qt?nn:$e?ke(ot,It,Ft,kt,rn,nn):Ae(ot,It,Ft,kt,rn,nn);Ft=rn,kt=nn}return kt}}(le,Q);default:throw new Error(`Unsupported operator ${Be}`)}}function Ae(le,Q,Be,Je,qe,ot){const It=qe-Be;if(0===It)return Je;const Ft=Q-Be;return Je+(1===le?Ft/It:(Math.pow(le,Ft)-1)/(Math.pow(le,It)-1))*(ot-Je)}function ke(le,Q,Be,Je,qe,ot){if(qe-Be==0)return Je;const Ft=(0,P.eE)(Je),kt=(0,P.eE)(ot);let Qt=kt[2]-Ft[2];Qt>180?Qt-=360:Qt<-180&&(Qt+=360);const rn=[Ae(le,Q,Be,Ft[0],qe,kt[0]),Ae(le,Q,Be,Ft[1],qe,kt[1]),Ft[2]+Ae(le,Q,Be,0,qe,Qt),Ae(le,Q,Be,Je[3],qe,ot[3])];return(0,P.S8)((0,P.cD)(rn))}var Ue=a(973);function ve(le){return!0}function Se(le){const Q=(0,u.SR)(),Be=le.length,Je=new Array(Be);for(let It=0;It4)throw new Error(`Expected a color with 3 or 4 values for ${Q}`);return Be}function ce(le,Q){const Be=on(le,Q);if(2!==Be.length)throw new Error(`Expected an array of two numbers for ${Q}`);return Be}const ft=class be extends o.A{constructor(Q){Q=Q||{};const Be=Object.assign({},Q);delete Be.style,delete Be.renderBuffer,delete Be.updateWhileAnimating,delete Be.updateWhileInteracting,super(Be),this.declutter_=Q.declutter?String(Q.declutter):void 0,this.renderBuffer_=void 0!==Q.renderBuffer?Q.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(Q.style),this.updateWhileAnimating_=void 0!==Q.updateWhileAnimating&&Q.updateWhileAnimating,this.updateWhileInteracting_=void 0!==Q.updateWhileInteracting&&Q.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(Q){return super.getFeatures(Q)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get("renderOrder")}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(Q,Be){const Je=this.getDeclutter();Je in Q.declutter||(Q.declutter[Je]=new c(9)),this.getRenderer().renderDeclutter(Q,Be)}setRenderOrder(Q){this.set("renderOrder",Q)}setStyle(Q){this.style_=function Ke(le){if(void 0===le)return O.d1;if(!le)return null;if("function"==typeof le||le instanceof O.Ay)return le;if(!Array.isArray(le))return Se([le]);if(0===le.length)return[];const Q=le.length,Be=le[0];if(Be instanceof O.Ay){const qe=new Array(Q);for(let ot=0;ot{"use strict";a.d(Ie,{A:()=>y,l:()=>g});var o=a(8945),c=a(8864),O=a(5157),d=a(8933),w=a(6601),C=a(9791),x=a(4378),D=a(7443);function g(h,u){if(!h.visible)return!1;const P=u.resolution;if(P=h.maxResolution)return!1;const T=u.zoom;return T>h.minZoom&&T<=h.maxZoom}const y=class p extends o.A{constructor(u){const P=Object.assign({},u);delete P.source,super(P),this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,u.render&&(this.render=u.render),u.map&&this.setMap(u.map),this.addChangeListener(O.A.SOURCE,this.handleSourcePropertyChange_),this.setSource(u.source?u.source:null)}getLayersArray(u){return(u=u||[]).push(this),u}getLayerStatesArray(u){return(u=u||[]).push(this.getLayerState()),u}getSource(){return this.get(O.A.SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){const u=this.getSource();return u?u.getState():"undefined"}handleSourceChange_(){this.changed(),!this.sourceReady_&&"ready"===this.getSource().getState()&&(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&((0,D.JH)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const u=this.getSource();u&&(this.sourceChangeKey_=(0,D.KT)(u,c.A.CHANGE,this.handleSourceChange_,this),"ready"===u.getState()&&(this.sourceReady_=!0,setTimeout(()=>{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(u){return this.renderer_?this.renderer_.getFeatures(u):Promise.resolve([])}getData(u){return this.renderer_&&this.rendered?this.renderer_.getData(u):null}isVisible(u){let P;const T=this.getMapInternal();let E;!u&&T&&(u=T.getView()),P=u instanceof w.Ay?{viewState:u.getState(),extent:u.calculateExtent()}:u,!P.layerStatesArray&&T&&(P.layerStatesArray=T.getLayerGroup().getLayerStatesArray()),E=P.layerStatesArray?P.layerStatesArray.find(ne=>ne.layer===this):this.getLayerState();const W=this.getExtent();return g(E,P.viewState)&&(!W||(0,x.HY)(W,P.extent))}getAttributions(u){if(!this.isVisible(u))return[];let P;const T=this.getSource();if(T&&(P=T.getAttributions()),!P)return[];let W=P(u instanceof w.Ay?u.getViewStateAndExtent():u);return Array.isArray(W)||(W=[W]),W}render(u,P){const T=this.getRenderer();return T.prepareFrame(u)?(this.rendered=!0,T.renderFrame(u,P)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(u,P){}renderDeferred(u){const P=this.getRenderer();P&&P.renderDeferred(u)}setMapInternal(u){u||this.unrender(),this.set(O.A.MAP,u)}getMapInternal(){return this.get(O.A.MAP)}setMap(u){this.mapPrecomposeKey_&&((0,D.JH)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),u||this.changed(),this.mapRenderKey_&&((0,D.JH)(this.mapRenderKey_),this.mapRenderKey_=null),u&&(this.mapPrecomposeKey_=(0,D.KT)(u,d.A.PRECOMPOSE,function(P){const E=P.frameState.layerStatesArray,W=this.getLayerState(!1);(0,C.v)(!E.some(function(ne){return ne.layer===W.layer}),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),E.push(W)},this),this.mapRenderKey_=(0,D.KT)(this,c.A.CHANGE,u.render,u),this.changed())}setSource(u){this.set(O.A.SOURCE,u)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}},5157:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>o});const o={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},6210:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>bt});var o=a(2512);const c={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},O=[c.FILL],d=[c.STROKE],w=[c.BEGIN_PATH],C=[c.CLOSE_PATH],x=c;var D=a(5479);const g=class p{drawCustom(b,k,A,H,xe){}drawGeometry(b){}setStyle(b){}drawCircle(b,k,A){}drawFeature(b,k,A){}drawGeometryCollection(b,k,A){}drawLineString(b,k,A){}drawMultiLineString(b,k,A){}drawMultiPoint(b,k,A){}drawMultiPolygon(b,k,A){}drawPoint(b,k,A){}drawPolygon(b,k,A){}drawText(b,k,A){}setFillStrokeStyle(b,k){}setImageStyle(b,k){}setTextStyle(b,k){}};var y=a(8896),h=a(4378),u=a(8045),P=a(9609),T=a(822);const W=class E extends g{constructor(b,k,A,H){super(),this.tolerance=b,this.maxExtent=k,this.pixelRatio=H,this.maxLineWidth=0,this.resolution=A,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.tmpCoordinate_=[],this.hitDetectionInstructions=[],this.state={}}applyPixelRatio(b){const k=this.pixelRatio;return 1==k?b:b.map(function(A){return A*k})}appendFlatPointCoordinates(b,k){const A=this.getBufferedMaxExtent(),H=this.tmpCoordinate_,xe=this.coordinates;let Oe=xe.length;for(let je=0,Ze=b.length;jeZe&&(this.instructions.push([x.CUSTOM,Ze,_t,b,A,T.n2,xe]),this.hitDetectionInstructions.push([x.CUSTOM,Ze,_t,b,H||A,T.n2,xe]));break;case"Point":dt=b.getFlatCoordinates(),this.coordinates.push(dt[0],dt[1]),_t=this.coordinates.length,this.instructions.push([x.CUSTOM,Ze,_t,b,A,void 0,xe]),this.hitDetectionInstructions.push([x.CUSTOM,Ze,_t,b,H||A,void 0,xe])}this.endGeometry(k)}beginGeometry(b,k,A){this.beginGeometryInstruction1_=[x.BEGIN_GEOMETRY,k,0,b,A],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[x.BEGIN_GEOMETRY,k,0,b,A],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const b=this.hitDetectionInstructions;let k;b.reverse();const A=b.length;let H,xe,Oe=-1;for(k=0;kthis.maxLineWidth&&(this.maxLineWidth=A.lineWidth,this.bufferedMaxExtent_=null)}else A.strokeStyle=void 0,A.lineCap=void 0,A.lineDash=null,A.lineDashOffset=void 0,A.lineJoin=void 0,A.lineWidth=void 0,A.miterLimit=void 0}createFill(b){const k=b.fillStyle,A=[x.SET_FILL_STYLE,k];return"string"!=typeof k&&A.push(b.fillPatternScale),A}applyStroke(b){this.instructions.push(this.createStroke(b))}createStroke(b){return[x.SET_STROKE_STYLE,b.strokeStyle,b.lineWidth*this.pixelRatio,b.lineCap,b.lineJoin,b.miterLimit,this.applyPixelRatio(b.lineDash),b.lineDashOffset*this.pixelRatio]}updateFillStyle(b,k){const A=b.fillStyle;("string"!=typeof A||b.currentFillStyle!=A)&&(void 0!==A&&this.instructions.push(k.call(this,b)),b.currentFillStyle=A)}updateStrokeStyle(b,k){const A=b.strokeStyle,H=b.lineCap,xe=b.lineDash,Oe=b.lineDashOffset,je=b.lineJoin,Ze=b.lineWidth,dt=b.miterLimit;(b.currentStrokeStyle!=A||b.currentLineCap!=H||xe!=b.currentLineDash&&!(0,P.aI)(b.currentLineDash,xe)||b.currentLineDashOffset!=Oe||b.currentLineJoin!=je||b.currentLineWidth!=Ze||b.currentMiterLimit!=dt)&&(void 0!==A&&k.call(this,b),b.currentStrokeStyle=A,b.currentLineCap=H,b.currentLineDash=xe,b.currentLineDashOffset=Oe,b.currentLineJoin=je,b.currentLineWidth=Ze,b.currentMiterLimit=dt)}endGeometry(b){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const k=[x.END_GEOMETRY,b];this.instructions.push(k),this.hitDetectionInstructions.push(k)}getBufferedMaxExtent(){return!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,h.o8)(this.maxExtent),this.maxLineWidth>0)&&(0,h.r)(this.bufferedMaxExtent_,this.resolution*(this.maxLineWidth+1)/2,this.bufferedMaxExtent_),this.bufferedMaxExtent_}};var ae=a(6022);const _e=class Le extends W{constructor(b,k,A,H){super(b,k,A,H)}drawFlatCoordinatess_(b,k,A,H){const xe=this.state,Oe=void 0!==xe.fillStyle,je=void 0!==xe.strokeStyle,Ze=A.length;this.instructions.push(w),this.hitDetectionInstructions.push(w);for(let dt=0;dt=ct){const Bt=(ct-je+St)/St,Tt=(0,Ae.Cc)(dt,Ct,Bt),Gt=(0,Ae.Cc)(_t,At,Bt);Ze.push(Tt,Gt),xe.push(Ze),Ze=[Tt,Gt],je==ct&&(Oe+=H),je=0}else if(je0&&xe.push(Ze),xe}function Ue(ct,b,k,A,H){let _t,Ct,At,St,Bt,Tt,Gt,zt,Jt,en,xe=k,Oe=k,je=0,Ze=0,dt=k;for(Ct=k;Ctct&&(Ze>je&&(je=Ze,xe=dt,Oe=Ct),Ze=0,dt=Ct-H)),At=St,Gt=Jt,zt=en),Bt=dn,Tt=un}return Ze+=St,Ze>je?[dt,Ct]:[xe,Oe]}const ve={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},z={Circle:_e,Default:W,Image:class ne extends W{constructor(b,k,A,H){super(b,k,A,H),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(b,k,A){if(!this.image_||this.maxExtent&&!(0,h.Ym)(this.maxExtent,b.getFlatCoordinates()))return;this.beginGeometry(b,k,A);const H=b.getFlatCoordinates(),xe=b.getStride(),Oe=this.coordinates.length,je=this.appendFlatPointCoordinates(H,xe);this.instructions.push([x.DRAW_IMAGE,Oe,je,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([x.DRAW_IMAGE,Oe,je,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(k)}drawMultiPoint(b,k,A){if(!this.image_)return;this.beginGeometry(b,k,A);const H=b.getFlatCoordinates(),xe=[];for(let Ze=0,dt=H.length;Ze{const un=je[2*(Jt+dn)]===_t[dn*Ct]&&je[2*(Jt+dn)+1]===_t[dn*Ct+1];return un||--Jt,un})}this.saveTextStates_(),(Oe.backgroundFill||Oe.backgroundStroke)&&(this.setFillStrokeStyle(Oe.backgroundFill,Oe.backgroundStroke),Oe.backgroundFill&&this.updateFillStyle(this.state,this.createFill),Oe.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(b,k,A);let Bt=Oe.padding;if(Bt!=u.Tq&&(Oe.scale[0]<0||Oe.scale[1]<0)){let Jt=Oe.padding[0],en=Oe.padding[1],dn=Oe.padding[2],un=Oe.padding[3];Oe.scale[0]<0&&(en=-en,un=-un),Oe.scale[1]<0&&(Jt=-Jt,dn=-dn),Bt=[Jt,en,dn,un]}const Tt=this.pixelRatio;this.instructions.push([x.DRAW_IMAGE,Ze,St,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterMode_,this.declutterImageWithText_,Bt==u.Tq?u.Tq:Bt.map(function(Jt){return Jt*Tt}),!!Oe.backgroundFill,!!Oe.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,At]);const Gt=1/Tt,zt=this.state.fillStyle;Oe.backgroundFill&&(this.state.fillStyle=u.qY,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([x.DRAW_IMAGE,Ze,St,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[Gt,Gt],NaN,this.declutterMode_,this.declutterImageWithText_,Bt,!!Oe.backgroundFill,!!Oe.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?u.qY:this.fillKey_,this.textOffsetX_,this.textOffsetY_,At]),Oe.backgroundFill&&(this.state.fillStyle=zt,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(k)}else{if(!(0,h.HY)(this.maxExtent,b.getExtent()))return;let At;if(_t=b.getFlatCoordinates(),"LineString"==dt)At=[_t.length];else if("MultiLineString"==dt)At=b.getEnds();else if("Polygon"==dt)At=b.getEnds().slice(0,1);else if("MultiPolygon"==dt){const Gt=b.getEndss();At=[];for(let zt=0,Jt=Gt.length;ztGe[2]}else qt=dn>_n;const gn=Math.PI,In=[],Ve=tn+A===b;let ze;if(Gt=0,zt=mn,At=ct[b=tn],St=ct[b+1],Ve)return Jt(),ze=Math.atan2(St-Tt,At-Bt),qt&&(ze+=ze>0?-gn:gn),In[0]=[(_n+dn)/2,(Mn+un)/2,(yn-xe)/2,ze,H],In;for(let Ge=0,gt=(H=H.replace(/\n/g," ")).length;Ge0?-gn:gn),void 0!==ze){let $t=wt-ze;if($t+=$t>gn?-2*gn:$t<-gn?2*gn:0,Math.abs($t)>Oe)return null}ze=wt;const Wt=Ge;let Ht=0;for(;Ge0&&ct.push("\n",""),ct.push(b,""),ct}const Y=class tt{constructor(b,k,A,H,xe){this.overlaps=A,this.pixelRatio=k,this.resolution=b,this.instructions=H.instructions,this.coordinates=H.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,X.vt)(),this.hitDetectionInstructions=H.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=H.fillStates||{},this.strokeStates=H.strokeStates||{},this.textStates=H.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=xe?new J.A:null}getZIndexContext(){return this.zIndexContext_}createLabel(b,k,A,H){const xe=b+k+A+H;if(this.labels_[xe])return this.labels_[xe];const Oe=H?this.strokeStates[H]:null,je=A?this.fillStates[A]:null,Ze=this.textStates[k],dt=this.pixelRatio,_t=[Ze.scale[0]*dt,Ze.scale[1]*dt],Ct=Array.isArray(b),At=Ze.justify?ve[Ze.justify]:se(Array.isArray(b)?b[0]:b,Ze.textAlign||u.MY),St=H&&Oe.lineWidth?Oe.lineWidth:0,Bt=Ct?b:b.split("\n").reduce(Ee,[]),{width:Tt,height:Gt,widths:zt,heights:Jt,lineWidths:en}=(0,u.jT)(Ze,Bt),dn=Tt+St,un=[],tn=(dn+2)*_t[0],mn=(Gt+St)*_t[1],yn={width:tn<0?Math.floor(tn):Math.ceil(tn),height:mn<0?Math.floor(mn):Math.ceil(mn),contextInstructions:un};(1!=_t[0]||1!=_t[1])&&un.push("scale",_t),H&&(un.push("strokeStyle",Oe.strokeStyle),un.push("lineWidth",St),un.push("lineCap",Oe.lineCap),un.push("lineJoin",Oe.lineJoin),un.push("miterLimit",Oe.miterLimit),un.push("setLineDash",[Oe.lineDash]),un.push("lineDashOffset",Oe.lineDashOffset)),A&&un.push("fillStyle",je.fillStyle),un.push("textBaseline","middle"),un.push("textAlign","center");const _n=.5-At;let Mn=At*dn+_n*St;const qt=[],gn=[];let gt,In=0,Ve=0,ze=0,Ge=0;for(let wt=0,Wt=Bt.length;wtb?b-dt:xe,dn=Oe+_t>k?k-_t:Oe,un=Bt[3]+en*At[0]+Bt[1],tn=Bt[0]+dn*At[1]+Bt[2],mn=zt-Bt[3],yn=Jt-Bt[0];let _n;return(Tt||0!==Ct)&&(M[0]=mn,Me[0]=mn,M[1]=yn,j[1]=yn,j[0]=mn+un,ge[0]=j[0],ge[1]=yn+tn,Me[1]=ge[1]),0!==Ct?(_n=(0,X.Zz)((0,X.vt)(),A,H,1,1,Ct,-A,-H),(0,X.Bb)(_n,M),(0,X.Bb)(_n,j),(0,X.Bb)(_n,ge),(0,X.Bb)(_n,Me),(0,h.N)(Math.min(M[0],j[0],ge[0],Me[0]),Math.min(M[1],j[1],ge[1],Me[1]),Math.max(M[0],j[0],ge[0],Me[0]),Math.max(M[1],j[1],ge[1],Me[1]),I)):(0,h.N)(Math.min(mn,mn+un),Math.min(yn,yn+tn),Math.max(mn,mn+un),Math.max(yn,yn+tn),I),St&&(zt=Math.round(zt),Jt=Math.round(Jt)),{drawImageX:zt,drawImageY:Jt,drawImageW:en,drawImageH:dn,originX:dt,originY:_t,declutterBox:{minX:I[0],minY:I[1],maxX:I[2],maxY:I[3],value:Gt},canvasTransform:_n,scale:At}}replayImageOrLabel_(b,k,A,H,xe,Oe,je){const dt=H.declutterBox,_t=je?je[2]*H.scale[0]/2:0;return dt.minX-_t<=k[0]&&dt.maxX+_t>=0&&dt.minY-_t<=k[1]&&dt.maxY+_t>=0&&(!(!Oe&&!je)&&this.replayTextBackground_(b,M,j,ge,Me,Oe,je),(0,u.Jw)(b,H.canvasTransform,xe,A,H.originX,H.originY,H.drawImageW,H.drawImageH,H.drawImageX,H.drawImageY,H.scale)),!0}fill_(b){const k=this.alignAndScaleFill_;if(k){const A=(0,X.Bb)(this.renderedTransform_,[0,0]),H=512*this.pixelRatio;b.save(),b.translate(A[0]%H,A[1]%H),1!==k&&b.scale(k,k),b.rotate(this.viewRotation_)}b.fill(),k&&b.restore()}setStrokeStyle_(b,k){b.strokeStyle=k[1],b.lineWidth=k[2],b.lineCap=k[3],b.lineJoin=k[4],b.miterLimit=k[5],b.lineDashOffset=k[7],b.setLineDash(k[6])}drawLabelWithPointPlacement_(b,k,A,H){const xe=this.textStates[k],Oe=this.createLabel(b,k,H,A),je=this.strokeStates[A],Ze=this.pixelRatio,dt=se(Array.isArray(b)?b[0]:b,xe.textAlign||u.MY),_t=ve[xe.textBaseline||u.M8],Ct=je&&je.lineWidth?je.lineWidth:0;return{label:Oe,anchorX:dt*(Oe.width/Ze-2*xe.scale[0])+2*(.5-dt)*Ct,anchorY:_t*Oe.height/Ze+2*(.5-_t)*Ct}}execute_(b,k,A,H,xe,Oe,je,Ze){const dt=this.zIndexContext_;let _t;this.pixelCoordinates_&&(0,P.aI)(A,this.renderedTransform_)?_t=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),_t=(0,K.Rc)(this.coordinates,0,this.coordinates.length,2,A,this.pixelCoordinates_),(0,X.k3)(this.renderedTransform_,A));let Ct=0;const At=H.length;let Bt,Tt,Gt,zt,Jt,en,dn,un,tn,mn,yn,_n,Mn,St=0,qt=0,gn=0,In=null,Ve=null;const ze=this.coordinateCache_,Ge=this.viewRotation_,gt=Math.round(1e12*Math.atan2(-A[1],A[0]))/1e12,wt={context:b,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:Ge},Wt=this.instructions!=H||this.overlaps?0:200;let Ht,hn,sn,Ln;for(;CtWt&&(this.fill_(b),qt=0),gn>Wt&&(b.stroke(),gn=0),!qt&&!gn&&(b.beginPath(),Jt=NaN,en=NaN),++Ct;break;case x.CIRCLE:St=$t[1];const Qn=_t[St],hi=_t[St+1],Wn=_t[St+2]-Qn,pn=_t[St+3]-hi,wn=Math.sqrt(Wn*Wn+pn*pn);b.moveTo(Qn+wn,hi),b.arc(Qn,hi,wn,0,2*Math.PI,!0),++Ct;break;case x.CLOSE_PATH:b.closePath(),++Ct;break;case x.CUSTOM:St=$t[1],Bt=$t[2];const sr=$t[4],hr=$t[5];wt.geometry=$t[3],wt.feature=Ht,Ct in ze||(ze[Ct]=[]);const Li=ze[Ct];hr?hr(_t,St,Bt,2,Li):(Li[0]=_t[St],Li[1]=_t[St+1],Li.length=2),dt&&(dt.zIndex=$t[6]),sr(Li,wt),++Ct;break;case x.DRAW_IMAGE:St=$t[1],Bt=$t[2],tn=$t[3],Tt=$t[4],Gt=$t[5];let fr=$t[6];const Rr=$t[7],bn=$t[8],Wr=$t[9],pr=$t[10];let li=$t[11];const tr=$t[12];let Pr=$t[13];zt=$t[14]||"declutter";const ar=$t[15];if(!tn&&$t.length>=20){mn=$t[19],yn=$t[20],_n=$t[21],Mn=$t[22];const Si=this.drawLabelWithPointPlacement_(mn,yn,_n,Mn);tn=Si.label,$t[3]=tn,Tt=(Si.anchorX-$t[23])*this.pixelRatio,$t[4]=Tt,Gt=(Si.anchorY-$t[24])*this.pixelRatio,$t[5]=Gt,fr=tn.height,$t[6]=fr,Pr=tn.width,$t[13]=Pr}let ji,oi,wi,br;$t.length>25&&(ji=$t[25]),$t.length>17?(oi=$t[16],wi=$t[17],br=$t[18]):(oi=u.Tq,wi=!1,br=!1),pr&>?li+=Ge:!pr&&!gt&&(li-=Ge);let ro=0;for(;St!ht.includes(ct)),on={},Ot=class Nt{constructor(b,k,A,H,xe,Oe,je){this.maxExtent_=b,this.overlaps_=H,this.pixelRatio_=A,this.resolution_=k,this.renderBuffer_=Oe,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=(0,X.vt)(),this.renderedContext_=null,this.deferredZIndexContexts_=[],this.createExecutors_(xe,je)}clip(b,k){const A=this.getClipCoords(k);b.beginPath(),b.moveTo(A[0],A[1]),b.lineTo(A[2],A[3]),b.lineTo(A[4],A[5]),b.lineTo(A[6],A[7]),b.clip()}createExecutors_(b,k){for(const A in b){let H=this.executorsByZIndex_[A];void 0===H&&(H={},this.executorsByZIndex_[A]=H);const xe=b[A];for(const Oe in xe)H[Oe]=new Y(this.resolution_,this.pixelRatio_,this.overlaps_,xe[Oe],k)}}hasExecutors(b){for(const k in this.executorsByZIndex_){const A=this.executorsByZIndex_[k];for(let H=0,xe=b.length;Hk)break;let Ze=A[je];Ze||(Ze=[],A[je]=Ze),Ze.push(4*((ct+xe)*b+(ct+Oe))+3),xe>0&&Ze.push(4*((ct-xe)*b+(ct+Oe))+3),Oe>0&&(Ze.push(4*((ct+xe)*b+(ct-Oe))+3),xe>0&&Ze.push(4*((ct-xe)*b+(ct-Oe))+3))}const H=[];for(let xe=0,Oe=A.length;xe0){if(!Oe||"Image"!==St&&"Text"!==St||Oe.includes(un)){const Mn=(At[yn]-3)/4,qt=H-Mn%je,gn=H-(Mn/je|0),In=xe(un,tn,qt*qt+gn*gn);if(In)return In}_t.clearRect(0,0,je,je);break}}const Tt=Object.keys(this.executorsByZIndex_).map(Number);let Gt,zt,Jt,en,dn;for(Tt.sort(P.V_),Gt=Tt.length-1;Gt>=0;--Gt){const un=Tt[Gt].toString();for(Jt=this.executorsByZIndex_[un],zt=nt.length-1;zt>=0;--zt)if(St=nt[zt],en=Jt[St],void 0!==en&&(dn=en.executeHitDetection(_t,Ze,A,Bt,Ct),dn))return dn}}getClipCoords(b){const k=this.maxExtent_;if(!k)return null;const A=k[0],H=k[1],xe=k[2],Oe=k[3],je=[A,H,A,Oe,xe,Oe,xe,H];return(0,K.Rc)(je,0,8,2,b,je),je}isEmpty(){return(0,De.p)(this.executorsByZIndex_)}execute(b,k,A,H,xe,Oe,je){const Ze=Object.keys(this.executorsByZIndex_).map(Number);let dt,_t,Ct,At,St,Bt;for(Ze.sort(P.V_),Oe=Oe||nt,je&&Ze.reverse(),dt=0,_t=Ze.length;dt<_t;++dt){const Tt=Ze[dt].toString();for(St=this.executorsByZIndex_[Tt],Ct=0,At=Oe.length;Ct{b.forEach(k=>{k.draw(this.renderedContext_),k.clear()})})}};var rt=a(8933),ce=a(8130),ee=a(9179);const be=class re extends g{constructor(b,k,A,H,xe,Oe,je){super(),this.context_=b,this.pixelRatio_=k,this.extent_=A,this.transform_=H,this.transformRotation_=H?(0,Ae.Mg)(Math.atan2(H[1],H[0]),10):0,this.viewRotation_=xe,this.squaredTolerance_=Oe,this.userTransform_=je,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=[0,0],this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=[0,0],this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=(0,X.vt)()}drawImages_(b,k,A,H){if(!this.image_)return;const xe=(0,K.Rc)(b,k,A,H,this.transform_,this.pixelCoordinates_),Oe=this.context_,je=this.tmpLocalTransform_,Ze=Oe.globalAlpha;1!=this.imageOpacity_&&(Oe.globalAlpha=Ze*this.imageOpacity_);let dt=this.imageRotation_;0===this.transformRotation_&&(dt-=this.viewRotation_),this.imageRotateWithView_&&(dt+=this.viewRotation_);for(let _t=0,Ct=xe.length;_tCt*this.pixelRatio_),lineDashOffset:(Oe||u.vk)*this.pixelRatio_,lineJoin:void 0!==je?je:u._K,lineWidth:(void 0!==Ze?Ze:u.aq)*this.pixelRatio_,miterLimit:void 0!==dt?dt:u.eL,strokeStyle:(0,y.F)(A||u.NT)}}else this.strokeState_=null}setImageStyle(b){let k;if(!b||!(k=b.getSize()))return void(this.image_=null);const A=b.getPixelRatio(this.pixelRatio_),H=b.getAnchor(),xe=b.getOrigin();this.image_=b.getImage(this.pixelRatio_),this.imageAnchorX_=H[0]*A,this.imageAnchorY_=H[1]*A,this.imageHeight_=k[1]*A,this.imageOpacity_=b.getOpacity(),this.imageOriginX_=xe[0],this.imageOriginY_=xe[1],this.imageRotateWithView_=b.getRotateWithView(),this.imageRotation_=b.getRotation();const Oe=b.getScaleArray();this.imageScale_=[Oe[0]*this.pixelRatio_/A,Oe[1]*this.pixelRatio_/A],this.imageWidth_=k[0]*A}setTextStyle(b){if(b){const k=b.getFill();if(k){const St=k.getColor();this.textFillState_={fillStyle:(0,y.F)(St||u.qY)}}else this.textFillState_=null;const A=b.getStroke();if(A){const St=A.getColor(),Bt=A.getLineCap(),Tt=A.getLineDash(),Gt=A.getLineDashOffset(),zt=A.getLineJoin(),Jt=A.getWidth(),en=A.getMiterLimit();this.textStrokeState_={lineCap:void 0!==Bt?Bt:u._m,lineDash:Tt||u.Oq,lineDashOffset:Gt||u.vk,lineJoin:void 0!==zt?zt:u._K,lineWidth:void 0!==Jt?Jt:u.aq,miterLimit:void 0!==en?en:u.eL,strokeStyle:(0,y.F)(St||u.NT)}}else this.textStrokeState_=null;const H=b.getFont(),xe=b.getOffsetX(),Oe=b.getOffsetY(),je=b.getRotateWithView(),Ze=b.getRotation(),dt=b.getScaleArray(),_t=b.getText(),Ct=b.getTextAlign(),At=b.getTextBaseline();this.textState_={font:void 0!==H?H:u.ZV,textAlign:void 0!==Ct?Ct:u.MY,textBaseline:void 0!==At?At:u.M8},this.text_=void 0!==_t?Array.isArray(_t)?_t.reduce((St,Bt,Tt)=>St+(Tt%2?" ":Bt),""):_t:"",this.textOffsetX_=void 0!==xe?this.pixelRatio_*xe:0,this.textOffsetY_=void 0!==Oe?this.pixelRatio_*Oe:0,this.textRotateWithView_=void 0!==je&&je,this.textRotation_=void 0!==Ze?Ze:0,this.textScale_=[this.pixelRatio_*dt[0],this.pixelRatio_*dt[1]]}else this.text_=""}};var Ke=a(3117),ft=a(3036);const le=.5;var Je=a(7068);const ot={Point:function Lt(ct,b,k,A,H,xe){const Oe=k.getImage(),je=k.getText(),Ze=je&&je.getText(),dt=xe&&Oe&&Ze?{}:void 0;if(Oe){if(Oe.getImageState()!=Je.A.LOADED)return;const _t=ct.getBuilder(k.getZIndex(),"Image");_t.setImageStyle(Oe,dt),_t.drawPoint(b,A,H)}if(Ze){const _t=ct.getBuilder(k.getZIndex(),"Text");_t.setTextStyle(je,dt),_t.drawText(b,A,H)}},LineString:function Te(ct,b,k,A,H){const xe=k.getStroke();if(xe){const je=ct.getBuilder(k.getZIndex(),"LineString");je.setFillStrokeStyle(null,xe),je.drawLineString(b,A,H)}const Oe=k.getText();if(Oe&&Oe.getText()){const je=ct.getBuilder(k.getZIndex(),"Text");je.setTextStyle(Oe),je.drawText(b,A,H)}},Polygon:function Un(ct,b,k,A,H){const xe=k.getFill(),Oe=k.getStroke();if(xe||Oe){const Ze=ct.getBuilder(k.getZIndex(),"Polygon");Ze.setFillStrokeStyle(xe,Oe),Ze.drawPolygon(b,A,H)}const je=k.getText();if(je&&je.getText()){const Ze=ct.getBuilder(k.getZIndex(),"Text");Ze.setTextStyle(je),Ze.drawText(b,A,H)}},MultiPoint:function Ut(ct,b,k,A,H,xe){const Oe=k.getImage(),je=Oe&&0!==Oe.getOpacity(),Ze=k.getText(),dt=Ze&&Ze.getText(),_t=xe&&je&&dt?{}:void 0;if(je){if(Oe.getImageState()!=Je.A.LOADED)return;const Ct=ct.getBuilder(k.getZIndex(),"Image");Ct.setImageStyle(Oe,_t),Ct.drawMultiPoint(b,A,H)}if(dt){const Ct=ct.getBuilder(k.getZIndex(),"Text");Ct.setTextStyle(Ze,_t),Ct.drawText(b,A,H)}},MultiLineString:function He(ct,b,k,A,H){const xe=k.getStroke();if(xe){const je=ct.getBuilder(k.getZIndex(),"LineString");je.setFillStrokeStyle(null,xe),je.drawMultiLineString(b,A,H)}const Oe=k.getText();if(Oe&&Oe.getText()){const je=ct.getBuilder(k.getZIndex(),"Text");je.setTextStyle(Oe),je.drawText(b,A,H)}},MultiPolygon:function at(ct,b,k,A,H){const xe=k.getFill(),Oe=k.getStroke();if(Oe||xe){const Ze=ct.getBuilder(k.getZIndex(),"Polygon");Ze.setFillStrokeStyle(xe,Oe),Ze.drawMultiPolygon(b,A,H)}const je=k.getText();if(je&&je.getText()){const Ze=ct.getBuilder(k.getZIndex(),"Text");Ze.setTextStyle(je),Ze.drawText(b,A,H)}},GeometryCollection:function lt(ct,b,k,A,H,xe){const Oe=b.getGeometriesArray();let je,Ze;for(je=0,Ze=Oe.length;je0;return Ct&&Promise.all(Ze).then(()=>H(null)),function nn(ct,b,k,A,H,xe,Oe){const je=k.getGeometryFunction()(b);if(!je)return;const Ze=je.simplifyTransformed(A,H);k.getRenderer()?$e(ct,Ze,k,b,Oe):(0,ot[Ze.getType()])(ct,Ze,k,b,Oe,xe)}(ct,b,k,A,xe,Oe,je),Ct}function $e(ct,b,k,A,H){if("GeometryCollection"!=b.getType())ct.getBuilder(k.getZIndex(),"Default").drawCustom(b,A,k.getRenderer(),k.getHitDetectionRenderer(),H);else{const Oe=b.getGeometries();for(let je=0,Ze=Oe.length;je{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const A=[this.context.canvas.width,this.context.canvas.height];(0,X.Bb)(this.pixelTransform,A);const H=this.renderedCenter_,xe=this.renderedResolution_,Oe=this.renderedRotation_,je=this.renderedProjection_,Ze=this.wrappedRenderedExtent_,dt=this.getLayer(),_t=[],Ct=A[0]*le,At=A[1]*le;_t.push(this.getRenderTransform(H,xe,Oe,le,Ct,At,0).slice());const St=dt.getSource(),Bt=je.getExtent();if(St.getWrapX()&&je.canWrapX()&&!(0,h.ms)(Bt,Ze)){let Gt=Ze[0];const zt=(0,h.RG)(Bt);let en,Jt=0;for(;GtBt[2];)++Jt,en=zt*Jt,_t.push(this.getRenderTransform(H,xe,Oe,le,Ct,At,en).slice()),Gt-=zt}const Tt=(0,ft.Tf)();this.hitDetectionImageData_=function Q(ct,b,k,A,H,xe,Oe,je,Ze){const dt=Ze?(0,ft.JR)(H,Ze):H,At=(0,Re.Y)(ct[0]*le,ct[1]*le);At.imageSmoothingEnabled=!1;const St=At.canvas,Bt=new be(At,le,H,null,Oe,je,Ze?(0,ft.FO)((0,ft.Tf)(),Ze):null),Tt=k.length,Gt=Math.floor(16777215/Tt),zt={};for(let en=1;en<=Tt;++en){const dn=k[en-1],un=dn.getStyleFunction()||A;if(!un)continue;let tn=un(dn,xe);if(!tn)continue;Array.isArray(tn)||(tn=[tn]);const yn=(en*Gt).toString(16).padStart(7,"#00000");for(let _n=0,Mn=tn.length;_nCt=Bt.forEachFeatureAtCoordinate(b,Oe,je,A,_t,St&&k.declutter[St]?k.declutter[St].all().map(Tt=>Tt.value):null)),Ct}handleFontsChanged(){const b=this.getLayer();b.getVisible()&&this.replayGroup_&&b.changed()}handleStyleImageChange_(b){this.renderIfReadyAndVisible()}prepareFrame(b){const k=this.getLayer(),A=k.getSource();if(!A)return!1;const H=b.viewHints[ce.A.ANIMATING],xe=b.viewHints[ce.A.INTERACTING],Oe=k.getUpdateWhileAnimating(),je=k.getUpdateWhileInteracting();if(this.ready&&!Oe&&H||!je&&xe)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const Ze=b.extent,dt=b.viewState,_t=dt.projection,Ct=dt.resolution,At=b.pixelRatio,St=k.getRevision(),Bt=k.getRenderBuffer();let Tt=k.getRenderOrder();void 0===Tt&&(Tt=It);const Gt=dt.center.slice(),zt=(0,h.r)(Ze,Bt*Ct),Jt=zt.slice(),en=[zt.slice()],dn=_t.getExtent();if(A.getWrapX()&&_t.canWrapX()&&!(0,h.ms)(dn,b.extent)){const ze=(0,h.RG)(dn),Ge=Math.max((0,h.RG)(zt)/2,ze);zt[0]=dn[0]-Ge,zt[2]=dn[2]+Ge,(0,pt.Li)(Gt,_t);const gt=(0,h.Li)(en[0],_t);gt[0]dn[0]&>[2]>dn[2]&&en.push([gt[0]-ze,gt[1],gt[2]-ze,gt[3]])}if(this.ready&&this.renderedResolution_==Ct&&this.renderedRevision_==St&&this.renderedRenderOrder_==Tt&&(0,h.ms)(this.wrappedRenderedExtent_,zt))return(0,P.aI)(this.renderedExtent_,Jt)||(this.hitDetectionImageData_=null,this.renderedExtent_=Jt),this.renderedCenter_=Gt,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const un=new L(kt(Ct,At),zt,Ct,At),tn=(0,ft.Tf)();let mn;if(tn){for(let ze=0,Ge=en.length;ze{let gt;const wt=ze.getStyleFunction()||k.getStyleFunction();if(wt&&(gt=wt(ze,Ct)),gt){const Wt=this.renderFeature(ze,yn,gt,un,mn,this.getLayer().getDeclutter(),Ge);_n=_n&&!Wt}},qt=(0,ft.JR)(zt,_t),gn=A.getFeaturesInExtent(qt);Tt&&gn.sort(Tt);for(let ze=0,Ge=gn.length;ze{"use strict";function o(u,P,T){return Math.min(Math.max(u,P),T)}function c(u,P,T,E,W,ne){const de=W-T,ie=ne-E;if(0!==de||0!==ie){const Z=((u-T)*de+(P-E)*ie)/(de*de+ie*ie);Z>1?(T=W,E=ne):Z>0&&(T+=de*Z,E+=ie*Z)}return O(u,P,T,E)}function O(u,P,T,E){const W=T-u,ne=E-P;return W*W+ne*ne}function d(u){const P=u.length;for(let E=0;Ene&&(ne=Z,W=ie)}if(0===ne)return null;const de=u[W];u[W]=u[E],u[E]=de;for(let ie=E+1;ie=0;E--){T[E]=u[E][P]/u[E][E];for(let W=E-1;W>=0;W--)u[W][P]-=u[W][E]*T[E]}return T}function C(u){return u*Math.PI/180}function x(u,P){const T=u%P;return T*P<0?T+P:T}function D(u,P,T){return u+T*(P-u)}function p(u,P){const T=Math.pow(10,P);return Math.round(u*T)/T}function y(u,P){return Math.floor(p(u,P))}function h(u,P){return Math.ceil(p(u,P))}a.d(Ie,{Cc:()=>D,KU:()=>d,Mg:()=>p,Q1:()=>c,RI:()=>y,eh:()=>C,hG:()=>O,mk:()=>h,qE:()=>o,xP:()=>x})},973:(ut,Ie,a)=>{"use strict";function o(O){for(const d in O)delete O[d]}function c(O){let d;for(d in O)return!1;return!d}a.d(Ie,{I:()=>o,p:()=>c})},3036:(ut,Ie,a)=>{"use strict";a.d(Ie,{Ig:()=>O,MF:()=>w,Av:()=>ge,RJ:()=>L,tI:()=>Ee,Ad:()=>rt,SD:()=>ee,Jt:()=>N,hO:()=>V,RG:()=>Y,FO:()=>tt,Tf:()=>on,R6:()=>J,te:()=>Ot,JR:()=>ce,vN:()=>re,pd:()=>Re});const O={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937},w=class d{constructor(Q){this.code_=Q.code,this.units_=Q.units,this.extent_=void 0!==Q.extent?Q.extent:null,this.worldExtent_=void 0!==Q.worldExtent?Q.worldExtent:null,this.axisOrientation_=void 0!==Q.axisOrientation?Q.axisOrientation:"enu",this.global_=void 0!==Q.global&&Q.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=Q.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=Q.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||O[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(Q){this.global_=Q,this.canWrapX_=!(!Q||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(Q){this.defaultTileGrid_=Q}setExtent(Q){this.extent_=Q,this.canWrapX_=!(!this.global_||!Q)}setWorldExtent(Q){this.worldExtent_=Q}setGetPointResolution(Q){this.getPointResolutionFunc_=Q}getPointResolutionFunc(){return this.getPointResolutionFunc_}},C=6378137,x=Math.PI*C,D=[-x,-x,x,x],p=[-180,-85,180,85],g=C*Math.log(Math.tan(Math.PI/2));class y extends w{constructor(Q){super({code:Q,units:"m",extent:D,global:!0,worldExtent:p,getPointResolution:function(Be,Je){return Be/Math.cosh(Je[1]/C)}})}}const h=[new y("EPSG:3857"),new y("EPSG:102100"),new y("EPSG:102113"),new y("EPSG:900913"),new y("http://www.opengis.net/def/crs/EPSG/0/3857"),new y("http://www.opengis.net/gml/srs/epsg.xml#3857")];function u(le,Q,Be){const Je=le.length;Be=Be>1?Be:2,void 0===Q&&(Q=Be>2?le.slice():new Array(Je));for(let qe=0;qeg?ot=g:ot<-g&&(ot=-g),Q[qe+1]=ot}return Q}function P(le,Q,Be){const Je=le.length;Be=Be>1?Be:2,void 0===Q&&(Q=Be>2?le.slice():new Array(Je));for(let qe=0;qe=-180&&le[0]<=180&&le[1]>=-90&&le[1]<=90&&(te=!1,(0,z.R8)("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),le)}function ce(le,Q){return ht?De(le,Q,ht):le}function ee(le,Q){return ht?De(le,ht,Q):le}function re(le,Q){if(!ht)return le;const Be=N(Q).getMetersPerUnit(),Je=ht.getMetersPerUnit();return Be&&Je?le*Be/Je:le}!function ft(){I(h),I(de),function M(le,Q,Be,Je){le.forEach(function(qe){Q.forEach(function(ot){Ae(qe,ot,Be),Ae(ot,qe,Je)})})}(de,h,u,P)}()},8133:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>O});var o=a(4888);const O=class c extends o.Ay{constructor(w,C,x,D){super(w),this.inversePixelTransform=C,this.frameState=x,this.context=D}}},8933:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>o});const o={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},8045:(ut,Ie,a)=>{"use strict";a.d(Ie,{Jw:()=>ve,M8:()=>T,MY:()=>P,NT:()=>u,Oq:()=>p,TA:()=>Ae,Tq:()=>E,ZV:()=>C,_K:()=>y,_m:()=>D,aq:()=>W,eL:()=>h,fZ:()=>ae,jT:()=>ke,qY:()=>x,vk:()=>g,yY:()=>ne});var o=a(4037),c=a(6656),O=a(973),d=a(5664),w=a(215);const C="10px sans-serif",x="#000",D="round",p=[],g=0,y="round",h=10,u="#000",P="center",T="middle",E=[0,0,0,0],W=1,ne=new o.A;let ie,de=null;const Z={},ae=function(){const z="32px ",te=["monospace","serif"],L=te.length,q="wmytzilWMYTZIL@#/&?$%10\uf013";let J,X;function K(V,I,M){let j=!0;for(let ge=0;geMath.max(q,Ce(Se,J)),0);return te[z]=L,L}function ke(Se,z){const te=[],L=[],q=[];let J=0,X=0,K=0,N=0;for(let V=0,I=z.length;V<=I;V+=2){const M=z[V];if("\n"===M||V===I){J=Math.max(J,X),q.push(X),X=0,K+=N;continue}const j=z[V+1]||Se.font,ge=Ce(j,M);te.push(ge),X+=ge;const Me=Le(j);L.push(Me),N=Math.max(N,Me)}return{width:J,height:K,widths:te,heights:L,lineWidths:q}}function ve(Se,z,te,L,q,J,X,K,N,V,I){Se.save(),1!==te&&(void 0===Se.globalAlpha?Se.globalAlpha=M=>M.globalAlpha*=te:Se.globalAlpha*=te),z&&Se.transform.apply(Se,z),L.contextInstructions?(Se.translate(N,V),Se.scale(I[0],I[1]),function ye(Se,z){const te=Se.contextInstructions;for(let L=0,q=te.length;L{"use strict";a.d(Ie,{A:()=>O});var o=a(5664);const O=class c{constructor(){this.instructions_=[],this.zIndex=0,this.offset_=0,this.context_=new Proxy(CanvasRenderingContext2D.prototype,{get:(w,C)=>{if("function"==typeof(0,o.lr)()[C])return this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(C),this.pushMethodArgs_},set:(w,C,x)=>(this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(C,x),!0)})}pushMethodArgs_=(...w)=>(this.instructions_[this.zIndex+this.offset_].push(w),this);getContext(){return this.context_}draw(w){this.instructions_.forEach(C=>{for(let x=0,D=C.length;x{"use strict";a.d(Ie,{A:()=>C});var o=a(8864),c=a(7068),O=a(5935),d=a(8618);const C=class w extends O.A{constructor(D){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=D,this.declutterExecutorGroup=null}getFeatures(D){return(0,d.b0)()}getData(D){return null}prepareFrame(D){return(0,d.b0)()}renderFrame(D,p){return(0,d.b0)()}loadedTileCallback(D,p,g){D[p]||(D[p]={}),D[p][g.tileCoord.toString()]=g}createLoadedTileFinder(D,p,g){return(y,h)=>{const u=this.loadedTileCallback.bind(this,g,y);return D.forEachLoadedTile(p,y,h,u)}}forEachFeatureAtCoordinate(D,p,g,y,h){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(D){const p=D.target;(p.getState()===c.A.LOADED||p.getState()===c.A.ERROR)&&this.renderIfReadyAndVisible()}loadImage(D){let p=D.getState();return p!=c.A.LOADED&&p!=c.A.ERROR&&D.addEventListener(o.A.CHANGE,this.boundHandleImageChange_),p==c.A.IDLE&&(D.load(),p=D.getState()),p==c.A.LOADED}renderIfReadyAndVisible(){const D=this.getLayer();D&&D.getVisible()&&"ready"===D.getSourceState()&&D.changed()}renderDeferred(D){}disposeInternal(){delete this.layer_,super.disposeInternal()}}},7350:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>P,B:()=>g});var o=a(403),c=a(8133),O=a(8933),d=a(4059),w=a(9984),C=a(642),x=a(5664),D=a(9609),p=a(4378);const g=[];let y=null;const P=class u extends o.A{constructor(E){super(E),this.container=null,this.tempTransform=(0,w.vt)(),this.pixelTransform=(0,w.vt)(),this.inversePixelTransform=(0,w.vt)(),this.context=null,this.deferredContext_=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(E,W,ne){let de;y||function h(){y=(0,x.Y)(1,1,void 0,{willReadFrequently:!0})}(),y.clearRect(0,0,1,1);try{y.drawImage(E,W,ne,1,1,0,0,1,1),de=y.getImageData(0,0,1,1).data}catch{return y=null,null}return de}getBackground(E){let ne=this.getLayer().getBackground();return"function"==typeof ne&&(ne=ne(E.viewState.resolution)),ne||void 0}useContainer(E,W,ne){const de=this.getLayer().getClassName();let ie,Z;if(E&&E.className===de&&(!ne||E&&E.style.backgroundColor&&(0,D.aI)((0,C._j)(E.style.backgroundColor),(0,C._j)(ne)))){const ae=E.firstElementChild;ae instanceof HTMLCanvasElement&&(Z=ae.getContext("2d"))}if(Z&&Z.canvas.style.transform===W?(this.container=E,this.context=Z,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){ie=document.createElement("div"),ie.className=de;let ae=ie.style;ae.position="absolute",ae.width="100%",ae.height="100%",Z=(0,x.Y)();const Le=Z.canvas;ie.appendChild(Le),ae=Le.style,ae.position="absolute",ae.left="0",ae.transformOrigin="top left",this.container=ie,this.context=Z}!this.containerReused&&ne&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=ne)}clipUnrotated(E,W,ne){const de=(0,p.Py)(ne),ie=(0,p.WU)(ne),Z=(0,p.k_)(ne),ae=(0,p.R)(ne);(0,w.Bb)(W.coordinateToPixelTransform,de),(0,w.Bb)(W.coordinateToPixelTransform,ie),(0,w.Bb)(W.coordinateToPixelTransform,Z),(0,w.Bb)(W.coordinateToPixelTransform,ae);const Le=this.inversePixelTransform;(0,w.Bb)(Le,de),(0,w.Bb)(Le,ie),(0,w.Bb)(Le,Z),(0,w.Bb)(Le,ae),E.save(),E.beginPath(),E.moveTo(Math.round(de[0]),Math.round(de[1])),E.lineTo(Math.round(ie[0]),Math.round(ie[1])),E.lineTo(Math.round(Z[0]),Math.round(Z[1])),E.lineTo(Math.round(ae[0]),Math.round(ae[1])),E.clip()}dispatchRenderEvent_(E,W,ne){const de=this.getLayer();if(de.hasListener(E)){const ie=new c.A(E,this.inversePixelTransform,ne,W);de.dispatchEvent(ie)}}preRender(E,W){this.frameState=W,!W.declutter&&this.dispatchRenderEvent_(O.A.PRERENDER,E,W)}postRender(E,W){W.declutter||this.dispatchRenderEvent_(O.A.POSTRENDER,E,W)}renderDeferredInternal(E){}getRenderContext(E){return E.declutter&&!this.deferredContext_&&(this.deferredContext_=new d.A),E.declutter?this.deferredContext_.getContext():this.context}renderDeferred(E){E.declutter&&(this.dispatchRenderEvent_(O.A.PRERENDER,this.context,E),E.declutter&&this.deferredContext_&&(this.deferredContext_.draw(this.context),this.deferredContext_.clear()),this.renderDeferredInternal(E),this.dispatchRenderEvent_(O.A.POSTRENDER,this.context,E))}getRenderTransform(E,W,ne,de,ie,Z,ae){const Ce=de/W;return(0,w.Zz)(this.tempTransform,ie/2,Z/2,Ce,-Ce,-ne,-E[0]+ae,-E[1])}disposeInternal(){delete this.frameState,super.disposeInternal()}}},1947:(ut,Ie,a)=>{"use strict";a.d(Ie,{a$:()=>d,b8:()=>c,cq:()=>w,dv:()=>O});var o=a(8092);function c(C){if(void 0!==C)return 0}function O(C){if(void 0!==C)return C}function d(C){const x=2*Math.PI/C;return function(D,p){return p?D:void 0!==D?D=Math.floor(D/x+.5)*x:void 0}}function w(C){const x=void 0===C?(0,o.eh)(5):C;return function(D,p){return p||void 0===D?D:Math.abs(D)<=x?0:D}}},8443:(ut,Ie,a)=>{"use strict";function c(w){return w[0]>0&&w[1]>0}function O(w,C,x){return void 0===x&&(x=[0,0]),x[0]=w[0]*C+.5|0,x[1]=w[1]*C+.5|0,x}function d(w,C){return Array.isArray(w)?w:(void 0===C?C=[w,w]:(C[0]=w,C[1]=w),C)}a.d(Ie,{Ie:()=>c,hs:()=>O,xq:()=>d})},8343:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>w});var o=a(4037),c=a(3036);function d(C){return C?Array.isArray(C)?function(x){return C}:"function"==typeof C?C:function(x){return[C]}:null}const w=class O extends o.A{constructor(x){super(),this.projection=(0,c.Jt)(x.projection),this.attributions_=d(x.attributions),this.attributionsCollapsible_=void 0===x.attributionsCollapsible||x.attributionsCollapsible,this.loading=!1,this.state_=void 0!==x.state?x.state:"ready",this.wrapX_=void 0!==x.wrapX&&x.wrapX,this.interpolate_=!!x.interpolate,this.viewResolver=null,this.viewRejector=null;const D=this;this.viewPromise_=new Promise(function(p,g){D.viewResolver=p,D.viewRejector=g})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(x){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(x){this.attributions_=d(x),this.changed()}setState(x){this.state_=x,this.changed()}}},5862:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>K});var o=a(4786),c=a(6832),O=a(4888),d=a(8864),w=a(6953),C=a(549),x=a(9984),D=a(4378),p=a(6022),g=a(9609),y=a(6603),h=a(3036),u=a(3939),P=a(3578),T=a(2052),E=a(6401),W=a(7133);const ne=(0,x.vt)();class de{constructor(V,I,M,j,ge,Me){this.id_=Me,this.type_=V,this.flatCoordinates_=I,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=M||null,this.properties_=ge,this.stride_=j}get(V){return this.properties_[V]}getExtent(){return this.extent_||(this.extent_="Point"===this.type_?(0,D.dP)(this.flatCoordinates_):(0,D.Vy)(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_}getFlatInteriorPoint(){if(!this.flatInteriorPoints_){const V=(0,D.q1)(this.getExtent());this.flatInteriorPoints_=(0,y.J)(this.flatCoordinates_,0,this.ends_,2,V,0)}return this.flatInteriorPoints_}getFlatInteriorPoints(){if(!this.flatInteriorPoints_){const V=(0,u.yJ)(this.flatCoordinates_,this.ends_),I=(0,T.C)(this.flatCoordinates_,0,V,2);this.flatInteriorPoints_=(0,y.p)(this.flatCoordinates_,0,V,2,I)}return this.flatInteriorPoints_}getFlatMidpoint(){return this.flatMidpoints_||(this.flatMidpoints_=(0,P.SH)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_}getFlatMidpoints(){if(!this.flatMidpoints_){this.flatMidpoints_=[];const V=this.flatCoordinates_;let I=0;const M=this.ends_;for(let j=0,ge=M.length;j{if(V===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),I&&this.simplifiedGeometry_.applyTransform(I);const M=this.simplifiedGeometry_.getFlatCoordinates();let j;switch(this.type_){case"LineString":M.length=(0,p.P4)(M,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,V,M,0),j=[M.length];break;case"MultiLineString":j=[],M.length=(0,p.AL)(M,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,V,M,0,j);break;case"Polygon":j=[],M.length=(0,p.Hg)(M,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(V),M,0,j)}return j&&(this.simplifiedGeometry_=new de(this.type_,M,j,2,this.properties_,this.id_)),this.squaredTolerance_=V,this.simplifiedGeometry_}),this}}de.prototype.getFlatCoordinates=de.prototype.getOrientedFlatCoordinates;const ae=de;var Le=a(8343),_e=a(7345);function Ce(N,V){return[[-1/0,-1/0,1/0,1/0]]}var Ue=a(9791),ve=a(8618),ye=a(973),Se=a(7443);function L(N,V){return function(I,M,j,ge,Me){const oe=this;!function te(N,V,I,M,j,ge,Me){const oe=new XMLHttpRequest;oe.open("GET","function"==typeof N?N(I,M,j):N,!0),"arraybuffer"==V.getType()&&(oe.responseType="arraybuffer"),oe.withCredentials=false,oe.onload=function(R){if(!oe.status||oe.status>=200&&oe.status<300){const se=V.getType();let Ee;"json"==se?Ee=JSON.parse(oe.responseText):"text"==se?Ee=oe.responseText:"xml"==se?(Ee=oe.responseXML,Ee||(Ee=(new DOMParser).parseFromString(oe.responseText,"application/xml"))):"arraybuffer"==se&&(Ee=oe.response),Ee?ge(V.readFeatures(Ee,{extent:I,featureProjection:j}),V.readProjection(Ee)):Me()}else Me()},oe.onerror=Me,oe.send()}(N,V,I,M,j,function(R,se){oe.addFeatures(R),void 0!==ge&&ge(R)},Me||E.tV)}}class J extends O.Ay{constructor(V,I,M){super(V),this.feature=I,this.features=M}}const K=class X extends Le.A{constructor(V){super({attributions:(V=V||{}).attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===V.wrapX||V.wrapX}),this.loader_=E.tV,this.format_=V.format,this.overlaps_=void 0===V.overlaps||V.overlaps,this.url_=V.url,void 0!==V.loader?this.loader_=V.loader:void 0!==this.url_&&((0,Ue.v)(this.format_,"`format` must be set when `url` is set"),this.loader_=L(this.url_,this.format_)),this.strategy_=void 0!==V.strategy?V.strategy:Ce;const I=void 0===V.useSpatialIndex||V.useSpatialIndex;let M,j;this.featuresRtree_=I?new C.A:null,this.loadedExtentsRtree_=new C.A,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(V.features)?j=V.features:V.features&&(M=V.features,j=M.getArray()),!I&&void 0===M&&(M=new o.A(j)),void 0!==j&&this.addFeaturesInternal(j),void 0!==M&&this.bindFeaturesCollection_(M)}addFeature(V){this.addFeatureInternal(V),this.changed()}addFeatureInternal(V){const I=(0,ve.v6)(V);if(!this.addToIndex_(I,V))return void(this.featuresCollection_&&this.featuresCollection_.remove(V));this.setupChangeEvents_(I,V);const M=V.getGeometry();if(M){const j=M.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(j,V)}else this.nullGeometryFeatures_[I]=V;this.dispatchEvent(new J(_e.A.ADDFEATURE,V))}setupChangeEvents_(V,I){I instanceof ae||(this.featureChangeKeys_[V]=[(0,Se.KT)(I,d.A.CHANGE,this.handleFeatureChange_,this),(0,Se.KT)(I,w.A.PROPERTYCHANGE,this.handleFeatureChange_,this)])}addToIndex_(V,I){let M=!0;if(void 0!==I.getId()){const j=String(I.getId());if(j in this.idIndex_)if(I instanceof ae){const ge=this.idIndex_[j];ge instanceof ae?Array.isArray(ge)?ge.push(I):this.idIndex_[j]=[ge,I]:M=!1}else M=!1;else this.idIndex_[j]=I}return M&&((0,Ue.v)(!(V in this.uidIndex_),"The passed `feature` was already added to the source"),this.uidIndex_[V]=I),M}addFeatures(V){this.addFeaturesInternal(V),this.changed()}addFeaturesInternal(V){const I=[],M=[],j=[];for(let ge=0,Me=V.length;ge{I||(I=!0,this.addFeature(M.element),I=!1)}),V.addEventListener(c.A.REMOVE,M=>{I||(I=!0,this.removeFeature(M.element),I=!1)}),this.featuresCollection_=V}clear(V){if(V){for(const M in this.featureChangeKeys_)this.featureChangeKeys_[M].forEach(Se.JH);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){this.featuresRtree_.forEach(j=>{this.removeFeatureInternal(j)});for(const j in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[j])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const I=new J(_e.A.CLEAR);this.dispatchEvent(I),this.changed()}forEachFeature(V){if(this.featuresRtree_)return this.featuresRtree_.forEach(V);this.featuresCollection_&&this.featuresCollection_.forEach(V)}forEachFeatureAtCoordinateDirect(V,I){return this.forEachFeatureInExtent([V[0],V[1],V[0],V[1]],function(j){const ge=j.getGeometry();if(ge instanceof ae||ge.intersectsCoordinate(V))return I(j)})}forEachFeatureInExtent(V,I){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(V,I);this.featuresCollection_&&this.featuresCollection_.forEach(I)}forEachFeatureIntersectingExtent(V,I){return this.forEachFeatureInExtent(V,function(M){const j=M.getGeometry();if(j instanceof ae||j.intersectsExtent(V)){const ge=I(M);if(ge)return ge}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let V;return this.featuresCollection_?V=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(V=this.featuresRtree_.getAll(),(0,ye.p)(this.nullGeometryFeatures_)||(0,g.X$)(V,Object.values(this.nullGeometryFeatures_))),V}getFeaturesAtCoordinate(V){const I=[];return this.forEachFeatureAtCoordinateDirect(V,function(M){I.push(M)}),I}getFeaturesInExtent(V,I){if(this.featuresRtree_){if(!(I&&I.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(V);const j=(0,D.QJ)(V,I);return[].concat(...j.map(ge=>this.featuresRtree_.getInExtent(ge)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(V,I){const M=V[0],j=V[1];let ge=null;const Me=[NaN,NaN];let oe=1/0;const R=[-1/0,-1/0,1/0,1/0];return I=I||E.rT,this.featuresRtree_.forEachInExtent(R,function(se){if(I(se)){const Ee=se.getGeometry(),tt=oe;if(oe=Ee instanceof ae?0:Ee.closestPointXY(M,j,Me,oe),oe{--this.loadingExtentsCount_,this.dispatchEvent(new J(_e.A.FEATURESLOADEND,void 0,Ee))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new J(_e.A.FEATURESLOADERROR))}),j.insert(R,{extent:R.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(V){const I=this.loadedExtentsRtree_;let M;I.forEachInExtent(V,function(j){if((0,D.aI)(j.extent,V))return M=j,!0}),M&&I.remove(M)}removeFeature(V){if(!V)return;const I=(0,ve.v6)(V);I in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[I]:this.featuresRtree_&&this.featuresRtree_.remove(V),this.removeFeatureInternal(V)&&this.changed()}removeFeatureInternal(V){const I=(0,ve.v6)(V),M=this.featureChangeKeys_[I];if(!M)return;M.forEach(Se.JH),delete this.featureChangeKeys_[I];const j=V.getId();return void 0!==j&&delete this.idIndex_[j.toString()],delete this.uidIndex_[I],this.dispatchEvent(new J(_e.A.REMOVEFEATURE,V)),V}removeFromIdIndex_(V){let I=!1;for(const M in this.idIndex_){const j=this.idIndex_[M];if(V instanceof ae&&Array.isArray(j)&&j.includes(V))j.splice(j.indexOf(V),1);else if(this.idIndex_[M]===V){delete this.idIndex_[M],I=!0;break}}return I}setLoader(V){this.loader_=V}setUrl(V){(0,Ue.v)(this.format_,"`format` must be set when `url` is set"),this.url_=V,this.setLoader(L(V,this.format_))}}},7345:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>o});const o={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"}},9191:(ut,Ie,a)=>{"use strict";a.d(Ie,{R3:()=>w,UG:()=>x,Yf:()=>O});var o=a(8092);const c=6371008.8;function O(p,g,y){y=y||c;const h=(0,o.eh)(p[1]),u=(0,o.eh)(g[1]),P=(u-h)/2,T=(0,o.eh)(g[0]-p[0])/2,E=Math.sin(P)*Math.sin(P)+Math.sin(T)*Math.sin(T)*Math.cos(h)*Math.cos(u);return 2*y*Math.atan2(Math.sqrt(E),Math.sqrt(1-E))}function d(p,g){let y=0;for(let h=0,u=p.length;h{"use strict";a.d(Ie,{A:()=>C});var o=a(9995),c=a(4378),O=a(8618),d=a(973);const C=class w{constructor(D){this.rbush_=new o(D),this.items_={}}insert(D,p){const g={minX:D[0],minY:D[1],maxX:D[2],maxY:D[3],value:p};this.rbush_.insert(g),this.items_[(0,O.v6)(p)]=g}load(D,p){const g=new Array(p.length);for(let y=0,h=p.length;y{"use strict";a.d(Ie,{A:()=>O});var o=a(1633);class c extends o.A{constructor(w){super({points:1/0,fill:(w=w||{radius:5}).fill,radius:w.radius,stroke:w.stroke,scale:void 0!==w.scale?w.scale:1,rotation:void 0!==w.rotation?w.rotation:0,rotateWithView:void 0!==w.rotateWithView&&w.rotateWithView,displacement:void 0!==w.displacement?w.displacement:[0,0],declutterMode:w.declutterMode})}clone(){const w=this.getScale(),C=new c({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(w)?w.slice():w,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return C.setOpacity(this.getOpacity()),C}setRadius(w){this.radius_=w,this.render()}}const O=c},5637:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>d});var o=a(7068),c=a(3436);class O{constructor(C){C=C||{},this.patternImage_=null,this.color_=null,void 0!==C.color&&this.setColor(C.color)}clone(){const C=this.getColor();return new O({color:Array.isArray(C)?C.slice():C||void 0})}getColor(){return this.color_}setColor(C){if(null!==C&&"object"==typeof C&&"src"in C){const x=(0,c.J)(null,C.src,"anonymous",void 0,C.offset?null:C.color?C.color:null,!(C.offset&&C.size));x.ready().then(()=>{this.patternImage_=null}),x.getImageState()===o.A.IDLE&&x.load(),x.getImageState()===o.A.LOADING&&(this.patternImage_=x)}this.color_=C}loading(){return!!this.patternImage_}ready(){return this.patternImage_?this.patternImage_.ready():Promise.resolve()}}const d=O},3117:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>g});var o=a(8864),c=a(7068),O=a(1967),d=a(642),w=a(9791),C=a(3436),x=a(8618);function D(y,h,u,P){return void 0!==u&&void 0!==P?[u/y,P/h]:void 0!==u?u/y:void 0!==P?P/h:1}class p extends O.A{constructor(h){super({opacity:void 0!==(h=h||{}).opacity?h.opacity:1,rotation:void 0!==h.rotation?h.rotation:0,scale:void 0!==h.scale?h.scale:1,displacement:void 0!==h.displacement?h.displacement:[0,0],rotateWithView:void 0!==h.rotateWithView&&h.rotateWithView,declutterMode:h.declutterMode}),this.anchor_=void 0!==h.anchor?h.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==h.anchorOrigin?h.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==h.anchorXUnits?h.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==h.anchorYUnits?h.anchorYUnits:"fraction",this.crossOrigin_=void 0!==h.crossOrigin?h.crossOrigin:null;const W=void 0!==h.img?h.img:null;let de,ne=h.src;if((0,w.v)(!(void 0!==ne&&W),"`image` and `src` cannot be provided at the same time"),(void 0===ne||0===ne.length)&&W&&(ne=W.src||(0,x.v6)(W)),(0,w.v)(void 0!==ne&&ne.length>0,"A defined and non-empty `src` or `image` must be provided"),(0,w.v)(!((void 0!==h.width||void 0!==h.height)&&void 0!==h.scale),"`width` or `height` cannot be provided together with `scale`"),void 0!==h.src?de=c.A.IDLE:void 0!==W&&(de=W instanceof HTMLImageElement?W.complete?W.src?c.A.LOADED:c.A.IDLE:c.A.LOADING:c.A.LOADED),this.color_=void 0!==h.color?(0,d._j)(h.color):null,this.iconImage_=(0,C.J)(W,ne,this.crossOrigin_,de,this.color_),this.offset_=void 0!==h.offset?h.offset:[0,0],this.offsetOrigin_=void 0!==h.offsetOrigin?h.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==h.size?h.size:null,void 0!==h.width||void 0!==h.height){let ie,Z;if(h.size)[ie,Z]=h.size;else{const ae=this.getImage(1);if(ae.width&&ae.height)ie=ae.width,Z=ae.height;else if(ae instanceof HTMLImageElement){this.initialOptions_=h;const Le=()=>{if(this.unlistenImageChange(Le),!this.initialOptions_)return;const _e=this.iconImage_.getSize();this.setScale(D(_e[0],_e[1],h.width,h.height))};return void this.listenImageChange(Le)}}void 0!==ie&&this.setScale(D(ie,Z,h.width,h.height))}}clone(){let h,u,P;return this.initialOptions_?(u=this.initialOptions_.width,P=this.initialOptions_.height):(h=this.getScale(),h=Array.isArray(h)?h.slice():h),new p({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:h,width:u,height:P,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let h=this.normalizedAnchor_;if(!h){h=this.anchor_;const T=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!T)return null;h=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(h[0]*=T[0]),"fraction"==this.anchorYUnits_&&(h[1]*=T[1])}if("top-left"!=this.anchorOrigin_){if(!T)return null;h===this.anchor_&&(h=this.anchor_.slice()),("top-right"==this.anchorOrigin_||"bottom-right"==this.anchorOrigin_)&&(h[0]=-h[0]+T[0]),("bottom-left"==this.anchorOrigin_||"bottom-right"==this.anchorOrigin_)&&(h[1]=-h[1]+T[1])}this.normalizedAnchor_=h}const u=this.getDisplacement(),P=this.getScaleArray();return[h[0]-u[0]/P[0],h[1]+u[1]/P[1]]}setAnchor(h){this.anchor_=h,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(h){return this.iconImage_.getImage(h)}getPixelRatio(h){return this.iconImage_.getPixelRatio(h)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let h=this.offset_;if("top-left"!=this.offsetOrigin_){const u=this.getSize(),P=this.iconImage_.getSize();if(!u||!P)return null;h=h.slice(),("top-right"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(h[0]=P[0]-u[0]-h[0]),("bottom-left"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(h[1]=P[1]-u[1]-h[1])}return this.origin_=h,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const h=this.getScaleArray();return this.size_?this.size_[0]*h[0]:this.iconImage_.getImageState()==c.A.LOADED?this.iconImage_.getSize()[0]*h[0]:void 0}getHeight(){const h=this.getScaleArray();return this.size_?this.size_[1]*h[1]:this.iconImage_.getImageState()==c.A.LOADED?this.iconImage_.getSize()[1]*h[1]:void 0}setScale(h){delete this.initialOptions_,super.setScale(h)}listenImageChange(h){this.iconImage_.addEventListener(o.A.CHANGE,h)}load(){this.iconImage_.load()}unlistenImageChange(h){this.iconImage_.removeEventListener(o.A.CHANGE,h)}ready(){return this.iconImage_.ready()}}const g=p},3436:(ut,Ie,a)=>{"use strict";a.d(Ie,{J:()=>g});var o=a(6339),c=a(8864),O=a(7068),d=a(642),w=a(5664),C=a(8701),x=a(7048);let D=null;class p extends o.A{constructor(u,P,T,E,W){super(),this.hitDetectionImage_=null,this.image_=u,this.crossOrigin_=T,this.canvas_={},this.color_=W,this.imageState_=void 0===E?O.A.IDLE:E,this.size_=u&&u.width&&u.height?[u.width,u.height]:null,this.src_=P,this.ready_=null}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===O.A.LOADED){D||(D=(0,w.Y)(1,1,void 0,{willReadFrequently:!0})),D.drawImage(this.image_,0,0);try{D.getImageData(0,0,1,1),this.tainted_=!1}catch{D=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(c.A.CHANGE)}handleImageError_(){this.imageState_=O.A.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=O.A.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(u){return this.image_||this.initializeImage_(),this.replaceColor_(u),this.canvas_[u]?this.canvas_[u]:this.image_}getPixelRatio(u){return this.replaceColor_(u),this.canvas_[u]?u:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const u=this.size_[0],P=this.size_[1],T=(0,w.Y)(u,P);T.fillRect(0,0,u,P),this.hitDetectionImage_=T.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===O.A.IDLE){this.image_||this.initializeImage_(),this.imageState_=O.A.LOADING;try{void 0!==this.src_&&(this.image_.src=this.src_)}catch{this.handleImageError_()}this.image_ instanceof HTMLImageElement&&(0,C.RA)(this.image_,this.src_).then(u=>{this.image_=u,this.handleImageLoad_()}).catch(this.handleImageError_.bind(this))}}replaceColor_(u){if(!this.color_||this.canvas_[u]||this.imageState_!==O.A.LOADED)return;const P=this.image_,T=document.createElement("canvas");T.width=Math.ceil(P.width*u),T.height=Math.ceil(P.height*u);const E=T.getContext("2d");E.scale(u,u),E.drawImage(P,0,0),E.globalCompositeOperation="multiply",E.fillStyle=(0,d.oJ)(this.color_),E.fillRect(0,0,T.width/u,T.height/u),E.globalCompositeOperation="destination-in",E.drawImage(P,0,0),this.canvas_[u]=T}ready(){return this.ready_||(this.ready_=new Promise(u=>{this.imageState_===O.A.LOADED||this.imageState_===O.A.ERROR?u():this.addEventListener(c.A.CHANGE,function P(){(this.imageState_===O.A.LOADED||this.imageState_===O.A.ERROR)&&(this.removeEventListener(c.A.CHANGE,P),u())})})),this.ready_}}function g(h,u,P,T,E,W){let ne=void 0===u?void 0:x.ue.get(u,P,E);return ne||(ne=new p(h,h instanceof HTMLImageElement?h.src||void 0:u,P,T,E),x.ue.set(u,P,E,ne,W)),W&&ne&&!x.ue.getPattern(u,P,E)&&x.ue.set(u,P,E,ne,W),ne}},7048:(ut,Ie,a)=>{"use strict";a.d(Ie,{ue:()=>x});var o=a(7068),c=a(642),O=a(5664);function w(D,p,g){return p+":"+D+":"+(g?(0,c._j)(g):"null")}const x=new class d{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let p=0;for(const g in this.cache_)!(3&p++)&&!this.cache_[g].hasListener()&&(delete this.cache_[g],delete this.patternCache_[g],--this.cacheSize_)}}get(p,g,y){const h=w(p,g,y);return h in this.cache_?this.cache_[h]:null}getPattern(p,g,y){const h=w(p,g,y);return h in this.patternCache_?this.patternCache_[h]:null}set(p,g,y,h,u){const P=w(p,g,y),T=P in this.cache_;this.cache_[P]=h,u&&(h.getImageState()===o.A.IDLE&&h.load(),h.getImageState()===o.A.LOADING?h.ready().then(()=>{this.patternCache_[P]=(0,O.lr)().createPattern(h.getImage(1),"repeat")}):this.patternCache_[P]=(0,O.lr)().createPattern(h.getImage(1),"repeat")),T||++this.cacheSize_}setSize(p){this.maxCacheSize_=p,this.expire()}}},1967:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>d});var o=a(8618),c=a(8443);class O{constructor(C){this.opacity_=C.opacity,this.rotateWithView_=C.rotateWithView,this.rotation_=C.rotation,this.scale_=C.scale,this.scaleArray_=(0,c.xq)(C.scale),this.displacement_=C.displacement,this.declutterMode_=C.declutterMode}clone(){const C=this.getScale();return new O({opacity:this.getOpacity(),scale:Array.isArray(C)?C.slice():C,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return(0,o.b0)()}getImage(C){return(0,o.b0)()}getHitDetectionImage(){return(0,o.b0)()}getPixelRatio(C){return 1}getImageState(){return(0,o.b0)()}getImageSize(){return(0,o.b0)()}getOrigin(){return(0,o.b0)()}getSize(){return(0,o.b0)()}setDisplacement(C){this.displacement_=C}setOpacity(C){this.opacity_=C}setRotateWithView(C){this.rotateWithView_=C}setRotation(C){this.rotation_=C}setScale(C){this.scale_=C,this.scaleArray_=(0,c.xq)(C)}listenImageChange(C){(0,o.b0)()}load(){(0,o.b0)()}unlistenImageChange(C){(0,o.b0)()}ready(){return Promise.resolve()}}const d=O},1633:(ut,Ie,a)=>{"use strict";a.d(Ie,{A:()=>D});var o=a(7068),c=a(1967),O=a(642),d=a(8896),w=a(5664),C=a(8045);class x extends c.A{constructor(g){super({opacity:1,rotateWithView:void 0!==g.rotateWithView&&g.rotateWithView,rotation:void 0!==g.rotation?g.rotation:0,scale:void 0!==g.scale?g.scale:1,displacement:void 0!==g.displacement?g.displacement:[0,0],declutterMode:g.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=void 0!==g.fill?g.fill:null,this.origin_=[0,0],this.points_=g.points,this.radius_=g.radius,this.radius2_=g.radius2,this.angle_=void 0!==g.angle?g.angle:0,this.stroke_=void 0!==g.stroke?g.stroke:null,this.imageState_=this.fill_&&this.fill_.loading()?o.A.LOADING:o.A.LOADED,this.imageState_===o.A.LOADING&&this.ready().then(()=>this.imageState_=o.A.LOADED),this.render()}clone(){const g=this.getScale(),y=new x({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(g)?g.slice():g,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return y.setOpacity(this.getOpacity()),y}getAnchor(){const g=this.size_,y=this.getDisplacement(),h=this.getScaleArray();return[g[0]/2-y[0]/h[0],g[1]/2+y[1]/h[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(g){this.fill_=g,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(g){let y=this.canvases_[g];if(!y){const h=this.renderOptions_,u=(0,w.Y)(h.size*g,h.size*g);this.draw_(h,u,g),y=u.canvas,this.canvases_[g]=y}return y}getPixelRatio(g){return g}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius_}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(g){this.stroke_=g,this.render()}listenImageChange(g){}load(){}unlistenImageChange(g){}calculateLineJoinSize_(g,y,h){if(0===y||this.points_===1/0||"bevel"!==g&&"miter"!==g)return y;let u=this.radius_,P=void 0===this.radius2_?u:this.radius2_;if(u{"use strict";a.d(Ie,{A:()=>c});class o{constructor(d){this.color_=void 0!==(d=d||{}).color?d.color:null,this.lineCap_=d.lineCap,this.lineDash_=void 0!==d.lineDash?d.lineDash:null,this.lineDashOffset_=d.lineDashOffset,this.lineJoin_=d.lineJoin,this.miterLimit_=d.miterLimit,this.width_=d.width}clone(){const d=this.getColor();return new o({color:Array.isArray(d)?d.slice():d||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getWidth(){return this.width_}setColor(d){this.color_=d}setLineCap(d){this.lineCap_=d}setLineDash(d){this.lineDash_=d}setLineDashOffset(d){this.lineDashOffset_=d}setLineJoin(d){this.lineJoin_=d}setMiterLimit(d){this.miterLimit_=d}setWidth(d){this.width_=d}}const c=o},1043:(ut,Ie,a)=>{"use strict";a.d(Ie,{Ay:()=>y,d1:()=>D,mC:()=>C,mY:()=>p});var o=a(2872),c=a(5637),O=a(4688),d=a(9791);class w{constructor(u){u=u||{},this.geometry_=null,this.geometryFunction_=g,void 0!==u.geometry&&this.setGeometry(u.geometry),this.fill_=void 0!==u.fill?u.fill:null,this.image_=void 0!==u.image?u.image:null,this.renderer_=void 0!==u.renderer?u.renderer:null,this.hitDetectionRenderer_=void 0!==u.hitDetectionRenderer?u.hitDetectionRenderer:null,this.stroke_=void 0!==u.stroke?u.stroke:null,this.text_=void 0!==u.text?u.text:null,this.zIndex_=u.zIndex}clone(){let u=this.getGeometry();return u&&"object"==typeof u&&(u=u.clone()),new w({geometry:u??void 0,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer()??void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(u){this.renderer_=u}setHitDetectionRenderer(u){this.hitDetectionRenderer_=u}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(u){this.fill_=u}getImage(){return this.image_}setImage(u){this.image_=u}getStroke(){return this.stroke_}setStroke(u){this.stroke_=u}getText(){return this.text_}setText(u){this.text_=u}getZIndex(){return this.zIndex_}setGeometry(u){"function"==typeof u?this.geometryFunction_=u:"string"==typeof u?this.geometryFunction_=function(P){return P.get(u)}:u?void 0!==u&&(this.geometryFunction_=function(){return u}):this.geometryFunction_=g,this.geometry_=u}setZIndex(u){this.zIndex_=u}}function C(h){let u;if("function"==typeof h)u=h;else{let P;Array.isArray(h)?P=h:((0,d.v)("function"==typeof h.getZIndex,"Expected an `Style` or an array of `Style`"),P=[h]),u=function(){return P}}return u}let x=null;function D(h,u){if(!x){const P=new c.A({color:"rgba(255,255,255,0.4)"}),T=new O.A({color:"#3399CC",width:1.25});x=[new w({image:new o.A({fill:P,stroke:T,radius:5}),fill:P,stroke:T})]}return x}function p(){const h={},u=[255,255,255,1],P=[0,153,255,1];return h.Polygon=[new w({fill:new c.A({color:[255,255,255,.5]})})],h.MultiPolygon=h.Polygon,h.LineString=[new w({stroke:new O.A({color:u,width:5})}),new w({stroke:new O.A({color:P,width:3})})],h.MultiLineString=h.LineString,h.Circle=h.Polygon.concat(h.LineString),h.Point=[new w({image:new o.A({radius:6,fill:new c.A({color:P}),stroke:new O.A({color:u,width:1.5})}),zIndex:1/0})],h.MultiPoint=h.Point,h.GeometryCollection=h.Polygon.concat(h.LineString,h.Point),h}function g(h){return h.getGeometry()}const y=w},8828:(ut,Ie,a)=>{"use strict";a.d(Ie,{L:()=>o,R:()=>c});const o=42,c=256},9984:(ut,Ie,a)=>{"use strict";a.d(Ie,{Bb:()=>D,MY:()=>P,T9:()=>E,Tl:()=>h,Zz:()=>u,cL:()=>d,dI:()=>de,e$:()=>p,hs:()=>g,k3:()=>x,lw:()=>w,rQ:()=>y,vt:()=>O});var o=a(9791);const c=new Array(6);function O(){return[1,0,0,1,0,0]}function d(ie){return C(ie,1,0,0,1,0,0)}function w(ie,Z){const ae=ie[0],Le=ie[1],_e=ie[2],Ce=ie[3],Ae=ie[4],ke=ie[5],Ue=Z[0],ve=Z[1],ye=Z[2],Se=Z[3],z=Z[4],te=Z[5];return ie[0]=ae*Ue+_e*ve,ie[1]=Le*Ue+Ce*ve,ie[2]=ae*ye+_e*Se,ie[3]=Le*ye+Ce*Se,ie[4]=ae*z+_e*te+Ae,ie[5]=Le*z+Ce*te+ke,ie}function C(ie,Z,ae,Le,_e,Ce,Ae){return ie[0]=Z,ie[1]=ae,ie[2]=Le,ie[3]=_e,ie[4]=Ce,ie[5]=Ae,ie}function x(ie,Z){return ie[0]=Z[0],ie[1]=Z[1],ie[2]=Z[2],ie[3]=Z[3],ie[4]=Z[4],ie[5]=Z[5],ie}function D(ie,Z){const ae=Z[0],Le=Z[1];return Z[0]=ie[0]*ae+ie[2]*Le+ie[4],Z[1]=ie[1]*ae+ie[3]*Le+ie[5],Z}function p(ie,Z){const ae=Math.cos(Z),Le=Math.sin(Z);return w(ie,C(c,ae,Le,-Le,ae,0,0))}function g(ie,Z,ae){return w(ie,C(c,Z,0,0,ae,0,0))}function y(ie,Z,ae){return C(ie,Z,0,0,ae,0,0)}function h(ie,Z,ae){return w(ie,C(c,1,0,0,1,Z,ae))}function u(ie,Z,ae,Le,_e,Ce,Ae,ke){const Ue=Math.sin(Ce),ve=Math.cos(Ce);return ie[0]=Le*ve,ie[1]=_e*Ue,ie[2]=-Le*Ue,ie[3]=_e*ve,ie[4]=Ae*Le*ve-ke*Le*Ue+Z,ie[5]=Ae*_e*Ue+ke*_e*ve+ae,ie}function P(ie,Z,ae,Le,_e,Ce,Ae){return de(u([1,0,0,1,0,0],ie,Z,ae,Le,_e,Ce,Ae))}function E(ie,Z){const ae=function W(ie){return ie[0]*ie[3]-ie[1]*ie[2]}(Z);(0,o.v)(0!==ae,"Transformation matrix cannot be inverted");const Le=Z[0],_e=Z[1],Ce=Z[2],Ae=Z[3],ke=Z[4],Ue=Z[5];return ie[0]=Ae/ae,ie[1]=-_e/ae,ie[2]=-Ce/ae,ie[3]=Le/ae,ie[4]=(Ce*Ue-Ae*ke)/ae,ie[5]=-(Le*Ue-_e*ke)/ae,ie}const ne=[1e6,1e6,1e6,1e6,2,2];function de(ie){return"matrix("+ie.map((ae,Le)=>Math.round(ae*ne[Le])/ne[Le]).join(", ")+")"}},8618:(ut,Ie,a)=>{"use strict";function o(){throw new Error("Unimplemented abstract method.")}a.d(Ie,{b0:()=>o,v6:()=>O});let c=0;function O(w){return w.ol_uid||(w.ol_uid=String(++c))}},467:(ut,Ie,a)=>{"use strict";function o(O,d,w,C,x,D,p){try{var g=O[D](p),y=g.value}catch(h){return void w(h)}g.done?d(y):Promise.resolve(y).then(C,x)}function c(O){return function(){var d=this,w=arguments;return new Promise(function(C,x){var D=O.apply(d,w);function p(y){o(D,C,x,p,g,"next",y)}function g(y){o(D,C,x,p,g,"throw",y)}p(void 0)})}}a.d(Ie,{A:()=>c})},1635:(ut,Ie,a)=>{"use strict";function h(K,N,V,I){return new(V||(V=Promise))(function(j,ge){function Me(se){try{R(I.next(se))}catch(Ee){ge(Ee)}}function oe(se){try{R(I.throw(se))}catch(Ee){ge(Ee)}}function R(se){se.done?j(se.value):function M(j){return j instanceof V?j:new V(function(ge){ge(j)})}(se.value).then(Me,oe)}R((I=I.apply(K,N||[])).next())})}function Z(K){return this instanceof Z?(this.v=K,this):new Z(K)}function ae(K,N,V){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var M,I=V.apply(K,N||[]),j=[];return M=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),Me("next"),Me("throw"),Me("return",function ge(Y){return function(Re){return Promise.resolve(Re).then(Y,Ee)}}),M[Symbol.asyncIterator]=function(){return this},M;function Me(Y,Re){I[Y]&&(M[Y]=function(De){return new Promise(function(nt,ht){j.push([Y,De,nt,ht])>1||oe(Y,De)})},Re&&(M[Y]=Re(M[Y])))}function oe(Y,Re){try{!function R(Y){Y.value instanceof Z?Promise.resolve(Y.value.v).then(se,Ee):tt(j[0][2],Y)}(I[Y](Re))}catch(De){tt(j[0][3],De)}}function se(Y){oe("next",Y)}function Ee(Y){oe("throw",Y)}function tt(Y,Re){Y(Re),j.shift(),j.length&&oe(j[0][0],j[0][1])}}function _e(K){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var V,N=K[Symbol.asyncIterator];return N?N.call(K):(K=function E(K){var N="function"==typeof Symbol&&Symbol.iterator,V=N&&K[N],I=0;if(V)return V.call(K);if(K&&"number"==typeof K.length)return{next:function(){return K&&I>=K.length&&(K=void 0),{value:K&&K[I++],done:!K}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")}(K),V={},I("next"),I("throw"),I("return"),V[Symbol.asyncIterator]=function(){return this},V);function I(j){V[j]=K[j]&&function(ge){return new Promise(function(Me,oe){!function M(j,ge,Me,oe){Promise.resolve(oe).then(function(R){j({value:R,done:Me})},ge)}(Me,oe,(ge=K[j](ge)).done,ge.value)})}}}a.d(Ie,{AQ:()=>ae,N3:()=>Z,sH:()=>h,xN:()=>_e}),"function"==typeof SuppressedError&&SuppressedError}},ut=>{ut(ut.s=7568)}]); \ No newline at end of file