@andersbakken/fisk-scheduler-ui 0.0.57 → 0.0.58
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.
- package/dist/ui/browser/favicon.png +0 -0
- package/dist/ui/browser/htaccess +7 -0
- package/dist/ui/browser/index.html +1 -1
- package/dist/ui/browser/{main-6SIZHY3G.js → main-KS4CY54V.js} +1 -1
- package/dist/ui/browser/package.json +50 -0
- package/dist/ui/package.json +50 -0
- package/package.json +1 -1
- package/scripts/mklinks.sh +18 -9
- package/scripts/rmlinks.sh +12 -7
- package/.angular/cache/18.2.21/ui/.tsbuildinfo +0 -1
- package/.angular/cache/18.2.21/ui/angular-compiler.db +0 -0
- package/.angular/cache/18.2.21/ui/angular-compiler.db-lock +0 -0
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_common.js +0 -201
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_common.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_common_http.js +0 -85
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_common_http.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_core.js +0 -932
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_core.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_forms.js +0 -134
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_forms.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_button.js +0 -33
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_button.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_card.js +0 -567
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_card.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_checkbox.js +0 -782
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_checkbox.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_core.js +0 -98
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_core.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_dialog.js +0 -1829
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_dialog.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_form-field.js +0 -45
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_form-field.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_input.js +0 -1014
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_input.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_list.js +0 -2169
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_list.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_select.js +0 -1529
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_select.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_snack-bar.js +0 -940
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_snack-bar.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_tabs.js +0 -2962
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_tabs.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_platform-browser.js +0 -84
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_platform-browser.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_platform-browser_animations.js +0 -4136
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_platform-browser_animations.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_router.js +0 -5700
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_router.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/_metadata.json +0 -172
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-2ZKE2YDD.js +0 -1222
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-2ZKE2YDD.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-3OV72XIM.js +0 -64
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-3OV72XIM.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-57TVY4HY.js +0 -2218
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-57TVY4HY.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-A5IWFVHJ.js +0 -2374
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-A5IWFVHJ.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-DJ6HHZ3S.js +0 -1940
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-DJ6HHZ3S.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-FE6XYTIJ.js +0 -126
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-FE6XYTIJ.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-ITHJLHIY.js +0 -5795
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-ITHJLHIY.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-MFI342ZJ.js +0 -512
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-MFI342ZJ.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-NPVZU53R.js +0 -6511
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-NPVZU53R.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-NSRJEU3V.js +0 -27918
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-NSRJEU3V.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-R2N6IWJV.js +0 -5116
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-R2N6IWJV.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-TO3SXVFJ.js +0 -2840
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-TO3SXVFJ.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-WFLMTRZP.js +0 -379
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-WFLMTRZP.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-WQ5YUVUS.js +0 -1534
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-WQ5YUVUS.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/ngx-color-picker.js +0 -2925
- package/.angular/cache/18.2.21/ui/vite/deps/ngx-color-picker.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/seedrandom.js +0 -703
- package/.angular/cache/18.2.21/ui/vite/deps/seedrandom.js.map +0 -7
- package/scripts/mock-scheduler.js +0 -350
- package/scripts/test-live-model.js +0 -286
|
@@ -10,7 +10,7 @@ ${e.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
|
|
|
10
10
|
${$2} translateX(${m})
|
|
11
11
|
)`;let p=a+c+l+d;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${p}px)`)}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}static{this.\u0275fac=function(n){return new(n||i)(g(Z),g(He),g(V),g(ri),g(Fe),g(H2,8),g(st,8),g(ae))}}static{this.\u0275cmp=ue({type:i,selectors:[["mat-form-field"]],contentQueries:function(n,r,o){if(n&1&&(nw(o,r._labelChild,gs,5),Pt(o,Qa,5),Pt(o,V2,5),Pt(o,VD,5),Pt(o,L2,5),Pt(o,Qu,5)),n&2){rw();let s;ne(s=re())&&(r._formFieldControl=s.first),ne(s=re())&&(r._prefixChildren=s),ne(s=re())&&(r._suffixChildren=s),ne(s=re())&&(r._errorChildren=s),ne(s=re())&&(r._hintChildren=s)}},viewQuery:function(n,r){if(n&1&&(we(f2,5),we(m2,5),we(p2,5),we(g2,5),we(b2,5),we(RD,5),we(PD,5),we(ND,5)),n&2){let o;ne(o=re())&&(r._textField=o.first),ne(o=re())&&(r._iconPrefixContainer=o.first),ne(o=re())&&(r._textPrefixContainer=o.first),ne(o=re())&&(r._iconSuffixContainer=o.first),ne(o=re())&&(r._textSuffixContainer=o.first),ne(o=re())&&(r._floatingLabel=o.first),ne(o=re())&&(r._notchedOutline=o.first),ne(o=re())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(n,r){n&2&&ke("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-no-animations",r._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-focused",r._control.focused)("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[rt([{provide:Za,useExisting:i},{provide:zD,useExisting:i}]),ze],ngContentSelectors:_2,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,r){if(n&1){let o=Te();gt(v2),ee(0,x2,1,1,"ng-template",null,0,Gm),y(2,"div",6,1),j("click",function(a){return F(o),L(r._control.onContainerClick(a))}),ee(4,C2,1,0,"div",7),y(5,"div",8),ee(6,I2,2,2,"div",9)(7,k2,3,0,"div",10)(8,M2,3,0,"div",11),y(9,"div",12),ee(10,A2,1,1,null,13),Ve(11),b(),ee(12,T2,3,0,"div",14)(13,R2,3,0,"div",15),b(),ee(14,O2,1,0,"div",16),b(),y(15,"div",17),ee(16,N2,2,1,"div",18)(17,F2,5,2,"div",19),b()}if(n&2){let o;C(2),ke("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),C(2),Je(!r._hasOutline()&&!r._control.disabled?4:-1),C(2),Je(r._hasOutline()?6:-1),C(),Je(r._hasIconPrefix?7:-1),C(),Je(r._hasTextPrefix?8:-1),C(2),Je(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),C(2),Je(r._hasTextSuffix?12:-1),C(),Je(r._hasIconSuffix?13:-1),C(),Je(r._hasOutline()?-1:14),C(),ke("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic"),C(),Je((o=r._getDisplayedMessages())==="error"?16:o==="hint"?17:-1)}},dependencies:[RD,PD,Xs,ND,Qu],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--disabled .cdk-high-contrast-active .mdc-text-field__input{background-color:Window}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-app-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.cdk-high-contrast-active .mdc-text-field--disabled .mdc-floating-label{z-index:1}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-app-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-app-outline));border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-app-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-app-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-app-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-app-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-app-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-app-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-app-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-app-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-app-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-app-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-app-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-app-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-app-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-app-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-app-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-app-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-app-body-large-weight))}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-app-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-app-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-app-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[z2.transitionMessages]},changeDetection:0})}}return i})(),Xa=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=J({type:i})}static{this.\u0275inj=X({imports:[Re,pi,hs,Re]})}}return i})();var W2=new A("MAT_INPUT_VALUE_ACCESSOR"),q2=["button","checkbox","file","hidden","image","radio","range","reset","submit"],G2=0,Xu=(()=>{class i{get disabled(){return this._disabled}set disabled(e){this._disabled=io(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Zo.required)??!1}set required(e){this._required=io(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Yg().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=io(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,n,r,o,s,a,c,l,d,u){this._elementRef=e,this._platform=n,this.ngControl=r,this._autofillMonitor=l,this._ngZone=d,this._formField=u,this._uid=`mat-input-${G2++}`,this._webkitBlinkWheelListenerAttached=!1,this.focused=!1,this.stateChanges=new z,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(m=>Yg().has(m)),this._iOSKeyupListener=m=>{let p=m.target;!p.value&&p.selectionStart===0&&p.selectionEnd===0&&(p.setSelectionRange(1,1),p.setSelectionRange(0,0))},this._webkitBlinkWheelListener=()=>{};let f=this._elementRef.nativeElement,h=f.nodeName.toLowerCase();this._inputValueAccessor=c||f,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new ps(a,r,s,o,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=h==="select",this._isTextarea=h==="textarea",this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){q2.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}else return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&this._type!=="number"&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}static{this.\u0275fac=function(n){return new(n||i)(g(Z),g(Fe),g(En,10),g(ya,8),g(xa,8),g(Hu),g(W2,10),g(AD),g(V),g(Za,8))}}static{this.\u0275dir=Q({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(n,r){n&1&&j("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),n&2&&(Mi("id",r.id)("disabled",r.disabled)("required",r.required),Pe("name",r.name||null)("readonly",r.readonly&&!r._isNativeSelect||null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),ke("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[rt([{provide:Qa,useExisting:i}]),Qe]})}}return i})(),UD=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=J({type:i})}static{this.\u0275inj=X({imports:[Re,Xa,Xa,TD,Re]})}}return i})();var Y2=["mat-button",""],K2=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Q2=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var Z2=new A("MAT_BUTTON_CONFIG");var X2=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],J2=(()=>{class i{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,n,r,o){this._elementRef=e,this._platform=n,this._ngZone=r,this._animationMode=o,this._focusMonitor=w(lr),this._rippleLoader=w(_D),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=w(Z2,{optional:!0}),a=e.nativeElement,c=a.classList;this.disabledInteractive=s?.disabledInteractive??!1,this.color=s?.color??null,this._rippleLoader?.configureRipple(a,{className:"mat-mdc-button-ripple"});for(let{attribute:l,mdcClasses:d}of X2)a.hasAttribute(l)&&c.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static{this.\u0275fac=function(n){Jl()}}static{this.\u0275dir=Q({type:i,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",me],disabled:[2,"disabled","disabled",me],ariaDisabled:[2,"aria-disabled","ariaDisabled",me],disabledInteractive:[2,"disabledInteractive","disabledInteractive",me]},features:[nt]})}}return i})();var bs=(()=>{class i extends J2{constructor(e,n,r,o){super(e,n,r,o)}static{this.\u0275fac=function(n){return new(n||i)(g(Z),g(Fe),g(V),g(st,8))}}static{this.\u0275cmp=ue({type:i,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,r){n&2&&(Pe("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),fi(r.color?"mat-"+r.color:""),ke("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"],standalone:!0,features:[Ge,ze],attrs:Y2,ngContentSelectors:Q2,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){n&1&&(gt(K2),ie(0,"span",0),Ve(1),y(2,"span",1),Ve(3,1),b(),Ve(4,2),ie(5,"span",2)(6,"span",3)),n&2&&ke("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, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);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, 0);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, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-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-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-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-app-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-app-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)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-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)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);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, -4px);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, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-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-app-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-app-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-app-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-app-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)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-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);background-color:var(--mdc-filled-button-disabled-container-color)}.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);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);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, -4px);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, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-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-app-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-app-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-app-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-app-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)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-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);background-color:var(--mdc-protected-button-disabled-container-color)}.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-app-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);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);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, -4px);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, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-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-app-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-app-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-app-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-app-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)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-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);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._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-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}}return i})();var Ju=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=J({type:i})}static{this.\u0275inj=X({imports:[Re,Ya,Re]})}}return i})();var qD=YC(),Db=class{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=lt(-this._previousScrollPosition.left),t.style.top=lt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,e=this._document.body,n=t.style,r=e.style,o=n.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),qD&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),qD&&(n.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.body,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}};var Eb=class{constructor(t,e,n,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(Ae(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},eh=class{enable(){}disable(){}attach(){}};function Ib(i,t){return t.some(e=>{let n=i.bottom<e.top,r=i.top>e.bottom,o=i.right<e.left,s=i.left>e.right;return n||r||o||s})}function GD(i,t){return t.some(e=>{let n=i.top<e.top,r=i.bottom>e.bottom,o=i.left<e.left,s=i.right>e.right;return n||r||o||s})}var kb=class{constructor(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();Ib(e,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},ej=(()=>{class i{constructor(e,n,r,o){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this.noop=()=>new eh,this.close=s=>new Eb(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new Db(this._viewportRuler,this._document),this.reposition=s=>new kb(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}static{this.\u0275fac=function(n){return new(n||i)(_(xD),_(pr),_(V),_(ae))}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),gr=class{constructor(t){if(this.scrollStrategy=new eh,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){let e=Object.keys(t);for(let n of e)t[n]!==void 0&&(this[n]=t[n])}}};var Mb=class{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}};var JD=(()=>{class i{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}static{this.\u0275fac=function(n){return new(n||i)(_(ae))}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),tj=(()=>{class i extends JD{constructor(e,n){super(e),this._ngZone=n,this._keydownListener=r=>{let o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){let a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static{this.\u0275fac=function(n){return new(n||i)(_(ae),_(V,8))}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),ij=(()=>{class i extends JD{constructor(e,n,r){super(e),this._platform=n,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=ni(o)},this._clickListener=o=>{let s=ni(o),a=o.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;let c=this._attachedOverlays.slice();for(let l=c.length-1;l>-1;l--){let d=c[l];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(YD(d.overlayElement,s)||YD(d.overlayElement,a))break;let u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(o)):u.next(o)}}}add(e){if(super.add(e),!this._isAttached){let n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}static{this.\u0275fac=function(n){return new(n||i)(_(ae),_(Fe),_(V,8))}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function YD(i,t){let e=typeof ShadowRoot<"u"&&ShadowRoot,n=t;for(;n;){if(n===i)return!0;n=e&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var vs=(()=>{class i{constructor(e,n){this._platform=n,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Wa()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove()}let n=this._document.createElement("div");n.classList.add(e),Wa()?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}static{this.\u0275fac=function(n){return new(n||i)(_(ae),_(Fe))}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Rn=class{constructor(t,e,n,r,o,s,a,c,l,d=!1,u){this._portalOutlet=t,this._host=e,this._pane=n,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=c,this._outsideClickDispatcher=l,this._animationsDisabled=d,this._injector=u,this._backdropElement=null,this._backdropClick=new z,this._attachments=new z,this._detachments=new z,this._locationChanges=Ne.EMPTY,this._backdropClickHandler=f=>this._backdropClick.next(f),this._backdropTransitionendHandler=f=>{this._disposeBackdrop(f.target)},this._keydownEvents=new z,this._outsidePointerEvents=new z,this._renders=new z,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=mi(()=>Qs(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=ki(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){let t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=M(M({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Ee(M({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){let t=this._config.direction;return t?typeof t=="string"?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=lt(this._config.width),t.height=lt(this._config.height),t.minWidth=lt(this._config.minWidth),t.minHeight=lt(this._config.minHeight),t.maxWidth=lt(this._config.maxWidth),t.maxHeight=lt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(t){if(this._animationsDisabled){this._disposeBackdrop(t);return}t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,n){let r=us(e||[]).filter(o=>!!o);r.length&&(n?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let t=this._renders.pipe(Le(Vt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){let t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},KD="cdk-overlay-connected-position-bounding-box",nj=/([A-Za-z%]+)$/,Sb=class{get positions(){return this._preferredPositions}constructor(t,e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new z,this._resizeSubscription=Ne.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(KD),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._originRect,e=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[],s;for(let a of this._preferredPositions){let c=this._getOriginPoint(t,r,a),l=this._getOverlayPoint(c,e,a),d=this._getOverlayFit(l,e,n,a);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(d,l,n)){o.push({position:a,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!s||s.overlayFit.visibleArea<d.visibleArea)&&(s={overlayFit:d,overlayPoint:l,originPoint:c,position:a,overlayRect:e})}if(o.length){let a=null,c=-1;for(let l of o){let d=l.boundingBoxRect.width*l.boundingBoxRect.height*(l.position.weight||1);d>c&&(c=d,a=l)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&so(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(KD),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,n){let r;if(n.originX=="center")r=t.left+t.width/2;else{let s=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r=n.originX=="start"?s:a}e.left<0&&(r-=e.left);let o;return n.originY=="center"?o=t.top+t.height/2:o=n.originY=="top"?t.top:t.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(t,e,n){let r;n.overlayX=="center"?r=-e.width/2:n.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return n.overlayY=="center"?o=-e.height/2:o=n.overlayY=="top"?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,n,r){let o=ZD(e),{x:s,y:a}=t,c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(s+=c),l&&(a+=l);let d=0-s,u=s+o.width-n.width,f=0-a,h=a+o.height-n.height,m=this._subtractOverflows(o.width,d,u),p=this._subtractOverflows(o.height,f,h),v=m*p;return{visibleArea:v,isCompletelyWithinViewport:o.width*o.height===v,fitsInViewportVertically:p===o.height,fitsInViewportHorizontally:m==o.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){let r=n.bottom-e.y,o=n.right-e.x,s=QD(this._overlayRef.getConfig().minHeight),a=QD(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportVertically||s!=null&&s<=r,l=t.fitsInViewportHorizontally||a!=null&&a<=o;return c&&l}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let r=ZD(e),o=this._viewportRect,s=Math.max(t.x+r.width-o.width,0),a=Math.max(t.y+r.height-o.height,0),c=Math.max(o.top-n.top-t.y,0),l=Math.max(o.left-n.left-t.x,0),d=0,u=0;return r.width<=o.width?d=l||-s:d=t.x<this._viewportMargin?o.left-n.left-t.x:0,r.height<=o.height?u=c||-a:u=t.y<this._viewportMargin?o.top-n.top-t.y:0,this._previousPushAmount={x:d,y:u},{x:t.x+d,y:t.y+u}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._positionChanges.observers.length){let n=this._getScrollVisibility();if(t!==this._lastPosition||!this._lastScrollVisibility||!rj(this._lastScrollVisibility,n)){let r=new Mb(t,n);this._positionChanges.next(r)}this._lastScrollVisibility=n}this._lastPosition=t,this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;let e=this._boundingBox.querySelectorAll(this._transformOriginSelector),n,r=t.overlayY;t.overlayX==="center"?n="center":this._isRtl()?n=t.overlayX==="start"?"right":"left":n=t.overlayX==="start"?"left":"right";for(let o=0;o<e.length;o++)e[o].style.transformOrigin=`${n} ${r}`}_calculateBoundingBoxRect(t,e){let n=this._viewportRect,r=this._isRtl(),o,s,a;if(e.overlayY==="top")s=t.y,o=n.height-s+this._viewportMargin;else if(e.overlayY==="bottom")a=n.height-t.y+this._viewportMargin*2,o=n.height-a+this._viewportMargin;else{let h=Math.min(n.bottom-t.y+n.top,t.y),m=this._lastBoundingBoxSize.height;o=h*2,s=t.y-h,o>m&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-m/2)}let c=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,l=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,d,u,f;if(l)f=n.width-t.x+this._viewportMargin*2,d=t.x-this._viewportMargin;else if(c)u=t.x,d=n.right-t.x;else{let h=Math.min(n.right-t.x+n.left,t.x),m=this._lastBoundingBoxSize.width;d=h*2,u=t.x-h,d>m&&!this._isInitialRender&&!this._growAfterOpen&&(u=t.x-m/2)}return{top:s,left:u,bottom:a,right:f,width:d,height:o}}_setBoundingBoxStyles(t,e){let n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=lt(n.height),r.top=lt(n.top),r.bottom=lt(n.bottom),r.width=lt(n.width),r.left=lt(n.left),r.right=lt(n.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=lt(o)),s&&(r.maxWidth=lt(s))}this._lastBoundingBoxSize=n,so(this._boundingBox.style,r)}_resetBoundingBoxStyles(){so(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){so(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){let n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){let d=this._viewportRuler.getViewportScrollPosition();so(n,this._getExactOverlayY(e,t,d)),so(n,this._getExactOverlayX(e,t,d))}else n.position="static";let a="",c=this._getOffset(e,"x"),l=this._getOffset(e,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),n.transform=a.trim(),s.maxHeight&&(r?n.maxHeight=lt(s.maxHeight):o&&(n.maxHeight="")),s.maxWidth&&(r?n.maxWidth=lt(s.maxWidth):o&&(n.maxWidth="")),so(this._pane.style,n)}_getExactOverlayY(t,e,n){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),t.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;r.bottom=`${s-(o.y+this._overlayRect.height)}px`}else r.top=lt(o.y);return r}_getExactOverlayX(t,e,n){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n));let s;if(this._isRtl()?s=t.overlayX==="end"?"left":"right":s=t.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;r.right=`${a-(o.x+this._overlayRect.width)}px`}else r.left=lt(o.x);return r}_getScrollVisibility(){let t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:GD(t,n),isOriginOutsideView:Ib(t,n),isOverlayClipped:GD(e,n),isOverlayOutsideView:Ib(e,n)}}_subtractOverflows(t,...e){return e.reduce((n,r)=>n-Math.max(r,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return e==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&us(t).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof Z)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}};function so(i,t){for(let e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);return i}function QD(i){if(typeof i!="number"&&i!=null){let[t,e]=i.split(nj);return!e||e==="px"?parseFloat(t):null}return i||null}function ZD(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}function rj(i,t){return i===t?!0:i.isOriginClipped===t.isOriginClipped&&i.isOriginOutsideView===t.isOriginOutsideView&&i.isOverlayClipped===t.isOverlayClipped&&i.isOverlayOutsideView===t.isOverlayOutsideView}var XD="cdk-global-overlay-wrapper",Ab=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){let e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(XD),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=n,c=(r==="100%"||r==="100vw")&&(!s||s==="100%"||s==="100vw"),l=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),d=this._xPosition,u=this._xOffset,f=this._overlayRef.getConfig().direction==="rtl",h="",m="",p="";c?p="flex-start":d==="center"?(p="center",f?m=u:h=u):f?d==="left"||d==="end"?(p="flex-end",h=u):(d==="right"||d==="start")&&(p="flex-start",m=u):d==="left"||d==="start"?(p="flex-start",h=u):(d==="right"||d==="end")&&(p="flex-end",m=u),t.position=this._cssPosition,t.marginLeft=c?"0":h,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=c?"0":m,e.justifyContent=p,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(XD),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},oj=(()=>{class i{constructor(e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o}global(){return new Ab}flexibleConnectedTo(e){return new Sb(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(n){return new(n||i)(_(pr),_(ae),_(Fe),_(vs))}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),sj=0,Dt=(()=>{class i{constructor(e,n,r,o,s,a,c,l,d,u,f,h){this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=c,this._document=l,this._directionality=d,this._location=u,this._outsideClickDispatcher=f,this._animationsModuleType=h}create(e){let n=this._createHostElement(),r=this._createPaneElement(n),o=this._createPortalOutlet(r),s=new gr(e);return s.direction=s.direction||this._directionality.value,new Rn(o,n,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(xt))}position(){return this._positionBuilder}_createPaneElement(e){let n=this._document.createElement("div");return n.id=`cdk-overlay-${sj++}`,n.classList.add("cdk-overlay-pane"),e.appendChild(n),n}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Zt)),new Wu(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(n){return new(n||i)(_(ej),_(vs),_(Yt),_(oj),_(tj),_(_e),_(V),_(ae),_(ri),_(Ji),_(ij),_(st,8))}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),aj=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],eE=new A("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let i=w(Dt);return()=>i.scrollStrategies.reposition()}}),Ja=(()=>{class i{constructor(e){this.elementRef=e}static{this.\u0275fac=function(n){return new(n||i)(g(Z))}}static{this.\u0275dir=Q({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}}return i})(),Tb=(()=>{class i{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,n,r,o,s){this._overlay=e,this._dir=s,this._backdropSubscription=Ne.EMPTY,this._attachSubscription=Ne.EMPTY,this._detachSubscription=Ne.EMPTY,this._positionSubscription=Ne.EMPTY,this._disposeOnNavigation=!1,this._ngZone=w(V),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new Y,this.positionChange=new Y,this.attach=new Y,this.detach=new Y,this.overlayKeydown=new Y,this.overlayOutsideClick=new Y,this._templatePortal=new An(n,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=aj);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!Ft(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let r=this._getOriginElement(),o=ni(n);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new gr({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(n.width=this.width),(this.height||this.height===0)&&(n.height=this.height),(this.minWidth||this.minWidth===0)&&(n.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(e){let n=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Ja?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Ja?this.origin.elementRef.nativeElement:this.origin instanceof Z?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Uh(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||i)(g(Dt),g(Ct),g(pt),g(eE),g(ri,8))}}static{this.\u0275dir=Q({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",me],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",me],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",me],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",me],push:[2,"cdkConnectedOverlayPush","push",me],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",me]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[nt,Qe]})}}return i})();function cj(i){return()=>i.scrollStrategies.reposition()}var lj={provide:eE,deps:[Dt],useFactory:cj},br=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=J({type:i})}static{this.\u0275inj=X({providers:[Dt,lj],imports:[dr,Tn,bb,bb]})}}return i})();function dj(i,t){if(i&1){let e=Te();y(0,"div",1)(1,"button",2),j("click",function(){F(e);let r=O();return L(r.action())}),q(2),b()()}if(i&2){let e=O();C(2),ct(" ",e.data.action," ")}}var uj=["label"];function hj(i,t){}var fj=Math.pow(2,31)-1,tc=class{constructor(t,e){this._overlayRef=e,this._afterDismissed=new z,this._afterOpened=new z,this._onAction=new z,this._dismissedByAction=!1,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,fj))}_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}},tE=new A("MatSnackBarData"),_s=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},mj=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=Q({type:i,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0})}}return i})(),pj=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=Q({type:i,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0})}}return i})(),gj=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=Q({type:i,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0})}}return i})(),iE=(()=>{class i{constructor(e,n){this.snackBarRef=e,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static{this.\u0275fac=function(n){return new(n||i)(g(tc),g(tE))}}static{this.\u0275cmp=ue({type:i,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[ze],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,r){n&1&&(y(0,"div",0),q(1),b(),ee(2,dj,3,1,"div",1)),n&2&&(C(),ct(" ",r.data.message,`
|
|
12
12
|
`),C(),Je(r.hasAction?2:-1))},dependencies:[bs,mj,pj,gj],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}}return i})(),bj={snackBarState:Hr("state",[Ur("void, hidden",Wt({transform:"scale(0.8)",opacity:0})),Ur("visible",Wt({transform:"scale(1)",opacity:1})),Cn("* => visible",ir("150ms cubic-bezier(0, 0, 0.2, 1)")),Cn("* => void, * => hidden",ir("75ms cubic-bezier(0.4, 0.0, 1, 1)",Wt({opacity:0})))])},vj=0,_j=(()=>{class i extends fr{constructor(e,n,r,o,s){super(),this._ngZone=e,this._elementRef=n,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=s,this._document=w(ae),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new z,this._onExit=new z,this._onEnter=new z,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${vj++}`,this.attachDomPortal=a=>{this._assertNotAttached();let c=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),c},s.politeness==="assertive"&&!s.announcementMessage?this._live="assertive":s.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}onAnimationEnd(e){let{fromState:n,toState:r}=e;if((r==="void"&&n!=="void"||r==="hidden")&&this._completeExit(),r==="visible"){let o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(s=>e.classList.add(s)):e.classList.add(n)),this._exposeToModals();let r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<n.length;r++){let o=n[r],s=o.getAttribute("aria-owns");this._trackedModals.add(o),s?s.indexOf(e)===-1&&o.setAttribute("aria-owns",s+" "+e):o.setAttribute("aria-owns",e)}}_clearFromModals(){this._trackedModals.forEach(e=>{let n=e.getAttribute("aria-owns");if(n){let r=n.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static{this.\u0275fac=function(n){return new(n||i)(g(V),g(Z),g(He),g(Fe),g(_s))}}static{this.\u0275cmp=ue({type:i,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,r){if(n&1&&(we(mr,7),we(uj,7)),n&2){let o;ne(o=re())&&(r._portalOutlet=o.first),ne(o=re())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(n,r){n&1&&Um("@state.done",function(s){return r.onAnimationEnd(s)}),n&2&&Hm("@state",r._animationState)},standalone:!0,features:[Ge,ze],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(n,r){n&1&&(y(0,"div",1)(1,"div",2,0)(3,"div",3),ee(4,hj,0,0,"ng-template",4),b(),ie(5,"div"),b()()),n&2&&(C(5),Pe("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[mr],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}.cdk-high-contrast-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-app-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-app-corner-extra-small));background-color:var(--mdc-snackbar-container-color, var(--mat-app-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-app-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-app-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-app-body-medium-weight));line-height:var(--mdc-snackbar-supporting-text-line-height, var(--mat-app-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-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-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-app-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[bj.snackBarState]}})}}return i})();function yj(){return new _s}var wj=new A("mat-snack-bar-default-options",{providedIn:"root",factory:yj}),Ob=(()=>{class i{get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,n,r,o,s,a){this._overlay=e,this._live=n,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=iE,this.snackBarContainerComponent=_j,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",r){let o=M(M({},this._defaultConfig),r);return o.data={message:e,action:n},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let r=n&&n.viewContainerRef&&n.viewContainerRef.injector,o=_e.create({parent:r||this._injector,providers:[{provide:_s,useValue:n}]}),s=new Sn(this.snackBarContainerComponent,n.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=n,a.instance}_attach(e,n){let r=M(M(M({},new _s),this._defaultConfig),n),o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new tc(s,o);if(e instanceof Ct){let c=new An(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(c)}else{let c=this._createInjector(r,a),l=new Sn(e,void 0,c),d=s.attachComponentPortal(l);a.instance=d.instance}return this._breakpointObserver.observe(JC.HandsetPortrait).pipe(Le(o.detachments())).subscribe(c=>{o.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),r.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration))}_createOverlay(e){let n=new gr;n.direction=e.direction;let r=this._overlay.position().global(),o=e.direction==="rtl",s=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,a=!s&&e.horizontalPosition!=="center";return s?r.left("0"):a?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),n.positionStrategy=r,this._overlay.create(n)}_createInjector(e,n){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return _e.create({parent:r||this._injector,providers:[{provide:tc,useValue:n},{provide:tE,useValue:e.data}]})}static{this.\u0275fac=function(n){return new(n||i)(_(Dt),_(ju),_(_e),_(Su),_(i,12),_(wj))}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var nE=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=J({type:i})}static{this.\u0275inj=X({providers:[Ob],imports:[br,Tn,Ju,Re,iE,Re]})}}return i})();var Cj=["input"],Dj=["label"],Ej=["*"],Ij=new A("mat-checkbox-default-options",{providedIn:"root",factory:oE});function oE(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var Mt=function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i}(Mt||{}),kj={provide:_a,useExisting:Kt(()=>ys),multi:!0},Nb=class{},Mj=0,rE=oE(),ys=(()=>{class i{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new Nb;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,n,r,o,s,a){this._elementRef=e,this._changeDetectorRef=n,this._ngZone=r,this._animationMode=s,this._options=a,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Y,this.indeterminateChange=new Y,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=Mt.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||rE,this.color=this._options.color||rE.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++Mj}`,this.disabledInteractive=a?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){let n=e!=this._indeterminate;this._indeterminate=e,n&&(this._indeterminate?this._transitionCheckState(Mt.Indeterminate):this._transitionCheckState(this.checked?Mt.Checked:Mt.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let n=this._currentCheckState,r=this._getAnimationTargetElement();if(!(n===e||!r)&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Mt.Checked:Mt.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if(this._animationMode==="NoopAnimations")return"";switch(e){case Mt.Init:if(n===Mt.Checked)return this._animationClasses.uncheckedToChecked;if(n==Mt.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Mt.Unchecked:return n===Mt.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Mt.Checked:return n===Mt.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Mt.Indeterminate:return n===Mt.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static{this.\u0275fac=function(n){return new(n||i)(g(Z),g(He),g(V),Ki("tabindex"),g(st,8),g(Ij,8))}}static{this.\u0275cmp=ue({type:i,selectors:[["mat-checkbox"]],viewQuery:function(n,r){if(n&1&&(we(Cj,5),we(Dj,5),we(hr,5)),n&2){let o;ne(o=re())&&(r._inputElement=o.first),ne(o=re())&&(r._labelElement=o.first),ne(o=re())&&(r.ripple=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,r){n&2&&(Mi("id",r.id),Pe("tabindex",null)("aria-label",null)("aria-labelledby",null),fi(r.color?"mat-"+r.color:"mat-accent"),ke("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked)("mat-mdc-checkbox-disabled-interactive",r.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",me],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",me],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Zi(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",me],checked:[2,"checked","checked",me],disabled:[2,"disabled","disabled",me],indeterminate:[2,"indeterminate","indeterminate",me]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[rt([kj,{provide:Qr,useExisting:i,multi:!0}]),nt,Qe,ze],ngContentSelectors:Ej,decls:15,vars:20,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,r){if(n&1){let o=Te();gt(),y(0,"div",3),j("click",function(a){return F(o),L(r._preventBubblingFromLabel(a))}),y(1,"div",4,0)(3,"div",5),j("click",function(){return F(o),L(r._onTouchTargetClick())}),b(),y(4,"input",6,1),j("blur",function(){return F(o),L(r._onBlur())})("click",function(){return F(o),L(r._onInputClick())})("change",function(a){return F(o),L(r._onInteractionEvent(a))}),b(),ie(6,"div",7),y(7,"div",8),Br(),y(8,"svg",9),ie(9,"path",10),b(),gm(),ie(10,"div",11),b(),ie(11,"div",12),b(),y(12,"label",13,2),Ve(14),b()()}if(n&2){let o=Si(2);R("labelPosition",r.labelPosition),C(4),ke("mdc-checkbox--selected",r.checked),R("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled&&!r.disabledInteractive)("id",r.inputId)("required",r.required)("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex),Pe("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("aria-disabled",r.disabled&&r.disabledInteractive?!0:null)("name",r.name)("value",r.value),C(7),R("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),C(),R("for",r.inputId)}},dependencies:[hr,yD],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity));background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity));background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mdc-checkbox__ripple{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.cdk-high-contrast-active .mdc-checkbox--disabled{opacity:.5}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-app-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-app-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-app-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-app-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-app-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover .mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.cdk-high-contrast-active .mdc-checkbox__checkmark{color:CanvasText}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.cdk-high-contrast-active .mdc-checkbox--disabled .mdc-checkbox__checkmark,.cdk-high-contrast-active .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.cdk-high-contrast-active .mdc-checkbox__mixedmark{margin:0 1px}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *,.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-app-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-app-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-app-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return i})();var sE=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=J({type:i})}static{this.\u0275inj=X({imports:[ys,Re,Re]})}}return i})();function Sj(i,t){}var ao=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var Fb=(()=>{class i extends fr{constructor(e,n,r,o,s,a,c,l){super(),this._elementRef=e,this._focusTrapFactory=n,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=c,this._focusMonitor=l,this._platform=w(Fe),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=w(He),this._injector=w(_e),this._isDestroyed=!1,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();let u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let n=this._ariaLabelledByQueue.indexOf(e);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(n)}_focusByCssSelector(e,n){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,n)}_trapFocus(){this._isDestroyed||ki(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,n=null;if(typeof e=="string"?n=this._document.querySelector(e):typeof e=="boolean"?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&typeof n.focus=="function"){let r=$a(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let e=this._elementRef.nativeElement,n=$a();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=$a()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static{this.\u0275fac=function(n){return new(n||i)(g(Z),g(Lu),g(ae,8),g(ao),g(qa),g(V),g(Rn),g(lr))}}static{this.\u0275cmp=ue({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(n,r){if(n&1&&we(mr,7),n&2){let o;ne(o=re())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,r){n&2&&Pe("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},standalone:!0,features:[Ge,ze],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,r){n&1&&ee(0,Sj,0,0,"ng-template",0)},dependencies:[mr],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}}return i})(),ic=class{constructor(t,e){this.overlayRef=t,this.config=e,this.closed=new z,this.disableClose=e.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!Ft(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=t.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(t,e){if(this.containerInstance){let n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(t),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(t="",e=""){return this.overlayRef.updateSize({width:t,height:e}),this}addPanelClass(t){return this.overlayRef.addPanelClass(t),this}removePanelClass(t){return this.overlayRef.removePanelClass(t),this}},Aj=new A("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=w(Dt);return()=>i.scrollStrategies.block()}}),Tj=new A("DialogData"),Rj=new A("DefaultDialogConfig");var Oj=0,Lb=(()=>{class i{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,n,r,o,s,a){this._overlay=e,this._injector=n,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new z,this._afterOpenedAtThisLevel=new z,this._ariaHiddenElements=new Map,this.afterAllClosed=Vi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(It(void 0))),this._scrollStrategy=a}open(e,n){let r=this._defaultOptions||new ao;n=M(M({},r),n),n.id=n.id||`cdk-dialog-${Oj++}`,n.id&&this.getDialogById(n.id);let o=this._getOverlayConfig(n),s=this._overlay.create(o),a=new ic(s,n),c=this._attachContainer(s,a,n);return a.containerInstance=c,this._attachDialogContent(e,a,c,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){Pb(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){Pb(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),Pb(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new gr({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,r){let o=r.injector||r.viewContainerRef?.injector,s=[{provide:ao,useValue:r},{provide:ic,useValue:n},{provide:Rn,useValue:e}],a;r.container?typeof r.container=="function"?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=Fb;let c=new Sn(a,r.viewContainerRef,_e.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,n,r,o){if(e instanceof Ct){let s=this._createInjector(o,n,r,void 0),a={$implicit:o.data,dialogRef:n};o.templateContext&&(a=M(M({},a),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new An(e,null,a,s))}else{let s=this._createInjector(o,n,r,this._injector),a=r.attachComponentPortal(new Sn(e,o.viewContainerRef,s,o.componentFactoryResolver));n.componentRef=a,n.componentInstance=a.instance}}_createInjector(e,n,r,o){let s=e.injector||e.viewContainerRef?.injector,a=[{provide:Tj,useValue:e.data},{provide:ic,useValue:n}];return e.providers&&(typeof e.providers=="function"?a.push(...e.providers(n,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(ri,null,{optional:!0}))&&a.push({provide:ri,useValue:{value:e.direction,change:te()}}),_e.create({parent:s||o,providers:a})}_removeOpenDialog(e,n){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let e=this._overlayContainer.getContainerElement();if(e.parentElement){let n=e.parentElement.children;for(let r=n.length-1;r>-1;r--){let o=n[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static{this.\u0275fac=function(n){return new(n||i)(_(Dt),_(_e),_(Rj,8),_(i,12),_(vs),_(Aj))}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function Pb(i,t){let e=i.length;for(;e--;)t(i[e])}var cE=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=J({type:i})}static{this.\u0275inj=X({providers:[Lb],imports:[br,Tn,cD,Tn]})}}return i})();function Nj(i,t){}var nc=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},jb="mdc-dialog--open",lE="mdc-dialog--opening",dE="mdc-dialog--closing",Pj=150,Fj=75,Lj=(()=>{class i extends Fb{constructor(e,n,r,o,s,a,c,l,d){super(e,n,r,o,s,a,c,d),this._animationMode=l,this._animationStateChanged=new Y,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?hE(this._config.enterAnimationDuration)??Pj:0,this._exitAnimationDuration=this._animationsEnabled?hE(this._config.exitAnimationDuration)??Fj:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(uE,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(lE,jb)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(jb),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(jb),this._animationsEnabled?(this._hostElement.style.setProperty(uE,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(dE)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(lE,dE)}_waitForAnimationToComplete(e,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let n=super.attachComponentPortal(e);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static{this.\u0275fac=function(n){return new(n||i)(g(Z),g(Lu),g(ae,8),g(nc),g(qa),g(V),g(Rn),g(st,8),g(lr))}}static{this.\u0275cmp=ue({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,r){n&2&&(Mi("id",r._config.id),Pe("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),ke("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},standalone:!0,features:[Ge,ze],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(n,r){n&1&&(y(0,"div",0)(1,"div",1),ee(2,Nj,0,0,"ng-template",2),b()())},dependencies:[mr],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, var(--mat-app-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-app-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-app-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-app-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-app-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-app-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-app-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-app-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-app-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-app-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-app-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-app-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-app-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}}return i})(),uE="--mat-dialog-transition-duration";function hE(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?cr(i.substring(0,i.length-2)):i.endsWith("s")?cr(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var th=function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i}(th||{}),On=class{constructor(t,e,n){this._ref=t,this._containerInstance=n,this._afterOpened=new z,this._beforeClosed=new z,this._state=th.OPEN,this.disableClose=e.disableClose,this.id=t.id,t.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(Ae(r=>r.state==="opened"),_t(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(Ae(r=>r.state==="closed"),_t(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Vt(this.backdropClick(),this.keydownEvents().pipe(Ae(r=>r.keyCode===27&&!this.disableClose&&!Ft(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),fE(this,r.type==="keydown"?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Ae(e=>e.state==="closing"),_t(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=th.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(t){let e=this._ref.config.positionStrategy;return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(t="",e=""){return this._ref.updateSize(t,e),this}addPanelClass(t){return this._ref.addPanelClass(t),this}removePanelClass(t){return this._ref.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=th.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function fE(i,t,e){return i._closeInteractionType=t,i.close(e)}var rc=new A("MatMdcDialogData"),jj=new A("mat-mdc-dialog-default-options"),Vj=new A("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let i=w(Dt);return()=>i.scrollStrategies.block()}});var Bj=0,Nn=(()=>{class i{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,n,r,o,s,a,c,l){this._overlay=e,this._defaultOptions=o,this._scrollStrategy=s,this._parentDialog=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new z,this._afterOpenedAtThisLevel=new z,this.dialogConfigClass=nc,this.afterAllClosed=Vi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(It(void 0))),this._dialog=n.get(Lb),this._dialogRefConstructor=On,this._dialogContainerType=Lj,this._dialogDataToken=rc}open(e,n){let r;n=M(M({},this._defaultOptions||new nc),n),n.id=n.id||`mat-mdc-dialog-${Bj++}`,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,Ee(M({},n),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:ao,useValue:n}]},templateContext:()=>({dialogRef:r}),providers:(s,a,c)=>(r=new this._dialogRefConstructor(s,n,c),r.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}static{this.\u0275fac=function(n){return new(n||i)(_(Dt),_(_e),_(Ji,8),_(jj,8),_(Vj),_(i,12),_(vs),_(st,8))}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var mE=(()=>{class i{constructor(e,n,r){this.dialogRef=e,this._elementRef=n,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=pE(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){fE(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static{this.\u0275fac=function(n){return new(n||i)(g(On,8),g(Z),g(Nn))}}static{this.\u0275dir=Q({type:i,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,r){n&1&&j("click",function(s){return r._onButtonClick(s)}),n&2&&Pe("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[Qe]})}}return i})(),zj=(()=>{class i{constructor(e,n,r){this._dialogRef=e,this._elementRef=n,this._dialog=r}ngOnInit(){this._dialogRef||(this._dialogRef=pE(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static{this.\u0275fac=function(n){return new(n||i)(g(On,8),g(Z),g(Nn))}}static{this.\u0275dir=Q({type:i,standalone:!0})}}return i})();var ih=(()=>{class i extends zj{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Qt(i)))(r||i)}})()}static{this.\u0275dir=Q({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(n,r){n&2&&ke("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},standalone:!0,features:[Ge]})}}return i})();function pE(i,t){let e=i.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?t.find(n=>n.id===e.id):null}var gE=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=J({type:i})}static{this.\u0275inj=X({providers:[Nn],imports:[cE,br,Tn,Re,Re]})}}return i})();var Hj=["trigger"],Uj=["panel"],$j=[[["mat-select-trigger"]],"*"],Wj=["mat-select-trigger","*"];function qj(i,t){if(i&1&&(y(0,"span",4),q(1),b()),i&2){let e=O();C(),$t(e.placeholder)}}function Gj(i,t){i&1&&Ve(0)}function Yj(i,t){if(i&1&&(y(0,"span",11),q(1),b()),i&2){let e=O(2);C(),$t(e.triggerValue)}}function Kj(i,t){if(i&1&&(y(0,"span",5),ee(1,Gj,1,0)(2,Yj,2,1,"span",11),b()),i&2){let e=O();C(),Je(e.customTrigger?1:2)}}function Qj(i,t){if(i&1){let e=Te();y(0,"div",12,1),j("@transformPanel.done",function(r){F(e);let o=O();return L(o._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){F(e);let o=O();return L(o._handleKeydown(r))}),Ve(2,1),b()}if(i&2){let e=O();sd("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),R("ngClass",e.panelClass)("@transformPanel","showing"),Pe("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var Zj={transformPanelWrap:Hr("transformPanelWrap",[Cn("* => void",Yw("@transformPanel",[Gw()],{optional:!0}))]),transformPanel:Hr("transformPanel",[Ur("void",Wt({opacity:0,transform:"scale(1, 0.8)"})),Cn("void => showing",ir("120ms cubic-bezier(0, 0, 0.2, 1)",Wt({opacity:1,transform:"scale(1, 1)"}))),Cn("* => void",ir("100ms linear",Wt({opacity:0})))])};var bE=0,vE=new A("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let i=w(Dt);return()=>i.scrollStrategies.reposition()}});function Xj(i){return()=>i.scrollStrategies.reposition()}var Jj=new A("MAT_SELECT_CONFIG"),eV={provide:vE,deps:[Dt],useFactory:Xj},tV=new A("MatSelectTrigger"),Vb=class{constructor(t,e){this.source=t,this.value=e}},_E=(()=>{class i{_scrollOptionIntoView(e){let n=this.options.toArray()[e];if(n){let r=this.panel.nativeElement,o=bD(e,this.options,this.optionGroups),s=n._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=vD(s.offsetTop,s.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Vb(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Zo.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,n,r,o,s,a,c,l,d,u,f,h,m,p){this._viewportRuler=e,this._changeDetectorRef=n,this._elementRef=s,this._dir=a,this._parentFormField=d,this.ngControl=u,this._liveAnnouncer=m,this._defaultOptions=p,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(v,D)=>v===D,this._uid=`mat-select-${bE++}`,this._triggerAriaLabelledBy=null,this._destroy=new z,this.stateChanges=new z,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${bE++}`,this._panelDoneAnimatingStream=new z,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new z,this.optionSelectionChanges=Vi(()=>{let v=this.options;return v?v.changes.pipe(It(v),dt(()=>Vt(...v.map(D=>D.onSelectionChange)))):this._initialized.pipe(dt(()=>this.optionSelectionChanges))}),this.openedChange=new Y,this._openedStream=this.openedChange.pipe(Ae(v=>v),se(()=>{})),this._closedStream=this.openedChange.pipe(Ae(v=>!v),se(()=>{})),this.selectionChange=new Y,this.valueChange=new Y,this._trackedModal=null,this._skipPredicate=v=>this.panelOpen?!1:v.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),p?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=p.typeaheadDebounceInterval),this._errorStateTracker=new ps(o,u,l,c,this.stateChanges),this._scrollStrategyFactory=h,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}ngOnInit(){this._selectionModel=new qu(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Do(),Le(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(Le(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(Le(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(It(null),Le(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(this._previousControl!==void 0&&n.disabled!==null&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=`${this.id}-panel`;this._trackedModal&&ib(this._trackedModal,"aria-owns",n),rD(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;ib(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let n=e.keyCode,r=n===40||n===38||n===37||n===39,o=n===13||n===32,s=this._keyManager;if(!s.isTyping()&&o&&!Ft(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let a=this.selected;s.onKeydown(e);let c=this.selected;c&&a!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){let n=this._keyManager,r=e.keyCode,o=r===40||r===38,s=n.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!s&&(r===13||r===32)&&n.activeItem&&!Ft(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!s&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let a=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(a?c.select():c.deselect())})}else{let a=n.activeItemIndex;n.onKeydown(e),this._multiple&&o&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==a&&n.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(_t(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let n=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return r.value!=null&&this._compareWith(r.value,e)}catch{return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof Ja?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Ou(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=Vt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Le(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Vt(...this.options.map(n=>n._stateChanges)).pipe(Le(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){let r=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((n,r)=>this.sortComparator?this.sortComparator(n,r,e):e.indexOf(n)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let n;this.multiple?n=this.selected.map(r=>r.value):n=this.selected?this.selected.value:e,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let n=0;n<this.options.length;n++)if(!this.options.get(n).disabled){e=n;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static{this.\u0275fac=function(n){return new(n||i)(g(pr),g(He),g(V),g(Hu),g(Z),g(ri,8),g(ya,8),g(xa,8),g(Za,8),g(En,10),Ki("tabindex"),g(vE),g(ju),g(Jj,8))}}static{this.\u0275cmp=ue({type:i,selectors:[["mat-select"]],contentQueries:function(n,r,o){if(n&1&&(Pt(o,tV,5),Pt(o,Uu,5),Pt(o,fb,5)),n&2){let s;ne(s=re())&&(r.customTrigger=s.first),ne(s=re())&&(r.options=s),ne(s=re())&&(r.optionGroups=s)}},viewQuery:function(n,r){if(n&1&&(we(Hj,5),we(Uj,5),we(Tb,5)),n&2){let o;ne(o=re())&&(r.trigger=o.first),ne(o=re())&&(r.panel=o.first),ne(o=re())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(n,r){n&1&&j("keydown",function(s){return r._handleKeydown(s)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),n&2&&(Pe("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),ke("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",me],disableRipple:[2,"disableRipple","disableRipple",me],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Zi(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",me],placeholder:"placeholder",required:[2,"required","required",me],multiple:[2,"multiple","multiple",me],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",me],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Zi],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[rt([{provide:Qa,useExisting:i},{provide:hb,useExisting:i}]),nt,Qe,ze],ngContentSelectors:Wj,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(n,r){if(n&1){let o=Te();gt($j),y(0,"div",2,0),j("click",function(){return F(o),L(r.open())}),y(3,"div",3),ee(4,qj,2,1,"span",4)(5,Kj,3,1,"span",5),b(),y(6,"div",6)(7,"div",7),Br(),y(8,"svg",8),ie(9,"path",9),b()()()(),ee(10,Qj,3,9,"ng-template",10),j("backdropClick",function(){return F(o),L(r.close())})("attach",function(){return F(o),L(r._onAttached())})("detach",function(){return F(o),L(r.close())})}if(n&2){let o=Si(1);C(3),Pe("id",r._valueId),C(),Je(r.empty?4:5),C(6),R("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)}},dependencies:[Ja,Tb,Dw],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-app-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-app-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-app-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-app-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-app-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-app-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[Zj.transformPanel]},changeDetection:0})}}return i})();var yE=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=J({type:i})}static{this.\u0275inj=X({providers:[eV],imports:[pi,br,mb,Re,Gu,Xa,mb,Re]})}}return i})();var nV=["dialogPopup"],rV=["hueSlider"],oV=["alphaSlider"];function sV(i,t){if(i&1&&ie(0,"div"),i&2){let e=O();sd("arrow arrow-",e.cpUsePosition,""),Ze("left",e.cpArrowPosition)("top",e.arrowTop,"px")}}function aV(i,t){if(i&1){let e=Te();y(0,"div",28),j("newValue",function(r){F(e);let o=O();return L(o.onColorChange(r))})("dragStart",function(){F(e);let r=O();return L(r.onDragStart("saturation-lightness"))})("dragEnd",function(){F(e);let r=O();return L(r.onDragEnd("saturation-lightness"))}),ie(1,"div",16),b()}if(i&2){let e=O();Ze("background-color",e.hueSliderColor),R("rgX",1)("rgY",1),C(),Ze("top",e.slider==null?null:e.slider.v,"px")("left",e.slider==null?null:e.slider.s,"px")}}function cV(i,t){i&1&&(Br(),y(0,"svg",29),ie(1,"path",30)(2,"path",31),b())}function lV(i,t){if(i&1){let e=Te();y(0,"button",32),j("click",function(r){F(e);let o=O();return L(o.onAddPresetColor(r,o.selectedColor))}),q(1),b()}if(i&2){let e=O();fi(e.cpAddColorButtonClass),R("disabled",e.cpPresetColors&&e.cpPresetColors.length>=e.cpMaxPresetColorsLength),C(),ct(" ",e.cpAddColorButtonText," ")}}function dV(i,t){i&1&&ie(0,"div",33)}function uV(i,t){if(i&1){let e=Te();y(0,"input",39),j("keyup.enter",function(r){F(e);let o=O(2);return L(o.onAcceptColor(r))})("newValue",function(r){F(e);let o=O(2);return L(o.onAlphaInput(r))}),b()}if(i&2){let e=O(2);R("rg",1)("value",e.cmykText==null?null:e.cmykText.a)}}function hV(i,t){i&1&&(y(0,"div"),q(1,"A"),b())}function fV(i,t){if(i&1){let e=Te();y(0,"div",34)(1,"div",35)(2,"input",36),j("keyup.enter",function(r){F(e);let o=O();return L(o.onAcceptColor(r))})("newValue",function(r){F(e);let o=O();return L(o.onCyanInput(r))}),b(),y(3,"input",36),j("keyup.enter",function(r){F(e);let o=O();return L(o.onAcceptColor(r))})("newValue",function(r){F(e);let o=O();return L(o.onMagentaInput(r))}),b(),y(4,"input",36),j("keyup.enter",function(r){F(e);let o=O();return L(o.onAcceptColor(r))})("newValue",function(r){F(e);let o=O();return L(o.onYellowInput(r))}),b(),y(5,"input",36),j("keyup.enter",function(r){F(e);let o=O();return L(o.onAcceptColor(r))})("newValue",function(r){F(e);let o=O();return L(o.onBlackInput(r))}),b(),ee(6,uV,1,2,"input",37),b(),y(7,"div",35)(8,"div"),q(9,"C"),b(),y(10,"div"),q(11,"M"),b(),y(12,"div"),q(13,"Y"),b(),y(14,"div"),q(15,"K"),b(),ee(16,hV,2,0,"div",38),b()()}if(i&2){let e=O();Ze("display",e.format!==3?"none":"block"),C(2),R("rg",100)("value",e.cmykText==null?null:e.cmykText.c),C(),R("rg",100)("value",e.cmykText==null?null:e.cmykText.m),C(),R("rg",100)("value",e.cmykText==null?null:e.cmykText.y),C(),R("rg",100)("value",e.cmykText==null?null:e.cmykText.k),C(),R("ngIf",e.cpAlphaChannel!=="disabled"),C(10),R("ngIf",e.cpAlphaChannel!=="disabled")}}function mV(i,t){if(i&1){let e=Te();y(0,"input",39),j("keyup.enter",function(r){F(e);let o=O(2);return L(o.onAcceptColor(r))})("newValue",function(r){F(e);let o=O(2);return L(o.onAlphaInput(r))}),b()}if(i&2){let e=O(2);R("rg",1)("value",e.hslaText==null?null:e.hslaText.a)}}function pV(i,t){i&1&&(y(0,"div"),q(1,"A"),b())}function gV(i,t){if(i&1){let e=Te();y(0,"div",40)(1,"div",35)(2,"input",41),j("keyup.enter",function(r){F(e);let o=O();return L(o.onAcceptColor(r))})("newValue",function(r){F(e);let o=O();return L(o.onHueInput(r))}),b(),y(3,"input",36),j("keyup.enter",function(r){F(e);let o=O();return L(o.onAcceptColor(r))})("newValue",function(r){F(e);let o=O();return L(o.onSaturationInput(r))}),b(),y(4,"input",36),j("keyup.enter",function(r){F(e);let o=O();return L(o.onAcceptColor(r))})("newValue",function(r){F(e);let o=O();return L(o.onLightnessInput(r))}),b(),ee(5,mV,1,2,"input",37),b(),y(6,"div",35)(7,"div"),q(8,"H"),b(),y(9,"div"),q(10,"S"),b(),y(11,"div"),q(12,"L"),b(),ee(13,pV,2,0,"div",38),b()()}if(i&2){let e=O();Ze("display",e.format!==2?"none":"block"),C(2),R("rg",360)("value",e.hslaText==null?null:e.hslaText.h),C(),R("rg",100)("value",e.hslaText==null?null:e.hslaText.s),C(),R("rg",100)("value",e.hslaText==null?null:e.hslaText.l),C(),R("ngIf",e.cpAlphaChannel!=="disabled"),C(8),R("ngIf",e.cpAlphaChannel!=="disabled")}}function bV(i,t){if(i&1){let e=Te();y(0,"input",39),j("keyup.enter",function(r){F(e);let o=O(2);return L(o.onAcceptColor(r))})("newValue",function(r){F(e);let o=O(2);return L(o.onAlphaInput(r))}),b()}if(i&2){let e=O(2);R("rg",1)("value",e.rgbaText==null?null:e.rgbaText.a)}}function vV(i,t){i&1&&(y(0,"div"),q(1,"A"),b())}function _V(i,t){if(i&1){let e=Te();y(0,"div",42)(1,"div",35)(2,"input",43),j("keyup.enter",function(r){F(e);let o=O();return L(o.onAcceptColor(r))})("newValue",function(r){F(e);let o=O();return L(o.onRedInput(r))}),b(),y(3,"input",43),j("keyup.enter",function(r){F(e);let o=O();return L(o.onAcceptColor(r))})("newValue",function(r){F(e);let o=O();return L(o.onGreenInput(r))}),b(),y(4,"input",43),j("keyup.enter",function(r){F(e);let o=O();return L(o.onAcceptColor(r))})("newValue",function(r){F(e);let o=O();return L(o.onBlueInput(r))}),b(),ee(5,bV,1,2,"input",37),b(),y(6,"div",35)(7,"div"),q(8,"R"),b(),y(9,"div"),q(10,"G"),b(),y(11,"div"),q(12,"B"),b(),ee(13,vV,2,0,"div",38),b()()}if(i&2){let e=O();Ze("display",e.format!==1?"none":"block"),C(2),R("rg",255)("value",e.rgbaText==null?null:e.rgbaText.r),C(),R("rg",255)("value",e.rgbaText==null?null:e.rgbaText.g),C(),R("rg",255)("value",e.rgbaText==null?null:e.rgbaText.b),C(),R("ngIf",e.cpAlphaChannel!=="disabled"),C(8),R("ngIf",e.cpAlphaChannel!=="disabled")}}function yV(i,t){if(i&1){let e=Te();y(0,"input",39),j("keyup.enter",function(r){F(e);let o=O(2);return L(o.onAcceptColor(r))})("newValue",function(r){F(e);let o=O(2);return L(o.onAlphaInput(r))}),b()}if(i&2){let e=O(2);R("rg",1)("value",e.hexAlpha)}}function wV(i,t){i&1&&(y(0,"div"),q(1,"A"),b())}function xV(i,t){if(i&1){let e=Te();y(0,"div",44)(1,"div",35)(2,"input",45),j("blur",function(){F(e);let r=O();return L(r.onHexInput(null))})("keyup.enter",function(r){F(e);let o=O();return L(o.onAcceptColor(r))})("newValue",function(r){F(e);let o=O();return L(o.onHexInput(r))}),b(),ee(3,yV,1,2,"input",37),b(),y(4,"div",35)(5,"div"),q(6,"Hex"),b(),ee(7,wV,2,0,"div",38),b()()}if(i&2){let e=O();Ze("display",e.format!==0?"none":"block"),ke("hex-alpha",e.cpAlphaChannel==="forced"),C(2),R("value",e.hexText),C(),R("ngIf",e.cpAlphaChannel==="forced"),C(4),R("ngIf",e.cpAlphaChannel==="forced")}}function CV(i,t){if(i&1){let e=Te();y(0,"input",39),j("keyup.enter",function(r){F(e);let o=O(2);return L(o.onAcceptColor(r))})("newValue",function(r){F(e);let o=O(2);return L(o.onAlphaInput(r))}),b()}if(i&2){let e=O(2);R("rg",1)("value",e.hslaText==null?null:e.hslaText.a)}}function DV(i,t){if(i&1){let e=Te();y(0,"div",46)(1,"div",35)(2,"input",36),j("keyup.enter",function(r){F(e);let o=O();return L(o.onAcceptColor(r))})("newValue",function(r){F(e);let o=O();return L(o.onValueInput(r))}),b(),ee(3,CV,1,2,"input",37),b(),y(4,"div",35)(5,"div"),q(6,"V"),b(),y(7,"div"),q(8,"A"),b()()()}if(i&2){let e=O();C(2),R("rg",100)("value",e.hslaText==null?null:e.hslaText.l),C(),R("ngIf",e.cpAlphaChannel!=="disabled")}}function EV(i,t){if(i&1){let e=Te();y(0,"div",47)(1,"span",48),j("click",function(){F(e);let r=O();return L(r.onFormatToggle(-1))}),b(),y(2,"span",48),j("click",function(){F(e);let r=O();return L(r.onFormatToggle(1))}),b()()}}function IV(i,t){if(i&1){let e=Te();y(0,"span",55),j("click",function(r){F(e);let o=O().$implicit,s=O(3);return L(s.onRemovePresetColor(r,o))}),b()}if(i&2){let e=O(4);fi(e.cpRemoveColorButtonClass)}}function kV(i,t){if(i&1){let e=Te();y(0,"div",53),j("click",function(){let r=F(e).$implicit,o=O(3);return L(o.setColorFromString(r))}),ee(1,IV,1,3,"span",54),b()}if(i&2){let e=t.$implicit,n=O(3);Ze("background-color",e),C(),R("ngIf",n.cpAddColorButton)}}function MV(i,t){if(i&1&&(y(0,"div"),ee(1,kV,2,3,"div",52),b()),i&2){let e=O(2);fi(e.cpPresetColorsClass),C(),R("ngForOf",e.cpPresetColors)}}function SV(i,t){if(i&1&&(y(0,"div"),q(1),b()),i&2){let e=O(2);fi(e.cpPresetEmptyMessageClass),C(),$t(e.cpPresetEmptyMessage)}}function AV(i,t){if(i&1&&(y(0,"div",49),ie(1,"hr"),y(2,"div",50),q(3),b(),ee(4,MV,2,4,"div",51)(5,SV,2,4,"div",51),b()),i&2){let e=O();C(3),$t(e.cpPresetLabel),C(),R("ngIf",e.cpPresetColors==null?null:e.cpPresetColors.length),C(),R("ngIf",!(e.cpPresetColors!=null&&e.cpPresetColors.length)&&e.cpAddColorButton)}}function TV(i,t){if(i&1){let e=Te();y(0,"button",58),j("click",function(r){F(e);let o=O(2);return L(o.onCancelColor(r))}),q(1),b()}if(i&2){let e=O(2);fi(e.cpCancelButtonClass),C(),$t(e.cpCancelButtonText)}}function RV(i,t){if(i&1){let e=Te();y(0,"button",58),j("click",function(r){F(e);let o=O(2);return L(o.onAcceptColor(r))}),q(1),b()}if(i&2){let e=O(2);fi(e.cpOKButtonClass),C(),$t(e.cpOKButtonText)}}function OV(i,t){if(i&1&&(y(0,"div",56),ee(1,TV,2,4,"button",57)(2,RV,2,4,"button",57),b()),i&2){let e=O();C(),R("ngIf",e.cpCancelButton),C(),R("ngIf",e.cpOKButton)}}function NV(i,t){i&1&&zm(0)}function PV(i,t){if(i&1&&(y(0,"div",59),ee(1,NV,1,0,"ng-container",60),b()),i&2){let e=O();C(),R("ngTemplateOutlet",e.cpExtraTemplate)}}var Lt=function(i){return i[i.HEX=0]="HEX",i[i.RGBA=1]="RGBA",i[i.HSLA=2]="HSLA",i[i.CMYK=3]="CMYK",i}(Lt||{}),Pi=class{r;g;b;a;constructor(t,e,n,r){this.r=t,this.g=e,this.b=n,this.a=r}},ws=class{h;s;v;a;constructor(t,e,n,r){this.h=t,this.s=e,this.v=n,this.a=r}},Pn=class{h;s;l;a;constructor(t,e,n,r){this.h=t,this.s=e,this.l=n,this.a=r}},co=class{c;m;y;k;a;constructor(t,e,n,r,o=1){this.c=t,this.m=e,this.y=n,this.k=r,this.a=o}};function FV(i,t){let e="right",n="bottom",{height:r,width:o}=i,{top:s,left:a}=t,c=s+t.height,l=a+t.width,d=s-r<0,u=c+r>(window.innerHeight||document.documentElement.clientHeight),f=a-o<0,h=l+o>(window.innerWidth||document.documentElement.clientWidth),m=d&&u&&f&&h;return u&&(n="top"),d&&(n="bottom"),f&&(e="right"),h&&(e="left"),m?["left","right","top","bottom"].reduce((v,D)=>i[v]>i[D]?v:D):f&&h?d?"bottom":u||s>c?"top":"bottom":d&&u?f?"right":h||a>l?"left":"right":`${n}-${e}`}function LV(){let i="";typeof navigator<"u"&&(i=navigator.userAgent.toLowerCase());let t=i.indexOf("msie ");return t>0?parseInt(i.substring(t+5,i.indexOf(".",t)),10):!1}var jV=(()=>{class i{rg;text;newValue=new Y;inputChange(e){let n=e.target.value;if(this.rg===void 0)this.newValue.emit(n);else{let r=parseFloat(n);this.newValue.emit({v:r,rg:this.rg})}}static \u0275fac=function(n){return new(n||i)};static \u0275dir=Q({type:i,selectors:[["","text",""]],hostBindings:function(n,r){n&1&&j("input",function(s){return r.inputChange(s)})},inputs:{rg:"rg",text:"text"},outputs:{newValue:"newValue"}})}return i})(),VV=(()=>{class i{elRef;listenerMove;listenerStop;rgX;rgY;slider;dragEnd=new Y;dragStart=new Y;newValue=new Y;mouseDown(e){this.start(e)}touchStart(e){this.start(e)}constructor(e){this.elRef=e,this.listenerMove=n=>this.move(n),this.listenerStop=()=>this.stop()}move(e){e.preventDefault(),this.setCursor(e)}start(e){this.setCursor(e),e.stopPropagation(),document.addEventListener("mouseup",this.listenerStop),document.addEventListener("touchend",this.listenerStop),document.addEventListener("mousemove",this.listenerMove),document.addEventListener("touchmove",this.listenerMove),this.dragStart.emit()}stop(){document.removeEventListener("mouseup",this.listenerStop),document.removeEventListener("touchend",this.listenerStop),document.removeEventListener("mousemove",this.listenerMove),document.removeEventListener("touchmove",this.listenerMove),this.dragEnd.emit()}getX(e){let n=this.elRef.nativeElement.getBoundingClientRect();return(e.pageX!==void 0?e.pageX:e.touches[0].pageX)-n.left-window.pageXOffset}getY(e){let n=this.elRef.nativeElement.getBoundingClientRect();return(e.pageY!==void 0?e.pageY:e.touches[0].pageY)-n.top-window.pageYOffset}setCursor(e){let n=this.elRef.nativeElement.offsetWidth,r=this.elRef.nativeElement.offsetHeight,o=Math.max(0,Math.min(this.getX(e),n)),s=Math.max(0,Math.min(this.getY(e),r));this.rgX!==void 0&&this.rgY!==void 0?this.newValue.emit({s:o/n,v:1-s/r,rgX:this.rgX,rgY:this.rgY}):this.rgX===void 0&&this.rgY!==void 0?this.newValue.emit({v:s/r,rgY:this.rgY}):this.rgX!==void 0&&this.rgY===void 0&&this.newValue.emit({v:o/n,rgX:this.rgX})}static \u0275fac=function(n){return new(n||i)(g(Z))};static \u0275dir=Q({type:i,selectors:[["","slider",""]],hostBindings:function(n,r){n&1&&j("mousedown",function(s){return r.mouseDown(s)})("touchstart",function(s){return r.touchStart(s)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}})}return i})(),rh=class{h;s;v;a;constructor(t,e,n,r){this.h=t,this.s=e,this.v=n,this.a=r}},oh=class{h;s;v;a;constructor(t,e,n,r){this.h=t,this.s=e,this.v=n,this.a=r}},Bb=(()=>{class i{active=null;setActive(e){this.active&&this.active!==e&&this.active.cpDialogDisplay!=="inline"&&this.active.closeDialog(),this.active=e}hsva2hsla(e){let n=e.h,r=e.s,o=e.v,s=e.a;if(o===0)return new Pn(n,0,0,s);if(r===0&&o===1)return new Pn(n,1,1,s);{let a=o*(2-r)/2;return new Pn(n,o*r/(1-Math.abs(2*a-1)),a,s)}}hsla2hsva(e){let n=Math.min(e.h,1),r=Math.min(e.s,1),o=Math.min(e.l,1),s=Math.min(e.a,1);if(o===0)return new ws(n,0,0,s);{let a=o+r*(1-Math.abs(2*o-1))/2;return new ws(n,2*(a-o)/a,a,s)}}hsvaToRgba(e){let n,r,o,s=e.h,a=e.s,c=e.v,l=e.a,d=Math.floor(s*6),u=s*6-d,f=c*(1-a),h=c*(1-u*a),m=c*(1-(1-u)*a);switch(d%6){case 0:n=c,r=m,o=f;break;case 1:n=h,r=c,o=f;break;case 2:n=f,r=c,o=m;break;case 3:n=f,r=h,o=c;break;case 4:n=m,r=f,o=c;break;case 5:n=c,r=f,o=h;break;default:n=0,r=0,o=0}return new Pi(n,r,o,l)}cmykToRgb(e){let n=(1-e.c)*(1-e.k),r=(1-e.m)*(1-e.k),o=(1-e.y)*(1-e.k);return new Pi(n,r,o,e.a)}rgbaToCmyk(e){let n=1-Math.max(e.r,e.g,e.b);if(n===1)return new co(0,0,0,1,e.a);{let r=(1-e.r-n)/(1-n),o=(1-e.g-n)/(1-n),s=(1-e.b-n)/(1-n);return new co(r,o,s,n,e.a)}}rgbaToHsva(e){let n,r,o=Math.min(e.r,1),s=Math.min(e.g,1),a=Math.min(e.b,1),c=Math.min(e.a,1),l=Math.max(o,s,a),d=Math.min(o,s,a),u=l,f=l-d;if(r=l===0?0:f/l,l===d)n=0;else{switch(l){case o:n=(s-a)/f+(s<a?6:0);break;case s:n=(a-o)/f+2;break;case a:n=(o-s)/f+4;break;default:n=0}n/=6}return new ws(n,r,u,c)}rgbaToHex(e,n){let r="#"+(16777216|e.r<<16|e.g<<8|e.b).toString(16).substr(1);return n&&(r+=(256|Math.round(e.a*255)).toString(16).substr(1)),r}normalizeCMYK(e){return new co(e.c/100,e.m/100,e.y/100,e.k/100,e.a)}denormalizeCMYK(e){return new co(Math.floor(e.c*100),Math.floor(e.m*100),Math.floor(e.y*100),Math.floor(e.k*100),e.a)}denormalizeRGBA(e){return new Pi(Math.round(e.r*255),Math.round(e.g*255),Math.round(e.b*255),e.a)}stringToHsva(e="",n=!1){let r=null;e=(e||"").toLowerCase();let o=[{re:/(rgb)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*%?,\s*(\d{1,3})\s*%?(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(s){return new Pi(parseInt(s[2],10)/255,parseInt(s[3],10)/255,parseInt(s[4],10)/255,isNaN(parseFloat(s[5]))?1:parseFloat(s[5]))}},{re:/(hsl)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(s){return new Pn(parseInt(s[2],10)/360,parseInt(s[3],10)/100,parseInt(s[4],10)/100,isNaN(parseFloat(s[5]))?1:parseFloat(s[5]))}}];n?o.push({re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})?$/,parse:function(s){return new Pi(parseInt(s[1],16)/255,parseInt(s[2],16)/255,parseInt(s[3],16)/255,parseInt(s[4]||"FF",16)/255)}}):o.push({re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/,parse:function(s){return new Pi(parseInt(s[1],16)/255,parseInt(s[2],16)/255,parseInt(s[3],16)/255,1)}}),o.push({re:/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])$/,parse:function(s){return new Pi(parseInt(s[1]+s[1],16)/255,parseInt(s[2]+s[2],16)/255,parseInt(s[3]+s[3],16)/255,1)}});for(let s in o)if(o.hasOwnProperty(s)){let a=o[s],c=a.re.exec(e),l=c&&a.parse(c);if(l)return l instanceof Pi?r=this.rgbaToHsva(l):l instanceof Pn&&(r=this.hsla2hsva(l)),r}return r}outputFormat(e,n,r){switch(n==="auto"&&(n=e.a<1?"rgba":"hex"),n){case"hsla":let o=this.hsva2hsla(e),s=new Pn(Math.round(o.h*360),Math.round(o.s*100),Math.round(o.l*100),Math.round(o.a*100)/100);return e.a<1||r==="always"?"hsla("+s.h+","+s.s+"%,"+s.l+"%,"+s.a+")":"hsl("+s.h+","+s.s+"%,"+s.l+"%)";case"rgba":let a=this.denormalizeRGBA(this.hsvaToRgba(e));return e.a<1||r==="always"?"rgba("+a.r+","+a.g+","+a.b+","+Math.round(a.a*100)/100+")":"rgb("+a.r+","+a.g+","+a.b+")";default:let c=r==="always"||r==="forced";return this.rgbaToHex(this.denormalizeRGBA(this.hsvaToRgba(e)),c)}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=E({token:i,factory:i.\u0275fac})}return i})(),wE=typeof window<"u"&&"ontouchstart"in window,BV=(()=>{class i{ngZone;elRef;cdRef;document;platformId;service;isIE10=!1;cmyk;hsva;width;height;cmykColor;outputColor;initialColor;fallbackColor;listenerResize;listenerMouseDown;directiveInstance;sliderH;sliderDimMax;directiveElementRef;dialogArrowSize=10;dialogArrowOffset=15;dialogInputFields=[Lt.HEX,Lt.RGBA,Lt.HSLA,Lt.CMYK];useRootViewContainer=!1;show;hidden;top;left;position;format;slider;hexText;hexAlpha;cmykText;hslaText;rgbaText;arrowTop;selectedColor;hueSliderColor;alphaSliderColor;cpWidth;cpHeight;cpColorMode;cpCmykEnabled;cpAlphaChannel;cpOutputFormat;cpDisableInput;cpDialogDisplay;cpIgnoredElements;cpSaveClickOutside;cpCloseClickOutside;cpPosition;cpUsePosition;cpPositionOffset;cpOKButton;cpOKButtonText;cpOKButtonClass;cpCancelButton;cpCancelButtonText;cpCancelButtonClass;cpEyeDropper;eyeDropperSupported;cpPresetLabel;cpPresetColors;cpPresetColorsClass;cpMaxPresetColorsLength;cpPresetEmptyMessage;cpPresetEmptyMessageClass;cpAddColorButton;cpAddColorButtonText;cpAddColorButtonClass;cpRemoveColorButtonClass;cpArrowPosition;cpTriggerElement;cpExtraTemplate;dialogElement;hueSlider;alphaSlider;handleEsc(e){this.show&&this.cpDialogDisplay==="popup"&&this.onCancelColor(e)}handleEnter(e){this.show&&this.cpDialogDisplay==="popup"&&this.onAcceptColor(e)}constructor(e,n,r,o,s,a){this.ngZone=e,this.elRef=n,this.cdRef=r,this.document=o,this.platformId=s,this.service=a,this.eyeDropperSupported=Js(this.platformId)&&"EyeDropper"in this.document.defaultView}ngOnInit(){this.slider=new rh(0,0,0,0);let e=this.hueSlider.nativeElement.offsetWidth||140,n=this.alphaSlider.nativeElement.offsetWidth||140;this.sliderDimMax=new oh(e,this.cpWidth,130,n),this.cpCmykEnabled?this.format=Lt.CMYK:this.cpOutputFormat==="rgba"?this.format=Lt.RGBA:this.cpOutputFormat==="hsla"?this.format=Lt.HSLA:this.format=Lt.HEX,this.listenerMouseDown=r=>{this.onMouseDown(r)},this.listenerResize=()=>{this.onResize()},this.openDialog(this.initialColor,!1)}ngOnDestroy(){this.closeDialog()}ngAfterViewInit(){if(this.cpWidth!==230||this.cpDialogDisplay==="inline"){let e=this.hueSlider.nativeElement.offsetWidth||140,n=this.alphaSlider.nativeElement.offsetWidth||140;this.sliderDimMax=new oh(e,this.cpWidth,130,n),this.updateColorPicker(!1),this.cdRef.detectChanges()}}openDialog(e,n=!0){this.service.setActive(this),this.width||(this.cpWidth=this.directiveElementRef.nativeElement.offsetWidth),this.height||(this.height=320),this.setInitialColor(e),this.setColorFromString(e,n),this.openColorPicker()}closeDialog(){this.closeColorPicker()}setupDialog(e,n,r,o,s,a,c,l,d,u,f,h,m,p,v,D,k,x,I,H,U,$,he,T,Be,je,Ye,et,B,oe,S,G,K,le,ge,W,$e,St){this.setInitialColor(r),this.setColorMode(l),this.isIE10=LV()===10,this.directiveInstance=e,this.directiveElementRef=n,this.cpDisableInput=h,this.cpCmykEnabled=d,this.cpAlphaChannel=u,this.cpOutputFormat=f,this.cpDialogDisplay=a,this.cpIgnoredElements=m,this.cpSaveClickOutside=p,this.cpCloseClickOutside=v,this.useRootViewContainer=D,this.width=this.cpWidth=parseInt(o,10),this.height=this.cpHeight=parseInt(s,10),this.cpPosition=k,this.cpPositionOffset=parseInt(x,10),this.cpOKButton=je,this.cpOKButtonText=et,this.cpOKButtonClass=Ye,this.cpCancelButton=B,this.cpCancelButtonText=S,this.cpCancelButtonClass=oe,this.cpEyeDropper=W,this.fallbackColor=c||"#fff",this.setPresetConfig(H,U),this.cpPresetColorsClass=$,this.cpMaxPresetColorsLength=he,this.cpPresetEmptyMessage=T,this.cpPresetEmptyMessageClass=Be,this.cpAddColorButton=G,this.cpAddColorButtonText=le,this.cpAddColorButtonClass=K,this.cpRemoveColorButtonClass=ge,this.cpTriggerElement=$e,this.cpExtraTemplate=St,I||(this.dialogArrowOffset=0),a==="inline"&&(this.dialogArrowSize=0,this.dialogArrowOffset=0),f==="hex"&&u!=="always"&&u!=="forced"&&(this.cpAlphaChannel="disabled")}setColorMode(e){switch(e.toString().toUpperCase()){case"1":case"C":case"COLOR":this.cpColorMode=1;break;case"2":case"G":case"GRAYSCALE":this.cpColorMode=2;break;case"3":case"P":case"PRESETS":this.cpColorMode=3;break;default:this.cpColorMode=1}}setInitialColor(e){this.initialColor=e}setPresetConfig(e,n){this.cpPresetLabel=e,this.cpPresetColors=n}setColorFromString(e,n=!0,r=!0){let o;this.cpAlphaChannel==="always"||this.cpAlphaChannel==="forced"?(o=this.service.stringToHsva(e,!0),!o&&!this.hsva&&(o=this.service.stringToHsva(e,!1))):o=this.service.stringToHsva(e,!1),!o&&!this.hsva&&(o=this.service.stringToHsva(this.fallbackColor,!1)),o&&(this.hsva=o,this.sliderH=this.hsva.h,this.cpOutputFormat==="hex"&&this.cpAlphaChannel==="disabled"&&(this.hsva.a=1),this.updateColorPicker(n,r))}onResize(){this.position==="fixed"?this.setDialogPosition():this.cpDialogDisplay!=="inline"&&this.closeColorPicker()}onDragEnd(e){this.directiveInstance.sliderDragEnd({slider:e,color:this.outputColor})}onDragStart(e){this.directiveInstance.sliderDragStart({slider:e,color:this.outputColor})}onMouseDown(e){this.show&&!this.isIE10&&this.cpDialogDisplay==="popup"&&e.target!==this.directiveElementRef.nativeElement&&!this.isDescendant(this.elRef.nativeElement,e.target)&&!this.isDescendant(this.directiveElementRef.nativeElement,e.target)&&this.cpIgnoredElements.filter(n=>n===e.target).length===0&&this.ngZone.run(()=>{this.cpSaveClickOutside?this.directiveInstance.colorSelected(this.outputColor):(this.hsva=null,this.setColorFromString(this.initialColor,!1),this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor),this.directiveInstance.colorCanceled()),this.cpCloseClickOutside&&this.closeColorPicker()})}onAcceptColor(e){e.stopPropagation(),this.outputColor&&this.directiveInstance.colorSelected(this.outputColor),this.cpDialogDisplay==="popup"&&this.closeColorPicker()}onCancelColor(e){this.hsva=null,e.stopPropagation(),this.directiveInstance.colorCanceled(),this.setColorFromString(this.initialColor,!0),this.cpDialogDisplay==="popup"&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor,!0),this.closeColorPicker())}onEyeDropper(){if(!this.eyeDropperSupported)return;new window.EyeDropper().open().then(n=>{this.setColorFromString(n.sRGBHex,!0)})}onFormatToggle(e){let n=this.dialogInputFields.length-(this.cpCmykEnabled?0:1),r=((this.dialogInputFields.indexOf(this.format)+e)%n+n)%n;this.format=this.dialogInputFields[r]}onColorChange(e){this.hsva.s=e.s/e.rgX,this.hsva.v=e.v/e.rgY,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"lightness",value:this.hsva.v,color:this.outputColor}),this.directiveInstance.sliderChanged({slider:"saturation",value:this.hsva.s,color:this.outputColor})}onHueChange(e){this.hsva.h=e.v/e.rgX,this.sliderH=this.hsva.h,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"hue",value:this.hsva.h,color:this.outputColor})}onValueChange(e){this.hsva.v=e.v/e.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"value",value:this.hsva.v,color:this.outputColor})}onAlphaChange(e){this.hsva.a=e.v/e.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"alpha",value:this.hsva.a,color:this.outputColor})}onHexInput(e){if(e===null)this.updateColorPicker();else{e&&e[0]!=="#"&&(e="#"+e);let n=/^#([a-f0-9]{3}|[a-f0-9]{6})$/gi;this.cpAlphaChannel==="always"&&(n=/^#([a-f0-9]{3}|[a-f0-9]{6}|[a-f0-9]{8})$/gi);let r=n.test(e);r&&(e.length<5&&(e="#"+e.substring(1).split("").map(o=>o+o).join("")),this.cpAlphaChannel==="forced"&&(e+=Math.round(this.hsva.a*255).toString(16)),this.setColorFromString(e,!0,!1)),this.directiveInstance.inputChanged({input:"hex",valid:r,value:e,color:this.outputColor})}}onRedInput(e){let n=this.service.hsvaToRgba(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(n.r=e.v/e.rg,this.hsva=this.service.rgbaToHsva(n),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"red",valid:r,value:n.r,color:this.outputColor})}onBlueInput(e){let n=this.service.hsvaToRgba(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(n.b=e.v/e.rg,this.hsva=this.service.rgbaToHsva(n),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"blue",valid:r,value:n.b,color:this.outputColor})}onGreenInput(e){let n=this.service.hsvaToRgba(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(n.g=e.v/e.rg,this.hsva=this.service.rgbaToHsva(n),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"green",valid:r,value:n.g,color:this.outputColor})}onHueInput(e){let n=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;n&&(this.hsva.h=e.v/e.rg,this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"hue",valid:n,value:this.hsva.h,color:this.outputColor})}onValueInput(e){let n=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;n&&(this.hsva.v=e.v/e.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"value",valid:n,value:this.hsva.v,color:this.outputColor})}onAlphaInput(e){let n=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;n&&(this.hsva.a=e.v/e.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"alpha",valid:n,value:this.hsva.a,color:this.outputColor})}onLightnessInput(e){let n=this.service.hsva2hsla(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(n.l=e.v/e.rg,this.hsva=this.service.hsla2hsva(n),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"lightness",valid:r,value:n.l,color:this.outputColor})}onSaturationInput(e){let n=this.service.hsva2hsla(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(n.s=e.v/e.rg,this.hsva=this.service.hsla2hsva(n),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"saturation",valid:r,value:n.s,color:this.outputColor})}onCyanInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.c=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"cyan",valid:!0,value:this.cmyk.c,color:this.outputColor})}onMagentaInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.m=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"magenta",valid:!0,value:this.cmyk.m,color:this.outputColor})}onYellowInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.y=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"yellow",valid:!0,value:this.cmyk.y,color:this.outputColor})}onBlackInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.k=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"black",valid:!0,value:this.cmyk.k,color:this.outputColor})}onAddPresetColor(e,n){e.stopPropagation(),this.cpPresetColors.filter(r=>r===n).length||(this.cpPresetColors=this.cpPresetColors.concat(n),this.directiveInstance.presetColorsChanged(this.cpPresetColors))}onRemovePresetColor(e,n){e.stopPropagation(),this.cpPresetColors=this.cpPresetColors.filter(r=>r!==n),this.directiveInstance.presetColorsChanged(this.cpPresetColors)}openColorPicker(){this.show||(this.show=!0,this.hidden=!0,setTimeout(()=>{this.hidden=!1,this.setDialogPosition(),this.cdRef.detectChanges()},0),this.directiveInstance.stateChanged(!0),this.isIE10||this.ngZone.runOutsideAngular(()=>{wE?document.addEventListener("touchstart",this.listenerMouseDown):document.addEventListener("mousedown",this.listenerMouseDown)}),window.addEventListener("resize",this.listenerResize))}closeColorPicker(){this.show&&(this.show=!1,this.directiveInstance.stateChanged(!1),this.isIE10||(wE?document.removeEventListener("touchstart",this.listenerMouseDown):document.removeEventListener("mousedown",this.listenerMouseDown)),window.removeEventListener("resize",this.listenerResize),this.cdRef.destroyed||this.cdRef.detectChanges())}updateColorPicker(e=!0,n=!0,r=!1){if(this.sliderDimMax){this.cpColorMode===2&&(this.hsva.s=0);let o,s,a,c=this.outputColor;if(s=this.service.hsva2hsla(this.hsva),this.cpCmykEnabled?(r?(a=this.service.cmykToRgb(this.service.normalizeCMYK(this.cmyk)),this.hsva=this.service.rgbaToHsva(a)):(a=this.service.hsvaToRgba(this.hsva),this.cmyk=this.service.denormalizeCMYK(this.service.rgbaToCmyk(a))),a=this.service.denormalizeRGBA(a),this.sliderH=this.hsva.h):a=this.service.denormalizeRGBA(this.service.hsvaToRgba(this.hsva)),o=this.service.denormalizeRGBA(this.service.hsvaToRgba(new ws(this.sliderH||this.hsva.h,1,1,1))),n){this.hslaText=new Pn(Math.round(s.h*360),Math.round(s.s*100),Math.round(s.l*100),Math.round(s.a*100)/100),this.rgbaText=new Pi(a.r,a.g,a.b,Math.round(a.a*100)/100),this.cpCmykEnabled&&(this.cmykText=new co(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k,Math.round(this.cmyk.a*100)/100));let l=this.cpAlphaChannel==="always";this.hexText=this.service.rgbaToHex(a,l),this.hexAlpha=this.rgbaText.a}if(this.cpOutputFormat==="auto"&&this.format!==Lt.RGBA&&this.format!==Lt.CMYK&&this.format!==Lt.HSLA&&this.hsva.a<1&&(this.format=this.hsva.a<1?Lt.RGBA:Lt.HEX),this.hueSliderColor="rgb("+o.r+","+o.g+","+o.b+")",this.alphaSliderColor="rgb("+a.r+","+a.g+","+a.b+")",this.outputColor=this.service.outputFormat(this.hsva,this.cpOutputFormat,this.cpAlphaChannel),this.selectedColor=this.service.outputFormat(this.hsva,"rgba",null),this.format!==Lt.CMYK)this.cmykColor="";else if(this.cpAlphaChannel==="always"||this.cpAlphaChannel==="enabled"||this.cpAlphaChannel==="forced"){let l=Math.round(this.cmyk.a*100)/100;this.cmykColor=`cmyka(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k},${l})`}else this.cmykColor=`cmyk(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k})`;this.slider=new rh((this.sliderH||this.hsva.h)*this.sliderDimMax.h-8,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-8),e&&c!==this.outputColor&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.outputColor))}}setDialogPosition(){if(this.cpDialogDisplay==="inline")this.position="relative";else{let e="static",n="",r,o=null,s=null,a=this.directiveElementRef.nativeElement.parentNode,c=this.dialogElement.nativeElement.offsetHeight;for(;a!==null&&a.tagName!=="HTML";){if(r=window.getComputedStyle(a),e=r.getPropertyValue("position"),n=r.getPropertyValue("transform"),e!=="static"&&o===null&&(o=a),n&&n!=="none"&&s===null&&(s=a),e==="fixed"){o=s;break}a=a.parentNode}let l=this.createDialogBox(this.directiveElementRef.nativeElement,e!=="fixed");if(this.useRootViewContainer||e==="fixed"&&(!o||o instanceof HTMLUnknownElement))this.top=l.top,this.left=l.left;else{o===null&&(o=a);let D=this.createDialogBox(o,e!=="fixed");this.top=l.top-D.top,this.left=l.left-D.left}e==="fixed"&&(this.position="fixed");let d=this.cpPosition,u=this.dialogElement.nativeElement.getBoundingClientRect();if(this.cpPosition==="auto"){let D=this.cpTriggerElement.nativeElement.getBoundingClientRect();d=FV(u,D)}switch(this.arrowTop=d==="top"?c-1:void 0,this.cpArrowPosition=void 0,d){case"top":this.top-=c+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*l.width-this.dialogArrowOffset;break;case"bottom":this.top+=l.height+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*l.width-this.dialogArrowOffset;break;case"top-left":case"left-top":this.top-=c-l.height+l.height*this.cpPositionOffset/100,this.left-=this.cpWidth+this.dialogArrowSize-2-this.dialogArrowOffset;break;case"top-right":case"right-top":this.top-=c-l.height+l.height*this.cpPositionOffset/100,this.left+=l.width+this.dialogArrowSize-2-this.dialogArrowOffset;break;case"left":case"bottom-left":case"left-bottom":this.top+=l.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left-=this.cpWidth+this.dialogArrowSize-2;break;case"right":case"bottom-right":case"right-bottom":default:this.top+=l.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left+=l.width+this.dialogArrowSize-2;break}let f=window.innerHeight,h=window.innerWidth,m=this.elRef.nativeElement.getBoundingClientRect();this.top+u.height>f&&(this.top=f-u.height,this.cpArrowPosition=m.x/2-20),this.left+u.width>h&&(this.left=h-u.width,this.cpArrowPosition=m.x/2-20),this.cpUsePosition=d}}isDescendant(e,n){let r=n.parentNode;for(;r!==null;){if(r===e)return!0;r=r.parentNode}return!1}createDialogBox(e,n){let{top:r,left:o}=e.getBoundingClientRect();return{top:r+(n?window.pageYOffset:0),left:o+(n?window.pageXOffset:0),width:e.offsetWidth,height:e.offsetHeight}}static \u0275fac=function(n){return new(n||i)(g(V),g(Z),g(He),g(ae),g(Ut),g(Bb))};static \u0275cmp=ue({type:i,selectors:[["color-picker"]],viewQuery:function(n,r){if(n&1&&(we(nV,7),we(rV,7),we(oV,7)),n&2){let o;ne(o=re())&&(r.dialogElement=o.first),ne(o=re())&&(r.hueSlider=o.first),ne(o=re())&&(r.alphaSlider=o.first)}},hostBindings:function(n,r){n&1&&j("keyup.esc",function(s){return r.handleEsc(s)},!1,Cm)("keyup.enter",function(s){return r.handleEnter(s)},!1,Cm)},decls:30,vars:51,consts:[["dialogPopup",""],["hueSlider",""],["valueSlider",""],["alphaSlider",""],[1,"color-picker",3,"click"],[3,"left","class","top",4,"ngIf"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue","dragStart","dragEnd",4,"ngIf"],[1,"hue-alpha","box"],[1,"left"],[1,"selected-color-background"],[1,"selected-color",3,"click"],["class","eyedropper-icon","xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",4,"ngIf"],["type","button",3,"class","disabled","click",4,"ngIf"],[1,"right"],["style","height: 16px;",4,"ngIf"],[1,"hue",3,"newValue","dragStart","dragEnd","slider","rgX"],[1,"cursor"],[1,"value",3,"newValue","dragStart","dragEnd","slider","rgX"],[1,"alpha",3,"newValue","dragStart","dragEnd","slider","rgX"],["class","cmyk-text",3,"display",4,"ngIf"],["class","hsla-text",3,"display",4,"ngIf"],["class","rgba-text",3,"display",4,"ngIf"],["class","hex-text",3,"hex-alpha","display",4,"ngIf"],["class","value-text",4,"ngIf"],["class","type-policy",4,"ngIf"],["class","preset-area",4,"ngIf"],["class","button-area",4,"ngIf"],["class","extra-template",4,"ngIf"],[1,"saturation-lightness",3,"newValue","dragStart","dragEnd","slider","rgX","rgY"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",1,"eyedropper-icon"],["d","M0 0h24v24H0V0z","fill","none"],["d","M17.66 5.41l.92.92-2.69 2.69-.92-.92 2.69-2.69M17.67 3c-.26 0-.51.1-.71.29l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42l-2.34-2.34c-.2-.19-.45-.29-.7-.29zM6.92 19L5 17.08l8.06-8.06 1.92 1.92L6.92 19z"],["type","button",3,"click","disabled"],[2,"height","16px"],[1,"cmyk-text"],[1,"box"],["type","number","pattern","[0-9]*","min","0","max","100",3,"keyup.enter","newValue","text","rg","value"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue",4,"ngIf"],[4,"ngIf"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"keyup.enter","newValue","text","rg","value"],[1,"hsla-text"],["type","number","pattern","[0-9]*","min","0","max","360",3,"keyup.enter","newValue","text","rg","value"],[1,"rgba-text"],["type","number","pattern","[0-9]*","min","0","max","255",3,"keyup.enter","newValue","text","rg","value"],[1,"hex-text"],[3,"blur","keyup.enter","newValue","text","value"],[1,"value-text"],[1,"type-policy"],[1,"type-policy-arrow",3,"click"],[1,"preset-area"],[1,"preset-label"],[3,"class",4,"ngIf"],["class","preset-color",3,"backgroundColor","click",4,"ngFor","ngForOf"],[1,"preset-color",3,"click"],[3,"class","click",4,"ngIf"],[3,"click"],[1,"button-area"],["type","button",3,"class","click",4,"ngIf"],["type","button",3,"click"],[1,"extra-template"],[4,"ngTemplateOutlet"]],template:function(n,r){if(n&1){let o=Te();y(0,"div",4,0),j("click",function(a){return F(o),L(a.stopPropagation())}),ee(2,sV,1,7,"div",5)(3,aV,2,8,"div",6),y(4,"div",7)(5,"div",8),ie(6,"div",9),y(7,"div",10),j("click",function(){return F(o),L(r.eyeDropperSupported&&r.cpEyeDropper&&r.onEyeDropper())}),ee(8,cV,3,0,"svg",11),b(),ee(9,lV,2,5,"button",12),b(),y(10,"div",13),ee(11,dV,1,0,"div",14),y(12,"div",15,1),j("newValue",function(a){return F(o),L(r.onHueChange(a))})("dragStart",function(){return F(o),L(r.onDragStart("hue"))})("dragEnd",function(){return F(o),L(r.onDragEnd("hue"))}),ie(14,"div",16),b(),y(15,"div",17,2),j("newValue",function(a){return F(o),L(r.onValueChange(a))})("dragStart",function(){return F(o),L(r.onDragStart("value"))})("dragEnd",function(){return F(o),L(r.onDragEnd("value"))}),ie(17,"div",16),b(),y(18,"div",18,3),j("newValue",function(a){return F(o),L(r.onAlphaChange(a))})("dragStart",function(){return F(o),L(r.onDragStart("alpha"))})("dragEnd",function(){return F(o),L(r.onDragEnd("alpha"))}),ie(20,"div",16),b()()(),ee(21,fV,17,12,"div",19)(22,gV,14,10,"div",20)(23,_V,14,10,"div",21)(24,xV,8,7,"div",22)(25,DV,9,3,"div",23)(26,EV,3,0,"div",24)(27,AV,6,3,"div",25)(28,OV,3,2,"div",26)(29,PV,2,1,"div",27),b()}n&2&&(Ze("display",r.show?"block":"none")("visibility",r.hidden?"hidden":"visible")("top",r.top,"px")("left",r.left,"px")("position",r.position)("height",r.cpHeight,"px")("width",r.cpWidth,"px"),ke("open",r.show),C(2),R("ngIf",r.cpDialogDisplay==="popup"),C(),R("ngIf",(r.cpColorMode||1)===1),C(4),Ze("background-color",r.selectedColor)("cursor",r.eyeDropperSupported&&r.cpEyeDropper?"pointer":null),C(),R("ngIf",r.eyeDropperSupported&&r.cpEyeDropper),C(),R("ngIf",r.cpAddColorButton),C(2),R("ngIf",r.cpAlphaChannel==="disabled"),C(),Ze("display",(r.cpColorMode||1)===1?"block":"none"),R("rgX",1),C(2),Ze("left",r.slider==null?null:r.slider.h,"px"),C(),Ze("display",(r.cpColorMode||1)===2?"block":"none"),R("rgX",1),C(2),Ze("right",r.slider==null?null:r.slider.v,"px"),C(),Ze("display",r.cpAlphaChannel==="disabled"?"none":"block")("background-color",r.alphaSliderColor),R("rgX",1),C(2),Ze("left",r.slider==null?null:r.slider.a,"px"),C(),R("ngIf",!r.cpDisableInput&&(r.cpColorMode||1)===1),C(),R("ngIf",!r.cpDisableInput&&(r.cpColorMode||1)===1),C(),R("ngIf",!r.cpDisableInput&&(r.cpColorMode||1)===1),C(),R("ngIf",!r.cpDisableInput&&(r.cpColorMode||1)===1),C(),R("ngIf",!r.cpDisableInput&&(r.cpColorMode||1)===2),C(),R("ngIf",!r.cpDisableInput&&(r.cpColorMode||1)===1),C(),R("ngIf",(r.cpPresetColors==null?null:r.cpPresetColors.length)||r.cpAddColorButton),C(),R("ngIf",r.cpOKButton||r.cpCancelButton),C(),R("ngIf",r.cpExtraTemplate))},dependencies:[Ai,wd,Xs,jV,VV],styles:[`.color-picker{position:absolute;z-index:1000;width:230px;height:auto;border:#777 solid 1px;cursor:default;-webkit-user-select:none;user-select:none;background-color:#fff}.color-picker *{box-sizing:border-box;margin:0;font-size:11px}.color-picker input{width:0;height:26px;min-width:0;font-size:13px;text-align:center;color:#000}.color-picker input:invalid,.color-picker input:-moz-ui-invalid,.color-picker input:-moz-submit-invalid{box-shadow:none}.color-picker input::-webkit-inner-spin-button,.color-picker input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.color-picker .arrow{position:absolute;z-index:999999;width:0;height:0;border-style:solid}.color-picker .arrow.arrow-top{left:8px;border-width:10px 5px;border-color:#777 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-bottom{top:-20px;left:8px;border-width:10px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #777 rgba(0,0,0,0)}.color-picker .arrow.arrow-top-left,.color-picker .arrow.arrow-left-top{right:-21px;bottom:8px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-top-right,.color-picker .arrow.arrow-right-top{bottom:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-left,.color-picker .arrow.arrow-left-bottom,.color-picker .arrow.arrow-bottom-left{top:8px;right:-21px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-right,.color-picker .arrow.arrow-right-bottom,.color-picker .arrow.arrow-bottom-right{top:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .cursor{position:relative;width:16px;height:16px;border:#222 solid 2px;border-radius:50%;cursor:default}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{position:relative;padding:16px 8px}.color-picker .right{flex:1 1 auto;padding:12px 8px}.color-picker .button-area{padding:0 16px 16px;text-align:right}.color-picker .button-area button{margin-left:8px}.color-picker .preset-area{padding:4px 15px}.color-picker .preset-area .preset-label{overflow:hidden;width:100%;padding:4px;font-size:11px;white-space:nowrap;text-align:left;text-overflow:ellipsis;color:#555}.color-picker .preset-area .preset-color{position:relative;display:inline-block;width:18px;height:18px;margin:4px 6px 8px;border:#a9a9a9 solid 1px;border-radius:25%;cursor:pointer}.color-picker .preset-area .preset-empty-message{min-height:18px;margin-top:4px;margin-bottom:8px;font-style:italic;text-align:center}.color-picker .hex-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .hex-text .box{padding:0 24px 8px 8px}.color-picker .hex-text .box div{float:left;flex:1 1 auto;text-align:center;color:#555;clear:left}.color-picker .hex-text .box input{flex:1 1 auto;padding:1px;border:#a9a9a9 solid 1px}.color-picker .hex-alpha .box div:first-child,.color-picker .hex-alpha .box input:first-child{flex-grow:3;margin-right:8px}.color-picker .cmyk-text,.color-picker .hsla-text,.color-picker .rgba-text,.color-picker .value-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .cmyk-text .box,.color-picker .hsla-text .box,.color-picker .rgba-text .box{padding:0 24px 8px 8px}.color-picker .value-text .box{padding:0 8px 8px}.color-picker .cmyk-text .box div,.color-picker .hsla-text .box div,.color-picker .rgba-text .box div,.color-picker .value-text .box div{flex:1 1 auto;margin-right:8px;text-align:center;color:#555}.color-picker .cmyk-text .box div:last-child,.color-picker .hsla-text .box div:last-child,.color-picker .rgba-text .box div:last-child,.color-picker .value-text .box div:last-child{margin-right:0}.color-picker .cmyk-text .box input,.color-picker .hsla-text .box input,.color-picker .rgba-text .box input,.color-picker .value-text .box input{float:left;flex:1;padding:1px;margin:0 8px 0 0;border:#a9a9a9 solid 1px}.color-picker .cmyk-text .box input:last-child,.color-picker .hsla-text .box input:last-child,.color-picker .rgba-text .box input:last-child,.color-picker .value-text .box input:last-child{margin-right:0}.color-picker .hue-alpha{align-items:center;margin-bottom:3px}.color-picker .hue{direction:ltr;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC)}.color-picker .value{direction:rtl;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAACTklEQVR42u3SYUcrABhA4U2SkmRJMmWSJklKJiWZZpKUJJskKUmaTFImKZOUzMySpGRmliRNJilJSpKSJEtmSpIpmWmSdO736/6D+x7OP3gUCoWCv1cqlSQlJZGcnExKSgqpqamkpaWRnp5ORkYGmZmZqFQqsrKyyM7OJicnh9zcXNRqNXl5eeTn56PRaCgoKKCwsJCioiK0Wi3FxcWUlJRQWlpKWVkZ5eXlVFRUUFlZiU6no6qqiurqampqaqitraWurg69Xk99fT0GgwGj0UhDQwONjY00NTXR3NxMS0sLra2ttLW10d7ejslkwmw209HRQWdnJ11dXXR3d9PT00Nvby99fX309/czMDDA4OAgFouFoaEhrFYrw8PDjIyMMDo6ytjYGDabjfHxcSYmJpicnGRqagq73c709DQzMzPMzs4yNzfH/Pw8DocDp9OJy+XC7XazsLDA4uIiS0tLLC8vs7KywurqKmtra3g8HrxeLz6fD7/fz/r6OhsbG2xubrK1tcX29jaBQICdnR2CwSC7u7vs7e2xv7/PwcEBh4eHHB0dcXx8zMnJCaenp5ydnXF+fs7FxQWXl5dcXV1xfX3Nzc0Nt7e33N3dEQqFuL+/5+HhgXA4TCQS4fHxkaenJ56fn3l5eeH19ZVoNMrb2xvv7+98fHwQi8WIx+N8fn6SSCT4+vri+/ubn58ffn9/+VcKgSWwBJbAElgCS2AJLIElsASWwBJYAktgCSyBJbAElsASWAJLYAksgSWwBJbAElgCS2AJLIElsP4/WH8AmJ5Z6jHS4h8AAAAASUVORK5CYII=)}.color-picker .alpha{direction:ltr;width:100%;height:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwYQlZMa3gAAAWVJREFUaN7tmEGO6jAQRCsOArHgBpyAJYGjcGocxAm4A2IHpmoWE0eBH+ezmFlNvU06shJ3W6VEelWMUQAIIF9f6qZpimsA1LYtS2uF51/u27YVAFZVRUkEoGHdPV/sIcbIEIIkUdI/9Xa7neyv61+SWFUVAVCSct00TWn2fv6u3+Ecfd3tXzy/0+nEUu+SPjo/kqzrmiQpScN6v98XewfA8/lMkiLJ2WxGSUopcT6fM6U0NX9/frfbjev1WtfrlZfLhYfDQQHG/AIOlnGwjINlHCxjHCzjYJm/TJWdCwquJXseFFzGwDNNeiKMOJTO8xQdDQaeB29+K9efeLaBo9J7vdvtJj1RjFFjfiv7qv95tjx/7leSQgh93e1ffMeIp6O+YQjho/N791t1XVOSSI7N//K+4/GoxWLBx+PB5/Op5XLJ+/3OlJJWqxU3m83ovv5iGf8KjYNlHCxjHCzjYBkHy5gf5gusvQU7U37jTAAAAABJRU5ErkJggg==)}.color-picker .type-policy{position:absolute;top:218px;right:12px;width:16px;height:24px;background-size:8px 16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:center}.color-picker .type-policy .type-policy-arrow{display:block;width:100%;height:50%}.color-picker .selected-color{position:absolute;top:16px;left:8px;width:40px;height:40px;border:1px solid #a9a9a9;border-radius:50%}.color-picker .selected-color-background{width:40px;height:40px;border-radius:50%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC)}.color-picker .saturation-lightness{direction:ltr;width:100%;height:130px;border:none;cursor:pointer;touch-action:manipulation;background-size:100% 100%;background-image:url(data:image/png;base64,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)}.color-picker .cp-add-color-button-class{position:absolute;display:inline;padding:0;margin:3px -3px;border:0;cursor:pointer;background:transparent}.color-picker .cp-add-color-button-class:hover{text-decoration:underline}.color-picker .cp-add-color-button-class:disabled{cursor:not-allowed;color:#999}.color-picker .cp-add-color-button-class:disabled:hover{text-decoration:none}.color-picker .cp-remove-color-button-class{position:absolute;top:-5px;right:-5px;display:block;width:10px;height:10px;border-radius:50%;cursor:pointer;text-align:center;background:#fff;box-shadow:1px 1px 5px #333}.color-picker .cp-remove-color-button-class:before{content:"x";position:relative;bottom:3.5px;display:inline-block;font-size:10px}.color-picker .eyedropper-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);fill:#fff;mix-blend-mode:exclusion}
|
|
13
|
-
`],encapsulation:2})}return i})(),zV=!1,xE=(()=>{class i{injector;cfr;appRef;vcRef;elRef;_service;dialog;dialogCreated=!1;ignoreChanges=!1;cmpRef;viewAttachedToAppRef=!1;colorPicker;cpWidth="230px";cpHeight="auto";cpToggle=!1;cpDisabled=!1;cpIgnoredElements=[];cpFallbackColor="";cpColorMode="color";cpCmykEnabled=!1;cpOutputFormat="auto";cpAlphaChannel="enabled";cpDisableInput=!1;cpDialogDisplay="popup";cpSaveClickOutside=!0;cpCloseClickOutside=!0;cpUseRootViewContainer=!1;cpPosition="auto";cpPositionOffset="0%";cpPositionRelativeToArrow=!1;cpOKButton=!1;cpOKButtonText="OK";cpOKButtonClass="cp-ok-button-class";cpCancelButton=!1;cpCancelButtonText="Cancel";cpCancelButtonClass="cp-cancel-button-class";cpEyeDropper=!1;cpPresetLabel="Preset colors";cpPresetColors;cpPresetColorsClass="cp-preset-colors-class";cpMaxPresetColorsLength=6;cpPresetEmptyMessage="No colors added";cpPresetEmptyMessageClass="preset-empty-message";cpAddColorButton=!1;cpAddColorButtonText="Add color";cpAddColorButtonClass="cp-add-color-button-class";cpRemoveColorButtonClass="cp-remove-color-button-class";cpArrowPosition=0;cpExtraTemplate;cpInputChange=new Y(!0);cpToggleChange=new Y(!0);cpSliderChange=new Y(!0);cpSliderDragEnd=new Y(!0);cpSliderDragStart=new Y(!0);colorPickerOpen=new Y(!0);colorPickerClose=new Y(!0);colorPickerCancel=new Y(!0);colorPickerSelect=new Y(!0);colorPickerChange=new Y(!1);cpCmykColorChange=new Y(!0);cpPresetColorsChange=new Y(!0);handleClick(){this.inputFocus()}handleFocus(){this.inputFocus()}handleInput(e){this.inputChange(e)}constructor(e,n,r,o,s,a){this.injector=e,this.cfr=n,this.appRef=r,this.vcRef=o,this.elRef=s,this._service=a}ngOnDestroy(){this.cmpRef!=null&&(this.viewAttachedToAppRef&&this.appRef.detachView(this.cmpRef.hostView),this.cmpRef.destroy(),this.cmpRef=null,this.dialog=null)}ngOnChanges(e){e.cpToggle&&!this.cpDisabled&&(e.cpToggle.currentValue?this.openDialog():e.cpToggle.currentValue||this.closeDialog()),e.colorPicker&&(this.dialog&&!this.ignoreChanges&&(this.cpDialogDisplay==="inline"&&this.dialog.setInitialColor(e.colorPicker.currentValue),this.dialog.setColorFromString(e.colorPicker.currentValue,!1),this.cpUseRootViewContainer&&this.cpDialogDisplay!=="inline"&&this.cmpRef.changeDetectorRef.detectChanges()),this.ignoreChanges=!1),(e.cpPresetLabel||e.cpPresetColors)&&this.dialog&&this.dialog.setPresetConfig(this.cpPresetLabel,this.cpPresetColors)}openDialog(){if(this.dialogCreated)this.dialog&&this.dialog.openDialog(this.colorPicker);else{let e=this.vcRef;if(this.dialogCreated=!0,this.viewAttachedToAppRef=!1,this.cpUseRootViewContainer&&this.cpDialogDisplay!=="inline"){let r=this.appRef.componentTypes[0],o=this.injector.get(r,_e.NULL);o!==_e.NULL?(e=o.vcRef||o.viewContainerRef||this.vcRef,zV&&e===this.vcRef&&console.warn("You are using cpUseRootViewContainer, but the root component is not exposing viewContainerRef!Please expose it by adding 'public vcRef: ViewContainerRef' to the constructor.")):this.viewAttachedToAppRef=!0}let n=this.cfr.resolveComponentFactory(BV);if(this.viewAttachedToAppRef)this.cmpRef=n.create(this.injector),this.appRef.attachView(this.cmpRef.hostView),document.body.appendChild(this.cmpRef.hostView.rootNodes[0]);else{let r=_e.create({providers:[],parent:e.injector});this.cmpRef=e.createComponent(n,0,r,[])}this.cmpRef.instance.setupDialog(this,this.elRef,this.colorPicker,this.cpWidth,this.cpHeight,this.cpDialogDisplay,this.cpFallbackColor,this.cpColorMode,this.cpCmykEnabled,this.cpAlphaChannel,this.cpOutputFormat,this.cpDisableInput,this.cpIgnoredElements,this.cpSaveClickOutside,this.cpCloseClickOutside,this.cpUseRootViewContainer,this.cpPosition,this.cpPositionOffset,this.cpPositionRelativeToArrow,this.cpPresetLabel,this.cpPresetColors,this.cpPresetColorsClass,this.cpMaxPresetColorsLength,this.cpPresetEmptyMessage,this.cpPresetEmptyMessageClass,this.cpOKButton,this.cpOKButtonClass,this.cpOKButtonText,this.cpCancelButton,this.cpCancelButtonClass,this.cpCancelButtonText,this.cpAddColorButton,this.cpAddColorButtonClass,this.cpAddColorButtonText,this.cpRemoveColorButtonClass,this.cpEyeDropper,this.elRef,this.cpExtraTemplate),this.dialog=this.cmpRef.instance,this.vcRef!==e&&this.cmpRef.changeDetectorRef.detectChanges()}}closeDialog(){this.dialog&&this.cpDialogDisplay==="popup"&&this.dialog.closeDialog()}cmykChanged(e){this.cpCmykColorChange.emit(e)}stateChanged(e){this.cpToggleChange.emit(e),e?this.colorPickerOpen.emit(this.colorPicker):this.colorPickerClose.emit(this.colorPicker)}colorChanged(e,n=!0){this.ignoreChanges=n,this.colorPickerChange.emit(e)}colorSelected(e){this.colorPickerSelect.emit(e)}colorCanceled(){this.colorPickerCancel.emit()}inputFocus(){let e=this.elRef.nativeElement,n=this.cpIgnoredElements.filter(r=>r===e);!this.cpDisabled&&!n.length&&(typeof document<"u"&&e===document.activeElement?this.openDialog():!this.dialog||!this.dialog.show?this.openDialog():this.closeDialog())}inputChange(e){this.dialog?this.dialog.setColorFromString(e.target.value,!0):(this.colorPicker=e.target.value,this.colorPickerChange.emit(this.colorPicker))}inputChanged(e){this.cpInputChange.emit(e)}sliderChanged(e){this.cpSliderChange.emit(e)}sliderDragEnd(e){this.cpSliderDragEnd.emit(e)}sliderDragStart(e){this.cpSliderDragStart.emit(e)}presetColorsChanged(e){this.cpPresetColorsChange.emit(e)}static \u0275fac=function(n){return new(n||i)(g(_e),g(Yt),g(Zt),g(pt),g(Z),g(Bb))};static \u0275dir=Q({type:i,selectors:[["","colorPicker",""]],hostBindings:function(n,r){n&1&&j("click",function(){return r.handleClick()})("focus",function(){return r.handleFocus()})("input",function(s){return r.handleInput(s)})},inputs:{colorPicker:"colorPicker",cpWidth:"cpWidth",cpHeight:"cpHeight",cpToggle:"cpToggle",cpDisabled:"cpDisabled",cpIgnoredElements:"cpIgnoredElements",cpFallbackColor:"cpFallbackColor",cpColorMode:"cpColorMode",cpCmykEnabled:"cpCmykEnabled",cpOutputFormat:"cpOutputFormat",cpAlphaChannel:"cpAlphaChannel",cpDisableInput:"cpDisableInput",cpDialogDisplay:"cpDialogDisplay",cpSaveClickOutside:"cpSaveClickOutside",cpCloseClickOutside:"cpCloseClickOutside",cpUseRootViewContainer:"cpUseRootViewContainer",cpPosition:"cpPosition",cpPositionOffset:"cpPositionOffset",cpPositionRelativeToArrow:"cpPositionRelativeToArrow",cpOKButton:"cpOKButton",cpOKButtonText:"cpOKButtonText",cpOKButtonClass:"cpOKButtonClass",cpCancelButton:"cpCancelButton",cpCancelButtonText:"cpCancelButtonText",cpCancelButtonClass:"cpCancelButtonClass",cpEyeDropper:"cpEyeDropper",cpPresetLabel:"cpPresetLabel",cpPresetColors:"cpPresetColors",cpPresetColorsClass:"cpPresetColorsClass",cpMaxPresetColorsLength:"cpMaxPresetColorsLength",cpPresetEmptyMessage:"cpPresetEmptyMessage",cpPresetEmptyMessageClass:"cpPresetEmptyMessageClass",cpAddColorButton:"cpAddColorButton",cpAddColorButtonText:"cpAddColorButtonText",cpAddColorButtonClass:"cpAddColorButtonClass",cpRemoveColorButtonClass:"cpRemoveColorButtonClass",cpArrowPosition:"cpArrowPosition",cpExtraTemplate:"cpExtraTemplate"},outputs:{cpInputChange:"cpInputChange",cpToggleChange:"cpToggleChange",cpSliderChange:"cpSliderChange",cpSliderDragEnd:"cpSliderDragEnd",cpSliderDragStart:"cpSliderDragStart",colorPickerOpen:"colorPickerOpen",colorPickerClose:"colorPickerClose",colorPickerCancel:"colorPickerCancel",colorPickerSelect:"colorPickerSelect",colorPickerChange:"colorPickerChange",cpCmykColorChange:"cpCmykColorChange",cpPresetColorsChange:"cpPresetColorsChange"},exportAs:["ngxColorPicker"],features:[Qe]})}return i})(),CE=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=J({type:i});static \u0275inj=X({providers:[Bb],imports:[pi]})}return i})();var on=(()=>{class i{constructor(){this._index=void 0,this._name=void 0,this._changeListeners=[],this._currentKey=0}get index(){return this._index}get name(){return this._name}notify(e,n){this._index=e,this._name=n,console.log("really happen");for(let r=0;r<this._changeListeners.length;++r)this._changeListeners[r].cb(e,n)}remove(e){for(let n=0;n<this._changeListeners.length;++n)if(this._changeListeners[n].key==e)return this._changeListeners.splice(n,1),!0;return!1}onChanged(e){return this._changeListeners.push({key:++this._currentKey,cb:e}),setTimeout(()=>{console.log("hello",this._index,this._name),e(this._index,this._name)},0),this._currentKey}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Kb=ev(Gb()),uo=500,KV=30*60*1e3,BE=15*60,QV=60*1e3,ZV=20*60*1e3,XV=90*1e3,JV=3e3,zE=200,lh=class{constructor(){this.builders=new Map,this.clients=new Map,this.jobs=new Map,this.history=[],this.events=[],this.stats=void 0,this.schedulerVersion=void 0,this.sessionStart=Date.now(),this.sessionHits=0,this.sessionCompiles=0,this.sessionFailures=0,this.sessionDropped=0,this.compileMsEma=0,this.prediction={hits:0,misses:0,unpredictedHits:0},this.hasPredictions=!1,this.hasReleases=!1,this.highlight={name:"",fg:"",bg:""},this.listeners=[],this.buckets=[],this.pending={hits:0,compiled:0,failed:0},this.lastSample=0,this.sortedClientsCache=void 0,this.sortedBuildersCache=void 0}onEvent(t){return this.listeners.push(t),()=>{let e=this.listeners.indexOf(t);e!==-1&&this.listeners.splice(e,1)}}reset(){this.builders.clear(),this.clients.clear(),this.jobs.clear(),this.history=[],this.events=[],this.buckets=[],this.stats=void 0,this.pending={hits:0,compiled:0,failed:0},this.sessionStart=Date.now(),this.sessionHits=this.sessionCompiles=this.sessionFailures=this.sessionDropped=0,this.compileMsEma=0,this.prediction={hits:0,misses:0,unpredictedHits:0},this.hasPredictions=this.hasReleases=!1,this.invalidate()}get capacity(){let t=0;return this.builders.forEach(e=>t+=e.slots),t}get scheduledCount(){let t=0;return this.jobs.forEach(e=>{e.state==="scheduled"&&++t}),t}get compilingCount(){return this.jobs.size-this.scheduledCount}sortedClients(){return this.sortedClientsCache||(this.sortedClientsCache=Array.from(this.clients.values()).sort((t,e)=>t.displayName.localeCompare(e.displayName))),this.sortedClientsCache}sortedBuilders(){return this.sortedBuildersCache||(this.sortedBuildersCache=Array.from(this.builders.values()).sort((t,e)=>t.displayName.localeCompare(e.displayName,void 0,{numeric:!0}))),this.sortedBuildersCache}setHighlight(t,e,n){this.highlight={name:t||"",fg:e||"",bg:n||""};let r=Array.from(this.clients.values()).sort((o,s)=>o.firstSeen-s.firstSeen);r.forEach(o=>o.color=""),r.forEach(o=>this.colorClient(o))}handle(t,e=Date.now()){switch(t.type){case"builderAdded":this.builderAdded(t,e);break;case"builderRemoved":this.builderRemoved(t);break;case"jobScheduled":this.jobScheduled(t,e);break;case"jobStarted":this.jobStarted(t,e);break;case"cacheHit":this.cacheHit(t,e),this.updateStats(t);break;case"jobFinished":this.jobDone(t,"compiled",e),this.updateStats(t);break;case"jobAborted":this.jobDone(t,"failed",e);break;case"jobReleased":{this.hasReleases=!0;let n=this.jobs.get(t.id);n&&!n.releasedAt&&(n.releasedAt=e);break}case"stats":this.updateStats(t);break;case"schedulerInfo":this.schedulerVersion=t.version;break}}tick(t=Date.now()){for(this.lastSample||(this.lastSample=t-uo);t-this.lastSample>=uo;)this.lastSample+=uo,t-this.lastSample>uo*4&&(this.lastSample=t),this.sample(this.lastSample);let e=[];this.jobs.forEach(r=>{(r.releasedAt&&t-r.releasedAt>JV||r.state==="scheduled"&&t-r.scheduledAt>QV||r.state==="compiling"&&t-(r.startedAt||r.scheduledAt)>ZV)&&e.push(r)}),e.forEach(r=>{++this.sessionDropped,this.finishJob(r,"dropped",t)});let n=!1;this.clients.forEach((r,o)=>{!r.jobs.size&&t-r.lastActive>XV&&(this.clients.delete(o),n=!0)}),n&&this.invalidate()}windowStats(t,e=Date.now()){let n=Math.floor(e/1e3)-t,r={seconds:t,hits:0,started:0,compiled:0,failed:0,hitRate:0,throughput:0,avgCompileMs:0,avgWaitMs:0},o=0,s=0,a=0,c=0;for(let d=this.buckets.length-1;d>=0;--d){let u=this.buckets[d];if(u.sec<=n)break;r.hits+=u.hits,r.started+=u.started,r.compiled+=u.compiled,r.failed+=u.failed,o+=u.compileMs,s+=u.compileN,a+=u.waitMs,c+=u.waitN}let l=Math.max(1,Math.min(t,(e-this.sessionStart)/1e3));return r.hitRate=r.hits+r.started?r.hits/(r.hits+r.started):0,r.throughput=(r.hits+r.compiled)/l,r.avgCompileMs=s?o/s:0,r.avgWaitMs=c?a/c:0,r}builderKey(t){return typeof t.id=="number"?`#${t.id}`:`${t.ip}:${t.port}`}builderAdded(t,e){let n=this.builderKey(t),r=this.builders.get(n);r||(r={key:n,ip:t.ip,port:t.port,name:t.name||"",hostname:t.hostname||"",displayName:"",members:new Map,slots:0,labels:[],npmVersion:"",system:"",created:"",environments:[],cells:[],cellFx:[],overflow:[],totalHits:0,totalCompiles:0,totalFailures:0,lastHit:0,added:e},this.builders.set(n,r),this.invalidate()),r.labels=t.labels||[],r.npmVersion=t.npmVersion||"",r.system=t.system||"",r.created=t.created||"",r.environments=t.environments||[];let o=r.members.size;r.members.set(String(t.created||""),t.slots||0),o!==r.members.size&&this.invalidate(),this.resizeBuilder(r,HE(r.members))}builderRemoved(t){let e=this.builderKey(t),n=this.builders.get(e);if(!n)return;if(n.members.delete(String(t.created||"")),n.members.size){this.resizeBuilder(n,HE(n.members)),this.invalidate();return}n.cells.filter(o=>o).concat(n.overflow).forEach(o=>{o.builder=void 0,this.removeJob(o)}),this.builders.delete(e),this.invalidate()}resizeBuilder(t,e){if(e===t.slots)return;let n=t.cells.filter(r=>r).concat(t.overflow);t.slots=e,t.cells=new Array(e).fill(void 0),t.cellFx=new Array(e).fill(void 0),t.overflow=[],n.forEach(r=>this.placeJob(t,r))}jobScheduled(t,e){let n=this.jobs.get(t.id);n&&this.removeJob(n);let r=this.client(t.client,e),o={id:t.id,state:"scheduled",client:r,cell:-1,sourcePath:t.sourcePath||"",scheduledAt:e,predictedHit:typeof t.objectCache=="boolean"?t.objectCache:void 0};o.predictedHit!==void 0&&(this.hasPredictions=!0),this.jobs.set(o.id,o),r.jobs.add(o),++r.scheduled;let s=this.findBuilder(t.builder);s&&this.placeJob(s,o),this.stats&&++this.stats.jobsScheduled}jobStarted(t,e){let n=this.jobs.get(t.id);if(!n){let r=this.client(t.client,e);n={id:t.id,state:"scheduled",client:r,cell:-1,sourcePath:t.sourcePath||"",scheduledAt:e},this.jobs.set(n.id,n),r.jobs.add(n),++r.scheduled;let o=this.findBuilder(t.builder);o&&this.placeJob(o,n)}if(n.state==="scheduled"){n.state="compiling",n.startedAt=e,--n.client.scheduled,++n.client.compiling;let r=this.bucket(e);++r.started,r.waitMs+=e-n.scheduledAt,++r.waitN,n.predictedHit&&++this.prediction.misses}n.client.lastActive=e,this.stats&&++this.stats.jobsStarted}cacheHit(t,e){++this.sessionHits,++this.pending.hits,++this.bucket(e).hits;let n=this.jobs.get(t.id);if(n){n.predictedHit===!0?++this.prediction.hits:n.predictedHit===!1&&++this.prediction.unpredictedHits,this.finishJob(n,"hit",e);return}let r=this.client(t.client,e);++r.totalHits,r.lastHit=e;let o=this.findBuilder(t.builder);o&&(++o.totalHits,o.lastHit=e),this.emit({t:e,outcome:"hit",client:r,builder:o,cell:-1,sourcePath:t.sourcePath||""})}jobDone(t,e,n){if(e==="compiled"){++this.sessionCompiles,++this.pending.compiled;let o=this.bucket(n);++o.compiled,typeof t.compileDuration=="number"&&t.compileDuration>=0&&(o.compileMs+=t.compileDuration,++o.compileN,this.compileMsEma=this.compileMsEma?this.compileMsEma*.98+t.compileDuration*.02:t.compileDuration)}else++this.sessionFailures,++this.pending.failed,++this.bucket(n).failed;let r=this.jobs.get(t.id);r&&this.finishJob(r,e,n,t.compileDuration)}updateStats(t){if(typeof t.cacheHits!="number")return;let e=this.stats||{};this.stats=Object.assign({},e,t),delete this.stats.type,delete this.stats.client,delete this.stats.builder,delete this.stats.id,delete this.stats.sourcePath}finishJob(t,e,n,r){let o=t.builder,s=t.cell,a=t.client;a.lastActive=n,e==="hit"?(++a.totalHits,a.lastHit=n,o&&(++o.totalHits,o.lastHit=n)):e==="compiled"?(++a.totalCompiles,o&&++o.totalCompiles):e==="failed"&&(++a.totalFailures,o&&++o.totalFailures),o&&s>=0&&(o.cellFx[s]={outcome:e,client:a,t:n}),r===void 0&&t.startedAt?r=n-t.startedAt:r===void 0&&(r=n-t.scheduledAt),this.removeJob(t),e!=="dropped"&&this.emit({t:n,outcome:e,client:a,builder:o,cell:s,sourcePath:t.sourcePath,duration:r})}removeJob(t){this.jobs.delete(t.id);let e=t.client;e.jobs.delete(t)&&(t.state==="scheduled"?--e.scheduled:--e.compiling);let n=t.builder;if(n)if(t.cell>=0&&n.cells[t.cell]===t){n.cells[t.cell]=void 0;let r=n.overflow.shift();r&&(n.cells[t.cell]=r,r.cell=t.cell)}else{let r=n.overflow.indexOf(t);r!==-1&&n.overflow.splice(r,1)}t.builder=void 0,t.cell=-1}placeJob(t,e){e.builder=t;let n=t.cells.indexOf(void 0);n!==-1?(t.cells[n]=e,e.cell=n):(t.overflow.push(e),e.cell=-1)}findBuilder(t){if(!t)return;let e=this.builders.get(this.builderKey(t));if(e)return e;let n;if(this.builders.forEach(o=>{!n&&o.ip===t.ip&&o.port===t.port&&(n=o)}),n)return n;let r;return this.builders.forEach(o=>{r||t.port!==void 0&&o.port!==t.port||(t.hostname&&o.hostname===t.hostname||t.name&&o.name===t.name)&&(r=o)}),r}client(t,e){t=t||{};let n=t.ip||"",r=t.name||"",o=`${n}|${r}`,s=this.clients.get(o);if(s)return s.lastActive=e,s;let a=tB(t);return s={key:o,ip:n,name:r,hostname:t.hostname||"",user:t.user||"",displayName:a.name,url:a.url,color:"",fg:"",jobs:new Set,compiling:0,scheduled:0,totalHits:0,totalCompiles:0,totalFailures:0,firstSeen:e,lastActive:e,lastHit:0},this.colorClient(s),this.clients.set(o,s),this.invalidate(),s}colorClient(t){let e=this.highlight;if(e.name&&e.bg&&(e.name===t.ip||e.name===t.name||e.name===t.hostname||e.name===t.displayName)){t.color=e.bg,t.fg=e.fg||UE(e.bg);return}let n=new Set;this.clients.forEach(o=>{o!==t&&o.color&&n.add(o.color)});let r=Math.floor((0,Kb.default)(t.ip+t.name)()*ch.length);t.color=void 0;for(let o=0;o<ch.length;++o){let s=ch[(r+o)%ch.length];if(!n.has(s)){t.color=s;break}}t.color||(t.color=iB(t.ip+t.name)),t.fg=UE(t.color)}sample(t){let e=new Map,n=0;this.clients.forEach(s=>{s.compiling>0&&e.set(s,s.compiling),n+=s.scheduled}),this.history.push({t,capacity:this.capacity,scheduled:n,compiling:e,hits:this.pending.hits,compiled:this.pending.compiled,failed:this.pending.failed}),this.pending={hits:0,compiled:0,failed:0};let r=t-KV,o=0;for(;o<this.history.length&&this.history[o].t<r;)++o;o&&this.history.splice(0,o)}bucket(t){let e=Math.floor(t/1e3),n=this.buckets[this.buckets.length-1];if(n&&n.sec===e)return n;let r={sec:e,hits:0,started:0,compiled:0,failed:0,compileMs:0,compileN:0,waitMs:0,waitN:0};return this.buckets.push(r),this.buckets.length>BE&&this.buckets.splice(0,this.buckets.length-BE),r}emit(t){this.events.push(t),this.events.length>zE&&this.events.splice(0,this.events.length-zE);for(let e=0;e<this.listeners.length;++e)this.listeners[e](t)}invalidate(){this.sortedClientsCache=void 0,this.sortedBuildersCache=void 0,this.labelBuilders()}labelBuilders(){let t=new Map;this.builders.forEach(e=>{let n=e.name||e.hostname;t.set(n,(t.get(n)||0)+1)}),this.builders.forEach(e=>{let n=e.name||e.hostname,r=n&&t.get(n)===1?n:e.ip;e.displayName=e.members.size>1?`${r} x${e.members.size}`:r})}};function HE(i){let t=0;return i.forEach(e=>t+=e),t}var $E={dark:!0,bg:"#11141b",panel:"#181d27",panelEdge:"#252c3a",tile:"#1d2330",tileFocus:"#232b3a",grid:"#262d3b",cellEmpty:"#222937",crosshair:"rgba(255,255,255,0.4)",text:"#d7deea",dim:"#7c8699",faint:"#4a5263",hit:"#34d399",compile:"#60a5fa",queued:"#fbbf24",fail:"#f87171",capacity:"#94a3b8"},eB={dark:!1,bg:"#f3f4f7",panel:"#ffffff",panelEdge:"#dde1e8",tile:"#f6f7f9",tileFocus:"#eef1f6",grid:"#eceef2",cellEmpty:"#e3e6ec",crosshair:"rgba(0,0,0,0.35)",text:"#1f2533",dim:"#667085",faint:"#a3aab8",hit:"#10b981",compile:"#3b82f6",queued:"#f59e0b",fail:"#ef4444",capacity:"#64748b"},N=Object.assign({},$E);function WE(i){Object.assign(N,i==="light"?eB:$E)}function tB(i){let t=i.name||"",e=i.hostname||"",n=i.user||"nobody";if(!t)return{name:e||i.ip||"unknown"};if(t===e)return{name:`dev:${n}@${e}`};if(t[0]==="-")return{name:`dev:${n}${t}`};if(t[0]==="{")try{let r=JSON.parse(t);if(r&&typeof r=="object"&&"name"in r)return{name:String(r.name),url:r.href}}catch{}return{name:t}}var ch=["#818cf8","#f472b6","#22d3ee","#fb923c","#c084fc","#7c3aed","#6366f1","#f9a8d4","#0ea5e9","#e879f9","#9333ea","#db2777","#a5b4fc","#ea580c","#67e8f9","#94a3b8"],Yb=[[175,345],[16,34]];function iB(i){let t=(0,Kb.default)(i),e=Yb.reduce((a,c)=>a+c[1]-c[0],0),n=t()*e,r=Yb[0][0];for(let[a,c]of Yb){if(n<=c-a){r=a+n;break}n-=c-a}let o=55+t()*35,s=52+t()*16;return nB(r,o,s)}function nB(i,t,e){t/=100,e/=100;let n=a=>(a+i/30)%12,r=t*Math.min(e,1-e),o=a=>e-r*Math.max(-1,Math.min(n(a)-3,Math.min(9-n(a),1))),s=a=>("0"+Math.round(a*255).toString(16)).slice(-2);return"#"+s(o(0))+s(o(8))+s(o(4))}function UE(i){if(!/^#[0-9a-fA-F]{6}$/.test(i))return"black";let t=parseInt(i.substring(1),16);return .2126*(t>>16&255)+.7152*(t>>8&255)+.0722*(t&255)<140?"white":"black"}function oc(i){if(!i)return"";let t=i.lastIndexOf("/");return t===-1?i:i.substring(t+1)}function bt(i){if(!isFinite(i)||i<=0)return"-";if(i<1e3)return`${Math.round(i)}ms`;if(i<6e4)return`${(i/1e3).toFixed(i<1e4?1:0)}s`;let t=Math.floor(i/6e4);return t<60?`${t}m ${Math.floor(i/1e3)%60}s`:`${Math.floor(t/60)}h ${t%60}m`}var Fn=(()=>{class i{constructor(){this.reset()}addListener(e,n){this.socket.addEventListener(e,n),this.allListeners.push([e,n])}removeListeners(){for(let e=0;e<this.allListeners.length;++e){let n=this.allListeners[e];this.socket.removeEventListener(n[0],n[1])}this.allListeners=[]}get isOpen(){return this.socket&&this.socket.readyState==WebSocket.OPEN}static websocketLocation(e,n){let r=e.get("scheduler",n.hostname),o=n.protocol==="https:",s=parseInt(e.get("port"));return s||(s=parseInt(n.port)||(o?8098:8097)),e.get("portExplicit",!1)||(o&&s===8097?s=8098:!o&&s===8098&&(s=8097)),{host:r,port:s,secure:o}}open(e,n,r){if(!this.isopen){try{this.socket=new WebSocket(`${r?"wss":"ws"}://${e}:${n}/monitor`)}catch(o){this.socket=void 0;for(let s=0;s<this.errorListeners.length;++s)this.errorListeners[s](o);console.log("ws connect error",o);return}console.log("ws connected"),this.addListener("open",o=>{if(console.log("ws open"),this.isopen=!0,this.pending!==void 0){for(let s=0;s<this.pending.length;++s)this.socket.send(this.pending[s]);this.pending=void 0}for(let s=0;s<this.openListeners.length;++s)this.openListeners[s]()}),this.addListener("message",o=>{let s;try{s=JSON.parse(o.data)}catch{console.error("unable to parse json",o.data);return}for(let a=0;a<this.messageListeners.length;++a)this.messageListeners[a](s)}),this.addListener("close",()=>{console.log("ws close");let o=this.closeListeners;this.removeListeners(),this.reset();for(let s=0;s<o.length;++s)o[s]()}),this.addListener("error",o=>{console.log("ws error",o),this.socket&&this.socket.close();let s=this.errorListeners;this.removeListeners(),this.reset();for(let a=0;a<s.length;++a)s[a](o)})}}on(e,n){e=="message"?this.messageListeners.push(n):e=="open"?this.openListeners.push(n):e=="close"?this.closeListeners.push(n):e=="error"&&this.errorListeners.push(n)}send(e){this.isopen?this.socket.send(JSON.stringify(e)):this.pending.push(JSON.stringify(e))}close(e,n){this.socket&&this.socket.close(e,n),this.removeListeners(),this.reset()}reset(){this.socket=void 0,this.pending=[],this.messageListeners=[],this.closeListeners=[],this.errorListeners=[],this.openListeners=[],this.isopen=!1,this.allListeners=[]}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var dh=(()=>{class i{constructor(){this.backoffs={},this.serials={}}backoff(e,n,r){if(e in this.backoffs)return!1;e in this.serials?++this.serials[e]:this.serials[e]=0;let o=this.serials[e];this.backoffs[e]=-1;let s=a=>{console.log("reconnecting",a),r().then(c=>{if(o===this.serials[e])if(c)delete this.backoffs[e];else{let l=n(a);this.backoffs[e]=setTimeout(()=>{s(l)},l)}}).catch(c=>{o===this.serials[e]&&delete this.backoffs[e],console.error(c)})};return s(0),!0}stop(e){if(e in this.backoffs){let n=this.backoffs[e];n!==-1&&clearTimeout(n),delete this.backoffs[e]}}running(e){return e in this.backoffs}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var _i=(()=>{class i{constructor(){this.changeListeners=[],this.cache={},this.currentKey=0}set(e,n,r){if(this.cache[e]=n,localStorage.setItem(e,JSON.stringify(n)),!(r!==void 0&&!r))for(let o=0;o<this.changeListeners.length;++o)this.changeListeners[o].cb(e)}get(e,n){if(e in this.cache)return this.cache[e];let r,o=localStorage.getItem(e);if(o!==null)try{r=JSON.parse(o),this.cache[e]=r}catch{r=n,n!==void 0&&this.set(e,n,!1)}else r=n,n!==void 0&&this.set(e,n,!1);return r}onChange(e){return this.changeListeners.push({key:++this.currentKey,cb:e}),this.currentKey}remove(e){for(var n=0;n<this.changeListeners.length;++n)if(this.changeListeners[n].key==e)return this.changeListeners.splice(n,1),!0;return!1}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var yi=(()=>{class i{get host(){return this._host}get port(){return this._port}constructor(e,n,r,o){this.ws=e,this.backoff=n,this.config=r,this.httpClient=o,this.pendingConnect=[],this.dataListeners=[],this.openListeners=[],this.schedulerListeners=[],this._currentKey=0;let s=window.location.pathname.replace(/[^/]*$/,"package.json");this.httpClient.get(`${window.location.protocol}//${window.location.host}/${s}`,{responseType:"json"}).subscribe(c=>{c&&this.emit(this.dataListeners,{type:"uiInfo",package:c})});let a=Fn.websocketLocation(r,window.location);this._host=a.host,this._port=a.port,this._secure=a.secure,this._host!==void 0&&this.open(this._host,this._port,this._secure),this.config.onChange(c=>{switch(c){case"scheduler":case"port":this.close();let l=Fn.websocketLocation(r,window.location);this._host=l.host,this._port=l.port,this._secure=l.secure,this._host!==void 0&&this.open(this._host,this._port,this._secure),this.emit(this.schedulerListeners,c);break}})}get isOpen(){return this.ws.isOpen}open(e,n,r){console.log("reoping"),this.ws.on("message",o=>{this.emit(this.dataListeners,o)}),this.ws.on("close",()=>{this.reconnect(e,n,r)}),this.ws.on("error",()=>{this.reconnect(e,n,r)}),this.ws.on("open",()=>{this.emit(this.openListeners),this.resolvePending(!0),console.log("ok")}),this.ws.open(e,n,r)}close(e,n){this.backoff.stop("fisk"),this.ws.close(e,n)}on(e,n){switch(e){case"data":this.dataListeners.push({key:++this._currentKey,cb:n});break;case"open":this.openListeners.push({key:++this._currentKey,cb:n});break;case"scheduler":this.schedulerListeners.push({key:++this._currentKey,cb:n});break;default:return-1}return this._currentKey}remove(e,n){let r=(o,s)=>{for(let a=0;a<o.length;++a)if(o[a].key==s)return o.splice(a,1),!0;return!1};switch(e){case"data":return r(this.dataListeners,n);case"open":return r(this.openListeners,n);case"scheduler":return r(this.schedulerListeners,n)}return!1}send(e){this.ws.send(e)}reconnect(e,n,r){if(this.backoff.running("fisk")){this.resolvePending(!1);return}let o=s=>s?Math.min(3e4,s*2):1e3;this.backoff.backoff("fisk",o,()=>new Promise((s,a)=>{this.pendingConnect.push({resolve:s,reject:a}),this.open(e,n,r)}))}resolvePending(e){this.pendingConnect.length>0&&this.pendingConnect.shift().resolve(e)}emit(e,n){for(let r=0;r<e.length;++r)e[r].cb(n)}static{this.\u0275fac=function(n){return new(n||i)(_(Fn),_(dh),_(_i),_(fp))}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var uh=(()=>{class i{constructor(e,n,r){this.fisk=e,this.config=n,this.model=new lh,this.applyHighlight(),this.fisk.on("data",o=>{this.model.handle(o)}),this.fisk.on("open",()=>{this.model.reset(),this.fisk.send({type:"sendInfo"})}),this.fisk.on("scheduler",()=>{this.model.reset()}),this.fisk.isOpen&&this.fisk.send({type:"sendInfo"}),this.config.onChange(o=>{(o==="client"||o==="fgcolor"||o==="bgcolor")&&this.applyHighlight()}),r.runOutsideAngular(()=>{setInterval(()=>this.model.tick(),250)})}applyHighlight(){this.model.setHighlight(this.config.get("client",""),this.config.get("fgcolor")||"#ffffff",this.config.get("bgcolor")||"#ff0000")}static{this.\u0275fac=function(n){return new(n||i)(_(yi),_(_i),_(V))}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var sB=["fiskTabGroup"];function aB(i,t){if(i&1&&(y(0,"a",4,1),q(2),b()),i&2){let e=t.$implicit,n=Si(1);R("routerLink",e.path)("active",n.isActive),C(2),ct(" ",e.label," ")}}var GE=(()=>{class i{constructor(e,n,r,o){this.tabChanged=e,this.router=n,this.live=r,this.vcRef=o,this.currentTab=void 0,this.currentName=void 0,this.navLinks=[{path:"/live",label:"Live"},{path:"/pie-chart",label:"Pie Chart"},{path:"/logs",label:"Logs"},{path:"/compilers",label:"Compilers"},{path:"/config",label:"Config"}],n.events.forEach(s=>{if(s instanceof ii){let a=s.urlAfterRedirects;for(let c=0;c<this.navLinks.length;++c)this.navLinks[c].path==a&&(this.currentTab=c,this.currentName=this.navLinks[c].label,this.tabChanged.notify(this.currentTab,this.currentName),console.log("here?",this.currentTab,this.currentName))}})}ngAfterViewInit(){}onTabChanged(e){this.currentTab=e.index,this.currentName=e.tab.textLabel}onAnimationDone(){this.tabChanged.notify(this.currentTab,this.currentName)}static{this.\u0275fac=function(n){return new(n||i)(g(on),g(Oi),g(uh),g(pt))}}static{this.\u0275cmp=ue({type:i,selectors:[["app-root"]],viewQuery:function(n,r){if(n&1&&we(sB,5),n&2){let o;ne(o=re())&&(r.tabGroup=o.first)}},decls:5,vars:1,consts:[["fiskTabGroup",""],["rla","routerLinkActive"],["mat-tab-nav-bar","",1,"fisk-tab-group"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"ngFor","ngForOf"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"]],template:function(n,r){n&1&&(y(0,"mat-card")(1,"nav",2,0),ee(3,aB,3,3,"a",3),b(),ie(4,"router-outlet"),b()),n&2&&(C(3),R("ngForOf",r.navLinks))},dependencies:[Ai,Mn,xb,Cb,Bg,Eu,HC]})}}return i})();var hh=(()=>{class i{constructor(e){this.snackBar=e}showMessage(e,n){this.snackBar.open(e,void 0,{duration:n||3e3})}static{this.\u0275fac=function(n){return new(n||i)(_(Ob))}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var YE=(()=>{class i{constructor(e,n){this.config=e,this.tabChanged=n,this.minHeight="",this.inited=!1,this.timers={};let r=Fn.websocketLocation(e,window.location);this.port=r.port,this.scheduler=r.host,this.chartLegendSpace=e.get("chart-legend-space",400),this.liveWindow=e.get("live-window",300),this.liveTheme=e.get("live-theme","dark"),this.client=e.get("client",""),this.fgcolor=e.get("fgcolor")||"#ffffff",this.bgcolor=e.get("bgcolor")||"#ff0000",this.pieBuilding=e.get("pieBuilding",!1),this.noAnimate=e.get("noAnimate",!1),this.config.onChange(o=>{switch(o){case"scheduler":this.scheduler=e.get("scheduler");break;case"port":this.port=e.get("port");break;case"chart-legend-space":this.chartLegendSpace=e.get("chart-legend-space");break;case"live-window":this.liveWindow=e.get("live-window");break;case"live-theme":this.liveTheme=e.get("live-theme");break;case"client":this.client=e.get("client");break;case"fgcolor":this.fgcolor=e.get("fgcolor");break;case"bgcolor":this.bgcolor=e.get("bgcolor");break;case"pieBuilding":this.pieBuilding=e.get("pieBuilding");break;case"noAnimate":this.noAnimate=e.get("noAnimate");break}}),this.tabChanged.onChanged((o,s)=>{if(s!="Config"||this.inited)return;this.inited=!0;let c=document.getElementById("configTab").getBoundingClientRect();this.minHeight=window.innerHeight-c.y-50+"px"})}update(e,n){let r=!1;switch(e){case"scheduler":case"client":case"fgcolor":case"bgcolor":r=!0,this[e]=n;break}r&&(e in this.timers&&clearTimeout(this.timers[e]),this.timers[e]=setTimeout(()=>{delete this.timers[e],this.config.set(e,n)},500))}updateInt(e,n){let r=!1,o,s=e;switch(e){case"chartLegendSpace":s="chart-legend-space";case"liveWindow":e==="liveWindow"&&(s="live-window");case"port":o=parseInt(n),isNaN(o)||(r=!0,this[e]=o);break}r&&(e in this.timers&&clearTimeout(this.timers[e]),this.timers[e]=setTimeout(()=>{delete this.timers[e],e==="port"&&this.config.set("portExplicit",!0,!1),this.config.set(s,o)},500))}updateTheme(e){this.liveTheme=e,this.config.set("live-theme",e)}updateBool(e,n){let r=!1,o;switch(typeof n=="boolean"?o=n:typeof n=="string"&&n==="true"?o=!0:o=!1,e){case"pieBuilding":case"noAnimate":r=!0,this[e]=o;break}r&&this.config.set(e,o)}static{this.\u0275fac=function(n){return new(n||i)(g(_i),g(on))}}static{this.\u0275cmp=ue({type:i,selectors:[["app-config"]],decls:60,vars:20,consts:[["id","configTab",1,"space"],[1,"full-width"],["matInput","",3,"ngModelChange","ngModel"],["matInput","","type","number","max","65536",3,"ngModelChange","ngModel"],["matInput","","type","number","min","30","max","1800",3,"ngModelChange","ngModel"],[3,"selectionChange","value"],["value","dark"],["value","light"],["value","auto"],[1,"colors"],["matInput","","cpPosition","bottom","readonly","",3,"colorPickerChange","value","colorPicker","cpUseRootViewContainer"],["matSuffix","",1,"swatch"],[3,"ngModelChange","ngModel"]],template:function(n,r){n&1&&(y(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),q(3,"Scheduler"),b(),y(4,"input",2),j("ngModelChange",function(s){return r.update("scheduler",s)}),b(),y(5,"mat-hint"),q(6,"Host name of the fisk scheduler"),b()(),y(7,"mat-form-field",1)(8,"mat-label"),q(9,"Port"),b(),y(10,"input",3),j("ngModelChange",function(s){return r.updateInt("port",s)}),b(),y(11,"mat-hint"),q(12,"Scheduler port, usually 8097 (8098 for https)"),b()(),y(13,"mat-form-field",1)(14,"mat-label"),q(15,"Legend space"),b(),y(16,"input",3),j("ngModelChange",function(s){return r.updateInt("chartLegendSpace",s)}),b(),y(17,"mat-hint"),q(18,"Width in pixels of the client list (pie chart legend and Live view client column)"),b()(),y(19,"mat-form-field",1)(20,"mat-label"),q(21,"Live view history (seconds)"),b(),y(22,"input",4),j("ngModelChange",function(s){return r.updateInt("liveWindow",s)}),b(),y(23,"mat-hint"),q(24,"Time span of the Live view timeline, 30 to 1800 seconds"),b()(),y(25,"mat-form-field",1)(26,"mat-label"),q(27,"Live view theme"),b(),y(28,"mat-select",5),j("selectionChange",function(s){return r.updateTheme(s.value)}),y(29,"mat-option",6),q(30,"Dark"),b(),y(31,"mat-option",7),q(32,"Light"),b(),y(33,"mat-option",8),q(34,"Match system setting"),b()(),y(35,"mat-hint"),q(36,"Color scheme of the Live view"),b()(),y(37,"mat-form-field",1)(38,"mat-label"),q(39,"Highlighted client"),b(),y(40,"input",2),j("ngModelChange",function(s){return r.update("client",s)}),b(),y(41,"mat-hint"),q(42,"Client name, host name or IP to draw in the colors below"),b()(),y(43,"div",9)(44,"mat-form-field")(45,"mat-label"),q(46,"Background color"),b(),y(47,"input",10),j("colorPickerChange",function(s){return r.update("bgcolor",s)}),b(),ie(48,"span",11),b(),y(49,"mat-form-field")(50,"mat-label"),q(51,"Foreground color"),b(),y(52,"input",10),j("colorPickerChange",function(s){return r.update("fgcolor",s)}),b(),ie(53,"span",11),b()(),y(54,"div")(55,"mat-checkbox",12),j("ngModelChange",function(s){return r.updateBool("pieBuilding",s)}),q(56,"Represent 100% of pie chart as currently building jobs"),b()(),y(57,"div")(58,"mat-checkbox",12),j("ngModelChange",function(s){return r.updateBool("noAnimate",s)}),q(59,"Don't animate the charts"),b()()()),n&2&&(Ze("min-height",r.minHeight),C(4),R("ngModel",r.scheduler),C(6),R("ngModel",r.port),C(6),R("ngModel",r.chartLegendSpace),C(6),R("ngModel",r.liveWindow),C(6),R("value",r.liveTheme),C(12),R("ngModel",r.client),C(7),R("value",r.bgcolor)("colorPicker",r.bgcolor)("cpUseRootViewContainer",!0),C(),Ze("background",r.bgcolor),C(4),R("value",r.fgcolor)("colorPicker",r.fgcolor)("cpUseRootViewContainer",!0),C(),Ze("background",r.fgcolor),C(2),R("ngModel",r.pieBuilding),C(3),R("ngModel",r.noAnimate))},dependencies:[xE,Xo,sg,ru,cg,ag,wa,ys,Xu,Zu,gs,Qu,BD,_E,Uu],styles:[".full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:8px}.colors[_ngcontent-%COMP%]{display:flex;gap:16px}.swatch[_ngcontent-%COMP%]{display:inline-block;width:20px;height:20px;margin-right:12px;border-radius:4px;border:1px solid rgba(0,0,0,.3)}"]})}}return i})();var KE=(()=>{class i{constructor(e){this.fisk=e,this.fisk.on("data",n=>{switch(n.type){case"logFile":this.contents=`
|
|
13
|
+
`],encapsulation:2})}return i})(),zV=!1,xE=(()=>{class i{injector;cfr;appRef;vcRef;elRef;_service;dialog;dialogCreated=!1;ignoreChanges=!1;cmpRef;viewAttachedToAppRef=!1;colorPicker;cpWidth="230px";cpHeight="auto";cpToggle=!1;cpDisabled=!1;cpIgnoredElements=[];cpFallbackColor="";cpColorMode="color";cpCmykEnabled=!1;cpOutputFormat="auto";cpAlphaChannel="enabled";cpDisableInput=!1;cpDialogDisplay="popup";cpSaveClickOutside=!0;cpCloseClickOutside=!0;cpUseRootViewContainer=!1;cpPosition="auto";cpPositionOffset="0%";cpPositionRelativeToArrow=!1;cpOKButton=!1;cpOKButtonText="OK";cpOKButtonClass="cp-ok-button-class";cpCancelButton=!1;cpCancelButtonText="Cancel";cpCancelButtonClass="cp-cancel-button-class";cpEyeDropper=!1;cpPresetLabel="Preset colors";cpPresetColors;cpPresetColorsClass="cp-preset-colors-class";cpMaxPresetColorsLength=6;cpPresetEmptyMessage="No colors added";cpPresetEmptyMessageClass="preset-empty-message";cpAddColorButton=!1;cpAddColorButtonText="Add color";cpAddColorButtonClass="cp-add-color-button-class";cpRemoveColorButtonClass="cp-remove-color-button-class";cpArrowPosition=0;cpExtraTemplate;cpInputChange=new Y(!0);cpToggleChange=new Y(!0);cpSliderChange=new Y(!0);cpSliderDragEnd=new Y(!0);cpSliderDragStart=new Y(!0);colorPickerOpen=new Y(!0);colorPickerClose=new Y(!0);colorPickerCancel=new Y(!0);colorPickerSelect=new Y(!0);colorPickerChange=new Y(!1);cpCmykColorChange=new Y(!0);cpPresetColorsChange=new Y(!0);handleClick(){this.inputFocus()}handleFocus(){this.inputFocus()}handleInput(e){this.inputChange(e)}constructor(e,n,r,o,s,a){this.injector=e,this.cfr=n,this.appRef=r,this.vcRef=o,this.elRef=s,this._service=a}ngOnDestroy(){this.cmpRef!=null&&(this.viewAttachedToAppRef&&this.appRef.detachView(this.cmpRef.hostView),this.cmpRef.destroy(),this.cmpRef=null,this.dialog=null)}ngOnChanges(e){e.cpToggle&&!this.cpDisabled&&(e.cpToggle.currentValue?this.openDialog():e.cpToggle.currentValue||this.closeDialog()),e.colorPicker&&(this.dialog&&!this.ignoreChanges&&(this.cpDialogDisplay==="inline"&&this.dialog.setInitialColor(e.colorPicker.currentValue),this.dialog.setColorFromString(e.colorPicker.currentValue,!1),this.cpUseRootViewContainer&&this.cpDialogDisplay!=="inline"&&this.cmpRef.changeDetectorRef.detectChanges()),this.ignoreChanges=!1),(e.cpPresetLabel||e.cpPresetColors)&&this.dialog&&this.dialog.setPresetConfig(this.cpPresetLabel,this.cpPresetColors)}openDialog(){if(this.dialogCreated)this.dialog&&this.dialog.openDialog(this.colorPicker);else{let e=this.vcRef;if(this.dialogCreated=!0,this.viewAttachedToAppRef=!1,this.cpUseRootViewContainer&&this.cpDialogDisplay!=="inline"){let r=this.appRef.componentTypes[0],o=this.injector.get(r,_e.NULL);o!==_e.NULL?(e=o.vcRef||o.viewContainerRef||this.vcRef,zV&&e===this.vcRef&&console.warn("You are using cpUseRootViewContainer, but the root component is not exposing viewContainerRef!Please expose it by adding 'public vcRef: ViewContainerRef' to the constructor.")):this.viewAttachedToAppRef=!0}let n=this.cfr.resolveComponentFactory(BV);if(this.viewAttachedToAppRef)this.cmpRef=n.create(this.injector),this.appRef.attachView(this.cmpRef.hostView),document.body.appendChild(this.cmpRef.hostView.rootNodes[0]);else{let r=_e.create({providers:[],parent:e.injector});this.cmpRef=e.createComponent(n,0,r,[])}this.cmpRef.instance.setupDialog(this,this.elRef,this.colorPicker,this.cpWidth,this.cpHeight,this.cpDialogDisplay,this.cpFallbackColor,this.cpColorMode,this.cpCmykEnabled,this.cpAlphaChannel,this.cpOutputFormat,this.cpDisableInput,this.cpIgnoredElements,this.cpSaveClickOutside,this.cpCloseClickOutside,this.cpUseRootViewContainer,this.cpPosition,this.cpPositionOffset,this.cpPositionRelativeToArrow,this.cpPresetLabel,this.cpPresetColors,this.cpPresetColorsClass,this.cpMaxPresetColorsLength,this.cpPresetEmptyMessage,this.cpPresetEmptyMessageClass,this.cpOKButton,this.cpOKButtonClass,this.cpOKButtonText,this.cpCancelButton,this.cpCancelButtonClass,this.cpCancelButtonText,this.cpAddColorButton,this.cpAddColorButtonClass,this.cpAddColorButtonText,this.cpRemoveColorButtonClass,this.cpEyeDropper,this.elRef,this.cpExtraTemplate),this.dialog=this.cmpRef.instance,this.vcRef!==e&&this.cmpRef.changeDetectorRef.detectChanges()}}closeDialog(){this.dialog&&this.cpDialogDisplay==="popup"&&this.dialog.closeDialog()}cmykChanged(e){this.cpCmykColorChange.emit(e)}stateChanged(e){this.cpToggleChange.emit(e),e?this.colorPickerOpen.emit(this.colorPicker):this.colorPickerClose.emit(this.colorPicker)}colorChanged(e,n=!0){this.ignoreChanges=n,this.colorPickerChange.emit(e)}colorSelected(e){this.colorPickerSelect.emit(e)}colorCanceled(){this.colorPickerCancel.emit()}inputFocus(){let e=this.elRef.nativeElement,n=this.cpIgnoredElements.filter(r=>r===e);!this.cpDisabled&&!n.length&&(typeof document<"u"&&e===document.activeElement?this.openDialog():!this.dialog||!this.dialog.show?this.openDialog():this.closeDialog())}inputChange(e){this.dialog?this.dialog.setColorFromString(e.target.value,!0):(this.colorPicker=e.target.value,this.colorPickerChange.emit(this.colorPicker))}inputChanged(e){this.cpInputChange.emit(e)}sliderChanged(e){this.cpSliderChange.emit(e)}sliderDragEnd(e){this.cpSliderDragEnd.emit(e)}sliderDragStart(e){this.cpSliderDragStart.emit(e)}presetColorsChanged(e){this.cpPresetColorsChange.emit(e)}static \u0275fac=function(n){return new(n||i)(g(_e),g(Yt),g(Zt),g(pt),g(Z),g(Bb))};static \u0275dir=Q({type:i,selectors:[["","colorPicker",""]],hostBindings:function(n,r){n&1&&j("click",function(){return r.handleClick()})("focus",function(){return r.handleFocus()})("input",function(s){return r.handleInput(s)})},inputs:{colorPicker:"colorPicker",cpWidth:"cpWidth",cpHeight:"cpHeight",cpToggle:"cpToggle",cpDisabled:"cpDisabled",cpIgnoredElements:"cpIgnoredElements",cpFallbackColor:"cpFallbackColor",cpColorMode:"cpColorMode",cpCmykEnabled:"cpCmykEnabled",cpOutputFormat:"cpOutputFormat",cpAlphaChannel:"cpAlphaChannel",cpDisableInput:"cpDisableInput",cpDialogDisplay:"cpDialogDisplay",cpSaveClickOutside:"cpSaveClickOutside",cpCloseClickOutside:"cpCloseClickOutside",cpUseRootViewContainer:"cpUseRootViewContainer",cpPosition:"cpPosition",cpPositionOffset:"cpPositionOffset",cpPositionRelativeToArrow:"cpPositionRelativeToArrow",cpOKButton:"cpOKButton",cpOKButtonText:"cpOKButtonText",cpOKButtonClass:"cpOKButtonClass",cpCancelButton:"cpCancelButton",cpCancelButtonText:"cpCancelButtonText",cpCancelButtonClass:"cpCancelButtonClass",cpEyeDropper:"cpEyeDropper",cpPresetLabel:"cpPresetLabel",cpPresetColors:"cpPresetColors",cpPresetColorsClass:"cpPresetColorsClass",cpMaxPresetColorsLength:"cpMaxPresetColorsLength",cpPresetEmptyMessage:"cpPresetEmptyMessage",cpPresetEmptyMessageClass:"cpPresetEmptyMessageClass",cpAddColorButton:"cpAddColorButton",cpAddColorButtonText:"cpAddColorButtonText",cpAddColorButtonClass:"cpAddColorButtonClass",cpRemoveColorButtonClass:"cpRemoveColorButtonClass",cpArrowPosition:"cpArrowPosition",cpExtraTemplate:"cpExtraTemplate"},outputs:{cpInputChange:"cpInputChange",cpToggleChange:"cpToggleChange",cpSliderChange:"cpSliderChange",cpSliderDragEnd:"cpSliderDragEnd",cpSliderDragStart:"cpSliderDragStart",colorPickerOpen:"colorPickerOpen",colorPickerClose:"colorPickerClose",colorPickerCancel:"colorPickerCancel",colorPickerSelect:"colorPickerSelect",colorPickerChange:"colorPickerChange",cpCmykColorChange:"cpCmykColorChange",cpPresetColorsChange:"cpPresetColorsChange"},exportAs:["ngxColorPicker"],features:[Qe]})}return i})(),CE=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=J({type:i});static \u0275inj=X({providers:[Bb],imports:[pi]})}return i})();var on=(()=>{class i{constructor(){this._index=void 0,this._name=void 0,this._changeListeners=[],this._currentKey=0}get index(){return this._index}get name(){return this._name}notify(e,n){this._index=e,this._name=n,console.log("really happen");for(let r=0;r<this._changeListeners.length;++r)this._changeListeners[r].cb(e,n)}remove(e){for(let n=0;n<this._changeListeners.length;++n)if(this._changeListeners[n].key==e)return this._changeListeners.splice(n,1),!0;return!1}onChanged(e){return this._changeListeners.push({key:++this._currentKey,cb:e}),setTimeout(()=>{console.log("hello",this._index,this._name),e(this._index,this._name)},0),this._currentKey}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Kb=ev(Gb()),uo=500,KV=30*60*1e3,BE=15*60,QV=60*1e3,ZV=20*60*1e3,XV=90*1e3,JV=3e3,zE=200,lh=class{constructor(){this.builders=new Map,this.clients=new Map,this.jobs=new Map,this.history=[],this.events=[],this.stats=void 0,this.schedulerVersion=void 0,this.sessionStart=Date.now(),this.sessionHits=0,this.sessionCompiles=0,this.sessionFailures=0,this.sessionDropped=0,this.compileMsEma=0,this.prediction={hits:0,misses:0,unpredictedHits:0},this.hasPredictions=!1,this.hasReleases=!1,this.highlight={name:"",fg:"",bg:""},this.listeners=[],this.buckets=[],this.pending={hits:0,compiled:0,failed:0},this.lastSample=0,this.sortedClientsCache=void 0,this.sortedBuildersCache=void 0}onEvent(t){return this.listeners.push(t),()=>{let e=this.listeners.indexOf(t);e!==-1&&this.listeners.splice(e,1)}}reset(){this.builders.clear(),this.clients.clear(),this.jobs.clear(),this.history=[],this.events=[],this.buckets=[],this.stats=void 0,this.pending={hits:0,compiled:0,failed:0},this.sessionStart=Date.now(),this.sessionHits=this.sessionCompiles=this.sessionFailures=this.sessionDropped=0,this.compileMsEma=0,this.prediction={hits:0,misses:0,unpredictedHits:0},this.hasPredictions=this.hasReleases=!1,this.invalidate()}get capacity(){let t=0;return this.builders.forEach(e=>t+=e.slots),t}get scheduledCount(){let t=0;return this.jobs.forEach(e=>{e.state==="scheduled"&&++t}),t}get compilingCount(){return this.jobs.size-this.scheduledCount}sortedClients(){return this.sortedClientsCache||(this.sortedClientsCache=Array.from(this.clients.values()).sort((t,e)=>t.displayName.localeCompare(e.displayName))),this.sortedClientsCache}sortedBuilders(){return this.sortedBuildersCache||(this.sortedBuildersCache=Array.from(this.builders.values()).sort((t,e)=>t.displayName.localeCompare(e.displayName,void 0,{numeric:!0}))),this.sortedBuildersCache}setHighlight(t,e,n){this.highlight={name:t||"",fg:e||"",bg:n||""};let r=Array.from(this.clients.values()).sort((o,s)=>o.firstSeen-s.firstSeen);r.forEach(o=>o.color=""),r.forEach(o=>this.colorClient(o))}handle(t,e=Date.now()){switch(t.type){case"builderAdded":this.builderAdded(t,e);break;case"builderRemoved":this.builderRemoved(t);break;case"jobScheduled":this.jobScheduled(t,e);break;case"jobStarted":this.jobStarted(t,e);break;case"cacheHit":this.cacheHit(t,e),this.updateStats(t);break;case"jobFinished":this.jobDone(t,"compiled",e),this.updateStats(t);break;case"jobAborted":this.jobDone(t,"failed",e);break;case"jobReleased":{this.hasReleases=!0;let n=this.jobs.get(t.id);n&&!n.releasedAt&&(n.releasedAt=e);break}case"stats":this.updateStats(t);break;case"schedulerInfo":this.schedulerVersion=t.version;break}}tick(t=Date.now()){for(this.lastSample||(this.lastSample=t-uo);t-this.lastSample>=uo;)this.lastSample+=uo,t-this.lastSample>uo*4&&(this.lastSample=t),this.sample(this.lastSample);let e=[];this.jobs.forEach(r=>{(r.releasedAt&&t-r.releasedAt>JV||r.state==="scheduled"&&t-r.scheduledAt>QV||r.state==="compiling"&&t-(r.startedAt||r.scheduledAt)>ZV)&&e.push(r)}),e.forEach(r=>{++this.sessionDropped,this.finishJob(r,"dropped",t)});let n=!1;this.clients.forEach((r,o)=>{!r.jobs.size&&t-r.lastActive>XV&&(this.clients.delete(o),n=!0)}),n&&this.invalidate()}windowStats(t,e=Date.now()){let n=Math.floor(e/1e3)-t,r={seconds:t,hits:0,started:0,compiled:0,failed:0,hitRate:0,throughput:0,avgCompileMs:0,avgWaitMs:0},o=0,s=0,a=0,c=0;for(let d=this.buckets.length-1;d>=0;--d){let u=this.buckets[d];if(u.sec<=n)break;r.hits+=u.hits,r.started+=u.started,r.compiled+=u.compiled,r.failed+=u.failed,o+=u.compileMs,s+=u.compileN,a+=u.waitMs,c+=u.waitN}let l=Math.max(1,Math.min(t,(e-this.sessionStart)/1e3));return r.hitRate=r.hits+r.started?r.hits/(r.hits+r.started):0,r.throughput=(r.hits+r.compiled)/l,r.avgCompileMs=s?o/s:0,r.avgWaitMs=c?a/c:0,r}builderKey(t){return typeof t.id=="number"?`#${t.id}`:`${t.ip}:${t.port}`}builderAdded(t,e){let n=this.builderKey(t),r=this.builders.get(n);r||(r={key:n,ip:t.ip,port:t.port,name:t.name||"",hostname:t.hostname||"",displayName:"",members:new Map,slots:0,labels:[],npmVersion:"",system:"",created:"",environments:[],cells:[],cellFx:[],overflow:[],totalHits:0,totalCompiles:0,totalFailures:0,lastHit:0,added:e},this.builders.set(n,r),this.invalidate()),r.labels=t.labels||[],r.npmVersion=t.npmVersion||"",r.system=t.system||"",r.created=t.created||"",r.environments=t.environments||[];let o=r.members.size;r.members.set(String(t.created||""),t.slots||0),o!==r.members.size&&this.invalidate(),this.resizeBuilder(r,HE(r.members))}builderRemoved(t){let e=this.builderKey(t),n=this.builders.get(e);if(!n)return;if(n.members.delete(String(t.created||"")),n.members.size){this.resizeBuilder(n,HE(n.members)),this.invalidate();return}n.cells.filter(o=>o).concat(n.overflow).forEach(o=>{o.builder=void 0,this.removeJob(o)}),this.builders.delete(e),this.invalidate()}resizeBuilder(t,e){if(e===t.slots)return;let n=t.cells.filter(r=>r).concat(t.overflow);t.slots=e,t.cells=new Array(e).fill(void 0),t.cellFx=new Array(e).fill(void 0),t.overflow=[],n.forEach(r=>this.placeJob(t,r))}jobScheduled(t,e){let n=this.jobs.get(t.id);n&&this.removeJob(n);let r=this.client(t.client,e),o={id:t.id,state:"scheduled",client:r,cell:-1,sourcePath:t.sourcePath||"",scheduledAt:e,predictedHit:typeof t.objectCache=="boolean"?t.objectCache:void 0};o.predictedHit!==void 0&&(this.hasPredictions=!0),this.jobs.set(o.id,o),r.jobs.add(o),++r.scheduled;let s=this.findBuilder(t.builder);s&&this.placeJob(s,o),this.stats&&++this.stats.jobsScheduled}jobStarted(t,e){let n=this.jobs.get(t.id);if(!n){let r=this.client(t.client,e);n={id:t.id,state:"scheduled",client:r,cell:-1,sourcePath:t.sourcePath||"",scheduledAt:e},this.jobs.set(n.id,n),r.jobs.add(n),++r.scheduled;let o=this.findBuilder(t.builder);o&&this.placeJob(o,n)}if(n.state==="scheduled"){n.state="compiling",n.startedAt=e,--n.client.scheduled,++n.client.compiling;let r=this.bucket(e);++r.started,r.waitMs+=e-n.scheduledAt,++r.waitN,n.predictedHit&&++this.prediction.misses}n.client.lastActive=e,this.stats&&++this.stats.jobsStarted}cacheHit(t,e){++this.sessionHits,++this.pending.hits,++this.bucket(e).hits;let n=this.jobs.get(t.id);if(n){n.predictedHit===!0?++this.prediction.hits:n.predictedHit===!1&&++this.prediction.unpredictedHits,this.finishJob(n,"hit",e);return}let r=this.client(t.client,e);++r.totalHits,r.lastHit=e;let o=this.findBuilder(t.builder);o&&(++o.totalHits,o.lastHit=e),this.emit({t:e,outcome:"hit",client:r,builder:o,cell:-1,sourcePath:t.sourcePath||""})}jobDone(t,e,n){if(e==="compiled"){++this.sessionCompiles,++this.pending.compiled;let o=this.bucket(n);++o.compiled,typeof t.compileDuration=="number"&&t.compileDuration>=0&&(o.compileMs+=t.compileDuration,++o.compileN,this.compileMsEma=this.compileMsEma?this.compileMsEma*.98+t.compileDuration*.02:t.compileDuration)}else++this.sessionFailures,++this.pending.failed,++this.bucket(n).failed;let r=this.jobs.get(t.id);r&&this.finishJob(r,e,n,t.compileDuration)}updateStats(t){if(typeof t.cacheHits!="number")return;let e=this.stats||{};this.stats=Object.assign({},e,t),delete this.stats.type,delete this.stats.client,delete this.stats.builder,delete this.stats.id,delete this.stats.sourcePath}finishJob(t,e,n,r){let o=t.builder,s=t.cell,a=t.client;a.lastActive=n,e==="hit"?(++a.totalHits,a.lastHit=n,o&&(++o.totalHits,o.lastHit=n)):e==="compiled"?(++a.totalCompiles,o&&++o.totalCompiles):e==="failed"&&(++a.totalFailures,o&&++o.totalFailures),o&&s>=0&&(o.cellFx[s]={outcome:e,client:a,t:n}),r===void 0&&t.startedAt?r=n-t.startedAt:r===void 0&&(r=n-t.scheduledAt),this.removeJob(t),e!=="dropped"&&this.emit({t:n,outcome:e,client:a,builder:o,cell:s,sourcePath:t.sourcePath,duration:r})}removeJob(t){this.jobs.delete(t.id);let e=t.client;e.jobs.delete(t)&&(t.state==="scheduled"?--e.scheduled:--e.compiling);let n=t.builder;if(n)if(t.cell>=0&&n.cells[t.cell]===t){n.cells[t.cell]=void 0;let r=n.overflow.shift();r&&(n.cells[t.cell]=r,r.cell=t.cell)}else{let r=n.overflow.indexOf(t);r!==-1&&n.overflow.splice(r,1)}t.builder=void 0,t.cell=-1}placeJob(t,e){e.builder=t;let n=t.cells.indexOf(void 0);n!==-1?(t.cells[n]=e,e.cell=n):(t.overflow.push(e),e.cell=-1)}findBuilder(t){if(!t)return;let e=this.builders.get(this.builderKey(t));if(e)return e;let n;if(this.builders.forEach(o=>{!n&&o.ip===t.ip&&o.port===t.port&&(n=o)}),n)return n;let r;return this.builders.forEach(o=>{r||t.port!==void 0&&o.port!==t.port||(t.hostname&&o.hostname===t.hostname||t.name&&o.name===t.name)&&(r=o)}),r}client(t,e){t=t||{};let n=t.ip||"",r=t.name||"",o=`${n}|${r}`,s=this.clients.get(o);if(s)return s.lastActive=e,s;let a=tB(t);return s={key:o,ip:n,name:r,hostname:t.hostname||"",user:t.user||"",displayName:a.name,url:a.url,color:"",fg:"",jobs:new Set,compiling:0,scheduled:0,totalHits:0,totalCompiles:0,totalFailures:0,firstSeen:e,lastActive:e,lastHit:0},this.colorClient(s),this.clients.set(o,s),this.invalidate(),s}colorClient(t){let e=this.highlight;if(e.name&&e.bg&&(e.name===t.ip||e.name===t.name||e.name===t.hostname||e.name===t.displayName)){t.color=e.bg,t.fg=e.fg||UE(e.bg);return}let n=new Set;this.clients.forEach(o=>{o!==t&&o.color&&n.add(o.color)});let r=Math.floor((0,Kb.default)(t.ip+t.name)()*ch.length);t.color=void 0;for(let o=0;o<ch.length;++o){let s=ch[(r+o)%ch.length];if(!n.has(s)){t.color=s;break}}t.color||(t.color=iB(t.ip+t.name)),t.fg=UE(t.color)}sample(t){let e=new Map,n=0;this.clients.forEach(s=>{s.compiling>0&&e.set(s,s.compiling),n+=s.scheduled}),this.history.push({t,capacity:this.capacity,scheduled:n,compiling:e,hits:this.pending.hits,compiled:this.pending.compiled,failed:this.pending.failed}),this.pending={hits:0,compiled:0,failed:0};let r=t-KV,o=0;for(;o<this.history.length&&this.history[o].t<r;)++o;o&&this.history.splice(0,o)}bucket(t){let e=Math.floor(t/1e3),n=this.buckets[this.buckets.length-1];if(n&&n.sec===e)return n;let r={sec:e,hits:0,started:0,compiled:0,failed:0,compileMs:0,compileN:0,waitMs:0,waitN:0};return this.buckets.push(r),this.buckets.length>BE&&this.buckets.splice(0,this.buckets.length-BE),r}emit(t){this.events.push(t),this.events.length>zE&&this.events.splice(0,this.events.length-zE);for(let e=0;e<this.listeners.length;++e)this.listeners[e](t)}invalidate(){this.sortedClientsCache=void 0,this.sortedBuildersCache=void 0,this.labelBuilders()}labelBuilders(){let t=new Map;this.builders.forEach(e=>{let n=e.name||e.hostname;t.set(n,(t.get(n)||0)+1)}),this.builders.forEach(e=>{let n=e.name||e.hostname,r=n&&t.get(n)===1?n:e.ip;e.displayName=e.members.size>1?`${r} x${e.members.size}`:r})}};function HE(i){let t=0;return i.forEach(e=>t+=e),t}var $E={dark:!0,bg:"#11141b",panel:"#181d27",panelEdge:"#252c3a",tile:"#1d2330",tileFocus:"#232b3a",grid:"#262d3b",cellEmpty:"#222937",crosshair:"rgba(255,255,255,0.4)",text:"#d7deea",dim:"#7c8699",faint:"#4a5263",hit:"#34d399",compile:"#60a5fa",queued:"#fbbf24",fail:"#f87171",capacity:"#94a3b8"},eB={dark:!1,bg:"#f3f4f7",panel:"#ffffff",panelEdge:"#dde1e8",tile:"#f6f7f9",tileFocus:"#eef1f6",grid:"#eceef2",cellEmpty:"#e3e6ec",crosshair:"rgba(0,0,0,0.35)",text:"#1f2533",dim:"#667085",faint:"#a3aab8",hit:"#10b981",compile:"#3b82f6",queued:"#f59e0b",fail:"#ef4444",capacity:"#64748b"},N=Object.assign({},$E);function WE(i){Object.assign(N,i==="light"?eB:$E)}function tB(i){let t=i.name||"",e=i.hostname||"",n=i.user||"nobody";if(!t)return{name:e||i.ip||"unknown"};if(t===e)return{name:`dev:${n}@${e}`};if(t[0]==="-")return{name:`dev:${n}${t}`};if(t[0]==="{")try{let r=JSON.parse(t);if(r&&typeof r=="object"&&"name"in r)return{name:String(r.name),url:r.href}}catch{}return{name:t}}var ch=["#818cf8","#f472b6","#22d3ee","#fb923c","#c084fc","#7c3aed","#6366f1","#f9a8d4","#0ea5e9","#e879f9","#9333ea","#db2777","#a5b4fc","#ea580c","#67e8f9","#94a3b8"],Yb=[[175,345],[16,34]];function iB(i){let t=(0,Kb.default)(i),e=Yb.reduce((a,c)=>a+c[1]-c[0],0),n=t()*e,r=Yb[0][0];for(let[a,c]of Yb){if(n<=c-a){r=a+n;break}n-=c-a}let o=55+t()*35,s=52+t()*16;return nB(r,o,s)}function nB(i,t,e){t/=100,e/=100;let n=a=>(a+i/30)%12,r=t*Math.min(e,1-e),o=a=>e-r*Math.max(-1,Math.min(n(a)-3,Math.min(9-n(a),1))),s=a=>("0"+Math.round(a*255).toString(16)).slice(-2);return"#"+s(o(0))+s(o(8))+s(o(4))}function UE(i){if(!/^#[0-9a-fA-F]{6}$/.test(i))return"black";let t=parseInt(i.substring(1),16);return .2126*(t>>16&255)+.7152*(t>>8&255)+.0722*(t&255)<140?"white":"black"}function oc(i){if(!i)return"";let t=i.lastIndexOf("/");return t===-1?i:i.substring(t+1)}function bt(i){if(!isFinite(i)||i<=0)return"-";if(i<1e3)return`${Math.round(i)}ms`;if(i<6e4)return`${(i/1e3).toFixed(i<1e4?1:0)}s`;let t=Math.floor(i/6e4);return t<60?`${t}m ${Math.floor(i/1e3)%60}s`:`${Math.floor(t/60)}h ${t%60}m`}var Fn=(()=>{class i{constructor(){this.reset()}addListener(e,n){this.socket.addEventListener(e,n),this.allListeners.push([e,n])}removeListeners(){for(let e=0;e<this.allListeners.length;++e){let n=this.allListeners[e];this.socket.removeEventListener(n[0],n[1])}this.allListeners=[]}get isOpen(){return this.socket&&this.socket.readyState==WebSocket.OPEN}static websocketLocation(e,n){let r=e.get("scheduler",n.hostname),o=n.protocol==="https:",s=parseInt(e.get("port"));return s||(s=parseInt(n.port)||(o?8098:8097)),e.get("portExplicit",!1)||(o&&s===8097?s=8098:!o&&s===8098&&(s=8097)),{host:r,port:s,secure:o}}open(e,n,r){if(!this.isopen){try{this.socket=new WebSocket(`${r?"wss":"ws"}://${e}:${n}/monitor`)}catch(o){this.socket=void 0;for(let s=0;s<this.errorListeners.length;++s)this.errorListeners[s](o);console.log("ws connect error",o);return}console.log("ws connected"),this.addListener("open",o=>{if(console.log("ws open"),this.isopen=!0,this.pending!==void 0){for(let s=0;s<this.pending.length;++s)this.socket.send(this.pending[s]);this.pending=void 0}for(let s=0;s<this.openListeners.length;++s)this.openListeners[s]()}),this.addListener("message",o=>{let s;try{s=JSON.parse(o.data)}catch{console.error("unable to parse json",o.data);return}for(let a=0;a<this.messageListeners.length;++a)this.messageListeners[a](s)}),this.addListener("close",()=>{console.log("ws close");let o=this.closeListeners;this.removeListeners(),this.reset();for(let s=0;s<o.length;++s)o[s]()}),this.addListener("error",o=>{console.log("ws error",o),this.socket&&this.socket.close();let s=this.errorListeners;this.removeListeners(),this.reset();for(let a=0;a<s.length;++a)s[a](o)})}}on(e,n){e=="message"?this.messageListeners.push(n):e=="open"?this.openListeners.push(n):e=="close"?this.closeListeners.push(n):e=="error"&&this.errorListeners.push(n)}send(e){this.isopen?this.socket.send(JSON.stringify(e)):this.pending.push(JSON.stringify(e))}close(e,n){this.socket&&this.socket.close(e,n),this.removeListeners(),this.reset()}reset(){this.socket=void 0,this.pending=[],this.messageListeners=[],this.closeListeners=[],this.errorListeners=[],this.openListeners=[],this.isopen=!1,this.allListeners=[]}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var dh=(()=>{class i{constructor(){this.backoffs={},this.serials={}}backoff(e,n,r){if(e in this.backoffs)return!1;e in this.serials?++this.serials[e]:this.serials[e]=0;let o=this.serials[e];this.backoffs[e]=-1;let s=a=>{console.log("reconnecting",a),r().then(c=>{if(o===this.serials[e])if(c)delete this.backoffs[e];else{let l=n(a);this.backoffs[e]=setTimeout(()=>{s(l)},l)}}).catch(c=>{o===this.serials[e]&&delete this.backoffs[e],console.error(c)})};return s(0),!0}stop(e){if(e in this.backoffs){let n=this.backoffs[e];n!==-1&&clearTimeout(n),delete this.backoffs[e]}}running(e){return e in this.backoffs}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var _i=(()=>{class i{constructor(){this.changeListeners=[],this.cache={},this.currentKey=0}set(e,n,r){if(this.cache[e]=n,localStorage.setItem(e,JSON.stringify(n)),!(r!==void 0&&!r))for(let o=0;o<this.changeListeners.length;++o)this.changeListeners[o].cb(e)}get(e,n){if(e in this.cache)return this.cache[e];let r,o=localStorage.getItem(e);if(o!==null)try{r=JSON.parse(o),this.cache[e]=r}catch{r=n,n!==void 0&&this.set(e,n,!1)}else r=n,n!==void 0&&this.set(e,n,!1);return r}onChange(e){return this.changeListeners.push({key:++this.currentKey,cb:e}),this.currentKey}remove(e){for(var n=0;n<this.changeListeners.length;++n)if(this.changeListeners[n].key==e)return this.changeListeners.splice(n,1),!0;return!1}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var yi=(()=>{class i{get host(){return this._host}get port(){return this._port}constructor(e,n,r,o){this.ws=e,this.backoff=n,this.config=r,this.httpClient=o,this.pendingConnect=[],this.dataListeners=[],this.openListeners=[],this.schedulerListeners=[],this._currentKey=0;let s=window.location.pathname.replace(/[^/]*$/,"package.json");this.httpClient.get(`${window.location.protocol}//${window.location.host}/${s}`,{responseType:"json"}).subscribe({next:c=>{c&&this.emit(this.dataListeners,{type:"uiInfo",package:c})},error:()=>console.log("no package.json next to the UI")});let a=Fn.websocketLocation(r,window.location);this._host=a.host,this._port=a.port,this._secure=a.secure,this._host!==void 0&&this.open(this._host,this._port,this._secure),this.config.onChange(c=>{switch(c){case"scheduler":case"port":this.close();let l=Fn.websocketLocation(r,window.location);this._host=l.host,this._port=l.port,this._secure=l.secure,this._host!==void 0&&this.open(this._host,this._port,this._secure),this.emit(this.schedulerListeners,c);break}})}get isOpen(){return this.ws.isOpen}open(e,n,r){console.log("reoping"),this.ws.on("message",o=>{this.emit(this.dataListeners,o)}),this.ws.on("close",()=>{this.reconnect(e,n,r)}),this.ws.on("error",()=>{this.reconnect(e,n,r)}),this.ws.on("open",()=>{this.emit(this.openListeners),this.resolvePending(!0),console.log("ok")}),this.ws.open(e,n,r)}close(e,n){this.backoff.stop("fisk"),this.ws.close(e,n)}on(e,n){switch(e){case"data":this.dataListeners.push({key:++this._currentKey,cb:n});break;case"open":this.openListeners.push({key:++this._currentKey,cb:n});break;case"scheduler":this.schedulerListeners.push({key:++this._currentKey,cb:n});break;default:return-1}return this._currentKey}remove(e,n){let r=(o,s)=>{for(let a=0;a<o.length;++a)if(o[a].key==s)return o.splice(a,1),!0;return!1};switch(e){case"data":return r(this.dataListeners,n);case"open":return r(this.openListeners,n);case"scheduler":return r(this.schedulerListeners,n)}return!1}send(e){this.ws.send(e)}reconnect(e,n,r){if(this.backoff.running("fisk")){this.resolvePending(!1);return}let o=s=>s?Math.min(3e4,s*2):1e3;this.backoff.backoff("fisk",o,()=>new Promise((s,a)=>{this.pendingConnect.push({resolve:s,reject:a}),this.open(e,n,r)}))}resolvePending(e){this.pendingConnect.length>0&&this.pendingConnect.shift().resolve(e)}emit(e,n){for(let r=0;r<e.length;++r)e[r].cb(n)}static{this.\u0275fac=function(n){return new(n||i)(_(Fn),_(dh),_(_i),_(fp))}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var uh=(()=>{class i{constructor(e,n,r){this.fisk=e,this.config=n,this.model=new lh,this.applyHighlight(),this.fisk.on("data",o=>{this.model.handle(o)}),this.fisk.on("open",()=>{this.model.reset(),this.fisk.send({type:"sendInfo"})}),this.fisk.on("scheduler",()=>{this.model.reset()}),this.fisk.isOpen&&this.fisk.send({type:"sendInfo"}),this.config.onChange(o=>{(o==="client"||o==="fgcolor"||o==="bgcolor")&&this.applyHighlight()}),r.runOutsideAngular(()=>{setInterval(()=>this.model.tick(),250)})}applyHighlight(){this.model.setHighlight(this.config.get("client",""),this.config.get("fgcolor")||"#ffffff",this.config.get("bgcolor")||"#ff0000")}static{this.\u0275fac=function(n){return new(n||i)(_(yi),_(_i),_(V))}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var sB=["fiskTabGroup"];function aB(i,t){if(i&1&&(y(0,"a",4,1),q(2),b()),i&2){let e=t.$implicit,n=Si(1);R("routerLink",e.path)("active",n.isActive),C(2),ct(" ",e.label," ")}}var GE=(()=>{class i{constructor(e,n,r,o){this.tabChanged=e,this.router=n,this.live=r,this.vcRef=o,this.currentTab=void 0,this.currentName=void 0,this.navLinks=[{path:"/live",label:"Live"},{path:"/pie-chart",label:"Pie Chart"},{path:"/logs",label:"Logs"},{path:"/compilers",label:"Compilers"},{path:"/config",label:"Config"}],n.events.forEach(s=>{if(s instanceof ii){let a=s.urlAfterRedirects;for(let c=0;c<this.navLinks.length;++c)this.navLinks[c].path==a&&(this.currentTab=c,this.currentName=this.navLinks[c].label,this.tabChanged.notify(this.currentTab,this.currentName),console.log("here?",this.currentTab,this.currentName))}})}ngAfterViewInit(){}onTabChanged(e){this.currentTab=e.index,this.currentName=e.tab.textLabel}onAnimationDone(){this.tabChanged.notify(this.currentTab,this.currentName)}static{this.\u0275fac=function(n){return new(n||i)(g(on),g(Oi),g(uh),g(pt))}}static{this.\u0275cmp=ue({type:i,selectors:[["app-root"]],viewQuery:function(n,r){if(n&1&&we(sB,5),n&2){let o;ne(o=re())&&(r.tabGroup=o.first)}},decls:5,vars:1,consts:[["fiskTabGroup",""],["rla","routerLinkActive"],["mat-tab-nav-bar","",1,"fisk-tab-group"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"ngFor","ngForOf"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"]],template:function(n,r){n&1&&(y(0,"mat-card")(1,"nav",2,0),ee(3,aB,3,3,"a",3),b(),ie(4,"router-outlet"),b()),n&2&&(C(3),R("ngForOf",r.navLinks))},dependencies:[Ai,Mn,xb,Cb,Bg,Eu,HC]})}}return i})();var hh=(()=>{class i{constructor(e){this.snackBar=e}showMessage(e,n){this.snackBar.open(e,void 0,{duration:n||3e3})}static{this.\u0275fac=function(n){return new(n||i)(_(Ob))}}static{this.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var YE=(()=>{class i{constructor(e,n){this.config=e,this.tabChanged=n,this.minHeight="",this.inited=!1,this.timers={};let r=Fn.websocketLocation(e,window.location);this.port=r.port,this.scheduler=r.host,this.chartLegendSpace=e.get("chart-legend-space",400),this.liveWindow=e.get("live-window",300),this.liveTheme=e.get("live-theme","dark"),this.client=e.get("client",""),this.fgcolor=e.get("fgcolor")||"#ffffff",this.bgcolor=e.get("bgcolor")||"#ff0000",this.pieBuilding=e.get("pieBuilding",!1),this.noAnimate=e.get("noAnimate",!1),this.config.onChange(o=>{switch(o){case"scheduler":this.scheduler=e.get("scheduler");break;case"port":this.port=e.get("port");break;case"chart-legend-space":this.chartLegendSpace=e.get("chart-legend-space");break;case"live-window":this.liveWindow=e.get("live-window");break;case"live-theme":this.liveTheme=e.get("live-theme");break;case"client":this.client=e.get("client");break;case"fgcolor":this.fgcolor=e.get("fgcolor");break;case"bgcolor":this.bgcolor=e.get("bgcolor");break;case"pieBuilding":this.pieBuilding=e.get("pieBuilding");break;case"noAnimate":this.noAnimate=e.get("noAnimate");break}}),this.tabChanged.onChanged((o,s)=>{if(s!="Config"||this.inited)return;this.inited=!0;let c=document.getElementById("configTab").getBoundingClientRect();this.minHeight=window.innerHeight-c.y-50+"px"})}update(e,n){let r=!1;switch(e){case"scheduler":case"client":case"fgcolor":case"bgcolor":r=!0,this[e]=n;break}r&&(e in this.timers&&clearTimeout(this.timers[e]),this.timers[e]=setTimeout(()=>{delete this.timers[e],this.config.set(e,n)},500))}updateInt(e,n){let r=!1,o,s=e;switch(e){case"chartLegendSpace":s="chart-legend-space";case"liveWindow":e==="liveWindow"&&(s="live-window");case"port":o=parseInt(n),isNaN(o)||(r=!0,this[e]=o);break}r&&(e in this.timers&&clearTimeout(this.timers[e]),this.timers[e]=setTimeout(()=>{delete this.timers[e],e==="port"&&this.config.set("portExplicit",!0,!1),this.config.set(s,o)},500))}updateTheme(e){this.liveTheme=e,this.config.set("live-theme",e)}updateBool(e,n){let r=!1,o;switch(typeof n=="boolean"?o=n:typeof n=="string"&&n==="true"?o=!0:o=!1,e){case"pieBuilding":case"noAnimate":r=!0,this[e]=o;break}r&&this.config.set(e,o)}static{this.\u0275fac=function(n){return new(n||i)(g(_i),g(on))}}static{this.\u0275cmp=ue({type:i,selectors:[["app-config"]],decls:60,vars:20,consts:[["id","configTab",1,"space"],[1,"full-width"],["matInput","",3,"ngModelChange","ngModel"],["matInput","","type","number","max","65536",3,"ngModelChange","ngModel"],["matInput","","type","number","min","30","max","1800",3,"ngModelChange","ngModel"],[3,"selectionChange","value"],["value","dark"],["value","light"],["value","auto"],[1,"colors"],["matInput","","cpPosition","bottom","readonly","",3,"colorPickerChange","value","colorPicker","cpUseRootViewContainer"],["matSuffix","",1,"swatch"],[3,"ngModelChange","ngModel"]],template:function(n,r){n&1&&(y(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),q(3,"Scheduler"),b(),y(4,"input",2),j("ngModelChange",function(s){return r.update("scheduler",s)}),b(),y(5,"mat-hint"),q(6,"Host name of the fisk scheduler"),b()(),y(7,"mat-form-field",1)(8,"mat-label"),q(9,"Port"),b(),y(10,"input",3),j("ngModelChange",function(s){return r.updateInt("port",s)}),b(),y(11,"mat-hint"),q(12,"Scheduler port, usually 8097 (8098 for https)"),b()(),y(13,"mat-form-field",1)(14,"mat-label"),q(15,"Legend space"),b(),y(16,"input",3),j("ngModelChange",function(s){return r.updateInt("chartLegendSpace",s)}),b(),y(17,"mat-hint"),q(18,"Width in pixels of the client list (pie chart legend and Live view client column)"),b()(),y(19,"mat-form-field",1)(20,"mat-label"),q(21,"Live view history (seconds)"),b(),y(22,"input",4),j("ngModelChange",function(s){return r.updateInt("liveWindow",s)}),b(),y(23,"mat-hint"),q(24,"Time span of the Live view timeline, 30 to 1800 seconds"),b()(),y(25,"mat-form-field",1)(26,"mat-label"),q(27,"Live view theme"),b(),y(28,"mat-select",5),j("selectionChange",function(s){return r.updateTheme(s.value)}),y(29,"mat-option",6),q(30,"Dark"),b(),y(31,"mat-option",7),q(32,"Light"),b(),y(33,"mat-option",8),q(34,"Match system setting"),b()(),y(35,"mat-hint"),q(36,"Color scheme of the Live view"),b()(),y(37,"mat-form-field",1)(38,"mat-label"),q(39,"Highlighted client"),b(),y(40,"input",2),j("ngModelChange",function(s){return r.update("client",s)}),b(),y(41,"mat-hint"),q(42,"Client name, host name or IP to draw in the colors below"),b()(),y(43,"div",9)(44,"mat-form-field")(45,"mat-label"),q(46,"Background color"),b(),y(47,"input",10),j("colorPickerChange",function(s){return r.update("bgcolor",s)}),b(),ie(48,"span",11),b(),y(49,"mat-form-field")(50,"mat-label"),q(51,"Foreground color"),b(),y(52,"input",10),j("colorPickerChange",function(s){return r.update("fgcolor",s)}),b(),ie(53,"span",11),b()(),y(54,"div")(55,"mat-checkbox",12),j("ngModelChange",function(s){return r.updateBool("pieBuilding",s)}),q(56,"Represent 100% of pie chart as currently building jobs"),b()(),y(57,"div")(58,"mat-checkbox",12),j("ngModelChange",function(s){return r.updateBool("noAnimate",s)}),q(59,"Don't animate the charts"),b()()()),n&2&&(Ze("min-height",r.minHeight),C(4),R("ngModel",r.scheduler),C(6),R("ngModel",r.port),C(6),R("ngModel",r.chartLegendSpace),C(6),R("ngModel",r.liveWindow),C(6),R("value",r.liveTheme),C(12),R("ngModel",r.client),C(7),R("value",r.bgcolor)("colorPicker",r.bgcolor)("cpUseRootViewContainer",!0),C(),Ze("background",r.bgcolor),C(4),R("value",r.fgcolor)("colorPicker",r.fgcolor)("cpUseRootViewContainer",!0),C(),Ze("background",r.fgcolor),C(2),R("ngModel",r.pieBuilding),C(3),R("ngModel",r.noAnimate))},dependencies:[xE,Xo,sg,ru,cg,ag,wa,ys,Xu,Zu,gs,Qu,BD,_E,Uu],styles:[".full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:8px}.colors[_ngcontent-%COMP%]{display:flex;gap:16px}.swatch[_ngcontent-%COMP%]{display:inline-block;width:20px;height:20px;margin-right:12px;border-radius:4px;border:1px solid rgba(0,0,0,.3)}"]})}}return i})();var KE=(()=>{class i{constructor(e){this.fisk=e,this.fisk.on("data",n=>{switch(n.type){case"logFile":this.contents=`
|
|
14
14
|
`+n.contents;break}})}ngAfterViewInit(){this.fisk.send({type:"logFile",file:this.file}),console.log("after view init",this.file)}static{this.\u0275fac=function(n){return new(n||i)(g(yi))}}static{this.\u0275cmp=ue({type:i,selectors:[["app-log"]],inputs:{file:"file"},decls:2,vars:1,consts:[[1,"contents"]],template:function(n,r){n&1&&(y(0,"div",0),q(1),b()),n&2&&(C(),ct(" ",r.contents,`
|
|
15
15
|
`))},styles:[".contents[_ngcontent-%COMP%]{font-size:.6em;font-family:monospace;white-space:pre-wrap;background-color:#eee}"]})}}return i})();function dB(i,t){if(i&1&&(y(0,"div"),ie(1,"app-log",4),b()),i&2){let e=O().$implicit;C(),R("file",e)}}function uB(i,t){if(i&1){let e=Te();y(0,"div",1),j("click",function(){let r=F(e).$implicit,o=O();return L(o.onClicked(r))}),y(1,"div",2),q(2),ee(3,dB,2,1,"div",3),b()()}if(i&2){let e=t.$implicit,n=O();C(2),ct(" ",e," "),C(),R("ngIf",e==n.expanded)}}var QE=(()=>{class i{constructor(e){this.fisk=e,this.expanded="",this.fisk.on("data",n=>{switch(n.type){case"logFiles":this.files=n.files;break}})}onClicked(e){this.expanded=e,console.log("clicked",e)}ngAfterViewInit(){console.log("logs!"),this.fisk.send({type:"logFiles"})}static{this.\u0275fac=function(n){return new(n||i)(g(yi))}}static{this.\u0275cmp=ue({type:i,selectors:[["app-logs"]],decls:2,vars:1,consts:[["class","spacing",3,"click",4,"ngFor","ngForOf"],[1,"spacing",3,"click"],[1,"file"],[4,"ngIf"],[3,"file"]],template:function(n,r){n&1&&(y(0,"mat-card"),ee(1,uB,4,2,"div",0),b()),n&2&&(C(),R("ngForOf",r.files))},dependencies:[Ai,wd,Mn,KE],styles:[".spacing[_ngcontent-%COMP%]{padding-bottom:10px}.file[_ngcontent-%COMP%]{font-size:1.5em;cursor:pointer}"]})}}return i})();function hB(i,t){if(i&1&&(y(0,"div",5)(1,"div",6),q(2),b(),y(3,"div",7),q(4),b(),y(5,"div",8),q(6),b()()),i&2){let e=t.$implicit;C(2),ct(" ",e.sourceBasename," "),C(2),ct(" ",e.builder.ip," "),C(2),ct(" ",e.date," ")}}var fh=(()=>{class i{constructor(e,n){this.dialogRef=e,this.data=n,this.jobs=[],this.client=n.client,n.jobs.forEach(r=>{if(r.client.name==this.client.name){let o=r.sourcePath||r.sourceFile||"",s=o.lastIndexOf("/");r.sourceBasename=s!==-1?o.substring(s+1):o,this.jobs.push(r)}})}onCloseClick(){this.dialogRef.close()}static{this.\u0275fac=function(n){return new(n||i)(g(On),g(rc))}}static{this.\u0275cmp=ue({type:i,selectors:[["app-builder-info"]],decls:7,vars:2,consts:[[1,"scroll"],[1,"info"],["class","table",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","",3,"click"],[1,"table"],[1,"pre"],[1,"pre","table-mid"],[1,"pre","table-end"]],template:function(n,r){n&1&&(y(0,"mat-card",0)(1,"div",1),q(2),b(),ee(3,hB,7,3,"div",2),y(4,"div",3)(5,"button",4),j("click",function(){return r.onCloseClick()}),q(6,"Close"),b()()()),n&2&&(C(2),$t(r.client.modifiedName),C(),R("ngForOf",r.jobs))},dependencies:[Ai,bs,Mn,ih],styles:[".scroll[_ngcontent-%COMP%]{overflow:auto;max-height:70vh!important;min-width:70vw!important}.table[_ngcontent-%COMP%]{display:flex}.info[_ngcontent-%COMP%]{white-space:pre-line;padding:5px;font-size:2em;margin-bottom:10px}.pre[_ngcontent-%COMP%]{font-family:monospace,monospace;flex:1}.table-mid[_ngcontent-%COMP%]{text-align:center}.table-end[_ngcontent-%COMP%]{text-align:right}"]})}}return i})();var ZE=ev(Gb());var XE=(()=>{class i{constructor(e,n,r,o,s,a){this.fisk=e,this.config=n,this.tabChanged=r,this.message=o,this.changeRef=s,this.dialog=a,this.view={width:0,height:0},this.maxJobs=0,this.maxJobsData={},this.jobs=new Map,this.builders=new Set,this.clientJobs=[],this.minTime=5e3,this.inited=!1,this.destroyed=!1,this.onTabChange=void 0,this.onConfig=void 0,this.fiskData=void 0,this.fiskOpen=void 0,this.fiskScheduler=void 0,this.onResize=this._onResize.bind(this),window.jobs=this.jobs,this.fiskData=this.fisk.on("data",c=>{switch(c.type){case"builderAdded":this._builderAdded(c);break;case"builderRemoved":this._builderRemoved(c);break;case"jobStarted":this._jobStarted(c);break;case"jobFinished":this._updateStats(c);case"jobAborted":this._jobFinished(c);break;case"cacheHit":this._cacheHit(c);case"stats":this._updateStats(c);break;case"schedulerInfo":console.log("got scheduler info",c);break;case"jobScheduled":case"jobReleased":break;case"uiInfo":console.log("got ui version",c.package.version);break;default:console.error(`unexpected fisk message type ${c.type}`);break}}),this.fisk.isOpen&&this.fisk.send({type:"sendInfo"}),this.fiskOpen=this.fisk.on("open",()=>{this._reset(),this.message.showMessage("connected to "+this.fisk.host+":"+this.fisk.port),this.fisk.send({type:"sendInfo"})}),this.fiskScheduler=this.fisk.on("scheduler",()=>{this._reset()}),window.addEventListener("resize",this.onResize),this.onConfig=this.config.onChange(c=>{c=="client"||c=="fgcolor"||c=="bgcolor"?(this.clientColor={name:this.config.get("client"),fgcolor:this.config.get("fgcolor"),bgcolor:this.config.get("bgcolor")},this.clientJobs.forEach(l=>{delete l.color})):(c=="pieBuilding"||c=="noAnimate")&&(this[c]=this.config.get(c))}),this.onTabChange=this.tabChanged.onChanged((c,l)=>{if(l!="Pie Chart"||this.inited)return;let d=document.getElementById("canvas-chart");if(!d)return;let u=(k,x,I)=>k>=I.x&&k<=I.x+I.width&&x>=I.y&&x<=I.y+I.height;d.addEventListener("click",k=>{let I=document.getElementById("canvas-chart").getBoundingClientRect(),H=k.pageX-I.x,U=k.pageY-I.y;this.clientJobs.forEach($=>{u(H,U,$.client.rect)&&$.client.url&&window.open($.client.url,"_blank")})}),d.addEventListener("contextmenu",k=>{let I=document.getElementById("canvas-chart").getBoundingClientRect(),H=k.pageX-I.x,U=k.pageY-I.y,$=!0;return this.clientJobs.forEach(he=>{u(H,U,he.client.rect)&&(k.preventDefault(),$=!1,this.dialog.open(fh,{data:{client:he.client,jobs:this.jobs}}))}),$},!1),this.inited=!0;let f=d.getBoundingClientRect();this.view.width=window.innerWidth-f.x*2,this.view.height=window.innerHeight-f.y-50,this.changeRef.detectChanges(),this.ctx=d.getContext("2d",{alpha:!1});let h=.25,m=(k,x,I,H)=>{let U=k[x];if(this.noAnimate||!(I in k)){k[I]=U;return}let $=k[I];$!=U&&($<U?$=Math.min($+h*H,U):$=Math.max($-h*H,U),k[I]=$)};this.clientColor={name:this.config.get("client"),fgcolor:this.config.get("fgcolor"),bgcolor:this.config.get("bgcolor")},this.pieBuilding=this.config.get("pieBuilding"),this.noAnimate=this.config.get("noAnimate");let p=1/60*1e3,v=0,D=k=>{if(this.destroyed)return;let x=this.config.get("chart-legend-space",400),I=this.view.width-x+10,H=30,U=Math.min(this.view.width-x,this.view.height-H-10)-20,$=(k-v)/p;v=k;let he=ge=>ge/(180/Math.PI),T=this.ctx;T.fillStyle="white",T.beginPath(),T.rect(0,0,this.view.width,this.view.height),T.fill();let Be=10,je=U/2+Be,Ye=U/2-Be*2;if(T.fillStyle="#ddd",T.beginPath(),T.moveTo(je,je),T.arc(je,je,Ye,0,Math.PI*2,!1),T.fill(),!this.maxJobs){this.clientJobs.forEach(ge=>{ge.start=ge.animatedStart=he(270),ge.jobs=ge.animatedJobs=0}),window.requestAnimationFrame(D);return}T.font="16px sans-serif";let et=he(270),B=40;B+=40,T.fillStyle="black",T.fillText(this.maxJobsData.text,10,31);let oe=this.pieBuilding?this.jobs.size:this.maxJobs;if(!oe){window.requestAnimationFrame(D);return}let S={hits:0,misses:0},G=new Date().valueOf();for(let ge=0;ge<this.clientJobs.length;++ge){let W=this.clientJobs[ge];if(W.expired){if(!W.jobs&&!W.cacheJobs&&G-W.ts>=this.minTime){this.clientJobs.splice(ge,1),--ge;continue}(W.jobs||W.cacheJobs)&&(W.expired=!1)}if(W.start=et,m(W,"start","animatedStart",$),m(W,"jobs","animatedJobs",$),!W.color&&(this.clientColor.name&&this.clientColor.fgcolor&&this.clientColor.bgcolor&&(this.clientColor.name==W.client.ip||this.clientColor.name==W.client.name||this.clientColor.name==W.client.hostname)&&(W.color=this.clientColor.bgcolor,W.fg=this.clientColor.fgcolor),!W.color)){W.color=this._color(W.client.ip,!1);let Is=parseInt(W.color.substring(1),16),vh=Is>>16&255,sI=Is>>8&255,aI=Is>>0&255;var K=.2126*vh+.7152*sI+.0722*aI;K<128?W.fg="white":W.fg="black"}T.fillStyle=W.color,T.beginPath(),T.moveTo(je,je),T.arc(je,je,Ye,W.animatedStart,W.animatedStart+Math.PI*2*(W.animatedJobs/oe),!1),T.lineTo(je,je),T.fill(),T.beginPath(),T.rect(I,B-20,x,30),T.fill(),"rect"in W.client?(W.client.rect.x=I,W.client.rect.y=B-20):W.client.rect={x:I,y:B-20,width:x,height:30},T.fillStyle=W.fg,T.fillText(W.client.modifiedName,I+2,B),S.hits+=W.cacheJobs,S.misses+=W.jobs;let $e=0,St=x*((W.totalCacheJobs||0)/((W.totalCacheJobs||0)+W.totalJobs)),Xe=x*(W.totalJobs/((W.totalCacheJobs||0)+W.totalJobs));T.fillStyle="#3d3",T.beginPath(),T.rect(I,B-20+31,St,4),T.fill(),T.fillStyle="#33d",T.beginPath(),T.rect(I+St,B-20+31,Xe,4),T.fill(),$e=8;let Es=(W.cacheJobs||0)+" / "+W.jobs+" ("+Math.round(W.jobs/oe*1e3)/10+"%)",bh=T.measureText(Es),ht=(Is,vh)=>("000000000"+Is).substr(-vh),Fi=G-W.ts,At="("+ht(Math.floor(Fi/1e3/60),2)+":"+ht(Math.floor(Fi/1e3)%60,2)+")",vr=T.measureText(At),_r=bh.width+vr.width+10;T.fillStyle=W.color,T.beginPath(),T.rect(I+x-_r-15,B-20,_r+15,30),T.fill(),T.fillStyle=W.fg,T.fillText(Es,I+x-_r-10,B),T.fillText(At,I+x-vr.width-10,B),et+=Math.PI*2*(W.animatedJobs/oe),B+=30+$e}if(S.hits>0||S.misses>0){B=0;let ge=x*(S.hits/(S.hits+S.misses)),W=x*(S.misses/(S.hits+S.misses));T.fillStyle="#3d3",T.beginPath(),T.rect(I,B-20+31,ge,30),T.fill(),T.fillStyle="#33d",T.beginPath(),T.rect(I+ge,B-20+31,W,30),T.fill();let $e=`${S.hits} / ${S.misses}`,St=T.measureText($e);T.fillStyle="#fff",T.fillText("Cache usage",I+2,B+31),T.fillText($e,I+x-St.width-15,B+31)}T.fillStyle="#fff",T.fillRect(0,this.view.height-H-10,this.view.width,H+10);let le=0;if(this.stats&&(le=this.stats.cacheHits+this.stats.jobsFailed+this.stats.jobsStarted),le>0){let ge=5,W=5;T.fillStyle="#3d3",T.fillRect(ge,this.view.height-H-5,(this.view.width-10)*(this.stats.cacheHits/le),H),ge+=(this.view.width-10)*(this.stats.cacheHits/le);let $e="Hits "+Number(this.stats.cacheHits).toLocaleString()+" "+(this.stats.cacheHits/le*100).toFixed(1)+"%";T.fillText($e,W,this.view.height-H-10),W+=T.measureText($e).width+30,T.fillStyle="#33d",T.fillRect(ge,this.view.height-H-5,(this.view.width-10)*(this.stats.jobsStarted/le),H),ge+=(this.view.width-10)*(this.stats.jobsStarted/le),$e="Compiles "+Number(this.stats.jobsStarted).toLocaleString()+" "+(this.stats.jobsStarted/le*100).toFixed(1)+"%",T.fillText($e,W,this.view.height-H-10),this.stats.jobsFailed>0&&(W+=T.measureText($e).width+30,T.fillStyle="#d33",T.fillRect(ge,this.view.height-H-5,(this.view.width-10)*(this.stats.jobsFailed/le),H),$e="Failures "+Number(this.stats.jobsFailed).toLocaleString()+" "+(this.stats.jobsFailed/le*100).toFixed(1)+"%",T.fillText($e,W,this.view.height-H-10))}window.requestAnimationFrame(D)};window.requestAnimationFrame(D)})}ngOnDestroy(){console.log("destroyed"),this.tabChanged.remove(this.onTabChange),this.config.remove(this.onConfig),this.fisk.remove("open",this.fiskOpen),this.fisk.remove("data",this.fiskData),this.fisk.remove("scheduler",this.fiskScheduler),window.removeEventListener("resize",this.onResize),this.destroyed=!0}_onResize(){let e=document.getElementById("canvas-chart");if(e){let n=e.getBoundingClientRect();this.view.width=window.innerWidth-n.x*2,this.view.height=window.innerHeight-n.y-50}}_reset(){this.maxJobs=0,this.maxJobsData={},this.jobs=new Map,this.builders=new Set,this.clientJobs=[]}_color(e,n){function r(p,v,D){return p+D()*(v-p)}function o(p){return("0"+Number(p).toString(16)).slice(-2)}let s=(0,ZE.default)(e);var a=r(1,360,s),c=r(0,100,s),l=r(45,100,s);n&&(c=100-c),a/=360,c/=100,l/=100;var d,u,f;if(c==0)d=u=f=l;else{let p=(v,D,k)=>(k<0&&(k+=1),k>1&&(k-=1),k<.16666666666666666?v+(D-v)*6*k:k<.5?D:k<.6666666666666666?v+(D-v)*(.6666666666666666-k)*6:v);var h=l<.5?l*(1+c):l+c-l*c,m=2*l-h;d=p(m,h,a+1/3),u=p(m,h,a),f=p(m,h,a-1/3)}return"#"+o(d*255)+o(u*255)+o(f*255)}_clientJobIndex(e){for(let n=0;n<this.clientJobs.length;++n)if(this.clientJobs[n].client.ip===e.ip&&this.clientJobs[n].client.name===e.name)return n;return-1}_adjustClients(e,n,r){let o=this._clientJobIndex(e);if(o==-1){if(n<0||r<0)return console.error("no client job for job client",e),!1;if(e.name===e.hostname)e.modifiedName="dev:"+(e.user||"nobody")+"@"+e.hostname;else if(e.name.length>0&&e.name[0]==="-")e.modifiedName="dev:"+(e.user||"nobody")+e.name;else{try{let s=JSON.parse(e.name);typeof s=="object"&&"name"in s&&(e.modifiedName=s.name,e.url=s.href)}catch{}e.modifiedName||(e.modifiedName=e.name)}this.clientJobs.push({client:e,jobs:n,cacheJobs:r,totalJobs:n,totalCacheJobs:r,ts:new Date().valueOf(),expired:!1}),this.clientJobs.sort((s,a)=>s.client.modifiedName.localeCompare(a.client.modifiedName))}else{let s=this.clientJobs[o];s.jobs+=n,n>0&&(s.totalJobs+=n),s.cacheJobs+=r,r>0&&(s.totalCacheJobs+=r),!s.jobs&&!s.cacheJobs&&(new Date().valueOf()-s.ts<this.minTime?s.expired=!0:this.clientJobs.splice(o,1))}return!0}_builderId(e){return e.ip+":"+e.port}_builderAdded(e){let n=this._builderId(e);this.builders.has(n)||(this.builders.add(n),this.maxJobs+=e.slots,this._updateMaxJobsData())}_builderRemoved(e){if(!this.builders.delete(this._builderId(e)))return;if(this.maxJobs-=e.slots,this._updateMaxJobsData(),this.maxJobs<0)throw new Error("Negative jobs reached!");let n=this._builderId(e);this.jobs.forEach((r,o)=>{n==this._builderId(r.builder)&&(this.jobs.delete(o),this._adjustClients(r.client,-1,0))}),this._updateMaxJobsData()}_updateMaxJobsData(){this.maxJobsData.text=`Slots ${this.jobs.size} / ${this.maxJobs} (${(this.jobs.size/this.maxJobs*100).toFixed(1)}%)`,this.maxJobsData.width=this.ctx.measureText(this.maxJobsData.text).width}_jobStarted(e){let n=r=>{let o=r.indexOf("(");return o!==-1?r.substr(0,o):r};e.date=n(new Date().toTimeString()).trim(),this.jobs.set(e.id,e),this._adjustClients(e.client,1,0),this._updateMaxJobsData()}_jobFinished(e){if(!this.jobs.has(e.id)){console.error("No such job ",e),console.error(JSON.stringify(Array.from(this.jobs.keys())));return}let n=this.jobs.get(e.id);this.jobs.delete(e.id),this._adjustClients(n.client,-1,0),this._updateMaxJobsData()}_updateStats(e){this.stats=e}_cacheHit(e){this._adjustClients(e.client,0,1),setTimeout(()=>this._adjustClients(e.client,0,-1),5e3)}static{this.\u0275fac=function(n){return new(n||i)(g(yi),g(_i),g(on),g(hh),g(He),g(Nn))}}static{this.\u0275cmp=ue({type:i,selectors:[["app-pie-chart"]],decls:1,vars:2,consts:[["id","canvas-chart",3,"width","height"]],template:function(n,r){n&1&&ie(0,"canvas",0),n&2&&R("width",r.view.width)("height",r.view.height)}})}}return i})();var vt="system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",Gt=12,xs=40,Qb=17,fB=700,mB=300,Cs={hit:70,compiled:25,failed:20},gh=class{constructor(t,e){this.canvas=t,this.model=e,this.width=0,this.height=0,this.windowMs=5*60*1e3,this.sideWidth=360,this.animate=!0,this.focus=void 0,this.hoverX=void 0,this.dpr=1,this.tiles=[],this.tileByBuilder=new Map,this.rows=[],this.rowByClient=new Map,this.moreRow=void 0,this.timelinePlot=void 0,this.kpis=[],this.visibleSamples=[],this.particles=[],this.textCache=new Map,this.tokens={hit:0,compiled:0,failed:0,t:0},this.ctx=t.getContext("2d",{alpha:!1}),this.unsubscribe=e.onEvent(n=>this.spawn(n))}destroy(){this.unsubscribe()}resize(t,e,n){this.width=Math.max(320,Math.floor(t)),this.height=Math.max(320,Math.floor(e)),this.dpr=n||1,this.canvas.width=Math.floor(this.width*this.dpr),this.canvas.height=Math.floor(this.height*this.dpr),this.canvas.style.width=this.width+"px",this.canvas.style.height=this.height+"px",this.textCache.clear()}hitTest(t,e){for(let r of this.tiles)if(mh(t,e,r)){let o=Math.floor((t-r.cellX)/(r.cell+r.gap)),s=Math.floor((e-r.cellY)/(r.cell+r.gap)),a;if(o>=0&&o<r.cols&&s>=0){let c=s*r.cols+o;c<r.builder.cells.length&&(a=r.builder.cells[c])}return{kind:"builder",builder:r.builder,job:a}}for(let r of this.kpis)if(mh(t,e,r))return{kind:"kpi",key:r.key};for(let r of this.rows)if(mh(t,e,r))return r.client?{kind:"client",client:r.client}:{kind:"more"};let n=this.timelinePlot;if(n&&mh(t,e,n)&&this.visibleSamples.length){let r=Date.now()-(n.x+n.w-t)/n.w*this.windowMs,o=this.visibleSamples[0];for(let s of this.visibleSamples)Math.abs(s.t-r)<Math.abs(o.t-r)&&(o=s);return{kind:"timeline",sample:o}}}draw(t){let e=this.ctx;e.setTransform(this.dpr,0,0,this.dpr,0,0),e.fillStyle=N.bg,e.fillRect(0,0,this.width,this.height),e.textBaseline="alphabetic";let n=this.width,r=this.height,o={x:Gt,y:Gt,w:n-Gt*2,h:72},s=o.y+o.h+Gt,a=Math.round(Math.max(240,Math.min(this.sideWidth,n*.38))),c={x:Gt,y:s,w:n-a-Gt*3,h:r-s-Gt},l={x:c.x+c.w+Gt,y:s,w:a,h:r-s-Gt},d=Math.round(Math.max(170,Math.min(c.h*.45,340))),u={x:c.x,y:c.y,w:c.w,h:d},f={x:c.x,y:c.y+d+Gt,w:c.w,h:c.h-d-Gt},h=Qb*6+34,m=34+Math.max(2,this.model.clients.size)*xs+4,p=Math.round(Math.max(Math.min(m,l.h-h-Gt),Math.min(160,l.h*.5))),v={x:l.x,y:l.y,w:l.w,h:p},D={x:l.x,y:v.y+v.h+Gt,w:l.w,h:l.h-p-Gt};this.drawKpis(o,t),this.drawTimeline(u,t),this.drawBuilders(f,t),this.drawClients(v,t),this.drawFeed(D,t),this.drawParticles(t)}drawKpis(t,e){let n=this.model,r=n.windowStats(60,e),o=n.capacity,s=n.scheduledCount,a=n.jobs.size-s,c=n.stats,l=c&&c.cacheHits||0,d=c&&c.jobsStarted||0,u=l+d?l/(l+d):0,f=r.avgCompileMs||n.compileMsEma,h=n.sessionHits+n.sessionCompiles?n.sessionHits/(n.sessionHits+n.sessionCompiles):0,m=[{prio:0,key:"slots",label:"SLOTS IN USE",value:`${a+s} / ${o}`,sub:`${o?Math.round((a+s)/o*100):0}% - ${a} compiling, ${s} waiting`,bar:[[a,N.compile],[s,N.queued],[Math.max(0,o-a-s),N.cellEmpty]]},{prio:0,key:"cache",label:"CACHE HIT RATE (60s)",value:r.hits+r.started?ph(r.hitRate):"-",color:N.hit,sub:`session ${ph(h)} - lifetime ${ph(u)} of ${Ln(l+d)}`,bar:[[r.hits,N.hit],[r.started,N.compile]]},{prio:1,key:"throughput",label:"THROUGHPUT (60s)",value:`${r.throughput.toFixed(r.throughput<10?1:0)}/s`,sub:`${(r.hits/Math.min(60,Math.max(1,(e-n.sessionStart)/1e3))).toFixed(1)} hits/s + ${(r.compiled/Math.min(60,Math.max(1,(e-n.sessionStart)/1e3))).toFixed(1)} compiles/s`},{prio:2,key:"compile",label:"AVG COMPILE",value:bt(f),sub:`dispatch wait ${bt(r.avgWaitMs)}`},{prio:1,key:"saved",label:"SAVED BY CACHE",value:f?"~"+bt(n.sessionHits*f):"-",color:N.hit,sub:`${Ln(n.sessionHits)} hits since ${tI(n.sessionStart)}`},{prio:2,key:"failures",label:"FAILURES (60s)",value:String(r.failed),color:r.failed?N.fail:void 0,sub:`session ${Ln(n.sessionFailures)} - lifetime ${Ln(c&&c.jobsFailed||0)}`},{prio:3,key:"builders",label:"BUILDERS",value:String(n.builders.size),sub:n.schedulerVersion?`scheduler ${n.schedulerVersion}`:`${Ln(n.clients.size)} clients`}],p=10,v=m;for(let x=3;x>0&&!((t.w-(v.length-1)*p)/v.length>=150);--x)v=v.filter(H=>H.prio<x);let D=(t.w-(v.length-1)*p)/v.length,k=this.ctx;this.kpis=[],v.forEach((x,I)=>{let H=t.x+I*(D+p);this.kpis.push({key:x.key,x:H,y:t.y,w:D,h:t.h}),this.panel({x:H,y:t.y,w:D,h:t.h}),k.fillStyle=N.dim,k.font=`600 10px ${vt}`,k.fillText(this.fit(x.label,D-20),H+10,t.y+17),k.fillStyle=x.color||N.text,k.font=`600 22px ${vt}`,k.fillText(this.fit(x.value,D-20),H+10,t.y+42),k.fillStyle=N.dim,k.font=`11px ${vt}`,k.fillText(this.fit(x.sub,D-20),H+10,t.y+58),x.bar&&this.ratioBar(H+10,t.y+t.h-8,D-20,3,x.bar)})}drawTimeline(t,e){let n=this.ctx;this.panel(t),this.title(t,`Activity - last ${bt(this.windowMs)}`,[["compiling (by client)",N.compile],["waiting",N.queued],["capacity",N.capacity],["cache hits/s",N.hit],["compiles/s",N.compile],["failed/s",N.fail]]);let r={x:t.x+44,y:t.y+30,w:t.w-56,h:t.h-52};this.timelinePlot=r;let o=r.y+Math.round(r.h*.64),s=o-r.y,a=r.y+r.h-o,c=e-this.windowMs,l=this.model.history,d=l.length;for(;d>0&&l[d-1].t>=c-uo;)--d;let u=l.slice(d);this.visibleSamples=u;let f=new Map;this.model.clients.forEach(B=>{B.compiling&&f.set(B,B.compiling)});let h=u.concat([{t:e,capacity:this.model.capacity,scheduled:this.model.scheduledCount,compiling:f,hits:0,compiled:0,failed:0}]),m=B=>r.x+r.w-(e-B)/this.windowMs*r.w,p=1,v=0,D=new Set,k=new Float64Array(h.length);h.forEach((B,oe)=>{let S=0;B.compiling.forEach((G,K)=>{S+=G,D.add(K)}),k[oe]=S,p=Math.max(p,S+B.scheduled),v=Math.max(v,B.capacity)});let x=v>0&&v<=p*2.5;p=eI(Math.max(p*1.15,x?v*1.05:0,4));let I=B=>o-B/p*(s-4),H=4,U=u.map((B,oe)=>{let S=0,G=0,K=0,le=0;for(let W=Math.max(0,oe-H+1);W<=oe;++W,++le)S+=u[W].hits,G+=u[W].compiled,K+=u[W].failed;let ge=1e3/(uo*Math.max(1,le));return[S*ge,G*ge,K*ge]}),$=1;U.forEach(B=>$=Math.max($,B[0]+B[1]+B[2])),$=eI($*1.1);let he=B=>o+B/$*(a-2);n.save(),n.beginPath(),n.rect(r.x,r.y,r.w,r.h),n.clip(),n.strokeStyle=N.grid,n.lineWidth=1;let T=bB(this.windowMs);n.font=`10px ${vt}`;for(let B=Math.ceil(c/T)*T;B<=e;B+=T){let oe=Math.round(m(B))+.5;n.beginPath(),n.moveTo(oe,r.y),n.lineTo(oe,r.y+r.h),n.stroke()}[.5,1].forEach(B=>{let oe=Math.round(I(p*B))+.5;n.beginPath(),n.moveTo(r.x,oe),n.lineTo(r.x+r.w,oe),n.stroke()});let Be=Array.from(D).sort((B,oe)=>B.displayName.localeCompare(oe.displayName)),je=new Float64Array(h.length);for(let B of Be){n.beginPath();for(let oe=0;oe<h.length;++oe){let S=h[oe].compiling.get(B)||0,G=m(h[oe].t),K=I(je[oe]+S);oe===0?n.moveTo(G,K):n.lineTo(G,K)}for(let oe=h.length-1;oe>=0;--oe)n.lineTo(m(h[oe].t),I(je[oe]));n.closePath(),n.globalAlpha=this.focus&&this.focus!==B?.15:.9,n.fillStyle=B.color,n.fill();for(let oe=0;oe<h.length;++oe)je[oe]+=h[oe].compiling.get(B)||0}n.globalAlpha=1,n.beginPath();for(let B=0;B<h.length;++B){let oe=m(h[B].t),S=I(k[B]+h[B].scheduled);B===0?n.moveTo(oe,S):n.lineTo(oe,S)}for(let B=h.length-1;B>=0;--B)n.lineTo(m(h[B].t),I(k[B]));n.closePath(),n.fillStyle=ho(N.queued,.35),n.fill(),n.beginPath(),h.forEach((B,oe)=>{let S=m(B.t),G=Math.round(I(Math.min(B.capacity,p)))+.5;oe===0?n.moveTo(S,G):(n.lineTo(S,Math.round(I(Math.min(h[oe-1].capacity,p)))+.5),n.lineTo(S,G))}),n.setLineDash([4,3]),n.strokeStyle=x?N.capacity:ho(N.capacity,.35),n.stroke(),n.setLineDash([]),!x&&v&&(n.fillStyle=N.dim,n.font=`10px ${vt}`,n.textAlign="right",n.fillText(`capacity ${Ln(v)} (above scale)`,r.x+r.w-4,r.y+12),n.textAlign="left");let Ye=[[0,N.hit],[1,N.compile],[2,N.fail]],et=new Float64Array(u.length);for(let[B,oe]of Ye){if(!u.length)break;n.beginPath();for(let S=0;S<u.length;++S){let G=m(u[S].t),K=he(et[S]+U[S][B]);S===0?n.moveTo(G,K):n.lineTo(G,K)}for(let S=u.length-1;S>=0;--S)n.lineTo(m(u[S].t),he(et[S]));n.closePath(),n.fillStyle=ho(oe,B===1?.55:.9),n.fill();for(let S=0;S<u.length;++S)et[S]+=U[S][B]}this.hoverX!==void 0&&this.hoverX>=r.x&&this.hoverX<=r.x+r.w&&(n.strokeStyle=N.crosshair,n.beginPath(),n.moveTo(Math.round(this.hoverX)+.5,r.y),n.lineTo(Math.round(this.hoverX)+.5,r.y+r.h),n.stroke()),n.restore(),n.strokeStyle=N.faint,n.beginPath(),n.moveTo(r.x,o+.5),n.lineTo(r.x+r.w,o+.5),n.stroke(),n.fillStyle=N.dim,n.font=`10px ${vt}`,n.textAlign="right",n.fillText(Ln(p),r.x-6,I(p)+4),n.fillText(Ln(p/2),r.x-6,I(p/2)+4),n.fillText("slots",r.x-6,o-3),n.fillText(`${Ln($)}/s`,r.x-6,r.y+r.h),n.fillText("done",r.x-6,o+12),n.textAlign="center";for(let B=Math.ceil(c/T)*T;B<=e;B+=T)e-B<T*.4||n.fillText(tI(B,T<6e4),m(B),r.y+r.h+14);n.textAlign="right",n.fillText("now",r.x+r.w,r.y+r.h+14),n.textAlign="left"}drawBuilders(t,e){let n=this.ctx;this.panel(t);let r=this.model.sortedBuilders();if(this.title(t,`Builders (${r.length}) - ${this.model.capacity} slots`,[["compiling",N.compile],["waiting",N.queued],["cache hit",N.hit],["failed",N.fail]]),this.tiles=[],this.tileByBuilder.clear(),!r.length){this.empty(t,"No builders connected");return}let o={x:t.x+10,y:t.y+30,w:t.w-20,h:t.h-38},s;for(let c=26;c>=4&&(s=this.layoutTiles(r,o,c,c===4),!s);--c);let a=this.animate;for(let c of s){if(c.y>t.y+t.h)continue;let l=c.builder;this.tiles.push(c),this.tileByBuilder.set(l,c),n.fillStyle=N.tile,Ds(n,c.x,c.y,c.w,c.h,4),n.fill(),n.strokeStyle=N.panelEdge,Ds(n,c.x+.5,c.y+.5,c.w-1,c.h-1,4),n.stroke();let d=c.cell>=10?11:9;n.font=`${d}px ${vt}`;let u=0;l.cells.forEach(D=>{D&&++u});let f=l.overflow.length?`+${l.overflow.length}`:`${u}/${l.slots}`,h=this.measure(f,n.font);n.fillStyle=l.overflow.length?N.queued:N.dim,n.fillText(f,c.x+c.w-6-h,c.cellY-5),n.fillStyle=N.text,n.fillText(this.fit(l.displayName,c.w-16-h,!0),c.x+6,c.cellY-5);let m=c.cell+c.gap;for(let D=0;D<l.slots;++D){let k=c.cellX+D%c.cols*m,x=c.cellY+Math.floor(D/c.cols)*m,I=l.cells[D];if(!I)n.fillStyle=N.cellEmpty,n.fillRect(k,x,c.cell,c.cell);else{let U=this.focus&&this.focus!==I.client;n.globalAlpha=U?.18:1,I.state==="compiling"?(n.fillStyle=I.client.color,n.fillRect(k,x,c.cell,c.cell)):(n.fillStyle=N.cellEmpty,n.fillRect(k,x,c.cell,c.cell),n.fillStyle=ho(I.client.color,.3),n.fillRect(k,x,c.cell,c.cell),n.strokeStyle=I.predictedHit?N.hit:N.queued,n.strokeRect(k+.5,x+.5,c.cell-1,c.cell-1)),n.globalAlpha=1}let H=a?l.cellFx[D]:void 0;if(H){let U=(e-H.t)/fB;U>=1||U<0?l.cellFx[D]=void 0:(n.globalAlpha=Math.pow(1-U,1.5),n.fillStyle=H.outcome==="hit"?N.hit:H.outcome==="failed"?N.fail:H.outcome==="dropped"?N.dim:H.client.color,n.fillRect(k,x,c.cell,c.cell),H.outcome==="hit"&&c.cell>=8&&(n.globalAlpha=(1-U)*.7,n.strokeStyle=N.hit,n.beginPath(),n.arc(k+c.cell/2,x+c.cell/2,c.cell*(.45+U*.6),0,Math.PI*2),n.stroke()),n.globalAlpha=1)}}let p=l.totalHits+l.totalCompiles+l.totalFailures,v=c.y+c.h-7;p?this.ratioBar(c.x+6,v,c.w-12,3,[[l.totalHits,N.hit],[l.totalCompiles,ho(N.compile,.7)],[l.totalFailures,N.fail]]):(n.fillStyle=N.cellEmpty,n.fillRect(c.x+6,v,c.w-12,3))}this.tiles.length<r.length&&(n.fillStyle=N.dim,n.font=`11px ${vt}`,n.textAlign="right",n.fillText(`+${r.length-this.tiles.length} more builders`,t.x+t.w-10,t.y+t.h-6),n.textAlign="left")}layoutTiles(t,e,n,r){let o=n>=8?2:1,s=n>=10?18:14,a=6,c=[],l=e.x,d=e.y,u=0,f=8;for(let h of t){let m=Math.max(1,h.slots),p=Math.min(m,Math.ceil(Math.sqrt(m*3))),v=n>=10?96:70;for(;p<m&&p*(n+o)-o+a*2<v;)++p;let D=Math.ceil(m/p),k=Math.max(v,p*(n+o)-o+a*2),x=s+D*(n+o)-o+a+8;if(k>e.w&&!r)return;l+k>e.x+e.w&&l>e.x&&(l=e.x,d+=u+f,u=0),c.push({builder:h,x:l,y:d,w:k,h:x,cellX:l+a,cellY:d+s,cell:n,gap:o,cols:p}),l+=k+f,u=Math.max(u,x)}if(!(!r&&d+u>e.y+e.h))return c}drawClients(t,e){let n=this.ctx;this.panel(t);let r=this.model.sortedClients(),o=r.filter(h=>h.jobs.size).length;if(this.title(t,`Clients (${o} active)`,[]),this.rows=[],this.rowByClient.clear(),this.moreRow=void 0,!r.length){this.empty(t,"No client activity");return}let s=t.y+30,a=Math.max(1,Math.floor((t.h-34)/xs)),c=r;c.length>a&&(c=r.filter(h=>h.jobs.size||h===this.focus));let l=r.length-c.length;c.length>a&&(l+=c.length-(a-1),c=c.slice(0,a-1));let d=Math.max(1,this.model.capacity),u=t.x+8,f=t.w-16;if(c.forEach((h,m)=>{let p=s+m*xs,v={x:u,y:p,w:f,h:xs-4,client:h};this.rows.push(v),this.rowByClient.set(h,v);let D=!h.jobs.size,k=this.focus&&this.focus!==h||D;n.fillStyle=this.focus===h?N.tileFocus:N.tile,Ds(n,u,p,f,v.h,4),n.fill(),this.focus===h&&(n.strokeStyle=h.color,Ds(n,u+.5,p+.5,f-1,v.h-1,4),n.stroke()),n.globalAlpha=k?.45:1,n.fillStyle=h.color,n.fillRect(u,p,5,v.h),n.font=`600 13px ${vt}`;let x=String(h.compiling),I=this.measure(x,n.font);n.font=`11px ${vt}`;let H=h.scheduled?` +${h.scheduled}`:"",U=H?this.measure(H,n.font):0,$=u+f-8;n.fillStyle=N.queued,n.fillText(H,$-U,p+16),n.fillStyle=N.text,n.font=`600 13px ${vt}`,n.fillText(x,$-U-I,p+16),n.font=`13px ${vt}`,n.fillStyle=N.text,n.fillText(this.fit(h.displayName+(h.url?" \u2197":""),f-30-I-U),u+12,p+16);let he=p+v.h-11,T=Math.round((f-20)*.55);n.fillStyle=N.cellEmpty,n.fillRect(u+12,he,T,5),n.fillStyle=h.color,n.fillRect(u+12,he,Math.min(T,T*h.compiling/d),5),n.fillStyle=ho(N.queued,.8),n.fillRect(u+12+Math.min(T,T*h.compiling/d),he,Math.max(0,Math.min(T*(1-h.compiling/d),T*h.scheduled/d)),5);let Be=h.totalHits+h.totalCompiles,je=u+20+T,Ye=u+f-8-je;n.font=`10px ${vt}`;let et=Be?`${ph(h.totalHits/Be)} hit`:"",B=this.measure(et,n.font);Be&&(n.fillStyle=h.totalHits?N.hit:N.dim,n.fillText(et,u+f-8-B,he+6),this.ratioBar(je,he+1,Math.max(0,Ye-B-6),3,[[h.totalHits,N.hit],[h.totalCompiles,ho(N.compile,.7)]])),n.globalAlpha=1}),l>0){let h=s+c.length*xs;this.moreRow={x:u,y:h,w:f,h:xs-4},this.rows.push(this.moreRow),n.fillStyle=N.dim,n.font=`12px ${vt}`,n.fillText(`+${l} more (idle clients hidden)`,u+12,h+22)}}drawFeed(t,e){let n=this.ctx;this.panel(t),this.title(t,"Recent",[["hit",N.hit],["compiled",N.compile],["failed",N.fail]]);let r=this.model.events,o=Math.floor((t.h-34)/Qb),s=t.x+10,a=t.w-20,c=t.y+30+12;n.font=`11px ${vt}`;let l=0;for(let d=r.length-1;d>=0&&l<o;--d){let u=r[d];if(this.focus&&u.client!==this.focus)continue;++l;let f=e-u.t;n.globalAlpha=f<400?1:Math.max(.55,1-(f-400)/2e4);let h=u.outcome==="hit"?N.hit:u.outcome==="failed"?N.fail:N.compile;n.fillStyle=h,n.beginPath(),n.arc(s+4,c-4,3.5,0,Math.PI*2),n.fill();let m=u.outcome==="hit"?"HIT":u.outcome==="failed"?"FAIL":bt(u.duration),p=this.measure(m,n.font);n.fillText(m,s+a-p,c);let v=u.client?u.client.displayName:"",D=Math.min(a*.35,this.measure(v,n.font)),k=this.fit(v,D),x=this.measure(k,n.font);n.fillStyle=u.client?pB(u.client.color):N.dim,n.fillText(k,s+a-p-10-x,c),n.fillStyle=N.text,n.fillText(this.fit(oc(u.sourcePath)||`job ${u.cell}`,a-26-p-x-10),s+14,c),c+=Qb}n.globalAlpha=1,l||this.empty(t,"Waiting for jobs...")}spawn(t){if(!this.animate||t.outcome==="dropped"||!t.builder||t.cell<0)return;let e=this.tileByBuilder.get(t.builder);if(!e)return;let n=t.outcome==="hit",r=Date.now(),o=this.tokens,s=Math.min(1,(r-o.t)/1e3);if(o.t=r,o.hit=Math.min(Cs.hit/4,o.hit+s*Cs.hit),o.compiled=Math.min(Cs.compiled/4,o.compiled+s*Cs.compiled),o.failed=Math.min(Cs.failed/4,o.failed+s*Cs.failed),o[t.outcome]<1||this.particles.length>=mB)return;--o[t.outcome];let a=e.cell+e.gap,c=e.cellX+t.cell%e.cols*a+e.cell/2,l=e.cellY+Math.floor(t.cell/e.cols)*a+e.cell/2,d=t.client&&this.rowByClient.get(t.client)||this.moreRow;if(!d)return;let u=d.x+3,f=d.y+d.h/2;this.particles.push({x0:c,y0:l,x1:u,y1:f,cx:c+(u-c)*(.75+Math.random()*.2),cy:l+(f-l)*Math.random()*.15,t0:r,dur:750+Math.random()*350,color:n?N.hit:t.outcome==="failed"?N.fail:t.client?t.client.color:N.compile,r:n||t.outcome==="failed"?3:1.6,client:t.client})}drawParticles(t){if(!this.particles.length)return;let e=this.ctx,n=[];for(let r of this.particles){let o=(t-r.t0)/r.dur;if(!(o>=1)&&(n.push(r),!(this.focus&&r.client!==this.focus))){e.fillStyle=r.color;for(let s=3;s>=0;--s){let a=gB(Math.max(0,o-s*.035)),c=1-a,l=c*c*r.x0+2*c*a*r.cx+a*a*r.x1,d=c*c*r.y0+2*c*a*r.cy+a*a*r.y1;e.globalAlpha=(s===0?1:.5-s*.12)*(r.r<2?.7:1),e.beginPath(),e.arc(l,d,r.r*(1-s*.18),0,Math.PI*2),e.fill()}}}e.globalAlpha=1,this.particles=n}panel(t){let e=this.ctx;e.fillStyle=N.panel,Ds(e,t.x,t.y,t.w,t.h,6),e.fill(),e.strokeStyle=N.panelEdge,e.lineWidth=1,Ds(e,t.x+.5,t.y+.5,t.w-1,t.h-1,6),e.stroke()}title(t,e,n){let r=this.ctx;r.font=`600 12px ${vt}`,r.fillStyle=N.text,r.fillText(e,t.x+10,t.y+19);let o=t.x+t.w-10;r.font=`10px ${vt}`;let s=t.x+20+this.measure(e,`600 12px ${vt}`);for(let a=n.length-1;a>=0;--a){let[c,l]=n[a],d=this.measure(c,r.font);if(o-d-14<s)break;o-=d,r.fillStyle=N.dim,r.fillText(c,o,t.y+18),r.fillStyle=l,r.fillRect(o-12,t.y+10,8,8),o-=24}}empty(t,e){let n=this.ctx;n.fillStyle=N.faint,n.font=`13px ${vt}`,n.textAlign="center",n.fillText(e,t.x+t.w/2,t.y+t.h/2+10),n.textAlign="left"}ratioBar(t,e,n,r,o){let s=this.ctx,a=o.reduce((l,d)=>l+d[0],0);if(s.fillStyle=N.cellEmpty,s.fillRect(t,e,n,r),!a)return;let c=t;for(let[l,d]of o){let u=n*l/a;s.fillStyle=d,s.fillRect(c,e,u,r),c+=u}}measure(t,e){let n=e+`
|
|
16
16
|
`+t,r=this.textCache.get(n);if(r===void 0){this.textCache.size>2e4&&this.textCache.clear();let o=this.ctx.font;this.ctx.font=e,r=this.ctx.measureText(t).width,this.ctx.font=o,this.textCache.set(n,r)}return r}fit(t,e,n){let r=this.ctx.font;if(e<=0)return"";if(this.measure(t,r)<=e)return t;let o=c=>n?"..."+t.substring(t.length-c):t.substring(0,c)+"...",s=0,a=t.length;for(;s<a;){let c=s+a+1>>1;this.measure(o(c),r)<=e?s=c:a=c-1}return s?o(s):""}};function mh(i,t,e){return i>=e.x&&i<=e.x+e.w&&t>=e.y&&t<=e.y+e.h}function Ds(i,t,e,n,r,o){o=Math.min(o,n/2,r/2),i.beginPath(),i.moveTo(t+o,e),i.arcTo(t+n,e,t+n,e+r,o),i.arcTo(t+n,e+r,t,e+r,o),i.arcTo(t,e+r,t,e,o),i.arcTo(t,e,t+n,e,o),i.closePath()}var JE=new Map;function pB(i){if(N.dark||!/^#[0-9a-fA-F]{6}$/.test(i))return i;let t=JE.get(i);if(!t){let e=parseInt(i.substring(1),16),n=r=>("0"+Math.round(r*.62).toString(16)).slice(-2);t="#"+n(e>>16&255)+n(e>>8&255)+n(e&255),JE.set(i,t)}return t}function ho(i,t){if(!/^#[0-9a-fA-F]{6}$/.test(i))return i;let e=parseInt(i.substring(1),16);return`rgba(${e>>16&255},${e>>8&255},${e&255},${Math.max(0,Math.min(1,t))})`}function gB(i){return i<.5?2*i*i:1-Math.pow(-2*i+2,2)/2}function eI(i){if(i<=1)return 1;let t=Math.pow(10,Math.floor(Math.log10(i)));for(let e of[1,1.5,2,2.5,3,4,5,6,8,10])if(e*t>=i)return e*t;return 10*t}function bB(i){let t=i/6e4;return t<=2?15e3:t<=5?6e4:t<=15?2*6e4:5*6e4}function ph(i){return isFinite(i)?`${(i*100).toFixed(i<.1&&i>0?1:0)}%`:"-"}function Ln(i){return i>=1e6?`${(i/1e6).toFixed(1)}M`:i>=1e4?`${(i/1e3).toFixed(1)}k`:String(Math.round(i*10)/10)}function tI(i,t){let e=new Date(i),n=r=>("0"+r).slice(-2);return`${n(e.getHours())}:${n(e.getMinutes())}`+(t?`:${n(e.getSeconds())}`:"")}var vB=["canvas"],_B=["host"],yB=["tooltip"],iI=(()=>{class i{constructor(e,n,r,o){this.live=e,this.config=n,this.zone=r,this.dialog=o,this.destroyed=!1,this.onResize=()=>this.resize(),this.mouse=void 0,this.lastTooltip=0,this.darkQuery=window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):void 0,this.onSystemTheme=()=>this.applyTheme()}ngAfterViewInit(){let e=this.canvasRef.nativeElement;this.renderer=new gh(e,this.live.model),this.applyConfig(),this.configKey=this.config.onChange(()=>this.applyConfig()),this.darkQuery&&this.darkQuery.addEventListener("change",this.onSystemTheme),this.zone.runOutsideAngular(()=>{window.addEventListener("resize",this.onResize),e.addEventListener("mousemove",r=>this.onMouseMove(r)),e.addEventListener("mouseleave",()=>this.onMouseLeave()),e.addEventListener("click",r=>this.onClick(r)),e.addEventListener("dblclick",r=>this.onDoubleClick(r)),e.addEventListener("contextmenu",r=>this.onContextMenu(r)),this.resize(),setTimeout(()=>this.resize(),400);let n=r=>{if(this.destroyed)return;let o=Date.now();this.renderer.draw(o),this.mouse&&o-this.lastTooltip>200&&this.updateTooltip(),window.requestAnimationFrame(n)};window.requestAnimationFrame(n)})}ngOnDestroy(){this.destroyed=!0,window.removeEventListener("resize",this.onResize),this.darkQuery&&this.darkQuery.removeEventListener("change",this.onSystemTheme),this.config.remove(this.configKey),this.renderer&&this.renderer.destroy()}applyConfig(){let e=this.renderer;e.sideWidth=this.config.get("chart-legend-space",400),e.windowMs=Math.max(30,Math.min(1800,this.config.get("live-window",300)||300))*1e3,e.animate=!this.config.get("noAnimate",!1),this.applyTheme()}applyTheme(){let e=this.config.get("live-theme","dark"),n=e==="light"||e==="auto"&&!!this.darkQuery&&!this.darkQuery.matches;WE(n?"light":"dark"),this.hostRef.nativeElement.classList.toggle("light",n)}resize(){if(this.destroyed)return;let e=this.hostRef.nativeElement,n=e.getBoundingClientRect(),r=e.clientWidth,o=Math.max(420,window.innerHeight-n.top-24);this.renderer.resize(r,o,window.devicePixelRatio||1)}pos(e){let n=this.canvasRef.nativeElement.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}onMouseMove(e){this.mouse=this.pos(e),this.updateTooltip()}onMouseLeave(){this.mouse=void 0,this.renderer.hoverX=void 0,this.tooltipRef.nativeElement.style.display="none",this.canvasRef.nativeElement.style.cursor="default"}onClick(e){let n=this.renderer.hitTest(this.pos(e).x,this.pos(e).y);n&&n.kind==="client"?this.renderer.focus=this.renderer.focus===n.client?void 0:n.client:n&&n.kind==="builder"&&n.job?this.renderer.focus=this.renderer.focus===n.job.client?void 0:n.job.client:n||(this.renderer.focus=void 0),this.updateTooltip()}onDoubleClick(e){let n=this.renderer.hitTest(this.pos(e).x,this.pos(e).y);n&&n.kind==="client"&&n.client.url&&window.open(n.client.url,"_blank")}onContextMenu(e){let n=this.renderer.hitTest(this.pos(e).x,this.pos(e).y),r=n&&n.kind==="client"?n.client:n&&n.kind==="builder"&&n.job?n.job.client:void 0;if(!r)return;e.preventDefault();let o=Array.from(r.jobs).map(s=>({client:{name:r.name},sourcePath:s.sourcePath,builder:{ip:s.builder?s.builder.displayName:"?"},date:`${s.state} ${bt(Date.now()-(s.startedAt||s.scheduledAt))}`}));this.zone.run(()=>{this.dialog.open(fh,{data:{client:{name:r.name,modifiedName:r.displayName},jobs:o}})})}updateTooltip(){this.lastTooltip=Date.now();let e=this.tooltipRef.nativeElement;if(!this.mouse){e.style.display="none";return}let n=this.renderer.hitTest(this.mouse.x,this.mouse.y);this.renderer.hoverX=n&&n.kind==="timeline"?this.mouse.x:void 0,this.canvasRef.nativeElement.style.cursor=n&&(n.kind==="client"||n.kind==="builder")?"pointer":"default";let r=n?this.tooltipHtml(n):"";if(!r){e.style.display="none";return}e.innerHTML=r,e.style.display="block";let o=this.hostRef.nativeElement,s=e.offsetWidth,a=e.offsetHeight,c=this.mouse.x+16,l=this.mouse.y+16;c+s>o.clientWidth-4&&(c=this.mouse.x-s-16),l+a>this.renderer.height-4&&(l=Math.max(4,this.renderer.height-a-4)),e.style.left=Math.max(4,c)+"px",e.style.top=l+"px"}tooltipHtml(e){switch(e.kind){case"builder":return this.builderTip(e.builder,e.job);case"client":return this.clientTip(e.client);case"timeline":return this.sampleTip(e.sample);case"kpi":return this.kpiTip(e.key);default:return""}}builderTip(e,n){let r=Date.now(),o=[];n&&(o.push(`<div class="h">${Et(oc(n.sourcePath))}</div>`),o.push(`<div class="dim">${Et(n.sourcePath)}</div>`),o.push(xe("client",Zb(n.client.color)+Et(n.client.displayName))),o.push(xe("state",n.state==="compiling"?`compiling for ${bt(r-n.startedAt)}`:`<span style="color:${N.queued}">waiting ${bt(r-n.scheduledAt)}</span> (upload / builder queue)`)),n.startedAt&&o.push(xe("dispatch",bt(n.startedAt-n.scheduledAt))),n.predictedHit!==void 0&&o.push(xe("routing",n.predictedHit?`<span style="color:${N.hit}">builder has it cached</span>`:"by load (not cached anywhere)")),o.push('<div class="sep"></div>'));let s=0;e.cells.forEach(c=>{c&&++s});let a=e.totalHits+e.totalCompiles;return o.push(`<div class="h">${Et(e.displayName)}</div>`),o.push(xe("address",Et(`${e.hostname?e.hostname+" ":""}${e.ip}:${e.port}`))),o.push(xe("slots",`${s} / ${e.slots}`+(e.overflow.length?` <span style="color:${N.queued}">+${e.overflow.length} queued</span>`:""))),o.push(xe("session",`<span style="color:${N.hit}">${e.totalHits} hits</span>, ${e.totalCompiles} compiles`+(e.totalFailures?`, <span style="color:${N.fail}">${e.totalFailures} failed</span>`:"")+(a?` (${Math.round(e.totalHits/a*100)}% hit)`:""))),e.labels.length&&o.push(xe("labels",Et(e.labels.join(", ")))),e.npmVersion&&o.push(xe("version",Et(e.npmVersion))),e.system&&o.push(xe("system",Et(e.system))),n||o.push('<div class="dim">click a slot to focus its client</div>'),o.join("")}clientTip(e){let n=Date.now(),r=[];r.push(`<div class="h">${Zb(e.color)}${Et(e.displayName)}</div>`),r.push(xe("host",Et(`${e.user?e.user+"@":""}${e.hostname||""} ${e.ip}`))),r.push(xe("now",`${e.compiling} compiling`+(e.scheduled?`, <span style="color:${N.queued}">${e.scheduled} waiting</span>`:"")));let o=e.totalHits+e.totalCompiles;r.push(xe("session",`<span style="color:${N.hit}">${e.totalHits} hits</span>, ${e.totalCompiles} compiles`+(e.totalFailures?`, <span style="color:${N.fail}">${e.totalFailures} failed</span>`:"")+(o?` (${Math.round(e.totalHits/o*100)}% hit)`:""))),r.push(xe("seen",`${bt(n-e.firstSeen)} ago`));let s=Array.from(e.jobs).sort((a,c)=>a.scheduledAt-c.scheduledAt).slice(0,8);return s.length&&(r.push('<div class="sep"></div>'),s.forEach(a=>{let c=a.state==="compiling"?bt(n-a.startedAt):`<span style="color:${N.queued}">waiting</span>`;r.push(xe(Et(oc(a.sourcePath)),`${c} on ${Et(a.builder?a.builder.displayName:"?")}`))}),e.jobs.size>s.length&&r.push(`<div class="dim">... ${e.jobs.size-s.length} more</div>`)),r.push(`<div class="dim">click to focus${e.url?", double-click to open":""}, right-click for job list</div>`),r.join("")}kpiTip(e){let n=this.live.model,r=Date.now(),o=n.windowStats(60,r),s=n.windowStats(10,r),a=n.stats||{},c=u=>`<span style="color:${N.hit}">${u.toLocaleString()}</span>`,l=(u,f)=>u+f?` (${(u/(u+f)*100).toFixed(1)}%)`:"",d=[];switch(e){case"slots":{let u=n.scheduledCount;d.push('<div class="h">Slots</div>'),d.push(xe("compiling",String(n.jobs.size-u))),d.push(xe("waiting",`${u} <span class="dim">(reserved, not started yet)</span>`)),d.push(xe("capacity",`${n.capacity} on ${n.builders.size} builders`));let f=Object.keys(a).filter(h=>a[h]&&typeof a[h]=="object"&&"activeJobs"in a[h]);f.length&&(d.push('<div class="sep"></div><div class="dim">peaks reported by the scheduler</div>'),f.forEach(h=>d.push(xe(Et(h),`${a[h].activeJobs} jobs, ${(a[h].utilization*100).toFixed(1)}%`))));break}case"cache":{if(d.push('<div class="h">Cache hits</div>'),d.push(xe("last 10s",`${c(s.hits)} / ${s.started} compiles${l(s.hits,s.started)}`)),d.push(xe("last 60s",`${c(o.hits)} / ${o.started} compiles${l(o.hits,o.started)}`)),d.push(xe("this session",`${c(n.sessionHits)} / ${n.sessionCompiles} compiles${l(n.sessionHits,n.sessionCompiles)}`)),a.cacheHits!==void 0&&d.push(xe("scheduler lifetime",`${c(a.cacheHits)} / ${(a.jobsStarted||0).toLocaleString()} compiles${l(a.cacheHits,a.jobsStarted||0)}`)),d.push('<div class="sep"></div>'),n.hasPredictions){let u=n.prediction;d.push('<div class="dim">routed to a builder that had the object cached:</div>'),d.push(xe("came back as hits",`${c(u.hits)}${l(u.hits,u.misses)}`)),d.push(xe("compiled anyway",`${u.misses} <span class="dim">(stale cache info)</span>`)),d.push(xe("unexpected hits",String(u.unpredictedHits)))}else d.push(`<div class="dim">This scheduler doesn't say which jobs it routed for a cache hit (jobScheduled.objectCache needs a newer fisk).</div>`);break}case"throughput":d.push('<div class="h">Finished jobs per second</div>'),d.push(xe("last 10s",`${s.throughput.toFixed(1)}/s`)),d.push(xe("last 60s",`${o.throughput.toFixed(1)}/s`)),d.push(xe("jobs scheduled",(a.jobsScheduled||0).toLocaleString()+' <span class="dim">lifetime</span>'));break;case"compile":d.push('<div class="h">Timing</div>'),d.push(xe("compile, 60s avg",bt(o.avgCompileMs))),d.push(xe("compile, long run avg",bt(n.compileMsEma))),d.push(xe("dispatch wait, 60s",bt(o.avgWaitMs))),d.push('<div class="dim">dispatch wait: from the scheduler picking a builder until the builder starts compiling (upload and builder queue)</div>');break;case"saved":d.push('<div class="h">Estimated compile time saved</div>'),d.push(xe("this session",`${n.sessionHits.toLocaleString()} hits x ${bt(o.avgCompileMs||n.compileMsEma)}`)),a.cacheHits&&n.compileMsEma&&d.push(xe("scheduler lifetime",`~${bt(a.cacheHits*n.compileMsEma)}`)),d.push('<div class="dim">builder CPU time, using the average compile duration</div>');break;case"failures":d.push('<div class="h">Failures</div>'),d.push(xe("last 60s",String(o.failed))),d.push(xe("this session",String(n.sessionFailures))),d.push(xe("scheduler lifetime",(a.jobsFailed||0).toLocaleString())),d.push(xe("dropped",`${n.sessionDropped} <span class="dim">(${n.hasReleases?"released without a result":"timed out without a result"})</span>`));break;case"builders":{d.push('<div class="h">Builders</div>');let u=new Map;n.builders.forEach(h=>u.set(h.npmVersion||"?",(u.get(h.npmVersion||"?")||0)+h.members.size)),u.forEach((h,m)=>d.push(xe(Et(m),String(h))));let f=Array.from(n.builders.values()).filter(h=>h.members.size>1);f.length&&(d.push('<div class="sep"></div>'),f.forEach(h=>d.push(`<div class="dim">${h.members.size} builders share ${Et(h.ip)}:${h.port}; shown as one tile</div>`))),n.schedulerVersion&&d.push(xe("scheduler",Et(n.schedulerVersion)));break}}return d.join("")}sampleTip(e){let n=[],r=Date.now()-e.t,o=0,s=[];e.compiling.forEach((l,d)=>{o+=l,s.push([d,l])}),s.sort((l,d)=>d[1]-l[1]);let a=new Date(e.t);n.push(`<div class="h">${a.toLocaleTimeString()} <span class="dim">(${bt(r)} ago)</span></div>`),n.push(xe("slots",`${o} compiling, <span style="color:${N.queued}">${e.scheduled} waiting</span> of ${e.capacity}`));let c=1e3/500;return n.push(xe("done/s",`<span style="color:${N.hit}">${e.hits*c} hits</span>, ${e.compiled*c} compiles`+(e.failed?`, <span style="color:${N.fail}">${e.failed*c} failed</span>`:""))),s.length&&(n.push('<div class="sep"></div>'),s.slice(0,10).forEach(([l,d])=>n.push(xe(Zb(l.color)+Et(l.displayName),String(d)))),s.length>10&&n.push(`<div class="dim">... ${s.length-10} more</div>`)),n.join("")}static{this.\u0275fac=function(n){return new(n||i)(g(uh),g(_i),g(V),g(Nn))}}static{this.\u0275cmp=ue({type:i,selectors:[["app-live"]],viewQuery:function(n,r){if(n&1&&(we(vB,5),we(_B,5),we(yB,5)),n&2){let o;ne(o=re())&&(r.canvasRef=o.first),ne(o=re())&&(r.hostRef=o.first),ne(o=re())&&(r.tooltipRef=o.first)}},decls:6,vars:0,consts:[["host",""],["canvas",""],["tooltip",""],[1,"live-host"],[1,"live-tooltip"]],template:function(n,r){n&1&&(y(0,"div",3,0),ie(2,"canvas",null,1)(4,"div",4,2),b())},styles:[".live-host[_ngcontent-%COMP%]{--tip-bg: rgba(12, 15, 21, .96);--tip-border: #333c4d;--tip-text: #d7deea;--tip-dim: #7c8699;--tip-sep: #2a3242;--tip-shadow: rgba(0, 0, 0, .45);position:relative;width:100%;margin-top:8px}.live-host.light[_ngcontent-%COMP%]{--tip-bg: rgba(255, 255, 255, .97);--tip-border: #d5dae3;--tip-text: #1f2533;--tip-dim: #667085;--tip-sep: #e4e7ec;--tip-shadow: rgba(16, 24, 40, .18)}canvas[_ngcontent-%COMP%]{display:block;border-radius:6px}.live-tooltip[_ngcontent-%COMP%]{display:none;position:absolute;z-index:10;pointer-events:none;max-width:420px;padding:8px 10px;border-radius:6px;border:1px solid var(--tip-border);background:var(--tip-bg);color:var(--tip-text);font:12px system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.45;box-shadow:0 6px 20px var(--tip-shadow)}.live-tooltip[_ngcontent-%COMP%] .h{font-weight:600;font-size:13px;word-break:break-all}.live-tooltip[_ngcontent-%COMP%] .dim{color:var(--tip-dim);word-break:break-all}.live-tooltip[_ngcontent-%COMP%] .row{display:flex;gap:12px;justify-content:space-between}.live-tooltip[_ngcontent-%COMP%] .k{color:var(--tip-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-tooltip[_ngcontent-%COMP%] .v{text-align:right}.live-tooltip[_ngcontent-%COMP%] .sep{height:1px;margin:6px 0;background:var(--tip-sep)}.live-tooltip[_ngcontent-%COMP%] .sw{display:inline-block;width:9px;height:9px;margin-right:6px;border-radius:2px}"]})}}return i})();function Et(i){return String(i??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function xe(i,t){return`<div class="row"><span class="k">${i}</span><span class="v">${t}</span></div>`}function Zb(i){return`<span class="sw" style="background:${i}"></span>`}function wB(i,t){if(i&1){let e=Te();y(0,"div",1),j("click",function(){let r=F(e).$implicit,o=O();return L(o.onClicked(r))}),y(1,"div",2),q(2),b()()}if(i&2){let e=t.$implicit;C(2),ad(" ",e.hash," ",e.compiler.name," ",e.compiler.version," (",e.target,") ")}}var xB=(i,t)=>({checked:i,args:t});function CB(i,t){if(i&1){let e=Te();y(0,"div",6)(1,"mat-checkbox",7),ld("ngModelChange",function(r){let o=F(e).$implicit,s=O();return Wm(s.checked[o.hash],r)||(s.checked[o.hash]=r),L(r)}),b(),q(2),ie(3,"br"),y(4,"mat-form-field",8)(5,"mat-label"),q(6,"Arguments"),b(),y(7,"input",9),ld("ngModelChange",function(r){let o=F(e).$implicit,s=O();return Wm(s.args[o.hash],r)||(s.args[o.hash]=r),L(r)}),b()()()}if(i&2){let e=t.$implicit,n=O();C(),cd("ngModel",n.checked[e.hash]),C(),ad(" ",e.hash," ",e.compiler.name," ",e.compiler.version," (",e.target,")"),C(5),cd("ngModel",n.args[e.hash])}}var nI=(()=>{class i{constructor(e,n,r){this.fisk=e,this.tabChanged=n,this.dialog=r,this.fisk.on("data",o=>{if(o.type==="listEnvironments"){let s=[];console.log(o.environments),this.links=o.environments.links;for(let a in o.environments){let c=o.environments[a];if(typeof c=="object"&&"system"in c){"hash"in c||(c.hash=a);let l={name:void 0,major:void 0,minor:void 0,patch:void 0,version:""},d=(c.info||"").split(`
|