mirror of
https://github.com/MikroWizard/docker-compose-deployment.git
synced 2025-06-25 20:08:35 +02:00
1 line
No EOL
84 KiB
JavaScript
1 line
No EOL
84 KiB
JavaScript
"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[84],{5084:(it,_e,c)=>{c.d(_e,{Vh:()=>$e,X6:()=>tt,bU:()=>he,bZ:()=>Q});var T=c(8617),b=c(7987),M=c(6939),P=c(177),t=c(4438),w=c(8834),pe=c(5478),h=c(6600),y=c(1413),m=c(8359),O=c(7786),B=c(7673),o=c(7336),S=c(8203),E=c(6860),Y=c(6697),N=c(9172),me=c(5964),ge=c(4085),u=c(9969),L=c(9417),fe=c(6467),De=c(9631);const ve=["mat-calendar-body",""];function be(n,d){if(1&n&&(t.j41(0,"tr",0)(1,"td",3),t.EFF(2),t.k0s()()),2&n){const e=t.XpG();t.R7$(),t.xc7("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),t.BMQ("colspan",e.numCols),t.R7$(),t.SpI(" ",e.label," ")}}function ye(n,d){if(1&n&&(t.j41(0,"td",3),t.EFF(1),t.k0s()),2&n){const e=t.XpG(2);t.xc7("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),t.BMQ("colspan",e._firstRowOffset),t.R7$(),t.SpI(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Ce(n,d){if(1&n){const e=t.RV6();t.j41(0,"td",6)(1,"button",7),t.bIt("click",function(a){const r=t.eBV(e).$implicit,s=t.XpG(2);return t.Njj(s._cellClicked(r,a))})("focus",function(a){const r=t.eBV(e).$implicit,s=t.XpG(2);return t.Njj(s._emitActiveDateChange(r,a))}),t.j41(2,"span",8),t.EFF(3),t.k0s(),t.nrm(4,"span",9),t.k0s()()}if(2&n){const e=d.$implicit,i=d.$index,a=t.XpG().$index,r=t.XpG();t.xc7("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),t.BMQ("data-mat-row",a)("data-mat-col",i),t.R7$(),t.AVh("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(a,i))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,a,i))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,a,i))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),t.Y8G("ngClass",e.cssClasses)("tabindex",r._isActiveCell(a,i)?0:-1),t.BMQ("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null)("aria-describedby",r._getDescribedby(e.compareValue)),t.R7$(),t.AVh("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),t.R7$(),t.SpI(" ",e.displayValue," ")}}function Ae(n,d){if(1&n&&(t.j41(0,"tr",1),t.DNE(1,ye,2,6,"td",4),t.Z7z(2,Ce,5,48,"td",5,t.fX1),t.k0s()),2&n){const e=d.$implicit,i=d.$index,a=t.XpG();t.R7$(),t.vxM(1,0===i&&a._firstRowOffset?1:-1),t.R7$(),t.Dyx(e)}}function ke(n,d){if(1&n&&(t.j41(0,"th",2)(1,"span",6),t.EFF(2),t.k0s(),t.j41(3,"span",3),t.EFF(4),t.k0s()()),2&n){const e=d.$implicit;t.R7$(2),t.JRh(e.long),t.R7$(2),t.JRh(e.narrow)}}const Me=["*"];function we(n,d){}function Ee(n,d){if(1&n){const e=t.RV6();t.j41(0,"mat-month-view",2),t.mxI("activeDateChange",function(a){t.eBV(e);const r=t.XpG();return t.DH7(r.activeDate,a)||(r.activeDate=a),t.Njj(a)}),t.bIt("_userSelection",function(a){t.eBV(e);const r=t.XpG();return t.Njj(r._dateSelected(a))})("dragStarted",function(a){t.eBV(e);const r=t.XpG();return t.Njj(r._dragStarted(a))})("dragEnded",function(a){t.eBV(e);const r=t.XpG();return t.Njj(r._dragEnded(a))}),t.k0s()}if(2&n){const e=t.XpG();t.R50("activeDate",e.activeDate),t.Y8G("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function Ie(n,d){if(1&n){const e=t.RV6();t.j41(0,"mat-year-view",3),t.mxI("activeDateChange",function(a){t.eBV(e);const r=t.XpG();return t.DH7(r.activeDate,a)||(r.activeDate=a),t.Njj(a)}),t.bIt("monthSelected",function(a){t.eBV(e);const r=t.XpG();return t.Njj(r._monthSelectedInYearView(a))})("selectedChange",function(a){t.eBV(e);const r=t.XpG();return t.Njj(r._goToDateInView(a,"month"))}),t.k0s()}if(2&n){const e=t.XpG();t.R50("activeDate",e.activeDate),t.Y8G("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Ve(n,d){if(1&n){const e=t.RV6();t.j41(0,"mat-multi-year-view",4),t.mxI("activeDateChange",function(a){t.eBV(e);const r=t.XpG();return t.DH7(r.activeDate,a)||(r.activeDate=a),t.Njj(a)}),t.bIt("yearSelected",function(a){t.eBV(e);const r=t.XpG();return t.Njj(r._yearSelectedInMultiYearView(a))})("selectedChange",function(a){t.eBV(e);const r=t.XpG();return t.Njj(r._goToDateInView(a,"year"))}),t.k0s()}if(2&n){const e=t.XpG();t.R50("activeDate",e.activeDate),t.Y8G("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Se(n,d){}const Re=["button"],xe=[[["","matDatepickerToggleIcon",""]]],Fe=["[matDatepickerToggleIcon]"];function Te(n,d){1&n&&(t.qSk(),t.j41(0,"svg",2),t.nrm(1,"path",3),t.k0s())}let I=(()=>{class n{constructor(){this.changes=new y.B,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();class j{constructor(d,e,i,a,r={},s=d,l){this.value=d,this.displayValue=e,this.ariaLabel=i,this.enabled=a,this.cssClasses=r,this.compareValue=s,this.rawValue=l}}let Pe=1;const Z=(0,E.BQ)({passive:!1,capture:!0}),D=(0,E.BQ)({passive:!0,capture:!0}),R=(0,E.BQ)({passive:!0});let C=(()=>{class n{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(e,i){this._elementRef=e,this._ngZone=i,this._platform=(0,t.WQX)(E.OD),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new t.bkB,this.previewChange=new t.bkB,this.activeDateChange=new t.bkB,this.dragStarted=new t.bkB,this.dragEnded=new t.bkB,this._didDragSinceMouseDown=!1,this._enterHandler=a=>{if(this._skipNextFocus&&"focus"===a.type)this._skipNextFocus=!1;else if(a.target&&this.isRange){const r=this._getCellFromElement(a.target);r&&this._ngZone.run(()=>this.previewChange.emit({value:r.enabled?r:null,event:a}))}},this._touchmoveHandler=a=>{if(!this.isRange)return;const r=q(a),s=r?this._getCellFromElement(r):null;r!==a.target&&(this._didDragSinceMouseDown=!0),U(a.target)&&a.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:s?.enabled?s:null,event:a}))},this._leaveHandler=a=>{null!==this.previewEnd&&this.isRange&&("blur"!==a.type&&(this._didDragSinceMouseDown=!0),a.target&&this._getCellFromElement(a.target)&&(!a.relatedTarget||!this._getCellFromElement(a.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:a})))},this._mousedownHandler=a=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const r=a.target&&this._getCellFromElement(a.target);!r||!this._isInRange(r.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:r.rawValue,event:a})})},this._mouseupHandler=a=>{if(!this.isRange)return;const r=U(a.target);r?r.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const s=this._getCellFromElement(r);this.dragEnded.emit({value:s?.rawValue??null,event:a})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:a})})},this._touchendHandler=a=>{const r=q(a);r&&this._mouseupHandler({target:r})},this._id="mat-calendar-body-"+Pe++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,i.runOutsideAngular(()=>{const a=e.nativeElement;a.addEventListener("touchmove",this._touchmoveHandler,Z),a.addEventListener("mouseenter",this._enterHandler,D),a.addEventListener("focus",this._enterHandler,D),a.addEventListener("mouseleave",this._leaveHandler,D),a.addEventListener("blur",this._leaveHandler,D),a.addEventListener("mousedown",this._mousedownHandler,R),a.addEventListener("touchstart",this._mousedownHandler,R),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(e,i){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const i=e.numCols,{rows:a,numCols:r}=this;(e.rows||i)&&(this._firstRowOffset=a&&a.length&&a[0].length?r-a[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/r+"%"),(i||!this._cellWidth)&&(this._cellWidth=100/r+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("touchmove",this._touchmoveHandler,Z),e.removeEventListener("mouseenter",this._enterHandler,D),e.removeEventListener("focus",this._enterHandler,D),e.removeEventListener("mouseleave",this._leaveHandler,D),e.removeEventListener("blur",this._leaveHandler,D),e.removeEventListener("mousedown",this._mousedownHandler,R),e.removeEventListener("touchstart",this._mousedownHandler,R),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(e,i){let a=e*this.numCols+i;return e&&(a-=this._firstRowOffset),a==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Y.s)(1)).subscribe(()=>{setTimeout(()=>{const i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return G(e,this.startValue,this.endValue)}_isRangeEnd(e){return X(e,this.startValue,this.endValue)}_isInRange(e){return K(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return G(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,a){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[i][a-1];if(!r){const s=this.rows[i-1];r=s&&s[s.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,i,a){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[i][a+1];if(!r){const s=this.rows[i+1];r=s&&s[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return X(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return K(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return G(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return X(e,this.previewStart,this.previewEnd)}_isInPreview(e){return K(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){return this.isRange?this.startValue===e&&this.endValue===e?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===e?this._startDateLabelId:this.endValue===e?this._endDateLabelId:null:null}_getCellFromElement(e){const i=U(e);if(i){const a=i.getAttribute("data-mat-row"),r=i.getAttribute("data-mat-col");if(a&&r)return this.rows[parseInt(a)][parseInt(r)]}return null}static#e=this.\u0275fac=function(i){return new(i||n)(t.rXU(t.aKT),t.rXU(t.SKi))};static#t=this.\u0275cmp=t.VBU({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],standalone:!0,features:[t.OA$,t.aNF],attrs:ve,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(i,a){1&i&&(t.DNE(0,be,3,6,"tr",0),t.Z7z(1,Ae,4,1,"tr",1,t.fX1),t.j41(3,"label",2),t.EFF(4),t.k0s(),t.j41(5,"label",2),t.EFF(6),t.k0s()),2&i&&(t.vxM(0,a._firstRowOffset<a.labelMinRequiredCells?0:-1),t.R7$(),t.Dyx(a.rows),t.R7$(2),t.Y8G("id",a._startDateLabelId),t.R7$(),t.SpI(" ",a.startDateAccessibleName,"\n"),t.R7$(),t.Y8G("id",a._endDateLabelId),t.R7$(),t.SpI(" ",a.endDateAccessibleName,"\n"))},dependencies:[P.YU],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color)}.mat-calendar-body-label{height:0;line-height:0;text-align:start;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size);font-weight:var(--mat-datepicker-calendar-body-label-text-weight);color:var(--mat-datepicker-calendar-body-label-text-color)}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview{color:var(--mat-datepicker-calendar-date-preview-state-outline-color)}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}'],encapsulation:2,changeDetection:0})}return n})();function H(n){return"TD"===n?.nodeName}function U(n){let d;return H(n)?d=n:H(n.parentNode)?d=n.parentNode:H(n.parentNode?.parentNode)&&(d=n.parentNode.parentNode),null!=d?.getAttribute("data-mat-row")?d:null}function G(n,d,e){return null!==e&&d!==e&&n<e&&n===d}function X(n,d,e){return null!==d&&d!==e&&n>=d&&n===e}function K(n,d,e,i){return i&&null!==d&&null!==e&&d!==e&&n>=d&&n<=e}function q(n){const d=n.changedTouches[0];return document.elementFromPoint(d.clientX,d.clientY)}class _{constructor(d,e){this.start=d,this.end=e}}let v=(()=>{class n{constructor(e,i){this.selection=e,this._adapter=i,this._selectionChanged=new y.B,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,i){const a=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:a})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static#e=this.\u0275fac=function(i){t.QTQ()};static#t=this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac})}return n})(),Oe=(()=>{class n extends v{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new n(this._adapter);return e.updateSelection(this.selection,this),e}static#e=this.\u0275fac=function(i){return new(i||n)(t.KVO(h.MJ))};static#t=this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac})}return n})();const ee={provide:v,deps:[[new t.Xx1,new t.kdw,v],h.MJ],useFactory:function Ye(n,d){return n||new Oe(d)}},x=new t.nKC("MAT_DATE_RANGE_SELECTION_STRATEGY");let te=(()=>{class n{get activeDate(){return this._activeDate}set activeDate(e){const i=this._activeDate,a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(a,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof _?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,i,a,r,s){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=a,this._dir=r,this._rangeStrategy=s,this._rerenderSubscription=m.yU.EMPTY,this.activeDrag=null,this.selectedChange=new t.bkB,this._userSelection=new t.bkB,this.dragStarted=new t.bkB,this.dragEnded=new t.bkB,this.activeDateChange=new t.bkB,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,N.Z)(null)).subscribe(()=>this._init())}ngOnChanges(e){const i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const i=e.value,a=this._getDateFromDayOfMonth(i);let r,s;this._selected instanceof _?(r=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):r=s=this._getDateInCurrentMonth(this._selected),(r!==i||s!==i)&&this.selectedChange.emit(a),this._userSelection.emit({value:a,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const a=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(a,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const i=this._activeDate,a=this._isRtl();switch(e.keyCode){case o.UQ:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,a?1:-1);break;case o.LE:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,a?-1:1);break;case o.i7:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case o.n6:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case o.yZ:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case o.Kp:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case o.w_:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case o.dB:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case o.Fm:case o.t6:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case o._f:return void(null!=this._previewEnd&&!(0,o.rp)(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===o.t6||e.keyCode===o.Fm)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:i}){if(this._rangeStrategy){const a=i?i.rawValue:null,r=this._rangeStrategy.createPreview(a,this.selected,e);if(this._previewStart=this._getCellCompareValue(r.start),this._previewEnd=this._getCellCompareValue(r.end),this.activeDrag&&a){const s=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,a,e);s&&(this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){if(this.activeDrag)if(e.value){const i=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:i??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow");let r=this._dateAdapter.getDayOfWeekNames("long").map((s,l)=>({long:s,narrow:i[l]}));this._weekdays=r.slice(e).concat(r.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames();this._weeks=[[]];for(let a=0,r=this._firstWeekOffset;a<e;a++,r++){7==r&&(this._weeks.push([]),r=0);const s=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),a+1),l=this._shouldEnableDate(s),g=this._dateAdapter.format(s,this._dateFormats.display.dateA11yLabel),f=this.dateClass?this.dateClass(s,"month"):void 0;this._weeks[this._weeks.length-1].push(new j(a+1,i[a],g,l,f,this._getCellCompareValue(s),s))}}_shouldEnableDate(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!(!e||!i||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(i)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){const i=this._dateAdapter.getYear(e),a=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(i,a,r).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof _?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}static#e=this.\u0275fac=function(i){return new(i||n)(t.rXU(t.gRc),t.rXU(h.de,8),t.rXU(h.MJ,8),t.rXU(S.dS,8),t.rXU(x,8))};static#t=this.\u0275cmp=t.VBU({type:n,selectors:[["mat-month-view"]],viewQuery:function(i,a){if(1&i&&t.GBs(C,5),2&i){let r;t.mGM(r=t.lsd())&&(a._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],standalone:!0,features:[t.OA$,t.aNF],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(i,a){1&i&&(t.j41(0,"table",0)(1,"thead",1)(2,"tr"),t.Z7z(3,ke,5,2,"th",2,t.fX1),t.k0s(),t.j41(5,"tr",3),t.nrm(6,"th",4),t.k0s()(),t.j41(7,"tbody",5),t.bIt("selectedValueChange",function(s){return a._dateSelected(s)})("activeDateChange",function(s){return a._updateActiveDate(s)})("previewChange",function(s){return a._previewChanged(s)})("dragStarted",function(s){return a.dragStarted.emit(s)})("dragEnded",function(s){return a._dragEnded(s)})("keyup",function(s){return a._handleCalendarBodyKeyup(s)})("keydown",function(s){return a._handleCalendarBodyKeydown(s)}),t.k0s()()),2&i&&(t.R7$(3),t.Dyx(a._weekdays),t.R7$(4),t.Y8G("label",a._monthLabel)("rows",a._weeks)("todayValue",a._todayDate)("startValue",a._rangeStart)("endValue",a._rangeEnd)("comparisonStart",a._comparisonRangeStart)("comparisonEnd",a._comparisonRangeEnd)("previewStart",a._previewStart)("previewEnd",a._previewEnd)("isRange",a._isRange)("labelMinRequiredCells",3)("activeCell",a._dateAdapter.getDate(a.activeDate)-1)("startDateAccessibleName",a.startDateAccessibleName)("endDateAccessibleName",a.endDateAccessibleName))},dependencies:[C],encapsulation:2,changeDetection:0})}return n})();const p=24;let ae=(()=>{class n{get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(a,this.minDate,this.maxDate),ie(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof _?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,i,a){this._changeDetectorRef=e,this._dateAdapter=i,this._dir=a,this._rerenderSubscription=m.yU.EMPTY,this.selectedChange=new t.bkB,this.yearSelected=new t.bkB,this.activeDateChange=new t.bkB,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,N.Z)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const i=this._dateAdapter.getYear(this._activeDate)-V(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let a=0,r=[];a<p;a++)r.push(i+a),4==r.length&&(this._years.push(r.map(s=>this._createCellForYear(s))),r=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const i=e.value,a=this._dateAdapter.createDate(i,0,1),r=this._getDateFromYear(i);this.yearSelected.emit(a),this.selectedChange.emit(r)}_updateActiveDate(e){const a=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(a,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const i=this._activeDate,a=this._isRtl();switch(e.keyCode){case o.UQ:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a?1:-1);break;case o.LE:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a?-1:1);break;case o.i7:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case o.n6:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case o.yZ:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-V(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case o.Kp:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,p-V(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case o.w_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10*-p:-p);break;case o.dB:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10*p:p);break;case o.Fm:case o.t6:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===o.t6||e.keyCode===o.Fm)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return V(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const i=this._dateAdapter.getMonth(this.activeDate),a=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),a))}_createCellForYear(e){const i=this._dateAdapter.createDate(e,0,1),a=this._dateAdapter.getYearName(i),r=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new j(e,a,a,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let a=this._dateAdapter.createDate(e,0,1);this._dateAdapter.getYear(a)==e;a=this._dateAdapter.addCalendarDays(a,1))if(this.dateFilter(a))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(e){if(this._selectedYear=null,e instanceof _){const i=e.start||e.end;i&&(this._selectedYear=this._dateAdapter.getYear(i))}else e&&(this._selectedYear=this._dateAdapter.getYear(e))}static#e=this.\u0275fac=function(i){return new(i||n)(t.rXU(t.gRc),t.rXU(h.MJ,8),t.rXU(S.dS,8))};static#t=this.\u0275cmp=t.VBU({type:n,selectors:[["mat-multi-year-view"]],viewQuery:function(i,a){if(1&i&&t.GBs(C,5),2&i){let r;t.mGM(r=t.lsd())&&(a._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],standalone:!0,features:[t.aNF],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell"]],template:function(i,a){1&i&&(t.j41(0,"table",0)(1,"thead",1)(2,"tr"),t.nrm(3,"th",2),t.k0s()(),t.j41(4,"tbody",3),t.bIt("selectedValueChange",function(s){return a._yearSelected(s)})("activeDateChange",function(s){return a._updateActiveDate(s)})("keyup",function(s){return a._handleCalendarBodyKeyup(s)})("keydown",function(s){return a._handleCalendarBodyKeydown(s)}),t.k0s()()),2&i&&(t.R7$(4),t.Y8G("rows",a._years)("todayValue",a._todayYear)("startValue",a._selectedYear)("endValue",a._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",a._getActiveCell()))},dependencies:[C],encapsulation:2,changeDetection:0})}return n})();function ie(n,d,e,i,a){const r=n.getYear(d),s=n.getYear(e),l=re(n,i,a);return Math.floor((r-l)/p)===Math.floor((s-l)/p)}function V(n,d,e,i){return function He(n,d){return(n%d+d)%d}(n.getYear(d)-re(n,e,i),p)}function re(n,d,e){let i=0;return e?i=n.getYear(e)-p+1:d&&(i=n.getYear(d)),i}let ne=(()=>{class n{get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(a,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof _?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,i,a,r){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=a,this._dir=r,this._rerenderSubscription=m.yU.EMPTY,this.selectedChange=new t.bkB,this.monthSelected=new t.bkB,this.activeDateChange=new t.bkB,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,N.Z)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const i=e.value,a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(a);const r=this._getDateFromMonth(i);this.selectedChange.emit(r)}_updateActiveDate(e){const a=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(a,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const i=this._activeDate,a=this._isRtl();switch(e.keyCode){case o.UQ:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,a?1:-1);break;case o.LE:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,a?-1:1);break;case o.i7:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case o.n6:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case o.yZ:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case o.Kp:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case o.w_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case o.dB:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case o.Fm:case o.t6:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===o.t6||e.keyCode===o.Fm)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(a=>this._createCellForMonth(a,e[a]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){const i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),a=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),a))}_createCellForMonth(e,i){const a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(a,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(a,"year"):void 0;return new j(e,i.toLocaleUpperCase(),r,this._shouldEnableMonth(e),s)}_shouldEnableMonth(e){const i=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;for(let r=this._dateAdapter.createDate(i,e,1);this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){const a=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>a||e===a&&i>r}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){const a=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e<a||e===a&&i<r}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(e){this._selectedMonth=e instanceof _?this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end):this._getMonthInCurrentYear(e)}static#e=this.\u0275fac=function(i){return new(i||n)(t.rXU(t.gRc),t.rXU(h.de,8),t.rXU(h.MJ,8),t.rXU(S.dS,8))};static#t=this.\u0275cmp=t.VBU({type:n,selectors:[["mat-year-view"]],viewQuery:function(i,a){if(1&i&&t.GBs(C,5),2&i){let r;t.mGM(r=t.lsd())&&(a._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],standalone:!0,features:[t.aNF],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell"]],template:function(i,a){1&i&&(t.j41(0,"table",0)(1,"thead",1)(2,"tr"),t.nrm(3,"th",2),t.k0s()(),t.j41(4,"tbody",3),t.bIt("selectedValueChange",function(s){return a._monthSelected(s)})("activeDateChange",function(s){return a._updateActiveDate(s)})("keyup",function(s){return a._handleCalendarBodyKeyup(s)})("keydown",function(s){return a._handleCalendarBodyKeydown(s)}),t.k0s()()),2&i&&(t.R7$(4),t.Y8G("label",a._yearLabel)("rows",a._months)("todayValue",a._todayMonth)("startValue",a._selectedMonth)("endValue",a._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",a._dateAdapter.getMonth(a.activeDate)))},dependencies:[C],encapsulation:2,changeDetection:0})}return n})(),Ue=1,se=(()=>{class n{constructor(e,i,a,r,s){this._intl=e,this.calendar=i,this._dateAdapter=a,this._dateFormats=r,this._id="mat-calendar-header-"+Ue++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-p)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:p)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,i){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):ie(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const i=this._dateAdapter.getYear(this.calendar.activeDate)-V(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),a=i+p-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(a,0,1))]}static#e=this.\u0275fac=function(i){return new(i||n)(t.rXU(I),t.rXU((0,t.Rfq)(()=>W)),t.rXU(h.MJ,8),t.rXU(h.de,8),t.rXU(t.gRc))};static#t=this.\u0275cmp=t.VBU({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[t.aNF],ngContentSelectors:Me,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],[1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"]],template:function(i,a){1&i&&(t.NAR(),t.j41(0,"div",0)(1,"div",1)(2,"label",2),t.EFF(3),t.k0s(),t.j41(4,"button",3),t.bIt("click",function(){return a.currentPeriodClicked()}),t.j41(5,"span",4),t.EFF(6),t.k0s(),t.qSk(),t.j41(7,"svg",5),t.nrm(8,"polygon",6),t.k0s()(),t.joV(),t.nrm(9,"div",7),t.SdG(10),t.j41(11,"button",8),t.bIt("click",function(){return a.previousClicked()}),t.k0s(),t.j41(12,"button",9),t.bIt("click",function(){return a.nextClicked()}),t.k0s()()()),2&i&&(t.R7$(2),t.Y8G("id",a._periodButtonLabelId),t.R7$(),t.JRh(a.periodButtonDescription),t.R7$(),t.BMQ("aria-label",a.periodButtonLabel)("aria-describedby",a._periodButtonLabelId),t.R7$(2),t.JRh(a.periodButtonText),t.R7$(),t.AVh("mat-calendar-invert","month"!==a.calendar.currentView),t.R7$(4),t.Y8G("disabled",!a.previousEnabled()),t.BMQ("aria-label",a.prevButtonLabel),t.R7$(),t.Y8G("disabled",!a.nextEnabled()),t.BMQ("aria-label",a.nextButtonLabel))},dependencies:[w.$z,w.iY],encapsulation:2,changeDetection:0})}return n})(),W=(()=>{class n{get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof _?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&this.viewChanged.emit(i)}constructor(e,i,a,r){this._dateAdapter=i,this._dateFormats=a,this._changeDetectorRef=r,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new t.bkB,this.yearSelected=new t.bkB,this.monthSelected=new t.bkB,this.viewChanged=new t.bkB(!0),this._userSelection=new t.bkB,this._userDragDrop=new t.bkB,this._activeDrag=null,this.stateChanges=new y.B,this._intlChanges=e.changes.subscribe(()=>{r.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new M.A8(this.headerComponent||se),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,a=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=i||a||e.dateFilter;if(r&&!r.firstChange){const s=this._getCurrentViewComponent();s&&(this._changeDetectorRef.detectChanges(),s._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const i=e.value;(this.selected instanceof _||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static#e=this.\u0275fac=function(i){return new(i||n)(t.rXU(I),t.rXU(h.MJ,8),t.rXU(h.de,8),t.rXU(t.gRc))};static#t=this.\u0275cmp=t.VBU({type:n,selectors:[["mat-calendar"]],viewQuery:function(i,a){if(1&i&&(t.GBs(te,5),t.GBs(ne,5),t.GBs(ae,5)),2&i){let r;t.mGM(r=t.lsd())&&(a.monthView=r.first),t.mGM(r=t.lsd())&&(a.yearView=r.first),t.mGM(r=t.lsd())&&(a.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],standalone:!0,features:[t.Jv_([ee]),t.OA$,t.aNF],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(i,a){if(1&i&&(t.DNE(0,we,0,0,"ng-template",0),t.j41(1,"div",1),t.DNE(2,Ee,1,11)(3,Ie,1,6)(4,Ve,1,6),t.k0s()),2&i){let r;t.Y8G("cdkPortalOutlet",a._calendarHeaderPortal),t.R7$(2),t.vxM(2,"month"===(r=a.currentView)?2:"year"===r?3:"multi-year"===r?4:-1)}},dependencies:[M.I3,T.vR,te,ne,ae],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight);--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return n})();const de={transformPanel:(0,u.hZ)("transformPanel",[(0,u.kY)("void => enter-dropdown",(0,u.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,u.i7)([(0,u.iF)({opacity:0,transform:"scale(1, 0.8)"}),(0,u.iF)({opacity:1,transform:"scale(1, 1)"})]))),(0,u.kY)("void => enter-dialog",(0,u.i0)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,u.i7)([(0,u.iF)({opacity:0,transform:"scale(0.7)"}),(0,u.iF)({transform:"none",opacity:1})]))),(0,u.kY)("* => void",(0,u.i0)("100ms linear",(0,u.iF)({opacity:0})))]),fadeInCalendar:(0,u.hZ)("fadeInCalendar",[(0,u.wk)("void",(0,u.iF)({opacity:0})),(0,u.wk)("enter",(0,u.iF)({opacity:1})),(0,u.kY)("void => *",(0,u.i0)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Ge=0;const oe=new t.nKC("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{const n=(0,t.WQX)(b.hJ);return()=>n.scrollStrategies.reposition()}}),Ke={provide:oe,deps:[b.hJ],useFactory:function Xe(n){return()=>n.scrollStrategies.reposition()}};let le=(()=>{class n{constructor(e,i,a,r,s,l){this._elementRef=e,this._changeDetectorRef=i,this._globalModel=a,this._dateAdapter=r,this._rangeSelectionStrategy=s,this._subscriptions=new m.yU,this._animationDone=new y.B,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=l.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const i=this._model.selection,a=e.value,r=i instanceof _;if(r&&this._rangeSelectionStrategy){const s=this._rangeSelectionStrategy.selectionFinished(a,i,e.event);this._model.updateSelection(s,this)}else a&&(r||!this._dateAdapter.sameDate(a,i))&&this._model.add(a);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(e){this._isAnimating="start"===e.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}static#e=this.\u0275fac=function(i){return new(i||n)(t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(v),t.rXU(h.MJ),t.rXU(x,8),t.rXU(I))};static#t=this.\u0275cmp=t.VBU({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(i,a){if(1&i&&t.GBs(W,5),2&i){let r;t.mGM(r=t.lsd())&&(a._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(i,a){1&i&&t.Kam("@transformPanel.start",function(s){return a._handleAnimationEvent(s)})("@transformPanel.done",function(s){return a._handleAnimationEvent(s)}),2&i&&(t.zvX("@transformPanel",a._animationState),t.HbH(a.color?"mat-"+a.color:""),t.AVh("mat-datepicker-content-touch",a.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[t.aNF],decls:5,vars:27,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(i,a){if(1&i&&(t.j41(0,"div",0)(1,"mat-calendar",1),t.bIt("yearSelected",function(s){return a.datepicker._selectYear(s)})("monthSelected",function(s){return a.datepicker._selectMonth(s)})("viewChanged",function(s){return a.datepicker._viewChanged(s)})("_userSelection",function(s){return a._handleUserSelection(s)})("_userDragDrop",function(s){return a._handleUserDragDrop(s)}),t.k0s(),t.DNE(2,Se,0,0,"ng-template",2),t.j41(3,"button",3),t.bIt("focus",function(){return a._closeButtonFocused=!0})("blur",function(){return a._closeButtonFocused=!1})("click",function(){return a.datepicker.close()}),t.EFF(4),t.k0s()()),2&i){let r;t.AVh("mat-datepicker-content-container-with-custom-header",a.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",a._actionsPortal),t.BMQ("aria-modal",!0)("aria-labelledby",null!==(r=a._dialogLabelId)&&void 0!==r?r:void 0),t.R7$(),t.HbH(a.datepicker.panelClass),t.Y8G("id",a.datepicker.id)("startAt",a.datepicker.startAt)("startView",a.datepicker.startView)("minDate",a.datepicker._getMinDate())("maxDate",a.datepicker._getMaxDate())("dateFilter",a.datepicker._getDateFilter())("headerComponent",a.datepicker.calendarHeaderComponent)("selected",a._getSelected())("dateClass",a.datepicker.dateClass)("comparisonStart",a.comparisonStart)("comparisonEnd",a.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",a.startDateAccessibleName)("endDateAccessibleName",a.endDateAccessibleName),t.R7$(),t.Y8G("cdkPortalOutlet",a._actionsPortal),t.R7$(),t.AVh("cdk-visually-hidden",!a._closeButtonFocused),t.Y8G("color",a.color||"primary"),t.R7$(),t.JRh(a._closeButtonText)}},dependencies:[T.kB,W,M.I3,w.$z],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color);box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-touch-shape);position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[de.transformPanel,de.fadeInCalendar]},changeDetection:0})}return n})(),ce=(()=>{class n{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=(0,ge.cc)(e)}get opened(){return this._opened}set opened(e){e?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(e,i,a,r,s,l,g){this._overlay=e,this._ngZone=i,this._viewContainerRef=a,this._dateAdapter=s,this._dir=l,this._model=g,this._inputStateChanges=m.yU.EMPTY,this._document=(0,t.WQX)(P.qQ),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new t.bkB,this.monthSelected=new t.bkB,this.viewChanged=new t.bkB(!0),this.openedStream=new t.bkB,this.closedStream=new t.bkB,this._opened=!1,this.id="mat-datepicker-"+Ge++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new y.B,this._scrollStrategy=r}ngOnChanges(e){const i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){const a=this._overlayRef.getConfig().positionStrategy;a instanceof b.rW&&(this._setConnectedPositions(a),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,E.vc)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const e=this.restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,i=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:a,location:r}=this._componentRef;a._startExitAnimation(),a._animationDone.pipe((0,Y.s)(1)).subscribe(()=>{const s=this._document.activeElement;e&&(!s||s===this._document.activeElement||r.nativeElement.contains(s))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}e?setTimeout(i):i()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const e=this.touchUi,i=new M.A8(le,this._viewContainerRef),a=this._overlayRef=this._overlay.create(new b.rR({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(a).subscribe(r=>{r&&r.preventDefault(),this.close()}),a.keydownEvents().subscribe(r=>{const s=r.keyCode;(s===o.i7||s===o.n6||s===o.UQ||s===o.LE||s===o.w_||s===o.dB)&&r.preventDefault()}),this._componentRef=a.attach(i),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,Y.s)(1)).subscribe(()=>a.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const i="end"===this.xPosition?"end":"start",a="start"===i?"end":"start",r="above"===this.yPosition?"bottom":"top",s="top"===r?"bottom":"top";return e.withPositions([{originX:i,originY:s,overlayX:i,overlayY:r},{originX:i,originY:r,overlayX:i,overlayY:s},{originX:a,originY:s,overlayX:a,overlayY:r},{originX:a,originY:r,overlayX:a,overlayY:s}])}_getCloseStream(e){const i=["ctrlKey","shiftKey","metaKey"];return(0,O.h)(e.backdropClick(),e.detachments(),e.keydownEvents().pipe((0,me.p)(a=>a.keyCode===o._f&&!(0,o.rp)(a)||this.datepickerInput&&(0,o.rp)(a,"altKey")&&a.keyCode===o.i7&&i.every(r=>!(0,o.rp)(a,r)))))}static#e=this.\u0275fac=function(i){return new(i||n)(t.rXU(b.hJ),t.rXU(t.SKi),t.rXU(t.c1b),t.rXU(oe),t.rXU(h.MJ,8),t.rXU(S.dS,8),t.rXU(v))};static#t=this.\u0275dir=t.FsC({type:n,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[t.Mj6.HasDecoratorInputTransform,"touchUi","touchUi",t.L39],disabled:[t.Mj6.HasDecoratorInputTransform,"disabled","disabled",t.L39],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[t.Mj6.HasDecoratorInputTransform,"restoreFocus","restoreFocus",t.L39],dateClass:"dateClass",panelClass:"panelClass",opened:[t.Mj6.HasDecoratorInputTransform,"opened","opened",t.L39]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[t.GFd,t.OA$]})}return n})(),$e=(()=>{class n extends ce{static#e=this.\u0275fac=(()=>{let e;return function(a){return(e||(e=t.xGo(n)))(a||n)}})();static#t=this.\u0275cmp=t.VBU({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],standalone:!0,features:[t.Jv_([ee,{provide:ce,useExisting:n}]),t.Vt3,t.aNF],decls:0,vars:0,template:function(i,a){},encapsulation:2,changeDetection:0})}return n})();class F{constructor(d,e){this.target=d,this.targetElement=e,this.value=this.target.value}}let ze=(()=>{class n{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const i=e,a=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&a.blur&&a.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){const a=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(a),this._cvaOnChange(a),this._onTouched(),this._formatValue(a),this.dateInput.emit(new F(this,this._elementRef.nativeElement)),this.dateChange.emit(new F(this,this._elementRef.nativeElement))}})}constructor(e,i,a){this._elementRef=e,this._dateAdapter=i,this._dateFormats=a,this.dateChange=new t.bkB,this.dateInput=new t.bkB,this.stateChanges=new y.B,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=m.yU.EMPTY,this._localeSubscription=m.yU.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=r=>{const s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(r.value));return!s||this._matchesFilter(s)?null:{matDatepickerFilter:!0}},this._minValidator=r=>{const s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(r.value)),l=this._getMinDate();return!l||!s||this._dateAdapter.compareDate(l,s)<=0?null:{matDatepickerMin:{min:l,actual:s}}},this._maxValidator=r=>{const s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(r.value)),l=this._getMaxDate();return!l||!s||this._dateAdapter.compareDate(l,s)>=0?null:{matDatepickerMax:{max:l,actual:s}}},this._lastValueValid=!1,this._localeSubscription=i.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function We(n,d){const e=Object.keys(n);for(let i of e){const{previousValue:a,currentValue:r}=n[i];if(!d.isDateInstance(a)||!d.isDateInstance(r))return!0;if(!d.sameDate(a,r))return!0}return!1})(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){(0,o.rp)(e,"altKey")&&e.keyCode===o.n6&&["ctrlKey","shiftKey","metaKey"].every(r=>!(0,o.rp)(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const i=this._lastValueValid;let a=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(a),a=this._dateAdapter.getValidDateOrNull(a);const r=!this._dateAdapter.sameDate(a,this.value);!a||r?this._cvaOnChange(a):(e&&!this.value&&this._cvaOnChange(a),i!==this._lastValueValid&&this._validatorOnChange()),r&&(this._assignValue(a),this.dateInput.emit(new F(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new F(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const i=this._getDateFilter();return!i||i(e)}static#e=this.\u0275fac=function(i){return new(i||n)(t.rXU(t.aKT),t.rXU(h.MJ,8),t.rXU(h.de,8))};static#t=this.\u0275dir=t.FsC({type:n,inputs:{value:"value",disabled:[t.Mj6.HasDecoratorInputTransform,"disabled","disabled",t.L39]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[t.GFd,t.OA$]})}return n})();const Qe={provide:L.kq,useExisting:(0,t.Rfq)(()=>Q),multi:!0},Je={provide:L.cz,useExisting:(0,t.Rfq)(()=>Q),multi:!0};let Q=(()=>{class n extends ze{set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}get max(){return this._max}set max(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}constructor(e,i,a,r){super(e,i,a),this._formField=r,this._closedSubscription=m.yU.EMPTY,this._validator=L.k0.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static#e=this.\u0275fac=function(i){return new(i||n)(t.rXU(t.aKT),t.rXU(h.MJ,8),t.rXU(h.de,8),t.rXU(fe.xb,8))};static#t=this.\u0275dir=t.FsC({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(i,a){1&i&&t.bIt("input",function(s){return a._onInput(s.target.value)})("change",function(){return a._onChange()})("blur",function(){return a._onBlur()})("keydown",function(s){return a._onKeydown(s)}),2&i&&(t.Mr5("disabled",a.disabled),t.BMQ("aria-haspopup",a._datepicker?"dialog":null)("aria-owns",(null==a._datepicker?null:a._datepicker.opened)&&a._datepicker.id||null)("min",a.min?a._dateAdapter.toIso8601(a.min):null)("max",a.max?a._dateAdapter.toIso8601(a.max):null)("data-mat-calendar",a._datepicker?a._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[t.Mj6.None,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],standalone:!0,features:[t.Jv_([Qe,Je,{provide:De.Oh,useExisting:n}]),t.Vt3]})}return n})(),Ze=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275dir=t.FsC({type:n,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0})}return n})(),he=(()=>{class n{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}constructor(e,i,a){this._intl=e,this._changeDetectorRef=i,this._stateChanges=m.yU.EMPTY;const r=Number(a);this.tabIndex=r||0===r?r:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:(0,B.of)(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,B.of)(),a=this.datepicker?(0,O.h)(this.datepicker.openedStream,this.datepicker.closedStream):(0,B.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,O.h)(this._intl.changes,e,i,a).subscribe(()=>this._changeDetectorRef.markForCheck())}static#e=this.\u0275fac=function(i){return new(i||n)(t.rXU(I),t.rXU(t.gRc),t.kS0("tabindex"))};static#t=this.\u0275cmp=t.VBU({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(i,a,r){if(1&i&&t.wni(r,Ze,5),2&i){let s;t.mGM(s=t.lsd())&&(a._customIcon=s.first)}},viewQuery:function(i,a){if(1&i&&t.GBs(Re,5),2&i){let r;t.mGM(r=t.lsd())&&(a._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(i,a){1&i&&t.bIt("click",function(s){return a._open(s)}),2&i&&(t.BMQ("tabindex",null)("data-mat-calendar",a.datepicker?a.datepicker.id:null),t.AVh("mat-datepicker-toggle-active",a.datepicker&&a.datepicker.opened)("mat-accent",a.datepicker&&"accent"===a.datepicker.color)("mat-warn",a.datepicker&&"warn"===a.datepicker.color))},inputs:{datepicker:[t.Mj6.None,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[t.Mj6.None,"aria-label","ariaLabel"],disabled:[t.Mj6.HasDecoratorInputTransform,"disabled","disabled",t.L39],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:Fe,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(i,a){1&i&&(t.NAR(xe),t.j41(0,"button",1,0),t.DNE(2,Te,2,0,":svg:svg",2),t.SdG(3),t.k0s()),2&i&&(t.Y8G("disabled",a.disabled)("disableRipple",a.disableRipple),t.BMQ("aria-haspopup",a.datepicker?"dialog":null)("aria-label",a.ariaLabel||a._intl.openCalendarLabel)("tabindex",a.disabled?-1:a.tabIndex),t.R7$(2),t.vxM(2,a._customIcon?-1:2))},dependencies:[w.iY],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0})}return n})(),tt=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275mod=t.$C({type:n});static#a=this.\u0275inj=t.G2t({providers:[I,Ke],imports:[P.MD,w.Hl,b.z_,T.Pd,M.jc,h.yE,le,he,se,pe.Gj]})}return n})()}}]); |