@smals-belgium-shared/vidis-prescription-list 3.1.1-snapshot.0 → 3.1.1-snapshot.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -278,7 +278,7 @@ ${t.map((n,u)=>`${u+1}) ${n.toString()}`).join(`
|
|
|
278
278
|
`,yc=(()=>{const t=class t extends gg{};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=on(t)))(r||t)}})()),d(t,"ɵcmp",Ku({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(u,r){u&2&&(Yr("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Mo(r.color?"mat-"+r.color:""),xr("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[Lr],ngContentSelectors:G4,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(u,r){u&1&&(Ai(P4),_u(0,"span",0),vr(1),Qt(2,"span",1),vr(3,1),St(),vr(4,2),_u(5,"span",2)(6,"span",3)),u&2&&xr("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._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-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;border-radius:inherit}.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:"";border-radius:inherit}.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)}
|
|
279
279
|
`,`@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,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}
|
|
280
280
|
`],encapsulation:2,changeDetection:0}));let e=t;return e})(),dde=(()=>{const t=class t extends lde{};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=on(t)))(r||t)}})()),d(t,"ɵcmp",Ku({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(u,r){u&2&&(Yr("disabled",r._getDisabledAttribute())("tabindex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("aria-disabled",r._getAriaDisabled()),Mo(r.color?"mat-"+r.color:""),xr("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[Lr],ngContentSelectors:G4,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(u,r){u&1&&(Ai(P4),_u(0,"span",0),vr(1),Qt(2,"span",1),vr(3,1),St(),vr(4,2),_u(5,"span",2)(6,"span",3)),u&2&&xr("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[cde,hde],encapsulation:2,changeDetection:0}));let e=t;return e})(),bo=(()=>{const t=class t{};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵmod",rn({type:t})),d(t,"ɵinj",un({imports:[yn,P9,yn]}));let e=t;return e})();function Ede(e,t){if(e&1&&(Qt(0,"mat-option",17),Mu(1),St()),e&2){let n=t.$implicit;Cu("value",n),It(),zr(" ",n," ")}}function Bde(e,t){if(e&1){let n=Kn();Qt(0,"mat-form-field",14)(1,"mat-select",16,0),Ju("selectionChange",function(u){wr(n);let r=tu(2);return yr(r._changePageSize(u.value))}),UA(3,Ede,2,2,"mat-option",17,Fd),St(),Qt(5,"div",18),Ju("click",function(){wr(n);let u=Fc(2);return yr(u.open())}),St()()}if(e&2){let n=tu(2);Cu("appearance",n._formFieldAppearance)("color",n.color),It(),Cu("value",n.pageSize)("disabled",n.disabled)("aria-labelledby",n._pageSizeLabelId)("panelClass",n.selectConfig.panelClass||"")("disableOptionCentering",n.selectConfig.disableOptionCentering),It(2),PA(n._displayedPageSizeOptions)}}function gde(e,t){if(e&1&&(Qt(0,"div",15),Mu(1),St()),e&2){let n=tu(2);It(),dn(n.pageSize)}}function fde(e,t){if(e&1&&(Qt(0,"div",3)(1,"div",13),Mu(2),St(),Eu(3,Bde,6,7,"mat-form-field",14)(4,gde,2,1,"div",15),St()),e&2){let n=tu();It(),Yr("id",n._pageSizeLabelId),It(),zr(" ",n._intl.itemsPerPageLabel," "),It(),Qu(n._displayedPageSizeOptions.length>1?3:-1),It(),Qu(n._displayedPageSizeOptions.length<=1?4:-1)}}function pde(e,t){if(e&1){let n=Kn();Qt(0,"button",19),Ju("click",function(){wr(n);let u=tu();return yr(u._buttonClicked(0,u._previousButtonsDisabled()))}),Co(),Qt(1,"svg",8),_u(2,"path",20),St()()}if(e&2){let n=tu();Cu("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("disabled",n._previousButtonsDisabled())("tabindex",n._previousButtonsDisabled()?-1:null),Yr("aria-label",n._intl.firstPageLabel)}}function mde(e,t){if(e&1){let n=Kn();Qt(0,"button",21),Ju("click",function(){wr(n);let u=tu();return yr(u._buttonClicked(u.getNumberOfPages()-1,u._nextButtonsDisabled()))}),Co(),Qt(1,"svg",8),_u(2,"path",22),St()()}if(e&2){let n=tu();Cu("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("disabled",n._nextButtonsDisabled())("tabindex",n._nextButtonsDisabled()?-1:null),Yr("aria-label",n._intl.lastPageLabel)}}var Ds=(()=>{const t=class t{constructor(){d(this,"changes",new xu);d(this,"itemsPerPageLabel","Items per page:");d(this,"nextPageLabel","Next page");d(this,"previousPageLabel","Previous page");d(this,"firstPageLabel","First page");d(this,"lastPageLabel","Last page");d(this,"getRangeLabel",(u,r,A)=>{if(A==0||r==0)return`0 of ${A}`;A=Math.max(A,0);let o=u*r,l=o<A?Math.min(o+r,A):o+r;return`${o+1} – ${l} of ${A}`})}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵprov",Wt({token:t,factory:t.ɵfac,providedIn:"root"}));let e=t;return e})();function Cde(e){return e||new Ds}var Fde={provide:Ds,deps:[[new ed,new td,Ds]],useFactory:Cde},Dde=50,wde=new Jt("MAT_PAGINATOR_DEFAULT_OPTIONS"),O4=(()=>{const t=class t{constructor(){d(this,"_intl",Ie(Ds));d(this,"_changeDetectorRef",Ie(Ei));d(this,"_formFieldAppearance");d(this,"_pageSizeLabelId",Ie(na).getId("mat-paginator-page-size-label-"));d(this,"_intlChanges");d(this,"_isInitialized",!1);d(this,"_initializedStream",new Xh(1));d(this,"color");d(this,"_pageIndex",0);d(this,"_length",0);d(this,"_pageSize");d(this,"_pageSizeOptions",[]);d(this,"hidePageSize",!1);d(this,"showFirstLastButtons",!1);d(this,"selectConfig",{});d(this,"disabled",!1);d(this,"page",new Nu);d(this,"_displayedPageSizeOptions");d(this,"initialized",this._initializedStream);let u=this._intl,r=Ie(wde,{optional:!0});if(this._intlChanges=u.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){let{pageSize:A,pageSizeOptions:o,hidePageSize:l,showFirstLastButtons:i}=r;A!=null&&(this._pageSize=A),o!=null&&(this._pageSizeOptions=o),l!=null&&(this.hidePageSize=l),i!=null&&(this.showFirstLastButtons=i)}this._formFieldAppearance=(r==null?void 0:r.formFieldAppearance)||"outline"}get pageIndex(){return this._pageIndex}set pageIndex(u){this._pageIndex=Math.max(u||0,0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(u){this._length=u||0,this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(u){this._pageSize=Math.max(u||0,0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(u){this._pageSizeOptions=(u||[]).map(r=>Na(r,0)),this._updateDisplayedPageSizeOptions()}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let u=this.getNumberOfPages()-1;return this.pageIndex<u&&this.pageSize!=0}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(u){let r=this.pageIndex*this.pageSize,A=this.pageIndex;this.pageIndex=Math.floor(r/u)||0,this.pageSize=u,this._emitPageEvent(A)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:Dde),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((u,r)=>u-r),this._changeDetectorRef.markForCheck())}_emitPageEvent(u){this.page.emit({previousPageIndex:u,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(u){let r=this.pageIndex;u!==r&&(this.pageIndex=u,this._emitPageEvent(r))}_buttonClicked(u,r){r||this._navigate(u)}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵcmp",Ku({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",Na],length:[2,"length","length",Na],pageSize:[2,"pageSize","pageSize",Na],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",Zu],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",Zu],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",Zu]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(u,r){u&1&&(Qt(0,"div",1)(1,"div",2),Eu(2,fde,5,4,"div",3),Qt(3,"div",4)(4,"div",5),Mu(5),St(),Eu(6,pde,3,5,"button",6),Qt(7,"button",7),Ju("click",function(){return r._buttonClicked(r.pageIndex-1,r._previousButtonsDisabled())}),Co(),Qt(8,"svg",8),_u(9,"path",9),St()(),U7(),Qt(10,"button",10),Ju("click",function(){return r._buttonClicked(r.pageIndex+1,r._nextButtonsDisabled())}),Co(),Qt(11,"svg",8),_u(12,"path",11),St()(),Eu(13,mde,3,5,"button",12),St()()()),u&2&&(It(2),Qu(r.hidePageSize?-1:2),It(3),zr(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),It(),Qu(r.showFirstLastButtons?6:-1),It(),Cu("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("disabled",r._previousButtonsDisabled())("tabindex",r._previousButtonsDisabled()?-1:null),Yr("aria-label",r._intl.previousPageLabel),It(3),Cu("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("disabled",r._nextButtonsDisabled())("tabindex",r._nextButtonsDisabled()?-1:null),Yr("aria-label",r._intl.nextPageLabel),It(3),Qu(r.showFirstLastButtons?13:-1))},dependencies:[A4,z4,ng,fg,nde],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height:var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}
|
|
281
|
-
`],encapsulation:2,changeDetection:0}));let e=t;return e})(),yde=(()=>{const t=class t{};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵmod",rn({type:t})),d(t,"ɵinj",un({providers:[Fde],imports:[bo,N4,ade,O4]}));let e=t;return e})(),Dr=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(Dr||{}),nA="*";function vde(e,t=null){return{type:Dr.Sequence,steps:e,options:t}}function Jf(e){return{type:Dr.Style,styles:e,offset:null}}var Hl=class{constructor(e=0,t=0){d(this,"_onDoneFns",[]);d(this,"_onStartFns",[]);d(this,"_onDestroyFns",[]);d(this,"_originalOnDoneFns",[]);d(this,"_originalOnStartFns",[]);d(this,"_started",!1);d(this,"_destroyed",!1);d(this,"_finished",!1);d(this,"_position",0);d(this,"parentPlayer",null);d(this,"totalTime");this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},j4=class{constructor(e){d(this,"_onDoneFns",[]);d(this,"_onStartFns",[]);d(this,"_finished",!1);d(this,"_started",!1);d(this,"_destroyed",!1);d(this,"_onDestroyFns",[]);d(this,"parentPlayer",null);d(this,"totalTime",0);d(this,"players");this.players=e;let t=0,n=0,u=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(A=>{A.onDone(()=>{++t==r&&this._onFinish()}),A.onDestroy(()=>{++n==r&&this._onDestroy()}),A.onStart(()=>{++u==r&&this._onStart()})}),this.totalTime=this.players.reduce((A,o)=>Math.max(A,o.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(n=>{let u=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(u)})}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},pg="!";function Zf(e){return new eu(3e3,!1)}function Mde(){return new eu(3100,!1)}function xde(){return new eu(3101,!1)}function bde(e){return new eu(3001,!1)}function Ide(e){return new eu(3003,!1)}function Qde(e){return new eu(3004,!1)}function Rde(e,t){return new eu(3005,!1)}function Sde(){return new eu(3006,!1)}function kde(){return new eu(3007,!1)}function Tde(e,t){return new eu(3008,!1)}function Yde(e){return new eu(3002,!1)}function zde(e,t,n,u,r){return new eu(3010,!1)}function Nde(){return new eu(3011,!1)}function _de(){return new eu(3012,!1)}function Ude(){return new eu(3200,!1)}function Pde(){return new eu(3202,!1)}function Gde(){return new eu(3013,!1)}function Ode(e){return new eu(3014,!1)}function jde(e){return new eu(3015,!1)}function Lde(e){return new eu(3016,!1)}function Wde(e,t){return new eu(3404,!1)}function Hde(e){return new eu(3502,!1)}function Vde(e){return new eu(3503,!1)}function Jde(){return new eu(3300,!1)}function Zde(e){return new eu(3504,!1)}function Kde(e){return new eu(3301,!1)}function Xde(e,t){return new eu(3302,!1)}function qde(e){return new eu(3303,!1)}function $de(e,t){return new eu(3400,!1)}function eEe(e){return new eu(3401,!1)}function tEe(e){return new eu(3402,!1)}function uEe(e,t){return new eu(3505,!1)}function vA(e){switch(e.length){case 0:return new Hl;case 1:return e[0];default:return new j4(e)}}function L4(e,t,n=new Map,u=new Map){let r=[],A=[],o=-1,l=null;if(t.forEach(i=>{let h=i.get("offset"),s=h==o,c=s&&l||new Map;i.forEach((E,B)=>{let g=B,f=E;if(B!=="offset")switch(g=e.normalizePropertyName(g,r),f){case pg:f=n.get(B);break;case nA:f=u.get(B);break;default:f=e.normalizeStyleValue(B,g,f,r);break}c.set(g,f)}),s||A.push(c),l=c,o=h}),r.length)throw Hde();return A}function mg(e,t,n,u){switch(t){case"start":e.onStart(()=>u(n&&WE(n,"start",e)));break;case"done":e.onDone(()=>u(n&&WE(n,"done",e)));break;case"destroy":e.onDestroy(()=>u(n&&WE(n,"destroy",e)));break}}function WE(e,t,n){let u=n.totalTime,r=!!n.disabled,A=Cg(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,u??e.totalTime,r),o=e._data;return o!=null&&(A._data=o),A}function Cg(e,t,n,u,r="",A=0,o){return{element:e,triggerName:t,fromState:n,toState:u,phaseName:r,totalTime:A,disabled:!!o}}function _i(e,t,n){let u=e.get(t);return u||e.set(t,u=n),u}function Kf(e){let t=e.indexOf(":"),n=e.substring(1,t),u=e.slice(t+1);return[n,u]}var rEe=typeof document>"u"?null:document.documentElement;function Fg(e){let t=e.parentNode||e.host||null;return t===rEe?null:t}function nEe(e){return e.substring(1,6)=="ebkit"}var $A=null,Xf=!1;function iEe(e){$A||($A=aEe()||{},Xf=$A.style?"WebkitAppearance"in $A.style:!1);let t=!0;return $A.style&&!nEe(e)&&(t=e in $A.style,!t&&Xf&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in $A.style)),t}function aEe(){return typeof document<"u"?document.body:null}function W4(e,t){for(;t;){if(t===e)return!0;t=Fg(t)}return!1}function H4(e,t,n){if(n)return Array.from(e.querySelectorAll(t));let u=e.querySelector(t);return u?[u]:[]}var AEe=1e3,V4="{{",oEe="}}",J4="ng-enter",d5="ng-leave",w0="ng-trigger",Sh=".ng-trigger",qf="ng-animating",E5=".ng-animating";function tA(e){if(typeof e=="number")return e;let t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:B5(parseFloat(t[1]),t[2])}function B5(e,t){switch(t){case"s":return e*AEe;default:return e}}function kh(e,t,n){return e.hasOwnProperty("duration")?e:sEe(e,t,n)}function sEe(e,t,n){let u=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,A=0,o="";if(typeof e=="string"){let l=e.match(u);if(l===null)return t.push(Zf()),{duration:0,delay:0,easing:""};r=B5(parseFloat(l[1]),l[2]);let i=l[3];i!=null&&(A=B5(parseFloat(i),l[4]));let h=l[5];h&&(o=h)}else r=e;if(!n){let l=!1,i=t.length;r<0&&(t.push(Mde()),l=!0),A<0&&(t.push(xde()),l=!0),l&&t.splice(i,0,Zf())}return{duration:r,delay:A,easing:o}}function lEe(e){return e.length?e[0]instanceof Map?e:e.map(t=>new Map(Object.entries(t))):[]}function ka(e,t,n){t.forEach((u,r)=>{let A=Dg(r);n&&!n.has(r)&&n.set(r,e.style[A]),e.style[A]=u})}function Ao(e,t){t.forEach((n,u)=>{let r=Dg(u);e.style[r]=""})}function dl(e){return Array.isArray(e)?e.length==1?e[0]:vde(e):e}function cEe(e,t,n){let u=t.params||{},r=Z4(e);r.length&&r.forEach(A=>{u.hasOwnProperty(A)||n.push(bde())})}var g5=new RegExp(`${V4}\\s*(.+?)\\s*${oEe}`,"g");function Z4(e){let t=[];if(typeof e=="string"){let n;for(;n=g5.exec(e);)t.push(n[1]);g5.lastIndex=0}return t}function Vl(e,t,n){let u=`${e}`,r=u.replace(g5,(A,o)=>{let l=t[o];return l==null&&(n.push(Ide()),l=""),l.toString()});return r==u?e:r}var hEe=/-+([a-z0-9])/g;function Dg(e){return e.replace(hEe,(...t)=>t[1].toUpperCase())}function dEe(e,t){return e===0||t===0}function EEe(e,t,n){if(n.size&&t.length){let u=t[0],r=[];if(n.forEach((A,o)=>{u.has(o)||r.push(o),u.set(o,A)}),r.length)for(let A=1;A<t.length;A++){let o=t[A];r.forEach(l=>o.set(l,wg(e,l)))}}return t}function zi(e,t,n){switch(t.type){case Dr.Trigger:return e.visitTrigger(t,n);case Dr.State:return e.visitState(t,n);case Dr.Transition:return e.visitTransition(t,n);case Dr.Sequence:return e.visitSequence(t,n);case Dr.Group:return e.visitGroup(t,n);case Dr.Animate:return e.visitAnimate(t,n);case Dr.Keyframes:return e.visitKeyframes(t,n);case Dr.Style:return e.visitStyle(t,n);case Dr.Reference:return e.visitReference(t,n);case Dr.AnimateChild:return e.visitAnimateChild(t,n);case Dr.AnimateRef:return e.visitAnimateRef(t,n);case Dr.Query:return e.visitQuery(t,n);case Dr.Stagger:return e.visitStagger(t,n);default:throw Qde(t.type)}}function wg(e,t){return window.getComputedStyle(e)[t]}var BEe=(()=>{const t=class t{validateStyleProperty(u){return iEe(u)}containsElement(u,r){return W4(u,r)}getParentElement(u){return Fg(u)}query(u,r,A){return H4(u,r,A)}computeStyle(u,r,A){return A||""}animate(u,r,A,o,l,i=[],h){return new Hl(A,o)}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵprov",Wt({token:t,factory:t.ɵfac}));let e=t;return e})(),A1,K4=(A1=class{},d(A1,"NOOP",new BEe),A1),yg=class{},gEe=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),fEe=class extends yg{normalizePropertyName(e,t){return Dg(e)}normalizeStyleValue(e,t,n,u){let r="",A=n.toString().trim();if(gEe.has(t)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&u.push(Rde())}return A+r}},Th="*";function pEe(e,t){let n=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(u=>mEe(u,n,t)):n.push(e),n}function mEe(e,t,n){if(e[0]==":"){let i=CEe(e,n);if(typeof i=="function"){t.push(i);return}e=i}let u=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(u==null||u.length<4)return n.push(jde()),t;let r=u[1],A=u[2],o=u[3];t.push($f(r,o));let l=r==Th&&o==Th;A[0]=="<"&&!l&&t.push($f(o,r))}function CEe(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,u)=>parseFloat(u)>parseFloat(n);case":decrement":return(n,u)=>parseFloat(u)<parseFloat(n);default:return t.push(Lde()),"* => *"}}var y0=new Set(["true","1"]),v0=new Set(["false","0"]);function $f(e,t){let n=y0.has(e)||v0.has(e),u=y0.has(t)||v0.has(t);return(r,A)=>{let o=e==Th||e==r,l=t==Th||t==A;return!o&&n&&typeof r=="boolean"&&(o=r?y0.has(e):v0.has(e)),!l&&u&&typeof A=="boolean"&&(l=A?y0.has(t):v0.has(t)),o&&l}}var X4=":self",FEe=new RegExp(`s*${X4}s*,?`,"g");function q4(e,t,n,u){return new DEe(e).build(t,n,u)}var e6="",DEe=class{constructor(e){d(this,"_driver");this._driver=e}build(e,t,n){let u=new vEe(t);return this._resetContextStyleTimingState(u),zi(this,dl(e),u)}_resetContextStyleTimingState(e){e.currentQuerySelector=e6,e.collectedStyles=new Map,e.collectedStyles.set(e6,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,u=t.depCount=0,r=[],A=[];return e.name.charAt(0)=="@"&&t.errors.push(Sde()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==Dr.State){let l=o,i=l.name;i.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t))}),l.name=i}else if(o.type==Dr.Transition){let l=this.visitTransition(o,t);n+=l.queryCount,u+=l.depCount,A.push(l)}else t.errors.push(kde())}),{type:Dr.Trigger,name:e.name,states:r,transitions:A,queryCount:n,depCount:u,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),u=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set,A=u||{};n.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{Z4(l).forEach(i=>{A.hasOwnProperty(i)||r.add(i)})})}),r.size&&t.errors.push(Tde(e.name,[...r.values()]))}return{type:Dr.State,name:e.name,style:n,options:u?{params:u}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=zi(this,dl(e.animation),t),u=pEe(e.expr,t.errors);return{type:Dr.Transition,matchers:u,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:eo(e.options)}}visitSequence(e,t){return{type:Dr.Sequence,steps:e.steps.map(n=>zi(this,n,t)),options:eo(e.options)}}visitGroup(e,t){let n=t.currentTime,u=0,r=e.steps.map(A=>{t.currentTime=n;let o=zi(this,A,t);return u=Math.max(u,t.currentTime),o});return t.currentTime=u,{type:Dr.Group,steps:r,options:eo(e.options)}}visitAnimate(e,t){let n=xEe(e.timings,t.errors);t.currentAnimateTimings=n;let u,r=e.styles?e.styles:Jf({});if(r.type==Dr.Keyframes)u=this.visitKeyframes(r,t);else{let A=e.styles,o=!1;if(!A){o=!0;let i={};n.easing&&(i.easing=n.easing),A=Jf(i)}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(A,t);l.isEmptyStep=o,u=l}return t.currentAnimateTimings=null,{type:Dr.Animate,timings:n,style:u,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],u=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of u)typeof o=="string"?o===nA?n.push(o):t.errors.push(Yde()):n.push(new Map(Object.entries(o)));let r=!1,A=null;return n.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(A=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(V4)>=0){r=!0;break}}}),{type:Dr.Style,styles:n,easing:A,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,u=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(A=>{typeof A!="string"&&A.forEach((o,l)=>{let i=t.collectedStyles.get(t.currentQuerySelector),h=i.get(l),s=!0;h&&(r!=u&&r>=h.startTime&&u<=h.endTime&&(t.errors.push(zde(l,h.startTime,h.endTime)),s=!1),r=h.startTime),s&&i.set(l,{startTime:r,endTime:u}),t.options&&cEe(o,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:Dr.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Nde()),n;let u=1,r=0,A=[],o=!1,l=!1,i=0,h=e.steps.map(m=>{let p=this._makeStyleAst(m,t),C=p.offset!=null?p.offset:MEe(p.styles),F=0;return C!=null&&(r++,F=p.offset=C),l=l||F<0||F>1,o=o||F<i,i=F,A.push(F),p});l&&t.errors.push(_de()),o&&t.errors.push(Ude());let s=e.steps.length,c=0;r>0&&r<s?t.errors.push(Pde()):r==0&&(c=u/(s-1));let E=s-1,B=t.currentTime,g=t.currentAnimateTimings,f=g.duration;return h.forEach((m,p)=>{let C=c>0?p==E?1:c*p:A[p],F=C*f;t.currentTime=B+g.delay+F,g.duration=F,this._validateStyleAst(m,t),m.offset=C,n.styles.push(m)}),n}visitReference(e,t){return{type:Dr.Reference,animation:zi(this,dl(e.animation),t),options:eo(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:Dr.AnimateChild,options:eo(e.options)}}visitAnimateRef(e,t){return{type:Dr.AnimateRef,animation:this.visitReference(e.animation,t),options:eo(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,u=e.options||{};t.queryCount++,t.currentQuery=e;let[r,A]=wEe(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,_i(t.collectedStyles,t.currentQuerySelector,new Map);let o=zi(this,dl(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:Dr.Query,selector:r,limit:u.limit||0,optional:!!u.optional,includeSelf:A,animation:o,originalSelector:e.selector,options:eo(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Gde());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:kh(e.timings,t.errors,!0);return{type:Dr.Stagger,animation:zi(this,dl(e.animation),t),timings:n,options:null}}};function wEe(e){let t=!!e.split(/\s*,\s*/).find(n=>n==X4);return t&&(e=e.replace(FEe,"")),e=e.replace(/@\*/g,Sh).replace(/@\w+/g,n=>Sh+"-"+n.slice(1)).replace(/:animating/g,E5),[e,t]}function yEe(e){return e?ru({},e):null}var vEe=class{constructor(e){d(this,"errors");d(this,"queryCount",0);d(this,"depCount",0);d(this,"currentTransition",null);d(this,"currentQuery",null);d(this,"currentQuerySelector",null);d(this,"currentAnimateTimings",null);d(this,"currentTime",0);d(this,"collectedStyles",new Map);d(this,"options",null);d(this,"unsupportedCSSPropertiesFound",new Set);this.errors=e}};function MEe(e){if(typeof e=="string")return null;let t=null;if(Array.isArray(e))e.forEach(n=>{if(n instanceof Map&&n.has("offset")){let u=n;t=parseFloat(u.get("offset")),u.delete("offset")}});else if(e instanceof Map&&e.has("offset")){let n=e;t=parseFloat(n.get("offset")),n.delete("offset")}return t}function xEe(e,t){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let r=kh(e,t).duration;return HE(r,0,"")}let n=e;if(n.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=HE(0,0,"");return r.dynamic=!0,r.strValue=n,r}let u=kh(n,t);return HE(u.duration,u.delay,u.easing)}function eo(e){return e?(e=ru({},e),e.params&&(e.params=yEe(e.params))):e={},e}function HE(e,t,n){return{duration:e,delay:t,easing:n}}function vg(e,t,n,u,r,A,o=null,l=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:u,duration:r,delay:A,totalTime:r+A,easing:o,subTimeline:l}}var Mg=class{constructor(){d(this,"_map",new Map)}get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},bEe=1,IEe=":enter",QEe=new RegExp(IEe,"g"),REe=":leave",SEe=new RegExp(REe,"g");function $4(e,t,n,u,r,A=new Map,o=new Map,l,i,h=[]){return new kEe().buildKeyframes(e,t,n,u,r,A,o,l,i,h)}var kEe=class{buildKeyframes(e,t,n,u,r,A,o,l,i,h=[]){i=i||new Mg;let s=new TEe(e,t,i,u,r,h,[]);s.options=l;let c=l.delay?tA(l.delay):0;s.currentTimeline.delayNextStep(c),s.currentTimeline.setStyles([A],null,s.errors,l),zi(this,n,s);let E=s.timelines.filter(B=>B.containsAnimation());if(E.length&&o.size){let B;for(let g=E.length-1;g>=0;g--){let f=E[g];if(f.element===t){B=f;break}}B&&!B.allowOnlyTimelineStyles()&&B.setStyles([o],null,s.errors,l)}return E.length?E.map(B=>B.buildKeyframes()):[vg(t,[],[],[],0,c,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let u=t.createSubContext(e.options),r=t.currentTimeline.currentTime,A=this._visitSubInstructions(n,u,u.options);r!=A&&t.transformIntoNewTimeline(A)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let u of e){let r=u==null?void 0:u.delay;if(r){let A=typeof r=="number"?r:tA(Vl(r,(u==null?void 0:u.params)??{},t.errors));n.delayNextStep(A)}}}_visitSubInstructions(e,t,n){let u=t.currentTimeline.currentTime,r=n.duration!=null?tA(n.duration):null,A=n.delay!=null?tA(n.delay):null;return r!==0&&e.forEach(o=>{let l=t.appendInstructionToTimeline(o,r,A);u=Math.max(u,l.duration+l.delay)}),u}visitReference(e,t){t.updateOptions(e.options,!0),zi(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,u=t,r=e.options;if(r&&(r.params||r.delay)&&(u=t.createSubContext(r),u.transformIntoNewTimeline(),r.delay!=null)){u.previousNode.type==Dr.Style&&(u.currentTimeline.snapshotCurrentStyles(),u.previousNode=Yh);let A=tA(r.delay);u.delayNextStep(A)}e.steps.length&&(e.steps.forEach(A=>zi(this,A,u)),u.currentTimeline.applyStylesToKeyframe(),u.subContextCount>n&&u.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],u=t.currentTimeline.currentTime,r=e.options&&e.options.delay?tA(e.options.delay):0;e.steps.forEach(A=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),zi(this,A,o),u=Math.max(u,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(A=>t.currentTimeline.mergeTimelineCollectedStyles(A)),t.transformIntoNewTimeline(u),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,u=t.params?Vl(n,t.params,t.errors):n;return kh(u,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),u=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),u.snapshotCurrentStyles());let r=e.style;r.type==Dr.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),u.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,u=t.currentAnimateTimings;!u&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=u&&u.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,u=t.currentTimeline.duration,r=n.duration,A=t.createSubContext().currentTimeline;A.easing=n.easing,e.styles.forEach(o=>{let l=o.offset||0;A.forwardTime(l*r),A.setStyles(o.styles,o.easing,t.errors,t.options),A.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(A),t.transformIntoNewTimeline(u+r),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,u=e.options||{},r=u.delay?tA(u.delay):0;r&&(t.previousNode.type===Dr.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Yh);let A=n,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!u.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((i,h)=>{t.currentQueryIndex=h;let s=t.createSubContext(e.options,i);r&&s.delayNextStep(r),i===t.element&&(l=s.currentTimeline),zi(this,e.animation,s),s.currentTimeline.applyStylesToKeyframe();let c=s.currentTimeline.currentTime;A=Math.max(A,c)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(A),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=t.parentContext,u=t.currentTimeline,r=e.timings,A=Math.abs(r.duration),o=A*(t.currentQueryTotal-1),l=A*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=n.currentStaggerTime;break}let i=t.currentTimeline;l&&i.delayNextStep(l);let h=i.currentTime;zi(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=u.currentTime-h+(u.startTime-n.currentTimeline.startTime)}},Yh={},TEe=class eF{constructor(t,n,u,r,A,o,l,i){d(this,"_driver");d(this,"element");d(this,"subInstructions");d(this,"_enterClassName");d(this,"_leaveClassName");d(this,"errors");d(this,"timelines");d(this,"parentContext",null);d(this,"currentTimeline");d(this,"currentAnimateTimings",null);d(this,"previousNode",Yh);d(this,"subContextCount",0);d(this,"options",{});d(this,"currentQueryIndex",0);d(this,"currentQueryTotal",0);d(this,"currentStaggerTime",0);this._driver=t,this.element=n,this.subInstructions=u,this._enterClassName=r,this._leaveClassName=A,this.errors=o,this.timelines=l,this.currentTimeline=i||new tF(this._driver,n,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,n){if(!t)return;let u=t,r=this.options;u.duration!=null&&(r.duration=tA(u.duration)),u.delay!=null&&(r.delay=tA(u.delay));let A=u.params;if(A){let o=r.params;o||(o=this.options.params={}),Object.keys(A).forEach(l=>{(!n||!o.hasOwnProperty(l))&&(o[l]=Vl(A[l],o,this.errors))})}}_copyOptions(){let t={};if(this.options){let n=this.options.params;if(n){let u=t.params={};Object.keys(n).forEach(r=>{u[r]=n[r]})}}return t}createSubContext(t=null,n,u){let r=n||this.element,A=new eF(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,u||0));return A.previousNode=this.previousNode,A.currentAnimateTimings=this.currentAnimateTimings,A.options=this._copyOptions(),A.updateOptions(t),A.currentQueryIndex=this.currentQueryIndex,A.currentQueryTotal=this.currentQueryTotal,A.parentContext=this,this.subContextCount++,A}transformIntoNewTimeline(t){return this.previousNode=Yh,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,n,u){let r={duration:n??t.duration,delay:this.currentTimeline.currentTime+(u??0)+t.delay,easing:""},A=new YEe(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(A),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,n,u,r,A,o){let l=[];if(r&&l.push(this.element),t.length>0){t=t.replace(QEe,"."+this._enterClassName),t=t.replace(SEe,"."+this._leaveClassName);let i=u!=1,h=this._driver.query(this.element,t,i);u!==0&&(h=u<0?h.slice(h.length+u,h.length):h.slice(0,u)),l.push(...h)}return!A&&l.length==0&&o.push(Ode()),l}},tF=class uF{constructor(t,n,u,r){d(this,"_driver");d(this,"element");d(this,"startTime");d(this,"_elementTimelineStylesLookup");d(this,"duration",0);d(this,"easing",null);d(this,"_previousKeyframe",new Map);d(this,"_currentKeyframe",new Map);d(this,"_keyframes",new Map);d(this,"_styleSummary",new Map);d(this,"_localTimelineStyles",new Map);d(this,"_globalTimelineStyles");d(this,"_pendingStyles",new Map);d(this,"_backFill",new Map);d(this,"_currentEmptyStepKeyframe",null);this._driver=t,this.element=n,this.startTime=u,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let n=this._keyframes.size===1&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,n){return this.applyStylesToKeyframe(),new uF(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=bEe,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,n){this._localTimelineStyles.set(t,n),this._globalTimelineStyles.set(t,n),this._styleSummary.set(t,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[n,u]of this._globalTimelineStyles)this._backFill.set(n,u||nA),this._currentKeyframe.set(n,nA);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,n,u,r){n&&this._previousKeyframe.set("easing",n);let A=r&&r.params||{},o=zEe(t,this._globalTimelineStyles);for(let[l,i]of o){let h=Vl(i,A,u);this._pendingStyles.set(l,h),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??nA),this._updateStyle(l,h)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,n)=>{this._currentKeyframe.set(n,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,t)}))}snapshotCurrentStyles(){for(let[t,n]of this._localTimelineStyles)this._pendingStyles.set(t,n),this._updateStyle(t,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let n in this._currentKeyframe)t.push(n);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((n,u)=>{let r=this._styleSummary.get(u);(!r||n.time>r.time)&&this._updateStyle(u,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,n=new Set,u=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((l,i)=>{let h=new Map([...this._backFill,...l]);h.forEach((s,c)=>{s===pg?t.add(c):s===nA&&n.add(c)}),u||h.set("offset",i/this.duration),r.push(h)});let A=[...t.values()],o=[...n.values()];if(u){let l=r[0],i=new Map(l);l.set("offset",0),i.set("offset",1),r=[l,i]}return vg(this.element,r,A,o,this.duration,this.startTime,this.easing,!1)}},YEe=class extends tF{constructor(t,n,u,r,A,o,l=!1){super(t,n,o.delay);d(this,"keyframes");d(this,"preStyleProps");d(this,"postStyleProps");d(this,"_stretchStartingKeyframe");d(this,"timings");this.keyframes=u,this.preStyleProps=r,this.postStyleProps=A,this._stretchStartingKeyframe=l,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:n,duration:u,easing:r}=this.timings;if(this._stretchStartingKeyframe&&n){let A=[],o=u+n,l=n/o,i=new Map(t[0]);i.set("offset",0),A.push(i);let h=new Map(t[0]);h.set("offset",t6(l)),A.push(h);let s=t.length-1;for(let c=1;c<=s;c++){let E=new Map(t[c]),B=E.get("offset"),g=n+B*u;E.set("offset",t6(g/o)),A.push(E)}u=o,n=0,r="",t=A}return vg(this.element,t,this.preStyleProps,this.postStyleProps,u,n,r,!0)}};function t6(e,t=3){let n=Math.pow(10,t-1);return Math.round(e*n)/n}function zEe(e,t){let n=new Map,u;return e.forEach(r=>{if(r==="*"){u??(u=t.keys());for(let A of u)n.set(A,nA)}else for(let[A,o]of r)n.set(A,o)}),n}function u6(e,t,n,u,r,A,o,l,i,h,s,c,E){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:A,toState:u,toStyles:o,timelines:l,queriedElements:i,preStyleProps:h,postStyleProps:s,totalTime:c,errors:E}}var VE={},rF=class{constructor(e,t,n){d(this,"_triggerName");d(this,"ast");d(this,"_stateStyles");this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,u){return NEe(this.ast.matchers,e,t,n,u)}buildStyles(e,t,n){let u=this._stateStyles.get("*");return e!==void 0&&(u=this._stateStyles.get(e==null?void 0:e.toString())||u),u?u.buildStyles(t,n):new Map}build(e,t,n,u,r,A,o,l,i,h){var x;let s=[],c=this.ast.options&&this.ast.options.params||VE,E=o&&o.params||VE,B=this.buildStyles(n,E,s),g=l&&l.params||VE,f=this.buildStyles(u,g,s),m=new Set,p=new Map,C=new Map,F=u==="void",w={params:nF(g,c),delay:(x=this.ast.options)==null?void 0:x.delay},a=h?[]:$4(e,t,this.ast.animation,r,A,B,f,w,i,s),D=0;return a.forEach(N=>{D=Math.max(N.duration+N.delay,D)}),s.length?u6(t,this._triggerName,n,u,F,B,f,[],[],p,C,D,s):(a.forEach(N=>{let S=N.element,R=_i(p,S,new Set);N.preStyleProps.forEach(I=>R.add(I));let y=_i(C,S,new Set);N.postStyleProps.forEach(I=>y.add(I)),S!==t&&m.add(S)}),u6(t,this._triggerName,n,u,F,B,f,a,[...m.values()],p,C,D))}};function NEe(e,t,n,u,r){return e.some(A=>A(t,n,u,r))}function nF(e,t){let n=ru({},t);return Object.entries(e).forEach(([u,r])=>{r!=null&&(n[u]=r)}),n}var _Ee=class{constructor(e,t,n){d(this,"styles");d(this,"defaultParams");d(this,"normalizer");this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,u=nF(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((A,o)=>{A&&(A=Vl(A,u,t));let l=this.normalizer.normalizePropertyName(o,t);A=this.normalizer.normalizeStyleValue(o,l,A,t),n.set(o,A)})}),n}};function UEe(e,t,n){return new PEe(e,t,n)}var PEe=class{constructor(e,t,n){d(this,"name");d(this,"ast");d(this,"_normalizer");d(this,"transitionFactories",[]);d(this,"fallbackTransition");d(this,"states",new Map);this.name=e,this.ast=t,this._normalizer=n,t.states.forEach(u=>{let r=u.options&&u.options.params||{};this.states.set(u.name,new _Ee(u.style,r,n))}),r6(this.states,"true","1"),r6(this.states,"false","0"),t.transitions.forEach(u=>{this.transitionFactories.push(new rF(e,u,this.states))}),this.fallbackTransition=GEe(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,u){return this.transitionFactories.find(r=>r.match(e,t,n,u))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function GEe(e,t,n){let u=[(o,l)=>!0],r={type:Dr.Sequence,steps:[],options:null},A={type:Dr.Transition,animation:r,matchers:u,options:null,queryCount:0,depCount:0};return new rF(e,A,t)}function r6(e,t,n){e.has(t)?e.has(n)||e.set(n,e.get(t)):e.has(n)&&e.set(t,e.get(n))}var OEe=new Mg,jEe=class{constructor(e,t,n){d(this,"bodyNode");d(this,"_driver");d(this,"_normalizer");d(this,"_animations",new Map);d(this,"_playersById",new Map);d(this,"players",[]);this.bodyNode=e,this._driver=t,this._normalizer=n}register(e,t){let n=[],u=[],r=q4(this._driver,t,n,u);if(n.length)throw Vde();this._animations.set(e,r)}_buildPlayer(e,t,n){let u=e.element,r=L4(this._normalizer,e.keyframes,t,n);return this._driver.animate(u,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let u=[],r=this._animations.get(e),A,o=new Map;if(r?(A=$4(this._driver,t,r,J4,d5,new Map,new Map,n,OEe,u),A.forEach(h=>{let s=_i(o,h.element,new Map);h.postStyleProps.forEach(c=>s.set(c,null))})):(u.push(Jde()),A=[]),u.length)throw Zde();o.forEach((h,s)=>{h.forEach((c,E)=>{h.set(E,this._driver.computeStyle(s,E,nA))})});let l=A.map(h=>{let s=o.get(h.element);return this._buildPlayer(h,new Map,s)}),i=vA(l);return this._playersById.set(e,i),i.onDestroy(()=>this.destroy(e)),this.players.push(i),i}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Kde();return t}listen(e,t,n,u){let r=Cg(t,"","","");return mg(this._getPlayer(e),n,r,u),()=>{}}command(e,t,n,u){if(n=="register"){this.register(e,u[0]);return}if(n=="create"){let A=u[0]||{};this.create(e,t,A);return}let r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(u[0]));break;case"destroy":this.destroy(e);break}}},n6="ng-animate-queued",LEe=".ng-animate-queued",JE="ng-animate-disabled",WEe=".ng-animate-disabled",HEe="ng-star-inserted",VEe=".ng-star-inserted",JEe=[],iF={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ZEe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},oa="__ng_removed",f5=class{constructor(e,t=""){d(this,"namespaceId");d(this,"value");d(this,"options");this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),u=n?e.value:e;if(this.value=$Ee(u),n){let r=e,{value:A}=r,o=P$(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(u=>{n[u]==null&&(n[u]=t[u])})}}},xl="void",ZE=new f5(xl),KEe=class{constructor(e,t,n){d(this,"id");d(this,"hostElement");d(this,"_engine");d(this,"players",[]);d(this,"_triggers",new Map);d(this,"_queue",[]);d(this,"_elementListeners",new Map);d(this,"_hostClassName");this.id=e,this.hostElement=t,this._engine=n,this._hostClassName="ng-tns-"+e,Xi(t,this._hostClassName)}listen(e,t,n,u){if(!this._triggers.has(t))throw Xde();if(n==null||n.length==0)throw qde();if(!e1e(n))throw $de();let r=_i(this._elementListeners,e,[]),A={name:t,phase:n,callback:u};r.push(A);let o=_i(this._engine.statesByElement,e,new Map);return o.has(t)||(Xi(e,w0),Xi(e,w0+"-"+t),o.set(t,ZE)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(A);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw eEe();return t}trigger(e,t,n,u=!0){let r=this._getTrigger(t),A=new p5(this.id,t,e),o=this._engine.statesByElement.get(e);o||(Xi(e,w0),Xi(e,w0+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),i=new f5(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&i.absorbOptions(l.options),o.set(t,i),l||(l=ZE),i.value!==xl&&l.value===i.value){if(!r1e(l.params,i.params)){let E=[],B=r.matchStyles(l.value,l.params,E),g=r.matchStyles(i.value,i.params,E);E.length?this._engine.reportError(E):this._engine.afterFlush(()=>{Ao(e,B),ka(e,g)})}return}let h=_i(this._engine.playersByElement,e,[]);h.forEach(E=>{E.namespaceId==this.id&&E.triggerName==t&&E.queued&&E.destroy()});let s=r.matchTransition(l.value,i.value,e,i.params),c=!1;if(!s){if(!u)return;s=r.fallbackTransition,c=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:s,fromState:l,toState:i,player:A,isFallbackTransition:c}),c||(Xi(e,n6),A.onStart(()=>{Oo(e,n6)})),A.onDone(()=>{let E=this.players.indexOf(A);E>=0&&this.players.splice(E,1);let B=this._engine.playersByElement.get(e);if(B){let g=B.indexOf(A);g>=0&&B.splice(g,1)}}),this.players.push(A),h.push(A),A}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(u=>u.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,Sh,!0);n.forEach(u=>{if(u[oa])return;let r=this._engine.fetchNamespacesByElement(u);r.size?r.forEach(A=>A.triggerLeaveAnimation(u,t,!1,!0)):this.clearElementCache(u)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(u=>this.clearElementCache(u)))}triggerLeaveAnimation(e,t,n,u){let r=this._engine.statesByElement.get(e),A=new Map;if(r){let o=[];if(r.forEach((l,i)=>{if(A.set(i,l.value),this._triggers.has(i)){let h=this.trigger(e,i,xl,u);h&&o.push(h)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,A),n&&vA(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let u=new Set;t.forEach(r=>{let A=r.name;if(u.has(A))return;u.add(A);let o=this._triggers.get(A).fallbackTransition,l=n.get(A)||ZE,i=new f5(xl),h=new p5(this.id,A,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:A,transition:o,fromState:l,toState:i,player:h,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let u=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)u=!0;else{let A=e;for(;A=A.parentNode;)if(n.statesByElement.get(A)){u=!0;break}}}if(this.prepareLeaveAnimationListeners(e),u)n.markElementAsRemoved(this.id,e,!1,t);else{let r=e[oa];(!r||r===iF)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Xi(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let u=n.player;if(u.destroyed)return;let r=n.element,A=this._elementListeners.get(r);A&&A.forEach(o=>{if(o.name==n.triggerName){let l=Cg(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,mg(n.player,o.phase,l,o.callback)}}),u.markedForDestroy?this._engine.afterFlush(()=>{u.destroy()}):t.push(n)}),this._queue=[],t.sort((n,u)=>{let r=n.transition.ast.depCount,A=u.transition.ast.depCount;return r==0||A==0?r-A:this._engine.driver.containsElement(n.element,u.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},XEe=class{constructor(e,t,n){d(this,"bodyNode");d(this,"driver");d(this,"_normalizer");d(this,"players",[]);d(this,"newHostElements",new Map);d(this,"playersByElement",new Map);d(this,"playersByQueriedElement",new Map);d(this,"statesByElement",new Map);d(this,"disabledNodes",new Set);d(this,"totalAnimations",0);d(this,"totalQueuedPlayers",0);d(this,"_namespaceLookup",{});d(this,"_namespaceList",[]);d(this,"_flushFns",[]);d(this,"_whenQuietFns",[]);d(this,"namespacesByHostElement",new Map);d(this,"collectedEnterElements",[]);d(this,"collectedLeaveElements",[]);d(this,"onRemovalComplete",(e,t)=>{});this.bodyNode=e,this.driver=t,this._normalizer=n}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new KEe(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,u=this.namespacesByHostElement;if(n.length-1>=0){let r=!1,A=this.driver.getParentElement(t);for(;A;){let o=u.get(A);if(o){let l=n.indexOf(o);n.splice(l+1,0,e),r=!0;break}A=this.driver.getParentElement(A)}r||n.unshift(e)}else n.push(e);return u.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let u=this._namespaceLookup[e];u&&u.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let u=this._namespaceList.indexOf(n);u>=0&&this._namespaceList.splice(u,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let u of n.values())if(u.namespaceId){let r=this._fetchNamespace(u.namespaceId);r&&t.add(r)}}return t}trigger(e,t,n,u){if(M0(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,n,u),!0}return!1}insertNode(e,t,n,u){if(!M0(t))return;let r=t[oa];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let A=this.collectedLeaveElements.indexOf(t);A>=0&&this.collectedLeaveElements.splice(A,1)}if(e){let A=this._fetchNamespace(e);A&&A.insertNode(t,n)}u&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Xi(e,JE)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Oo(e,JE))}removeNode(e,t,n){if(M0(t)){let u=e?this._fetchNamespace(e):null;u?u.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,u,r){this.collectedLeaveElements.push(t),t[oa]={namespaceId:e,setForRemoval:u,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,n,u,r){return M0(t)?this._fetchNamespace(e).listen(t,n,u,r):()=>{}}_buildInstruction(e,t,n,u,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,u,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,Sh,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,E5,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return vA(this.players).onDone(()=>e());e()})}processLeaveNode(e){var n;let t=e[oa];if(t&&t.setForRemoval){if(e[oa]=iF,t.namespaceId){this.destroyInnerAnimations(e);let u=this._fetchNamespace(t.namespaceId);u&&u.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}(n=e.classList)!=null&&n.contains(JE)&&this.markElementAsDisabled(e,!1),this.driver.query(e,WEe,!0).forEach(u=>{this.markElementAsDisabled(u,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,u)=>this._balanceNamespaceList(n,u)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let u=this.collectedEnterElements[n];Xi(u,HEe)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e)}finally{for(let u=0;u<n.length;u++)n[u]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let u=this.collectedLeaveElements[n];this.processLeaveNode(u)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?vA(t).onDone(()=>{n.forEach(u=>u())}):n.forEach(u=>u())}}reportError(e){throw tEe()}_flushAnimations(e,t){let n=new Mg,u=[],r=new Map,A=[],o=new Map,l=new Map,i=new Map,h=new Set;this.disabledNodes.forEach(b=>{h.add(b);let Q=this.driver.query(b,LEe,!0);for(let Y=0;Y<Q.length;Y++)h.add(Q[Y])});let s=this.bodyNode,c=Array.from(this.statesByElement.keys()),E=A6(c,this.collectedEnterElements),B=new Map,g=0;E.forEach((b,Q)=>{let Y=J4+g++;B.set(Q,Y),b.forEach(U=>Xi(U,Y))});let f=[],m=new Set,p=new Set;for(let b=0;b<this.collectedLeaveElements.length;b++){let Q=this.collectedLeaveElements[b],Y=Q[oa];Y&&Y.setForRemoval&&(f.push(Q),m.add(Q),Y.hasAnimation?this.driver.query(Q,VEe,!0).forEach(U=>m.add(U)):p.add(Q))}let C=new Map,F=A6(c,Array.from(m));F.forEach((b,Q)=>{let Y=d5+g++;C.set(Q,Y),b.forEach(U=>Xi(U,Y))}),e.push(()=>{E.forEach((b,Q)=>{let Y=B.get(Q);b.forEach(U=>Oo(U,Y))}),F.forEach((b,Q)=>{let Y=C.get(Q);b.forEach(U=>Oo(U,Y))}),f.forEach(b=>{this.processLeaveNode(b)})});let w=[],a=[];for(let b=this._namespaceList.length-1;b>=0;b--)this._namespaceList[b].drainQueuedTransitions(t).forEach(Q=>{let Y=Q.player,U=Q.element;if(w.push(Y),this.collectedEnterElements.length){let Ye=U[oa];if(Ye&&Ye.setForMove){if(Ye.previousTriggersValues&&Ye.previousTriggersValues.has(Q.triggerName)){let Oe=Ye.previousTriggersValues.get(Q.triggerName),Fe=this.statesByElement.get(Q.element);if(Fe&&Fe.has(Q.triggerName)){let Te=Fe.get(Q.triggerName);Te.value=Oe,Fe.set(Q.triggerName,Te)}}Y.destroy();return}}let O=!s||!this.driver.containsElement(s,U),re=C.get(U),Ee=B.get(U),Ae=this._buildInstruction(Q,n,Ee,re,O);if(Ae.errors&&Ae.errors.length){a.push(Ae);return}if(O){Y.onStart(()=>Ao(U,Ae.fromStyles)),Y.onDestroy(()=>ka(U,Ae.toStyles)),u.push(Y);return}if(Q.isFallbackTransition){Y.onStart(()=>Ao(U,Ae.fromStyles)),Y.onDestroy(()=>ka(U,Ae.toStyles)),u.push(Y);return}let ge=[];Ae.timelines.forEach(Ye=>{Ye.stretchStartingKeyframe=!0,this.disabledNodes.has(Ye.element)||ge.push(Ye)}),Ae.timelines=ge,n.append(U,Ae.timelines);let xe={instruction:Ae,player:Y,element:U};A.push(xe),Ae.queriedElements.forEach(Ye=>_i(o,Ye,[]).push(Y)),Ae.preStyleProps.forEach((Ye,Oe)=>{if(Ye.size){let Fe=l.get(Oe);Fe||l.set(Oe,Fe=new Set),Ye.forEach((Te,Re)=>Fe.add(Re))}}),Ae.postStyleProps.forEach((Ye,Oe)=>{let Fe=i.get(Oe);Fe||i.set(Oe,Fe=new Set),Ye.forEach((Te,Re)=>Fe.add(Re))})});if(a.length){let b=[];a.forEach(Q=>{b.push(uEe(Q.triggerName,Q.errors))}),w.forEach(Q=>Q.destroy()),this.reportError(b)}let D=new Map,x=new Map;A.forEach(b=>{let Q=b.element;n.has(Q)&&(x.set(Q,Q),this._beforeAnimationBuild(b.player.namespaceId,b.instruction,D))}),u.forEach(b=>{let Q=b.element;this._getPreviousPlayers(Q,!1,b.namespaceId,b.triggerName,null).forEach(Y=>{_i(D,Q,[]).push(Y),Y.destroy()})});let N=f.filter(b=>o6(b,l,i)),S=new Map;a6(S,this.driver,p,i,nA).forEach(b=>{o6(b,l,i)&&N.push(b)});let R=new Map;E.forEach((b,Q)=>{a6(R,this.driver,new Set(b),l,pg)}),N.forEach(b=>{let Q=S.get(b),Y=R.get(b);S.set(b,new Map([...(Q==null?void 0:Q.entries())??[],...(Y==null?void 0:Y.entries())??[]]))});let y=[],I=[],M={};A.forEach(b=>{let{element:Q,player:Y,instruction:U}=b;if(n.has(Q)){if(h.has(Q)){Y.onDestroy(()=>ka(Q,U.toStyles)),Y.disabled=!0,Y.overrideTotalTime(U.totalTime),u.push(Y);return}let O=M;if(x.size>1){let Ee=Q,Ae=[];for(;Ee=Ee.parentNode;){let ge=x.get(Ee);if(ge){O=ge;break}Ae.push(Ee)}Ae.forEach(ge=>x.set(ge,O))}let re=this._buildAnimation(Y.namespaceId,U,D,r,R,S);if(Y.setRealPlayer(re),O===M)y.push(Y);else{let Ee=this.playersByElement.get(O);Ee&&Ee.length&&(Y.parentPlayer=vA(Ee)),u.push(Y)}}else Ao(Q,U.fromStyles),Y.onDestroy(()=>ka(Q,U.toStyles)),I.push(Y),h.has(Q)&&u.push(Y)}),I.forEach(b=>{let Q=r.get(b.element);if(Q&&Q.length){let Y=vA(Q);b.setRealPlayer(Y)}}),u.forEach(b=>{b.parentPlayer?b.syncPlayerEvents(b.parentPlayer):b.destroy()});for(let b=0;b<f.length;b++){let Q=f[b],Y=Q[oa];if(Oo(Q,d5),Y&&Y.hasAnimation)continue;let U=[];if(o.size){let re=o.get(Q);re&&re.length&&U.push(...re);let Ee=this.driver.query(Q,E5,!0);for(let Ae=0;Ae<Ee.length;Ae++){let ge=o.get(Ee[Ae]);ge&&ge.length&&U.push(...ge)}}let O=U.filter(re=>!re.destroyed);O.length?t1e(this,Q,O):this.processLeaveNode(Q)}return f.length=0,y.forEach(b=>{this.players.push(b),b.onDone(()=>{b.destroy();let Q=this.players.indexOf(b);this.players.splice(Q,1)}),b.play()}),y}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,u,r){let A=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(A=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==xl;o.forEach(i=>{i.queued||!l&&i.triggerName!=u||A.push(i)})}}return(n||u)&&(A=A.filter(o=>!(n&&n!=o.namespaceId||u&&u!=o.triggerName))),A}_beforeAnimationBuild(e,t,n){let u=t.triggerName,r=t.element,A=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:u;for(let l of t.timelines){let i=l.element,h=i!==r,s=_i(n,i,[]);this._getPreviousPlayers(i,h,A,o,t.toState).forEach(c=>{let E=c.getRealPlayer();E.beforeDestroy&&E.beforeDestroy(),c.destroy(),s.push(c)})}Ao(r,t.fromStyles)}_buildAnimation(e,t,n,u,r,A){let o=t.triggerName,l=t.element,i=[],h=new Set,s=new Set,c=t.timelines.map(B=>{let g=B.element;h.add(g);let f=g[oa];if(f&&f.removedBeforeQueried)return new Hl(B.duration,B.delay);let m=g!==l,p=u1e((n.get(g)||JEe).map(D=>D.getRealPlayer())).filter(D=>{let x=D;return x.element?x.element===g:!1}),C=r.get(g),F=A.get(g),w=L4(this._normalizer,B.keyframes,C,F),a=this._buildPlayer(B,w,p);if(B.subTimeline&&u&&s.add(g),m){let D=new p5(e,o,g);D.setRealPlayer(a),i.push(D)}return a});i.forEach(B=>{_i(this.playersByQueriedElement,B.element,[]).push(B),B.onDone(()=>qEe(this.playersByQueriedElement,B.element,B))}),h.forEach(B=>Xi(B,qf));let E=vA(c);return E.onDestroy(()=>{h.forEach(B=>Oo(B,qf)),ka(l,t.toStyles)}),s.forEach(B=>{_i(u,B,[]).push(E)}),E}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Hl(e.duration,e.delay)}},p5=class{constructor(e,t,n){d(this,"namespaceId");d(this,"triggerName");d(this,"element");d(this,"_player",new Hl);d(this,"_containsRealPlayer",!1);d(this,"_queuedCallbacks",new Map);d(this,"destroyed",!1);d(this,"parentPlayer",null);d(this,"markedForDestroy",!1);d(this,"disabled",!1);d(this,"queued",!0);d(this,"totalTime",0);this.namespaceId=e,this.triggerName=t,this.element=n}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(u=>mg(e,n,void 0,u))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){_i(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function qEe(e,t,n){let u=e.get(t);if(u){if(u.length){let r=u.indexOf(n);u.splice(r,1)}u.length==0&&e.delete(t)}return u}function $Ee(e){return e??null}function M0(e){return e&&e.nodeType===1}function e1e(e){return e=="start"||e=="done"}function i6(e,t){let n=e.style.display;return e.style.display=t??"none",n}function a6(e,t,n,u,r){let A=[];n.forEach(i=>A.push(i6(i)));let o=[];u.forEach((i,h)=>{let s=new Map;i.forEach(c=>{let E=t.computeStyle(h,c,r);s.set(c,E),(!E||E.length==0)&&(h[oa]=ZEe,o.push(h))}),e.set(h,s)});let l=0;return n.forEach(i=>i6(i,A[l++])),o}function A6(e,t){let n=new Map;if(e.forEach(l=>n.set(l,[])),t.length==0)return n;let u=1,r=new Set(t),A=new Map;function o(l){if(!l)return u;let i=A.get(l);if(i)return i;let h=l.parentNode;return n.has(h)?i=h:r.has(h)?i=u:i=o(h),A.set(l,i),i}return t.forEach(l=>{let i=o(l);i!==u&&n.get(i).push(l)}),n}function Xi(e,t){var n;(n=e.classList)==null||n.add(t)}function Oo(e,t){var n;(n=e.classList)==null||n.remove(t)}function t1e(e,t,n){vA(n).onDone(()=>e.processLeaveNode(t))}function u1e(e){let t=[];return aF(e,t),t}function aF(e,t){for(let n=0;n<e.length;n++){let u=e[n];u instanceof j4?aF(u.players,t):t.push(u)}}function r1e(e,t){let n=Object.keys(e),u=Object.keys(t);if(n.length!=u.length)return!1;for(let r=0;r<n.length;r++){let A=n[r];if(!t.hasOwnProperty(A)||e[A]!==t[A])return!1}return!0}function o6(e,t,n){let u=n.get(e);if(!u)return!1;let r=t.get(e);return r?u.forEach(A=>r.add(A)):t.set(e,u),n.delete(e),!0}var m5=class{constructor(e,t,n){d(this,"_driver");d(this,"_normalizer");d(this,"_transitionEngine");d(this,"_timelineEngine");d(this,"_triggerCache",{});d(this,"onRemovalComplete",(e,t)=>{});this._driver=t,this._normalizer=n,this._transitionEngine=new XEe(e.body,t,n),this._timelineEngine=new jEe(e.body,t,n),this._transitionEngine.onRemovalComplete=(u,r)=>this.onRemovalComplete(u,r)}registerTrigger(e,t,n,u,r){let A=e+"-"+u,o=this._triggerCache[A];if(!o){let l=[],i=[],h=q4(this._driver,r,l,i);if(l.length)throw Wde();o=UEe(u,h,this._normalizer),this._triggerCache[A]=o}this._transitionEngine.registerTrigger(t,u,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,u){this._transitionEngine.insertNode(e,t,n,u)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,u){if(n.charAt(0)=="@"){let[r,A]=Kf(n),o=u;this._timelineEngine.command(r,t,A,o)}else this._transitionEngine.trigger(e,t,n,u)}listen(e,t,n,u,r){if(n.charAt(0)=="@"){let[A,o]=Kf(n);return this._timelineEngine.listen(A,t,o,r)}return this._transitionEngine.listen(e,t,n,u,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function n1e(e,t){let n=null,u=null;return Array.isArray(t)&&t.length?(n=KE(t[0]),t.length>1&&(u=KE(t[t.length-1]))):t instanceof Map&&(n=KE(t)),n||u?new i1e(e,n,u):null}var i1e=(()=>{const t=class t{constructor(u,r,A){d(this,"_element");d(this,"_startStyles");d(this,"_endStyles");d(this,"_state",0);d(this,"_initialStyles");this._element=u,this._startStyles=r,this._endStyles=A;let o=t.initialStylesByElement.get(u);o||t.initialStylesByElement.set(u,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&ka(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ka(this._element,this._initialStyles),this._endStyles&&(ka(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ao(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ao(this._element,this._endStyles),this._endStyles=null),ka(this._element,this._initialStyles),this._state=3)}};d(t,"initialStylesByElement",new WeakMap);let e=t;return e})();function KE(e){let t=null;return e.forEach((n,u)=>{a1e(u)&&(t=t||new Map,t.set(u,n))}),t}function a1e(e){return e==="display"||e==="position"}var s6=class{constructor(e,t,n,u){d(this,"element");d(this,"keyframes");d(this,"options");d(this,"_specialStyles");d(this,"_onDoneFns",[]);d(this,"_onStartFns",[]);d(this,"_onDestroyFns",[]);d(this,"_duration");d(this,"_delay");d(this,"_initialized",!1);d(this,"_finished",!1);d(this,"_started",!1);d(this,"_destroyed",!1);d(this,"_finalKeyframe");d(this,"_originalOnDoneFns",[]);d(this,"_originalOnStartFns",[]);d(this,"domPlayer");d(this,"time",0);d(this,"parentPlayer",null);d(this,"currentSnapshot",new Map);this.element=e,this.keyframes=t,this.options=n,this._specialStyles=u,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,n)=>{n!=="offset"&&e.set(n,this._finished?t:wg(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},A1e=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return W4(e,t)}getParentElement(e){return Fg(e)}query(e,t,n){return H4(e,t,n)}computeStyle(e,t,n){return wg(e,t)}animate(e,t,n,u,r,A=[]){let o=u==0?"both":"forwards",l={duration:n,delay:u,fill:o};r&&(l.easing=r);let i=new Map,h=A.filter(E=>E instanceof s6);dEe(n,u)&&h.forEach(E=>{E.currentSnapshot.forEach((B,g)=>i.set(g,B))});let s=lEe(t).map(E=>new Map(E));s=EEe(e,s,i);let c=n1e(e,s);return new s6(e,s,l,c)}},V0="@",AF="@.disabled",oF=class{constructor(e,t,n,u){d(this,"namespaceId");d(this,"delegate");d(this,"engine");d(this,"_onDestroy");d(this,"ɵtype",0);this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=u}get data(){return this.delegate.data}destroyNode(e){var t,n;(n=(t=this.delegate).destroyNode)==null||n.call(t,e)}destroy(){var e;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),(e=this._onDestroy)==null||e.call(this)}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,u=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,u)}removeChild(e,t,n){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,u){this.delegate.setAttribute(e,t,n,u)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,u){this.delegate.setStyle(e,t,n,u)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==V0&&t==AF?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n,u){return this.delegate.listen(e,t,n,u)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},o1e=class extends oF{constructor(t,n,u,r,A){super(n,u,r,A);d(this,"factory");this.factory=t,this.namespaceId=n}setProperty(t,n,u){n.charAt(0)==V0?n.charAt(1)=="."&&n==AF?(u=u===void 0?!0:!!u,this.disableAnimations(t,u)):this.engine.process(this.namespaceId,t,n.slice(1),u):this.delegate.setProperty(t,n,u)}listen(t,n,u,r){if(n.charAt(0)==V0){let A=s1e(t),o=n.slice(1),l="";return o.charAt(0)!=V0&&([o,l]=l1e(o)),this.engine.listen(this.namespaceId,A,o,l,i=>{let h=i._data||-1;this.factory.scheduleListenerCallback(h,u,i)})}return this.delegate.listen(t,n,u,r)}};function s1e(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function l1e(e){let t=e.indexOf("."),n=e.substring(0,t),u=e.slice(t+1);return[n,u]}var c1e=class{constructor(e,t,n){d(this,"delegate");d(this,"engine");d(this,"_zone");d(this,"_currentId",0);d(this,"_microtaskId",1);d(this,"_animationCallbacksBuffer",[]);d(this,"_rendererCache",new Map);d(this,"_cdRecurDepth",0);this.delegate=e,this.engine=t,this._zone=n,t.onRemovalComplete=(u,r)=>{r==null||r.removeChild(null,u)}}createRenderer(e,t){var l;let n="",u=this.delegate.createRenderer(e,t);if(!e||!((l=t==null?void 0:t.data)!=null&&l.animation)){let i=this._rendererCache,h=i.get(u);if(!h){let s=()=>i.delete(u);h=new oF(n,u,this.engine,s),i.set(u,h)}return h}let r=t.id,A=t.id+"-"+this._currentId;this._currentId++,this.engine.register(A,e);let o=i=>{Array.isArray(i)?i.forEach(o):this.engine.registerTrigger(r,A,e,i.name,i)};return t.data.animation.forEach(o),new o1e(this,A,u,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let u=this._animationCallbacksBuffer;u.length==0&&queueMicrotask(()=>{this._zone.run(()=>{u.forEach(r=>{let[A,o]=r;A(o)}),this._animationCallbacksBuffer=[]})}),u.push([t,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){var t,n;this.engine.flush(),(n=(t=this.delegate).componentReplaced)==null||n.call(t,e)}},h1e=(()=>{const t=class t extends m5{constructor(u,r,A){super(u,r,A)}ngOnDestroy(){this.flush()}};d(t,"ɵfac",function(u){return new(u||t)(vu(Sr),vu(K4),vu(yg))}),d(t,"ɵprov",Wt({token:t,factory:t.ɵfac}));let e=t;return e})();function d1e(){return new fEe}function E1e(e,t,n){return new c1e(e,t,n)}var B1e=[{provide:yg,useFactory:d1e},{provide:m5,useClass:h1e},{provide:pa,useFactory:E1e,deps:[K1,m5,or]}],g1e=[{provide:K4,useFactory:()=>new A1e},{provide:Si,useFactory:()=>"BrowserAnimations"},...B1e];function f1e(){return yo("NgEagerAnimations"),[...g1e]}var p1e=(()=>{const t=class t extends Ds{constructor(u){super(),this.translate=u,this.getRangeLabel=(r,A,o)=>{if(o===0||A===0)return`0 / ${o}`;o=Math.max(o,0);let l=r*A,i=l<o?Math.min(l+A,o):l+A;return`${l+1} - ${i} / ${o}`},this.getAndInitTranslations=()=>{this.nextPageLabel=this.translate.instant("commons.matPaginator.nextPage"),this.previousPageLabel=this.translate.instant("commons.matPaginator.prevPage"),this.firstPageLabel=this.translate.instant("commons.matPaginator.firstPage"),this.lastPageLabel=this.translate.instant("commons.matPaginator.lastPage"),this.itemsPerPageLabel=this.translate.instant("commons.matPaginator.itemsPerPage"),this.getRangeLabel=this.getRangeLabel.bind(this),this.changes.next()},this.translate.onLangChange.subscribe(()=>{this.getAndInitTranslations()}),this.getAndInitTranslations()}};t.ɵfac=function(u){return new(u||t)(vu(Ii))},t.ɵprov=Wt({token:t,factory:t.ɵfac});let e=t;return e})(),sF=6048e5,m1e=864e5,C1e=6e4,F1e=36e5,D1e=1e3,l6=Symbol.for("constructDateFrom");function ui(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&l6 in e?e[l6](t):e instanceof Date?new e.constructor(t):new Date(t)}function Un(e,t){return ui(t||e,e)}function lF(e,t,n){let u=Un(e,n==null?void 0:n.in);return isNaN(t)?ui((n==null?void 0:n.in)||e,NaN):(t&&u.setDate(u.getDate()+t),u)}var w1e={};function Ps(){return w1e}function zA(e,t){var l,i,h,s;let n=Ps(),u=(t==null?void 0:t.weekStartsOn)??((i=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:i.weekStartsOn)??n.weekStartsOn??((s=(h=n.locale)==null?void 0:h.options)==null?void 0:s.weekStartsOn)??0,r=Un(e,t==null?void 0:t.in),A=r.getDay(),o=(A<u?7:0)+A-u;return r.setDate(r.getDate()-o),r.setHours(0,0,0,0),r}function ws(e,t){return zA(e,Br(ru({},t),{weekStartsOn:1}))}function cF(e,t){let n=Un(e,t==null?void 0:t.in),u=n.getFullYear(),r=ui(n,0);r.setFullYear(u+1,0,4),r.setHours(0,0,0,0);let A=ws(r),o=ui(n,0);o.setFullYear(u,0,4),o.setHours(0,0,0,0);let l=ws(o);return n.getTime()>=A.getTime()?u+1:n.getTime()>=l.getTime()?u:u-1}function zh(e){let t=Un(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function y1e(e,...t){let n=ui.bind(null,t.find(u=>typeof u=="object"));return t.map(n)}function c6(e,t){let n=Un(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function v1e(e,t,n){let[u,r]=y1e(n==null?void 0:n.in,e,t),A=c6(u),o=c6(r),l=+A-zh(A),i=+o-zh(o);return Math.round((l-i)/m1e)}function M1e(e,t){let n=cF(e,t),u=ui(e,0);return u.setFullYear(n,0,4),u.setHours(0,0,0,0),ws(u)}function x1e(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function b1e(e){return!(!x1e(e)&&typeof e!="number"||isNaN(+Un(e)))}function I1e(e,t){let n=Un(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}var Q1e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},R1e=(e,t,n)=>{let u,r=Q1e[e];return typeof r=="string"?u=r:t===1?u=r.one:u=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+u:u+" ago":u};function XE(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var S1e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},k1e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},T1e={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Y1e={date:XE({formats:S1e,defaultWidth:"full"}),time:XE({formats:k1e,defaultWidth:"full"}),dateTime:XE({formats:T1e,defaultWidth:"full"})},z1e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},N1e=(e,t,n,u)=>z1e[e];function El(e){return(t,n)=>{let u=n!=null&&n.context?String(n.context):"standalone",r;if(u==="formatting"&&e.formattingValues){let o=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):o;r=e.formattingValues[l]||e.formattingValues[o]}else{let o=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;r=e.values[l]||e.values[o]}let A=e.argumentCallback?e.argumentCallback(t):t;return r[A]}}var _1e={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},U1e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},P1e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},G1e={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},O1e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},j1e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},L1e=(e,t)=>{let n=Number(e),u=n%100;if(u>20||u<10)switch(u%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},W1e={ordinalNumber:L1e,era:El({values:_1e,defaultWidth:"wide"}),quarter:El({values:U1e,defaultWidth:"wide",argumentCallback:e=>e-1}),month:El({values:P1e,defaultWidth:"wide"}),day:El({values:G1e,defaultWidth:"wide"}),dayPeriod:El({values:O1e,defaultWidth:"wide",formattingValues:j1e,defaultFormattingWidth:"wide"})};function Bl(e){return(t,n={})=>{let u=n.width,r=u&&e.matchPatterns[u]||e.matchPatterns[e.defaultMatchWidth],A=t.match(r);if(!A)return null;let o=A[0],l=u&&e.parsePatterns[u]||e.parsePatterns[e.defaultParseWidth],i=Array.isArray(l)?V1e(l,c=>c.test(o)):H1e(l,c=>c.test(o)),h;h=e.valueCallback?e.valueCallback(i):i,h=n.valueCallback?n.valueCallback(h):h;let s=t.slice(o.length);return{value:h,rest:s}}}function H1e(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function V1e(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function J1e(e){return(t,n={})=>{let u=t.match(e.matchPattern);if(!u)return null;let r=u[0],A=t.match(e.parsePattern);if(!A)return null;let o=e.valueCallback?e.valueCallback(A[0]):A[0];o=n.valueCallback?n.valueCallback(o):o;let l=t.slice(r.length);return{value:o,rest:l}}}var Z1e=/^(\d+)(th|st|nd|rd)?/i,K1e=/\d+/i,X1e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},q1e={any:[/^b/i,/^(a|c)/i]},$1e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},e5e={any:[/1/i,/2/i,/3/i,/4/i]},t5e={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},u5e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},r5e={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},n5e={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},i5e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},a5e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},A5e={ordinalNumber:J1e({matchPattern:Z1e,parsePattern:K1e,valueCallback:e=>parseInt(e,10)}),era:Bl({matchPatterns:X1e,defaultMatchWidth:"wide",parsePatterns:q1e,defaultParseWidth:"any"}),quarter:Bl({matchPatterns:$1e,defaultMatchWidth:"wide",parsePatterns:e5e,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Bl({matchPatterns:t5e,defaultMatchWidth:"wide",parsePatterns:u5e,defaultParseWidth:"any"}),day:Bl({matchPatterns:r5e,defaultMatchWidth:"wide",parsePatterns:n5e,defaultParseWidth:"any"}),dayPeriod:Bl({matchPatterns:i5e,defaultMatchWidth:"any",parsePatterns:a5e,defaultParseWidth:"any"})},hF={code:"en-US",formatDistance:R1e,formatLong:Y1e,formatRelative:N1e,localize:W1e,match:A5e,options:{weekStartsOn:0,firstWeekContainsDate:1}};function o5e(e,t){let n=Un(e,t==null?void 0:t.in);return v1e(n,I1e(n))+1}function dF(e,t){let n=Un(e,t==null?void 0:t.in),u=+ws(n)-+M1e(n);return Math.round(u/sF)+1}function xg(e,t){var s,c,E,B;let n=Un(e,t==null?void 0:t.in),u=n.getFullYear(),r=Ps(),A=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((B=(E=r.locale)==null?void 0:E.options)==null?void 0:B.firstWeekContainsDate)??1,o=ui((t==null?void 0:t.in)||e,0);o.setFullYear(u+1,0,A),o.setHours(0,0,0,0);let l=zA(o,t),i=ui((t==null?void 0:t.in)||e,0);i.setFullYear(u,0,A),i.setHours(0,0,0,0);let h=zA(i,t);return+n>=+l?u+1:+n>=+h?u:u-1}function s5e(e,t){var o,l,i,h;let n=Ps(),u=(t==null?void 0:t.firstWeekContainsDate)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(i=n.locale)==null?void 0:i.options)==null?void 0:h.firstWeekContainsDate)??1,r=xg(e,t),A=ui((t==null?void 0:t.in)||e,0);return A.setFullYear(r,0,u),A.setHours(0,0,0,0),zA(A,t)}function EF(e,t){let n=Un(e,t==null?void 0:t.in),u=+zA(n,t)-+s5e(n,t);return Math.round(u/sF)+1}function Jr(e,t){let n=e<0?"-":"",u=Math.abs(e).toString().padStart(t,"0");return n+u}var FA={y(e,t){let n=e.getFullYear(),u=n>0?n:1-n;return Jr(t==="yy"?u%100:u,t.length)},M(e,t){let n=e.getMonth();return t==="M"?String(n+1):Jr(n+1,2)},d(e,t){return Jr(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Jr(e.getHours()%12||12,t.length)},H(e,t){return Jr(e.getHours(),t.length)},m(e,t){return Jr(e.getMinutes(),t.length)},s(e,t){return Jr(e.getSeconds(),t.length)},S(e,t){let n=t.length,u=e.getMilliseconds(),r=Math.trunc(u*Math.pow(10,n-3));return Jr(r,t.length)}},Po={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},h6={G:function(e,t,n){let u=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(u,{width:"abbreviated"});case"GGGGG":return n.era(u,{width:"narrow"});case"GGGG":default:return n.era(u,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){let u=e.getFullYear(),r=u>0?u:1-u;return n.ordinalNumber(r,{unit:"year"})}return FA.y(e,t)},Y:function(e,t,n,u){let r=xg(e,u),A=r>0?r:1-r;if(t==="YY"){let o=A%100;return Jr(o,2)}return t==="Yo"?n.ordinalNumber(A,{unit:"year"}):Jr(A,t.length)},R:function(e,t){let n=cF(e);return Jr(n,t.length)},u:function(e,t){let n=e.getFullYear();return Jr(n,t.length)},Q:function(e,t,n){let u=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(u);case"QQ":return Jr(u,2);case"Qo":return n.ordinalNumber(u,{unit:"quarter"});case"QQQ":return n.quarter(u,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(u,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(u,{width:"wide",context:"formatting"})}},q:function(e,t,n){let u=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(u);case"qq":return Jr(u,2);case"qo":return n.ordinalNumber(u,{unit:"quarter"});case"qqq":return n.quarter(u,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(u,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(u,{width:"wide",context:"standalone"})}},M:function(e,t,n){let u=e.getMonth();switch(t){case"M":case"MM":return FA.M(e,t);case"Mo":return n.ordinalNumber(u+1,{unit:"month"});case"MMM":return n.month(u,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(u,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(u,{width:"wide",context:"formatting"})}},L:function(e,t,n){let u=e.getMonth();switch(t){case"L":return String(u+1);case"LL":return Jr(u+1,2);case"Lo":return n.ordinalNumber(u+1,{unit:"month"});case"LLL":return n.month(u,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(u,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(u,{width:"wide",context:"standalone"})}},w:function(e,t,n,u){let r=EF(e,u);return t==="wo"?n.ordinalNumber(r,{unit:"week"}):Jr(r,t.length)},I:function(e,t,n){let u=dF(e);return t==="Io"?n.ordinalNumber(u,{unit:"week"}):Jr(u,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):FA.d(e,t)},D:function(e,t,n){let u=o5e(e);return t==="Do"?n.ordinalNumber(u,{unit:"dayOfYear"}):Jr(u,t.length)},E:function(e,t,n){let u=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(u,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(u,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(u,{width:"short",context:"formatting"});case"EEEE":default:return n.day(u,{width:"wide",context:"formatting"})}},e:function(e,t,n,u){let r=e.getDay(),A=(r-u.weekStartsOn+8)%7||7;switch(t){case"e":return String(A);case"ee":return Jr(A,2);case"eo":return n.ordinalNumber(A,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,u){let r=e.getDay(),A=(r-u.weekStartsOn+8)%7||7;switch(t){case"c":return String(A);case"cc":return Jr(A,t.length);case"co":return n.ordinalNumber(A,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){let u=e.getDay(),r=u===0?7:u;switch(t){case"i":return String(r);case"ii":return Jr(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(u,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(u,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(u,{width:"short",context:"formatting"});case"iiii":default:return n.day(u,{width:"wide",context:"formatting"})}},a:function(e,t,n){let u=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(u,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(u,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(u,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(u,{width:"wide",context:"formatting"})}},b:function(e,t,n){let u=e.getHours(),r;switch(u===12?r=Po.noon:u===0?r=Po.midnight:r=u/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let u=e.getHours(),r;switch(u>=17?r=Po.evening:u>=12?r=Po.afternoon:u>=4?r=Po.morning:r=Po.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let u=e.getHours()%12;return u===0&&(u=12),n.ordinalNumber(u,{unit:"hour"})}return FA.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):FA.H(e,t)},K:function(e,t,n){let u=e.getHours()%12;return t==="Ko"?n.ordinalNumber(u,{unit:"hour"}):Jr(u,t.length)},k:function(e,t,n){let u=e.getHours();return u===0&&(u=24),t==="ko"?n.ordinalNumber(u,{unit:"hour"}):Jr(u,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):FA.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):FA.s(e,t)},S:function(e,t){return FA.S(e,t)},X:function(e,t,n){let u=e.getTimezoneOffset();if(u===0)return"Z";switch(t){case"X":return E6(u);case"XXXX":case"XX":return ro(u);case"XXXXX":case"XXX":default:return ro(u,":")}},x:function(e,t,n){let u=e.getTimezoneOffset();switch(t){case"x":return E6(u);case"xxxx":case"xx":return ro(u);case"xxxxx":case"xxx":default:return ro(u,":")}},O:function(e,t,n){let u=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+d6(u,":");case"OOOO":default:return"GMT"+ro(u,":")}},z:function(e,t,n){let u=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+d6(u,":");case"zzzz":default:return"GMT"+ro(u,":")}},t:function(e,t,n){let u=Math.trunc(+e/1e3);return Jr(u,t.length)},T:function(e,t,n){return Jr(+e,t.length)}};function d6(e,t=""){let n=e>0?"-":"+",u=Math.abs(e),r=Math.trunc(u/60),A=u%60;return A===0?n+String(r):n+String(r)+t+Jr(A,2)}function E6(e,t){return e%60===0?(e>0?"-":"+")+Jr(Math.abs(e)/60,2):ro(e,t)}function ro(e,t=""){let n=e>0?"-":"+",u=Math.abs(e),r=Jr(Math.trunc(u/60),2),A=Jr(u%60,2);return n+r+t+A}var B6=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},BF=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},l5e=(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],u=n[1],r=n[2];if(!r)return B6(e,t);let A;switch(u){case"P":A=t.dateTime({width:"short"});break;case"PP":A=t.dateTime({width:"medium"});break;case"PPP":A=t.dateTime({width:"long"});break;case"PPPP":default:A=t.dateTime({width:"full"});break}return A.replace("{{date}}",B6(u,t)).replace("{{time}}",BF(r,t))},C5={p:BF,P:l5e},c5e=/^D+$/,h5e=/^Y+$/,d5e=["D","DD","YY","YYYY"];function gF(e){return c5e.test(e)}function fF(e){return h5e.test(e)}function F5(e,t,n){let u=E5e(e,t,n);if(console.warn(u),d5e.includes(e))throw new RangeError(u)}function E5e(e,t,n){let u=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${u} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var B5e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g5e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,f5e=/^'([^]*?)'?$/,p5e=/''/g,m5e=/[a-zA-Z]/;function As(e,t,n){var s,c,E,B,g,f,m,p;let u=Ps(),r=(n==null?void 0:n.locale)??u.locale??hF,A=(n==null?void 0:n.firstWeekContainsDate)??((c=(s=n==null?void 0:n.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??u.firstWeekContainsDate??((B=(E=u.locale)==null?void 0:E.options)==null?void 0:B.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((f=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:f.weekStartsOn)??u.weekStartsOn??((p=(m=u.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??0,l=Un(e,n==null?void 0:n.in);if(!b1e(l))throw new RangeError("Invalid time value");let i=t.match(g5e).map(C=>{let F=C[0];if(F==="p"||F==="P"){let w=C5[F];return w(C,r.formatLong)}return C}).join("").match(B5e).map(C=>{if(C==="''")return{isToken:!1,value:"'"};let F=C[0];if(F==="'")return{isToken:!1,value:C5e(C)};if(h6[F])return{isToken:!0,value:C};if(F.match(m5e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return{isToken:!1,value:C}});r.localize.preprocessor&&(i=r.localize.preprocessor(l,i));let h={firstWeekContainsDate:A,weekStartsOn:o,locale:r};return i.map(C=>{if(!C.isToken)return C.value;let F=C.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&fF(F)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&gF(F))&&F5(F,t,String(e));let w=h6[F[0]];return w(l,F,r.localize,h)}).join("")}function C5e(e){let t=e.match(f5e);return t?t[1].replace(p5e,"'"):e}function pF(){return Object.assign({},Ps())}function F5e(e,t){let n=Un(e,t==null?void 0:t.in).getDay();return n===0?7:n}function D5e(e,t){return+Un(e)==+Un(t)}function w5e(e,t){let n=y5e(t)?new t(0):ui(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function y5e(e){var t;return typeof e=="function"&&((t=e.prototype)==null?void 0:t.constructor)===e}var v5e=10,mF=class{constructor(){d(this,"subPriority",0)}validate(e,t){return!0}},M5e=class extends mF{constructor(e,t,n,u,r){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=u,r&&(this.subPriority=r)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},x5e=class extends mF{constructor(t,n){super();d(this,"priority",v5e);d(this,"subPriority",-1);this.context=t||(u=>ui(n,u))}set(t,n){return n.timestampIsSet?t:ui(t,w5e(t,this.context))}},Or=class{run(e,t,n,u){let r=this.parse(e,t,n,u);return r?{setter:new M5e(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(e,t,n){return!0}},b5e=class extends Or{constructor(){super(...arguments);d(this,"priority",140);d(this,"incompatibleTokens",["R","u","t","T"])}parse(t,n,u){switch(n){case"G":case"GG":case"GGG":return u.era(t,{width:"abbreviated"})||u.era(t,{width:"narrow"});case"GGGGG":return u.era(t,{width:"narrow"});case"GGGG":default:return u.era(t,{width:"wide"})||u.era(t,{width:"abbreviated"})||u.era(t,{width:"narrow"})}}set(t,n,u){return n.era=u,t.setFullYear(u,0,1),t.setHours(0,0,0,0),t}},Yn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ta={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function zn(e,t){return e&&{value:t(e.value),rest:e.rest}}function Dn(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Ya(e,t){let n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};let u=n[1]==="+"?1:-1,r=n[2]?parseInt(n[2],10):0,A=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:u*(r*F1e+A*C1e+o*D1e),rest:t.slice(n[0].length)}}function CF(e){return Dn(Yn.anyDigitsSigned,e)}function In(e,t){switch(e){case 1:return Dn(Yn.singleDigit,t);case 2:return Dn(Yn.twoDigits,t);case 3:return Dn(Yn.threeDigits,t);case 4:return Dn(Yn.fourDigits,t);default:return Dn(new RegExp("^\\d{1,"+e+"}"),t)}}function Nh(e,t){switch(e){case 1:return Dn(Yn.singleDigitSigned,t);case 2:return Dn(Yn.twoDigitsSigned,t);case 3:return Dn(Yn.threeDigitsSigned,t);case 4:return Dn(Yn.fourDigitsSigned,t);default:return Dn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function bg(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function FF(e,t){let n=t>0,u=n?t:1-t,r;if(u<=50)r=e||100;else{let A=u+50,o=Math.trunc(A/100)*100,l=e>=A%100;r=e+o-(l?100:0)}return n?r:1-r}function DF(e){return e%400===0||e%4===0&&e%100!==0}var I5e=class extends Or{constructor(){super(...arguments);d(this,"priority",130);d(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,n,u){let r=A=>({year:A,isTwoDigitYear:n==="yy"});switch(n){case"y":return zn(In(4,t),r);case"yo":return zn(u.ordinalNumber(t,{unit:"year"}),r);default:return zn(In(n.length,t),r)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,u){let r=t.getFullYear();if(u.isTwoDigitYear){let o=FF(u.year,r);return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}let A=!("era"in n)||n.era===1?u.year:1-u.year;return t.setFullYear(A,0,1),t.setHours(0,0,0,0),t}},Q5e=class extends Or{constructor(){super(...arguments);d(this,"priority",130);d(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,n,u){let r=A=>({year:A,isTwoDigitYear:n==="YY"});switch(n){case"Y":return zn(In(4,t),r);case"Yo":return zn(u.ordinalNumber(t,{unit:"year"}),r);default:return zn(In(n.length,t),r)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,u,r){let A=xg(t,r);if(u.isTwoDigitYear){let l=FF(u.year,A);return t.setFullYear(l,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),zA(t,r)}let o=!("era"in n)||n.era===1?u.year:1-u.year;return t.setFullYear(o,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),zA(t,r)}},R5e=class extends Or{constructor(){super(...arguments);d(this,"priority",130);d(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,n){return Nh(n==="R"?4:n.length,t)}set(t,n,u){let r=ui(t,0);return r.setFullYear(u,0,4),r.setHours(0,0,0,0),ws(r)}},S5e=class extends Or{constructor(){super(...arguments);d(this,"priority",130);d(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,n){return Nh(n==="u"?4:n.length,t)}set(t,n,u){return t.setFullYear(u,0,1),t.setHours(0,0,0,0),t}},k5e=class extends Or{constructor(){super(...arguments);d(this,"priority",120);d(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,n,u){switch(n){case"Q":case"QQ":return In(n.length,t);case"Qo":return u.ordinalNumber(t,{unit:"quarter"});case"QQQ":return u.quarter(t,{width:"abbreviated",context:"formatting"})||u.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return u.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return u.quarter(t,{width:"wide",context:"formatting"})||u.quarter(t,{width:"abbreviated",context:"formatting"})||u.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=1&&n<=4}set(t,n,u){return t.setMonth((u-1)*3,1),t.setHours(0,0,0,0),t}},T5e=class extends Or{constructor(){super(...arguments);d(this,"priority",120);d(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,n,u){switch(n){case"q":case"qq":return In(n.length,t);case"qo":return u.ordinalNumber(t,{unit:"quarter"});case"qqq":return u.quarter(t,{width:"abbreviated",context:"standalone"})||u.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return u.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return u.quarter(t,{width:"wide",context:"standalone"})||u.quarter(t,{width:"abbreviated",context:"standalone"})||u.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=1&&n<=4}set(t,n,u){return t.setMonth((u-1)*3,1),t.setHours(0,0,0,0),t}},Y5e=class extends Or{constructor(){super(...arguments);d(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);d(this,"priority",110)}parse(t,n,u){let r=A=>A-1;switch(n){case"M":return zn(Dn(Yn.month,t),r);case"MM":return zn(In(2,t),r);case"Mo":return zn(u.ordinalNumber(t,{unit:"month"}),r);case"MMM":return u.month(t,{width:"abbreviated",context:"formatting"})||u.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return u.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return u.month(t,{width:"wide",context:"formatting"})||u.month(t,{width:"abbreviated",context:"formatting"})||u.month(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=11}set(t,n,u){return t.setMonth(u,1),t.setHours(0,0,0,0),t}},z5e=class extends Or{constructor(){super(...arguments);d(this,"priority",110);d(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,n,u){let r=A=>A-1;switch(n){case"L":return zn(Dn(Yn.month,t),r);case"LL":return zn(In(2,t),r);case"Lo":return zn(u.ordinalNumber(t,{unit:"month"}),r);case"LLL":return u.month(t,{width:"abbreviated",context:"standalone"})||u.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return u.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return u.month(t,{width:"wide",context:"standalone"})||u.month(t,{width:"abbreviated",context:"standalone"})||u.month(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=11}set(t,n,u){return t.setMonth(u,1),t.setHours(0,0,0,0),t}};function N5e(e,t,n){let u=Un(e,n==null?void 0:n.in),r=EF(u,n)-t;return u.setDate(u.getDate()-r*7),Un(u,n==null?void 0:n.in)}var _5e=class extends Or{constructor(){super(...arguments);d(this,"priority",100);d(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,n,u){switch(n){case"w":return Dn(Yn.week,t);case"wo":return u.ordinalNumber(t,{unit:"week"});default:return In(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,u,r){return zA(N5e(t,u,r),r)}};function U5e(e,t,n){let u=Un(e,n==null?void 0:n.in),r=dF(u,n)-t;return u.setDate(u.getDate()-r*7),u}var P5e=class extends Or{constructor(){super(...arguments);d(this,"priority",100);d(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,n,u){switch(n){case"I":return Dn(Yn.week,t);case"Io":return u.ordinalNumber(t,{unit:"week"});default:return In(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,u){return ws(U5e(t,u))}},G5e=[31,28,31,30,31,30,31,31,30,31,30,31],O5e=[31,29,31,30,31,30,31,31,30,31,30,31],j5e=class extends Or{constructor(){super(...arguments);d(this,"priority",90);d(this,"subPriority",1);d(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,n,u){switch(n){case"d":return Dn(Yn.date,t);case"do":return u.ordinalNumber(t,{unit:"date"});default:return In(n.length,t)}}validate(t,n){let u=t.getFullYear(),r=DF(u),A=t.getMonth();return r?n>=1&&n<=O5e[A]:n>=1&&n<=G5e[A]}set(t,n,u){return t.setDate(u),t.setHours(0,0,0,0),t}},L5e=class extends Or{constructor(){super(...arguments);d(this,"priority",90);d(this,"subpriority",1);d(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,n,u){switch(n){case"D":case"DD":return Dn(Yn.dayOfYear,t);case"Do":return u.ordinalNumber(t,{unit:"date"});default:return In(n.length,t)}}validate(t,n){let u=t.getFullYear();return DF(u)?n>=1&&n<=366:n>=1&&n<=365}set(t,n,u){return t.setMonth(0,u),t.setHours(0,0,0,0),t}};function Ig(e,t,n){var s,c,E,B;let u=Ps(),r=(n==null?void 0:n.weekStartsOn)??((c=(s=n==null?void 0:n.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??u.weekStartsOn??((B=(E=u.locale)==null?void 0:E.options)==null?void 0:B.weekStartsOn)??0,A=Un(e,n==null?void 0:n.in),o=A.getDay(),l=(t%7+7)%7,i=7-r,h=t<0||t>6?t-(o+i)%7:(l+i)%7-(o+i)%7;return lF(A,h,n)}var W5e=class extends Or{constructor(){super(...arguments);d(this,"priority",90);d(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,n,u){switch(n){case"E":case"EE":case"EEE":return u.day(t,{width:"abbreviated",context:"formatting"})||u.day(t,{width:"short",context:"formatting"})||u.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return u.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return u.day(t,{width:"short",context:"formatting"})||u.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return u.day(t,{width:"wide",context:"formatting"})||u.day(t,{width:"abbreviated",context:"formatting"})||u.day(t,{width:"short",context:"formatting"})||u.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,u,r){return t=Ig(t,u,r),t.setHours(0,0,0,0),t}},H5e=class extends Or{constructor(){super(...arguments);d(this,"priority",90);d(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,n,u,r){let A=o=>{let l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(n){case"e":case"ee":return zn(In(n.length,t),A);case"eo":return zn(u.ordinalNumber(t,{unit:"day"}),A);case"eee":return u.day(t,{width:"abbreviated",context:"formatting"})||u.day(t,{width:"short",context:"formatting"})||u.day(t,{width:"narrow",context:"formatting"});case"eeeee":return u.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return u.day(t,{width:"short",context:"formatting"})||u.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return u.day(t,{width:"wide",context:"formatting"})||u.day(t,{width:"abbreviated",context:"formatting"})||u.day(t,{width:"short",context:"formatting"})||u.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,u,r){return t=Ig(t,u,r),t.setHours(0,0,0,0),t}},V5e=class extends Or{constructor(){super(...arguments);d(this,"priority",90);d(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,n,u,r){let A=o=>{let l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(n){case"c":case"cc":return zn(In(n.length,t),A);case"co":return zn(u.ordinalNumber(t,{unit:"day"}),A);case"ccc":return u.day(t,{width:"abbreviated",context:"standalone"})||u.day(t,{width:"short",context:"standalone"})||u.day(t,{width:"narrow",context:"standalone"});case"ccccc":return u.day(t,{width:"narrow",context:"standalone"});case"cccccc":return u.day(t,{width:"short",context:"standalone"})||u.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return u.day(t,{width:"wide",context:"standalone"})||u.day(t,{width:"abbreviated",context:"standalone"})||u.day(t,{width:"short",context:"standalone"})||u.day(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=6}set(t,n,u,r){return t=Ig(t,u,r),t.setHours(0,0,0,0),t}};function J5e(e,t,n){let u=Un(e,n==null?void 0:n.in),r=F5e(u,n),A=t-r;return lF(u,A,n)}var Z5e=class extends Or{constructor(){super(...arguments);d(this,"priority",90);d(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,n,u){let r=A=>A===0?7:A;switch(n){case"i":case"ii":return In(n.length,t);case"io":return u.ordinalNumber(t,{unit:"day"});case"iii":return zn(u.day(t,{width:"abbreviated",context:"formatting"})||u.day(t,{width:"short",context:"formatting"})||u.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return zn(u.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return zn(u.day(t,{width:"short",context:"formatting"})||u.day(t,{width:"narrow",context:"formatting"}),r);case"iiii":default:return zn(u.day(t,{width:"wide",context:"formatting"})||u.day(t,{width:"abbreviated",context:"formatting"})||u.day(t,{width:"short",context:"formatting"})||u.day(t,{width:"narrow",context:"formatting"}),r)}}validate(t,n){return n>=1&&n<=7}set(t,n,u){return t=J5e(t,u),t.setHours(0,0,0,0),t}},K5e=class extends Or{constructor(){super(...arguments);d(this,"priority",80);d(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,n,u){switch(n){case"a":case"aa":case"aaa":return u.dayPeriod(t,{width:"abbreviated",context:"formatting"})||u.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return u.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return u.dayPeriod(t,{width:"wide",context:"formatting"})||u.dayPeriod(t,{width:"abbreviated",context:"formatting"})||u.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,u){return t.setHours(bg(u),0,0,0),t}},X5e=class extends Or{constructor(){super(...arguments);d(this,"priority",80);d(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,n,u){switch(n){case"b":case"bb":case"bbb":return u.dayPeriod(t,{width:"abbreviated",context:"formatting"})||u.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return u.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return u.dayPeriod(t,{width:"wide",context:"formatting"})||u.dayPeriod(t,{width:"abbreviated",context:"formatting"})||u.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,u){return t.setHours(bg(u),0,0,0),t}},q5e=class extends Or{constructor(){super(...arguments);d(this,"priority",80);d(this,"incompatibleTokens",["a","b","t","T"])}parse(t,n,u){switch(n){case"B":case"BB":case"BBB":return u.dayPeriod(t,{width:"abbreviated",context:"formatting"})||u.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return u.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return u.dayPeriod(t,{width:"wide",context:"formatting"})||u.dayPeriod(t,{width:"abbreviated",context:"formatting"})||u.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,u){return t.setHours(bg(u),0,0,0),t}},$5e=class extends Or{constructor(){super(...arguments);d(this,"priority",70);d(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,n,u){switch(n){case"h":return Dn(Yn.hour12h,t);case"ho":return u.ordinalNumber(t,{unit:"hour"});default:return In(n.length,t)}}validate(t,n){return n>=1&&n<=12}set(t,n,u){let r=t.getHours()>=12;return r&&u<12?t.setHours(u+12,0,0,0):!r&&u===12?t.setHours(0,0,0,0):t.setHours(u,0,0,0),t}},eBe=class extends Or{constructor(){super(...arguments);d(this,"priority",70);d(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,n,u){switch(n){case"H":return Dn(Yn.hour23h,t);case"Ho":return u.ordinalNumber(t,{unit:"hour"});default:return In(n.length,t)}}validate(t,n){return n>=0&&n<=23}set(t,n,u){return t.setHours(u,0,0,0),t}},tBe=class extends Or{constructor(){super(...arguments);d(this,"priority",70);d(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,n,u){switch(n){case"K":return Dn(Yn.hour11h,t);case"Ko":return u.ordinalNumber(t,{unit:"hour"});default:return In(n.length,t)}}validate(t,n){return n>=0&&n<=11}set(t,n,u){return t.getHours()>=12&&u<12?t.setHours(u+12,0,0,0):t.setHours(u,0,0,0),t}},uBe=class extends Or{constructor(){super(...arguments);d(this,"priority",70);d(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,n,u){switch(n){case"k":return Dn(Yn.hour24h,t);case"ko":return u.ordinalNumber(t,{unit:"hour"});default:return In(n.length,t)}}validate(t,n){return n>=1&&n<=24}set(t,n,u){let r=u<=24?u%24:u;return t.setHours(r,0,0,0),t}},rBe=class extends Or{constructor(){super(...arguments);d(this,"priority",60);d(this,"incompatibleTokens",["t","T"])}parse(t,n,u){switch(n){case"m":return Dn(Yn.minute,t);case"mo":return u.ordinalNumber(t,{unit:"minute"});default:return In(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,u){return t.setMinutes(u,0,0),t}},nBe=class extends Or{constructor(){super(...arguments);d(this,"priority",50);d(this,"incompatibleTokens",["t","T"])}parse(t,n,u){switch(n){case"s":return Dn(Yn.second,t);case"so":return u.ordinalNumber(t,{unit:"second"});default:return In(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,u){return t.setSeconds(u,0),t}},iBe=class extends Or{constructor(){super(...arguments);d(this,"priority",30);d(this,"incompatibleTokens",["t","T"])}parse(t,n){let u=r=>Math.trunc(r*Math.pow(10,-n.length+3));return zn(In(n.length,t),u)}set(t,n,u){return t.setMilliseconds(u),t}},aBe=class extends Or{constructor(){super(...arguments);d(this,"priority",10);d(this,"incompatibleTokens",["t","T","x"])}parse(t,n){switch(n){case"X":return Ya(Ta.basicOptionalMinutes,t);case"XX":return Ya(Ta.basic,t);case"XXXX":return Ya(Ta.basicOptionalSeconds,t);case"XXXXX":return Ya(Ta.extendedOptionalSeconds,t);case"XXX":default:return Ya(Ta.extended,t)}}set(t,n,u){return n.timestampIsSet?t:ui(t,t.getTime()-zh(t)-u)}},ABe=class extends Or{constructor(){super(...arguments);d(this,"priority",10);d(this,"incompatibleTokens",["t","T","X"])}parse(t,n){switch(n){case"x":return Ya(Ta.basicOptionalMinutes,t);case"xx":return Ya(Ta.basic,t);case"xxxx":return Ya(Ta.basicOptionalSeconds,t);case"xxxxx":return Ya(Ta.extendedOptionalSeconds,t);case"xxx":default:return Ya(Ta.extended,t)}}set(t,n,u){return n.timestampIsSet?t:ui(t,t.getTime()-zh(t)-u)}},oBe=class extends Or{constructor(){super(...arguments);d(this,"priority",40);d(this,"incompatibleTokens","*")}parse(t){return CF(t)}set(t,n,u){return[ui(t,u*1e3),{timestampIsSet:!0}]}},sBe=class extends Or{constructor(){super(...arguments);d(this,"priority",20);d(this,"incompatibleTokens","*")}parse(t){return CF(t)}set(t,n,u){return[ui(t,u),{timestampIsSet:!0}]}},lBe={G:new b5e,y:new I5e,Y:new Q5e,R:new R5e,u:new S5e,Q:new k5e,q:new T5e,M:new Y5e,L:new z5e,w:new _5e,I:new P5e,d:new j5e,D:new L5e,E:new W5e,e:new H5e,c:new V5e,i:new Z5e,a:new K5e,b:new X5e,B:new q5e,h:new $5e,H:new eBe,K:new tBe,k:new uBe,m:new rBe,s:new nBe,S:new iBe,X:new aBe,x:new ABe,t:new oBe,T:new sBe},cBe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hBe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,dBe=/^'([^]*?)'?$/,EBe=/''/g,BBe=/\S/,gBe=/[a-zA-Z]/;function fBe(e,t,n,u){var m,p,C,F;let r=()=>ui(n,NaN),A=pF(),o=A.locale??hF,l=A.firstWeekContainsDate??((p=(m=A.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,i=A.weekStartsOn??((F=(C=A.locale)==null?void 0:C.options)==null?void 0:F.weekStartsOn)??0,h={firstWeekContainsDate:l,weekStartsOn:i,locale:o},s=[new x5e(u==null?void 0:u.in,n)],c=t.match(hBe).map(w=>{let a=w[0];if(a in C5){let D=C5[a];return D(w,o.formatLong)}return w}).join("").match(cBe),E=[];for(let w of c){fF(w)&&F5(w,t,e),gF(w)&&F5(w,t,e);let a=w[0],D=lBe[a];if(D){let{incompatibleTokens:x}=D;if(Array.isArray(x)){let S=E.find(R=>x.includes(R.token)||R.token===a);if(S)throw new RangeError(`The format string mustn't contain \`${S.fullToken}\` and \`${w}\` at the same time`)}else if(D.incompatibleTokens==="*"&&E.length>0)throw new RangeError(`The format string mustn't contain \`${w}\` and any other token at the same time`);E.push({token:a,fullToken:w});let N=D.run(e,w,o.match,h);if(!N)return r();s.push(N.setter),e=N.rest}else{if(a.match(gBe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if(w==="''"?w="'":a==="'"&&(w=pBe(w)),e.indexOf(w)===0)e=e.slice(w.length);else return r()}}if(e.length>0&&BBe.test(e))return r();let B=s.map(w=>w.priority).sort((w,a)=>a-w).filter((w,a,D)=>D.indexOf(w)===a).map(w=>s.filter(a=>a.priority===w).sort((a,D)=>D.subPriority-a.subPriority)).map(w=>w[0]),g=Un(n,u==null?void 0:u.in);if(isNaN(+g))return r();let f={};for(let w of B){if(!w.validate(g,h))return r();let a=w.set(g,f,h);Array.isArray(a)?(g=a[0],Object.assign(f,a[1])):g=a}return g}function pBe(e){return e.match(dBe)[1].replace(EBe,"'")}var gt=function(e){return e.SEPARATOR="separator",e.PERCENT="percent",e.IP="IP",e.CPF_CNPJ="CPF_CNPJ",e.MONTH="M",e.MONTHS="M0",e.MINUTE="m",e.HOUR="h",e.HOURS="H",e.MINUTES="m0",e.HOURS_HOUR="Hh",e.SECONDS="s0",e.HOURS_MINUTES_SECONDS="Hh:m0:s0",e.EMAIL_MASK="A*@A*.A*",e.HOURS_MINUTES="Hh:m0",e.MINUTES_SECONDS="m0:s0",e.DAYS_MONTHS_YEARS="d0/M0/0000",e.DAYS_MONTHS="d0/M0",e.DAYS="d0",e.DAY="d",e.SECOND="s",e.LETTER_S="S",e.DOT=".",e.COMMA=",",e.CURLY_BRACKETS_LEFT="{",e.CURLY_BRACKETS_RIGHT="}",e.MINUS="-",e.OR="||",e.HASH="#",e.EMPTY_STRING="",e.SYMBOL_STAR="*",e.SYMBOL_QUESTION="?",e.SLASH="/",e.WHITE_SPACE=" ",e.NUMBER_ZERO="0",e.NUMBER_NINE="9",e.BACKSPACE="Backspace",e.DELETE="Delete",e.ARROW_LEFT="ArrowLeft",e.ARROW_UP="ArrowUp",e.DOUBLE_ZERO="00",e}(gt||{}),Qg=new Jt("ngx-mask config"),wF=new Jt("new ngx-mask config"),yF=new Jt("initial ngx-mask config"),mBe={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:null,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,apm:!1,leadZero:!1,keepCharacterPositions:!1,triggerOnMaskChange:!1,inputTransformFn:e=>e,outputTransformFn:e=>e,maskFilled:new Nu,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}};gt.HOURS_MINUTES_SECONDS,gt.HOURS_MINUTES,gt.MINUTES_SECONDS;gt.PERCENT,gt.HOURS_HOUR,gt.SECONDS,gt.MINUTES,gt.SEPARATOR,gt.DAYS_MONTHS_YEARS,gt.DAYS_MONTHS,gt.DAYS,gt.MONTHS;var CBe=(()=>{const t=class t{constructor(){d(this,"_config",Ie(Qg));d(this,"dropSpecialCharacters",this._config.dropSpecialCharacters);d(this,"hiddenInput",this._config.hiddenInput);d(this,"showTemplate");d(this,"clearIfNotMatch",this._config.clearIfNotMatch);d(this,"specialCharacters",this._config.specialCharacters);d(this,"patterns",this._config.patterns);d(this,"prefix",this._config.prefix);d(this,"suffix",this._config.suffix);d(this,"thousandSeparator",this._config.thousandSeparator);d(this,"decimalMarker",this._config.decimalMarker);d(this,"customPattern");d(this,"showMaskTyped",this._config.showMaskTyped);d(this,"placeHolderCharacter",this._config.placeHolderCharacter);d(this,"validation",this._config.validation);d(this,"separatorLimit",this._config.separatorLimit);d(this,"allowNegativeNumbers",this._config.allowNegativeNumbers);d(this,"leadZeroDateTime",this._config.leadZeroDateTime);d(this,"leadZero",this._config.leadZero);d(this,"apm",this._config.apm);d(this,"inputTransformFn",this._config.inputTransformFn);d(this,"outputTransformFn",this._config.outputTransformFn);d(this,"keepCharacterPositions",this._config.keepCharacterPositions);d(this,"_shift",new Set);d(this,"plusOnePosition",!1);d(this,"maskExpression","");d(this,"actualValue","");d(this,"showKeepCharacterExp","");d(this,"shownMaskExpression","");d(this,"deletedSpecialCharacter",!1);d(this,"ipError");d(this,"cpfCnpjError");d(this,"_formatWithSeparators",(u,r,A,o)=>{var B;let l=[],i="";if(Array.isArray(A)){let g=new RegExp(A.map(f=>"[\\^$.|?*+()".indexOf(f)>=0?`\\${f}`:f).join("|"));l=u.split(g),i=((B=u.match(g))==null?void 0:B[0])??gt.EMPTY_STRING}else l=u.split(A),i=A;let h=l.length>1?`${i}${l[1]}`:gt.EMPTY_STRING,s=l[0]??gt.EMPTY_STRING,c=this.separatorLimit.replace(/\s/g,gt.EMPTY_STRING);c&&+c&&(s[0]===gt.MINUS?s=`-${s.slice(1,s.length).slice(0,c.length)}`:s=s.slice(0,c.length));let E=/(\d+)(\d{3})/;for(;r&&E.test(s);)s=s.replace(E,"$1"+r+"$2");return typeof o>"u"?s+h:o===0?s:s+h.substring(0,o+1)});d(this,"percentage",u=>{let r=u.replace(",","."),A=Number(this.allowNegativeNumbers&&u.includes(gt.MINUS)?r.slice(1,u.length):r);return!isNaN(A)&&A>=0&&A<=100});d(this,"getPrecision",u=>{let r=u.split(gt.DOT);return r.length>1?Number(r[r.length-1]):1/0});d(this,"checkAndRemoveSuffix",u=>{var r,A,o,l;for(let i=((r=this.suffix)==null?void 0:r.length)-1;i>=0;i--){let h=this.suffix.substring(i,(A=this.suffix)==null?void 0:A.length);if(u.includes(h)&&i!==((o=this.suffix)==null?void 0:o.length)-1&&(i-1<0||!u.includes(this.suffix.substring(i-1,(l=this.suffix)==null?void 0:l.length))))return u.replace(h,gt.EMPTY_STRING)}return u});d(this,"checkInputPrecision",(u,r,A)=>{var i;let o=u,l=A;if(r<1/0){Array.isArray(l)&&(l=l.find(B=>B!==this.thousandSeparator)||l[0]);let h=new RegExp(this._charToRegExpExpression(l)+`\\d{${r}}.*$`),s=o.match(h),c=(s&&((i=s[0])==null?void 0:i.length))??0;if(c-1>r){let E=c-1-r;o=o.substring(0,o.length-E)}r===0&&this._compareOrIncludes(o[o.length-1],l,this.thousandSeparator)&&(o=o.substring(0,o.length-1))}return o})}applyMaskWithPattern(u,r){let[A,o]=r;return this.customPattern=o,this.applyMask(u,A)}applyMask(u,r,A=0,o=!1,l=!1,i=()=>{}){var N,S,R;if(!r||typeof u!="string")return gt.EMPTY_STRING;let h=0,s="",c=!1,E=!1,B=1,g=!1,f=u,m=A;f.slice(0,this.prefix.length)===this.prefix&&(f=f.slice(this.prefix.length,f.length)),this.suffix&&f.length>0&&(f=this.checkAndRemoveSuffix(f)),f==="("&&this.prefix&&(f="");let p=f.toString().split(gt.EMPTY_STRING);if(this.allowNegativeNumbers&&f.slice(h,h+1)===gt.MINUS&&(s+=f.slice(h,h+1)),r===gt.IP){let y=f.split(gt.DOT);this.ipError=this._validIP(y),r="099.099.099.099"}let C=[];for(let y=0;y<f.length;y++)(N=f[y])!=null&&N.match("\\d")&&C.push(f[y]??gt.EMPTY_STRING);if(r===gt.CPF_CNPJ&&(this.cpfCnpjError=C.length!==11&&C.length!==14,C.length>11?r="00.000.000/0000-00":r="000.000.000-00"),r.startsWith(gt.PERCENT)){if(f.match("[a-z]|[A-Z]")||f.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!l){f=this._stripToDecimal(f);let M=this.getPrecision(r);f=this.checkInputPrecision(f,M,this.decimalMarker)}let y=typeof this.decimalMarker=="string"?this.decimalMarker:gt.DOT;if(f.indexOf(y)>0&&!this.percentage(f.substring(0,f.indexOf(y)))){let M=f.substring(0,f.indexOf(y)-1);this.allowNegativeNumbers&&f.slice(h,h+1)===gt.MINUS&&!l&&(M=f.substring(0,f.indexOf(y))),f=`${M}${f.substring(f.indexOf(y),f.length)}`}let I="";this.allowNegativeNumbers&&f.slice(h,h+1)===gt.MINUS?I=`${gt.MINUS}${f.slice(h+1,h+f.length)}`:I=f,this.percentage(I)?s=this._splitPercentZero(f):s=this._splitPercentZero(f.substring(0,f.length-1))}else if(r.startsWith(gt.SEPARATOR)){(f.match("[wа-яА-Я]")||f.match("[ЁёА-я]")||f.match("[a-z]|[A-Z]")||f.match(/[-@#!$%\\^&*()_£¬'+|~=`{}\]:";<>.?/]/)||f.match("[^A-Za-z0-9,]"))&&(f=this._stripToDecimal(f));let y=this.getPrecision(r),I=Array.isArray(this.decimalMarker)?this.thousandSeparator===gt.DOT?gt.COMMA:gt.DOT:this.decimalMarker;if(y===0?f=this.allowNegativeNumbers?f.length>2&&f[0]===gt.MINUS&&f[1]===gt.NUMBER_ZERO&&f[2]!==this.thousandSeparator&&f[2]!==gt.COMMA&&f[2]!==gt.DOT?"-"+f.slice(2,f.length):f[0]===gt.NUMBER_ZERO&&f.length>1&&f[1]!==this.thousandSeparator&&f[1]!==gt.COMMA&&f[1]!==gt.DOT?f.slice(1,f.length):f:f.length>1&&f[0]===gt.NUMBER_ZERO&&f[1]!==this.thousandSeparator&&f[1]!==gt.COMMA&&f[1]!==gt.DOT?f.slice(1,f.length):f:(f[0]===I&&f.length>1&&(f=gt.NUMBER_ZERO+f.slice(0,f.length+1),this.plusOnePosition=!0),f[0]===gt.NUMBER_ZERO&&f[1]!==I&&f[1]!==this.thousandSeparator&&(f=f.length>1?f.slice(0,1)+I+f.slice(1,f.length+1):f,this.plusOnePosition=!0),this.allowNegativeNumbers&&f[0]===gt.MINUS&&(f[1]===I||f[1]===gt.NUMBER_ZERO)&&(f=f[1]===I&&f.length>2?f.slice(0,1)+gt.NUMBER_ZERO+f.slice(1,f.length):f[1]===gt.NUMBER_ZERO&&f.length>2&&f[2]!==I?f.slice(0,2)+I+f.slice(2,f.length):f,this.plusOnePosition=!0)),l){let Ee=f.slice(this._findFirstNonZeroDigitIndex(f),f.length),Ae=f[m]===gt.NUMBER_ZERO||f[m]===I,ge=f[0]===gt.NUMBER_ZERO,xe=f[0]===gt.MINUS,Ye=f[0]===this.thousandSeparator,Oe=f[1]===I,Fe=f[1]===gt.NUMBER_ZERO,Te=f[2]===I;ge&&Oe&&Ae&&m<2&&(f=Ee),xe&&Fe&&Te&&Ae&&m<3&&(f=gt.MINUS+Ee),Ee!==gt.MINUS&&(m===0&&(ge||Ye)||this.allowNegativeNumbers&&m===1&&xe&&!Fe)&&(f=xe?gt.MINUS+Ee:Ee)}let M=this._charToRegExpExpression(this.thousandSeparator),b='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(M,"");if(Array.isArray(this.decimalMarker))for(let Ee of this.decimalMarker)b=b.replace(this._charToRegExpExpression(Ee),gt.EMPTY_STRING);else b=b.replace(this._charToRegExpExpression(this.decimalMarker),"");let Q=new RegExp("["+b+"]");f.match(Q)&&(f=f.substring(0,f.length-1)),f=this.checkInputPrecision(f,y,this.decimalMarker);let Y=f.replace(new RegExp(M,"g"),"");s=this._formatWithSeparators(Y,this.thousandSeparator,this.decimalMarker,y);let U=s.indexOf(gt.COMMA)-f.indexOf(gt.COMMA),O=s.length-f.length,re=l&&s.length<u.length&&this.separatorLimit;if((s[m-1]===this.thousandSeparator||s[m-this.prefix.length])&&this.prefix&&l)m=m-1;else if(O>0&&s[m]!==this.thousandSeparator||re){E=!0;let Ee=0;do this._shift.add(m+Ee),Ee++;while(Ee<O)}else s[m-1]===this.thousandSeparator||O===-4||O===-3||s[m]===this.thousandSeparator?(this._shift.clear(),this._shift.add(m-1)):U!==0&&m>0&&!(s.indexOf(gt.COMMA)>=m&&m>3)||!(s.indexOf(gt.DOT)>=m&&m>3)&&O<=0?(this._shift.clear(),E=!0,B=O,m+=O,this._shift.add(m)):this._shift.clear()}else for(let y=0,I=p[0];y<p.length&&h!==r.length;y++,I=p[y]??gt.EMPTY_STRING){let M=gt.SYMBOL_STAR in this.patterns;if(this._checkSymbolMask(I,r[h]??gt.EMPTY_STRING)&&r[h+1]===gt.SYMBOL_QUESTION)s+=I,h+=2;else if(r[h+1]===gt.SYMBOL_STAR&&c&&this._checkSymbolMask(I,r[h+2]??gt.EMPTY_STRING))s+=I,h+=3,c=!1;else if(this._checkSymbolMask(I,r[h]??gt.EMPTY_STRING)&&r[h+1]===gt.SYMBOL_STAR&&!M)s+=I,c=!0;else if(r[h+1]===gt.SYMBOL_QUESTION&&this._checkSymbolMask(I,r[h+2]??gt.EMPTY_STRING))s+=I,h+=3;else if(this._checkSymbolMask(I,r[h]??gt.EMPTY_STRING)){if(r[h]===gt.HOURS&&(this.apm?Number(I)>9:Number(I)>2)){m=this.leadZeroDateTime?m:m+1,h+=1,this._shiftStep(r,h,p.length),y--,this.leadZeroDateTime&&(s+="0");continue}if(r[h]===gt.HOUR&&(this.apm?s.length===1&&Number(s)>1||s==="1"&&Number(I)>2||f.slice(h-1,h).length===1&&Number(f.slice(h-1,h))>2||f.slice(h-1,h)==="1"&&Number(I)>2:s==="2"&&Number(I)>3||(s.slice(h-2,h)==="2"||s.slice(h-3,h)==="2"||s.slice(h-4,h)==="2"||s.slice(h-1,h)==="2")&&Number(I)>3&&h>10)){m=m+1,h+=1,y--;continue}if((r[h]===gt.MINUTE||r[h]===gt.SECOND)&&Number(I)>5){m=this.leadZeroDateTime?m:m+1,h+=1,this._shiftStep(r,h,p.length),y--,this.leadZeroDateTime&&(s+="0");continue}let b=31,Q=f[h],Y=f[h+1],U=f[h+2],O=f[h-1],re=f[h-2],Ee=f.slice(h-3,h-1),Ae=f.slice(h-1,h+1),ge=f.slice(h,h+2),xe=f.slice(h-2,h);if(r[h]===gt.DAY){let Ye=r.slice(0,2)===gt.MONTHS,Oe=r.slice(0,2)===gt.MONTHS&&this.specialCharacters.includes(re);if(Number(I)>3&&this.leadZeroDateTime||!Ye&&(Number(ge)>b||Number(Ae)>b||this.specialCharacters.includes(Y))||(Oe?Number(Ae)>b||!this.specialCharacters.includes(Q)&&this.specialCharacters.includes(U)||this.specialCharacters.includes(Q):Number(ge)>b||this.specialCharacters.includes(Y)&&!l)){m=this.leadZeroDateTime?m:m+1,h+=1,this._shiftStep(r,h,p.length),y--,this.leadZeroDateTime&&(s+="0");continue}}if(r[h]===gt.MONTH){let Ye=h===0&&(Number(I)>2||Number(ge)>12||this.specialCharacters.includes(Y)&&!l),Oe=r.slice(h+2,h+3),Fe=Ee.includes(Oe)&&r.includes("d0")&&(this.specialCharacters.includes(re)&&Number(Ae)>12&&!this.specialCharacters.includes(Q)||this.specialCharacters.includes(Q)),Te=Number(Ee)<=b&&!this.specialCharacters.includes(Ee)&&this.specialCharacters.includes(O)&&(Number(ge)>12||this.specialCharacters.includes(Y)),Re=Number(ge)>12&&h===5||this.specialCharacters.includes(Y)&&h===5,X=Number(Ee)>b&&!this.specialCharacters.includes(Ee)&&!this.specialCharacters.includes(xe)&&Number(xe)>12&&r.includes("d0"),fe=Number(Ee)<=b&&!this.specialCharacters.includes(Ee)&&!this.specialCharacters.includes(O)&&Number(Ae)>12;if(Number(I)>1&&this.leadZeroDateTime||Ye||Fe||fe||X||Te||Re&&!this.leadZeroDateTime){m=this.leadZeroDateTime?m:m+1,h+=1,this._shiftStep(r,h,p.length),y--,this.leadZeroDateTime&&(s+="0");continue}}s+=I,h++}else this.specialCharacters.includes(I)&&r[h]===I?(s+=I,h++):this.specialCharacters.indexOf(r[h]??gt.EMPTY_STRING)!==-1?(s+=r[h],h++,this._shiftStep(r,h,p.length),y--):r[h]===gt.NUMBER_NINE&&this.showMaskTyped?this._shiftStep(r,h,p.length):this.patterns[r[h]??gt.EMPTY_STRING]&&((S=this.patterns[r[h]??gt.EMPTY_STRING])!=null&&S.optional)?(p[h]&&r!=="099.099.099.099"&&r!=="000.000.000-00"&&r!=="00.000.000/0000-00"&&!r.match(/^9+\.0+$/)&&!((R=this.patterns[r[h]??gt.EMPTY_STRING])!=null&&R.optional)&&(s+=p[h]),r.includes(gt.NUMBER_NINE+gt.SYMBOL_STAR)&&r.includes(gt.NUMBER_ZERO+gt.SYMBOL_STAR)&&h++,h++,y--):this.maskExpression[h+1]===gt.SYMBOL_STAR&&this._findSpecialChar(this.maskExpression[h+2]??gt.EMPTY_STRING)&&this._findSpecialChar(I)===this.maskExpression[h+2]&&c||this.maskExpression[h+1]===gt.SYMBOL_QUESTION&&this._findSpecialChar(this.maskExpression[h+2]??gt.EMPTY_STRING)&&this._findSpecialChar(I)===this.maskExpression[h+2]&&c?(h+=3,s+=I):this.showMaskTyped&&this.specialCharacters.indexOf(I)<0&&I!==this.placeHolderCharacter&&this.placeHolderCharacter.length===1&&(g=!0)}s.length+1===r.length&&this.specialCharacters.indexOf(r[r.length-1]??gt.EMPTY_STRING)!==-1&&(s+=r[r.length-1]);let F=m+1;for(;this._shift.has(F);)B++,F++;let w=o&&!r.startsWith(gt.SEPARATOR)?h:this._shift.has(m)?B:0;g&&w--,i(w,E),B<0&&this._shift.clear();let a=!1;l&&(a=p.every(y=>this.specialCharacters.includes(y)));let D=`${this.prefix}${a?gt.EMPTY_STRING:s}${this.showMaskTyped?"":this.suffix}`;s.length===0&&(D=this.dropSpecialCharacters?`${s}`:`${this.prefix}${s}`);let x=f.length===1&&this.specialCharacters.includes(r[0])&&f!==r[0];if(!this._checkSymbolMask(f,r[1])&&x)return"";if(s.includes(gt.MINUS)&&this.prefix&&this.allowNegativeNumbers){if(l&&s===gt.MINUS)return"";D=`${gt.MINUS}${this.prefix}${s.split(gt.MINUS).join(gt.EMPTY_STRING)}${this.suffix}`}return D}_findDropSpecialChar(u){return Array.isArray(this.dropSpecialCharacters)?this.dropSpecialCharacters.find(r=>r===u):this._findSpecialChar(u)}_findSpecialChar(u){return this.specialCharacters.find(r=>r===u)}_checkSymbolMask(u,r){var A,o;return this.patterns=this.customPattern?this.customPattern:this.patterns,(((A=this.patterns[r])==null?void 0:A.pattern)&&((o=this.patterns[r])==null?void 0:o.pattern.test(u)))??!1}_stripToDecimal(u){return u.split(gt.EMPTY_STRING).filter((r,A)=>{let o=typeof this.decimalMarker=="string"?r===this.decimalMarker:this.decimalMarker.includes(r);return r.match("^-?\\d")||r===this.thousandSeparator||o||r===gt.MINUS&&A===0&&this.allowNegativeNumbers}).join(gt.EMPTY_STRING)}_charToRegExpExpression(u){return u&&(u===" "?"\\s":"[\\^$.|?*+()".indexOf(u)>=0?`\\${u}`:u)}_shiftStep(u,r,A){let o=/[*?]/g.test(u.slice(0,r))?A:r;this._shift.add(o+this.prefix.length||0)}_compareOrIncludes(u,r,A){return Array.isArray(r)?r.filter(o=>o!==A).includes(u):u===r}_validIP(u){return!(u.length===4&&!u.some((r,A)=>u.length!==A+1?r===gt.EMPTY_STRING||Number(r)>255:r===gt.EMPTY_STRING||Number(r.substring(0,3))>255))}_splitPercentZero(u){if(u===gt.MINUS&&this.allowNegativeNumbers)return u;let r=typeof this.decimalMarker=="string"?u.indexOf(this.decimalMarker):u.indexOf(gt.DOT),A=this.allowNegativeNumbers&&u.includes(gt.MINUS)?"-":"";if(r===-1){let o=parseInt(A?u.slice(1,u.length):u,10);return isNaN(o)?gt.EMPTY_STRING:`${A}${o}`}else{let o=parseInt(u.replace("-","").substring(0,r),10),l=u.substring(r+1),i=isNaN(o)?"":o.toString(),h=typeof this.decimalMarker=="string"?this.decimalMarker:gt.DOT;return i===gt.EMPTY_STRING?gt.EMPTY_STRING:`${A}${i}${h}${l}`}}_findFirstNonZeroDigitIndex(u){for(let r=0;r<u.length;r++){let A=u[r];if(A&&A>="1"&&A<="9")return r}return-1}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵprov",Wt({token:t,factory:t.ɵfac}));let e=t;return e})(),FBe=(()=>{const t=class t extends CBe{constructor(){super(...arguments);d(this,"isNumberValue",!1);d(this,"maskIsShown","");d(this,"selStart",null);d(this,"selEnd",null);d(this,"writingValue",!1);d(this,"maskChanged",!1);d(this,"_maskExpressionArray",[]);d(this,"triggerOnMaskChange",!1);d(this,"_previousValue","");d(this,"_currentValue","");d(this,"_emitValue",!1);d(this,"_start");d(this,"_end");d(this,"onChange",r=>{});d(this,"_elementRef",Ie(dr,{optional:!0}));d(this,"document",Ie(Sr));d(this,"_config",Ie(Qg));d(this,"_renderer",Ie(_A,{optional:!0}))}applyMask(r,A,o=0,l=!1,i=!1,h=()=>{}){if(!A)return r!==this.actualValue?this.actualValue:r;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():gt.EMPTY_STRING,this.maskExpression===gt.IP&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(r||gt.HASH)),this.maskExpression===gt.CPF_CNPJ&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(r||gt.HASH)),!r&&this.showMaskTyped)return this.formControlResult(this.prefix),`${this.prefix}${this.maskIsShown}${this.suffix}`;let s=r&&typeof this.selStart=="number"?r[this.selStart]??gt.EMPTY_STRING:gt.EMPTY_STRING,c="",E=o;if(this.hiddenInput!==null&&!this.writingValue){let m=r&&r.length===1?r.split(gt.EMPTY_STRING):this.actualValue.split(gt.EMPTY_STRING);typeof this.selStart=="object"&&typeof this.selEnd=="object"?(this.selStart=Number(this.selStart),this.selEnd=Number(this.selEnd)):r!==gt.EMPTY_STRING&&m.length?typeof this.selStart=="number"&&typeof this.selEnd=="number"&&(r.length>m.length?m.splice(this.selStart,0,s):r.length<m.length&&(m.length-r.length===1?i?m.splice(this.selStart-1,1):m.splice(r.length-1,1):m.splice(this.selStart,this.selEnd-this.selStart))):m=[],this.showMaskTyped&&!this.hiddenInput&&(c=this.removeMask(r)),c=this.actualValue.length&&m.length<=r.length?this.shiftTypedSymbols(m.join(gt.EMPTY_STRING)):r}if(l&&(this.hiddenInput||!this.hiddenInput)&&(c=r),i&&this.specialCharacters.indexOf(this.maskExpression[E]??gt.EMPTY_STRING)!==-1&&this.showMaskTyped&&!this.prefix&&(c=this._currentValue),this.deletedSpecialCharacter&&E&&(this.specialCharacters.includes(this.actualValue.slice(E,E+1))?E=E+1:A.slice(E-1,E+1)!==gt.MONTHS&&(E=E-2),this.deletedSpecialCharacter=!1),this.showMaskTyped&&this.placeHolderCharacter.length===1&&!this.leadZeroDateTime&&(c=this.removeMask(r)),this.maskChanged?c=r:c=c&&c.length?c:r,this.showMaskTyped&&this.keepCharacterPositions&&this.actualValue&&!l&&!this.writingValue){let m=this.dropSpecialCharacters?this.removeMask(this.actualValue):this.actualValue;return this.formControlResult(m),this.actualValue?this.actualValue:`${this.prefix}${this.maskIsShown}${this.suffix}`}let B=super.applyMask(c,A,E,l,i,h);if(this.actualValue=this.getActualValue(B),this.thousandSeparator===gt.DOT&&this.decimalMarker===gt.DOT&&(this.decimalMarker=gt.COMMA),this.maskExpression.startsWith(gt.SEPARATOR)&&this.dropSpecialCharacters===!0&&(this.specialCharacters=this.specialCharacters.filter(m=>!this._compareOrIncludes(m,this.decimalMarker,this.thousandSeparator))),(B||B==="")&&(this._previousValue=this._currentValue,this._currentValue=B,this._emitValue=this._previousValue!==this._currentValue||this.maskChanged||this.writingValue||this._previousValue===this._currentValue&&l),this._emitValue&&(this.writingValue&&this.triggerOnMaskChange?requestAnimationFrame(()=>this.formControlResult(B)):this.formControlResult(B)),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?i?this.hideInput(B,this.maskExpression):`${this.hideInput(B,this.maskExpression)}${this.maskIsShown.slice(B.length)}`:B;let g=B.length,f=`${this.prefix}${this.maskIsShown}${this.suffix}`;if(this.maskExpression.includes(gt.HOURS)){let m=this._numberSkipedSymbols(B);return`${B}${f.slice(g+m)}`}else if(this.maskExpression===gt.IP||this.maskExpression===gt.CPF_CNPJ)return`${B}${f}`;return`${B}${f.slice(g)}`}_numberSkipedSymbols(r){let A=/(^|\D)(\d\D)/g,o=A.exec(r),l=0;for(;o!=null;)l+=1,o=A.exec(r);return l}applyValueChanges(r,A,o,l=()=>{}){var h;let i=(h=this._elementRef)==null?void 0:h.nativeElement;i&&(i.value=this.applyMask(i.value,this.maskExpression,r,A,o,l),i!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(r,A){return r.split(gt.EMPTY_STRING).map((o,l)=>{var i,h;return this.patterns&&this.patterns[A[l]??gt.EMPTY_STRING]&&((i=this.patterns[A[l]??gt.EMPTY_STRING])!=null&&i.symbol)?(h=this.patterns[A[l]??gt.EMPTY_STRING])==null?void 0:h.symbol:o}).join(gt.EMPTY_STRING)}getActualValue(r){let A=r.split(gt.EMPTY_STRING).filter((o,l)=>{let i=this.maskExpression[l]??gt.EMPTY_STRING;return this._checkSymbolMask(o,i)||this.specialCharacters.includes(i)&&o===i});return A.join(gt.EMPTY_STRING)===r?A.join(gt.EMPTY_STRING):r}shiftTypedSymbols(r){let A="";return(r&&r.split(gt.EMPTY_STRING).map((o,l)=>{if(this.specialCharacters.includes(r[l+1]??gt.EMPTY_STRING)&&r[l+1]!==this.maskExpression[l+1])return A=o,r[l+1];if(A.length){let i=A;return A=gt.EMPTY_STRING,i}return o})||[]).join(gt.EMPTY_STRING)}numberToString(r){return!r&&r!==0||this.maskExpression.startsWith(gt.SEPARATOR)&&(this.leadZero||!this.dropSpecialCharacters)||this.maskExpression.startsWith(gt.SEPARATOR)&&this.separatorLimit.length>14&&String(r).length>14?String(r):Number(r).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}).replace(`/${gt.MINUS}/`,gt.MINUS)}showMaskInInput(r){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}else if(this.showMaskTyped){if(r){if(this.maskExpression===gt.IP)return this._checkForIp(r);if(this.maskExpression===gt.CPF_CNPJ)return this._checkForCpfCnpj(r)}return this.placeHolderCharacter.length===this.maskExpression.length?this.placeHolderCharacter:this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){var A;let r=(A=this._elementRef)==null?void 0:A.nativeElement;r&&this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==r.value.replace(this.placeHolderCharacter,gt.EMPTY_STRING).length&&(this.formElementProperty=["value",gt.EMPTY_STRING],this.applyMask("",this.maskExpression))}set formElementProperty([r,A]){!this._renderer||!this._elementRef||Promise.resolve().then(()=>{var o,l;return(l=this._renderer)==null?void 0:l.setProperty((o=this._elementRef)==null?void 0:o.nativeElement,r,A)})}checkDropSpecialCharAmount(r){return r.split(gt.EMPTY_STRING).filter(A=>this._findDropSpecialChar(A)).length}removeMask(r){return this._removeMask(this._removeSuffix(this._removePrefix(r)),this.specialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(r){if(r===gt.HASH)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;let A=[];for(let o=0;o<r.length;o++){let l=r[o]??gt.EMPTY_STRING;l&&l.match("\\d")&&A.push(l)}return A.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:A.length>3&&A.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:A.length>6&&A.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(r){let A=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,o=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if(r===gt.HASH)return A;let l=[];for(let i=0;i<r.length;i++){let h=r[i]??gt.EMPTY_STRING;h&&h.match("\\d")&&l.push(h)}return l.length<=3?A.slice(l.length,A.length):l.length>3&&l.length<=6?A.slice(l.length+1,A.length):l.length>6&&l.length<=9?A.slice(l.length+2,A.length):l.length>9&&l.length<11?A.slice(l.length+3,A.length):l.length===11?"":l.length===12?r.length===17?o.slice(16,o.length):o.slice(15,o.length):l.length>12&&l.length<=14?o.slice(l.length+4,o.length):""}_getActiveElement(r=this.document){var o;let A=(o=r==null?void 0:r.activeElement)==null?void 0:o.shadowRoot;return A!=null&&A.activeElement?this._getActiveElement(A):r.activeElement}formControlResult(r){if(this.writingValue&&!r){this.onChange("");return}if(this.writingValue||!this.triggerOnMaskChange&&this.maskChanged){this.triggerOnMaskChange&&this.maskChanged&&this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(r)))))),this.maskChanged=!1;return}Array.isArray(this.dropSpecialCharacters)?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeMask(this._removeSuffix(this._removePrefix(r)),this.dropSpecialCharacters))))):this.dropSpecialCharacters||!this.dropSpecialCharacters&&this.prefix===r?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(r)))))):this.onChange(this.outputTransformFn(this._toNumber(r)))}_toNumber(r){if(!this.isNumberValue||r===gt.EMPTY_STRING||this.maskExpression.startsWith(gt.SEPARATOR)&&(this.leadZero||!this.dropSpecialCharacters))return r;if(String(r).length>14&&this.maskExpression.startsWith(gt.SEPARATOR))return String(r);let A=Number(r);if(this.maskExpression.startsWith(gt.SEPARATOR)&&Number.isNaN(A)){let o=String(r).replace(",",".");return Number(o)}return Number.isNaN(A)?r:A}_removeMask(r,A){return this.maskExpression.startsWith(gt.PERCENT)&&r.includes(gt.DOT)?r:r&&r.replace(this._regExpForRemove(A),gt.EMPTY_STRING)}_removePrefix(r){return this.prefix?r&&r.replace(this.prefix,gt.EMPTY_STRING):r}_removeSuffix(r){return this.suffix?r&&r.replace(this.suffix,gt.EMPTY_STRING):r}_retrieveSeparatorValue(r){let A=Array.isArray(this.dropSpecialCharacters)?this.specialCharacters.filter(o=>this.dropSpecialCharacters.includes(o)):this.specialCharacters;return!this.deletedSpecialCharacter&&this._checkPatternForSpace()&&r.includes(gt.WHITE_SPACE)&&this.maskExpression.includes(gt.SYMBOL_STAR)&&(A=A.filter(o=>o!==gt.WHITE_SPACE)),this._removeMask(r,A)}_regExpForRemove(r){return new RegExp(r.map(A=>`\\${A}`).join("|"),"gi")}_replaceDecimalMarkerToDot(r){let A=Array.isArray(this.decimalMarker)?this.decimalMarker:[this.decimalMarker];return r.replace(this._regExpForRemove(A),gt.DOT)}_checkSymbols(r){let A=r;if(A===gt.EMPTY_STRING)return A;this.maskExpression.startsWith(gt.PERCENT)&&this.decimalMarker===gt.COMMA&&(A=A.replace(gt.COMMA,gt.DOT));let o=this._retrieveSeparatorPrecision(this.maskExpression),l=this._replaceDecimalMarkerToDot(this._retrieveSeparatorValue(A));return this.isNumberValue&&o?A===this.decimalMarker?null:l.length>14?String(l):this._checkPrecision(this.maskExpression,l):l}_checkPatternForSpace(){var r,A,o;for(let l in this.patterns)if(this.patterns[l]&&((r=this.patterns[l])!=null&&r.hasOwnProperty("pattern"))){let i=(A=this.patterns[l])==null?void 0:A.pattern.toString(),h=(o=this.patterns[l])==null?void 0:o.pattern;if(i!=null&&i.includes(gt.WHITE_SPACE)&&(h!=null&&h.test(this.maskExpression)))return!0}return!1}_retrieveSeparatorPrecision(r){let A=r.match(new RegExp("^separator\\.([^d]*)"));return A?Number(A[1]):null}_checkPrecision(r,A){let o=this.getPrecision(r),l=A;return r.indexOf("2")>0||this.leadZero&&Number(o)>0?(this.decimalMarker===gt.COMMA&&this.leadZero&&(l=l.replace(",",".")),this.leadZero?Number(l).toFixed(Number(o)):Number(l).toFixed(2)):this.numberToString(l)}_repeatPatternSymbols(r){return r.match(/{[0-9]+}/)&&r.split(gt.EMPTY_STRING).reduce((A,o,l)=>{if(this._start=o===gt.CURLY_BRACKETS_LEFT?l:this._start,o!==gt.CURLY_BRACKETS_RIGHT)return this._findSpecialChar(o)?A+o:A;this._end=l;let i=Number(r.slice(this._start+1,this._end)),h=new Array(i+1).join(r[this._start-1]);if(r.slice(0,this._start).length>1&&r.includes(gt.LETTER_S)){let s=r.slice(0,this._start-1);return s.includes(gt.CURLY_BRACKETS_LEFT)?A+h:s+A+h}else return A+h},"")||r}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}};d(t,"ɵfac",(()=>{let r;return function(A){return(r||(r=on(t)))(A||t)}})()),d(t,"ɵprov",Wt({token:t,factory:t.ɵfac}));let e=t;return e})();function DBe(){let e=Ie(yF),t=Ie(wF);return t instanceof Function?ru(ru({},e),t()):ru(ru({},e),t)}function wBe(e){return[{provide:wF,useValue:e},{provide:yF,useValue:mBe},{provide:Qg,useFactory:DBe},FBe]}function yBe(e){return J5(wBe(e))}function vBe(e){var t,n,u,r;return((n=(t=e.userProfile)==null?void 0:t.children)==null?void 0:n.length)>0?e.userProfile.children[0].ssin:((r=(u=e.userProfile)==null?void 0:u.mandators)==null?void 0:r.length)>0?e.userProfile.mandators[0].ssin:e.userProfile.ssin}var vF=(()=>{const t=class t{get isProfessional(){return this._isProfessional}set isProfessional(u){this._isProfessional=u}get patientSsin(){return this._patientSsin}set patientSsin(u){this._patientSsin=u}get isOfflineDataStorageEnabled(){return this._offlineDataStorageEnabled}set isOfflineDataStorageEnabled(u){this._offlineDataStorageEnabled=u}get isOfflineAuthenticated(){return this._isOfflineAuthenticated}set isOfflineAuthenticated(u){this._isOfflineAuthenticated=u}};t.ɵfac=function(u){return new(u||t)},t.ɵprov=Wt({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),MBe="4.0",D5=MBe,MA=(e=>(e.DEV="dev",e.DEMO="demo",e.INT="int",e.ACC="acc",e.PROD="prod",e))(MA||{}),MF=(e=>(e.HTML="text/html",e.PLAIN="text/plain",e.PDF="application/pdf",e.BASE64="application/base64",e))(MF||{}),xBe=(()=>{const t=class t{constructor(){d(this,"version");d(this,"language");d(this,"configName");d(this,"services");d(this,"onPrint",new Nu);d(this,"_ngInitDone",!1);d(this,"correctlySetup",!1);d(this,"extraRequiredFields",[])}validateVersion(){let u=D5.split(".").map(A=>parseInt(A)),r=(this.version||"").split(".").map(A=>parseInt(A));return r.length!==2?(console.error(`[BaseWebComponent] The given version (${this.version}) has the wrong format <major>.<minor>!`),!1):r[0]!==u[0]?(console.error(`[BaseWebComponent] The given version (${this.version})'s major is not compatible with this component's major version (${D5})!`),!1):!0}validateInputs(){let u=this,r=["language","configName","services","version",...this.extraRequiredFields],{missingFields:A,presentFields:o}=r.reduce((l,i)=>(u[i]===void 0?l.missingFields.push(i):l.presentFields.push(i),l),{missingFields:[],presentFields:[]});return A.length?(console.log(`[BaseWebComponent] Waiting for missing inputs: ${A.join(", ")}; Present inputs: ${o.join(", ")}`),!1):(console.log("[BaseWebComponent] All required inputs are present"),this.validateVersion()?this.services.cacheDataStorage==null?(console.error("[BaseWebComponent] The given services input does not contain a cache service!"),!1):this.services.getAccessToken==null?(console.error("[BaseWebComponent] The given services input does not contain a getAccessToken() function!"),!1):this.services.registerRefreshCallback==null?(console.error("[BaseWebComponent] The given services input does not contain a registerRefreshCallback() function!"),!1):!0:!1)}ngOnChanges(u){this.correctlySetup=this.validateInputs(),this.correctlySetup&&(this._ngInitDone?this.onPropsChanged(u):(this.onInitialized(),this._ngInitDone=!0))}isCorrectlySetup(){return this.correctlySetup}onInitialized(){}onPropsChanged(u){}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵcmp",Ku({type:t,selectors:[["ng-component"]],inputs:{version:"version",language:"language",configName:"configName",services:"services"},outputs:{onPrint:"onPrint"},features:[ua],decls:0,vars:0,template:function(u,r){},encapsulation:2}));let e=t;return e})(),Rg=class{constructor(e,t,n,u,r){d(this,"logId");d(this,"services");d(this,"key");d(this,"cacheFetchingKey");d(this,"offlineDataStorageEnabled");d(this,"isOfflineAuthenticated");this.logId=r,this.services=e,this.key=t,this.cacheFetchingKey=`fetching-${this.key}`,this.offlineDataStorageEnabled=u,this.isOfflineAuthenticated=n}fetchBackendData(){return An(this,null,function*(){let e=yield this.getDataFromBackend();return e&&(yield this.updateStoredData(e)),e})}fetchOfflineData(){return An(this,null,function*(){if(this.services.offlineDataStorage==null)return null;let e=yield this.services.offlineDataStorage.get(this.key);return e==null&&this.logId&&console.log("[%s] Offline data not found for key [%s]",this.logId,this.key),this.logId&&console.log("[%s] Found valid data in offline store for key [%s]: [%s]",this.logId,this.key,e),this.storeDataInCache(e),e})}storeDataOffline(e){return An(this,null,function*(){this.offlineDataStorageEnabled&&this.services.offlineDataStorage&&e&&(yield this.services.offlineDataStorage.set(this.key,e),this.logId&&console.log("[%s] Updated data in the offline store",this.logId))})}storeDataInCache(e){e&&(this.logId&&console.log("[%s] updating data in cache at [%s]",this.logId,this.key),this.services.cacheDataStorage.set(this.key,e))}getDataFromCache(){return An(this,null,function*(){let e=t=>{this.services.cacheDataStorage.get(this.cacheFetchingKey)?(this.logId&&console.log("[%s] Another WC is fetching data... Waiting a bit.",this.logId),setTimeout(()=>{e(t)},500)):t(this.services.cacheDataStorage.get(this.key))};return this.logId&&console.log("[%s] Trying to get data from cache...",this.logId),new Promise(t=>{e(t)})})}getData(e=!1){return An(this,null,function*(){let t=null;if(this.isOfflineAuthenticated){if(this.offlineDataStorageEnabled&&this.services.offlineDataStorage)return yield this.fetchOfflineData();throw new Error(`[${this.logId}] Trying to access offline store while it is not present or not enabled`)}if(!e){if(t=yield this.getDataFromCache(),t)return this.logId&&console.log("[%s] Data pulled from cache: ",this.logId,t),t;this.logId&&console.log("[%s] No data in cache",this.logId)}try{return this.services.cacheDataStorage.set(this.cacheFetchingKey,!0),yield this.fetchBackendData()}finally{this.services.cacheDataStorage.remove(this.cacheFetchingKey)}})}updateStoredData(e){return An(this,null,function*(){this.storeDataInCache(e),yield this.storeDataOffline(e)})}},bBe=()=>{let e=["WebView","(iPhone|iPod|iPad)(?!.*Safari)","Android.*(;\\s+wv|Version/\\d.\\d\\s+Chrome/\\d+(\\.0){3})","Linux; U; Android"],t=new RegExp("("+e.join("|")+")","ig");return!!navigator.userAgent.match(t)},wA=function(e){return e._00001="00001",e._00002="00002",e._00003="00003",e._00004="00004",e._00005="00005",e._00006="00006",e._00007="00007",e._00008="00008",e._00009="00009",e._00010="00010",e._00011="00011",e._00012="00012",e._00013="00013",e._00014="00014",e._00015="00015",e._00016="00016",e._00017="00017",e._00018="00018",e._00019="00019",e._00020="00020",e._00021="00021",e._00022="00022",e._00023="00023",e._00024="00024",e._00026="00026",e._00027="00027",e._00028="00028",e._00029="00029",e._00030="00030",e.AMPLOULE="ampoule",e.BONDAGE="bandage",e.BOTTLE="bottle",e.BOX="box",e.CM="cm",e.EFFERVESCENT_TABLET="effervescent_tablet",e.GM="gm",e.INTERNATIONALUNITS="internationalunits",e.IU="iu",e.LITER="liter",e.MEQ="meq",e.MG="mg",e.MICROGRAMS="micrograms",e.MIU="miu",e.MMOL="mmol",e.PIECE="piece",e.SYRINGE="syringe",e.SYRINGE_AMPOULE="syringe_ampoule",e.TBL="tbl",e.TSP="tsp",e.MS="ms",e.MIN="min",e.MO="mo",e}(wA||{}),ca=function(e){return e.DIARY_NOTES="diarynotes",e.PRESCRIPTIONS="prescriptions",e.MEDICATION_SCHEME="medicationScheme",e.MEDICATION_SCHEME_PAGE_STATE="medicationSchemePageState",e.DELIVERED_MEDICATIONS="deliveredMedications",e.USER_INFOS="userInfos",e.MANDATE_TYPE="mandateType",e}(ca||{}),Ia=function(e){return e.BEFOREBREAKFAST="beforebreakfast",e.DURINGBREAKFAST="duringbreakfast",e.AFTERBREAKFAST="afterbreakfast",e.MORNING="morning",e.BETWEENBREAKFASTANDLUNCH="betweenbreakfastandlunch",e.BEFORELUNCH="beforelunch",e.DURINGLUNCH="duringlunch",e.AFTERLUNCH="afterlunch",e.AFTERNOON="afternoon",e.BETWEENLUNCHANDDINNER="betweenlunchanddinner",e.BEFOREDINNER="beforedinner",e.DURINGDINNER="duringdinner",e.AFTERDINNER="afterdinner",e.EVENING="evening",e.THEHOUROFSLEEP="thehourofsleep",e.NIGHT="night",e.AFTERMEAL="aftermeal",e.BETWEENDINNERANDSLEEP="betweendinnerandsleep",e.BETWEENMEALS="betweenmeals",e}(Ia||{}),$n=function(e){return e.CNK="cnk",e.INN="inn",e.VMP="vmp",e.EAN="ean",e.COMPOUND="compound",e}($n||{}),k=function(e){return e.NL="nl",e.FR="fr",e.DE="de",e.EN="en",e}(k||{}),jo=function(e){return e.D="D",e.DA="DA",e.DD="DD",e.DE="DE",e.DN="DN",e.DQ="DQ",e.DT="DT",e.DV="DV",e.DW="DW",e.DX="DX",e.DZ="DZ",e.J="J",e.JD="JD",e.JH2="JH2",e.JQ="JQ",e.JT="JT",e.JV="JV",e.JZ="JZ",e.M="M",e.MA="MA",e.MC="MC",e.MD="MD",e.ME="ME",e.MN="MN",e.MQ="MQ",e.MS="MS",e.MT="MT",e.MV="MV",e.MX="MX",e.MZ2="MZ2",e.O1="O1",e.ONDEMAND="ondemand",e.U="U",e.UA="UA",e.UD="UD",e.UE="UE",e.UH="UH",e.UN="UN",e.UQ="UQ",e.US="US",e.UT="UT",e.UV="UV",e.UW="UW",e.UX="UX",e.UZ="UZ",e.W="W",e.WA="WA",e.WD="WD",e.WE="WE",e.WN="WN",e.WP="WP",e.WQ="WQ",e.WS="WS",e.WT="WT",e.WV="WV",e.WW="WW",e.WX="WX",e.WZ="WZ",e}(jo||{}),Qa=function(e){return e.APPLICATION="application",e.CERTIFICATEHOLDER="certificateholder",e.DEPTALGOLOGY="deptalgology",e.DEPTANATOMOPATHOLOGY="deptanatomopathology",e.DEPTANESTHESIOLOGY="deptanesthesiology",e.DEPTBACTERIOLOGY="deptbacteriology",e.DEPTCARDIACSURGERY="deptcardiacsurgery",e.DEPTCARDIOLOGY="deptcardiology",e.DEPTCHILDANDADOLESCENTPSYCHIATRY="deptchildandadolescentpsychiatry",e.DEPTDENTISTRY="deptdentistry",e.DEPTDERMATOLOGY="deptdermatology",e.DEPTDIABETOLOGY="deptdiabetology",e.DEPTDIETETICS="deptdietetics",e.DEPTEMERGENCY="deptemergency",e.DEPTENDOCRINOLOGY="deptendocrinology",e.DEPTGASTROENTEROLOGY="deptgastroenterology",e.DEPTGENERALPRACTICE="deptgeneralpractice",e.DEPTGENETICS="deptgenetics",e.DEPTGERIATRY="deptgeriatry",e.DEPTGYNECOLOGY="deptgynecology",e.DEPTHANDSURGERY="depthandsurgery",e.DEPTHEMATOLOGY="depthematology",e.DEPTINFECTIOUSDISEASE="deptinfectiousdisease",e.DEPTINTENSIVECARE="deptintensivecare",e.DEPTKINESITHERAPY="deptkinesitherapy",e.DEPTLABORATORY="deptlaboratory",e.DEPTMAJORBURNS="deptmajorburns",e.DEPTMAXILLOFACIALSURGERY="deptmaxillofacialsurgery",e.DEPTMEDICINE="deptmedicine",e.DEPTMOLECULARBIOLOGY="deptmolecularbiology",e.DEPTNEONATALOGY="deptneonatalogy",e.DEPTNEPHROLOGY="deptnephrology",e.DEPTNEUROLOGY="deptneurology",e.DEPTNEUROSURGERY="deptneurosurgery",e.DEPTNTE="deptnte",e.DEPTNUCLEAR="deptnuclear",e.DEPTNURSING="deptnursing",e.DEPTNUTRITIONDIETETICS="deptnutritiondietetics",e.DEPTOBSTETRICS="deptobstetrics",e.DEPTOCCUPATIONALTHERAPY="deptoccupationaltherapy",e.DEPTONCOLOGY="deptoncology",e.DEPTOPHTALMOLOGY="deptophtalmology",e.DEPTORTHOPEDY="deptorthopedy",e.DEPTPALLIATIVECARE="deptpalliativecare",e.DEPTPEDIATRICINTENSIVECARE="deptpediatricintensivecare",e.DEPTPEDIATRICSURGERY="deptpediatricsurgery",e.DEPTPEDIATRY="deptpediatry",e.DEPTPHARMACY="deptpharmacy",e.DEPTPHYSICALMEDECINE="deptphysicalmedecine",e.DEPTPHYSIOTHERAPY="deptphysiotherapy",e.DEPTPLASTICANDREPARATORYSURGERY="deptplasticandreparatorysurgery",e.DEPTPNEUMOLOGY="deptpneumology",e.DEPTPODIATRY="deptpodiatry",e.DEPTPSYCHIATRY="deptpsychiatry",e.DEPTPSYCHOGERIATRY="deptpsychogeriatry",e.DEPTPSYCHOLOGY="deptpsychology",e.DEPTRADIOLOGY="deptradiology",e.DEPTRADIOTHERAPY="deptradiotherapy",e.DEPTREVALIDATION="deptrevalidation",e.DEPTRHEUMATOLOGY="deptrheumatology",e.DEPTSENOLOGY="deptsenology",e.DEPTSOCIALSERVICE="deptsocialservice",e.DEPTSPEECHTHERAPY="deptspeechtherapy",e.DEPTSPORTSMEDECINE="deptsportsmedecine",e.DEPTSTOMATOLOGY="deptstomatology",e.DEPTSURGERY="deptsurgery",e.DEPTTHORACICSURGERY="deptthoracicsurgery",e.DEPTTOXICOLOGY="depttoxicology",e.DEPTTROPICALMEDECINE="depttropicalmedecine",e.DEPTUROLOGY="depturology",e.DEPTVASCULARSURGERY="deptvascularsurgery",e.DEPTVISCERALDIGESTIVEABDOMINALSURGERY="deptvisceraldigestiveabdominalsurgery",e.GROUPOFNURSES="groupofnurses",e.GROUPOFPHYSICIANSDIFFERENTADDRESS="groupofphysiciansdifferentaddress",e.GROUPOFPHYSICIANSSAMEADDRESS="groupofphysicianssameaddress",e.GUARDPOST="guardpost",e.HUB="hub",e.ORGHOSPITAL="orghospital",e.ORGINSURANCE="orginsurance",e.ORGLABORATORY="orglaboratory",e.ORGPHARMACY="orgpharmacy",e.ORGPOLYCLINIC="orgpolyclinic",e.ORGPRACTICE="orgpractice",e.ORGPREVENTION="orgprevention",e.ORGPRIMARYHEALTHCARECENTER="orgprimaryhealthcarecenter",e.ORGPSYCHIATRICCAREHOME="orgpsychiatriccarehome",e.ORGPUBLICHEALTH="orgpublichealth",e.ORGRETIREMENTHOME="orgretirementhome",e.ORGREVALIDATIONCENTER="orgrevalidationcenter",e.ORGSHELTEREDLIVING="orgshelteredliving",e.PATIENT="patient",e.PERSADMINISTRATIVE="persadministrative",e.PERSAMBULANCEFIRSTAID="persambulancefirstaid",e.PERSAPPLIEDPSYCHBACHELOR="persappliedpsychbachelor",e.PERSAUDICIAN="persaudician",e.PERSAUDIOLOGIST="persaudiologist",e.PERSBIOLOGIST="persbiologist",e.PERSCLINICALORTHOPEDAGOGIST="persclinicalorthopedagogist",e.PERSCLINICALPSYCHOLOGIST="persclinicalpsychologist",e.PERSDENTIST="persdentist",e.PERSDIETICIAN="persdietician",e.PERSEDUCATOR="perseducator",e.PERSFAMILYSCIENCEBACHELOR="persfamilysciencebachelor",e.PERSGERONTOLOGYMASTER="persgerontologymaster",e.PERSLOGOPEDIST="perslogopedist",e.PERSMIDWIFE="persmidwife",e.PERSNURSE="persnurse",e.PERSOCCUPATIONALTHERAPIST="persoccupationaltherapist",e.PERSOPTICIAN="persoptician",e.PERSORALDENTALHYGIENIST="persoraldentalhygienist",e.PERSORTHOPEDAGOGISTMASTER="persorthopedagogistmaster",e.PERSORTHOPTIST="persorthoptist",e.PERSORTHOTIST="persorthotist",e.PERSPATIENTDRIVER="perspatientdriver",e.PERSPEDAGOGYBACHELOR="perspedagogybachelor",e.PERSPHARMACIST="perspharmacist",e.PERSPHARMACISTCLINICALBIOLOGIST="perspharmacistclinicalbiologist",e.PERSPHARMACYASSISTANT="perspharmacyassistant",e.PERSPHYSICIAN="persphysician",e.PERSPHYSIOTHERAPIST="persphysiotherapist",e.PERSPODOLOGIST="perspodologist",e.PERSPRACTICALNURSE="perspracticalnurse",e.PERSPSYCHOLOGIST="perspsychologist",e.PERSPSYCHOMOTORTHERAPYMASTER="perspsychomotortherapymaster",e.PERSREADAPTATIONBACHELOR="persreadaptationbachelor",e.PERSSOCIALWORKER="perssocialworker",e.PERSTECHNICIAN="perstechnician",e.PERSTRUSSMAKER="perstrussmaker",e}(Qa||{}),_d=function(e){return e.ascending="asc",e.descending="desc",e}(_d||{});k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE;var x0={getAuthorizationHeader:e=>`Bearer ${e}`,getUserType:e=>e.isProfessional?"professional":"patient",clientType:{webApp:"webapp",mobileApp:"mobapp"}},qE={authorization:"Authorization",userType:"user-type",clientType:"client-type"},Cl=class extends Error{};Cl.prototype.name="InvalidTokenError";function IBe(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let u=n.charCodeAt(0).toString(16).toUpperCase();return u.length<2&&(u="0"+u),"%"+u}))}function QBe(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return IBe(t)}catch{return atob(t)}}function RBe(e,t){if(typeof e!="string")throw new Cl("Invalid token specified: must be a string");t||(t={});let n=t.header===!0?0:1,u=e.split(".")[n];if(typeof u!="string")throw new Cl(`Invalid token specified: missing part #${n+1}`);let r;try{r=QBe(u)}catch(A){throw new Cl(`Invalid token specified: invalid base64 for part #${n+1} (${A.message})`)}try{return JSON.parse(r)}catch(A){throw new Cl(`Invalid token specified: invalid json for part #${n+1} (${A.message})`)}}var SBe=class extends Rg{constructor(e,t,n){super(e,ca.USER_INFOS,t,n,ca.USER_INFOS),this.getLocalAccessToken=e.getAccessToken}getDataFromBackend(){return An(this,null,function*(){return RBe(yield this.getLocalAccessToken(""))})}},vc=(()=>{const t=class t{setServices(u){this.services=u}getServices(){if(!this.services)throw new Error("ComponentServices has not been set yet.");return this.services}hasServices(){return!!this.services}};t.ɵfac=function(u){return new(u||t)},t.ɵprov=Wt({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),kBe=(()=>{const t=class t extends vF{constructor(){super(...arguments),this.servicesStore=Ie(vc)}resolveSsin(){return An(this,null,function*(){if(this.isProfessional===!0)return this.patientSsin;let u=yield this.fetchUserToken();return vBe(u)})}resolvePatientInfo(){return An(this,null,function*(){return(yield this.fetchUserToken()).userProfile})}resolveUserInfo(){return An(this,null,function*(){var s,c,E,B;let u=(yield this.fetchUserToken()).userProfile,r=u.lastName,A=u.firstName,o=this.extractProfessionalRole(u),l=((s=u==null?void 0:u.organizations)==null?void 0:s.length)>0&&((c=u==null?void 0:u.organizations[0])!=null&&c.pharmacy)?"pharmacist":void 0,i=(E=u==null?void 0:u.organizations)!=null&&E.length&&l!==void 0?u==null?void 0:u.organizations[0]:void 0,h=this.resolveProfessional(u,o)?u[o]:void 0;return{firstName:A,ssin:u.ssin,lastName:r,role:l||o,organization:i&&l?i:void 0,professional:h,mandator:((B=u==null?void 0:u.mandators)==null?void 0:B.length)>0}})}isMandator(){return An(this,null,function*(){var u,r;return((r=(u=(yield this.fetchUserToken()).userProfile)==null?void 0:u.mandators)==null?void 0:r.length)>0})}resolveProfessional(u,r){return r?u[r]:void 0}extractProfessionalRole(u){let r=["physician","nurse","midwife","dentist"],A="patient";return r.forEach(o=>{u[o]&&(A=o)}),A}fetchUserToken(){return this.accessTokenService.getData(!0)}registerAccessTokenService(u,r){this.accessTokenService||(this.accessTokenService=new SBe(this.servicesStore.getServices(),this.isOfflineAuthenticated,this.isOfflineDataStorageEnabled),this.isOfflineAuthenticated=u,this.isOfflineDataStorageEnabled=r)}};t.ɵfac=(()=>{let u;return function(r){return(u||(u=on(t)))(r||t)}})(),t.ɵprov=Wt({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),TBe=(()=>{const t=class t extends vF{resolveSsin(){return An(this,null,function*(){return Promise.resolve("00000000097")})}resolvePatientInfo(){return Promise.resolve({firstName:"John",lastName:"Doe",ssin:"00000000097"})}resolveUserInfo(){return Promise.resolve({firstName:"John",lastName:"Doe",ssin:"00000000097",role:"patient",organization:void 0,professional:void 0,mandator:!1})}isMandator(){return An(this,null,function*(){return Promise.resolve(!1)})}registerAccessTokenService(u,r){this.isOfflineAuthenticated=u,this.isOfflineDataStorageEnabled=r}};t.ɵfac=(()=>{let u;return function(r){return(u||(u=on(t)))(r||t)}})(),t.ɵprov=Wt({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),YBe=(()=>{const t=class t{constructor(){this.http=Ie(Ns)}get(u,r,A){return b0()?this.http.get(u,{headers:A}):qr(r)}patch(u,r,A){return b0()?this.http.patch(u,{},{headers:A}):qr(r)}post(u,r,A){return b0()?this.http.post(u,{},{headers:A}):qr(r)}delete(u,r,A){return b0()?this.http.delete(u,{headers:A}):qr(r)}};t.ɵfac=function(u){return new(u||t)},t.ɵprov=Wt({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),b0=()=>window.Cypress;function zBe(e){return e.firstName&&e.lastName?e.firstName+" "+e.lastName:e.name}var xF={fr:["fr","nl","de","en"],nl:["nl","fr","de","en"],de:["de","fr","nl","en"],en:["en","nl","fr","de"]};function Jl(e,t){if(e){t=t==null?void 0:t.substring(0,2);for(let n of xF[t]){let u=e.find(r=>r.lang===n);if(u)return u.value}return e.length>0?e[0].value:"Missing translation"}}function NBe(e,t){if(!(!e||Object.keys(e).length<1)){t=t==null?void 0:t.substring(0,2);for(let n of xF[t]){let u=e.find(r=>r.lang===n);if(u)return u}return e.length>0?e[0]:void 0}}var Ui=function(e){return e.INITIAL="INITIAL",e.LOADING="LOADING",e.SUCCESS="SUCCESS",e.UPDATING="UPDATING",e.ERROR="ERROR",e}(Ui||{}),iA=function(e){return e.NO_DATA="NO_DATA",e.TEMP_UNAVAILABLE="TEMP_UNAVAILABLE",e.NOT_AUTHORIZED="NOT_AUTHORIZED",e.OTHER="OTHER",e}(iA||{});function _Be(e){return e.pipe(jr(t=>({status:Ui.SUCCESS,data:t})),L5(t=>qr({status:Ui.ERROR,error:bF(t)})),lo({status:Ui.LOADING}))}var g6=()=>e=>_Be(e);function UBe(e,t){return An(this,null,function*(){t.next({status:Ui.LOADING});try{let n=yield e,u={status:Ui.SUCCESS,data:n};return t.next(u),u}catch(n){let u={status:Ui.ERROR,error:bF(n)};return t.next(u),u}})}var f6={[iA.NO_DATA]:["VIDIS_0140"],[iA.TEMP_UNAVAILABLE]:["VIDIS_0121","VIDIS_0122","VIDIS_0123","VIDIS_0124","VIDIS_0125","VIDIS_0126","VIDIS_0131","VIDIS_0132","VIDIS_0133","VIDIS_0134","VIDIS_0135","VIDIS_0136"],[iA.NOT_AUTHORIZED]:["VIDIS_3150","VIDIS_3090","VIDIS_3140","VIDIS_3100","VIDIS_3120","VIDIS_0400","VIDIS_3030","VIDIS_0100","VIDIS_0120","VIDIS_0110","VIDIS_0200","VIDIS_0340","VIDIS_0341"],[iA.OTHER]:[]};function PBe(e){for(let t of Object.keys(f6))if(f6[t].includes(e))return t;return iA.OTHER}function GBe(e,t,n){let u=e||"UNKNOWN",r=PBe(u);return{code:u,message:n??"An unexpected error occurred",group:r,traceId:t}}function bF(e){var r,A,o;let t=((r=e.error)==null?void 0:r.code)??void 0,n=((A=e.error)==null?void 0:A.message)??e.message,u=(o=e.headers)==null?void 0:o.get("trace-id");return GBe(t,u,n)}var IF=(()=>{const t=class t{constructor(){this.translate=Ie(Ii)}transform(u){return this.findTranslation(u.name)+" "+(u.prefix?u.prefix+" ":"")+(u.value?u.value+" ":"")+(u.unit?this.translate.instant("commons.units."+u.unit,{count:u.value||1}):"")}findTranslation(u){return Jl(u,this.translate.currentLang)}};t.ɵfac=function(u){return new(u||t)},t.ɵprov=Wt({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Zl=(()=>{const t=class t{constructor(){this.config=Ie(Mc),this.injector=Ie($r),this._instance=null}getInstance(){if(!this._instance){let u=this.config.getEnvironmentVariable("env")==="demo";this._instance=u?this.injector.get(TBe):this.injector.get(kBe)}return this._instance}};t.ɵfac=function(u){return new(u||t)},t.ɵprov=Wt({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),QF=(()=>{const t=class t extends Rg{constructor(u,r,A){super(r.getServices(),ca.MANDATE_TYPE,A.getInstance().isOfflineAuthenticated,A.getInstance().isOfflineDataStorageEnabled,ca.MANDATE_TYPE),this.http=u,this.servicesStore=r,this.authServiceSelector=A}getMandateType(u){return this.ssin=u,lA(this.getData(!0))}isPmhUser(){return this.isPmhUser$||(this.isPmhUser$=ts([this.authServiceSelector.getInstance().resolveSsin(),this.authServiceSelector.getInstance().isMandator()]).pipe(co(([u,r])=>r?this.getMandateType(u).pipe(jr(A=>{var o;return((o=A.mandateType)==null?void 0:o.toUpperCase())==="PMH"})):qr(!1)),X0(1))),this.isPmhUser$}getDataFromBackend(){return mte(this.http.get("/v1/mandateType?ssin="+this.ssin))}};t.ɵfac=function(u){return new(u||t)(vu(Ns),vu(vc),vu(Zl))},t.ɵprov=Wt({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),OBe={HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)"};function jBe(e,t){if(e&1){let n=Kn();Qt(0,"div",1)(1,"button",2),Ju("click",function(){wr(n);let u=tu();return yr(u.action())}),Mu(2),St()()}if(e&2){let n=tu();It(2),zr(" ",n.data.action," ")}}var LBe=["label"];function WBe(e,t){}var HBe=Math.pow(2,31)-1,w5=class{constructor(e,t){d(this,"_overlayRef");d(this,"instance");d(this,"containerInstance");d(this,"_afterDismissed",new xu);d(this,"_afterOpened",new xu);d(this,"_onAction",new xu);d(this,"_durationTimeoutId");d(this,"_dismissedByAction",!1);this._overlayRef=t,this.containerInstance=e,e._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(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,HBe))}_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}},RF=new Jt("MatSnackBarData"),_h=class{constructor(){d(this,"politeness","assertive");d(this,"announcementMessage","");d(this,"viewContainerRef");d(this,"duration",0);d(this,"panelClass");d(this,"direction");d(this,"data",null);d(this,"horizontalPosition","center");d(this,"verticalPosition","bottom")}},VBe=(()=>{const t=class t{};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}));let e=t;return e})(),JBe=(()=>{const t=class t{};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}));let e=t;return e})(),ZBe=(()=>{const t=class t{};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}));let e=t;return e})(),KBe=(()=>{const t=class t{constructor(){d(this,"snackBarRef",Ie(w5));d(this,"data",Ie(RF))}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵcmp",Ku({type:t,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(u,r){u&1&&(Qt(0,"div",0),Mu(1),St(),Eu(2,jBe,3,1,"div",1)),u&2&&(It(),zr(" ",r.data.message,`
|
|
281
|
+
`],encapsulation:2,changeDetection:0}));let e=t;return e})(),yde=(()=>{const t=class t{};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵmod",rn({type:t})),d(t,"ɵinj",un({providers:[Fde],imports:[bo,N4,ade,O4]}));let e=t;return e})(),Dr=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(Dr||{}),nA="*";function vde(e,t=null){return{type:Dr.Sequence,steps:e,options:t}}function Jf(e){return{type:Dr.Style,styles:e,offset:null}}var Hl=class{constructor(e=0,t=0){d(this,"_onDoneFns",[]);d(this,"_onStartFns",[]);d(this,"_onDestroyFns",[]);d(this,"_originalOnDoneFns",[]);d(this,"_originalOnStartFns",[]);d(this,"_started",!1);d(this,"_destroyed",!1);d(this,"_finished",!1);d(this,"_position",0);d(this,"parentPlayer",null);d(this,"totalTime");this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},j4=class{constructor(e){d(this,"_onDoneFns",[]);d(this,"_onStartFns",[]);d(this,"_finished",!1);d(this,"_started",!1);d(this,"_destroyed",!1);d(this,"_onDestroyFns",[]);d(this,"parentPlayer",null);d(this,"totalTime",0);d(this,"players");this.players=e;let t=0,n=0,u=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(A=>{A.onDone(()=>{++t==r&&this._onFinish()}),A.onDestroy(()=>{++n==r&&this._onDestroy()}),A.onStart(()=>{++u==r&&this._onStart()})}),this.totalTime=this.players.reduce((A,o)=>Math.max(A,o.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(n=>{let u=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(u)})}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},pg="!";function Zf(e){return new eu(3e3,!1)}function Mde(){return new eu(3100,!1)}function xde(){return new eu(3101,!1)}function bde(e){return new eu(3001,!1)}function Ide(e){return new eu(3003,!1)}function Qde(e){return new eu(3004,!1)}function Rde(e,t){return new eu(3005,!1)}function Sde(){return new eu(3006,!1)}function kde(){return new eu(3007,!1)}function Tde(e,t){return new eu(3008,!1)}function Yde(e){return new eu(3002,!1)}function zde(e,t,n,u,r){return new eu(3010,!1)}function Nde(){return new eu(3011,!1)}function _de(){return new eu(3012,!1)}function Ude(){return new eu(3200,!1)}function Pde(){return new eu(3202,!1)}function Gde(){return new eu(3013,!1)}function Ode(e){return new eu(3014,!1)}function jde(e){return new eu(3015,!1)}function Lde(e){return new eu(3016,!1)}function Wde(e,t){return new eu(3404,!1)}function Hde(e){return new eu(3502,!1)}function Vde(e){return new eu(3503,!1)}function Jde(){return new eu(3300,!1)}function Zde(e){return new eu(3504,!1)}function Kde(e){return new eu(3301,!1)}function Xde(e,t){return new eu(3302,!1)}function qde(e){return new eu(3303,!1)}function $de(e,t){return new eu(3400,!1)}function eEe(e){return new eu(3401,!1)}function tEe(e){return new eu(3402,!1)}function uEe(e,t){return new eu(3505,!1)}function vA(e){switch(e.length){case 0:return new Hl;case 1:return e[0];default:return new j4(e)}}function L4(e,t,n=new Map,u=new Map){let r=[],A=[],o=-1,l=null;if(t.forEach(i=>{let h=i.get("offset"),s=h==o,c=s&&l||new Map;i.forEach((E,B)=>{let g=B,f=E;if(B!=="offset")switch(g=e.normalizePropertyName(g,r),f){case pg:f=n.get(B);break;case nA:f=u.get(B);break;default:f=e.normalizeStyleValue(B,g,f,r);break}c.set(g,f)}),s||A.push(c),l=c,o=h}),r.length)throw Hde();return A}function mg(e,t,n,u){switch(t){case"start":e.onStart(()=>u(n&&WE(n,"start",e)));break;case"done":e.onDone(()=>u(n&&WE(n,"done",e)));break;case"destroy":e.onDestroy(()=>u(n&&WE(n,"destroy",e)));break}}function WE(e,t,n){let u=n.totalTime,r=!!n.disabled,A=Cg(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,u??e.totalTime,r),o=e._data;return o!=null&&(A._data=o),A}function Cg(e,t,n,u,r="",A=0,o){return{element:e,triggerName:t,fromState:n,toState:u,phaseName:r,totalTime:A,disabled:!!o}}function _i(e,t,n){let u=e.get(t);return u||e.set(t,u=n),u}function Kf(e){let t=e.indexOf(":"),n=e.substring(1,t),u=e.slice(t+1);return[n,u]}var rEe=typeof document>"u"?null:document.documentElement;function Fg(e){let t=e.parentNode||e.host||null;return t===rEe?null:t}function nEe(e){return e.substring(1,6)=="ebkit"}var $A=null,Xf=!1;function iEe(e){$A||($A=aEe()||{},Xf=$A.style?"WebkitAppearance"in $A.style:!1);let t=!0;return $A.style&&!nEe(e)&&(t=e in $A.style,!t&&Xf&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in $A.style)),t}function aEe(){return typeof document<"u"?document.body:null}function W4(e,t){for(;t;){if(t===e)return!0;t=Fg(t)}return!1}function H4(e,t,n){if(n)return Array.from(e.querySelectorAll(t));let u=e.querySelector(t);return u?[u]:[]}var AEe=1e3,V4="{{",oEe="}}",J4="ng-enter",d5="ng-leave",w0="ng-trigger",Sh=".ng-trigger",qf="ng-animating",E5=".ng-animating";function tA(e){if(typeof e=="number")return e;let t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:B5(parseFloat(t[1]),t[2])}function B5(e,t){switch(t){case"s":return e*AEe;default:return e}}function kh(e,t,n){return e.hasOwnProperty("duration")?e:sEe(e,t,n)}function sEe(e,t,n){let u=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,A=0,o="";if(typeof e=="string"){let l=e.match(u);if(l===null)return t.push(Zf()),{duration:0,delay:0,easing:""};r=B5(parseFloat(l[1]),l[2]);let i=l[3];i!=null&&(A=B5(parseFloat(i),l[4]));let h=l[5];h&&(o=h)}else r=e;if(!n){let l=!1,i=t.length;r<0&&(t.push(Mde()),l=!0),A<0&&(t.push(xde()),l=!0),l&&t.splice(i,0,Zf())}return{duration:r,delay:A,easing:o}}function lEe(e){return e.length?e[0]instanceof Map?e:e.map(t=>new Map(Object.entries(t))):[]}function ka(e,t,n){t.forEach((u,r)=>{let A=Dg(r);n&&!n.has(r)&&n.set(r,e.style[A]),e.style[A]=u})}function Ao(e,t){t.forEach((n,u)=>{let r=Dg(u);e.style[r]=""})}function dl(e){return Array.isArray(e)?e.length==1?e[0]:vde(e):e}function cEe(e,t,n){let u=t.params||{},r=Z4(e);r.length&&r.forEach(A=>{u.hasOwnProperty(A)||n.push(bde())})}var g5=new RegExp(`${V4}\\s*(.+?)\\s*${oEe}`,"g");function Z4(e){let t=[];if(typeof e=="string"){let n;for(;n=g5.exec(e);)t.push(n[1]);g5.lastIndex=0}return t}function Vl(e,t,n){let u=`${e}`,r=u.replace(g5,(A,o)=>{let l=t[o];return l==null&&(n.push(Ide()),l=""),l.toString()});return r==u?e:r}var hEe=/-+([a-z0-9])/g;function Dg(e){return e.replace(hEe,(...t)=>t[1].toUpperCase())}function dEe(e,t){return e===0||t===0}function EEe(e,t,n){if(n.size&&t.length){let u=t[0],r=[];if(n.forEach((A,o)=>{u.has(o)||r.push(o),u.set(o,A)}),r.length)for(let A=1;A<t.length;A++){let o=t[A];r.forEach(l=>o.set(l,wg(e,l)))}}return t}function zi(e,t,n){switch(t.type){case Dr.Trigger:return e.visitTrigger(t,n);case Dr.State:return e.visitState(t,n);case Dr.Transition:return e.visitTransition(t,n);case Dr.Sequence:return e.visitSequence(t,n);case Dr.Group:return e.visitGroup(t,n);case Dr.Animate:return e.visitAnimate(t,n);case Dr.Keyframes:return e.visitKeyframes(t,n);case Dr.Style:return e.visitStyle(t,n);case Dr.Reference:return e.visitReference(t,n);case Dr.AnimateChild:return e.visitAnimateChild(t,n);case Dr.AnimateRef:return e.visitAnimateRef(t,n);case Dr.Query:return e.visitQuery(t,n);case Dr.Stagger:return e.visitStagger(t,n);default:throw Qde(t.type)}}function wg(e,t){return window.getComputedStyle(e)[t]}var BEe=(()=>{const t=class t{validateStyleProperty(u){return iEe(u)}containsElement(u,r){return W4(u,r)}getParentElement(u){return Fg(u)}query(u,r,A){return H4(u,r,A)}computeStyle(u,r,A){return A||""}animate(u,r,A,o,l,i=[],h){return new Hl(A,o)}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵprov",Wt({token:t,factory:t.ɵfac}));let e=t;return e})(),A1,K4=(A1=class{},d(A1,"NOOP",new BEe),A1),yg=class{},gEe=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),fEe=class extends yg{normalizePropertyName(e,t){return Dg(e)}normalizeStyleValue(e,t,n,u){let r="",A=n.toString().trim();if(gEe.has(t)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&u.push(Rde())}return A+r}},Th="*";function pEe(e,t){let n=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(u=>mEe(u,n,t)):n.push(e),n}function mEe(e,t,n){if(e[0]==":"){let i=CEe(e,n);if(typeof i=="function"){t.push(i);return}e=i}let u=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(u==null||u.length<4)return n.push(jde()),t;let r=u[1],A=u[2],o=u[3];t.push($f(r,o));let l=r==Th&&o==Th;A[0]=="<"&&!l&&t.push($f(o,r))}function CEe(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,u)=>parseFloat(u)>parseFloat(n);case":decrement":return(n,u)=>parseFloat(u)<parseFloat(n);default:return t.push(Lde()),"* => *"}}var y0=new Set(["true","1"]),v0=new Set(["false","0"]);function $f(e,t){let n=y0.has(e)||v0.has(e),u=y0.has(t)||v0.has(t);return(r,A)=>{let o=e==Th||e==r,l=t==Th||t==A;return!o&&n&&typeof r=="boolean"&&(o=r?y0.has(e):v0.has(e)),!l&&u&&typeof A=="boolean"&&(l=A?y0.has(t):v0.has(t)),o&&l}}var X4=":self",FEe=new RegExp(`s*${X4}s*,?`,"g");function q4(e,t,n,u){return new DEe(e).build(t,n,u)}var e6="",DEe=class{constructor(e){d(this,"_driver");this._driver=e}build(e,t,n){let u=new vEe(t);return this._resetContextStyleTimingState(u),zi(this,dl(e),u)}_resetContextStyleTimingState(e){e.currentQuerySelector=e6,e.collectedStyles=new Map,e.collectedStyles.set(e6,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,u=t.depCount=0,r=[],A=[];return e.name.charAt(0)=="@"&&t.errors.push(Sde()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==Dr.State){let l=o,i=l.name;i.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t))}),l.name=i}else if(o.type==Dr.Transition){let l=this.visitTransition(o,t);n+=l.queryCount,u+=l.depCount,A.push(l)}else t.errors.push(kde())}),{type:Dr.Trigger,name:e.name,states:r,transitions:A,queryCount:n,depCount:u,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),u=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set,A=u||{};n.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{Z4(l).forEach(i=>{A.hasOwnProperty(i)||r.add(i)})})}),r.size&&t.errors.push(Tde(e.name,[...r.values()]))}return{type:Dr.State,name:e.name,style:n,options:u?{params:u}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=zi(this,dl(e.animation),t),u=pEe(e.expr,t.errors);return{type:Dr.Transition,matchers:u,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:eo(e.options)}}visitSequence(e,t){return{type:Dr.Sequence,steps:e.steps.map(n=>zi(this,n,t)),options:eo(e.options)}}visitGroup(e,t){let n=t.currentTime,u=0,r=e.steps.map(A=>{t.currentTime=n;let o=zi(this,A,t);return u=Math.max(u,t.currentTime),o});return t.currentTime=u,{type:Dr.Group,steps:r,options:eo(e.options)}}visitAnimate(e,t){let n=xEe(e.timings,t.errors);t.currentAnimateTimings=n;let u,r=e.styles?e.styles:Jf({});if(r.type==Dr.Keyframes)u=this.visitKeyframes(r,t);else{let A=e.styles,o=!1;if(!A){o=!0;let i={};n.easing&&(i.easing=n.easing),A=Jf(i)}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(A,t);l.isEmptyStep=o,u=l}return t.currentAnimateTimings=null,{type:Dr.Animate,timings:n,style:u,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],u=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of u)typeof o=="string"?o===nA?n.push(o):t.errors.push(Yde()):n.push(new Map(Object.entries(o)));let r=!1,A=null;return n.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(A=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(V4)>=0){r=!0;break}}}),{type:Dr.Style,styles:n,easing:A,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,u=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(A=>{typeof A!="string"&&A.forEach((o,l)=>{let i=t.collectedStyles.get(t.currentQuerySelector),h=i.get(l),s=!0;h&&(r!=u&&r>=h.startTime&&u<=h.endTime&&(t.errors.push(zde(l,h.startTime,h.endTime)),s=!1),r=h.startTime),s&&i.set(l,{startTime:r,endTime:u}),t.options&&cEe(o,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:Dr.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Nde()),n;let u=1,r=0,A=[],o=!1,l=!1,i=0,h=e.steps.map(m=>{let p=this._makeStyleAst(m,t),C=p.offset!=null?p.offset:MEe(p.styles),F=0;return C!=null&&(r++,F=p.offset=C),l=l||F<0||F>1,o=o||F<i,i=F,A.push(F),p});l&&t.errors.push(_de()),o&&t.errors.push(Ude());let s=e.steps.length,c=0;r>0&&r<s?t.errors.push(Pde()):r==0&&(c=u/(s-1));let E=s-1,B=t.currentTime,g=t.currentAnimateTimings,f=g.duration;return h.forEach((m,p)=>{let C=c>0?p==E?1:c*p:A[p],F=C*f;t.currentTime=B+g.delay+F,g.duration=F,this._validateStyleAst(m,t),m.offset=C,n.styles.push(m)}),n}visitReference(e,t){return{type:Dr.Reference,animation:zi(this,dl(e.animation),t),options:eo(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:Dr.AnimateChild,options:eo(e.options)}}visitAnimateRef(e,t){return{type:Dr.AnimateRef,animation:this.visitReference(e.animation,t),options:eo(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,u=e.options||{};t.queryCount++,t.currentQuery=e;let[r,A]=wEe(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,_i(t.collectedStyles,t.currentQuerySelector,new Map);let o=zi(this,dl(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:Dr.Query,selector:r,limit:u.limit||0,optional:!!u.optional,includeSelf:A,animation:o,originalSelector:e.selector,options:eo(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Gde());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:kh(e.timings,t.errors,!0);return{type:Dr.Stagger,animation:zi(this,dl(e.animation),t),timings:n,options:null}}};function wEe(e){let t=!!e.split(/\s*,\s*/).find(n=>n==X4);return t&&(e=e.replace(FEe,"")),e=e.replace(/@\*/g,Sh).replace(/@\w+/g,n=>Sh+"-"+n.slice(1)).replace(/:animating/g,E5),[e,t]}function yEe(e){return e?ru({},e):null}var vEe=class{constructor(e){d(this,"errors");d(this,"queryCount",0);d(this,"depCount",0);d(this,"currentTransition",null);d(this,"currentQuery",null);d(this,"currentQuerySelector",null);d(this,"currentAnimateTimings",null);d(this,"currentTime",0);d(this,"collectedStyles",new Map);d(this,"options",null);d(this,"unsupportedCSSPropertiesFound",new Set);this.errors=e}};function MEe(e){if(typeof e=="string")return null;let t=null;if(Array.isArray(e))e.forEach(n=>{if(n instanceof Map&&n.has("offset")){let u=n;t=parseFloat(u.get("offset")),u.delete("offset")}});else if(e instanceof Map&&e.has("offset")){let n=e;t=parseFloat(n.get("offset")),n.delete("offset")}return t}function xEe(e,t){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let r=kh(e,t).duration;return HE(r,0,"")}let n=e;if(n.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=HE(0,0,"");return r.dynamic=!0,r.strValue=n,r}let u=kh(n,t);return HE(u.duration,u.delay,u.easing)}function eo(e){return e?(e=ru({},e),e.params&&(e.params=yEe(e.params))):e={},e}function HE(e,t,n){return{duration:e,delay:t,easing:n}}function vg(e,t,n,u,r,A,o=null,l=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:u,duration:r,delay:A,totalTime:r+A,easing:o,subTimeline:l}}var Mg=class{constructor(){d(this,"_map",new Map)}get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},bEe=1,IEe=":enter",QEe=new RegExp(IEe,"g"),REe=":leave",SEe=new RegExp(REe,"g");function $4(e,t,n,u,r,A=new Map,o=new Map,l,i,h=[]){return new kEe().buildKeyframes(e,t,n,u,r,A,o,l,i,h)}var kEe=class{buildKeyframes(e,t,n,u,r,A,o,l,i,h=[]){i=i||new Mg;let s=new TEe(e,t,i,u,r,h,[]);s.options=l;let c=l.delay?tA(l.delay):0;s.currentTimeline.delayNextStep(c),s.currentTimeline.setStyles([A],null,s.errors,l),zi(this,n,s);let E=s.timelines.filter(B=>B.containsAnimation());if(E.length&&o.size){let B;for(let g=E.length-1;g>=0;g--){let f=E[g];if(f.element===t){B=f;break}}B&&!B.allowOnlyTimelineStyles()&&B.setStyles([o],null,s.errors,l)}return E.length?E.map(B=>B.buildKeyframes()):[vg(t,[],[],[],0,c,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let u=t.createSubContext(e.options),r=t.currentTimeline.currentTime,A=this._visitSubInstructions(n,u,u.options);r!=A&&t.transformIntoNewTimeline(A)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let u of e){let r=u==null?void 0:u.delay;if(r){let A=typeof r=="number"?r:tA(Vl(r,(u==null?void 0:u.params)??{},t.errors));n.delayNextStep(A)}}}_visitSubInstructions(e,t,n){let u=t.currentTimeline.currentTime,r=n.duration!=null?tA(n.duration):null,A=n.delay!=null?tA(n.delay):null;return r!==0&&e.forEach(o=>{let l=t.appendInstructionToTimeline(o,r,A);u=Math.max(u,l.duration+l.delay)}),u}visitReference(e,t){t.updateOptions(e.options,!0),zi(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,u=t,r=e.options;if(r&&(r.params||r.delay)&&(u=t.createSubContext(r),u.transformIntoNewTimeline(),r.delay!=null)){u.previousNode.type==Dr.Style&&(u.currentTimeline.snapshotCurrentStyles(),u.previousNode=Yh);let A=tA(r.delay);u.delayNextStep(A)}e.steps.length&&(e.steps.forEach(A=>zi(this,A,u)),u.currentTimeline.applyStylesToKeyframe(),u.subContextCount>n&&u.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],u=t.currentTimeline.currentTime,r=e.options&&e.options.delay?tA(e.options.delay):0;e.steps.forEach(A=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),zi(this,A,o),u=Math.max(u,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(A=>t.currentTimeline.mergeTimelineCollectedStyles(A)),t.transformIntoNewTimeline(u),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,u=t.params?Vl(n,t.params,t.errors):n;return kh(u,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),u=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),u.snapshotCurrentStyles());let r=e.style;r.type==Dr.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),u.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,u=t.currentAnimateTimings;!u&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=u&&u.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,u=t.currentTimeline.duration,r=n.duration,A=t.createSubContext().currentTimeline;A.easing=n.easing,e.styles.forEach(o=>{let l=o.offset||0;A.forwardTime(l*r),A.setStyles(o.styles,o.easing,t.errors,t.options),A.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(A),t.transformIntoNewTimeline(u+r),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,u=e.options||{},r=u.delay?tA(u.delay):0;r&&(t.previousNode.type===Dr.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Yh);let A=n,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!u.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((i,h)=>{t.currentQueryIndex=h;let s=t.createSubContext(e.options,i);r&&s.delayNextStep(r),i===t.element&&(l=s.currentTimeline),zi(this,e.animation,s),s.currentTimeline.applyStylesToKeyframe();let c=s.currentTimeline.currentTime;A=Math.max(A,c)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(A),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=t.parentContext,u=t.currentTimeline,r=e.timings,A=Math.abs(r.duration),o=A*(t.currentQueryTotal-1),l=A*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=n.currentStaggerTime;break}let i=t.currentTimeline;l&&i.delayNextStep(l);let h=i.currentTime;zi(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=u.currentTime-h+(u.startTime-n.currentTimeline.startTime)}},Yh={},TEe=class eF{constructor(t,n,u,r,A,o,l,i){d(this,"_driver");d(this,"element");d(this,"subInstructions");d(this,"_enterClassName");d(this,"_leaveClassName");d(this,"errors");d(this,"timelines");d(this,"parentContext",null);d(this,"currentTimeline");d(this,"currentAnimateTimings",null);d(this,"previousNode",Yh);d(this,"subContextCount",0);d(this,"options",{});d(this,"currentQueryIndex",0);d(this,"currentQueryTotal",0);d(this,"currentStaggerTime",0);this._driver=t,this.element=n,this.subInstructions=u,this._enterClassName=r,this._leaveClassName=A,this.errors=o,this.timelines=l,this.currentTimeline=i||new tF(this._driver,n,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,n){if(!t)return;let u=t,r=this.options;u.duration!=null&&(r.duration=tA(u.duration)),u.delay!=null&&(r.delay=tA(u.delay));let A=u.params;if(A){let o=r.params;o||(o=this.options.params={}),Object.keys(A).forEach(l=>{(!n||!o.hasOwnProperty(l))&&(o[l]=Vl(A[l],o,this.errors))})}}_copyOptions(){let t={};if(this.options){let n=this.options.params;if(n){let u=t.params={};Object.keys(n).forEach(r=>{u[r]=n[r]})}}return t}createSubContext(t=null,n,u){let r=n||this.element,A=new eF(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,u||0));return A.previousNode=this.previousNode,A.currentAnimateTimings=this.currentAnimateTimings,A.options=this._copyOptions(),A.updateOptions(t),A.currentQueryIndex=this.currentQueryIndex,A.currentQueryTotal=this.currentQueryTotal,A.parentContext=this,this.subContextCount++,A}transformIntoNewTimeline(t){return this.previousNode=Yh,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,n,u){let r={duration:n??t.duration,delay:this.currentTimeline.currentTime+(u??0)+t.delay,easing:""},A=new YEe(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(A),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,n,u,r,A,o){let l=[];if(r&&l.push(this.element),t.length>0){t=t.replace(QEe,"."+this._enterClassName),t=t.replace(SEe,"."+this._leaveClassName);let i=u!=1,h=this._driver.query(this.element,t,i);u!==0&&(h=u<0?h.slice(h.length+u,h.length):h.slice(0,u)),l.push(...h)}return!A&&l.length==0&&o.push(Ode()),l}},tF=class uF{constructor(t,n,u,r){d(this,"_driver");d(this,"element");d(this,"startTime");d(this,"_elementTimelineStylesLookup");d(this,"duration",0);d(this,"easing",null);d(this,"_previousKeyframe",new Map);d(this,"_currentKeyframe",new Map);d(this,"_keyframes",new Map);d(this,"_styleSummary",new Map);d(this,"_localTimelineStyles",new Map);d(this,"_globalTimelineStyles");d(this,"_pendingStyles",new Map);d(this,"_backFill",new Map);d(this,"_currentEmptyStepKeyframe",null);this._driver=t,this.element=n,this.startTime=u,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let n=this._keyframes.size===1&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,n){return this.applyStylesToKeyframe(),new uF(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=bEe,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,n){this._localTimelineStyles.set(t,n),this._globalTimelineStyles.set(t,n),this._styleSummary.set(t,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[n,u]of this._globalTimelineStyles)this._backFill.set(n,u||nA),this._currentKeyframe.set(n,nA);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,n,u,r){n&&this._previousKeyframe.set("easing",n);let A=r&&r.params||{},o=zEe(t,this._globalTimelineStyles);for(let[l,i]of o){let h=Vl(i,A,u);this._pendingStyles.set(l,h),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??nA),this._updateStyle(l,h)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,n)=>{this._currentKeyframe.set(n,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,t)}))}snapshotCurrentStyles(){for(let[t,n]of this._localTimelineStyles)this._pendingStyles.set(t,n),this._updateStyle(t,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let n in this._currentKeyframe)t.push(n);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((n,u)=>{let r=this._styleSummary.get(u);(!r||n.time>r.time)&&this._updateStyle(u,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,n=new Set,u=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((l,i)=>{let h=new Map([...this._backFill,...l]);h.forEach((s,c)=>{s===pg?t.add(c):s===nA&&n.add(c)}),u||h.set("offset",i/this.duration),r.push(h)});let A=[...t.values()],o=[...n.values()];if(u){let l=r[0],i=new Map(l);l.set("offset",0),i.set("offset",1),r=[l,i]}return vg(this.element,r,A,o,this.duration,this.startTime,this.easing,!1)}},YEe=class extends tF{constructor(t,n,u,r,A,o,l=!1){super(t,n,o.delay);d(this,"keyframes");d(this,"preStyleProps");d(this,"postStyleProps");d(this,"_stretchStartingKeyframe");d(this,"timings");this.keyframes=u,this.preStyleProps=r,this.postStyleProps=A,this._stretchStartingKeyframe=l,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:n,duration:u,easing:r}=this.timings;if(this._stretchStartingKeyframe&&n){let A=[],o=u+n,l=n/o,i=new Map(t[0]);i.set("offset",0),A.push(i);let h=new Map(t[0]);h.set("offset",t6(l)),A.push(h);let s=t.length-1;for(let c=1;c<=s;c++){let E=new Map(t[c]),B=E.get("offset"),g=n+B*u;E.set("offset",t6(g/o)),A.push(E)}u=o,n=0,r="",t=A}return vg(this.element,t,this.preStyleProps,this.postStyleProps,u,n,r,!0)}};function t6(e,t=3){let n=Math.pow(10,t-1);return Math.round(e*n)/n}function zEe(e,t){let n=new Map,u;return e.forEach(r=>{if(r==="*"){u??(u=t.keys());for(let A of u)n.set(A,nA)}else for(let[A,o]of r)n.set(A,o)}),n}function u6(e,t,n,u,r,A,o,l,i,h,s,c,E){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:A,toState:u,toStyles:o,timelines:l,queriedElements:i,preStyleProps:h,postStyleProps:s,totalTime:c,errors:E}}var VE={},rF=class{constructor(e,t,n){d(this,"_triggerName");d(this,"ast");d(this,"_stateStyles");this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,u){return NEe(this.ast.matchers,e,t,n,u)}buildStyles(e,t,n){let u=this._stateStyles.get("*");return e!==void 0&&(u=this._stateStyles.get(e==null?void 0:e.toString())||u),u?u.buildStyles(t,n):new Map}build(e,t,n,u,r,A,o,l,i,h){var x;let s=[],c=this.ast.options&&this.ast.options.params||VE,E=o&&o.params||VE,B=this.buildStyles(n,E,s),g=l&&l.params||VE,f=this.buildStyles(u,g,s),m=new Set,p=new Map,C=new Map,F=u==="void",w={params:nF(g,c),delay:(x=this.ast.options)==null?void 0:x.delay},a=h?[]:$4(e,t,this.ast.animation,r,A,B,f,w,i,s),D=0;return a.forEach(N=>{D=Math.max(N.duration+N.delay,D)}),s.length?u6(t,this._triggerName,n,u,F,B,f,[],[],p,C,D,s):(a.forEach(N=>{let S=N.element,R=_i(p,S,new Set);N.preStyleProps.forEach(I=>R.add(I));let y=_i(C,S,new Set);N.postStyleProps.forEach(I=>y.add(I)),S!==t&&m.add(S)}),u6(t,this._triggerName,n,u,F,B,f,a,[...m.values()],p,C,D))}};function NEe(e,t,n,u,r){return e.some(A=>A(t,n,u,r))}function nF(e,t){let n=ru({},t);return Object.entries(e).forEach(([u,r])=>{r!=null&&(n[u]=r)}),n}var _Ee=class{constructor(e,t,n){d(this,"styles");d(this,"defaultParams");d(this,"normalizer");this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,u=nF(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((A,o)=>{A&&(A=Vl(A,u,t));let l=this.normalizer.normalizePropertyName(o,t);A=this.normalizer.normalizeStyleValue(o,l,A,t),n.set(o,A)})}),n}};function UEe(e,t,n){return new PEe(e,t,n)}var PEe=class{constructor(e,t,n){d(this,"name");d(this,"ast");d(this,"_normalizer");d(this,"transitionFactories",[]);d(this,"fallbackTransition");d(this,"states",new Map);this.name=e,this.ast=t,this._normalizer=n,t.states.forEach(u=>{let r=u.options&&u.options.params||{};this.states.set(u.name,new _Ee(u.style,r,n))}),r6(this.states,"true","1"),r6(this.states,"false","0"),t.transitions.forEach(u=>{this.transitionFactories.push(new rF(e,u,this.states))}),this.fallbackTransition=GEe(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,u){return this.transitionFactories.find(r=>r.match(e,t,n,u))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function GEe(e,t,n){let u=[(o,l)=>!0],r={type:Dr.Sequence,steps:[],options:null},A={type:Dr.Transition,animation:r,matchers:u,options:null,queryCount:0,depCount:0};return new rF(e,A,t)}function r6(e,t,n){e.has(t)?e.has(n)||e.set(n,e.get(t)):e.has(n)&&e.set(t,e.get(n))}var OEe=new Mg,jEe=class{constructor(e,t,n){d(this,"bodyNode");d(this,"_driver");d(this,"_normalizer");d(this,"_animations",new Map);d(this,"_playersById",new Map);d(this,"players",[]);this.bodyNode=e,this._driver=t,this._normalizer=n}register(e,t){let n=[],u=[],r=q4(this._driver,t,n,u);if(n.length)throw Vde();this._animations.set(e,r)}_buildPlayer(e,t,n){let u=e.element,r=L4(this._normalizer,e.keyframes,t,n);return this._driver.animate(u,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let u=[],r=this._animations.get(e),A,o=new Map;if(r?(A=$4(this._driver,t,r,J4,d5,new Map,new Map,n,OEe,u),A.forEach(h=>{let s=_i(o,h.element,new Map);h.postStyleProps.forEach(c=>s.set(c,null))})):(u.push(Jde()),A=[]),u.length)throw Zde();o.forEach((h,s)=>{h.forEach((c,E)=>{h.set(E,this._driver.computeStyle(s,E,nA))})});let l=A.map(h=>{let s=o.get(h.element);return this._buildPlayer(h,new Map,s)}),i=vA(l);return this._playersById.set(e,i),i.onDestroy(()=>this.destroy(e)),this.players.push(i),i}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Kde();return t}listen(e,t,n,u){let r=Cg(t,"","","");return mg(this._getPlayer(e),n,r,u),()=>{}}command(e,t,n,u){if(n=="register"){this.register(e,u[0]);return}if(n=="create"){let A=u[0]||{};this.create(e,t,A);return}let r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(u[0]));break;case"destroy":this.destroy(e);break}}},n6="ng-animate-queued",LEe=".ng-animate-queued",JE="ng-animate-disabled",WEe=".ng-animate-disabled",HEe="ng-star-inserted",VEe=".ng-star-inserted",JEe=[],iF={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ZEe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},oa="__ng_removed",f5=class{constructor(e,t=""){d(this,"namespaceId");d(this,"value");d(this,"options");this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),u=n?e.value:e;if(this.value=$Ee(u),n){let r=e,{value:A}=r,o=P$(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(u=>{n[u]==null&&(n[u]=t[u])})}}},xl="void",ZE=new f5(xl),KEe=class{constructor(e,t,n){d(this,"id");d(this,"hostElement");d(this,"_engine");d(this,"players",[]);d(this,"_triggers",new Map);d(this,"_queue",[]);d(this,"_elementListeners",new Map);d(this,"_hostClassName");this.id=e,this.hostElement=t,this._engine=n,this._hostClassName="ng-tns-"+e,Xi(t,this._hostClassName)}listen(e,t,n,u){if(!this._triggers.has(t))throw Xde();if(n==null||n.length==0)throw qde();if(!e1e(n))throw $de();let r=_i(this._elementListeners,e,[]),A={name:t,phase:n,callback:u};r.push(A);let o=_i(this._engine.statesByElement,e,new Map);return o.has(t)||(Xi(e,w0),Xi(e,w0+"-"+t),o.set(t,ZE)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(A);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw eEe();return t}trigger(e,t,n,u=!0){let r=this._getTrigger(t),A=new p5(this.id,t,e),o=this._engine.statesByElement.get(e);o||(Xi(e,w0),Xi(e,w0+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),i=new f5(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&i.absorbOptions(l.options),o.set(t,i),l||(l=ZE),i.value!==xl&&l.value===i.value){if(!r1e(l.params,i.params)){let E=[],B=r.matchStyles(l.value,l.params,E),g=r.matchStyles(i.value,i.params,E);E.length?this._engine.reportError(E):this._engine.afterFlush(()=>{Ao(e,B),ka(e,g)})}return}let h=_i(this._engine.playersByElement,e,[]);h.forEach(E=>{E.namespaceId==this.id&&E.triggerName==t&&E.queued&&E.destroy()});let s=r.matchTransition(l.value,i.value,e,i.params),c=!1;if(!s){if(!u)return;s=r.fallbackTransition,c=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:s,fromState:l,toState:i,player:A,isFallbackTransition:c}),c||(Xi(e,n6),A.onStart(()=>{Oo(e,n6)})),A.onDone(()=>{let E=this.players.indexOf(A);E>=0&&this.players.splice(E,1);let B=this._engine.playersByElement.get(e);if(B){let g=B.indexOf(A);g>=0&&B.splice(g,1)}}),this.players.push(A),h.push(A),A}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(u=>u.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,Sh,!0);n.forEach(u=>{if(u[oa])return;let r=this._engine.fetchNamespacesByElement(u);r.size?r.forEach(A=>A.triggerLeaveAnimation(u,t,!1,!0)):this.clearElementCache(u)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(u=>this.clearElementCache(u)))}triggerLeaveAnimation(e,t,n,u){let r=this._engine.statesByElement.get(e),A=new Map;if(r){let o=[];if(r.forEach((l,i)=>{if(A.set(i,l.value),this._triggers.has(i)){let h=this.trigger(e,i,xl,u);h&&o.push(h)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,A),n&&vA(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let u=new Set;t.forEach(r=>{let A=r.name;if(u.has(A))return;u.add(A);let o=this._triggers.get(A).fallbackTransition,l=n.get(A)||ZE,i=new f5(xl),h=new p5(this.id,A,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:A,transition:o,fromState:l,toState:i,player:h,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let u=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)u=!0;else{let A=e;for(;A=A.parentNode;)if(n.statesByElement.get(A)){u=!0;break}}}if(this.prepareLeaveAnimationListeners(e),u)n.markElementAsRemoved(this.id,e,!1,t);else{let r=e[oa];(!r||r===iF)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Xi(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let u=n.player;if(u.destroyed)return;let r=n.element,A=this._elementListeners.get(r);A&&A.forEach(o=>{if(o.name==n.triggerName){let l=Cg(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,mg(n.player,o.phase,l,o.callback)}}),u.markedForDestroy?this._engine.afterFlush(()=>{u.destroy()}):t.push(n)}),this._queue=[],t.sort((n,u)=>{let r=n.transition.ast.depCount,A=u.transition.ast.depCount;return r==0||A==0?r-A:this._engine.driver.containsElement(n.element,u.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},XEe=class{constructor(e,t,n){d(this,"bodyNode");d(this,"driver");d(this,"_normalizer");d(this,"players",[]);d(this,"newHostElements",new Map);d(this,"playersByElement",new Map);d(this,"playersByQueriedElement",new Map);d(this,"statesByElement",new Map);d(this,"disabledNodes",new Set);d(this,"totalAnimations",0);d(this,"totalQueuedPlayers",0);d(this,"_namespaceLookup",{});d(this,"_namespaceList",[]);d(this,"_flushFns",[]);d(this,"_whenQuietFns",[]);d(this,"namespacesByHostElement",new Map);d(this,"collectedEnterElements",[]);d(this,"collectedLeaveElements",[]);d(this,"onRemovalComplete",(e,t)=>{});this.bodyNode=e,this.driver=t,this._normalizer=n}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new KEe(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,u=this.namespacesByHostElement;if(n.length-1>=0){let r=!1,A=this.driver.getParentElement(t);for(;A;){let o=u.get(A);if(o){let l=n.indexOf(o);n.splice(l+1,0,e),r=!0;break}A=this.driver.getParentElement(A)}r||n.unshift(e)}else n.push(e);return u.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let u=this._namespaceLookup[e];u&&u.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let u=this._namespaceList.indexOf(n);u>=0&&this._namespaceList.splice(u,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let u of n.values())if(u.namespaceId){let r=this._fetchNamespace(u.namespaceId);r&&t.add(r)}}return t}trigger(e,t,n,u){if(M0(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,n,u),!0}return!1}insertNode(e,t,n,u){if(!M0(t))return;let r=t[oa];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let A=this.collectedLeaveElements.indexOf(t);A>=0&&this.collectedLeaveElements.splice(A,1)}if(e){let A=this._fetchNamespace(e);A&&A.insertNode(t,n)}u&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Xi(e,JE)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Oo(e,JE))}removeNode(e,t,n){if(M0(t)){let u=e?this._fetchNamespace(e):null;u?u.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,u,r){this.collectedLeaveElements.push(t),t[oa]={namespaceId:e,setForRemoval:u,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,n,u,r){return M0(t)?this._fetchNamespace(e).listen(t,n,u,r):()=>{}}_buildInstruction(e,t,n,u,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,u,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,Sh,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,E5,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return vA(this.players).onDone(()=>e());e()})}processLeaveNode(e){var n;let t=e[oa];if(t&&t.setForRemoval){if(e[oa]=iF,t.namespaceId){this.destroyInnerAnimations(e);let u=this._fetchNamespace(t.namespaceId);u&&u.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}(n=e.classList)!=null&&n.contains(JE)&&this.markElementAsDisabled(e,!1),this.driver.query(e,WEe,!0).forEach(u=>{this.markElementAsDisabled(u,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,u)=>this._balanceNamespaceList(n,u)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let u=this.collectedEnterElements[n];Xi(u,HEe)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e)}finally{for(let u=0;u<n.length;u++)n[u]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let u=this.collectedLeaveElements[n];this.processLeaveNode(u)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?vA(t).onDone(()=>{n.forEach(u=>u())}):n.forEach(u=>u())}}reportError(e){throw tEe()}_flushAnimations(e,t){let n=new Mg,u=[],r=new Map,A=[],o=new Map,l=new Map,i=new Map,h=new Set;this.disabledNodes.forEach(b=>{h.add(b);let Q=this.driver.query(b,LEe,!0);for(let Y=0;Y<Q.length;Y++)h.add(Q[Y])});let s=this.bodyNode,c=Array.from(this.statesByElement.keys()),E=A6(c,this.collectedEnterElements),B=new Map,g=0;E.forEach((b,Q)=>{let Y=J4+g++;B.set(Q,Y),b.forEach(U=>Xi(U,Y))});let f=[],m=new Set,p=new Set;for(let b=0;b<this.collectedLeaveElements.length;b++){let Q=this.collectedLeaveElements[b],Y=Q[oa];Y&&Y.setForRemoval&&(f.push(Q),m.add(Q),Y.hasAnimation?this.driver.query(Q,VEe,!0).forEach(U=>m.add(U)):p.add(Q))}let C=new Map,F=A6(c,Array.from(m));F.forEach((b,Q)=>{let Y=d5+g++;C.set(Q,Y),b.forEach(U=>Xi(U,Y))}),e.push(()=>{E.forEach((b,Q)=>{let Y=B.get(Q);b.forEach(U=>Oo(U,Y))}),F.forEach((b,Q)=>{let Y=C.get(Q);b.forEach(U=>Oo(U,Y))}),f.forEach(b=>{this.processLeaveNode(b)})});let w=[],a=[];for(let b=this._namespaceList.length-1;b>=0;b--)this._namespaceList[b].drainQueuedTransitions(t).forEach(Q=>{let Y=Q.player,U=Q.element;if(w.push(Y),this.collectedEnterElements.length){let Ye=U[oa];if(Ye&&Ye.setForMove){if(Ye.previousTriggersValues&&Ye.previousTriggersValues.has(Q.triggerName)){let Oe=Ye.previousTriggersValues.get(Q.triggerName),Fe=this.statesByElement.get(Q.element);if(Fe&&Fe.has(Q.triggerName)){let Te=Fe.get(Q.triggerName);Te.value=Oe,Fe.set(Q.triggerName,Te)}}Y.destroy();return}}let O=!s||!this.driver.containsElement(s,U),re=C.get(U),Ee=B.get(U),Ae=this._buildInstruction(Q,n,Ee,re,O);if(Ae.errors&&Ae.errors.length){a.push(Ae);return}if(O){Y.onStart(()=>Ao(U,Ae.fromStyles)),Y.onDestroy(()=>ka(U,Ae.toStyles)),u.push(Y);return}if(Q.isFallbackTransition){Y.onStart(()=>Ao(U,Ae.fromStyles)),Y.onDestroy(()=>ka(U,Ae.toStyles)),u.push(Y);return}let ge=[];Ae.timelines.forEach(Ye=>{Ye.stretchStartingKeyframe=!0,this.disabledNodes.has(Ye.element)||ge.push(Ye)}),Ae.timelines=ge,n.append(U,Ae.timelines);let xe={instruction:Ae,player:Y,element:U};A.push(xe),Ae.queriedElements.forEach(Ye=>_i(o,Ye,[]).push(Y)),Ae.preStyleProps.forEach((Ye,Oe)=>{if(Ye.size){let Fe=l.get(Oe);Fe||l.set(Oe,Fe=new Set),Ye.forEach((Te,Re)=>Fe.add(Re))}}),Ae.postStyleProps.forEach((Ye,Oe)=>{let Fe=i.get(Oe);Fe||i.set(Oe,Fe=new Set),Ye.forEach((Te,Re)=>Fe.add(Re))})});if(a.length){let b=[];a.forEach(Q=>{b.push(uEe(Q.triggerName,Q.errors))}),w.forEach(Q=>Q.destroy()),this.reportError(b)}let D=new Map,x=new Map;A.forEach(b=>{let Q=b.element;n.has(Q)&&(x.set(Q,Q),this._beforeAnimationBuild(b.player.namespaceId,b.instruction,D))}),u.forEach(b=>{let Q=b.element;this._getPreviousPlayers(Q,!1,b.namespaceId,b.triggerName,null).forEach(Y=>{_i(D,Q,[]).push(Y),Y.destroy()})});let N=f.filter(b=>o6(b,l,i)),S=new Map;a6(S,this.driver,p,i,nA).forEach(b=>{o6(b,l,i)&&N.push(b)});let R=new Map;E.forEach((b,Q)=>{a6(R,this.driver,new Set(b),l,pg)}),N.forEach(b=>{let Q=S.get(b),Y=R.get(b);S.set(b,new Map([...(Q==null?void 0:Q.entries())??[],...(Y==null?void 0:Y.entries())??[]]))});let y=[],I=[],M={};A.forEach(b=>{let{element:Q,player:Y,instruction:U}=b;if(n.has(Q)){if(h.has(Q)){Y.onDestroy(()=>ka(Q,U.toStyles)),Y.disabled=!0,Y.overrideTotalTime(U.totalTime),u.push(Y);return}let O=M;if(x.size>1){let Ee=Q,Ae=[];for(;Ee=Ee.parentNode;){let ge=x.get(Ee);if(ge){O=ge;break}Ae.push(Ee)}Ae.forEach(ge=>x.set(ge,O))}let re=this._buildAnimation(Y.namespaceId,U,D,r,R,S);if(Y.setRealPlayer(re),O===M)y.push(Y);else{let Ee=this.playersByElement.get(O);Ee&&Ee.length&&(Y.parentPlayer=vA(Ee)),u.push(Y)}}else Ao(Q,U.fromStyles),Y.onDestroy(()=>ka(Q,U.toStyles)),I.push(Y),h.has(Q)&&u.push(Y)}),I.forEach(b=>{let Q=r.get(b.element);if(Q&&Q.length){let Y=vA(Q);b.setRealPlayer(Y)}}),u.forEach(b=>{b.parentPlayer?b.syncPlayerEvents(b.parentPlayer):b.destroy()});for(let b=0;b<f.length;b++){let Q=f[b],Y=Q[oa];if(Oo(Q,d5),Y&&Y.hasAnimation)continue;let U=[];if(o.size){let re=o.get(Q);re&&re.length&&U.push(...re);let Ee=this.driver.query(Q,E5,!0);for(let Ae=0;Ae<Ee.length;Ae++){let ge=o.get(Ee[Ae]);ge&&ge.length&&U.push(...ge)}}let O=U.filter(re=>!re.destroyed);O.length?t1e(this,Q,O):this.processLeaveNode(Q)}return f.length=0,y.forEach(b=>{this.players.push(b),b.onDone(()=>{b.destroy();let Q=this.players.indexOf(b);this.players.splice(Q,1)}),b.play()}),y}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,u,r){let A=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(A=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==xl;o.forEach(i=>{i.queued||!l&&i.triggerName!=u||A.push(i)})}}return(n||u)&&(A=A.filter(o=>!(n&&n!=o.namespaceId||u&&u!=o.triggerName))),A}_beforeAnimationBuild(e,t,n){let u=t.triggerName,r=t.element,A=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:u;for(let l of t.timelines){let i=l.element,h=i!==r,s=_i(n,i,[]);this._getPreviousPlayers(i,h,A,o,t.toState).forEach(c=>{let E=c.getRealPlayer();E.beforeDestroy&&E.beforeDestroy(),c.destroy(),s.push(c)})}Ao(r,t.fromStyles)}_buildAnimation(e,t,n,u,r,A){let o=t.triggerName,l=t.element,i=[],h=new Set,s=new Set,c=t.timelines.map(B=>{let g=B.element;h.add(g);let f=g[oa];if(f&&f.removedBeforeQueried)return new Hl(B.duration,B.delay);let m=g!==l,p=u1e((n.get(g)||JEe).map(D=>D.getRealPlayer())).filter(D=>{let x=D;return x.element?x.element===g:!1}),C=r.get(g),F=A.get(g),w=L4(this._normalizer,B.keyframes,C,F),a=this._buildPlayer(B,w,p);if(B.subTimeline&&u&&s.add(g),m){let D=new p5(e,o,g);D.setRealPlayer(a),i.push(D)}return a});i.forEach(B=>{_i(this.playersByQueriedElement,B.element,[]).push(B),B.onDone(()=>qEe(this.playersByQueriedElement,B.element,B))}),h.forEach(B=>Xi(B,qf));let E=vA(c);return E.onDestroy(()=>{h.forEach(B=>Oo(B,qf)),ka(l,t.toStyles)}),s.forEach(B=>{_i(u,B,[]).push(E)}),E}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Hl(e.duration,e.delay)}},p5=class{constructor(e,t,n){d(this,"namespaceId");d(this,"triggerName");d(this,"element");d(this,"_player",new Hl);d(this,"_containsRealPlayer",!1);d(this,"_queuedCallbacks",new Map);d(this,"destroyed",!1);d(this,"parentPlayer",null);d(this,"markedForDestroy",!1);d(this,"disabled",!1);d(this,"queued",!0);d(this,"totalTime",0);this.namespaceId=e,this.triggerName=t,this.element=n}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(u=>mg(e,n,void 0,u))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){_i(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function qEe(e,t,n){let u=e.get(t);if(u){if(u.length){let r=u.indexOf(n);u.splice(r,1)}u.length==0&&e.delete(t)}return u}function $Ee(e){return e??null}function M0(e){return e&&e.nodeType===1}function e1e(e){return e=="start"||e=="done"}function i6(e,t){let n=e.style.display;return e.style.display=t??"none",n}function a6(e,t,n,u,r){let A=[];n.forEach(i=>A.push(i6(i)));let o=[];u.forEach((i,h)=>{let s=new Map;i.forEach(c=>{let E=t.computeStyle(h,c,r);s.set(c,E),(!E||E.length==0)&&(h[oa]=ZEe,o.push(h))}),e.set(h,s)});let l=0;return n.forEach(i=>i6(i,A[l++])),o}function A6(e,t){let n=new Map;if(e.forEach(l=>n.set(l,[])),t.length==0)return n;let u=1,r=new Set(t),A=new Map;function o(l){if(!l)return u;let i=A.get(l);if(i)return i;let h=l.parentNode;return n.has(h)?i=h:r.has(h)?i=u:i=o(h),A.set(l,i),i}return t.forEach(l=>{let i=o(l);i!==u&&n.get(i).push(l)}),n}function Xi(e,t){var n;(n=e.classList)==null||n.add(t)}function Oo(e,t){var n;(n=e.classList)==null||n.remove(t)}function t1e(e,t,n){vA(n).onDone(()=>e.processLeaveNode(t))}function u1e(e){let t=[];return aF(e,t),t}function aF(e,t){for(let n=0;n<e.length;n++){let u=e[n];u instanceof j4?aF(u.players,t):t.push(u)}}function r1e(e,t){let n=Object.keys(e),u=Object.keys(t);if(n.length!=u.length)return!1;for(let r=0;r<n.length;r++){let A=n[r];if(!t.hasOwnProperty(A)||e[A]!==t[A])return!1}return!0}function o6(e,t,n){let u=n.get(e);if(!u)return!1;let r=t.get(e);return r?u.forEach(A=>r.add(A)):t.set(e,u),n.delete(e),!0}var m5=class{constructor(e,t,n){d(this,"_driver");d(this,"_normalizer");d(this,"_transitionEngine");d(this,"_timelineEngine");d(this,"_triggerCache",{});d(this,"onRemovalComplete",(e,t)=>{});this._driver=t,this._normalizer=n,this._transitionEngine=new XEe(e.body,t,n),this._timelineEngine=new jEe(e.body,t,n),this._transitionEngine.onRemovalComplete=(u,r)=>this.onRemovalComplete(u,r)}registerTrigger(e,t,n,u,r){let A=e+"-"+u,o=this._triggerCache[A];if(!o){let l=[],i=[],h=q4(this._driver,r,l,i);if(l.length)throw Wde();o=UEe(u,h,this._normalizer),this._triggerCache[A]=o}this._transitionEngine.registerTrigger(t,u,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,u){this._transitionEngine.insertNode(e,t,n,u)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,u){if(n.charAt(0)=="@"){let[r,A]=Kf(n),o=u;this._timelineEngine.command(r,t,A,o)}else this._transitionEngine.trigger(e,t,n,u)}listen(e,t,n,u,r){if(n.charAt(0)=="@"){let[A,o]=Kf(n);return this._timelineEngine.listen(A,t,o,r)}return this._transitionEngine.listen(e,t,n,u,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function n1e(e,t){let n=null,u=null;return Array.isArray(t)&&t.length?(n=KE(t[0]),t.length>1&&(u=KE(t[t.length-1]))):t instanceof Map&&(n=KE(t)),n||u?new i1e(e,n,u):null}var i1e=(()=>{const t=class t{constructor(u,r,A){d(this,"_element");d(this,"_startStyles");d(this,"_endStyles");d(this,"_state",0);d(this,"_initialStyles");this._element=u,this._startStyles=r,this._endStyles=A;let o=t.initialStylesByElement.get(u);o||t.initialStylesByElement.set(u,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&ka(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ka(this._element,this._initialStyles),this._endStyles&&(ka(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ao(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ao(this._element,this._endStyles),this._endStyles=null),ka(this._element,this._initialStyles),this._state=3)}};d(t,"initialStylesByElement",new WeakMap);let e=t;return e})();function KE(e){let t=null;return e.forEach((n,u)=>{a1e(u)&&(t=t||new Map,t.set(u,n))}),t}function a1e(e){return e==="display"||e==="position"}var s6=class{constructor(e,t,n,u){d(this,"element");d(this,"keyframes");d(this,"options");d(this,"_specialStyles");d(this,"_onDoneFns",[]);d(this,"_onStartFns",[]);d(this,"_onDestroyFns",[]);d(this,"_duration");d(this,"_delay");d(this,"_initialized",!1);d(this,"_finished",!1);d(this,"_started",!1);d(this,"_destroyed",!1);d(this,"_finalKeyframe");d(this,"_originalOnDoneFns",[]);d(this,"_originalOnStartFns",[]);d(this,"domPlayer");d(this,"time",0);d(this,"parentPlayer",null);d(this,"currentSnapshot",new Map);this.element=e,this.keyframes=t,this.options=n,this._specialStyles=u,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,n)=>{n!=="offset"&&e.set(n,this._finished?t:wg(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},A1e=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return W4(e,t)}getParentElement(e){return Fg(e)}query(e,t,n){return H4(e,t,n)}computeStyle(e,t,n){return wg(e,t)}animate(e,t,n,u,r,A=[]){let o=u==0?"both":"forwards",l={duration:n,delay:u,fill:o};r&&(l.easing=r);let i=new Map,h=A.filter(E=>E instanceof s6);dEe(n,u)&&h.forEach(E=>{E.currentSnapshot.forEach((B,g)=>i.set(g,B))});let s=lEe(t).map(E=>new Map(E));s=EEe(e,s,i);let c=n1e(e,s);return new s6(e,s,l,c)}},V0="@",AF="@.disabled",oF=class{constructor(e,t,n,u){d(this,"namespaceId");d(this,"delegate");d(this,"engine");d(this,"_onDestroy");d(this,"ɵtype",0);this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=u}get data(){return this.delegate.data}destroyNode(e){var t,n;(n=(t=this.delegate).destroyNode)==null||n.call(t,e)}destroy(){var e;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),(e=this._onDestroy)==null||e.call(this)}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,u=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,u)}removeChild(e,t,n){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,u){this.delegate.setAttribute(e,t,n,u)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,u){this.delegate.setStyle(e,t,n,u)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==V0&&t==AF?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n,u){return this.delegate.listen(e,t,n,u)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},o1e=class extends oF{constructor(t,n,u,r,A){super(n,u,r,A);d(this,"factory");this.factory=t,this.namespaceId=n}setProperty(t,n,u){n.charAt(0)==V0?n.charAt(1)=="."&&n==AF?(u=u===void 0?!0:!!u,this.disableAnimations(t,u)):this.engine.process(this.namespaceId,t,n.slice(1),u):this.delegate.setProperty(t,n,u)}listen(t,n,u,r){if(n.charAt(0)==V0){let A=s1e(t),o=n.slice(1),l="";return o.charAt(0)!=V0&&([o,l]=l1e(o)),this.engine.listen(this.namespaceId,A,o,l,i=>{let h=i._data||-1;this.factory.scheduleListenerCallback(h,u,i)})}return this.delegate.listen(t,n,u,r)}};function s1e(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function l1e(e){let t=e.indexOf("."),n=e.substring(0,t),u=e.slice(t+1);return[n,u]}var c1e=class{constructor(e,t,n){d(this,"delegate");d(this,"engine");d(this,"_zone");d(this,"_currentId",0);d(this,"_microtaskId",1);d(this,"_animationCallbacksBuffer",[]);d(this,"_rendererCache",new Map);d(this,"_cdRecurDepth",0);this.delegate=e,this.engine=t,this._zone=n,t.onRemovalComplete=(u,r)=>{r==null||r.removeChild(null,u)}}createRenderer(e,t){var l;let n="",u=this.delegate.createRenderer(e,t);if(!e||!((l=t==null?void 0:t.data)!=null&&l.animation)){let i=this._rendererCache,h=i.get(u);if(!h){let s=()=>i.delete(u);h=new oF(n,u,this.engine,s),i.set(u,h)}return h}let r=t.id,A=t.id+"-"+this._currentId;this._currentId++,this.engine.register(A,e);let o=i=>{Array.isArray(i)?i.forEach(o):this.engine.registerTrigger(r,A,e,i.name,i)};return t.data.animation.forEach(o),new o1e(this,A,u,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let u=this._animationCallbacksBuffer;u.length==0&&queueMicrotask(()=>{this._zone.run(()=>{u.forEach(r=>{let[A,o]=r;A(o)}),this._animationCallbacksBuffer=[]})}),u.push([t,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){var t,n;this.engine.flush(),(n=(t=this.delegate).componentReplaced)==null||n.call(t,e)}},h1e=(()=>{const t=class t extends m5{constructor(u,r,A){super(u,r,A)}ngOnDestroy(){this.flush()}};d(t,"ɵfac",function(u){return new(u||t)(vu(Sr),vu(K4),vu(yg))}),d(t,"ɵprov",Wt({token:t,factory:t.ɵfac}));let e=t;return e})();function d1e(){return new fEe}function E1e(e,t,n){return new c1e(e,t,n)}var B1e=[{provide:yg,useFactory:d1e},{provide:m5,useClass:h1e},{provide:pa,useFactory:E1e,deps:[K1,m5,or]}],g1e=[{provide:K4,useFactory:()=>new A1e},{provide:Si,useFactory:()=>"BrowserAnimations"},...B1e];function f1e(){return yo("NgEagerAnimations"),[...g1e]}var p1e=(()=>{const t=class t extends Ds{constructor(u){super(),this.translate=u,this.getRangeLabel=(r,A,o)=>{if(o===0||A===0)return`0 / ${o}`;o=Math.max(o,0);let l=r*A,i=l<o?Math.min(l+A,o):l+A;return`${l+1} - ${i} / ${o}`},this.getAndInitTranslations=()=>{this.nextPageLabel=this.translate.instant("commons.matPaginator.nextPage"),this.previousPageLabel=this.translate.instant("commons.matPaginator.prevPage"),this.firstPageLabel=this.translate.instant("commons.matPaginator.firstPage"),this.lastPageLabel=this.translate.instant("commons.matPaginator.lastPage"),this.itemsPerPageLabel=this.translate.instant("commons.matPaginator.itemsPerPage"),this.getRangeLabel=this.getRangeLabel.bind(this),this.changes.next()},this.translate.onLangChange.subscribe(()=>{this.getAndInitTranslations()}),this.getAndInitTranslations()}};t.ɵfac=function(u){return new(u||t)(vu(Ii))},t.ɵprov=Wt({token:t,factory:t.ɵfac});let e=t;return e})(),sF=6048e5,m1e=864e5,C1e=6e4,F1e=36e5,D1e=1e3,l6=Symbol.for("constructDateFrom");function ui(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&l6 in e?e[l6](t):e instanceof Date?new e.constructor(t):new Date(t)}function Un(e,t){return ui(t||e,e)}function lF(e,t,n){let u=Un(e,n==null?void 0:n.in);return isNaN(t)?ui((n==null?void 0:n.in)||e,NaN):(t&&u.setDate(u.getDate()+t),u)}var w1e={};function Ps(){return w1e}function zA(e,t){var l,i,h,s;let n=Ps(),u=(t==null?void 0:t.weekStartsOn)??((i=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:i.weekStartsOn)??n.weekStartsOn??((s=(h=n.locale)==null?void 0:h.options)==null?void 0:s.weekStartsOn)??0,r=Un(e,t==null?void 0:t.in),A=r.getDay(),o=(A<u?7:0)+A-u;return r.setDate(r.getDate()-o),r.setHours(0,0,0,0),r}function ws(e,t){return zA(e,Br(ru({},t),{weekStartsOn:1}))}function cF(e,t){let n=Un(e,t==null?void 0:t.in),u=n.getFullYear(),r=ui(n,0);r.setFullYear(u+1,0,4),r.setHours(0,0,0,0);let A=ws(r),o=ui(n,0);o.setFullYear(u,0,4),o.setHours(0,0,0,0);let l=ws(o);return n.getTime()>=A.getTime()?u+1:n.getTime()>=l.getTime()?u:u-1}function zh(e){let t=Un(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function y1e(e,...t){let n=ui.bind(null,t.find(u=>typeof u=="object"));return t.map(n)}function c6(e,t){let n=Un(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function v1e(e,t,n){let[u,r]=y1e(n==null?void 0:n.in,e,t),A=c6(u),o=c6(r),l=+A-zh(A),i=+o-zh(o);return Math.round((l-i)/m1e)}function M1e(e,t){let n=cF(e,t),u=ui(e,0);return u.setFullYear(n,0,4),u.setHours(0,0,0,0),ws(u)}function x1e(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function b1e(e){return!(!x1e(e)&&typeof e!="number"||isNaN(+Un(e)))}function I1e(e,t){let n=Un(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}var Q1e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},R1e=(e,t,n)=>{let u,r=Q1e[e];return typeof r=="string"?u=r:t===1?u=r.one:u=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+u:u+" ago":u};function XE(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var S1e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},k1e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},T1e={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Y1e={date:XE({formats:S1e,defaultWidth:"full"}),time:XE({formats:k1e,defaultWidth:"full"}),dateTime:XE({formats:T1e,defaultWidth:"full"})},z1e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},N1e=(e,t,n,u)=>z1e[e];function El(e){return(t,n)=>{let u=n!=null&&n.context?String(n.context):"standalone",r;if(u==="formatting"&&e.formattingValues){let o=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):o;r=e.formattingValues[l]||e.formattingValues[o]}else{let o=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;r=e.values[l]||e.values[o]}let A=e.argumentCallback?e.argumentCallback(t):t;return r[A]}}var _1e={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},U1e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},P1e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},G1e={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},O1e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},j1e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},L1e=(e,t)=>{let n=Number(e),u=n%100;if(u>20||u<10)switch(u%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},W1e={ordinalNumber:L1e,era:El({values:_1e,defaultWidth:"wide"}),quarter:El({values:U1e,defaultWidth:"wide",argumentCallback:e=>e-1}),month:El({values:P1e,defaultWidth:"wide"}),day:El({values:G1e,defaultWidth:"wide"}),dayPeriod:El({values:O1e,defaultWidth:"wide",formattingValues:j1e,defaultFormattingWidth:"wide"})};function Bl(e){return(t,n={})=>{let u=n.width,r=u&&e.matchPatterns[u]||e.matchPatterns[e.defaultMatchWidth],A=t.match(r);if(!A)return null;let o=A[0],l=u&&e.parsePatterns[u]||e.parsePatterns[e.defaultParseWidth],i=Array.isArray(l)?V1e(l,c=>c.test(o)):H1e(l,c=>c.test(o)),h;h=e.valueCallback?e.valueCallback(i):i,h=n.valueCallback?n.valueCallback(h):h;let s=t.slice(o.length);return{value:h,rest:s}}}function H1e(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function V1e(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function J1e(e){return(t,n={})=>{let u=t.match(e.matchPattern);if(!u)return null;let r=u[0],A=t.match(e.parsePattern);if(!A)return null;let o=e.valueCallback?e.valueCallback(A[0]):A[0];o=n.valueCallback?n.valueCallback(o):o;let l=t.slice(r.length);return{value:o,rest:l}}}var Z1e=/^(\d+)(th|st|nd|rd)?/i,K1e=/\d+/i,X1e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},q1e={any:[/^b/i,/^(a|c)/i]},$1e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},e5e={any:[/1/i,/2/i,/3/i,/4/i]},t5e={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},u5e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},r5e={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},n5e={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},i5e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},a5e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},A5e={ordinalNumber:J1e({matchPattern:Z1e,parsePattern:K1e,valueCallback:e=>parseInt(e,10)}),era:Bl({matchPatterns:X1e,defaultMatchWidth:"wide",parsePatterns:q1e,defaultParseWidth:"any"}),quarter:Bl({matchPatterns:$1e,defaultMatchWidth:"wide",parsePatterns:e5e,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Bl({matchPatterns:t5e,defaultMatchWidth:"wide",parsePatterns:u5e,defaultParseWidth:"any"}),day:Bl({matchPatterns:r5e,defaultMatchWidth:"wide",parsePatterns:n5e,defaultParseWidth:"any"}),dayPeriod:Bl({matchPatterns:i5e,defaultMatchWidth:"any",parsePatterns:a5e,defaultParseWidth:"any"})},hF={code:"en-US",formatDistance:R1e,formatLong:Y1e,formatRelative:N1e,localize:W1e,match:A5e,options:{weekStartsOn:0,firstWeekContainsDate:1}};function o5e(e,t){let n=Un(e,t==null?void 0:t.in);return v1e(n,I1e(n))+1}function dF(e,t){let n=Un(e,t==null?void 0:t.in),u=+ws(n)-+M1e(n);return Math.round(u/sF)+1}function xg(e,t){var s,c,E,B;let n=Un(e,t==null?void 0:t.in),u=n.getFullYear(),r=Ps(),A=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((B=(E=r.locale)==null?void 0:E.options)==null?void 0:B.firstWeekContainsDate)??1,o=ui((t==null?void 0:t.in)||e,0);o.setFullYear(u+1,0,A),o.setHours(0,0,0,0);let l=zA(o,t),i=ui((t==null?void 0:t.in)||e,0);i.setFullYear(u,0,A),i.setHours(0,0,0,0);let h=zA(i,t);return+n>=+l?u+1:+n>=+h?u:u-1}function s5e(e,t){var o,l,i,h;let n=Ps(),u=(t==null?void 0:t.firstWeekContainsDate)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(i=n.locale)==null?void 0:i.options)==null?void 0:h.firstWeekContainsDate)??1,r=xg(e,t),A=ui((t==null?void 0:t.in)||e,0);return A.setFullYear(r,0,u),A.setHours(0,0,0,0),zA(A,t)}function EF(e,t){let n=Un(e,t==null?void 0:t.in),u=+zA(n,t)-+s5e(n,t);return Math.round(u/sF)+1}function Jr(e,t){let n=e<0?"-":"",u=Math.abs(e).toString().padStart(t,"0");return n+u}var FA={y(e,t){let n=e.getFullYear(),u=n>0?n:1-n;return Jr(t==="yy"?u%100:u,t.length)},M(e,t){let n=e.getMonth();return t==="M"?String(n+1):Jr(n+1,2)},d(e,t){return Jr(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Jr(e.getHours()%12||12,t.length)},H(e,t){return Jr(e.getHours(),t.length)},m(e,t){return Jr(e.getMinutes(),t.length)},s(e,t){return Jr(e.getSeconds(),t.length)},S(e,t){let n=t.length,u=e.getMilliseconds(),r=Math.trunc(u*Math.pow(10,n-3));return Jr(r,t.length)}},Po={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},h6={G:function(e,t,n){let u=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(u,{width:"abbreviated"});case"GGGGG":return n.era(u,{width:"narrow"});case"GGGG":default:return n.era(u,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){let u=e.getFullYear(),r=u>0?u:1-u;return n.ordinalNumber(r,{unit:"year"})}return FA.y(e,t)},Y:function(e,t,n,u){let r=xg(e,u),A=r>0?r:1-r;if(t==="YY"){let o=A%100;return Jr(o,2)}return t==="Yo"?n.ordinalNumber(A,{unit:"year"}):Jr(A,t.length)},R:function(e,t){let n=cF(e);return Jr(n,t.length)},u:function(e,t){let n=e.getFullYear();return Jr(n,t.length)},Q:function(e,t,n){let u=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(u);case"QQ":return Jr(u,2);case"Qo":return n.ordinalNumber(u,{unit:"quarter"});case"QQQ":return n.quarter(u,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(u,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(u,{width:"wide",context:"formatting"})}},q:function(e,t,n){let u=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(u);case"qq":return Jr(u,2);case"qo":return n.ordinalNumber(u,{unit:"quarter"});case"qqq":return n.quarter(u,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(u,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(u,{width:"wide",context:"standalone"})}},M:function(e,t,n){let u=e.getMonth();switch(t){case"M":case"MM":return FA.M(e,t);case"Mo":return n.ordinalNumber(u+1,{unit:"month"});case"MMM":return n.month(u,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(u,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(u,{width:"wide",context:"formatting"})}},L:function(e,t,n){let u=e.getMonth();switch(t){case"L":return String(u+1);case"LL":return Jr(u+1,2);case"Lo":return n.ordinalNumber(u+1,{unit:"month"});case"LLL":return n.month(u,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(u,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(u,{width:"wide",context:"standalone"})}},w:function(e,t,n,u){let r=EF(e,u);return t==="wo"?n.ordinalNumber(r,{unit:"week"}):Jr(r,t.length)},I:function(e,t,n){let u=dF(e);return t==="Io"?n.ordinalNumber(u,{unit:"week"}):Jr(u,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):FA.d(e,t)},D:function(e,t,n){let u=o5e(e);return t==="Do"?n.ordinalNumber(u,{unit:"dayOfYear"}):Jr(u,t.length)},E:function(e,t,n){let u=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(u,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(u,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(u,{width:"short",context:"formatting"});case"EEEE":default:return n.day(u,{width:"wide",context:"formatting"})}},e:function(e,t,n,u){let r=e.getDay(),A=(r-u.weekStartsOn+8)%7||7;switch(t){case"e":return String(A);case"ee":return Jr(A,2);case"eo":return n.ordinalNumber(A,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,u){let r=e.getDay(),A=(r-u.weekStartsOn+8)%7||7;switch(t){case"c":return String(A);case"cc":return Jr(A,t.length);case"co":return n.ordinalNumber(A,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){let u=e.getDay(),r=u===0?7:u;switch(t){case"i":return String(r);case"ii":return Jr(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(u,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(u,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(u,{width:"short",context:"formatting"});case"iiii":default:return n.day(u,{width:"wide",context:"formatting"})}},a:function(e,t,n){let u=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(u,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(u,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(u,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(u,{width:"wide",context:"formatting"})}},b:function(e,t,n){let u=e.getHours(),r;switch(u===12?r=Po.noon:u===0?r=Po.midnight:r=u/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let u=e.getHours(),r;switch(u>=17?r=Po.evening:u>=12?r=Po.afternoon:u>=4?r=Po.morning:r=Po.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let u=e.getHours()%12;return u===0&&(u=12),n.ordinalNumber(u,{unit:"hour"})}return FA.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):FA.H(e,t)},K:function(e,t,n){let u=e.getHours()%12;return t==="Ko"?n.ordinalNumber(u,{unit:"hour"}):Jr(u,t.length)},k:function(e,t,n){let u=e.getHours();return u===0&&(u=24),t==="ko"?n.ordinalNumber(u,{unit:"hour"}):Jr(u,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):FA.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):FA.s(e,t)},S:function(e,t){return FA.S(e,t)},X:function(e,t,n){let u=e.getTimezoneOffset();if(u===0)return"Z";switch(t){case"X":return E6(u);case"XXXX":case"XX":return ro(u);case"XXXXX":case"XXX":default:return ro(u,":")}},x:function(e,t,n){let u=e.getTimezoneOffset();switch(t){case"x":return E6(u);case"xxxx":case"xx":return ro(u);case"xxxxx":case"xxx":default:return ro(u,":")}},O:function(e,t,n){let u=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+d6(u,":");case"OOOO":default:return"GMT"+ro(u,":")}},z:function(e,t,n){let u=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+d6(u,":");case"zzzz":default:return"GMT"+ro(u,":")}},t:function(e,t,n){let u=Math.trunc(+e/1e3);return Jr(u,t.length)},T:function(e,t,n){return Jr(+e,t.length)}};function d6(e,t=""){let n=e>0?"-":"+",u=Math.abs(e),r=Math.trunc(u/60),A=u%60;return A===0?n+String(r):n+String(r)+t+Jr(A,2)}function E6(e,t){return e%60===0?(e>0?"-":"+")+Jr(Math.abs(e)/60,2):ro(e,t)}function ro(e,t=""){let n=e>0?"-":"+",u=Math.abs(e),r=Jr(Math.trunc(u/60),2),A=Jr(u%60,2);return n+r+t+A}var B6=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},BF=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},l5e=(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],u=n[1],r=n[2];if(!r)return B6(e,t);let A;switch(u){case"P":A=t.dateTime({width:"short"});break;case"PP":A=t.dateTime({width:"medium"});break;case"PPP":A=t.dateTime({width:"long"});break;case"PPPP":default:A=t.dateTime({width:"full"});break}return A.replace("{{date}}",B6(u,t)).replace("{{time}}",BF(r,t))},C5={p:BF,P:l5e},c5e=/^D+$/,h5e=/^Y+$/,d5e=["D","DD","YY","YYYY"];function gF(e){return c5e.test(e)}function fF(e){return h5e.test(e)}function F5(e,t,n){let u=E5e(e,t,n);if(console.warn(u),d5e.includes(e))throw new RangeError(u)}function E5e(e,t,n){let u=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${u} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var B5e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g5e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,f5e=/^'([^]*?)'?$/,p5e=/''/g,m5e=/[a-zA-Z]/;function As(e,t,n){var s,c,E,B,g,f,m,p;let u=Ps(),r=(n==null?void 0:n.locale)??u.locale??hF,A=(n==null?void 0:n.firstWeekContainsDate)??((c=(s=n==null?void 0:n.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??u.firstWeekContainsDate??((B=(E=u.locale)==null?void 0:E.options)==null?void 0:B.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((f=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:f.weekStartsOn)??u.weekStartsOn??((p=(m=u.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??0,l=Un(e,n==null?void 0:n.in);if(!b1e(l))throw new RangeError("Invalid time value");let i=t.match(g5e).map(C=>{let F=C[0];if(F==="p"||F==="P"){let w=C5[F];return w(C,r.formatLong)}return C}).join("").match(B5e).map(C=>{if(C==="''")return{isToken:!1,value:"'"};let F=C[0];if(F==="'")return{isToken:!1,value:C5e(C)};if(h6[F])return{isToken:!0,value:C};if(F.match(m5e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return{isToken:!1,value:C}});r.localize.preprocessor&&(i=r.localize.preprocessor(l,i));let h={firstWeekContainsDate:A,weekStartsOn:o,locale:r};return i.map(C=>{if(!C.isToken)return C.value;let F=C.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&fF(F)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&gF(F))&&F5(F,t,String(e));let w=h6[F[0]];return w(l,F,r.localize,h)}).join("")}function C5e(e){let t=e.match(f5e);return t?t[1].replace(p5e,"'"):e}function pF(){return Object.assign({},Ps())}function F5e(e,t){let n=Un(e,t==null?void 0:t.in).getDay();return n===0?7:n}function D5e(e,t){return+Un(e)==+Un(t)}function w5e(e,t){let n=y5e(t)?new t(0):ui(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function y5e(e){var t;return typeof e=="function"&&((t=e.prototype)==null?void 0:t.constructor)===e}var v5e=10,mF=class{constructor(){d(this,"subPriority",0)}validate(e,t){return!0}},M5e=class extends mF{constructor(e,t,n,u,r){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=u,r&&(this.subPriority=r)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},x5e=class extends mF{constructor(t,n){super();d(this,"priority",v5e);d(this,"subPriority",-1);this.context=t||(u=>ui(n,u))}set(t,n){return n.timestampIsSet?t:ui(t,w5e(t,this.context))}},Or=class{run(e,t,n,u){let r=this.parse(e,t,n,u);return r?{setter:new M5e(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(e,t,n){return!0}},b5e=class extends Or{constructor(){super(...arguments);d(this,"priority",140);d(this,"incompatibleTokens",["R","u","t","T"])}parse(t,n,u){switch(n){case"G":case"GG":case"GGG":return u.era(t,{width:"abbreviated"})||u.era(t,{width:"narrow"});case"GGGGG":return u.era(t,{width:"narrow"});case"GGGG":default:return u.era(t,{width:"wide"})||u.era(t,{width:"abbreviated"})||u.era(t,{width:"narrow"})}}set(t,n,u){return n.era=u,t.setFullYear(u,0,1),t.setHours(0,0,0,0),t}},Yn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ta={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function zn(e,t){return e&&{value:t(e.value),rest:e.rest}}function Dn(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Ya(e,t){let n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};let u=n[1]==="+"?1:-1,r=n[2]?parseInt(n[2],10):0,A=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:u*(r*F1e+A*C1e+o*D1e),rest:t.slice(n[0].length)}}function CF(e){return Dn(Yn.anyDigitsSigned,e)}function In(e,t){switch(e){case 1:return Dn(Yn.singleDigit,t);case 2:return Dn(Yn.twoDigits,t);case 3:return Dn(Yn.threeDigits,t);case 4:return Dn(Yn.fourDigits,t);default:return Dn(new RegExp("^\\d{1,"+e+"}"),t)}}function Nh(e,t){switch(e){case 1:return Dn(Yn.singleDigitSigned,t);case 2:return Dn(Yn.twoDigitsSigned,t);case 3:return Dn(Yn.threeDigitsSigned,t);case 4:return Dn(Yn.fourDigitsSigned,t);default:return Dn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function bg(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function FF(e,t){let n=t>0,u=n?t:1-t,r;if(u<=50)r=e||100;else{let A=u+50,o=Math.trunc(A/100)*100,l=e>=A%100;r=e+o-(l?100:0)}return n?r:1-r}function DF(e){return e%400===0||e%4===0&&e%100!==0}var I5e=class extends Or{constructor(){super(...arguments);d(this,"priority",130);d(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,n,u){let r=A=>({year:A,isTwoDigitYear:n==="yy"});switch(n){case"y":return zn(In(4,t),r);case"yo":return zn(u.ordinalNumber(t,{unit:"year"}),r);default:return zn(In(n.length,t),r)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,u){let r=t.getFullYear();if(u.isTwoDigitYear){let o=FF(u.year,r);return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}let A=!("era"in n)||n.era===1?u.year:1-u.year;return t.setFullYear(A,0,1),t.setHours(0,0,0,0),t}},Q5e=class extends Or{constructor(){super(...arguments);d(this,"priority",130);d(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,n,u){let r=A=>({year:A,isTwoDigitYear:n==="YY"});switch(n){case"Y":return zn(In(4,t),r);case"Yo":return zn(u.ordinalNumber(t,{unit:"year"}),r);default:return zn(In(n.length,t),r)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,u,r){let A=xg(t,r);if(u.isTwoDigitYear){let l=FF(u.year,A);return t.setFullYear(l,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),zA(t,r)}let o=!("era"in n)||n.era===1?u.year:1-u.year;return t.setFullYear(o,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),zA(t,r)}},R5e=class extends Or{constructor(){super(...arguments);d(this,"priority",130);d(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,n){return Nh(n==="R"?4:n.length,t)}set(t,n,u){let r=ui(t,0);return r.setFullYear(u,0,4),r.setHours(0,0,0,0),ws(r)}},S5e=class extends Or{constructor(){super(...arguments);d(this,"priority",130);d(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,n){return Nh(n==="u"?4:n.length,t)}set(t,n,u){return t.setFullYear(u,0,1),t.setHours(0,0,0,0),t}},k5e=class extends Or{constructor(){super(...arguments);d(this,"priority",120);d(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,n,u){switch(n){case"Q":case"QQ":return In(n.length,t);case"Qo":return u.ordinalNumber(t,{unit:"quarter"});case"QQQ":return u.quarter(t,{width:"abbreviated",context:"formatting"})||u.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return u.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return u.quarter(t,{width:"wide",context:"formatting"})||u.quarter(t,{width:"abbreviated",context:"formatting"})||u.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=1&&n<=4}set(t,n,u){return t.setMonth((u-1)*3,1),t.setHours(0,0,0,0),t}},T5e=class extends Or{constructor(){super(...arguments);d(this,"priority",120);d(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,n,u){switch(n){case"q":case"qq":return In(n.length,t);case"qo":return u.ordinalNumber(t,{unit:"quarter"});case"qqq":return u.quarter(t,{width:"abbreviated",context:"standalone"})||u.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return u.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return u.quarter(t,{width:"wide",context:"standalone"})||u.quarter(t,{width:"abbreviated",context:"standalone"})||u.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=1&&n<=4}set(t,n,u){return t.setMonth((u-1)*3,1),t.setHours(0,0,0,0),t}},Y5e=class extends Or{constructor(){super(...arguments);d(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);d(this,"priority",110)}parse(t,n,u){let r=A=>A-1;switch(n){case"M":return zn(Dn(Yn.month,t),r);case"MM":return zn(In(2,t),r);case"Mo":return zn(u.ordinalNumber(t,{unit:"month"}),r);case"MMM":return u.month(t,{width:"abbreviated",context:"formatting"})||u.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return u.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return u.month(t,{width:"wide",context:"formatting"})||u.month(t,{width:"abbreviated",context:"formatting"})||u.month(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=11}set(t,n,u){return t.setMonth(u,1),t.setHours(0,0,0,0),t}},z5e=class extends Or{constructor(){super(...arguments);d(this,"priority",110);d(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,n,u){let r=A=>A-1;switch(n){case"L":return zn(Dn(Yn.month,t),r);case"LL":return zn(In(2,t),r);case"Lo":return zn(u.ordinalNumber(t,{unit:"month"}),r);case"LLL":return u.month(t,{width:"abbreviated",context:"standalone"})||u.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return u.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return u.month(t,{width:"wide",context:"standalone"})||u.month(t,{width:"abbreviated",context:"standalone"})||u.month(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=11}set(t,n,u){return t.setMonth(u,1),t.setHours(0,0,0,0),t}};function N5e(e,t,n){let u=Un(e,n==null?void 0:n.in),r=EF(u,n)-t;return u.setDate(u.getDate()-r*7),Un(u,n==null?void 0:n.in)}var _5e=class extends Or{constructor(){super(...arguments);d(this,"priority",100);d(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,n,u){switch(n){case"w":return Dn(Yn.week,t);case"wo":return u.ordinalNumber(t,{unit:"week"});default:return In(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,u,r){return zA(N5e(t,u,r),r)}};function U5e(e,t,n){let u=Un(e,n==null?void 0:n.in),r=dF(u,n)-t;return u.setDate(u.getDate()-r*7),u}var P5e=class extends Or{constructor(){super(...arguments);d(this,"priority",100);d(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,n,u){switch(n){case"I":return Dn(Yn.week,t);case"Io":return u.ordinalNumber(t,{unit:"week"});default:return In(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,u){return ws(U5e(t,u))}},G5e=[31,28,31,30,31,30,31,31,30,31,30,31],O5e=[31,29,31,30,31,30,31,31,30,31,30,31],j5e=class extends Or{constructor(){super(...arguments);d(this,"priority",90);d(this,"subPriority",1);d(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,n,u){switch(n){case"d":return Dn(Yn.date,t);case"do":return u.ordinalNumber(t,{unit:"date"});default:return In(n.length,t)}}validate(t,n){let u=t.getFullYear(),r=DF(u),A=t.getMonth();return r?n>=1&&n<=O5e[A]:n>=1&&n<=G5e[A]}set(t,n,u){return t.setDate(u),t.setHours(0,0,0,0),t}},L5e=class extends Or{constructor(){super(...arguments);d(this,"priority",90);d(this,"subpriority",1);d(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,n,u){switch(n){case"D":case"DD":return Dn(Yn.dayOfYear,t);case"Do":return u.ordinalNumber(t,{unit:"date"});default:return In(n.length,t)}}validate(t,n){let u=t.getFullYear();return DF(u)?n>=1&&n<=366:n>=1&&n<=365}set(t,n,u){return t.setMonth(0,u),t.setHours(0,0,0,0),t}};function Ig(e,t,n){var s,c,E,B;let u=Ps(),r=(n==null?void 0:n.weekStartsOn)??((c=(s=n==null?void 0:n.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??u.weekStartsOn??((B=(E=u.locale)==null?void 0:E.options)==null?void 0:B.weekStartsOn)??0,A=Un(e,n==null?void 0:n.in),o=A.getDay(),l=(t%7+7)%7,i=7-r,h=t<0||t>6?t-(o+i)%7:(l+i)%7-(o+i)%7;return lF(A,h,n)}var W5e=class extends Or{constructor(){super(...arguments);d(this,"priority",90);d(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,n,u){switch(n){case"E":case"EE":case"EEE":return u.day(t,{width:"abbreviated",context:"formatting"})||u.day(t,{width:"short",context:"formatting"})||u.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return u.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return u.day(t,{width:"short",context:"formatting"})||u.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return u.day(t,{width:"wide",context:"formatting"})||u.day(t,{width:"abbreviated",context:"formatting"})||u.day(t,{width:"short",context:"formatting"})||u.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,u,r){return t=Ig(t,u,r),t.setHours(0,0,0,0),t}},H5e=class extends Or{constructor(){super(...arguments);d(this,"priority",90);d(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,n,u,r){let A=o=>{let l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(n){case"e":case"ee":return zn(In(n.length,t),A);case"eo":return zn(u.ordinalNumber(t,{unit:"day"}),A);case"eee":return u.day(t,{width:"abbreviated",context:"formatting"})||u.day(t,{width:"short",context:"formatting"})||u.day(t,{width:"narrow",context:"formatting"});case"eeeee":return u.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return u.day(t,{width:"short",context:"formatting"})||u.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return u.day(t,{width:"wide",context:"formatting"})||u.day(t,{width:"abbreviated",context:"formatting"})||u.day(t,{width:"short",context:"formatting"})||u.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,u,r){return t=Ig(t,u,r),t.setHours(0,0,0,0),t}},V5e=class extends Or{constructor(){super(...arguments);d(this,"priority",90);d(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,n,u,r){let A=o=>{let l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(n){case"c":case"cc":return zn(In(n.length,t),A);case"co":return zn(u.ordinalNumber(t,{unit:"day"}),A);case"ccc":return u.day(t,{width:"abbreviated",context:"standalone"})||u.day(t,{width:"short",context:"standalone"})||u.day(t,{width:"narrow",context:"standalone"});case"ccccc":return u.day(t,{width:"narrow",context:"standalone"});case"cccccc":return u.day(t,{width:"short",context:"standalone"})||u.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return u.day(t,{width:"wide",context:"standalone"})||u.day(t,{width:"abbreviated",context:"standalone"})||u.day(t,{width:"short",context:"standalone"})||u.day(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=6}set(t,n,u,r){return t=Ig(t,u,r),t.setHours(0,0,0,0),t}};function J5e(e,t,n){let u=Un(e,n==null?void 0:n.in),r=F5e(u,n),A=t-r;return lF(u,A,n)}var Z5e=class extends Or{constructor(){super(...arguments);d(this,"priority",90);d(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,n,u){let r=A=>A===0?7:A;switch(n){case"i":case"ii":return In(n.length,t);case"io":return u.ordinalNumber(t,{unit:"day"});case"iii":return zn(u.day(t,{width:"abbreviated",context:"formatting"})||u.day(t,{width:"short",context:"formatting"})||u.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return zn(u.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return zn(u.day(t,{width:"short",context:"formatting"})||u.day(t,{width:"narrow",context:"formatting"}),r);case"iiii":default:return zn(u.day(t,{width:"wide",context:"formatting"})||u.day(t,{width:"abbreviated",context:"formatting"})||u.day(t,{width:"short",context:"formatting"})||u.day(t,{width:"narrow",context:"formatting"}),r)}}validate(t,n){return n>=1&&n<=7}set(t,n,u){return t=J5e(t,u),t.setHours(0,0,0,0),t}},K5e=class extends Or{constructor(){super(...arguments);d(this,"priority",80);d(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,n,u){switch(n){case"a":case"aa":case"aaa":return u.dayPeriod(t,{width:"abbreviated",context:"formatting"})||u.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return u.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return u.dayPeriod(t,{width:"wide",context:"formatting"})||u.dayPeriod(t,{width:"abbreviated",context:"formatting"})||u.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,u){return t.setHours(bg(u),0,0,0),t}},X5e=class extends Or{constructor(){super(...arguments);d(this,"priority",80);d(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,n,u){switch(n){case"b":case"bb":case"bbb":return u.dayPeriod(t,{width:"abbreviated",context:"formatting"})||u.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return u.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return u.dayPeriod(t,{width:"wide",context:"formatting"})||u.dayPeriod(t,{width:"abbreviated",context:"formatting"})||u.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,u){return t.setHours(bg(u),0,0,0),t}},q5e=class extends Or{constructor(){super(...arguments);d(this,"priority",80);d(this,"incompatibleTokens",["a","b","t","T"])}parse(t,n,u){switch(n){case"B":case"BB":case"BBB":return u.dayPeriod(t,{width:"abbreviated",context:"formatting"})||u.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return u.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return u.dayPeriod(t,{width:"wide",context:"formatting"})||u.dayPeriod(t,{width:"abbreviated",context:"formatting"})||u.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,u){return t.setHours(bg(u),0,0,0),t}},$5e=class extends Or{constructor(){super(...arguments);d(this,"priority",70);d(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,n,u){switch(n){case"h":return Dn(Yn.hour12h,t);case"ho":return u.ordinalNumber(t,{unit:"hour"});default:return In(n.length,t)}}validate(t,n){return n>=1&&n<=12}set(t,n,u){let r=t.getHours()>=12;return r&&u<12?t.setHours(u+12,0,0,0):!r&&u===12?t.setHours(0,0,0,0):t.setHours(u,0,0,0),t}},eBe=class extends Or{constructor(){super(...arguments);d(this,"priority",70);d(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,n,u){switch(n){case"H":return Dn(Yn.hour23h,t);case"Ho":return u.ordinalNumber(t,{unit:"hour"});default:return In(n.length,t)}}validate(t,n){return n>=0&&n<=23}set(t,n,u){return t.setHours(u,0,0,0),t}},tBe=class extends Or{constructor(){super(...arguments);d(this,"priority",70);d(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,n,u){switch(n){case"K":return Dn(Yn.hour11h,t);case"Ko":return u.ordinalNumber(t,{unit:"hour"});default:return In(n.length,t)}}validate(t,n){return n>=0&&n<=11}set(t,n,u){return t.getHours()>=12&&u<12?t.setHours(u+12,0,0,0):t.setHours(u,0,0,0),t}},uBe=class extends Or{constructor(){super(...arguments);d(this,"priority",70);d(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,n,u){switch(n){case"k":return Dn(Yn.hour24h,t);case"ko":return u.ordinalNumber(t,{unit:"hour"});default:return In(n.length,t)}}validate(t,n){return n>=1&&n<=24}set(t,n,u){let r=u<=24?u%24:u;return t.setHours(r,0,0,0),t}},rBe=class extends Or{constructor(){super(...arguments);d(this,"priority",60);d(this,"incompatibleTokens",["t","T"])}parse(t,n,u){switch(n){case"m":return Dn(Yn.minute,t);case"mo":return u.ordinalNumber(t,{unit:"minute"});default:return In(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,u){return t.setMinutes(u,0,0),t}},nBe=class extends Or{constructor(){super(...arguments);d(this,"priority",50);d(this,"incompatibleTokens",["t","T"])}parse(t,n,u){switch(n){case"s":return Dn(Yn.second,t);case"so":return u.ordinalNumber(t,{unit:"second"});default:return In(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,u){return t.setSeconds(u,0),t}},iBe=class extends Or{constructor(){super(...arguments);d(this,"priority",30);d(this,"incompatibleTokens",["t","T"])}parse(t,n){let u=r=>Math.trunc(r*Math.pow(10,-n.length+3));return zn(In(n.length,t),u)}set(t,n,u){return t.setMilliseconds(u),t}},aBe=class extends Or{constructor(){super(...arguments);d(this,"priority",10);d(this,"incompatibleTokens",["t","T","x"])}parse(t,n){switch(n){case"X":return Ya(Ta.basicOptionalMinutes,t);case"XX":return Ya(Ta.basic,t);case"XXXX":return Ya(Ta.basicOptionalSeconds,t);case"XXXXX":return Ya(Ta.extendedOptionalSeconds,t);case"XXX":default:return Ya(Ta.extended,t)}}set(t,n,u){return n.timestampIsSet?t:ui(t,t.getTime()-zh(t)-u)}},ABe=class extends Or{constructor(){super(...arguments);d(this,"priority",10);d(this,"incompatibleTokens",["t","T","X"])}parse(t,n){switch(n){case"x":return Ya(Ta.basicOptionalMinutes,t);case"xx":return Ya(Ta.basic,t);case"xxxx":return Ya(Ta.basicOptionalSeconds,t);case"xxxxx":return Ya(Ta.extendedOptionalSeconds,t);case"xxx":default:return Ya(Ta.extended,t)}}set(t,n,u){return n.timestampIsSet?t:ui(t,t.getTime()-zh(t)-u)}},oBe=class extends Or{constructor(){super(...arguments);d(this,"priority",40);d(this,"incompatibleTokens","*")}parse(t){return CF(t)}set(t,n,u){return[ui(t,u*1e3),{timestampIsSet:!0}]}},sBe=class extends Or{constructor(){super(...arguments);d(this,"priority",20);d(this,"incompatibleTokens","*")}parse(t){return CF(t)}set(t,n,u){return[ui(t,u),{timestampIsSet:!0}]}},lBe={G:new b5e,y:new I5e,Y:new Q5e,R:new R5e,u:new S5e,Q:new k5e,q:new T5e,M:new Y5e,L:new z5e,w:new _5e,I:new P5e,d:new j5e,D:new L5e,E:new W5e,e:new H5e,c:new V5e,i:new Z5e,a:new K5e,b:new X5e,B:new q5e,h:new $5e,H:new eBe,K:new tBe,k:new uBe,m:new rBe,s:new nBe,S:new iBe,X:new aBe,x:new ABe,t:new oBe,T:new sBe},cBe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hBe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,dBe=/^'([^]*?)'?$/,EBe=/''/g,BBe=/\S/,gBe=/[a-zA-Z]/;function fBe(e,t,n,u){var m,p,C,F;let r=()=>ui(n,NaN),A=pF(),o=A.locale??hF,l=A.firstWeekContainsDate??((p=(m=A.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,i=A.weekStartsOn??((F=(C=A.locale)==null?void 0:C.options)==null?void 0:F.weekStartsOn)??0,h={firstWeekContainsDate:l,weekStartsOn:i,locale:o},s=[new x5e(u==null?void 0:u.in,n)],c=t.match(hBe).map(w=>{let a=w[0];if(a in C5){let D=C5[a];return D(w,o.formatLong)}return w}).join("").match(cBe),E=[];for(let w of c){fF(w)&&F5(w,t,e),gF(w)&&F5(w,t,e);let a=w[0],D=lBe[a];if(D){let{incompatibleTokens:x}=D;if(Array.isArray(x)){let S=E.find(R=>x.includes(R.token)||R.token===a);if(S)throw new RangeError(`The format string mustn't contain \`${S.fullToken}\` and \`${w}\` at the same time`)}else if(D.incompatibleTokens==="*"&&E.length>0)throw new RangeError(`The format string mustn't contain \`${w}\` and any other token at the same time`);E.push({token:a,fullToken:w});let N=D.run(e,w,o.match,h);if(!N)return r();s.push(N.setter),e=N.rest}else{if(a.match(gBe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if(w==="''"?w="'":a==="'"&&(w=pBe(w)),e.indexOf(w)===0)e=e.slice(w.length);else return r()}}if(e.length>0&&BBe.test(e))return r();let B=s.map(w=>w.priority).sort((w,a)=>a-w).filter((w,a,D)=>D.indexOf(w)===a).map(w=>s.filter(a=>a.priority===w).sort((a,D)=>D.subPriority-a.subPriority)).map(w=>w[0]),g=Un(n,u==null?void 0:u.in);if(isNaN(+g))return r();let f={};for(let w of B){if(!w.validate(g,h))return r();let a=w.set(g,f,h);Array.isArray(a)?(g=a[0],Object.assign(f,a[1])):g=a}return g}function pBe(e){return e.match(dBe)[1].replace(EBe,"'")}var gt=function(e){return e.SEPARATOR="separator",e.PERCENT="percent",e.IP="IP",e.CPF_CNPJ="CPF_CNPJ",e.MONTH="M",e.MONTHS="M0",e.MINUTE="m",e.HOUR="h",e.HOURS="H",e.MINUTES="m0",e.HOURS_HOUR="Hh",e.SECONDS="s0",e.HOURS_MINUTES_SECONDS="Hh:m0:s0",e.EMAIL_MASK="A*@A*.A*",e.HOURS_MINUTES="Hh:m0",e.MINUTES_SECONDS="m0:s0",e.DAYS_MONTHS_YEARS="d0/M0/0000",e.DAYS_MONTHS="d0/M0",e.DAYS="d0",e.DAY="d",e.SECOND="s",e.LETTER_S="S",e.DOT=".",e.COMMA=",",e.CURLY_BRACKETS_LEFT="{",e.CURLY_BRACKETS_RIGHT="}",e.MINUS="-",e.OR="||",e.HASH="#",e.EMPTY_STRING="",e.SYMBOL_STAR="*",e.SYMBOL_QUESTION="?",e.SLASH="/",e.WHITE_SPACE=" ",e.NUMBER_ZERO="0",e.NUMBER_NINE="9",e.BACKSPACE="Backspace",e.DELETE="Delete",e.ARROW_LEFT="ArrowLeft",e.ARROW_UP="ArrowUp",e.DOUBLE_ZERO="00",e}(gt||{}),Qg=new Jt("ngx-mask config"),wF=new Jt("new ngx-mask config"),yF=new Jt("initial ngx-mask config"),mBe={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:null,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,apm:!1,leadZero:!1,keepCharacterPositions:!1,triggerOnMaskChange:!1,inputTransformFn:e=>e,outputTransformFn:e=>e,maskFilled:new Nu,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}};gt.HOURS_MINUTES_SECONDS,gt.HOURS_MINUTES,gt.MINUTES_SECONDS;gt.PERCENT,gt.HOURS_HOUR,gt.SECONDS,gt.MINUTES,gt.SEPARATOR,gt.DAYS_MONTHS_YEARS,gt.DAYS_MONTHS,gt.DAYS,gt.MONTHS;var CBe=(()=>{const t=class t{constructor(){d(this,"_config",Ie(Qg));d(this,"dropSpecialCharacters",this._config.dropSpecialCharacters);d(this,"hiddenInput",this._config.hiddenInput);d(this,"showTemplate");d(this,"clearIfNotMatch",this._config.clearIfNotMatch);d(this,"specialCharacters",this._config.specialCharacters);d(this,"patterns",this._config.patterns);d(this,"prefix",this._config.prefix);d(this,"suffix",this._config.suffix);d(this,"thousandSeparator",this._config.thousandSeparator);d(this,"decimalMarker",this._config.decimalMarker);d(this,"customPattern");d(this,"showMaskTyped",this._config.showMaskTyped);d(this,"placeHolderCharacter",this._config.placeHolderCharacter);d(this,"validation",this._config.validation);d(this,"separatorLimit",this._config.separatorLimit);d(this,"allowNegativeNumbers",this._config.allowNegativeNumbers);d(this,"leadZeroDateTime",this._config.leadZeroDateTime);d(this,"leadZero",this._config.leadZero);d(this,"apm",this._config.apm);d(this,"inputTransformFn",this._config.inputTransformFn);d(this,"outputTransformFn",this._config.outputTransformFn);d(this,"keepCharacterPositions",this._config.keepCharacterPositions);d(this,"_shift",new Set);d(this,"plusOnePosition",!1);d(this,"maskExpression","");d(this,"actualValue","");d(this,"showKeepCharacterExp","");d(this,"shownMaskExpression","");d(this,"deletedSpecialCharacter",!1);d(this,"ipError");d(this,"cpfCnpjError");d(this,"_formatWithSeparators",(u,r,A,o)=>{var B;let l=[],i="";if(Array.isArray(A)){let g=new RegExp(A.map(f=>"[\\^$.|?*+()".indexOf(f)>=0?`\\${f}`:f).join("|"));l=u.split(g),i=((B=u.match(g))==null?void 0:B[0])??gt.EMPTY_STRING}else l=u.split(A),i=A;let h=l.length>1?`${i}${l[1]}`:gt.EMPTY_STRING,s=l[0]??gt.EMPTY_STRING,c=this.separatorLimit.replace(/\s/g,gt.EMPTY_STRING);c&&+c&&(s[0]===gt.MINUS?s=`-${s.slice(1,s.length).slice(0,c.length)}`:s=s.slice(0,c.length));let E=/(\d+)(\d{3})/;for(;r&&E.test(s);)s=s.replace(E,"$1"+r+"$2");return typeof o>"u"?s+h:o===0?s:s+h.substring(0,o+1)});d(this,"percentage",u=>{let r=u.replace(",","."),A=Number(this.allowNegativeNumbers&&u.includes(gt.MINUS)?r.slice(1,u.length):r);return!isNaN(A)&&A>=0&&A<=100});d(this,"getPrecision",u=>{let r=u.split(gt.DOT);return r.length>1?Number(r[r.length-1]):1/0});d(this,"checkAndRemoveSuffix",u=>{var r,A,o,l;for(let i=((r=this.suffix)==null?void 0:r.length)-1;i>=0;i--){let h=this.suffix.substring(i,(A=this.suffix)==null?void 0:A.length);if(u.includes(h)&&i!==((o=this.suffix)==null?void 0:o.length)-1&&(i-1<0||!u.includes(this.suffix.substring(i-1,(l=this.suffix)==null?void 0:l.length))))return u.replace(h,gt.EMPTY_STRING)}return u});d(this,"checkInputPrecision",(u,r,A)=>{var i;let o=u,l=A;if(r<1/0){Array.isArray(l)&&(l=l.find(B=>B!==this.thousandSeparator)||l[0]);let h=new RegExp(this._charToRegExpExpression(l)+`\\d{${r}}.*$`),s=o.match(h),c=(s&&((i=s[0])==null?void 0:i.length))??0;if(c-1>r){let E=c-1-r;o=o.substring(0,o.length-E)}r===0&&this._compareOrIncludes(o[o.length-1],l,this.thousandSeparator)&&(o=o.substring(0,o.length-1))}return o})}applyMaskWithPattern(u,r){let[A,o]=r;return this.customPattern=o,this.applyMask(u,A)}applyMask(u,r,A=0,o=!1,l=!1,i=()=>{}){var N,S,R;if(!r||typeof u!="string")return gt.EMPTY_STRING;let h=0,s="",c=!1,E=!1,B=1,g=!1,f=u,m=A;f.slice(0,this.prefix.length)===this.prefix&&(f=f.slice(this.prefix.length,f.length)),this.suffix&&f.length>0&&(f=this.checkAndRemoveSuffix(f)),f==="("&&this.prefix&&(f="");let p=f.toString().split(gt.EMPTY_STRING);if(this.allowNegativeNumbers&&f.slice(h,h+1)===gt.MINUS&&(s+=f.slice(h,h+1)),r===gt.IP){let y=f.split(gt.DOT);this.ipError=this._validIP(y),r="099.099.099.099"}let C=[];for(let y=0;y<f.length;y++)(N=f[y])!=null&&N.match("\\d")&&C.push(f[y]??gt.EMPTY_STRING);if(r===gt.CPF_CNPJ&&(this.cpfCnpjError=C.length!==11&&C.length!==14,C.length>11?r="00.000.000/0000-00":r="000.000.000-00"),r.startsWith(gt.PERCENT)){if(f.match("[a-z]|[A-Z]")||f.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!l){f=this._stripToDecimal(f);let M=this.getPrecision(r);f=this.checkInputPrecision(f,M,this.decimalMarker)}let y=typeof this.decimalMarker=="string"?this.decimalMarker:gt.DOT;if(f.indexOf(y)>0&&!this.percentage(f.substring(0,f.indexOf(y)))){let M=f.substring(0,f.indexOf(y)-1);this.allowNegativeNumbers&&f.slice(h,h+1)===gt.MINUS&&!l&&(M=f.substring(0,f.indexOf(y))),f=`${M}${f.substring(f.indexOf(y),f.length)}`}let I="";this.allowNegativeNumbers&&f.slice(h,h+1)===gt.MINUS?I=`${gt.MINUS}${f.slice(h+1,h+f.length)}`:I=f,this.percentage(I)?s=this._splitPercentZero(f):s=this._splitPercentZero(f.substring(0,f.length-1))}else if(r.startsWith(gt.SEPARATOR)){(f.match("[wа-яА-Я]")||f.match("[ЁёА-я]")||f.match("[a-z]|[A-Z]")||f.match(/[-@#!$%\\^&*()_£¬'+|~=`{}\]:";<>.?/]/)||f.match("[^A-Za-z0-9,]"))&&(f=this._stripToDecimal(f));let y=this.getPrecision(r),I=Array.isArray(this.decimalMarker)?this.thousandSeparator===gt.DOT?gt.COMMA:gt.DOT:this.decimalMarker;if(y===0?f=this.allowNegativeNumbers?f.length>2&&f[0]===gt.MINUS&&f[1]===gt.NUMBER_ZERO&&f[2]!==this.thousandSeparator&&f[2]!==gt.COMMA&&f[2]!==gt.DOT?"-"+f.slice(2,f.length):f[0]===gt.NUMBER_ZERO&&f.length>1&&f[1]!==this.thousandSeparator&&f[1]!==gt.COMMA&&f[1]!==gt.DOT?f.slice(1,f.length):f:f.length>1&&f[0]===gt.NUMBER_ZERO&&f[1]!==this.thousandSeparator&&f[1]!==gt.COMMA&&f[1]!==gt.DOT?f.slice(1,f.length):f:(f[0]===I&&f.length>1&&(f=gt.NUMBER_ZERO+f.slice(0,f.length+1),this.plusOnePosition=!0),f[0]===gt.NUMBER_ZERO&&f[1]!==I&&f[1]!==this.thousandSeparator&&(f=f.length>1?f.slice(0,1)+I+f.slice(1,f.length+1):f,this.plusOnePosition=!0),this.allowNegativeNumbers&&f[0]===gt.MINUS&&(f[1]===I||f[1]===gt.NUMBER_ZERO)&&(f=f[1]===I&&f.length>2?f.slice(0,1)+gt.NUMBER_ZERO+f.slice(1,f.length):f[1]===gt.NUMBER_ZERO&&f.length>2&&f[2]!==I?f.slice(0,2)+I+f.slice(2,f.length):f,this.plusOnePosition=!0)),l){let Ee=f.slice(this._findFirstNonZeroDigitIndex(f),f.length),Ae=f[m]===gt.NUMBER_ZERO||f[m]===I,ge=f[0]===gt.NUMBER_ZERO,xe=f[0]===gt.MINUS,Ye=f[0]===this.thousandSeparator,Oe=f[1]===I,Fe=f[1]===gt.NUMBER_ZERO,Te=f[2]===I;ge&&Oe&&Ae&&m<2&&(f=Ee),xe&&Fe&&Te&&Ae&&m<3&&(f=gt.MINUS+Ee),Ee!==gt.MINUS&&(m===0&&(ge||Ye)||this.allowNegativeNumbers&&m===1&&xe&&!Fe)&&(f=xe?gt.MINUS+Ee:Ee)}let M=this._charToRegExpExpression(this.thousandSeparator),b='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(M,"");if(Array.isArray(this.decimalMarker))for(let Ee of this.decimalMarker)b=b.replace(this._charToRegExpExpression(Ee),gt.EMPTY_STRING);else b=b.replace(this._charToRegExpExpression(this.decimalMarker),"");let Q=new RegExp("["+b+"]");f.match(Q)&&(f=f.substring(0,f.length-1)),f=this.checkInputPrecision(f,y,this.decimalMarker);let Y=f.replace(new RegExp(M,"g"),"");s=this._formatWithSeparators(Y,this.thousandSeparator,this.decimalMarker,y);let U=s.indexOf(gt.COMMA)-f.indexOf(gt.COMMA),O=s.length-f.length,re=l&&s.length<u.length&&this.separatorLimit;if((s[m-1]===this.thousandSeparator||s[m-this.prefix.length])&&this.prefix&&l)m=m-1;else if(O>0&&s[m]!==this.thousandSeparator||re){E=!0;let Ee=0;do this._shift.add(m+Ee),Ee++;while(Ee<O)}else s[m-1]===this.thousandSeparator||O===-4||O===-3||s[m]===this.thousandSeparator?(this._shift.clear(),this._shift.add(m-1)):U!==0&&m>0&&!(s.indexOf(gt.COMMA)>=m&&m>3)||!(s.indexOf(gt.DOT)>=m&&m>3)&&O<=0?(this._shift.clear(),E=!0,B=O,m+=O,this._shift.add(m)):this._shift.clear()}else for(let y=0,I=p[0];y<p.length&&h!==r.length;y++,I=p[y]??gt.EMPTY_STRING){let M=gt.SYMBOL_STAR in this.patterns;if(this._checkSymbolMask(I,r[h]??gt.EMPTY_STRING)&&r[h+1]===gt.SYMBOL_QUESTION)s+=I,h+=2;else if(r[h+1]===gt.SYMBOL_STAR&&c&&this._checkSymbolMask(I,r[h+2]??gt.EMPTY_STRING))s+=I,h+=3,c=!1;else if(this._checkSymbolMask(I,r[h]??gt.EMPTY_STRING)&&r[h+1]===gt.SYMBOL_STAR&&!M)s+=I,c=!0;else if(r[h+1]===gt.SYMBOL_QUESTION&&this._checkSymbolMask(I,r[h+2]??gt.EMPTY_STRING))s+=I,h+=3;else if(this._checkSymbolMask(I,r[h]??gt.EMPTY_STRING)){if(r[h]===gt.HOURS&&(this.apm?Number(I)>9:Number(I)>2)){m=this.leadZeroDateTime?m:m+1,h+=1,this._shiftStep(r,h,p.length),y--,this.leadZeroDateTime&&(s+="0");continue}if(r[h]===gt.HOUR&&(this.apm?s.length===1&&Number(s)>1||s==="1"&&Number(I)>2||f.slice(h-1,h).length===1&&Number(f.slice(h-1,h))>2||f.slice(h-1,h)==="1"&&Number(I)>2:s==="2"&&Number(I)>3||(s.slice(h-2,h)==="2"||s.slice(h-3,h)==="2"||s.slice(h-4,h)==="2"||s.slice(h-1,h)==="2")&&Number(I)>3&&h>10)){m=m+1,h+=1,y--;continue}if((r[h]===gt.MINUTE||r[h]===gt.SECOND)&&Number(I)>5){m=this.leadZeroDateTime?m:m+1,h+=1,this._shiftStep(r,h,p.length),y--,this.leadZeroDateTime&&(s+="0");continue}let b=31,Q=f[h],Y=f[h+1],U=f[h+2],O=f[h-1],re=f[h-2],Ee=f.slice(h-3,h-1),Ae=f.slice(h-1,h+1),ge=f.slice(h,h+2),xe=f.slice(h-2,h);if(r[h]===gt.DAY){let Ye=r.slice(0,2)===gt.MONTHS,Oe=r.slice(0,2)===gt.MONTHS&&this.specialCharacters.includes(re);if(Number(I)>3&&this.leadZeroDateTime||!Ye&&(Number(ge)>b||Number(Ae)>b||this.specialCharacters.includes(Y))||(Oe?Number(Ae)>b||!this.specialCharacters.includes(Q)&&this.specialCharacters.includes(U)||this.specialCharacters.includes(Q):Number(ge)>b||this.specialCharacters.includes(Y)&&!l)){m=this.leadZeroDateTime?m:m+1,h+=1,this._shiftStep(r,h,p.length),y--,this.leadZeroDateTime&&(s+="0");continue}}if(r[h]===gt.MONTH){let Ye=h===0&&(Number(I)>2||Number(ge)>12||this.specialCharacters.includes(Y)&&!l),Oe=r.slice(h+2,h+3),Fe=Ee.includes(Oe)&&r.includes("d0")&&(this.specialCharacters.includes(re)&&Number(Ae)>12&&!this.specialCharacters.includes(Q)||this.specialCharacters.includes(Q)),Te=Number(Ee)<=b&&!this.specialCharacters.includes(Ee)&&this.specialCharacters.includes(O)&&(Number(ge)>12||this.specialCharacters.includes(Y)),Re=Number(ge)>12&&h===5||this.specialCharacters.includes(Y)&&h===5,X=Number(Ee)>b&&!this.specialCharacters.includes(Ee)&&!this.specialCharacters.includes(xe)&&Number(xe)>12&&r.includes("d0"),fe=Number(Ee)<=b&&!this.specialCharacters.includes(Ee)&&!this.specialCharacters.includes(O)&&Number(Ae)>12;if(Number(I)>1&&this.leadZeroDateTime||Ye||Fe||fe||X||Te||Re&&!this.leadZeroDateTime){m=this.leadZeroDateTime?m:m+1,h+=1,this._shiftStep(r,h,p.length),y--,this.leadZeroDateTime&&(s+="0");continue}}s+=I,h++}else this.specialCharacters.includes(I)&&r[h]===I?(s+=I,h++):this.specialCharacters.indexOf(r[h]??gt.EMPTY_STRING)!==-1?(s+=r[h],h++,this._shiftStep(r,h,p.length),y--):r[h]===gt.NUMBER_NINE&&this.showMaskTyped?this._shiftStep(r,h,p.length):this.patterns[r[h]??gt.EMPTY_STRING]&&((S=this.patterns[r[h]??gt.EMPTY_STRING])!=null&&S.optional)?(p[h]&&r!=="099.099.099.099"&&r!=="000.000.000-00"&&r!=="00.000.000/0000-00"&&!r.match(/^9+\.0+$/)&&!((R=this.patterns[r[h]??gt.EMPTY_STRING])!=null&&R.optional)&&(s+=p[h]),r.includes(gt.NUMBER_NINE+gt.SYMBOL_STAR)&&r.includes(gt.NUMBER_ZERO+gt.SYMBOL_STAR)&&h++,h++,y--):this.maskExpression[h+1]===gt.SYMBOL_STAR&&this._findSpecialChar(this.maskExpression[h+2]??gt.EMPTY_STRING)&&this._findSpecialChar(I)===this.maskExpression[h+2]&&c||this.maskExpression[h+1]===gt.SYMBOL_QUESTION&&this._findSpecialChar(this.maskExpression[h+2]??gt.EMPTY_STRING)&&this._findSpecialChar(I)===this.maskExpression[h+2]&&c?(h+=3,s+=I):this.showMaskTyped&&this.specialCharacters.indexOf(I)<0&&I!==this.placeHolderCharacter&&this.placeHolderCharacter.length===1&&(g=!0)}s.length+1===r.length&&this.specialCharacters.indexOf(r[r.length-1]??gt.EMPTY_STRING)!==-1&&(s+=r[r.length-1]);let F=m+1;for(;this._shift.has(F);)B++,F++;let w=o&&!r.startsWith(gt.SEPARATOR)?h:this._shift.has(m)?B:0;g&&w--,i(w,E),B<0&&this._shift.clear();let a=!1;l&&(a=p.every(y=>this.specialCharacters.includes(y)));let D=`${this.prefix}${a?gt.EMPTY_STRING:s}${this.showMaskTyped?"":this.suffix}`;s.length===0&&(D=this.dropSpecialCharacters?`${s}`:`${this.prefix}${s}`);let x=f.length===1&&this.specialCharacters.includes(r[0])&&f!==r[0];if(!this._checkSymbolMask(f,r[1])&&x)return"";if(s.includes(gt.MINUS)&&this.prefix&&this.allowNegativeNumbers){if(l&&s===gt.MINUS)return"";D=`${gt.MINUS}${this.prefix}${s.split(gt.MINUS).join(gt.EMPTY_STRING)}${this.suffix}`}return D}_findDropSpecialChar(u){return Array.isArray(this.dropSpecialCharacters)?this.dropSpecialCharacters.find(r=>r===u):this._findSpecialChar(u)}_findSpecialChar(u){return this.specialCharacters.find(r=>r===u)}_checkSymbolMask(u,r){var A,o;return this.patterns=this.customPattern?this.customPattern:this.patterns,(((A=this.patterns[r])==null?void 0:A.pattern)&&((o=this.patterns[r])==null?void 0:o.pattern.test(u)))??!1}_stripToDecimal(u){return u.split(gt.EMPTY_STRING).filter((r,A)=>{let o=typeof this.decimalMarker=="string"?r===this.decimalMarker:this.decimalMarker.includes(r);return r.match("^-?\\d")||r===this.thousandSeparator||o||r===gt.MINUS&&A===0&&this.allowNegativeNumbers}).join(gt.EMPTY_STRING)}_charToRegExpExpression(u){return u&&(u===" "?"\\s":"[\\^$.|?*+()".indexOf(u)>=0?`\\${u}`:u)}_shiftStep(u,r,A){let o=/[*?]/g.test(u.slice(0,r))?A:r;this._shift.add(o+this.prefix.length||0)}_compareOrIncludes(u,r,A){return Array.isArray(r)?r.filter(o=>o!==A).includes(u):u===r}_validIP(u){return!(u.length===4&&!u.some((r,A)=>u.length!==A+1?r===gt.EMPTY_STRING||Number(r)>255:r===gt.EMPTY_STRING||Number(r.substring(0,3))>255))}_splitPercentZero(u){if(u===gt.MINUS&&this.allowNegativeNumbers)return u;let r=typeof this.decimalMarker=="string"?u.indexOf(this.decimalMarker):u.indexOf(gt.DOT),A=this.allowNegativeNumbers&&u.includes(gt.MINUS)?"-":"";if(r===-1){let o=parseInt(A?u.slice(1,u.length):u,10);return isNaN(o)?gt.EMPTY_STRING:`${A}${o}`}else{let o=parseInt(u.replace("-","").substring(0,r),10),l=u.substring(r+1),i=isNaN(o)?"":o.toString(),h=typeof this.decimalMarker=="string"?this.decimalMarker:gt.DOT;return i===gt.EMPTY_STRING?gt.EMPTY_STRING:`${A}${i}${h}${l}`}}_findFirstNonZeroDigitIndex(u){for(let r=0;r<u.length;r++){let A=u[r];if(A&&A>="1"&&A<="9")return r}return-1}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵprov",Wt({token:t,factory:t.ɵfac}));let e=t;return e})(),FBe=(()=>{const t=class t extends CBe{constructor(){super(...arguments);d(this,"isNumberValue",!1);d(this,"maskIsShown","");d(this,"selStart",null);d(this,"selEnd",null);d(this,"writingValue",!1);d(this,"maskChanged",!1);d(this,"_maskExpressionArray",[]);d(this,"triggerOnMaskChange",!1);d(this,"_previousValue","");d(this,"_currentValue","");d(this,"_emitValue",!1);d(this,"_start");d(this,"_end");d(this,"onChange",r=>{});d(this,"_elementRef",Ie(dr,{optional:!0}));d(this,"document",Ie(Sr));d(this,"_config",Ie(Qg));d(this,"_renderer",Ie(_A,{optional:!0}))}applyMask(r,A,o=0,l=!1,i=!1,h=()=>{}){if(!A)return r!==this.actualValue?this.actualValue:r;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():gt.EMPTY_STRING,this.maskExpression===gt.IP&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(r||gt.HASH)),this.maskExpression===gt.CPF_CNPJ&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(r||gt.HASH)),!r&&this.showMaskTyped)return this.formControlResult(this.prefix),`${this.prefix}${this.maskIsShown}${this.suffix}`;let s=r&&typeof this.selStart=="number"?r[this.selStart]??gt.EMPTY_STRING:gt.EMPTY_STRING,c="",E=o;if(this.hiddenInput!==null&&!this.writingValue){let m=r&&r.length===1?r.split(gt.EMPTY_STRING):this.actualValue.split(gt.EMPTY_STRING);typeof this.selStart=="object"&&typeof this.selEnd=="object"?(this.selStart=Number(this.selStart),this.selEnd=Number(this.selEnd)):r!==gt.EMPTY_STRING&&m.length?typeof this.selStart=="number"&&typeof this.selEnd=="number"&&(r.length>m.length?m.splice(this.selStart,0,s):r.length<m.length&&(m.length-r.length===1?i?m.splice(this.selStart-1,1):m.splice(r.length-1,1):m.splice(this.selStart,this.selEnd-this.selStart))):m=[],this.showMaskTyped&&!this.hiddenInput&&(c=this.removeMask(r)),c=this.actualValue.length&&m.length<=r.length?this.shiftTypedSymbols(m.join(gt.EMPTY_STRING)):r}if(l&&(this.hiddenInput||!this.hiddenInput)&&(c=r),i&&this.specialCharacters.indexOf(this.maskExpression[E]??gt.EMPTY_STRING)!==-1&&this.showMaskTyped&&!this.prefix&&(c=this._currentValue),this.deletedSpecialCharacter&&E&&(this.specialCharacters.includes(this.actualValue.slice(E,E+1))?E=E+1:A.slice(E-1,E+1)!==gt.MONTHS&&(E=E-2),this.deletedSpecialCharacter=!1),this.showMaskTyped&&this.placeHolderCharacter.length===1&&!this.leadZeroDateTime&&(c=this.removeMask(r)),this.maskChanged?c=r:c=c&&c.length?c:r,this.showMaskTyped&&this.keepCharacterPositions&&this.actualValue&&!l&&!this.writingValue){let m=this.dropSpecialCharacters?this.removeMask(this.actualValue):this.actualValue;return this.formControlResult(m),this.actualValue?this.actualValue:`${this.prefix}${this.maskIsShown}${this.suffix}`}let B=super.applyMask(c,A,E,l,i,h);if(this.actualValue=this.getActualValue(B),this.thousandSeparator===gt.DOT&&this.decimalMarker===gt.DOT&&(this.decimalMarker=gt.COMMA),this.maskExpression.startsWith(gt.SEPARATOR)&&this.dropSpecialCharacters===!0&&(this.specialCharacters=this.specialCharacters.filter(m=>!this._compareOrIncludes(m,this.decimalMarker,this.thousandSeparator))),(B||B==="")&&(this._previousValue=this._currentValue,this._currentValue=B,this._emitValue=this._previousValue!==this._currentValue||this.maskChanged||this.writingValue||this._previousValue===this._currentValue&&l),this._emitValue&&(this.writingValue&&this.triggerOnMaskChange?requestAnimationFrame(()=>this.formControlResult(B)):this.formControlResult(B)),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?i?this.hideInput(B,this.maskExpression):`${this.hideInput(B,this.maskExpression)}${this.maskIsShown.slice(B.length)}`:B;let g=B.length,f=`${this.prefix}${this.maskIsShown}${this.suffix}`;if(this.maskExpression.includes(gt.HOURS)){let m=this._numberSkipedSymbols(B);return`${B}${f.slice(g+m)}`}else if(this.maskExpression===gt.IP||this.maskExpression===gt.CPF_CNPJ)return`${B}${f}`;return`${B}${f.slice(g)}`}_numberSkipedSymbols(r){let A=/(^|\D)(\d\D)/g,o=A.exec(r),l=0;for(;o!=null;)l+=1,o=A.exec(r);return l}applyValueChanges(r,A,o,l=()=>{}){var h;let i=(h=this._elementRef)==null?void 0:h.nativeElement;i&&(i.value=this.applyMask(i.value,this.maskExpression,r,A,o,l),i!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(r,A){return r.split(gt.EMPTY_STRING).map((o,l)=>{var i,h;return this.patterns&&this.patterns[A[l]??gt.EMPTY_STRING]&&((i=this.patterns[A[l]??gt.EMPTY_STRING])!=null&&i.symbol)?(h=this.patterns[A[l]??gt.EMPTY_STRING])==null?void 0:h.symbol:o}).join(gt.EMPTY_STRING)}getActualValue(r){let A=r.split(gt.EMPTY_STRING).filter((o,l)=>{let i=this.maskExpression[l]??gt.EMPTY_STRING;return this._checkSymbolMask(o,i)||this.specialCharacters.includes(i)&&o===i});return A.join(gt.EMPTY_STRING)===r?A.join(gt.EMPTY_STRING):r}shiftTypedSymbols(r){let A="";return(r&&r.split(gt.EMPTY_STRING).map((o,l)=>{if(this.specialCharacters.includes(r[l+1]??gt.EMPTY_STRING)&&r[l+1]!==this.maskExpression[l+1])return A=o,r[l+1];if(A.length){let i=A;return A=gt.EMPTY_STRING,i}return o})||[]).join(gt.EMPTY_STRING)}numberToString(r){return!r&&r!==0||this.maskExpression.startsWith(gt.SEPARATOR)&&(this.leadZero||!this.dropSpecialCharacters)||this.maskExpression.startsWith(gt.SEPARATOR)&&this.separatorLimit.length>14&&String(r).length>14?String(r):Number(r).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}).replace(`/${gt.MINUS}/`,gt.MINUS)}showMaskInInput(r){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}else if(this.showMaskTyped){if(r){if(this.maskExpression===gt.IP)return this._checkForIp(r);if(this.maskExpression===gt.CPF_CNPJ)return this._checkForCpfCnpj(r)}return this.placeHolderCharacter.length===this.maskExpression.length?this.placeHolderCharacter:this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){var A;let r=(A=this._elementRef)==null?void 0:A.nativeElement;r&&this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==r.value.replace(this.placeHolderCharacter,gt.EMPTY_STRING).length&&(this.formElementProperty=["value",gt.EMPTY_STRING],this.applyMask("",this.maskExpression))}set formElementProperty([r,A]){!this._renderer||!this._elementRef||Promise.resolve().then(()=>{var o,l;return(l=this._renderer)==null?void 0:l.setProperty((o=this._elementRef)==null?void 0:o.nativeElement,r,A)})}checkDropSpecialCharAmount(r){return r.split(gt.EMPTY_STRING).filter(A=>this._findDropSpecialChar(A)).length}removeMask(r){return this._removeMask(this._removeSuffix(this._removePrefix(r)),this.specialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(r){if(r===gt.HASH)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;let A=[];for(let o=0;o<r.length;o++){let l=r[o]??gt.EMPTY_STRING;l&&l.match("\\d")&&A.push(l)}return A.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:A.length>3&&A.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:A.length>6&&A.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(r){let A=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,o=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if(r===gt.HASH)return A;let l=[];for(let i=0;i<r.length;i++){let h=r[i]??gt.EMPTY_STRING;h&&h.match("\\d")&&l.push(h)}return l.length<=3?A.slice(l.length,A.length):l.length>3&&l.length<=6?A.slice(l.length+1,A.length):l.length>6&&l.length<=9?A.slice(l.length+2,A.length):l.length>9&&l.length<11?A.slice(l.length+3,A.length):l.length===11?"":l.length===12?r.length===17?o.slice(16,o.length):o.slice(15,o.length):l.length>12&&l.length<=14?o.slice(l.length+4,o.length):""}_getActiveElement(r=this.document){var o;let A=(o=r==null?void 0:r.activeElement)==null?void 0:o.shadowRoot;return A!=null&&A.activeElement?this._getActiveElement(A):r.activeElement}formControlResult(r){if(this.writingValue&&!r){this.onChange("");return}if(this.writingValue||!this.triggerOnMaskChange&&this.maskChanged){this.triggerOnMaskChange&&this.maskChanged&&this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(r)))))),this.maskChanged=!1;return}Array.isArray(this.dropSpecialCharacters)?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeMask(this._removeSuffix(this._removePrefix(r)),this.dropSpecialCharacters))))):this.dropSpecialCharacters||!this.dropSpecialCharacters&&this.prefix===r?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(r)))))):this.onChange(this.outputTransformFn(this._toNumber(r)))}_toNumber(r){if(!this.isNumberValue||r===gt.EMPTY_STRING||this.maskExpression.startsWith(gt.SEPARATOR)&&(this.leadZero||!this.dropSpecialCharacters))return r;if(String(r).length>14&&this.maskExpression.startsWith(gt.SEPARATOR))return String(r);let A=Number(r);if(this.maskExpression.startsWith(gt.SEPARATOR)&&Number.isNaN(A)){let o=String(r).replace(",",".");return Number(o)}return Number.isNaN(A)?r:A}_removeMask(r,A){return this.maskExpression.startsWith(gt.PERCENT)&&r.includes(gt.DOT)?r:r&&r.replace(this._regExpForRemove(A),gt.EMPTY_STRING)}_removePrefix(r){return this.prefix?r&&r.replace(this.prefix,gt.EMPTY_STRING):r}_removeSuffix(r){return this.suffix?r&&r.replace(this.suffix,gt.EMPTY_STRING):r}_retrieveSeparatorValue(r){let A=Array.isArray(this.dropSpecialCharacters)?this.specialCharacters.filter(o=>this.dropSpecialCharacters.includes(o)):this.specialCharacters;return!this.deletedSpecialCharacter&&this._checkPatternForSpace()&&r.includes(gt.WHITE_SPACE)&&this.maskExpression.includes(gt.SYMBOL_STAR)&&(A=A.filter(o=>o!==gt.WHITE_SPACE)),this._removeMask(r,A)}_regExpForRemove(r){return new RegExp(r.map(A=>`\\${A}`).join("|"),"gi")}_replaceDecimalMarkerToDot(r){let A=Array.isArray(this.decimalMarker)?this.decimalMarker:[this.decimalMarker];return r.replace(this._regExpForRemove(A),gt.DOT)}_checkSymbols(r){let A=r;if(A===gt.EMPTY_STRING)return A;this.maskExpression.startsWith(gt.PERCENT)&&this.decimalMarker===gt.COMMA&&(A=A.replace(gt.COMMA,gt.DOT));let o=this._retrieveSeparatorPrecision(this.maskExpression),l=this._replaceDecimalMarkerToDot(this._retrieveSeparatorValue(A));return this.isNumberValue&&o?A===this.decimalMarker?null:l.length>14?String(l):this._checkPrecision(this.maskExpression,l):l}_checkPatternForSpace(){var r,A,o;for(let l in this.patterns)if(this.patterns[l]&&((r=this.patterns[l])!=null&&r.hasOwnProperty("pattern"))){let i=(A=this.patterns[l])==null?void 0:A.pattern.toString(),h=(o=this.patterns[l])==null?void 0:o.pattern;if(i!=null&&i.includes(gt.WHITE_SPACE)&&(h!=null&&h.test(this.maskExpression)))return!0}return!1}_retrieveSeparatorPrecision(r){let A=r.match(new RegExp("^separator\\.([^d]*)"));return A?Number(A[1]):null}_checkPrecision(r,A){let o=this.getPrecision(r),l=A;return r.indexOf("2")>0||this.leadZero&&Number(o)>0?(this.decimalMarker===gt.COMMA&&this.leadZero&&(l=l.replace(",",".")),this.leadZero?Number(l).toFixed(Number(o)):Number(l).toFixed(2)):this.numberToString(l)}_repeatPatternSymbols(r){return r.match(/{[0-9]+}/)&&r.split(gt.EMPTY_STRING).reduce((A,o,l)=>{if(this._start=o===gt.CURLY_BRACKETS_LEFT?l:this._start,o!==gt.CURLY_BRACKETS_RIGHT)return this._findSpecialChar(o)?A+o:A;this._end=l;let i=Number(r.slice(this._start+1,this._end)),h=new Array(i+1).join(r[this._start-1]);if(r.slice(0,this._start).length>1&&r.includes(gt.LETTER_S)){let s=r.slice(0,this._start-1);return s.includes(gt.CURLY_BRACKETS_LEFT)?A+h:s+A+h}else return A+h},"")||r}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}};d(t,"ɵfac",(()=>{let r;return function(A){return(r||(r=on(t)))(A||t)}})()),d(t,"ɵprov",Wt({token:t,factory:t.ɵfac}));let e=t;return e})();function DBe(){let e=Ie(yF),t=Ie(wF);return t instanceof Function?ru(ru({},e),t()):ru(ru({},e),t)}function wBe(e){return[{provide:wF,useValue:e},{provide:yF,useValue:mBe},{provide:Qg,useFactory:DBe},FBe]}function yBe(e){return J5(wBe(e))}function vBe(e){var t,n,u,r;return((n=(t=e.userProfile)==null?void 0:t.children)==null?void 0:n.length)>0?e.userProfile.children[0].ssin:((r=(u=e.userProfile)==null?void 0:u.mandators)==null?void 0:r.length)>0?e.userProfile.mandators[0].ssin:e.userProfile.ssin}var vF=(()=>{const t=class t{get isProfessional(){return this._isProfessional}set isProfessional(u){this._isProfessional=u}get patientSsin(){return this._patientSsin}set patientSsin(u){this._patientSsin=u}get isOfflineDataStorageEnabled(){return this._offlineDataStorageEnabled}set isOfflineDataStorageEnabled(u){this._offlineDataStorageEnabled=u}get isOfflineAuthenticated(){return this._isOfflineAuthenticated}set isOfflineAuthenticated(u){this._isOfflineAuthenticated=u}};t.ɵfac=function(u){return new(u||t)},t.ɵprov=Wt({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),MBe="4.0",D5=MBe,MA=(e=>(e.DEV="dev",e.DEMO="demo",e.INT="int",e.ACC="acc",e.PROD="prod",e))(MA||{}),MF=(e=>(e.HTML="text/html",e.PLAIN="text/plain",e.PDF="application/pdf",e.BASE64="application/base64",e))(MF||{}),xBe=(()=>{const t=class t{constructor(){d(this,"version");d(this,"language");d(this,"configName");d(this,"services");d(this,"onPrint",new Nu);d(this,"_ngInitDone",!1);d(this,"correctlySetup",!1);d(this,"extraRequiredFields",[])}validateVersion(){let u=D5.split(".").map(A=>parseInt(A)),r=(this.version||"").split(".").map(A=>parseInt(A));return r.length!==2?(console.error(`[BaseWebComponent] The given version (${this.version}) has the wrong format <major>.<minor>!`),!1):r[0]!==u[0]?(console.error(`[BaseWebComponent] The given version (${this.version})'s major is not compatible with this component's major version (${D5})!`),!1):!0}validateInputs(){let u=this,r=["language","configName","services","version",...this.extraRequiredFields],{missingFields:A,presentFields:o}=r.reduce((l,i)=>(u[i]===void 0?l.missingFields.push(i):l.presentFields.push(i),l),{missingFields:[],presentFields:[]});return A.length?(console.log(`[BaseWebComponent] Waiting for missing inputs: ${A.join(", ")}; Present inputs: ${o.join(", ")}`),!1):(console.log("[BaseWebComponent] All required inputs are present"),this.validateVersion()?this.services.cacheDataStorage==null?(console.error("[BaseWebComponent] The given services input does not contain a cache service!"),!1):this.services.getAccessToken==null?(console.error("[BaseWebComponent] The given services input does not contain a getAccessToken() function!"),!1):this.services.registerRefreshCallback==null?(console.error("[BaseWebComponent] The given services input does not contain a registerRefreshCallback() function!"),!1):!0:!1)}ngOnChanges(u){this.correctlySetup=this.validateInputs(),this.correctlySetup&&(this._ngInitDone?this.onPropsChanged(u):(this.onInitialized(),this._ngInitDone=!0))}isCorrectlySetup(){return this.correctlySetup}onInitialized(){}onPropsChanged(u){}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵcmp",Ku({type:t,selectors:[["ng-component"]],inputs:{version:"version",language:"language",configName:"configName",services:"services"},outputs:{onPrint:"onPrint"},features:[ua],decls:0,vars:0,template:function(u,r){},encapsulation:2}));let e=t;return e})(),Rg=class{constructor(e,t,n,u,r){d(this,"logId");d(this,"services");d(this,"key");d(this,"cacheFetchingKey");d(this,"offlineDataStorageEnabled");d(this,"isOfflineAuthenticated");this.logId=r,this.services=e,this.key=t,this.cacheFetchingKey=`fetching-${this.key}`,this.offlineDataStorageEnabled=u,this.isOfflineAuthenticated=n}fetchBackendData(){return An(this,null,function*(){let e=yield this.getDataFromBackend();return e&&(yield this.updateStoredData(e)),e})}fetchOfflineData(){return An(this,null,function*(){if(this.services.offlineDataStorage==null)return null;let e=yield this.services.offlineDataStorage.get(this.key);return e==null&&this.logId&&console.log("[%s] Offline data not found for key [%s]",this.logId,this.key),this.logId&&console.log("[%s] Found valid data in offline store for key [%s]: [%s]",this.logId,this.key,e),this.storeDataInCache(e),e})}storeDataOffline(e){return An(this,null,function*(){this.offlineDataStorageEnabled&&this.services.offlineDataStorage&&e&&(yield this.services.offlineDataStorage.set(this.key,e),this.logId&&console.log("[%s] Updated data in the offline store",this.logId))})}storeDataInCache(e){e&&(this.logId&&console.log("[%s] updating data in cache at [%s]",this.logId,this.key),this.services.cacheDataStorage.set(this.key,e))}getDataFromCache(){return An(this,null,function*(){let e=t=>{this.services.cacheDataStorage.get(this.cacheFetchingKey)?(this.logId&&console.log("[%s] Another WC is fetching data... Waiting a bit.",this.logId),setTimeout(()=>{e(t)},500)):t(this.services.cacheDataStorage.get(this.key))};return this.logId&&console.log("[%s] Trying to get data from cache...",this.logId),new Promise(t=>{e(t)})})}getData(e=!1){return An(this,null,function*(){let t=null;if(this.isOfflineAuthenticated){if(this.offlineDataStorageEnabled&&this.services.offlineDataStorage)return yield this.fetchOfflineData();throw new Error(`[${this.logId}] Trying to access offline store while it is not present or not enabled`)}if(!e){if(t=yield this.getDataFromCache(),t)return this.logId&&console.log("[%s] Data pulled from cache: ",this.logId,t),t;this.logId&&console.log("[%s] No data in cache",this.logId)}try{return this.services.cacheDataStorage.set(this.cacheFetchingKey,!0),yield this.fetchBackendData()}finally{this.services.cacheDataStorage.remove(this.cacheFetchingKey)}})}updateStoredData(e){return An(this,null,function*(){this.storeDataInCache(e),yield this.storeDataOffline(e)})}},bBe=()=>{let e=["WebView","(iPhone|iPod|iPad)(?!.*Safari)","Android.*(;\\s+wv|Version/\\d.\\d\\s+Chrome/\\d+(\\.0){3})","Linux; U; Android"],t=new RegExp("("+e.join("|")+")","ig");return!!navigator.userAgent.match(t)},wA=function(e){return e._00001="00001",e._00002="00002",e._00003="00003",e._00004="00004",e._00005="00005",e._00006="00006",e._00007="00007",e._00008="00008",e._00009="00009",e._00010="00010",e._00011="00011",e._00012="00012",e._00013="00013",e._00014="00014",e._00015="00015",e._00016="00016",e._00017="00017",e._00018="00018",e._00019="00019",e._00020="00020",e._00021="00021",e._00022="00022",e._00023="00023",e._00024="00024",e._00026="00026",e._00027="00027",e._00028="00028",e._00029="00029",e._00030="00030",e.AMPLOULE="ampoule",e.BONDAGE="bandage",e.BOTTLE="bottle",e.BOX="box",e.CM="cm",e.EFFERVESCENT_TABLET="effervescent_tablet",e.GM="gm",e.INTERNATIONALUNITS="internationalunits",e.IU="iu",e.LITER="liter",e.MEQ="meq",e.MG="mg",e.MICROGRAMS="micrograms",e.MIU="miu",e.MMOL="mmol",e.PIECE="piece",e.SYRINGE="syringe",e.SYRINGE_AMPOULE="syringe_ampoule",e.TBL="tbl",e.TSP="tsp",e.MS="ms",e.MIN="min",e.MO="mo",e}(wA||{}),ca=function(e){return e.DIARY_NOTES="diarynotes",e.PRESCRIPTIONS="prescriptions",e.MEDICATION_SCHEME="medicationScheme",e.MEDICATION_SCHEME_PAGE_STATE="medicationSchemePageState",e.DELIVERED_MEDICATIONS="deliveredMedications",e.USER_INFOS="userInfos",e.MANDATE_TYPE="mandateType",e}(ca||{}),Ia=function(e){return e.BEFOREBREAKFAST="beforebreakfast",e.DURINGBREAKFAST="duringbreakfast",e.AFTERBREAKFAST="afterbreakfast",e.MORNING="morning",e.BETWEENBREAKFASTANDLUNCH="betweenbreakfastandlunch",e.BEFORELUNCH="beforelunch",e.DURINGLUNCH="duringlunch",e.AFTERLUNCH="afterlunch",e.AFTERNOON="afternoon",e.BETWEENLUNCHANDDINNER="betweenlunchanddinner",e.BEFOREDINNER="beforedinner",e.DURINGDINNER="duringdinner",e.AFTERDINNER="afterdinner",e.EVENING="evening",e.THEHOUROFSLEEP="thehourofsleep",e.NIGHT="night",e.AFTERMEAL="aftermeal",e.BETWEENDINNERANDSLEEP="betweendinnerandsleep",e.BETWEENMEALS="betweenmeals",e}(Ia||{}),$n=function(e){return e.CNK="cnk",e.INN="inn",e.VMP="vmp",e.EAN="ean",e.COMPOUND="compound",e}($n||{}),k=function(e){return e.NL="nl",e.FR="fr",e.DE="de",e.EN="en",e}(k||{}),jo=function(e){return e.D="D",e.DA="DA",e.DD="DD",e.DE="DE",e.DN="DN",e.DQ="DQ",e.DT="DT",e.DV="DV",e.DW="DW",e.DX="DX",e.DZ="DZ",e.J="J",e.JD="JD",e.JH2="JH2",e.JQ="JQ",e.JT="JT",e.JV="JV",e.JZ="JZ",e.M="M",e.MA="MA",e.MC="MC",e.MD="MD",e.ME="ME",e.MN="MN",e.MQ="MQ",e.MS="MS",e.MT="MT",e.MV="MV",e.MX="MX",e.MZ2="MZ2",e.O1="O1",e.ONDEMAND="ondemand",e.U="U",e.UA="UA",e.UD="UD",e.UE="UE",e.UH="UH",e.UN="UN",e.UQ="UQ",e.US="US",e.UT="UT",e.UV="UV",e.UW="UW",e.UX="UX",e.UZ="UZ",e.W="W",e.WA="WA",e.WD="WD",e.WE="WE",e.WN="WN",e.WP="WP",e.WQ="WQ",e.WS="WS",e.WT="WT",e.WV="WV",e.WW="WW",e.WX="WX",e.WZ="WZ",e}(jo||{}),Qa=function(e){return e.APPLICATION="application",e.CERTIFICATEHOLDER="certificateholder",e.DEPTALGOLOGY="deptalgology",e.DEPTANATOMOPATHOLOGY="deptanatomopathology",e.DEPTANESTHESIOLOGY="deptanesthesiology",e.DEPTBACTERIOLOGY="deptbacteriology",e.DEPTCARDIACSURGERY="deptcardiacsurgery",e.DEPTCARDIOLOGY="deptcardiology",e.DEPTCHILDANDADOLESCENTPSYCHIATRY="deptchildandadolescentpsychiatry",e.DEPTDENTISTRY="deptdentistry",e.DEPTDERMATOLOGY="deptdermatology",e.DEPTDIABETOLOGY="deptdiabetology",e.DEPTDIETETICS="deptdietetics",e.DEPTEMERGENCY="deptemergency",e.DEPTENDOCRINOLOGY="deptendocrinology",e.DEPTGASTROENTEROLOGY="deptgastroenterology",e.DEPTGENERALPRACTICE="deptgeneralpractice",e.DEPTGENETICS="deptgenetics",e.DEPTGERIATRY="deptgeriatry",e.DEPTGYNECOLOGY="deptgynecology",e.DEPTHANDSURGERY="depthandsurgery",e.DEPTHEMATOLOGY="depthematology",e.DEPTINFECTIOUSDISEASE="deptinfectiousdisease",e.DEPTINTENSIVECARE="deptintensivecare",e.DEPTKINESITHERAPY="deptkinesitherapy",e.DEPTLABORATORY="deptlaboratory",e.DEPTMAJORBURNS="deptmajorburns",e.DEPTMAXILLOFACIALSURGERY="deptmaxillofacialsurgery",e.DEPTMEDICINE="deptmedicine",e.DEPTMOLECULARBIOLOGY="deptmolecularbiology",e.DEPTNEONATALOGY="deptneonatalogy",e.DEPTNEPHROLOGY="deptnephrology",e.DEPTNEUROLOGY="deptneurology",e.DEPTNEUROSURGERY="deptneurosurgery",e.DEPTNTE="deptnte",e.DEPTNUCLEAR="deptnuclear",e.DEPTNURSING="deptnursing",e.DEPTNUTRITIONDIETETICS="deptnutritiondietetics",e.DEPTOBSTETRICS="deptobstetrics",e.DEPTOCCUPATIONALTHERAPY="deptoccupationaltherapy",e.DEPTONCOLOGY="deptoncology",e.DEPTOPHTALMOLOGY="deptophtalmology",e.DEPTORTHOPEDY="deptorthopedy",e.DEPTPALLIATIVECARE="deptpalliativecare",e.DEPTPEDIATRICINTENSIVECARE="deptpediatricintensivecare",e.DEPTPEDIATRICSURGERY="deptpediatricsurgery",e.DEPTPEDIATRY="deptpediatry",e.DEPTPHARMACY="deptpharmacy",e.DEPTPHYSICALMEDECINE="deptphysicalmedecine",e.DEPTPHYSIOTHERAPY="deptphysiotherapy",e.DEPTPLASTICANDREPARATORYSURGERY="deptplasticandreparatorysurgery",e.DEPTPNEUMOLOGY="deptpneumology",e.DEPTPODIATRY="deptpodiatry",e.DEPTPSYCHIATRY="deptpsychiatry",e.DEPTPSYCHOGERIATRY="deptpsychogeriatry",e.DEPTPSYCHOLOGY="deptpsychology",e.DEPTRADIOLOGY="deptradiology",e.DEPTRADIOTHERAPY="deptradiotherapy",e.DEPTREVALIDATION="deptrevalidation",e.DEPTRHEUMATOLOGY="deptrheumatology",e.DEPTSENOLOGY="deptsenology",e.DEPTSOCIALSERVICE="deptsocialservice",e.DEPTSPEECHTHERAPY="deptspeechtherapy",e.DEPTSPORTSMEDECINE="deptsportsmedecine",e.DEPTSTOMATOLOGY="deptstomatology",e.DEPTSURGERY="deptsurgery",e.DEPTTHORACICSURGERY="deptthoracicsurgery",e.DEPTTOXICOLOGY="depttoxicology",e.DEPTTROPICALMEDECINE="depttropicalmedecine",e.DEPTUROLOGY="depturology",e.DEPTVASCULARSURGERY="deptvascularsurgery",e.DEPTVISCERALDIGESTIVEABDOMINALSURGERY="deptvisceraldigestiveabdominalsurgery",e.GROUPOFNURSES="groupofnurses",e.GROUPOFPHYSICIANSDIFFERENTADDRESS="groupofphysiciansdifferentaddress",e.GROUPOFPHYSICIANSSAMEADDRESS="groupofphysicianssameaddress",e.GUARDPOST="guardpost",e.HUB="hub",e.ORGHOSPITAL="orghospital",e.ORGINSURANCE="orginsurance",e.ORGLABORATORY="orglaboratory",e.ORGPHARMACY="orgpharmacy",e.ORGPOLYCLINIC="orgpolyclinic",e.ORGPRACTICE="orgpractice",e.ORGPREVENTION="orgprevention",e.ORGPRIMARYHEALTHCARECENTER="orgprimaryhealthcarecenter",e.ORGPSYCHIATRICCAREHOME="orgpsychiatriccarehome",e.ORGPUBLICHEALTH="orgpublichealth",e.ORGRETIREMENTHOME="orgretirementhome",e.ORGREVALIDATIONCENTER="orgrevalidationcenter",e.ORGSHELTEREDLIVING="orgshelteredliving",e.PATIENT="patient",e.PERSADMINISTRATIVE="persadministrative",e.PERSAMBULANCEFIRSTAID="persambulancefirstaid",e.PERSAPPLIEDPSYCHBACHELOR="persappliedpsychbachelor",e.PERSAUDICIAN="persaudician",e.PERSAUDIOLOGIST="persaudiologist",e.PERSBIOLOGIST="persbiologist",e.PERSCLINICALORTHOPEDAGOGIST="persclinicalorthopedagogist",e.PERSCLINICALPSYCHOLOGIST="persclinicalpsychologist",e.PERSDENTIST="persdentist",e.PERSDIETICIAN="persdietician",e.PERSEDUCATOR="perseducator",e.PERSFAMILYSCIENCEBACHELOR="persfamilysciencebachelor",e.PERSGERONTOLOGYMASTER="persgerontologymaster",e.PERSLOGOPEDIST="perslogopedist",e.PERSMIDWIFE="persmidwife",e.PERSNURSE="persnurse",e.PERSOCCUPATIONALTHERAPIST="persoccupationaltherapist",e.PERSOPTICIAN="persoptician",e.PERSORALDENTALHYGIENIST="persoraldentalhygienist",e.PERSORTHOPEDAGOGISTMASTER="persorthopedagogistmaster",e.PERSORTHOPTIST="persorthoptist",e.PERSORTHOTIST="persorthotist",e.PERSPATIENTDRIVER="perspatientdriver",e.PERSPEDAGOGYBACHELOR="perspedagogybachelor",e.PERSPHARMACIST="perspharmacist",e.PERSPHARMACISTCLINICALBIOLOGIST="perspharmacistclinicalbiologist",e.PERSPHARMACYASSISTANT="perspharmacyassistant",e.PERSPHYSICIAN="persphysician",e.PERSPHYSIOTHERAPIST="persphysiotherapist",e.PERSPODOLOGIST="perspodologist",e.PERSPRACTICALNURSE="perspracticalnurse",e.PERSPSYCHOLOGIST="perspsychologist",e.PERSPSYCHOMOTORTHERAPYMASTER="perspsychomotortherapymaster",e.PERSREADAPTATIONBACHELOR="persreadaptationbachelor",e.PERSSOCIALWORKER="perssocialworker",e.PERSTECHNICIAN="perstechnician",e.PERSTRUSSMAKER="perstrussmaker",e}(Qa||{}),_d=function(e){return e.ascending="asc",e.descending="desc",e}(_d||{});k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE,k.EN,k.NL,k.FR,k.DE;var x0={getAuthorizationHeader:e=>`Bearer ${e}`,getUserType:e=>e.isProfessional?"professional":"patient",clientType:{webApp:"webapp",mobileApp:"mobapp"}},qE={authorization:"Authorization",userType:"user-type",clientType:"client-type"},Cl=class extends Error{};Cl.prototype.name="InvalidTokenError";function IBe(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let u=n.charCodeAt(0).toString(16).toUpperCase();return u.length<2&&(u="0"+u),"%"+u}))}function QBe(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return IBe(t)}catch{return atob(t)}}function RBe(e,t){if(typeof e!="string")throw new Cl("Invalid token specified: must be a string");t||(t={});let n=t.header===!0?0:1,u=e.split(".")[n];if(typeof u!="string")throw new Cl(`Invalid token specified: missing part #${n+1}`);let r;try{r=QBe(u)}catch(A){throw new Cl(`Invalid token specified: invalid base64 for part #${n+1} (${A.message})`)}try{return JSON.parse(r)}catch(A){throw new Cl(`Invalid token specified: invalid json for part #${n+1} (${A.message})`)}}var SBe=class extends Rg{constructor(e,t,n){super(e,ca.USER_INFOS,t,n,ca.USER_INFOS),this.getLocalAccessToken=e.getAccessToken}getDataFromBackend(){return An(this,null,function*(){return RBe(yield this.getLocalAccessToken(""))})}},vc=(()=>{const t=class t{setServices(u){this.services=u}getServices(){if(!this.services)throw new Error("ComponentServices has not been set yet.");return this.services}hasServices(){return!!this.services}};t.ɵfac=function(u){return new(u||t)},t.ɵprov=Wt({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),kBe=(()=>{const t=class t extends vF{constructor(){super(...arguments),this.servicesStore=Ie(vc)}resolveSsin(){return An(this,null,function*(){if(this.isProfessional===!0)return this.patientSsin;let u=yield this.fetchUserToken();return vBe(u)})}resolvePatientInfo(){return An(this,null,function*(){return(yield this.fetchUserToken()).userProfile})}resolveUserInfo(){return An(this,null,function*(){var s,c,E,B;let u=(yield this.fetchUserToken()).userProfile,r=u.lastName,A=u.firstName,o=this.extractProfessionalRole(u),l=((s=u==null?void 0:u.organizations)==null?void 0:s.length)>0&&((c=u==null?void 0:u.organizations[0])!=null&&c.pharmacy)?"pharmacist":void 0,i=(E=u==null?void 0:u.organizations)!=null&&E.length&&l!==void 0?u==null?void 0:u.organizations[0]:void 0,h=this.resolveProfessional(u,o)?u[o]:void 0;return{firstName:A,ssin:u.ssin,lastName:r,role:l||o,organization:i&&l?i:void 0,professional:h,mandator:((B=u==null?void 0:u.mandators)==null?void 0:B.length)>0}})}isMandator(){return An(this,null,function*(){var u,r;return((r=(u=(yield this.fetchUserToken()).userProfile)==null?void 0:u.mandators)==null?void 0:r.length)>0})}resolveProfessional(u,r){return r?u[r]:void 0}extractProfessionalRole(u){let r=["physician","nurse","midwife","dentist"],A="patient";return r.forEach(o=>{u[o]&&(A=o)}),A}fetchUserToken(){return this.accessTokenService.getData(!0)}registerAccessTokenService(u,r){this.accessTokenService||(this.isOfflineAuthenticated=u,this.isOfflineDataStorageEnabled=r,this.accessTokenService=new SBe(this.servicesStore.getServices(),u,r))}};t.ɵfac=(()=>{let u;return function(r){return(u||(u=on(t)))(r||t)}})(),t.ɵprov=Wt({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),TBe=(()=>{const t=class t extends vF{resolveSsin(){return An(this,null,function*(){return Promise.resolve("00000000097")})}resolvePatientInfo(){return Promise.resolve({firstName:"John",lastName:"Doe",ssin:"00000000097"})}resolveUserInfo(){return Promise.resolve({firstName:"John",lastName:"Doe",ssin:"00000000097",role:"patient",organization:void 0,professional:void 0,mandator:!1})}isMandator(){return An(this,null,function*(){return Promise.resolve(!1)})}registerAccessTokenService(u,r){this.isOfflineAuthenticated=u,this.isOfflineDataStorageEnabled=r}};t.ɵfac=(()=>{let u;return function(r){return(u||(u=on(t)))(r||t)}})(),t.ɵprov=Wt({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),YBe=(()=>{const t=class t{constructor(){this.http=Ie(Ns)}get(u,r,A){return b0()?this.http.get(u,{headers:A}):qr(r)}patch(u,r,A){return b0()?this.http.patch(u,{},{headers:A}):qr(r)}post(u,r,A){return b0()?this.http.post(u,{},{headers:A}):qr(r)}delete(u,r,A){return b0()?this.http.delete(u,{headers:A}):qr(r)}};t.ɵfac=function(u){return new(u||t)},t.ɵprov=Wt({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),b0=()=>window.Cypress;function zBe(e){return e.firstName&&e.lastName?e.firstName+" "+e.lastName:e.name}var xF={fr:["fr","nl","de","en"],nl:["nl","fr","de","en"],de:["de","fr","nl","en"],en:["en","nl","fr","de"]};function Jl(e,t){if(e){t=t==null?void 0:t.substring(0,2);for(let n of xF[t]){let u=e.find(r=>r.lang===n);if(u)return u.value}return e.length>0?e[0].value:"Missing translation"}}function NBe(e,t){if(!(!e||Object.keys(e).length<1)){t=t==null?void 0:t.substring(0,2);for(let n of xF[t]){let u=e.find(r=>r.lang===n);if(u)return u}return e.length>0?e[0]:void 0}}var Ui=function(e){return e.INITIAL="INITIAL",e.LOADING="LOADING",e.SUCCESS="SUCCESS",e.UPDATING="UPDATING",e.ERROR="ERROR",e}(Ui||{}),iA=function(e){return e.NO_DATA="NO_DATA",e.TEMP_UNAVAILABLE="TEMP_UNAVAILABLE",e.NOT_AUTHORIZED="NOT_AUTHORIZED",e.OTHER="OTHER",e}(iA||{});function _Be(e){return e.pipe(jr(t=>({status:Ui.SUCCESS,data:t})),L5(t=>qr({status:Ui.ERROR,error:bF(t)})),lo({status:Ui.LOADING}))}var g6=()=>e=>_Be(e);function UBe(e,t){return An(this,null,function*(){t.next({status:Ui.LOADING});try{let n=yield e,u={status:Ui.SUCCESS,data:n};return t.next(u),u}catch(n){let u={status:Ui.ERROR,error:bF(n)};return t.next(u),u}})}var f6={[iA.NO_DATA]:["VIDIS_0140"],[iA.TEMP_UNAVAILABLE]:["VIDIS_0121","VIDIS_0122","VIDIS_0123","VIDIS_0124","VIDIS_0125","VIDIS_0126","VIDIS_0131","VIDIS_0132","VIDIS_0133","VIDIS_0134","VIDIS_0135","VIDIS_0136"],[iA.NOT_AUTHORIZED]:["VIDIS_3150","VIDIS_3090","VIDIS_3140","VIDIS_3100","VIDIS_3120","VIDIS_0400","VIDIS_3030","VIDIS_0100","VIDIS_0120","VIDIS_0110","VIDIS_0200","VIDIS_0340","VIDIS_0341"],[iA.OTHER]:[]};function PBe(e){for(let t of Object.keys(f6))if(f6[t].includes(e))return t;return iA.OTHER}function GBe(e,t,n){let u=e||"UNKNOWN",r=PBe(u);return{code:u,message:n??"An unexpected error occurred",group:r,traceId:t}}function bF(e){var r,A,o;let t=((r=e.error)==null?void 0:r.code)??void 0,n=((A=e.error)==null?void 0:A.message)??e.message,u=(o=e.headers)==null?void 0:o.get("trace-id");return GBe(t,u,n)}var IF=(()=>{const t=class t{constructor(){this.translate=Ie(Ii)}transform(u){return this.findTranslation(u.name)+" "+(u.prefix?u.prefix+" ":"")+(u.value?u.value+" ":"")+(u.unit?this.translate.instant("commons.units."+u.unit,{count:u.value||1}):"")}findTranslation(u){return Jl(u,this.translate.currentLang)}};t.ɵfac=function(u){return new(u||t)},t.ɵprov=Wt({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Zl=(()=>{const t=class t{constructor(){this.config=Ie(Mc),this.injector=Ie($r),this._instance=null}getInstance(){if(!this._instance){let u=this.config.getEnvironmentVariable("env")==="demo";this._instance=u?this.injector.get(TBe):this.injector.get(kBe)}return this._instance}};t.ɵfac=function(u){return new(u||t)},t.ɵprov=Wt({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),QF=(()=>{const t=class t extends Rg{constructor(u,r,A){super(r.getServices(),ca.MANDATE_TYPE,A.getInstance().isOfflineAuthenticated,A.getInstance().isOfflineDataStorageEnabled,ca.MANDATE_TYPE),this.http=u,this.servicesStore=r,this.authServiceSelector=A}getMandateType(u){return this.ssin=u,lA(this.getData(!0))}isPmhUser(){return this.isPmhUser$||(this.isPmhUser$=ts([this.authServiceSelector.getInstance().resolveSsin(),this.authServiceSelector.getInstance().isMandator()]).pipe(co(([u,r])=>r?this.getMandateType(u).pipe(jr(A=>{var o;return((o=A.mandateType)==null?void 0:o.toUpperCase())==="PMH"})):qr(!1)),X0(1))),this.isPmhUser$}getDataFromBackend(){return mte(this.http.get("/v1/mandateType?ssin="+this.ssin))}};t.ɵfac=function(u){return new(u||t)(vu(Ns),vu(vc),vu(Zl))},t.ɵprov=Wt({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),OBe={HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)"};function jBe(e,t){if(e&1){let n=Kn();Qt(0,"div",1)(1,"button",2),Ju("click",function(){wr(n);let u=tu();return yr(u.action())}),Mu(2),St()()}if(e&2){let n=tu();It(2),zr(" ",n.data.action," ")}}var LBe=["label"];function WBe(e,t){}var HBe=Math.pow(2,31)-1,w5=class{constructor(e,t){d(this,"_overlayRef");d(this,"instance");d(this,"containerInstance");d(this,"_afterDismissed",new xu);d(this,"_afterOpened",new xu);d(this,"_onAction",new xu);d(this,"_durationTimeoutId");d(this,"_dismissedByAction",!1);this._overlayRef=t,this.containerInstance=e,e._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(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,HBe))}_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}},RF=new Jt("MatSnackBarData"),_h=class{constructor(){d(this,"politeness","assertive");d(this,"announcementMessage","");d(this,"viewContainerRef");d(this,"duration",0);d(this,"panelClass");d(this,"direction");d(this,"data",null);d(this,"horizontalPosition","center");d(this,"verticalPosition","bottom")}},VBe=(()=>{const t=class t{};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}));let e=t;return e})(),JBe=(()=>{const t=class t{};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}));let e=t;return e})(),ZBe=(()=>{const t=class t{};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}));let e=t;return e})(),KBe=(()=>{const t=class t{constructor(){d(this,"snackBarRef",Ie(w5));d(this,"data",Ie(RF))}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵcmp",Ku({type:t,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(u,r){u&1&&(Qt(0,"div",0),Mu(1),St(),Eu(2,jBe,3,1,"div",1)),u&2&&(It(),zr(" ",r.data.message,`
|
|
282
282
|
`),It(),Qu(r.hasAction?2:-1))},dependencies:[yc,VBe,JBe,ZBe],styles:[`.mat-mdc-simple-snack-bar{display:flex}
|
|
283
283
|
`],encapsulation:2,changeDetection:0}));let e=t;return e})(),$E="_mat-snack-bar-enter",e1="_mat-snack-bar-exit",XBe=(()=>{const t=class t extends Rd{constructor(){super();d(this,"_ngZone",Ie(or));d(this,"_elementRef",Ie(dr));d(this,"_changeDetectorRef",Ie(Ei));d(this,"_platform",Ie(ri));d(this,"_rendersRef");d(this,"_animationsDisabled",Ie(Si,{optional:!0})==="NoopAnimations");d(this,"snackBarConfig",Ie(_h));d(this,"_document",Ie(Sr));d(this,"_trackedModals",new Set);d(this,"_enterFallback");d(this,"_exitFallback");d(this,"_renders",new xu);d(this,"_announceDelay",150);d(this,"_announceTimeoutId");d(this,"_destroyed",!1);d(this,"_portalOutlet");d(this,"_onAnnounce",new xu);d(this,"_onExit",new xu);d(this,"_onEnter",new xu);d(this,"_animationState","void");d(this,"_live");d(this,"_label");d(this,"_role");d(this,"_liveElementId",Ie(na).getId("mat-snack-bar-container-live-"));d(this,"attachDomPortal",r=>{this._assertNotAttached();let A=this._portalOutlet.attachDomPortal(r);return this._afterPortalAttached(),A});let r=this.snackBarConfig;r.politeness==="assertive"&&!r.announcementMessage?this._live="assertive":r.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert")),this._rendersRef=FB(()=>this._renders.next(),{manualCleanup:!0})}attachComponentPortal(r){this._assertNotAttached();let A=this._portalOutlet.attachComponentPortal(r);return this._afterPortalAttached(),A}attachTemplatePortal(r){this._assertNotAttached();let A=this._portalOutlet.attachTemplatePortal(r);return this._afterPortalAttached(),A}onAnimationEnd(r){r===e1?this._completeExit():r===$E&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?this._renders.pipe(ii(1)).subscribe(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd($E)))}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd($E)},200)))}exit(){return this._destroyed?qr(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?this._renders.pipe(ii(1)).subscribe(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(e1)))}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(e1),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit(),this._renders.complete(),this._rendersRef.destroy()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let r=this._elementRef.nativeElement,A=this.snackBarConfig.panelClass;A&&(Array.isArray(A)?A.forEach(i=>r.classList.add(i)):r.classList.add(A)),this._exposeToModals();let o=this._label.nativeElement,l="mdc-snackbar__label";o.classList.toggle(l,!o.querySelector(`.${l}`))}_exposeToModals(){let r=this._liveElementId,A=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<A.length;o++){let l=A[o],i=l.getAttribute("aria-owns");this._trackedModals.add(l),i?i.indexOf(r)===-1&&l.setAttribute("aria-owns",i+" "+r):l.setAttribute("aria-owns",r)}}_clearFromModals(){this._trackedModals.forEach(r=>{let A=r.getAttribute("aria-owns");if(A){let o=A.replace(this._liveElementId,"").trim();o.length>0?r.setAttribute("aria-owns",o):r.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let r=this._elementRef.nativeElement,A=r.querySelector("[aria-hidden]"),o=r.querySelector("[aria-live]");if(A&&o){let l=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&A.contains(document.activeElement)&&(l=document.activeElement),A.removeAttribute("aria-hidden"),o.appendChild(A),l==null||l.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};d(t,"ɵfac",function(r){return new(r||t)}),d(t,"ɵcmp",Ku({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(r,A){if(r&1&&(kn(Ll,7),kn(LBe,7)),r&2){let o;er(o=tr())&&(A._portalOutlet=o.first),er(o=tr())&&(A._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(r,A){r&1&&Ju("animationend",function(o){return A.onAnimationEnd(o.animationName)})("animationcancel",function(o){return A.onAnimationEnd(o.animationName)}),r&2&&xr("mat-snack-bar-container-enter",A._animationState==="visible")("mat-snack-bar-container-exit",A._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!A._animationsDisabled)},features:[Lr],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(r,A){r&1&&(Qt(0,"div",1)(1,"div",2,0)(3,"div",3),Eu(4,WBe,0,0,"ng-template",4),St(),_u(5,"div"),St()()),r&2&&(It(5),Yr("aria-live",A._live)("role",A._role)("id",A._liveElementId))},dependencies:[Ll],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.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-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.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}
|
|
284
284
|
`],encapsulation:2}));let e=t;return e})();function qBe(){return new _h}var $Be=new Jt("mat-snack-bar-default-options",{providedIn:"root",factory:qBe}),ege=(()=>{const t=class t{constructor(){d(this,"_overlay",Ie(ki));d(this,"_live",Ie(x9));d(this,"_injector",Ie($r));d(this,"_breakpointObserver",Ie(w9));d(this,"_parentSnackBar",Ie(t,{optional:!0,skipSelf:!0}));d(this,"_defaultConfig",Ie($Be));d(this,"_snackBarRefAtThisLevel",null);d(this,"simpleSnackBarComponent",KBe);d(this,"snackBarContainerComponent",XBe);d(this,"handsetCssClass","mat-mdc-snack-bar-handset")}get _openedSnackBarRef(){let u=this._parentSnackBar;return u?u._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(u){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=u:this._snackBarRefAtThisLevel=u}openFromComponent(u,r){return this._attach(u,r)}openFromTemplate(u,r){return this._attach(u,r)}open(u,r="",A){let o=ru(ru({},this._defaultConfig),A);return o.data={message:u,action:r},o.announcementMessage===u&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(u,r){let A=r&&r.viewContainerRef&&r.viewContainerRef.injector,o=$r.create({parent:A||this._injector,providers:[{provide:_h,useValue:r}]}),l=new Fs(this.snackBarContainerComponent,r.viewContainerRef,o),i=u.attach(l);return i.instance.snackBarConfig=r,i.instance}_attach(u,r){let A=ru(ru(ru({},new _h),this._defaultConfig),r),o=this._createOverlay(A),l=this._attachSnackBarContainer(o,A),i=new w5(l,o);if(u instanceof di){let h=new Qd(u,null,{$implicit:A.data,snackBarRef:i});i.instance=l.attachTemplatePortal(h)}else{let h=this._createInjector(A,i),s=new Fs(u,void 0,h),c=l.attachComponentPortal(s);i.instance=c.instance}return this._breakpointObserver.observe(OBe.HandsetPortrait).pipe(Fn(o.detachments())).subscribe(h=>{o.overlayElement.classList.toggle(this.handsetCssClass,h.matches)}),A.announcementMessage&&l._onAnnounce.subscribe(()=>{this._live.announce(A.announcementMessage,A.politeness)}),this._animateSnackBar(i,A),this._openedSnackBarRef=i,this._openedSnackBarRef}_animateSnackBar(u,r){u.afterDismissed().subscribe(()=>{this._openedSnackBarRef==u&&(this._openedSnackBarRef=null),r.announcementMessage&&this._live.clear()}),r.duration&&r.duration>0&&u.afterOpened().subscribe(()=>u._dismissAfter(r.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{u.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):u.containerInstance.enter()}_createOverlay(u){let r=new kd;r.direction=u.direction;let A=this._overlay.position().global(),o=u.direction==="rtl",l=u.horizontalPosition==="left"||u.horizontalPosition==="start"&&!o||u.horizontalPosition==="end"&&o,i=!l&&u.horizontalPosition!=="center";return l?A.left("0"):i?A.right("0"):A.centerHorizontally(),u.verticalPosition==="top"?A.top("0"):A.bottom("0"),r.positionStrategy=A,this._overlay.create(r)}_createInjector(u,r){let A=u&&u.viewContainerRef&&u.viewContainerRef.injector;return $r.create({parent:A||this._injector,providers:[{provide:w5,useValue:r},{provide:RF,useValue:u.data}]})}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵprov",Wt({token:t,factory:t.ɵfac,providedIn:"root"}));let e=t;return e})(),SF=(()=>{const t=class t{constructor(){this.snackbar=Ie(ege),this.translate=Ie(Ii)}showSuccess(u,r="commons.close",A=5e3){return this.snackbar.open(this.translate.instant(u),this.translate.instant(r),{duration:A,panelClass:"mh-snackbar--success"})}showError(u,r="commons.close",A=5e3){return this.snackbar.open(this.translate.instant(u),this.translate.instant(r),{duration:A,panelClass:"mh-snackbar--error"})}};t.ɵfac=function(u){return new(u||t)},t.ɵprov=Wt({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),tge={demo:{env:MA.DEMO},dev:{apiUrl:"http://vidis-fake-api.test.paas.vasdc.be",env:MA.DEV},int:{apiUrl:"https://vidis-api.int.pub.vascloud.be/REST/vidis",env:MA.INT},acc:{apiUrl:"https://vidis-api.acc.vasha.be/REST/vidis",env:MA.ACC},prod:{apiUrl:"https://vidis-api.vasha.be/REST/vidis",env:MA.PROD}},Mc=(()=>{const t=class t{setEnvironment(u){this.configVariables=tge[MA[u.toUpperCase()]]||{}}getEnvironmentVariable(u){return this.configVariables[u]}};t.ɵfac=function(u){return new(u||t)},t.ɵprov=Wt({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),uge=(e,t)=>{let n=Ie(Zl),u=Ie(vc),r=Ie(Mc).getEnvironmentVariable("apiUrl");if(e.url.includes("assets/")||e.url.startsWith("http")||!r||n.getInstance().isOfflineAuthenticated)return t(e);let A=e.headers||new Cs,o=n.getInstance().isProfessional;return lA(u.getServices().getAccessToken("")).pipe(Ql(l=>t(e.clone({url:`${r}${e.url}`,headers:A.set(qE.authorization,x0.getAuthorizationHeader(l)).set(qE.userType,x0.getUserType({isProfessional:o})).set(qE.clientType,bBe()?x0.clientType.mobileApp:x0.clientType.webApp)}))))};function rge(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var nge=["de",[["AM","PM"],void 0,void 0],void 0,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],void 0,void 0],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",void 0,"{1} 'um' {0}",void 0],[",",".",";","%","+","-","E","·","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","Euro",{ATS:["öS"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],BYN:[void 0,"р."],CUC:[void 0,"Cub$"],DEM:["DM"],FKP:[void 0,"Fl£"],GHS:[void 0,"₵"],GNF:[void 0,"F.G."],KMF:[void 0,"FC"],PHP:[void 0,"₱"],RON:[void 0,"L"],RUR:[void 0,"р."],RWF:[void 0,"F.Rw"],SYP:[],THB:["฿"],TWD:["NT$"],XXX:[],ZMW:[void 0,"K"]},"ltr",rge];function ige(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var age=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],[["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"]],void 0,[["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"]],void 0,[["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}",void 0,"{1} 'at' {0}",void 0],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",ige];function Age(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length,u=parseInt(e.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return t===0||t===1?1:u===0&&t!==0&&t%1e6===0&&n===0||!(u>=0&&u<=5)?4:5}var oge=["fr",[["AM","PM"],void 0,void 0],void 0,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]],void 0,[["av. J.-C.","ap. J.-C."],void 0,["avant Jésus-Christ","après Jésus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1}, {0}","{1} 'à' {0}",void 0],[","," ",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","euro",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BYN:[void 0,"р."],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[void 0,"¥"],COP:["$CO","$"],CYP:["£CY"],EGP:[void 0,"£E"],FJD:["$FJ","$"],FKP:["£FK","£"],FRF:["F"],GBP:["£GB","£"],GIP:["£GI","£"],HKD:[void 0,"$"],IEP:["£IE"],ILP:["£IL"],ITL:["₤IT"],JPY:[void 0,"¥"],KMF:[void 0,"FC"],LBP:["£LB","£L"],MTP:["£MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[void 0,"$C"],NZD:["$NZ","$"],PHP:[void 0,"₱"],RHD:["$RH"],RON:[void 0,"L"],RWF:[void 0,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[void 0,"$T"],TTD:["$TT","$"],TWD:[void 0,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[void 0,"$"],XPF:["FCFP"],ZMW:[void 0,"Kw"]},"ltr",Age];function sge(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var lge=["nl",[["a.m.","p.m."],void 0,void 0],void 0,[["Z","M","D","W","D","V","Z"],["zo","ma","di","wo","do","vr","za"],["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],["zo","ma","di","wo","do","vr","za"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]],void 0,[["v.C.","n.C."],["v.Chr.","n.Chr."],["voor Christus","na Christus"]],1,[6,0],["dd-MM-y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",void 0,"{1} 'om' {0}",void 0],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤ #,##0.00;¤ -#,##0.00","#E0"],"EUR","€","Euro",{AUD:["AU$","$"],BYN:[void 0,"р."],CAD:["C$","$"],FJD:["FJ$","$"],JPY:["JP¥","¥"],PHP:[void 0,"₱"],RUR:[void 0,"р."],SBD:["SI$","$"],THB:["฿"],TWD:["NT$"],USD:["US$","$"],XPF:[],XXX:[]},"ltr",sge];xd(nge,"de");xd(lge,"nl");xd(oge,"fr");xd(age,"en");var cge=class{handleError(e){throw new Error(e)}},hge=class extends Vce{getFirstDayOfWeek(){return 1}format(e){return As(e,"dd/MM/yyyy")}parse(e){return fBe(e,"dd/MM/yyyy",new Date)}},dge={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:{year:"numeric",month:"long"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},Ege=[f1e(),kle(Tle([uge])),yBe(),{provide:fa,useClass:cge},{provide:T9,useClass:hge,deps:[A5]},{provide:vce,useValue:dge},{provide:Ds,useClass:p1e},{provide:K9,useValue:{panelClass:"mh-dialog-container"}}],Bge=jh(O$(),1),gge=new Jt("MESSAGE_FORMAT_CONFIG"),fge={biDiSupport:!1,formatters:{},strictNumberSign:!1,currency:"USD",strictPluralKeys:!0,throwOnError:!1,fallbackPrefix:void 0},pge=(()=>{const t=class t extends wo{constructor(u){super(),this.mfCache=new Map;let{formatters:r,biDiSupport:A,strictNumberSign:o,currency:l,strictPluralKeys:i,throwOnError:h,fallbackPrefix:s}=ru(ru({},fge),u);this.messageFormatOptions={customFormatters:r,biDiSupport:A,strict:o,currency:l,strictPluralKeys:i},this.throwOnError=!!h,this.fallbackPrefix=s}compile(u,r){if(this.fallbackPrefix&&u.startsWith(this.fallbackPrefix))return u.slice(this.fallbackPrefix.length);let A;try{A=this.getMessageFormatInstance(r).compile(u)}catch(o){if(this.throwOnError)throw o;console.error(o),console.error(`[ngx-translate-messageformat-compiler] Could not compile message for lang '${r}': '${u}'`),A=Cge(u,r)}return this.throwOnError||(A=mge(A,u)),A}compileTranslations(u,r){return typeof u=="string"?this.compile(u,r):Object.keys(u).reduce((A,o)=>{let l=u[o];return A[o]=this.compileTranslations(l,r),A},{})}getMessageFormatInstance(u){return this.mfCache.has(u)||this.mfCache.set(u,new Bge.default(u,this.messageFormatOptions)),this.mfCache.get(u)}};t.ɵfac=function(u){return new(u||t)(vu(gge,8))},t.ɵprov=Wt({token:t,factory:t.ɵfac});let e=t;return e})();function mge(e,t){return n=>{let u=t;try{u=e(n)}catch(r){console.error(r),console.error(`[ngx-translate-messageformat-compiler] Could not interpolate '${t}' with params '${n}'`)}return u}}function Cge(e,t){return()=>(console.warn(`[ngx-translate-messageformat-compiler] Falling back to original invalid message: '${e}' ('${t}')`),String(e))}var kF={};bu(kF,{composition:()=>TF,default:()=>Fge,delete:()=>HF,endOfTreatment:()=>_F,instructions:()=>zF,noDetails:()=>JF,patient:()=>PF,posology:()=>YF,prescribedOn:()=>OF,prescriber:()=>GF,print:()=>WF,refresh:()=>VF,reservation:()=>jF,startOfTreatment:()=>NF,validity:()=>UF,visibility:()=>LF});var TF="Zusammensetzung",YF="Dosierung",zF="Hinweise",NF="Behandlungsbeginn",_F="Ende der Behandlung",UF="Gültig bis",PF="Rechtsinhaber",GF="Verordnende Person",OF="Drucken",jF={pharmacy:"Reserviert bei",nihdi:"Reserviert in der Apotheke mit LIKIV-Erkennungsnummer",reserve:"Reservieren",cancel:"Reservierung löschen"},LF={modify:"Ändern",pharmacy:{visible:"Sichtbar für alle Apotheken (Abholung mit eIDs oder Barcodes der Verschreibung)",hidden:"Ausgeblendet für alle Apotheken (Abholung nur mit Barcodes der Verschreibung)",name:"Versteckt, außer für",nihdi:"Ausgeblendet, außer für der Apotheke mit LIKIV-Erkennungsnummer",tip:"(Abholung mit eIDs oder Barcodes der Verschreibung)"},prescriber:{visible:"Sichtbar für alle Verschreibenden",hidden:"Versteckt für alle Verschreibenden außer für den Verordner des Verschreibens",gmd:"Versteckt für alle Verschreiber außer dem Autor und meinem Hausarzt (Global Medical Record)"}},WF="Drucken",HF="Verschreibung löschen",VF={message:"Leider war es nicht möglich, die Details der Verschreibung abzurufen. Versuchen Sie es erneut?",button:"Informationen abrufen"},JF="Die angeforderte verschreibung wurde gelöscht oder existiert nicht.",Fge={composition:TF,posology:YF,instructions:zF,startOfTreatment:NF,endOfTreatment:_F,validity:UF,patient:PF,prescriber:GF,prescribedOn:OF,reservation:jF,visibility:LF,print:WF,delete:HF,refresh:VF,noDetails:JF},ZF={};bu(ZF,{composition:()=>KF,default:()=>Dge,delete:()=>oD,endOfTreatment:()=>eD,instructions:()=>qF,noDetails:()=>lD,patient:()=>uD,posology:()=>XF,prescribedOn:()=>nD,prescriber:()=>rD,print:()=>AD,refresh:()=>sD,reservation:()=>iD,startOfTreatment:()=>$F,validity:()=>tD,visibility:()=>aD});var KF="Composition",XF="Dosage",qF="Instructions",$F="Beginning date of the treatment ",eD="End date of the treatment",tD="Valid until",uD="Beneficiary",rD="Prescriber",nD="Prescribed on",iD={pharmacy:"Reserved with",nihdi:"Reserved at pharmacy with NIHDI number.",reserve:"Reserve",cancel:"Cancel reservation"},aD={modify:"Modify",pharmacy:{visible:"Visible for all pharmacies (retrieve with eID or barcode on the prescription)",hidden:"Hidden for all pharmacies (only retrieve with barcode on the prescription)",name:"Hidden, excepted for",nihdi:"Hidden, excepted for pharmacy with NIHDI number",tip:"(retrieve with eID or barcode on the prescription)"},prescriber:{visible:"Visible to all prescribers",hidden:"Hidden to all prescribers, excepted for the prescriber of the prescription",gmd:"Hidden to all prescribers, exepted for the author and my general practitioner (Global medical file)"}},AD="Print",oD="Delete prescription",sD={message:"Unfortunately the details of the prescription could not be retrieved. Please try again.",button:"Retrieve information"},lD="The requested information has been deleted or doesn't exist.",Dge={composition:KF,posology:XF,instructions:qF,startOfTreatment:$F,endOfTreatment:eD,validity:tD,patient:uD,prescriber:rD,prescribedOn:nD,reservation:iD,visibility:aD,print:AD,delete:oD,refresh:sD,noDetails:lD},cD={};bu(cD,{composition:()=>hD,default:()=>wge,delete:()=>yD,endOfTreatment:()=>gD,instructions:()=>ED,noDetails:()=>MD,patient:()=>pD,posology:()=>dD,prescribedOn:()=>CD,prescriber:()=>mD,print:()=>wD,refresh:()=>vD,reservation:()=>FD,startOfTreatment:()=>BD,validity:()=>fD,visibility:()=>DD});var hD="Composition",dD="Posologie",ED="Instructions",BD="Début du traitement",gD="Fin du traitement",fD="Valide jusqu’au",pD="Bénéficiaire",mD="Prescripteur",CD="Prescrit le",FD={pharmacy:"Réservée à",nihdi:"Réservée à la pharmacie avec numéro INAMI",reserve:"Réserver",cancel:"Annuler la réservation"},DD={modify:"Modifier",pharmacy:{visible:"Visible pour toutes les pharmacies (retrait avec eID ou code-barres de la prescription)",hidden:"Masquée pour toutes les pharmacies (retrait uniquement avec code-barres de la prescription)",name:"Masquée sauf pour",nihdi:"Masquée sauf pour la pharmacie avec numéro INAMI",tip:"(retrait avec eID ou code-barres de la prescription)"},prescriber:{visible:"Visible pour tous les prescripteurs",hidden:"Masquée pour tous les prescripteurs sauf l'auteur de la prescription",gmd:"Masquée pour tous les prescripteurs sauf l'auteur et mon médecin généraliste (Dossier médical global)"}},wD="Imprimer",yD="Supprimer la prescription",vD={message:"Malheureusement, il n’a pas été possible de retrouver les détails de la prescription. Essayez-vous à nouveau?",button:"Rechercher des informations"},MD="La prescription demandée a été supprimée ou n'existe pas.",wge={composition:hD,posology:dD,instructions:ED,startOfTreatment:BD,endOfTreatment:gD,validity:fD,patient:pD,prescriber:mD,prescribedOn:CD,reservation:FD,visibility:DD,print:wD,delete:yD,refresh:vD,noDetails:MD},xD={};bu(xD,{composition:()=>bD,default:()=>yge,delete:()=>PD,endOfTreatment:()=>SD,instructions:()=>QD,noDetails:()=>OD,patient:()=>TD,posology:()=>ID,prescribedOn:()=>zD,prescriber:()=>YD,print:()=>UD,refresh:()=>GD,reservation:()=>ND,startOfTreatment:()=>RD,validity:()=>kD,visibility:()=>_D});var bD="Samenstelling",ID="Posologie",QD="Instructies",RD="Startdatum van de behandeling",SD="Einddatum van de behandeling",kD="Geldig tot",TD="Rechthebbende",YD="Voorschrijver",zD="Voorgeschreven op",ND={pharmacy:"Gereserveerd bij",nihdi:"Gereserveerd bij apotheek met RIZIV-nummer",reserve:"Reserveren",cancel:"Reservatie annuleren"},_D={modify:"Wijzigen",pharmacy:{visible:"Zichtbaar voor alle apotheken (ophalen met eID of barcode op het voorschrift)",hidden:"Verborgen voor alle apotheken (ophalen enkel met barcode op het voorschrift)",name:"Verborgen, behalve voor",nihdi:"Verborgen, behalve voor apotheek met RIZIV-nummer",tip:"(ophalen met eID of barcode op het voorschrift)"},prescriber:{visible:"Zichtbaar voor alle voorschrijvers",hidden:"Verborgen voor alle voorschrijvers behalve voor de voorschrijver van het voorschrift",gmd:"Verborgen voor alle voorschrijvers behalve de auteur en mijn huisarts (Globaal Medisch Dossier)"}},UD="Afdrukken",PD="Verwijder voorschrift",GD={message:"Het is jammer genoeg niet gelukt de details van het voorschrift op te halen. Probeert u het even opnieuw?",button:"Informatie ophalen"},OD="Het gevraagde voorschrift is verwijderd of bestaat niet.",yge={composition:bD,posology:ID,instructions:QD,startOfTreatment:RD,endOfTreatment:SD,validity:kD,patient:TD,prescriber:YD,prescribedOn:zD,reservation:ND,visibility:_D,print:UD,delete:PD,refresh:GD,noDetails:OD},vge={nl:xD,fr:cD,de:kF,en:ZF},jD={};bu(jD,{cancelReservation:()=>WD,default:()=>Mge,delete:()=>VD,reserve:()=>LD,visibility:()=>HD});var LD={title:"Reservierung in der Apotheke",searchZip:"Suche nach Postleitzahl",nameFilter:"Name der Apotheke",includeHospitalPharmacies:"Krankenhausapotheken einbeziehen (Reservierung spezifischer Medikamente)",headers:{name:"Name",street:"Straße",city:"Kommune",actions:"Maßnahmen"},type:{PHARMACY:"Öffentliche",HOSPITAL_PHARMACY:"Krankenhaus"},pharmaciesFound:"apotheke(n) gefunden",pharmaciesNotFound:"Es wurde keine Apotheke gefunden.",contact:{title:"Kontaktdaten",message:"Mit dieser Information kann der Apotheker Ihnen mitteilen, dass Ihre Bestellung fertig ist.",email:"E-Mail-Adresse",telephone:"Telefon"},cancel:"Abbrechen",confirm:"Reservierung bestätigen",select:"Auswählen",errors:{telephone:"Bitte geben Sie eine gültige Telefonnummer ein, damit der Apotheker Sie über Ihre Reservierung informieren kann.",email:"Bitte geben Sie eine korrekte E-Mail-Adresse ein, damit der Apotheker Sie über Ihre Reservierung informieren kann.",general:"Die Reservierung Ihres Verschreibung kann nicht registriert werden. Versuchen Sie es bitte noch einmal?",VIDIS_3140:"Sie haben dieses Verschreibung nur in dieser Apotheke sichtbar gemacht. Sie können keine andere Apotheke wählen, ohne vorher die Sichtbarkeit des Verschreibung zu ändern. (error_3140)"}},WD={title:"Reservierung löschen",description:"Achtung, Sie sind dabei, die Reservierung des verschriebenen Medikaments zu löschen.",confirm:"Reservierung löschen",cancel:"Abbrechen",error:"L’ordonnance ne peut pas être retirée. Essayez-vous à nouveau?"},HD={pharmacy:{title:"Sichtbarkeit der Verschreibung der Apotheken",isVisible:"Sichtbar für alle Apotheken (Abholung mit eIDs oder Barcodes der Verschreibung)",isHidden:"Ausgeblendet für alle Apotheken (Abholung nur mit Barcodes der Verschreibung)",isSpecific:"Ausgeblendet für alle Apotheken außer für die Ihrer Wahl (Abholung mit eIDs oder Barcodes der Verschreibung)"},prescriber:{title:"Sichtbarkeit der Verschreibung der Verschreibers",isVisible:"Sichtbar für alle Verschreibenden",isHidden:"Versteckt für alle Verschreibenden außer für den Verordner des Verschreibens",isGmd:"Versteckt für alle Verschreiber außer dem Autor und meinem Hausarzt (Global Medical Record)"},confirm:"Bestätigen",cancel:"Abbrechen",errors:{VIDIS_3100:"Die Sichtbarkeit Ihres Verschreibung muss in der gleichen Apotheke eingestellt werden, die für die Reservierung verwendet wurde. (VIDIS_3100)",general:"Die Sichtbarkeit Ihres Verschreibungs konnte nicht aktualisiert werden. Versuchen Sie es bitte noch einmal?"}},VD={title:"Verschreibung löschen",description:{part1:"Achtung, dieser Vorgang kann nicht rückgängig gemacht werden, die Verschreibung wird",partBold:"definitiv gelöscht",part2:". Sie können sie nicht mehr in der Apotheke einlösen."},confirm:"Verschreibung löschen",cancel:"Abbrechen",error:"Verschreibung konnte nicht gelöscht werden. Versuchen Sie es bitte noch einmal?"},Mge={reserve:LD,cancelReservation:WD,visibility:HD,delete:VD},JD={};bu(JD,{cancelReservation:()=>KD,default:()=>xge,delete:()=>qD,reserve:()=>ZD,visibility:()=>XD});var ZD={title:"Reserve with pharmacy",searchZip:"Search on post code",nameFilter:"Denomination of the pharmacy",includeHospitalPharmacies:"Include hospital pharmacies (reservation of specific medications)",headers:{name:"Name",street:"Street",city:"City",actions:"Actions"},type:{PHARMACY:"Public",HOSPITAL_PHARMACY:"Hospital"},pharmaciesFound:"pharmacy(ies) found in",pharmaciesNotFound:"No pharmacy was found.",contact:{title:"Contact details",message:"With this information, the pharmacist can let you know that your order is ready.",email:"E-mail",telephone:"Telephone"},cancel:"Cancel",confirm:"Confirm",select:"Select",errors:{telephone:"Please enter a valid telephone number.",email:"Please enter a correct email address.",general:"The reservation of your prescription cannot be registered. Please try again.",VIDIS_3140:"You have made this prescription visible You cannot chose another pharmacy without demonstrating first the visibility of the prescription. (error_3140)"}},KD={title:"Delete the reservation",description:"Warning: you are about to cancel the reservation of the prescribed medication",confirm:"Delete the reservation",cancel:"Cancel",error:"The reservation of your prescription cannot be cancelled. Please try again."},XD={pharmacy:{title:"Visibility of the prescription for pharmacists",isVisible:"Visible for all pharmacies (retrieve with eID or barcode on the prescription)",isHidden:"Hidden for all pharmacies (only retrieve with barcode on the prescription)",isSpecific:"Hidden for all pharmacies except the one I choose (retrieve with eID or barcode on the prescription)"},prescriber:{title:"Visibility of the prescription for the prescribers",isVisible:"Visible to all prescribers",isHidden:"Hidden to all prescribers, excepted for the prescriber of the prescription",isGmd:"Hidden to all prescribers, exepted for the author and my general practitioner (Global medical file)"},confirm:"Confirm",cancel:"Cancel",errors:{VIDIS_3100:"The visibility of your prescription must be established in the same pharmacy as the one used for the reservation. (VIDIS_3100)",general:"The visibility of your prescription cannot be modified. Please try again."}},qD={title:"Delete prescription",description:{part1:"Warning, this deletion is irreversible You prescription is",partBold:"permanently deleted",part2:", you may no longer use it with the pharmacy"},confirm:"Delete prescription",cancel:"Cancel",error:"The prescription cannot be deleted. Please try again."},xge={reserve:ZD,cancelReservation:KD,visibility:XD,delete:qD},$D={};bu($D,{cancelReservation:()=>t3,default:()=>bge,delete:()=>r3,reserve:()=>e3,visibility:()=>u3});var e3={title:"Réserver en pharmacie",searchZip:"Chercher via le code postal",nameFilter:"Dénomination de la pharmacie",includeHospitalPharmacies:"Inclure les pharmacies hospitalières (réservation de médicaments spécifiques)",headers:{name:"Nom",street:"Rue",city:"Commune",actions:"Actions"},type:{PHARMACY:"Publique",HOSPITAL_PHARMACY:"Hospitalière"},pharmaciesFound:"pharmacie(s) trouvé(s) à",pharmaciesNotFound:"Aucune pharmacie a été trouvée.",contact:{title:"Données de contact",message:"Grâce à ces informations, le pharmacien pourra vous notifier que votre commande est prête.",email:"E-mail",telephone:"Tel"},cancel:"Annuler",confirm:"Confirmer",select:"Sélectionner",errors:{telephone:"Veuillez entrer un numéro de téléphone valide afin que le pharmacien puisse vous tenir informé de votre réservation.",email:"Veuillez entrer une adresse courriel correcte afin que le pharmacien puisse vous tenir informé de votre réservation.",general:"La réservation de votre prescription ne peut pas être enregistrée. Essayez-vous à nouveau?",VIDIS_3140:"Vous n’avez rendu cette prescription visible que dans cette pharmacie. Vous ne pouvez pas choisir une autre pharmacie sans d’abord changer la visibilité de l’ordonnance. (error_3140)"}},t3={title:"Supprimer la réservation",description:"Attention, vous êtes sur le point d'annuler la réservation du médicament prescrit.",confirm:"Supprimer la réservation",cancel:"Annuler",error:"La réservation de votre prescription ne peut pas être annulée. Essayez-vous à nouveau?"},u3={pharmacy:{title:"Visibilité de la prescription par les pharmacies",isVisible:"Visible pour toutes les pharmacies (retrait avec eID ou code-barres de la prescription)",isHidden:"Masquée pour toutes les pharmacies (retrait uniquement avec code-barres de la prescription)",isSpecific:"Masquée pour toutes les pharmacies sauf celle de mon choix (retrait avec eID ou code-barres de la prescription)"},prescriber:{title:"Visibilité de la prescription par les prescripteurs",isVisible:"Visible pour tous les prescripteurs",isHidden:"Masquée pour tous les prescripteurs sauf l'auteur de la prescription",isGmd:"Masquée pour tous les prescripteurs sauf l'auteur et mon médecin généraliste (Dossier médical global)"},confirm:"Confirmer",cancel:"Annuler",errors:{VIDIS_3100:"La visibilité de votre prescription doit être définie dans la même pharmacie que celle utilisée pour la réservation. (VIDIS_3100)",general:"La visibilité de votre prescription n’a pas pu être mise à jour. Essayez-vous à nouveau?"}},r3={title:"Supprimer la prescription",description:{part1:"Attention, la suppression est irréversible. La prescription sera",partBold:"définitivement supprimée",part2:", vous ne pourrez plus l’utiliser en pharmacie."},confirm:"Supprimer la prescription",cancel:"Annuler",error:"L’ordonnance ne peut pas être retirée. Essayez-vous à nouveau?"},bge={reserve:e3,cancelReservation:t3,visibility:u3,delete:r3},n3={};bu(n3,{cancelReservation:()=>a3,default:()=>Ige,delete:()=>o3,reserve:()=>i3,visibility:()=>A3});var i3={title:"Reserveren bij apotheek",searchZip:"Op postcode zoeken",nameFilter:"Benaming van de apotheek",includeHospitalPharmacies:"Ziekenhuisapotheken opnemen (reservering van specifieke medicatie)",headers:{name:"Naam",street:"Straat",city:"Gemeente",actions:"Acties"},type:{PHARMACY:"Publiek",HOSPITAL_PHARMACY:"Ziekenhuis"},pharmaciesFound:"apotheek(en) gevonden in",pharmaciesNotFound:"Er werden geen apotheek gevonden.",contact:{title:"Contactgegevens",message:"Dankzij deze informatie kan de apotheker u laten weten dat uw bestelling klaar is.",email:"E-mail",telephone:"Telefoon"},cancel:"Annuleren",confirm:"Bevestigen",select:"Selecteren",errors:{telephone:"Gelieve een geldig telefoonnumer in te voeren.",email:"Gelieve een correct e-mailadres in te voeren.",general:"De reservatie van uw voorschrift kan niet worden geregistreerd. Probeert u het even opnieuw?",VIDIS_3140:"U heeft dit voorschrift enkel zichtbaar gemaakt in deze apotheek. U kan geen geen andere apotheek kiezen, zonder de zichtbaarheid van het voorschrift eerst te wijzigen. (error_3140)"}},a3={title:"Reservering verwijderen",description:"Opgelet, U staat op het punt de reservatie van de voorgeschreven medecatie te annuleren.",confirm:"Reservering verwijderen",cancel:"Annuleren",error:"De reservatie van uw voorschrift kan niet geannuleerd worden. Probeert u het even opnieuw?"},A3={pharmacy:{title:"Zichtbaarheid van het voorschrift voor apothekers",isVisible:"Zichtbaar voor alle apotheken (ophalen met eID of barcode op het voorschrift)",isHidden:"Verborgen voor alle apotheken (ophalen enkel met barcode op het voorschrift)",isSpecific:"Verborgen voor alle apotheken behalve die van mijn keuze (ophalen met eID of barcode op het voorschrift)"},prescriber:{title:"Zichtbaarheid van het voorschrift voor voorschrijvers",isVisible:"Zichtbaar voor alle voorschrijvers",isHidden:"Verborgen voor alle voorschrijvers behalve voor de voorschrijver van het voorschrift",isGmd:"Verborgen voor alle voorschrijvers behalve de auteur en mijn huisarts (Globaal Medisch Dossier)"},confirm:"Bevestigen",cancel:"Annuleren",errors:{VIDIS_3100:"De zichtbaarheid van uw voorschrift moet worden ingesteld in dezelfde apotheek als die voor de reservatie is gebruikt. (VIDIS_3100)",general:"De zichtbaarheid van uw voorschrift kan niet gewijzigd worden. Probeert u het even opnieuw?"}},o3={title:"Verwijder voorschrift",description:{part1:"Opgelet, deze verwijdering is onomkeerbaar. Uw voorschrift wordt",partBold:"definitief gewist",part2:", u kunt het niet meer gebruiken bij de apotheek"},confirm:"Verwijder voorschrift",cancel:"Annuleren",error:"Het voorschrift kan niet verwijderd worden. Probeert u het even opnieuw?"},Ige={reserve:i3,cancelReservation:a3,visibility:A3,delete:o3},Qge={nl:n3,fr:$D,de:jD,en:JD},s3={};bu(s3,{default:()=>Rge,noPrescriptions:()=>d3,of:()=>c3,posology:()=>h3,table:()=>l3});var l3={actions:"Maßnahmen",compound:"Verschreibungurarzneimittel",date:"Datum",filter:{full:"Vollständige Liste",hidden:"Versteckt",reserved:"Reserviert"},medication:"Medikation","open-detail":"Details",prescriber:"Verschreibende",prescriberName:"Verschreibende Person",selection:{print:"Drucken",selected:"Ausgewählt"},visibility:{title:"Sichtbarkeit",prescriber:"Verschreiber",pharmacy:"Apotheke"},reservation:{yes:"Ja",no:"Nein",title:"Reservierung",reserved:"reserviert"},title:{name:"Name",prescriber:"Verschreibende",validity:"Gültigkeit"},validityDate:"Ablaufdatum"},c3="der",h3={day:"Tag",week:"Woche",on:"am",during:"für"},d3="Es stehen keine Verschreibungen zur Anzeige zur Verfügung.",Rge={table:l3,of:c3,posology:h3,noPrescriptions:d3},E3={};bu(E3,{default:()=>Sge,noPrescriptions:()=>p3,of:()=>g3,posology:()=>f3,table:()=>B3});var B3={actions:"Actions",compound:"Magistral preparation",date:"Date",filter:{full:"Full list",hidden:"Hidden",reserved:"Reserved"},medication:"Medication","open-detail":"Details",prescriber:"Prescriber",prescriberName:"Prescriber",selection:{print:"Print",selected:"Selected"},visibility:{title:"Visibility",prescriber:"Prescriber",pharmacy:"Pharmacy"},reservation:{yes:"Yes",no:"No",title:"Reservation",reserved:"Reserved"},title:{name:"Name",prescriber:"Prescriber",validity:"Validity"},validityDate:"Validity"},g3="of",f3={day:"day ",week:"week",on:"on",during:"duri"},p3="There is no prescription to display",Sge={table:B3,of:g3,posology:f3,noPrescriptions:p3},m3={};bu(m3,{default:()=>kge,noPrescriptions:()=>w3,of:()=>F3,posology:()=>D3,table:()=>C3});var C3={actions:"Actions",compound:"Préparation magistrale",date:"Date",filter:{full:"Toute la liste",hidden:"Masquée(s)",reserved:"Réservée(s)"},medication:"Médicament(s)","open-detail":"Détails",prescriber:"Prescripteur",prescriberName:"Prescripteur",selection:{print:"Imprimer",selected:"Sélectionnée(s)"},visibility:{title:"Visibilité",prescriber:"Prescripteur",pharmacy:"Pharmacie"},reservation:{yes:"Oui",no:"Non",title:"Réservation",reserved:"réservée"},title:{name:"Nom",prescriber:"Prescripteur",validity:"Validité"},validityDate:"Validité"},F3="de",D3={day:"jour",week:"semaine",on:"le",during:"durant"},w3="Il n’y a aucune prescription à afficher.",kge={table:C3,of:F3,posology:D3,noPrescriptions:w3},y3={};bu(y3,{default:()=>Tge,noPrescriptions:()=>b3,of:()=>M3,posology:()=>x3,table:()=>v3});var v3={actions:"Acties",compound:"Magistrale bereiding",date:"Datum",filter:{full:"Volledige lijst",hidden:"Verborgen",reserved:"Gereserveerd"},medication:"Geneesmiddel(en)","open-detail":"Details",prescriber:"Voorschrijver",prescriberName:"Voorschrijver",selection:{print:"Afdrukken",selected:"Geselecteerd"},visibility:{title:"Zichtbaarheid",prescriber:"Voorschrijver",pharmacy:"Apotheek"},reservation:{yes:"Ja",no:"Nee",title:"Reservatie",reserved:"gereserveerd"},title:{name:"Naam",prescriber:"Voorschrijver",validity:"Geldigheid"},validityDate:"Geldigheid"},M3="van",x3={day:"dag",week:"week",on:"op",during:"gedurende"},b3="Er zijn geen voorschriften om weer te geven.",Tge={table:v3,of:M3,posology:x3,noPrescriptions:b3},Yge={nl:y3,fr:m3,de:s3,en:E3},I3={};bu(I3,{contentElectronicPrescription:()=>Q3,date:()=>R3,default:()=>zge,endDate:()=>S3,guideline:()=>k3,header:()=>T3,nihdi:()=>Y3,patient:()=>N3,prescriber:()=>_3,proofOfElectronicPrescription:()=>U3,remark:()=>P3,ssin:()=>z3,treatmentEndDate:()=>G3,treatmentStartDate:()=>O3});var Q3="Inhalt der elektronischen Verschreibung",R3="Datum",S3="Enddatum für die Ausführung",k3="Bitte legen Sie Ihrem Apotheker diesen Beleg vor, damit dieser den Barcode scannen und Ihnen die verschriebenen Arzneimittel aushändigen kann",T3={title:"Welche Möglichkeiten gibt es für Sie, ",titleBold:"um mit der Apotheke Kontakt aufzunehmen, wenn Sie diesen Beleg verloren haben?",option1:"Über Meine Gesundheit.belgien.be – Myhealthviewer – App Meine Medikamente oder jegliche andere App - Sie legen Ihrem Apotheker diese Verschreibung vor, damit er den Barcode einlesen kann.",option2:"Sie können ebenso die verschriebenen Produkte mithilfe Ihrer eID",option2Bracket:"(oder mit Ihrer nationalen Registernummer, wenn Ihr eID bereits vor weniger als 15 Monaten in der Apotheke, wo Sie Ihre Medikamente abholen, gescannt wurde)"},Y3="LIKIV-Nummer",z3="ENSS",N3="Begünstigte(r)",_3="Verschreiber",U3="Nachweis einer elektronischen Verschreibung",P3="Achtung: Jede handschriftliche Änderung dieses Beleges wird nicht berücksichtigt.",G3="Enddatum der Behandlung",O3="Startdatum der Behandlung",zge={contentElectronicPrescription:Q3,date:R3,endDate:S3,guideline:k3,header:T3,nihdi:Y3,ssin:z3,patient:N3,prescriber:_3,proofOfElectronicPrescription:U3,remark:P3,treatmentEndDate:G3,treatmentStartDate:O3},j3={};bu(j3,{contentElectronicPrescription:()=>L3,date:()=>W3,default:()=>Nge,endDate:()=>H3,guideline:()=>V3,header:()=>J3,nihdi:()=>Z3,patient:()=>X3,prescriber:()=>q3,proofOfElectronicPrescription:()=>$3,remark:()=>ew,ssin:()=>K3,treatmentEndDate:()=>tw,treatmentStartDate:()=>uw});var L3="Content of the electronic prescription",W3="Date",H3="End date of the practicability",V3="Please submit this document to your pharmacist so that he cas scan the barcode and deliver the medication prescribed.",J3={title:"What options do you have to",titleBold:"go the pharmacy if you have lost that document? ",option1:"With Myhealth.be – Myhealthviewer – the Mijn geneesmiddelen/Mes médicaments App or any other App, you can show your prescription to the pharmacist, who will scan the barcode.",option2:"You can also retrieve your products with your eID.",option2Bracket:"(or your national registration number if your eID has already been read by the pharmacist who provided you the products in the last 15 months)"},Z3="NIHDI number",K3="NISS",X3="Beneficiary",q3="Prescriber",$3="Proof of electronic prescription",ew="Warning: handwritten additions to this document will not be taken into account.",tw="End date of the treatment",uw="Beginning date of the treatment ",Nge={contentElectronicPrescription:L3,date:W3,endDate:H3,guideline:V3,header:J3,nihdi:Z3,ssin:K3,patient:X3,prescriber:q3,proofOfElectronicPrescription:$3,remark:ew,treatmentEndDate:tw,treatmentStartDate:uw},rw={};bu(rw,{contentElectronicPrescription:()=>nw,date:()=>iw,default:()=>_ge,endDate:()=>aw,guideline:()=>Aw,header:()=>ow,nihdi:()=>sw,patient:()=>cw,prescriber:()=>hw,proofOfElectronicPrescription:()=>dw,remark:()=>Ew,ssin:()=>lw,treatmentEndDate:()=>Bw,treatmentStartDate:()=>gw});var nw="Contenu de la prescription électronique",iw="Date",aw="Date de fin pour l’exécution",Aw="Veuillez présenter ce document à votre pharmacien pour scanner le code-barres et vous délivrer les médicaments prescrits.",ow={title:"De quelles options disposez-vous pour",titleBold:"vous rendre à la pharmacie si vous avez perdu ce document ?",option1:"Via Masanté.be – Myhealthviewer – App Mesmédicaments ou toute autre App, vous pouvez montrer votre prescription au pharmacien, qui lira le code-barres . ",option2:"Vous pouvez également aller chercher les produits prescrits avec votre e-ID",option2Bracket:"(ou avec votre numéro de registre national si votre eID a déjà été scannée il y a moins de 15 mois à la pharmacie où vous retirez vos médicaments)"},sw="N° INAMI",lw="NISS",cw="Bénéficiaire",hw="Prescripteur",dw="Preuve de prescription électronique",Ew="Attention: Aucun ajout manuscrit à ce document ne sera pris en compte. ",Bw="Fin du traitement",gw="Début du traitement",_ge={contentElectronicPrescription:nw,date:iw,endDate:aw,guideline:Aw,header:ow,nihdi:sw,ssin:lw,patient:cw,prescriber:hw,proofOfElectronicPrescription:dw,remark:Ew,treatmentEndDate:Bw,treatmentStartDate:gw},fw={};bu(fw,{contentElectronicPrescription:()=>pw,date:()=>mw,default:()=>Uge,endDate:()=>Cw,guideline:()=>Fw,header:()=>Dw,nihdi:()=>ww,patient:()=>vw,prescriber:()=>Mw,proofOfElectronicPrescription:()=>xw,remark:()=>bw,ssin:()=>yw,treatmentEndDate:()=>Iw,treatmentStartDate:()=>Qw});var pw="Inhoud van het elektronisch voorschrift",mw="Datum",Cw="Einddatum van de uitvoerbaarheid",Fw="Gelieve dit document voor te leggen aan uw apotheker om de barcode te scannen en de voorgeschreven geneesmiddelen af te leveren.",Dw={title:"Welke opties heeft u om",titleBold:"naar de apotheek te gaan indien u dit document verloren zou zijn?",option1:"Via Mijngezondheid.be – Myhealthviewer – Mijngeneesmiddelen App of elke andere App, kan u uw voorschrift tonen aan de apotheker, die de barcode zal scannen.",option2:"Daarnaast kan u ook met uw e-ID uw producten afhalen",option2Bracket:"(of uw rijksregisternummer als uw e-ID reeds werd gelezen door de apotheker die u de producten heeft afgeleverd in de voorbije 15 maanden)"},ww="RIZIV-nr.",yw="INSZ",vw="Rechthebbende",Mw="Voorschrijver",xw="Bewijs van elektronisch voorschrift",bw="Opgelet: met manuele toevoegingen op dit document zal geen rekening gehouden worden.",Iw="Einddatum van de behandeling",Qw="Startdatum van de behandeling",Uge={contentElectronicPrescription:pw,date:mw,endDate:Cw,guideline:Fw,header:Dw,nihdi:ww,ssin:yw,patient:vw,prescriber:Mw,proofOfElectronicPrescription:xw,remark:bw,treatmentEndDate:Iw,treatmentStartDate:Qw},Pge={nl:fw,fr:rw,de:I3,en:j3},Rw={};bu(Rw,{"00001":()=>Sw,"00002":()=>kw,"00003":()=>Tw,"00004":()=>Yw,"00005":()=>zw,"00006":()=>Nw,"00007":()=>_w,"00008":()=>Uw,"00009":()=>Pw,"00010":()=>Gw,"00011":()=>Ow,"00012":()=>jw,"00013":()=>Lw,"00014":()=>Ww,"00015":()=>Hw,"00016":()=>Vw,"00017":()=>Jw,"00018":()=>Zw,"00019":()=>Kw,"00020":()=>Xw,"00021":()=>qw,"00022":()=>$w,"00023":()=>ey,"00024":()=>ty,"00025":()=>uy,"00026":()=>ry,"00027":()=>ny,"00028":()=>iy,"00029":()=>ay,"00030":()=>Ay,ampoule:()=>ky,bandage:()=>by,bottle:()=>Ty,box:()=>Qy,cm:()=>oy,default:()=>Gge,dropsperminute:()=>sy,"effervescent-tablet":()=>My,gm:()=>ly,internationalunits:()=>cy,iu:()=>yy,liter:()=>Ry,"mck/h":()=>hy,"mck/kg/minute":()=>dy,measure:()=>Ey,meq:()=>Dy,mg:()=>Cy,"mg/h":()=>By,"mg/ml":()=>Fy,micrograms:()=>xy,miu:()=>wy,"ml/h":()=>gy,mmol:()=>vy,piece:()=>Iy,syringe:()=>Sy,"syringe-ampoule":()=>Yy,tbl:()=>fy,tsp:()=>py,"unt/h":()=>my});var Sw="{count, plural, one{kaffeelöffel (5 ml)} other{kaffeelöffellen (5 ml)}}",kw="{count, plural, one{Ampulle} other{Ampullen}}",Tw="anwenden",Yw="{count, plural, one{Kapsel} other{Kapseln}}",zw="{count, plural, one{Tablette} other{Tabletten}}",Nw="Dosis",_w="{count, plural, one{Tropf} other{Tropfen}}",Uw="{count, plural, one{Fläsche} other{Fläschchen}}",Pw="{count, plural, one{Implantat} other{Implantate}}",Gw="{count, plural, one{Infusion} other{Infusionen}}",Ow="{count, plural, one{Inhalation} other{Inhalationen}}",jw="Einstechen",Lw="Kaugummi",Ww="{count, plural, one{Kompresse} other{Kompressen}}",Hw="{count, plural, one{Einlauf} other{Einläufe}}",Vw="ml",Jw="Ov.",Zw="{count, plural, one{Perle} other{Perlen}}",Kw="{count, plural, one{Pastille} other{Pastillen}}",Xw="Pflaster",qw="cart",$w="Pen",ey="{count, plural, one{Puff} other{Puffs}}",ty="{count, plural, one{Schwamm} other{Schwämme}}",uy="{count, plural, one{Stift} other{Stifte}}",ry="Suppo",ny="Tube",iy="{count, plural, one{Docht} other{Dochte}}",ay="Beutel",Ay="Beutel",oy="Zentimeter",sy="{count, plural, one{Tropf pro Minute} other{Tropfen pro Minute}}",ly="Gramm",cy="{count, plural, one{Internationale Einheit} other{Internationale Einheiten}}",hy="Mikrogramm pro Stunde",dy="Mikrogramm pro Kilogramm pro Minute",Ey="Maß",By="Miligramm pro Stunde",gy="Milliliter pro Stunde",fy="Esslöffel",py="Kaffeelöffel",my="{count, plural, one{Einheit pro Stunde} other{Einheiten pro Stunde}}",Cy="Milligramm",Fy="Milligramm pro Millimeter",Dy="meq",wy="miu",yy="iu",vy="mmol",My="effervescent-tablet",xy="micrograms",by="{count, plural, one{bandage} other{bandagen}}",Iy="{count, plural, one{stück} other{stücke}}",Qy="schachteln",Ry="liter",Sy="{count, plural, one{spritze} other{spritzen}}",ky="{count, plural, one{glühbirn} other{glühbirnen}}",Ty="{count, plural, one{Fläsche} other{Fläschchen}}",Yy="{count, plural, one{spritze-ampulle} other{spritzen-ampulle}}",Gge={"00001":Sw,"00002":kw,"00003":Tw,"00004":Yw,"00005":zw,"00006":Nw,"00007":_w,"00008":Uw,"00009":Pw,"00010":Gw,"00011":Ow,"00012":jw,"00013":Lw,"00014":Ww,"00015":Hw,"00016":Vw,"00017":Jw,"00018":Zw,"00019":Kw,"00020":Xw,"00021":qw,"00022":$w,"00023":ey,"00024":ty,"00025":uy,"00026":ry,"00027":ny,"00028":iy,"00029":ay,"00030":Ay,cm:oy,dropsperminute:sy,gm:ly,internationalunits:cy,"mck/h":hy,"mck/kg/minute":dy,measure:Ey,"mg/h":By,"ml/h":gy,tbl:fy,tsp:py,"unt/h":my,mg:Cy,"mg/ml":Fy,meq:Dy,miu:wy,iu:yy,mmol:vy,"effervescent-tablet":My,micrograms:xy,bandage:by,piece:Iy,box:Qy,liter:Ry,syringe:Sy,ampoule:ky,bottle:Ty,"syringe-ampoule":Yy},zy={};bu(zy,{"00001":()=>Ny,"00002":()=>_y,"00003":()=>Uy,"00004":()=>Py,"00005":()=>Gy,"00006":()=>Oy,"00007":()=>jy,"00008":()=>Ly,"00009":()=>Wy,"00010":()=>Hy,"00011":()=>Vy,"00012":()=>Jy,"00013":()=>Zy,"00014":()=>Ky,"00015":()=>Xy,"00016":()=>qy,"00017":()=>$y,"00018":()=>ev,"00019":()=>tv,"00020":()=>uv,"00021":()=>rv,"00022":()=>nv,"00023":()=>iv,"00024":()=>av,"00025":()=>Av,"00026":()=>ov,"00027":()=>sv,"00028":()=>lv,"00029":()=>cv,"00030":()=>hv,ampoule:()=>_v,bandage:()=>kv,bottle:()=>Uv,box:()=>Yv,cm:()=>dv,default:()=>Oge,dropsperminute:()=>Ev,"effervescent-tablet":()=>Rv,gm:()=>Bv,internationalunits:()=>gv,iu:()=>Iv,liter:()=>zv,"mck/h":()=>fv,"mck/kg/minute":()=>pv,measure:()=>mv,meq:()=>xv,mg:()=>vv,"mg/h":()=>Cv,"mg/ml":()=>Mv,micrograms:()=>Sv,miu:()=>bv,"ml/h":()=>Fv,mmol:()=>Qv,piece:()=>Tv,syringe:()=>Nv,"syringe-ampoule":()=>Pv,tbl:()=>Dv,tsp:()=>wv,"unt/h":()=>yv});var Ny="{count, plural, one{Teaspoon (5 ml)} other{Teaspoons (5 ml)}}",_y="{count, plural, one{ampoule} other{ampoules}}",Uy="applic.",Py="{count, plural, one{capsule} other{capsules}}",Gy="{count, plural, one{tablet} other{tablets}}",Oy="{count, plural, one{dose} other{doses}}",jy="{count, plural, one{drop} other{drops}}",Ly="{count, plural, one{bottle} other{bottles}}",Wy="{count, plural, one{implant} other{implants}}",Hy="{count, plural, one{perfusion} other{perfusions}}",Vy="{count, plural, one{inhalation} other{inhalations}}",Jy="insert",Zy="{count, plural, one{chewing gum} other{chewing gums}}",Ky="{count, plural, one{compress} other{compresses}}",Xy="enema",qy="ml",$y="{count, plural, one{ovule} other{ovules}}",ev="{count, plural, one{pearl} other{pearls}}",tv="{count, plural, one{pastille} other{pastilles}}",uv="{count, plural, one{patch} other{patches}}",rv="{count, plural, one{cartridge} other{cartridges}}",nv="{count, plural, one{pen} other{pens}}",iv="{count, plural, one{puff} other{puffs}}",av="{count, plural, one{sponge} other{sponges}}",Av="{count, plural, one{stylo} other{stylos}}",ov="{count, plural, one{supository} other{supositories}}",sv="{count, plural, one{tube} other{tubes}}",lv="{count, plural, one{wick} other{wicks}}",cv="{count, plural, one{bag} other{bags}}",hv="{count, plural, one{small bag} other{small bags}}",dv="centimeter",Ev="{count, plural, one{drop per minute} other{drops per minute}}",Bv="gram",gv="international units",fv="microgram per hour",pv="microgram per kilogram per minute",mv="{count, plural, one{measure} other{measures}}",Cv="milligram per hour",Fv="milliliter per hour",Dv="{count, plural, one{tablespoon} other{tablespoons}}",wv="{count, plural, one{teaspoon} other{teaspoons}}",yv="{count, plural, one{unit per hour} other{units per hour}}",vv="milligram",Mv="milligram per milliliter",xv="milli-equivalent",bv="miu",Iv="international units",Qv="millimole",Rv="{count, plural, one{effervescent tablet} other{effervescent tablets}}",Sv="microgram",kv="{count, plural, one{bandage} other{bandages}}",Tv="{count, plural, one{piece} other{pieces}}",Yv="{count, plural, one{spray} other{sprays}}",zv="liter",Nv="{count, plural, one{syringe} other{syringes}}",_v="{count, plural, one{ampoule} other{ampoules}}",Uv="{count, plural, one{bottle} other{bottles}}",Pv="{count, plural, one{syringe ampoule} other{syringe ampoules}}",Oge={"00001":Ny,"00002":_y,"00003":Uy,"00004":Py,"00005":Gy,"00006":Oy,"00007":jy,"00008":Ly,"00009":Wy,"00010":Hy,"00011":Vy,"00012":Jy,"00013":Zy,"00014":Ky,"00015":Xy,"00016":qy,"00017":$y,"00018":ev,"00019":tv,"00020":uv,"00021":rv,"00022":nv,"00023":iv,"00024":av,"00025":Av,"00026":ov,"00027":sv,"00028":lv,"00029":cv,"00030":hv,cm:dv,dropsperminute:Ev,gm:Bv,internationalunits:gv,"mck/h":fv,"mck/kg/minute":pv,measure:mv,"mg/h":Cv,"ml/h":Fv,tbl:Dv,tsp:wv,"unt/h":yv,mg:vv,"mg/ml":Mv,meq:xv,miu:bv,iu:Iv,mmol:Qv,"effervescent-tablet":Rv,micrograms:Sv,bandage:kv,piece:Tv,box:Yv,liter:zv,syringe:Nv,ampoule:_v,bottle:Uv,"syringe-ampoule":Pv},Gv={};bu(Gv,{"00001":()=>Ov,"00002":()=>jv,"00003":()=>Lv,"00004":()=>Wv,"00005":()=>Hv,"00006":()=>Vv,"00007":()=>Jv,"00008":()=>Zv,"00009":()=>Kv,"00010":()=>Xv,"00011":()=>qv,"00012":()=>$v,"00013":()=>eM,"00014":()=>tM,"00015":()=>uM,"00016":()=>rM,"00017":()=>nM,"00018":()=>iM,"00019":()=>aM,"00020":()=>AM,"00021":()=>oM,"00022":()=>sM,"00023":()=>lM,"00024":()=>cM,"00025":()=>hM,"00026":()=>dM,"00027":()=>EM,"00028":()=>BM,"00029":()=>gM,"00030":()=>fM,ampoule:()=>jM,bandage:()=>_M,bottle:()=>LM,box:()=>PM,cm:()=>pM,default:()=>jge,dropsperminute:()=>mM,"effervescent-tablet":()=>zM,gm:()=>CM,internationalunits:()=>FM,iu:()=>TM,liter:()=>GM,"mck/h":()=>DM,"mck/kg/minute":()=>wM,measure:()=>yM,meq:()=>SM,mg:()=>QM,"mg/h":()=>vM,"mg/ml":()=>RM,micrograms:()=>NM,miu:()=>kM,"ml/h":()=>MM,mmol:()=>YM,piece:()=>UM,syringe:()=>OM,"syringe-ampoule":()=>WM,tbl:()=>xM,tsp:()=>bM,"unt/h":()=>IM});var Ov="{count, plural, one{cuillère à café (5 ml)} other{cuillères à café (5 ml)}}",jv="amp.",Lv="applic.",Wv="caps.",Hv="compr.",Vv="{count, plural, one{dose} other{doses}}",Jv="{count, plural, one{goutte} other{gouttes}}",Zv="flac.",Kv="{count, plural, one{implant} other{implants}}",Xv="{count, plural, one{perfusion} other{perfusions}}",qv="{count, plural, one{inhalation} other{inhalations}}",$v="insert",eM="{count, plural, one{gomme à mâcher} other{gommes à mâcher}}",tM="{count, plural, one{compres(se)} other{compres(ses)}}",uM="{count, plural, one{lavement} other{lavements}}",rM="ml",nM="ov.",iM="{count, plural, one{perle} other{perles}}",aM="{count, plural, one{pastille} other{pastilles}}",AM="{count, plural, one{patch} other{patchs}}",oM="patr.",sM="{count, plural, one{stylo} other{stylos}}",lM="{count, plural, one{puff} other{puffs}}",cM="{count, plural, one{éponge} other{éponges}}",hM="{count, plural, one{stylo} other{stylos}}",dM="suppo",EM="{count, plural, one{tube} other{tubes}}",BM="{count, plural, one{mèche} other{mèches}}",gM="{count, plural, one{sac} other{sacs}}",fM="{count, plural, one{sachet} other{sachets}}",pM="{count, plural, one{centimètre} other{centimètres}}",mM="{count, plural, one{goute par minute} other{goutes par minute}}",CM="{count, plural, one{gramme} other{grammes}}",FM="{count, plural, one{unité internationales} other{unités internationales}}",DM="{count, plural, one{microgramme par heure} other{microgrammes par heure}}",wM="{count, plural, one{microgramme par kilogramme par minute} other{microgrammes par kilogramme par minute}}",yM="{count, plural, one{mesure} other{mesures}}",vM="{count, plural, one{milligramme par heure} other{milligrammes par heure}}",MM="{count, plural, one{millilitre par heure} other{millilitres par heure}}",xM="{count, plural, one{cuillère à soupe} other{cuillères à soupe}}",bM="{count, plural, one{cuillère à café} other{cuillères à café}}",IM="{count, plural, one{unité par heure} other{unités par heure}}",QM="{count, plural, one{miligramme} other{miligrammes}}",RM="{count, plural, one{milligramme par millimètre} other{milligrammes par millimètre}}",SM="milli-équivalent",kM="miu",TM="{count, plural, one{unité internationales} other{unités internationales}}",YM="millimol",zM="{count, plural, one{comprimé effervescent} other{comprimés effervescents}}",NM="{count, plural, one{microgramme} other{microgrammes}}",_M="{count, plural, one{bandage} other{bandages}}",UM="{count, plural, one{pièce} other{pièces}}",PM="{count, plural, one{vaporisateur} other{vaporisateurs}}",GM="{count, plural, one{litre} other{litres}}",OM="{count, plural, one{seringue} other{seringues}}",jM="{count, plural, one{ampoule} other{ampoules}}",LM="{count, plural, one{fiole} other{fioles}}",WM="{count, plural, one{ampoule de seringue} other{ampoules de seringue}}",jge={"00001":Ov,"00002":jv,"00003":Lv,"00004":Wv,"00005":Hv,"00006":Vv,"00007":Jv,"00008":Zv,"00009":Kv,"00010":Xv,"00011":qv,"00012":$v,"00013":eM,"00014":tM,"00015":uM,"00016":rM,"00017":nM,"00018":iM,"00019":aM,"00020":AM,"00021":oM,"00022":sM,"00023":lM,"00024":cM,"00025":hM,"00026":dM,"00027":EM,"00028":BM,"00029":gM,"00030":fM,cm:pM,dropsperminute:mM,gm:CM,internationalunits:FM,"mck/h":DM,"mck/kg/minute":wM,measure:yM,"mg/h":vM,"ml/h":MM,tbl:xM,tsp:bM,"unt/h":IM,mg:QM,"mg/ml":RM,meq:SM,miu:kM,iu:TM,mmol:YM,"effervescent-tablet":zM,micrograms:NM,bandage:_M,piece:UM,box:PM,liter:GM,syringe:OM,ampoule:jM,bottle:LM,"syringe-ampoule":WM},HM={};bu(HM,{"00001":()=>VM,"00002":()=>JM,"00003":()=>ZM,"00004":()=>KM,"00005":()=>XM,"00006":()=>qM,"00007":()=>$M,"00008":()=>ex,"00009":()=>tx,"00010":()=>ux,"00011":()=>rx,"00012":()=>nx,"00013":()=>ix,"00014":()=>ax,"00015":()=>Ax,"00016":()=>ox,"00017":()=>sx,"00018":()=>lx,"00019":()=>cx,"00020":()=>hx,"00021":()=>dx,"00022":()=>Ex,"00023":()=>Bx,"00024":()=>gx,"00025":()=>fx,"00026":()=>px,"00027":()=>mx,"00028":()=>Cx,"00029":()=>Fx,"00030":()=>Dx,ampoule:()=>Jx,bandage:()=>jx,bottle:()=>Zx,box:()=>Wx,cm:()=>wx,default:()=>Lge,dropsperminute:()=>yx,"effervescent-tablet":()=>Gx,gm:()=>vx,internationalunits:()=>Mx,iu:()=>Ux,liter:()=>Hx,"mck/h":()=>xx,"mck/kg/minute":()=>bx,measure:()=>Ix,meq:()=>Nx,mg:()=>Yx,"mg/h":()=>Qx,"mg/ml":()=>zx,micrograms:()=>Ox,miu:()=>_x,"ml/h":()=>Rx,mmol:()=>Px,piece:()=>Lx,syringe:()=>Vx,"syringe-ampoule":()=>Kx,tbl:()=>Sx,tsp:()=>kx,"unt/h":()=>Tx});var VM="{count, plural, one{Koffielepel (5 ml)} other{Koffielepels (5 ml)}}",JM="{count, plural, one{ampule} other{ampullen}}",ZM="aanbrengen",KM="{count, plural, one{capsule} other{capsules}}",XM="{count, plural, one{tablet} other{tabletten}}",qM="{count, plural, one{dose} other{dosissen}}",$M="{count, plural, one{druppel} other{druppels}}",ex="{count, plural, one{flesje} other{flesjes}}",tx="{count, plural, one{implantaat} other{implantaten}}",ux="{count, plural, one{infuus} other{infusen}}",rx="{count, plural, one{inhalatie} other{inhalaties}}",nx="inbrengen",ix="{count, plural, one{kauwgom} other{kauwgommen}}",ax="{count, plural, one{kompres} other{kompressen}}",Ax="lavement",ox="ml",sx="{count, plural, one{ovule} other{ovules}}",lx="{count, plural, one{parel} other{parels}}",cx="{count, plural, one{pastille} other{pastilles}}",hx="{count, plural, one{pleister} other{pleisters}}",dx="{count, plural, one{patroon} other{patronen}}",Ex="{count, plural, one{pen} other{pennen}}",Bx="{count, plural, one{puff} other{puffs}}",gx="{count, plural, one{spons} other{sponsen}}",fx="{count, plural, one{stylo} other{stylos}}",px="{count, plural, one{zetpil} other{zetpillen}}",mx="{count, plural, one{tube} other{tubes}}",Cx="{count, plural, one{wiek} other{wieken}}",Fx="{count, plural, one{zak} other{zakken}}",Dx="{count, plural, one{zakje} other{zakjes}}",wx="centimeter",yx="{count, plural, one{druppel per minuut} other{druppels per minuut}}",vx="gram",Mx="internationale eenheden",xx="microgram per uur",bx="microgram per kilogram per minuut",Ix="{count, plural, one{maat} other{maten}}",Qx="milligram per uur",Rx="milliliter per uur",Sx="{count, plural, one{eetlepel} other{eetlepels}}",kx="{count, plural, one{koffielepel} other{koffielepels}}",Tx="{count, plural, one{eenheid per uur} other{eenheden per uur}}",Yx="miligram",zx="miligram per milimeter",Nx="milli-equivalent",_x="miu",Ux="internationale eenheden",Px="millimol",Gx="{count, plural, one{bruistablet} other{bruistabletten}}",Ox="microgram",jx="{count, plural, one{verband} other{verbanden}}",Lx="{count, plural, one{stuk} other{stuks}}",Wx="{count, plural, one{verstuiving} other{verstuivingen}}",Hx="liter",Vx="{count, plural, one{spuit} other{spuiten}}",Jx="{count, plural, one{ampul} other{ampullen}}",Zx="{count, plural, one{fles} other{flessen}}",Kx="{count, plural, one{spuitampul} other{spuitampullen}}",Lge={"00001":VM,"00002":JM,"00003":ZM,"00004":KM,"00005":XM,"00006":qM,"00007":$M,"00008":ex,"00009":tx,"00010":ux,"00011":rx,"00012":nx,"00013":ix,"00014":ax,"00015":Ax,"00016":ox,"00017":sx,"00018":lx,"00019":cx,"00020":hx,"00021":dx,"00022":Ex,"00023":Bx,"00024":gx,"00025":fx,"00026":px,"00027":mx,"00028":Cx,"00029":Fx,"00030":Dx,cm:wx,dropsperminute:yx,gm:vx,internationalunits:Mx,"mck/h":xx,"mck/kg/minute":bx,measure:Ix,"mg/h":Qx,"ml/h":Rx,tbl:Sx,tsp:kx,"unt/h":Tx,mg:Yx,"mg/ml":zx,meq:Nx,miu:_x,iu:Ux,mmol:Px,"effervescent-tablet":Gx,micrograms:Ox,bandage:jx,piece:Lx,box:Wx,liter:Hx,syringe:Vx,ampoule:Jx,bottle:Zx,"syringe-ampoule":Kx},Wge={nl:HM,fr:Gv,de:Rw,en:zy},Xx={};bu(Xx,{default:()=>Hge,friday:()=>ub,monday:()=>qx,saturday:()=>rb,sunday:()=>nb,thursday:()=>tb,tuesday:()=>$x,wednesday:()=>eb});var qx="Montag",$x="Dienstag",eb="Mittwoch",tb="Donnerstag",ub="Freitag",rb="Samstag",nb="Sonntag",Hge={monday:qx,tuesday:$x,wednesday:eb,thursday:tb,friday:ub,saturday:rb,sunday:nb},ib={};bu(ib,{default:()=>Vge,friday:()=>lb,monday:()=>ab,saturday:()=>cb,sunday:()=>hb,thursday:()=>sb,tuesday:()=>Ab,wednesday:()=>ob});var ab="Monday",Ab="Tuesday",ob="Wednesday",sb="Thursday",lb="Friday",cb="Saturday",hb="Sunday",Vge={monday:ab,tuesday:Ab,wednesday:ob,thursday:sb,friday:lb,saturday:cb,sunday:hb},db={};bu(db,{default:()=>Jge,friday:()=>pb,monday:()=>Eb,saturday:()=>mb,sunday:()=>Cb,thursday:()=>fb,tuesday:()=>Bb,wednesday:()=>gb});var Eb="Lundi",Bb="Mardi",gb="Mercredi",fb="Jeudi",pb="Vendredi",mb="Samedi",Cb="Dimanche",Jge={monday:Eb,tuesday:Bb,wednesday:gb,thursday:fb,friday:pb,saturday:mb,sunday:Cb},Fb={};bu(Fb,{default:()=>Zge,friday:()=>Mb,monday:()=>Db,saturday:()=>xb,sunday:()=>bb,thursday:()=>vb,tuesday:()=>wb,wednesday:()=>yb});var Db="Maandag",wb="Dinsdag",yb="Woensdag",vb="Donderdag",Mb="Vrijdag",xb="Zaterdag",bb="Zondag",Zge={monday:Db,tuesday:wb,wednesday:yb,thursday:vb,friday:Mb,saturday:xb,sunday:bb},Kge={nl:Fb,fr:db,de:Xx,en:ib},Ib={};bu(Ib,{VIDIS_0035:()=>Qb,VIDIS_0050:()=>Rb,VIDIS_0090:()=>Sb,VIDIS_0100:()=>oI,VIDIS_0110:()=>lI,VIDIS_0120:()=>sI,VIDIS_0121:()=>kb,VIDIS_0122:()=>Tb,VIDIS_0123:()=>Yb,VIDIS_0124:()=>zb,VIDIS_0125:()=>Nb,VIDIS_0126:()=>_b,VIDIS_0131:()=>Ub,VIDIS_0132:()=>Pb,VIDIS_0133:()=>Gb,VIDIS_0134:()=>Ob,VIDIS_0135:()=>jb,VIDIS_0136:()=>Lb,VIDIS_0190:()=>Wb,VIDIS_0200:()=>cI,VIDIS_0210:()=>Hb,VIDIS_0211:()=>Vb,VIDIS_0230:()=>Jb,VIDIS_0290:()=>Zb,VIDIS_0330:()=>Kb,VIDIS_0340:()=>hI,VIDIS_0341:()=>dI,VIDIS_0400:()=>aI,VIDIS_04001:()=>EI,VIDIS_0435:()=>Xb,VIDIS_0440:()=>qb,VIDIS_3030:()=>AI,VIDIS_3090:()=>uI,VIDIS_3100:()=>nI,VIDIS_3120:()=>iI,VIDIS_3140:()=>rI,VIDIS_3150:()=>tI,VIDIS_5000:()=>$b,VIDIS_7000:()=>eI,"action-not-authorized-close-button":()=>YI,"action-not-authorized-title":()=>TI,"data-not-available-title":()=>kI,default:()=>Xge,general:()=>gI,"has-hidden-prescriptions":()=>yI,invalid_date_format:()=>FI,myHealth:()=>pI,myHealthUrl:()=>mI,network_error:()=>CI,"no-access":()=>fI,prescriptionList:()=>BI,"report-message-confirm-toast":()=>SI,"report-message-content":()=>xI,"report-message-explanation":()=>MI,"report-message-ignore-button":()=>RI,"report-message-link":()=>II,"report-message-report-button":()=>QI,"report-message-term-use":()=>bI,"report-message-title":()=>vI,"status-message-content":()=>wI,"status-message-title":()=>DI});var Qb="Leider ging dies nicht gut. Versuchen Sie es bitte noch einmal? (VIDIS_0035)",Rb="Die Patienten-INSS fehlt. (VIDIS_0050)",Sb="Die angegebenen persönlichen Daten wurden nicht erkannt. (VIDIS_0090)",kb="Die Einsichtnahme in die Daten eines Brüsseler Patienten ist derzeit nicht erlaubt.",Tb="Die Einsichtnahme in die Daten eines wallonischen Patienten ist derzeit nicht erlaubt.",Yb="Die Einsichtnahme in die Daten eines Brüsseler Kinder von einem Elternteil ist derzeit nicht erlaubt.",zb="Die Einsichtnahme in die Daten eines wallonischen Kinder von einem Elternteil ist derzeit nicht erlaubt.",Nb="Die Einsichtnahme in die Daten eines Brüsseler Patienten von einem Bevollmächtigter ist derzeit nicht erlaubt.",_b="Die Einsichtnahme in die Daten eines wallonischen Patienten von einem Bevollmächtigter ist derzeit nicht erlaubt.",Ub="Der Zugriff auf die Daten eines Brüsseler Patienten ist derzeit nicht erlaubt.",Pb="Der Zugriff auf die Daten eines wallonischen Patienten ist derzeit nicht erlaubt.",Gb="Der Zugriff eines Elternteils auf die Daten eines Brüsseler Kindes ist derzeit nicht erlaubt.",Ob="Der Zugriff eines Elternteils auf die Daten eines wallonischen Kindes ist derzeit nicht erlaubt.",jb="Der Zugriff eines Bevollmächtigten auf die Daten eines Brüsseler Patienten ist derzeit nicht erlaubt.",Lb="Der Zugriff eines Bevollmächtigten auf die Daten eines wallonischen Patienten ist derzeit nicht erlaubt.",Wb="Ungültige INSS-Patientennummer. (VIDIS_0190)",Hb="Die Anmeldung war nicht erfolgreich. Versuchen Sie es erneut? (VIDIS_0210)",Vb="Die Anmeldung war nicht erfolgreich. Versuchen Sie es erneut? (VIDIS_0211)",Jb="Der Vorgang ist ungültig (VIDIS_0230)",Zb='Die Benutzerrolle muss "Bürger" sein. (VIDIS_0290)',Kb="Ihre Authentifizierungsstufe erlaubt keinen Zugriff auf diese Seite. Bitte melden Sie sich mit einem anderen Authentifizierungsmittel an (itsme, eID oder mit einem per E-Mail oder App verschickten Sicherheitscode). (VIDIS_0330)",Xb="Die Speicherregion für den Medikamentenplan kann nicht bestimmt werden. (VIDIS_0435)",qb="Leider ging dies nicht gut. Versuchen Sie es bitte noch einmal? (VIDIS_0440)",$b="Leider konnten wir Ihre Daten nicht abrufen. Versuchen Sie es bitte noch einmal? (VIDIS_5000)",eI="Leider ging dies nicht gut. Versuchen Sie es bitte noch einmal? (VIDIS_7000)",tI="Kein Mandat zwischen Patient und Bevollmächtigtem gefunden.",uI="Das Rezept ist abgelaufen.",rI="Reservierungen müssen bei derselben Apotheke erfolgen wie die, bei der das Visi-Flag gesetzt wurde. Sie können das Visi-Flag auch offen lassen.",nI="Das Visi-Flag muss auf dieselbe Apotheke gesetzt sein, bei der Sie reserviert haben.",iI="Der Patient in der Sitzung ist nicht derselbe wie der Patient in der Anfrage.",aI="Der Benutzer ist nicht berechtigt, die Anfrage zu stellen.",AI="Kein Mandat zwischen Patient und Bevollmächtigtem gefunden.",oI="Vorgang nicht erlaubt.",sI="Es besteht keine therapeutische Beziehung zwischen Anfragendem und Patient.",lI="Keine Zustimmung zur Weitergabe von Gesundheitsdaten.",cI="Der Benutzer darf die Bearbeitung nicht vornehmen, da Antragsteller und Patient sich ausschließen.",hI="Sie sind nicht berechtigt, die Daten dieses Patienten abzurufen, da Ihr Visum nicht aktiv ist. Bitte wenden Sie sich per E-Mail unter visa@health.belgium.be an den FÖD Gesundheit.",dI="Sie sind nicht berechtigt, die Daten dieses Patienten abzurufen, entweder weil Ihr Visum nicht aktiv ist, bitte wenden Sie sich in diesem Fall per E-Mail an den FÖD Gesundheit unter visa@health.belgium.be, oder weil die LIKIV-Nummer der Apotheke ungültig ist, bitte kontaktieren Sie in diesem Fall das LIKIV per E-Mail unter dossierpharma@riziv-inami.fgov.be.",EI="Ihre Anfrage ist ungültig. Bitte versuchen Sie es später erneut.",BI="Leider war es nicht möglich, die Details der Verschreibung abzurufen. Versuchen Sie es erneut?",gI="Ein interner technischer Fehler ist aufgetreten. Bitte versuchen Sie es später nochmal.",fI="Ein interner technischer Fehler ist aufgetreten. Bitte versuchen Sie es später nochmal.",pI="Zurück zum Portal Meine Gesundheit",mI="https://wwwint.meinegesundheit.belgien.be/#/",CI="Es ist leider ein Netzwerkfehler aufgetreten. Bitte wenden Sie sich an Ihren Netzwerkadministrator, wenn das Problem weiterhin besteht.",FI="Ungültiges Datumsformat.",DI="Dienst vorübergehend nicht verfügbar",wI=`Wir haben derzeit ein Problem mit der Verbindung zum Server.
|